{"version":3,"file":"js/rad-google-recaptcha.9fee75af.js","mappings":"wMAQA,GAA4BA,EAAAA,EAAAA,iBAAiB,CAC3CC,OAAQ,YACRC,MAAO,CACLC,SAAUC,QAEZC,MAAMC,GAER,MAAMJ,EAAQI,GAKR,SAAEH,IAAaI,EAAAA,EAAAA,QAAOL,GAEtBM,EAAQ,UAAUL,EAASM,QAE3BC,GAASC,EAAAA,EAAAA,MAETC,EAAa,2CAGnBC,OAAOC,gBAAkB,WACrBD,OAAOE,WAAWC,OAAOR,EAAO,CAAES,QAASL,GAC/C,EAGA,MAAMM,GAAyCC,EAAAA,EAAAA,QAAO,gBAUtD,OARY,OAAZD,QAAY,IAAZA,GAAAA,EAAcE,cACV,2EACA,oBACA,WACIV,EAAOW,MAAM,oCACjB,IAGG,CAACC,EAAUC,MACRC,EAAAA,EAAAA,cAAcC,EAAAA,EAAAA,oBAAoB,MAAO,CAC/CC,GAAIlB,EACJmB,MAAO,yCAGX,IC/CA,MAAMC,EAAc,EAEpB,O","sources":["webpack://beliefnet-frontend/./src/components/google/ReCaptcha.vue?fc03","webpack://beliefnet-frontend/./src/components/google/ReCaptcha.vue"],"sourcesContent":["import { defineComponent as _defineComponent } from 'vue'\nimport { openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nimport { toRefs, inject } from 'vue';\nimport { useLogger } from 'vue-logger-plugin';\nimport { UtilsService } from './services/utils.service';\n\n\nexport default /*#__PURE__*/_defineComponent({\n __name: 'ReCaptcha',\n props: {\n uniqueId: String\n},\n setup(__props) {\n\nconst props = __props;\n\n\n\n// get back unique id of what we need\nconst { uniqueId } = toRefs(props);\n\nconst divId = `captcha${uniqueId.value}`;\n\nconst logger = useLogger();\n// unique key from google for recaptcha\nconst captchaKey = '6LeP-BQTAAAAALk2r2JVoAJJ56qZiFfLc6XAKjt8';\n\n// callback function to load the captcha\nwindow.CaptchaCallback = function () {\n window.grecaptcha.render(divId, { sitekey: captchaKey });\n};\n\n// utils services for including google captcha script\nconst utilsService: UtilsService | undefined = inject('UtilsService');\n// load the script to handle the recaptcha\nutilsService?.includeScript(\n '//www.google.com/recaptcha/api.js?onload=CaptchaCallback&render=explicit',\n 'google-recaptcha',\n function () {\n logger.debug('Finished loading google recaptcha');\n }\n);\n\nreturn (_ctx: any,_cache: any) => {\n return (_openBlock(), _createElementBlock(\"div\", {\n id: divId,\n class: \"col-xs-12 form-group grecaptchaField\"\n }))\n}\n}\n\n})","import script from \"./ReCaptcha.vue?vue&type=script&setup=true&lang=ts\"\nexport * from \"./ReCaptcha.vue?vue&type=script&setup=true&lang=ts\"\n\nconst __exports__ = script;\n\nexport default __exports__"],"names":["_defineComponent","__name","props","uniqueId","String","setup","__props","toRefs","divId","value","logger","useLogger","captchaKey","window","CaptchaCallback","grecaptcha","render","sitekey","utilsService","inject","includeScript","debug","_ctx","_cache","_openBlock","_createElementBlock","id","class","__exports__"],"sourceRoot":""}