{"version":3,"file":"recaptcha2-invisible.min.js","sources":["recaptcha2-invisible.js"],"sourcesContent":[" 'use strict';\r\n\r\n function Recaptcha2Invisible(recaptcha2ContainerId, siteKey) {\r\n this.recaptcha2ContainerId = recaptcha2ContainerId;\r\n this.siteKey = siteKey;\r\n this.widgetId = null;\r\n this.token = '';\r\n this.callback = null;\r\n\r\n this.init();\r\n }\r\n\r\n Recaptcha2Invisible.prototype.init = function () {\r\n this.widgetId = window.grecaptcha.render(this.recaptcha2ContainerId, {\r\n \"sitekey\": this.siteKey,\r\n \"size\": 'invisible',\r\n \"badge\": 'inline',\r\n \"callback\": this.recaptchaCallback.bind(this)\r\n });\r\n }\r\n\r\n Recaptcha2Invisible.prototype.recaptchaCallback = function (token) {\r\n if (this.callback) this.callback(token);\r\n }\r\n\r\n Recaptcha2Invisible.prototype.execute = function (callback) {\r\n this.callback = callback;\r\n\r\n window.grecaptcha.reset(this.widgetId);\r\n window.grecaptcha.execute(this.widgetId);\r\n } \r\n"],"names":["Recaptcha2Invisible","recaptcha2ContainerId","siteKey","this","widgetId","token","callback","init","prototype","window","grecaptcha","render","sitekey","size","badge","recaptchaCallback","bind","execute","reset"],"mappings":"AAEI,SAASA,oBAAoBC,EAAuBC,GAChDC,KAAKF,sBAAwBA,EAC7BE,KAAKD,QAAUA,EACfC,KAAKC,SAAW,KAChBD,KAAKE,MAAQ,GACbF,KAAKG,SAAW,KAEhBH,KAAKI,KAAK,CACd,CAEAP,oBAAoBQ,UAAUD,KAAO,WACjCJ,KAAKC,SAAWK,OAAOC,WAAWC,OAAOR,KAAKF,sBAAuB,CACjEW,QAAWT,KAAKD,QAChBW,KAAQ,YACRC,MAAS,SACTR,SAAYH,KAAKY,kBAAkBC,KAAKb,IAAI,CAChD,CAAC,CACL,EAEAH,oBAAoBQ,UAAUO,kBAAoB,SAAUV,GACpDF,KAAKG,UAAUH,KAAKG,SAASD,CAAK,CAC1C,EAEAL,oBAAoBQ,UAAUS,QAAU,SAAUX,GAC9CH,KAAKG,SAAWA,EAEhBG,OAAOC,WAAWQ,MAAMf,KAAKC,QAAQ,EACrCK,OAAOC,WAAWO,QAAQd,KAAKC,QAAQ,CAC3C"}