{"version":3,"sources":["webpack://GTTS/./src/js/libs/state.js","webpack://GTTS/webpack/bootstrap","webpack://GTTS/webpack/startup"],"names":["WebFontConfig","google","families","wf","document","createElement","src","location","protocol","type","async","s","getElementsByTagName","parentNode","insertBefore","SubscribeToNewsletter","emailinput","getElementById","email","$","val","checkValidity","show","html","validationMessage","datatosend","ajax","url","data","contentType","dataType","success","resultcode","d","resulttext","hide","ready","scrollY","parseInt","isNaN","window","scrollTo","hash","setTimeout","offset","top","__webpack_module_cache__","__webpack_require__","moduleId","exports","module","__webpack_modules__"],"mappings":"oCAAAA,cAAgB,CACZC,OAAQ,CAAEC,SAAU,CAAC,kBAEzB,WACI,IAAIC,EAAKC,SAASC,cAAc,UAChCF,EAAGG,KAAO,UAAYF,SAASG,SAASC,SAAW,QAAU,QACzD,wDACJL,EAAGM,KAAO,kBACVN,EAAGO,MAAQ,OACX,IAAIC,EAAIP,SAASQ,qBAAqB,UAAU,GAChDD,EAAEE,WAAWC,aAAaX,EAAIQ,GAPlC,GAUAI,sBAAwB,WAEpBC,WAAaZ,SAASa,eAAe,UACrC,IAAIC,EAAQC,EAAE,WAAWC,MACzB,IAAKJ,WAAWK,iBAA6B,KAAVH,GAA/B,MAA+CA,EAG/C,OAFAC,EAAE,mBAAmBG,YACrBH,EAAE,YAAYI,KAAKP,WAAWQ,mBAI9B,IAAIC,EAAa,aAAeP,EAAQ,MAoC5C,OAnCIC,EAAEO,KAAK,CACHjB,KAAM,OACNkB,IAAK,0DACLC,KAAMH,EACNI,YAAa,kCACbC,SAAU,OACVC,QAAS,SAAUH,GACfI,WAAaJ,EAAKK,EAElB,IAAIC,EAAa,GACjB,OAAQF,YACJ,KAAK,EACDb,EAAE,mBAAmBG,OACrBY,EAAa,sDACb,MACJ,KAAK,EACDf,EAAE,mBAAmBgB,OACrBD,EAAa,wCACb,MACJ,KAAK,EACDf,EAAE,mBAAmBgB,OACrBD,EAAa,mEACb,MACJ,QACIf,EAAE,mBAAmBG,OACrBY,EAAa,GAEH,GAAdF,WACAb,EAAE,YAAYI,KAAK,uCAEnBJ,EAAE,YAAYI,KAAKW,OAK5B,GAIXf,EAAEf,UAAUgC,OAAM,WACd,IAAIC,EAAUC,SAAS,iCAClBC,MAAMF,IACPG,OAAOC,SAAS,EAAGJ,GAEO,gBAA1BjC,SAASG,SAASmC,MAClBC,YAAW,WACPH,OAAOC,SAAS,EAAGtB,EAAE,gBAAgByB,SAASC,IAAM,MACrD,UCtEPC,EAA2B,GCE/B,ODCA,SAASC,EAAoBC,GAE5B,GAAGF,EAAyBE,GAC3B,OAAOF,EAAyBE,GAAUC,QAG3C,IAAIC,EAASJ,EAAyBE,GAAY,CAGjDC,QAAS,IAOV,OAHAE,EAAoBH,GAAUE,EAAQA,EAAOD,QAASF,GAG/CG,EAAOD,QCjBRF,CAAoB,M","file":"states.js","sourcesContent":["WebFontConfig = {\r\n google: { families: ['Varela+Round'] }\r\n};\r\n(function () {\r\n var wf = document.createElement('script');\r\n wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +\r\n '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';\r\n wf.type = 'text/javascript';\r\n wf.async = 'true';\r\n var s = document.getElementsByTagName('script')[0];\r\n s.parentNode.insertBefore(wf, s);\r\n})();\r\n\r\nSubscribeToNewsletter = function () {\r\n\r\n emailinput = document.getElementById('subbox');\r\n var email = $('#subbox').val();\r\n if (!emailinput.checkValidity() || email === '' || email === null || typeof (email) === 'undefined') {\r\n $('#newsletterform').show();\r\n $('#results').html(emailinput.validationMessage);\r\n return;\r\n } else {\r\n\r\n var datatosend = \"{ email: '\" + email + \"' }\";\r\n $.ajax({\r\n type: \"POST\",\r\n url: \"states/Default2019.aspx/AddMarketingEmailListNewsletter\",\r\n data: datatosend,\r\n contentType: \"application/json; charset=utf-8\",\r\n dataType: \"json\",\r\n success: function (data) {\r\n resultcode = data.d\r\n\r\n var resulttext = '';\r\n switch (resultcode) {\r\n case 0:\r\n $('#newsletterform').show();\r\n resulttext = 'Oops, something went wrong! Please try again later!';\r\n break;\r\n case 1:\r\n $('#newsletterform').hide();\r\n resulttext = 'Thank you for joining our newsletter.';\r\n break;\r\n case 2:\r\n $('#newsletterform').hide();\r\n resulttext = 'Thank you! It looks like you are already part of our newsletter.';\r\n break;\r\n default:\r\n $('#newsletterform').show();\r\n resulttext = '';\r\n }\r\n if (resultcode == 3) {\r\n $('#results').html('Please enter a valid email address.');\r\n } else {\r\n $('#results').html(resulttext);\r\n }\r\n }\r\n });\r\n }\r\n return false;\r\n\r\n}\r\n\r\n$(document).ready(function () {\r\n var scrollY = parseInt('<%=Request.Form[\"scrollY\"] %>');\r\n if (!isNaN(scrollY)) {\r\n window.scrollTo(0, scrollY);\r\n }\r\n if (document.location.hash == '#useful-info') {\r\n setTimeout(function () {\r\n window.scrollTo(0, $(\"#useful-info\").offset().top - 80);\r\n }, 1000);\r\n }\r\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\tif(__webpack_module_cache__[moduleId]) {\n\t\treturn __webpack_module_cache__[moduleId].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","// module exports must be returned from runtime so entry inlining is disabled\n// startup\n// Load entry module and return exports\nreturn __webpack_require__(869);\n"],"sourceRoot":""}