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EV,EAASS,IAC5EE,OAAOC,eAAeZ,EAASS,EAAK,CAAEI,YAAY,EAAMC,IAAKN,EAAWC,IAG3E,ECPAb,EAAoBc,EAAI,SAASK,EAAKC,GAAQ,OAAOL,OAAOM,UAAUC,eAAeC,KAAKJ,EAAKC,EAAO,E","sources":["webpack://constant-contact-forms/./assets/js/ctct-plugin-recaptcha-v2/recaptcha.js","webpack://constant-contact-forms/webpack/bootstrap","webpack://constant-contact-forms/webpack/runtime/compat get default export","webpack://constant-contact-forms/webpack/runtime/define property getters","webpack://constant-contact-forms/webpack/runtime/hasOwnProperty shorthand"],"sourcesContent":["/**\n * Enable submit button.\n *\n * @author Rebekah Van Epps \n * @since 1.8.3\n *\n * @param {Object} submitBtn Submit DOM element.\n */\nwindow.ctctEnableBtn = function (submitBtn) {\n submitBtn.removeAttribute('disabled');\n};\n\n/**\n * Disable submit button.\n *\n * @author Rebekah Van Epps \n * @since 1.8.3\n *\n * @param {Object} submitBtn Submit DOM element.\n */\nwindow.ctctDisableBtn = function (submitBtn) {\n submitBtn.setAttribute('disabled', 'disabled');\n}\n\n\nwindow.renderReCaptcha = function () {\n let grecaptchas = document.querySelectorAll( '.g-recaptcha' );\n\n Array.from(grecaptchas).forEach(function (grecaptchaobj) {\n let submitBtn = '';\n const siblings = [...grecaptchaobj.parentElement.children];\n siblings.forEach(function(item){\n if ( item.classList.contains('ctct-form-field-submit') ) {\n submitBtn = document.querySelector(\"#\" + item.children[0].id);\n }\n });\n grecaptcha.render(grecaptchaobj, {\n 'sitekey' : grecaptchaobj.getAttribute('data-sitekey', ''),\n 'size' : grecaptchaobj.getAttribute('data-size', ''),\n 'tabindex' : grecaptchaobj.getAttribute('data-tabindex', ''),\n 'callback' : function () {\n if ( submitBtn ) {\n window.ctctEnableBtn(submitBtn);\n }\n },\n 'expired-callback': function () {\n if ( submitBtn ) {\n window.ctctDisableBtn(submitBtn);\n }\n },\n 'isolated' : true,\n });\n });\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = function(module) {\n\tvar getter = module && module.__esModule ?\n\t\tfunction() { return module['default']; } :\n\t\tfunction() { return module; };\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = function(exports, definition) {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }"],"names":["window","ctctEnableBtn","submitBtn","removeAttribute","ctctDisableBtn","setAttribute","renderReCaptcha","grecaptchas","document","querySelectorAll","Array","from","forEach","grecaptchaobj","parentElement","children","item","classList","contains","querySelector","id","grecaptcha","render","getAttribute","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","n","getter","__esModule","d","a","definition","key","o","Object","defineProperty","enumerable","get","obj","prop","prototype","hasOwnProperty","call"],"sourceRoot":""}