{"version":3,"sources":["webpack:///webpack/bootstrap 58ccdccda39cd1846672?ed2f************","webpack:///./assets/scripts/contactus.js","webpack:///./assets/scripts/util/captchaUtil.js"],"names":["customerService","$","CaptchaUtil","profiling","self","e","myQuestion","$form","button","CustomerService","captchaUtil","formName","googleRecaptchaClientSide","document","grecaptcha","setInterval"],"mappings":"aAIA,cAGA,QACA,oBAGA,YACA,UADA,CAEA,IAFA,CAGA,SAHA,EAaA,MANA,mCAMA,CAHA,WAGA,UACA,CAxBA,SAqCA,MATA,MASA,CANA,KAMA,CAHA,MAGA,K,sBCtCA,a,mVAEA,O,wDAEMA,E,yEACE,YACJC,kBAAkB,UAAM,CACtB,4BADsB,CAEtB,wBAFsB,CAGtBC,oCAHFD,EAKD,C,wCAEgB,CACf,GAAME,GAAYF,EAAlB,YAAkBA,CAAlB,CAEAA,+BAAgC,WAAO,CACrC,GAAMG,GAAOH,EAAEI,EAAf,aAAaJ,CAAb,CAEIG,KAAJ,UAAIA,CAHiC,CAInCD,wBAJmC,EAMnCA,6BANmC,CAQ/BA,KAAJ,UAAIA,CAR+B,EASjCA,oBATiC,CAAvCF,EAaD,C,kDAE0B,CACzB,GAAIK,GAAaL,iCAAjB,GAAiBA,EAAjB,CACAA,mCAFyB,CAIzBA,6CAA8C,UAAY,CACxDA,iCAAiCA,QAAjCA,GAAiCA,EAAjCA,CADFA,EAGD,C,8CAEsB,CACrBA,8BAA8B,WAAO,IAC/BM,GAAQN,EAAEI,EAAd,aAAYJ,CADuB,CAE/BO,EAASD,OAAb,SAAaA,CAFsB,CAGnCN,wBAHFA,EAKD,C,SAGGQ,EAAN,K,CACAA,O,oaClDMC,E,gFACkC,IAA3BC,GAA2B,uDAAhB,cAAgB,CAC9BC,EAA4BC,uBAAlC,2CAAkCA,CADE,IAGlCC,iBAAiB,UAAY,CAC3BA,mBAAmBF,EAAnBE,MAAoD,CAApDA,QAAoD,CAApDA,OAA+E,WAAiB,CAC9Fb,8FAD8F,CAE9FA,+FAFFa,EAD2B,CAK3BC,YAAY,UAAY,CACtBD,mBAAmBF,EAAnBE,MAAoD,CAApDA,QAAoD,CAApDA,OAA+E,WAAiB,CAC9Fb,4CADFa,EADFC,EAL2B,GAK3BA,CALFD,EAYH,C,SAGGZ,EAAN,K,GACeA,O","file":"contactus.min.js","sourcesContent":[" \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId])\n \t\t\treturn installedModules[moduleId].exports;\n\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\texports: {},\n \t\t\tid: moduleId,\n \t\t\tloaded: false\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.loaded = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 58ccdccda39cd1846672","'use strict';\n\nimport CaptchaUtil from './util/captchaUtil';\n\nclass customerService {\n run() {\n $(document).ready(() => {\n this.customerServiceInputCode();\n this.submitContactUsEvent();\n CaptchaUtil.initialize('contact_form');\n });\n }\n\n checkProfiling() {\n const profiling = $('#profiling');\n\n $('#email-signup').on('change', (e) => {\n const self = $(e.currentTarget);\n\n if (self.is(':checked')) {\n profiling.removeAttr('disabled');\n } else {\n profiling.attr('disabled', 'disabled');\n\n if (profiling.is(':checked')) {\n profiling.prop('checked', false);\n }\n }\n });\n }\n\n customerServiceInputCode() {\n var myQuestion = $('#customer-service-arguments').val();\n $('input[name$=myquestion]').val(myQuestion);\n\n $('#customer-service-arguments').on('change', function () {\n $('input[name$=myquestion]').val($(this).val());\n });\n }\n\n submitContactUsEvent() {\n $('form.contact-form').submit((e) => {\n var $form = $(e.currentTarget);\n var button = $form.find('.button');\n $(button).attr('disabled', true);\n });\n }\n}\n\nconst CustomerService = new customerService();\nCustomerService.run();\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/contactus.js","class captchaUtil {\n initialize(formName = 'contact_form') {\n const googleRecaptchaClientSide = document.querySelector('input[name=\"googleRecaptchaClientSide\"]');\n if (googleRecaptchaClientSide) {\n grecaptcha.ready(function () {\n grecaptcha.execute(googleRecaptchaClientSide.value, { action: formName }).then(function (token) {\n $(googleRecaptchaClientSide).parent().prepend(``);\n $(googleRecaptchaClientSide).parent().prepend(``);\n });\n setInterval(function () {\n grecaptcha.execute(googleRecaptchaClientSide.value, { action: formName }).then(function (token) {\n $('input[name=googleRecaptchaToken]').val(token);\n });\n }, 90000); // tokens gets marked as expired after 2 mins https://github.com/google/recaptcha/issues/302\n });\n }\n }\n}\n\nconst CaptchaUtil = new captchaUtil();\nexport default CaptchaUtil;\n\n\n\n// WEBPACK FOOTER //\n// ./assets/scripts/util/captchaUtil.js"],"sourceRoot":""}