PageSourceSearch

https://www.bose.ca/on/demandware.static/Sites-Bose_CA-Site/-/en_CA/v1790334078566/js/edqUtils.js

js bose.ca collected 2026-09-25 22:53:40 UTC 89,903 bytes, 274 lines download raw bytes

vendor: 4,616 bytes, lines 1-130
1(function webpackUniversalModuleDefinition(root, factory) {
2    if (typeof exports === 'object' && typeof module === 'object')
3        module.exports = factory();
4    else if (typeof define === 'function' && define.amd)
5        define("sfra", [], factory);
6    else if (typeof exports === 'object')
7        exports["sfra"] = factory();
8    else
9        root["EdqDemandware"] = root["EdqDemandware"] || {}, root["EdqDemandware"]["sfra"] = factory();
10})(window, function() {
11    return /******/ (function(modules) { // webpackBootstrap
12        /******/ // The module cache
13        /******/
14        var installedModules = {};
15        /******/
16        /******/ // The require function
17        /******/
18        function __webpack_require__(moduleId) {
19            /******/
20            /******/ // Check if module is in cache
21            /******/
22            if (installedModules[moduleId]) {
23                /******/
24                return installedModules[moduleId].exports;
25                /******/
26            }
27            /******/ // Create a new module (and put it into the cache)
28            /******/
29            var module = installedModules[moduleId] = {
30                /******/
31                i: moduleId,
32                /******/
33                l: false,
34                /******/
35                exports: {}
36                /******/
37            };
38            /******/
39            /******/ // Execute the module function
40            /******/
41            modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
42            /******/
43            /******/ // Flag the module as loaded
44            /******/
45            module.l = true;
46            /******/
47            /******/ // Return the exports of the module
48            /******/
49            return module.exports;
50            /******/
51        }
52        /******/
53        /******/
54        /******/ // expose the modules object (__webpack_modules__)
55        /******/
56        __webpack_require__.m = modules;
57        /******/
58        /******/ // expose the module cache
59        /******/
60        __webpack_require__.c = installedModules;
61        /******/
62        /******/ // define getter function for harmony exports
63        /******/
64        __webpack_require__.d = function(exports, name, getter) {
65            /******/
66            if (!__webpack_require__.o(exports, name)) {
67                /******/
68                Object.defineProperty(exports, name, {
69                    enumerable: true,
70                    get: getter
71                });
72                /******/
73            }
74            /******/
75        };
76        /******/
77        /******/ // define __esModule on exports
78        /******/
79        __webpack_require__.r = function(exports) {
80            /******/
81            if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
82                /******/
83                Object.defineProperty(exports, Symbol.toStringTag, {
84                    value: 'Module'
85                });
86                /******/
87            }
88            /******/
89            Object.defineProperty(exports, '__esModule', {
90                value: true
91            });
92            /******/
93        };
94        /******/
95        /******/ // create a fake namespace object
96        /******/ // mode & 1: value is a module id, require it
97        /******/ // mode & 2: merge all properties of value into the ns
98        /******/ // mode & 4: return value when already ns object
99        /******/ // mode & 8|1: behave like require
100        /******/
101        __webpack_require__.t = function(value, mode) {
102            /******/
103            if (mode & 1) value = __webpack_require__(value);
104            /******/
105            if (mode & 8) return value;
106            /******/
107            if ((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
108            /******/
109            var ns = Object.create(null);
110            /******/
111            __webpack_require__.r(ns);
112            /******/
113            Object.defineProperty(ns, 'default', {
114                enumerable: true,
115                value: value
116            });
117            /******/
118            if (mode & 2 && typeof value != 'string')
119                for (var key in value) __webpack_require__.d(ns, key, function(key) {
120                    return value[key];
121                }.bind(null, key));
122            /******/
123            return ns;
124            /******/
125        };
126        /******/
127        /******/ // getDefaultExport function for compatibility with non-harmony modules
128        /******/
129        __webpack_require__.n = function(module) {
130            /******/
131            var getter = module && module.__esModule ?
132                /******/
133                function getDefault() {
134                    return module['default'];
135                } :
136                /******/
137                function getModuleExports() {
138                    return module;
139                };
140            /******/
141            __webpack_require__.d(getter, 'a', getter);
142            /******/
143            return getter;
144            /******/
145        };
146        /******/
147        /******/ // Object.prototype.hasOwnProperty.call
148        /******/
149        __webpack_require__.o = function(object, property) {
150            return Object.prototype.hasOwnProperty.call(object, property);
151        };
152        /******/
153        /******/ // __webpack_public_path__
154        /******/
155        __webpack_require__.p = "../lib/sfra";
156        /******/
157        /******/
158        /******/ // Load entry module and return exports
159        /******/
160        return __webpack_require__(__webpack_require__.s = "../src/sfra.ts");
161        /******/
162    })
163    /************************************************************************/
164    /******/
165    ({
166
167        /***/
168        
168"../src/sfra.ts":
169            /*!**********************!*\
170              !*** ../src/sfra.ts ***!
171              \**********************/
172            /*! no static exports found */
173            /***/
174            (function(module, exports, __webpack_require__) {
175
176                "use strict";
177                eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*global EDQ*/\r\n/*eslint no-undef: \"error\"*/\r\n/*eslint no-unused-vars: [\"error\", { \"vars\": \"local\" }]*/\r\n/* exported edqSetEmailValidationConfiguration edqSetPhoneValidationConfiguration setCheckoutFormEvents edqValidateAddressCallBack edqCheckoutPageWorkflows */\r\nvar edqPhoneValidation_1 = __webpack_require__(/*! ./utils/edqPhoneValidation */ \"../src/utils/edqPhoneValidation.ts\");\r\nvar edqEmailValidation_1 = __webpack_require__(/*! ./utils/edqEmailValidation */ \"../src/utils/edqEmailValidation.ts\");\r\nvar edqGlobalIntuitive_1 = __webpack_require__(/*! ./utils/edqGlobalIntuitive */ \"../src/utils/edqGlobalIntuitive.ts\");\r\nvar edqGlobalIntuitive_2 = __webpack_require__(/*! ./utils/edqGlobalIntuitive */ \"../src/utils/edqGlobalIntuitive.ts\");\r\nvar edqProWebVerification_1 = __webpack_require__(/*! ./utils/edqProWebVerification */ \"../src/utils/edqProWebVerification.ts\");\r\nvar edqProWebVerification_2 = __webpack_require__(/*! ./utils/edqProWebVerification */ \"../src/utils/edqProWebVerification.ts\");\r\nvar edqProWebVerification_3 = __webpack_require__(/*! ./utils/edqProWebVerification */ \"../src/utils/edqProWebVerification.ts\");\r\nvar edq_utils_1 = __webpack_require__(/*! ./utils/edq-utils */ \"../src/utils/edq-utils.ts\");\r\nvar SfccConfig = {};\r\nwindow.sfccConfig = window.sfccConfig || SfccConfig;\r\nvar vDefaultCountry;\r\nvar edqAddressLine1Element;\r\nvar edqAddressLine2Element;\r\nvar edqAddressLine3Element;\r\nvar edqCityLineElement;\r\nvar edqPostalLineElement;\r\nvar edqStateLineElement;\r\nvar edqCountryElement;\r\nvar edqEmailLineElement;\r\nvar edqPhoneLineElements = [];\r\nvar edqCurrentSubmitButton;\r\nvar edqEmailEnable;\r\nvar edqPhoneEnable;\r\nvar edqValidateEmail;\r\nvar edqValidatePhone;\r\nvar edqAuthorizationToken;\r\nvar edqProWebAddressLayout;\r\nvar edqDataSetUsage;\r\nvar edqDataSetCode;\r\nvar edqProWebCallbackValidation;\r\nvar edqCustomCallbackName;\r\nvar edqGlobalIntuitiveUnicornJsPath;\r\nvar reloadGIjs = true;\r\nvar edqGlobalIntuitiveStaging;\r\nvar inputSelector = document.querySelectorAll(\"input[id]\");\r\nvar buttonSelector = document.querySelectorAll(\"button[name]\");\r\nvar edqGlobalIntuitiveIntegrityKey;\r\nvar edqGlobalIntuitiveUseCurrentLocation;\r\nvar edqConfig = {};\r\nwindow.EdqConfig = window.EdqConfig || edqConfig;\r\nwindow.sfccConfig.edqPhoneLineElements = [];\r\nwindow.sfccConfig.pageRestrictValidation = true;\r\n/**\r\n * Set values for the input selectors depending on the touchpoint (Address/Billing/Shipping).\r\n * @param {string} stageContentLocation\r\n */\r\nfunction setEdqInputSelectors(_a) {\r\n    var stageContentLocation = _a.stageContentLocation;\r\n    /**\r\n     * In SFRA the checkout web page contains both billing and shipping address input fields in a single page controlled by JavaScripts to hide/show elements.\r\n     * The stageContentLocation variable is intended to specify the stage(billing/shipping) of the checkout web page to set the proper input address fields\r\n     * that we require to set them for billing or shipping address fields, since is they're set in the same web page we need to change its value to use them in the next step.\r\n     */\r\n    stageContentLocation = stageContentLocation || \"\";\r\n    if (stageContentLocation === \"shipping\") {\r\n        window.sfccConfig.edqAddressLine1Element = document.querySelector(\"[name=dwfrm_shipping_shippingAddress_addressFields_address1]\");\r\n        window.sfccConfig.edqAddressLine2Element = document.querySelector(\"[name=dwfrm_shipping_shippingAddress_addressFields_address2]\");\r\n        window.sfccConfig.edqAddressLine3Element = document.querySelector(\"[name=dwfrm_shipping_shippingAddress_addressFields_address3]\");\r\n        window.sfccConfig.edqCityLineElement = document.querySelector(\"[name=dwfrm_shipping_shippingAddress_addressFields_city]\");\r\n        window.sfccConfig.edqPostalLineElement = document.querySelector(\"[name=dwfrm_shipping_shippingAddress_addressFields_postalCode]\");\r\n        window.sfccConfig.edqStateLineElement = document.querySelector(\"[name=dwfrm_shipping_shippingAddress_addressFields_states_stateCode]\");\r\n        window.sfccConfig.edqCountryElement = document.querySelector(\"[name=dwfrm_shipping_shippingAddress_addressFields_country]\");\r\n        window.sfccConfig.edqCurrentSubmitButton = document.querySelector(\"[value=submit-shipping]\");\r\n    }\r\n    else if (stageContentLocation === \"billing\") {\r\n        window.sfccConfig.edqAddressLine1Element = document.querySelector(\"#billingAddressOne\");\r\n        window.sfccConfig.edqAddressLine2Element = document.querySelector(\"#billingAddressTwo\");\r\n        window.sfccConfig.edqAddressLine3Element = document.querySelector(\"#billingAddressThree\");\r\n        window.sfccConfig.edqCityLineElement = document.querySelector(\"#billingAddressCity\");\r\n        window.sfccConfig.edqPostalLineElement = document.querySelector(\"#billingZipCode\");\r\n        window.sfccConfig.edqStateLineElement = document.querySelector(\"#billingState\");\r\n        window.sfccConfig.edqCountryElement = document.querySelector(\"#billingCountry\");\r\n        window.sfccConfig.edqCurrentSubmitButton = document.querySelector(\"[value=submit-payment]\");\r\n    }\r\n    else if (stageContentLocation === \"addressSection\") {\r\n        window.sfccConfig.edqAddressLine1Element = document.querySelector(\".addressBookflyout.is-opened [name=dwfrm_address_address1]\");\r\n        window.sfccConfig.edqAddressLine2Element = document.querySelector(\".addressBookflyout.is-opened [name=dwfrm_address_address2]\");\r\n        window.sfccConfig.edqAddressLine3Element = document.querySelector(\".addressBookflyout.is-opened [name=dwfrm_address_address3]\");\r\n        window.sfccConfig.edqCityLineElement = document.querySelector(\".addressBookflyout.is-opened [name=dwfrm_address_city]\");\r\n        window.sfccConfig.edqPostalLineElement = document.querySelector(\".addressBookflyout.is-opened [name=dwfrm_address_postalCode]\");\r\n        window.sfccConfig.edqStateLineElement = document.querySelector(\".addressBookflyout.is-opened [name=dwfrm_address_states_stateCode]\");\r\n        window.sfccConfig.edqCountryElement = document.querySelector(\".addressBookflyout.is-opened [name=dwfrm_address_country]\");\r\n    }\r\n    else if (stageContentLocation === \"EditCheckoutAddressSection\") {\r\n   var stage=document.querySelector(\".checkout-main\").getAttribute(\"data-checkout-stage\");\r\n     window.sfccConfig.edqAddressLine1Element = document.querySelector(\"[class*='card \" + stage + \"'] .shipping-address-form  [n
177ame=dwfrm_address_address1]\");\r\n        window.sfccConfig.edqAddressLine2Element = document.querySelector(\"[class*='card \" + stage + \"'] .shipping-address-form  [name=dwfrm_address_address2]\");\r\n        window.sfccConfig.edqAddressLine3Element = document.querySelector(\"[class*='card \" + stage + \"'] .shipping-address-form  [name=dwfrm_address_address3]\");\r\n        window.sfccConfig.edqCityLineElement = document.querySelector(\"[class*='card \" + stage + \"'] .shipping-address-form  [name=dwfrm_address_city]\");\r\n        window.sfccConfig.edqPostalLineElement = document.querySelector(\"[class*='card \" + stage + \"'] .shipping-address-form  [name=dwfrm_address_postalCode]\");\r\n        window.sfccConfig.edqStateLineElement = document.querySelector(\"[class*='card \" + stage + \"'] .shipping-address-form  [name=dwfrm_address_states_stateCode]\");\r\n        window.sfccConfig.edqCountryElement = document.querySelector(\"[class*='card \" + stage + \"'] .shipping-address-form  [name=dwfrm_address_country]\");\r\n    }\r\n    else {\r\n        window.sfccConfig.edqAddressLine1Element = document.querySelector(\"[name=dwfrm_address_address1]\");\r\n        window.sfccConfig.edqAddressLine2Element = document.querySelector(\"[name=dwfrm_address_address2]\");\r\n        window.sfccConfig.edqAddressLine3Element = document.querySelector(\"[name=dwfrm_address_address3]\");\r\n        window.sfccConfig.edqCityLineElement = document.querySelector(\"[name=dwfrm_address_city]\");\r\n        window.sfccConfig.edqPostalLineElement = document.querySelector(\"[name=dwfrm_address_postalCode]\");\r\n        window.sfccConfig.edqStateLineElement = document.querySelector(\"[name=dwfrm_address_states_stateCode]\");\r\n        window.sfccConfig.edqCountryElement = document.querySelector(\"[name=dwfrm_address_country]\");\r\n    }\r\n    for (let input of inputSelector) {\r\n        if (input.id.toLowerCase().match(/phone/)) {\r\n            window.sfccConfig.edqPhoneLineElements.push(input);\r\n        }\r\n        window.sfccConfig.edqEmailLineElement = ((input.id == \"registration-form-email\") || (input.id == \"email\") || (input.id == \"newsletterEmail\") || (input.id == \"notify-me-form-email\")) ? input : window.sfccConfig.edqEmailLineElement;\r\n    }\r\n}\r\nexports.setEdqInputSelectors = setEdqInputSelectors;\r\nfunction sfraUtilsConfiguration() {\r\n    var setEmailPhoneCallback = function () {\r\n        edq_utils_1.edqEmailPhoneValidationCallback({\r\n            \"edqEmailEnable\": edqEmailEnable,\r\n            \"edqEmailLineElement\": window.sfccConfig.edqEmailLineElement,\r\n            \"edqPhoneEnable\": edqPhoneEnable,\r\n            \"edqPhoneLineElements\": window.sfccConfig.edqPhoneLineElements,\r\n            \"pageRestrictValidation\": window.sfccConfig.pageRestrictValidation,\r\n            \"edqValidateEmail\": edqValidateEmail,\r\n            \"edqValidatePhone\": edqValidatePhone,\r\n            \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton\r\n        });\r\n    };\r\n    var setEnableButtonDisable = function () {\r\n        edq_utils_1.enableButtonDisable({\r\n            \"buttonToDisable\": window.sfccConfig.edqCurrentSubmitButton,\r\n            \"buttonStatus\": false,\r\n            \"formSubmitButton\": document.querySelector(\"#form-submit\")\r\n        });\r\n        window.sfccConfig.pageRestrictValidation = true;\r\n    };\r\n    for (let buttonSelect of buttonSelector) {\r\n        /** In SFRA the checkout web page contains both billing and shipping process so we have to set the button we need so\r\n         * this part is intended to find out the submit button for the checkout web page; in this page there are 3 submit buttons\r\n         * with the label name=submit; so for this page the only way to distinguish them is for the label value; this case is just for initial load.\r\n         */\r\n        if (window.location.href.toLowerCase().match(/checkout/)) {\r\n            if (buttonSelect.hasAttribute(\"value\")) {\r\n                window.sfccConfig.edqCurrentSubmitButton = (buttonSelect.value.toLowerCase().match(/shipping/)) ? buttonSelect : window.sfccConfig.edqCurrentSubmitButton;\r\n                if (window.sfccConfig.edqCurrentSubmitButton) {\r\n                    edq_utils_1.addEventOnElement({ \"selector\": \"[value=\" + window.sfccConfig.edqCurrentSubmitButton.value + \"]\", \"event\": \"focus\", \"fn\": setEmailPhoneCallback });\r\n                }\r\n                if (buttonSelect.value.toLowerCase() === \"submit-payment\") {\r\n                    edq_utils_1.addEventOnElement({ \"selector\": \"[value=submit-payment]\", \"event\": \"focus\", \"fn\": setEmailPhoneCallback });\r\n                }\r\n            }\r\n        }\r\n        else {\r\n            window.sfccConfig.edqCurrentSubmitButton = (buttonSelect.name.toLowerCase().match(/save/)) ? buttonSelect : window.sfccConfig.edqCurrentSubmitButton;\r\n            if (window.sfccConfig.edqCurrentSubmitButton) {\r\n                edq_utils_1.addEventOnElement({ \"selector\": \"[name=\" + window.sfccConfig.edqCurrentSubmitButton.name + \"]\", \"event\": \"focus\", \"fn\": setEmailPhoneCallback });\r\n            }\r\n        }\r\n    }\r\n    /**\r\n     * This window.location is intended to specify the input address fields that we require when we get to the checkout web page for initial load.\r\n     */\r\n    if (window.location.href.toLowerCase().match(/checkout/)) {\r\n        setEdqInputSelectors({ \"stageContentLocation\": \"shipping\" });\r\n    }\r\n    else {\r\n        setEdqInputSelectors({ \"stageContentLocation\": \"\" });\r\n    }\r\n    if (window.sfccConfig.edqEmailLineElement) {\r\n        edq_utils_1.addEventOnElement({ \"selector\": \"[name=\" + window.sfccConfig.edqEmailLineElement.name + \"]\", \"event\": \"focus\", \"fn\": setEnableButtonDisable });\r\n    }\r\n    if (window.sfccConfig.edqPhoneLineElements) {\r\n        window.sfccConfig.edqPhoneLineElements.forEac
177h(function (phoneSelector) {\r\n            edq_utils_1.addEventOnElement({ \"selector\": \"[name=\" + phoneSelector.name + \"]\", \"event\": \"focus\", \"fn\": setEnableButtonDisable });\r\n        });\r\n    }\r\n}\r\nexports.sfraUtilsConfiguration = sfraUtilsConfiguration;\r\n/**\r\n * Email validation\r\n * Sets the Email Modal\r\n */\r\nfunction setemailModal() {\r\n    edqEmailLineSelector = document.getElementById(\"notify-me-form-email\");\r\n}\r\nexports.setemailModal = setemailModal;\r\n/**\r\n * Email validation\r\n * Sets the configuration to use Email Validate\r\n */\r\nfunction useEmailValidation(edqEmailAuthorizationToken) {\r\n    edqEmailValidation_1.edqSetEmailValidationConfiguration({\r\n        \"edqEmailAuthorizationToken\": edqEmailAuthorizationToken,\r\n        \"edqEmailLineElement\": window.sfccConfig.edqEmailLineElement\r\n    });\r\n}\r\nexports.useEmailValidation = useEmailValidation;\r\n/**\r\n * Phone validation\r\n * Sets the configuration to use Global Phone Validate\r\n */\r\nfunction usePhoneValidation(edqAuthorizationToken) {\r\n    edqPhoneValidation_1.edqSetPhoneValidationConfiguration({\r\n        \"edqAuthorizationToken\": edqAuthorizationToken,\r\n        \"edqPhoneLineElements\": window.sfccConfig.edqPhoneLineElements\r\n    });\r\n}\r\nexports.usePhoneValidation = usePhoneValidation;\r\n/**\r\n * Global Intuitive\r\n * Sets the configuration to use Global Intuitive\r\n */\r\nfunction useGlobalIntuitive(vDefaultCountry, edqAuthorizationToken, edqDataSetUsage, edqDataSetCode, edqGlobalIntuitiveUseCurrentLocation) {\r\n    window.sfccConfig.edqGlobalIntuitiveUseCurrentLocation = edqGlobalIntuitiveUseCurrentLocation;\r\n    edqGlobalIntuitive_1.edqSetGlobalIntuitiveConfiguration({\r\n        \"vDefaultCountry\": vDefaultCountry,\r\n        \"edqAuthorizationToken\": edqAuthorizationToken,\r\n        \"edqDataSetUsage\": edqDataSetUsage,\r\n        \"edqDataSetCode\": edqDataSetCode,\r\n        \"edqCountryElement\": window.sfccConfig.edqCountryElement,\r\n        \"edqAddressLine1Element\": window.sfccConfig.edqAddressLine1Element,\r\n        \"edqAddressLine2Element\": window.sfccConfig.edqAddressLine2Element,\r\n        \"edqAddressLine3Element\": window.sfccConfig.edqAddressLine3Element,\r\n        \"edqCityLineElement\": window.sfccConfig.edqCityLineElement,\r\n        \"edqStateLineElement\": window.sfccConfig.edqStateLineElement,\r\n        \"edqPostalLineElement\": window.sfccConfig.edqPostalLineElement\r\n    });\r\n    edqGlobalIntuitive_2.setCheckoutFormEvents({\r\n        \"reloadGIjs\": reloadGIjs,\r\n        \"edqGlobalIntuitiveUnicornJsPath\": window.sfccConfig.edqGlobalIntuitiveUnicornJsPath,\r\n        \"edqGlobalIntuitiveIntegrityKey\": edqGlobalIntuitiveIntegrityKey,\r\n        \"vDefaultCountry\": vDefaultCountry,\r\n        \"edqAuthorizationToken\": edqAuthorizationToken,\r\n        \"edqDataSetUsage\": edqDataSetUsage,\r\n        \"edqDataSetCode\": edqDataSetCode,\r\n        \"edqCountryElement\": window.sfccConfig.edqCountryElement,\r\n        \"edqAddressLine1Element\": window.sfccConfig.edqAddressLine1Element,\r\n        \"edqAddressLine2Element\": window.sfccConfig.edqAddressLine2Element,\r\n        \"edqAddressLine3Element\": window.sfccConfig.edqAddressLine3Element,\r\n        \"edqCityLineElement\": window.sfccConfig.edqCityLineElement,\r\n        \"edqStateLineElement\": window.sfccConfig.edqStateLineElement,\r\n        \"edqPostalLineElement\": window.sfccConfig.edqPostalLineElement\r\n    });\r\n}\r\nexports.useGlobalIntuitive = useGlobalIntuitive;\r\n/**\r\n * Pro Web Address Verification callback\r\n */\r\nfunction useProwebVerification(edqAuthorizationToken, vDefaultCountry, edqProWebAddressLayout) {\r\n    var setEmailPhoneCallback = function () {\r\n        edq_utils_1.edqEmailPhoneValidationCallback({\r\n            \"edqEmailEnable\": edqEmailEnable,\r\n            \"edqEmailLineElement\": window.sfccConfig.edqEmailLineElement,\r\n            \"edqPhoneEnable\": edqPhoneEnable,\r\n            \"edqPhoneLineElements\": window.sfccConfig.edqPhoneLineElements,\r\n            \"pageRestrictValidation\": window.sfccConfig.pageRestrictValidation,\r\n            \"edqValidateEmail\": edqValidateEmail,\r\n            \"edqValidatePhone\": edqValidatePhone,\r\n            \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton\r\n        });\r\n    };\r\n    window.sfccConfig.edqProWebCallback = \"window.EdqDemandware.sfra.edqValidateAddressCallBack1\";\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"#form-submit\", \"event\": \"focus\", \"fn\": setEmailPhoneCallback });\r\n    edqProWebVerification_2.edqSetProWebConfiguration({\r\n        \"formSubmitButton\": document.querySelector(\"#form-submit\"),\r\n        \"vDefaultCountry\": vDefaultCountry,\r\n        \"edqAuthorizationToken\": edqAuthorizationToken,\r\n        \"edqCountryElement\": window.sfccConfig.edqCountryElement,\r\n        \"edqProWebAddressLayout\": edqProWebAddressLayout,\r\n        \"edqAddressLine1Element\": window.sfccConfig.edqAddressLine1Element,\r\n        \"edqAddressLine2Element\": window.sfccConfig.edqAddressLine2Element,\r\n        \"edqAddressLine3Element\": window.sfccConfig.edqAddressLine3Element,\r\n        \"edqCityLineElement\": window.sfccConfig.edqCityLineElement,\r\n        \"edqStateLineElement\": window.sfccConfig.edqStateLineElement,\r\n        \"edqPostalLineElement\": window.sfccConfig.edqPostalLineElement\r\n    });\r\n    if (window.location.href.toLowerCase().match(/checkout/)) {\r\n        edqProWebVerification_1.edqCheckoutPageWorkflows({\r\n            \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton,\r\n            \"formSubmitButton\": document.querySelector(\"#form-submit\"),\r\n            \"vDefaultCountry\": vDefaultCountry,\r\n            \"edqAuthorizationToken\": edqAuthorizationToken,\r\n            \"edqCountryElement\": window.sfccConfig.edqCountryElement,\r\n            \"edqProWebAddressLayout\": edqProWebAddressLayout,\r\n            \"edqAddressLine1Element\": window.sfccConfig.edqAddressLine1Element,\r\n            \"edqAddressLine2Element\": window.sfccConfig.edqAddressLine2Element,\r\n            \"edqAddressLine3Element\": window.sfccConfig.edqAddressLine3Element,\r\n            \"edqCityLineElement\": window.sfccConfig.edqCityLineElement,\r\n            \"edqStateLineElement\": window.sfccConfig.edqStateLineElement,\r\n            \"edqPostalLineElement\": window.sfccConfig.edqPostalLineElement\r\n        });\r\n    }\r\n}\r\nexports.useProwebVerification = useProwebVerification;\r\nfunction edqValidateAddressCallBack1() {\r\n    edqProWebVerification_3.edqValidateAddressCallBack({\r\n        \"formSubmitButton\": document.querySelector(\"#form-submit\"),\r\n        \"edqStateLineElement\": window.sfccConfig.edqStateLineElement,\r\n        \"edqProWebCallbackValidation\": edqProWebCallbackValidation,\r\n        \"edqCustomCallbackName\": edqCustomCallbackName,\r\n        \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton\r\n    });\r\n}\r\nexports.edqValidateAddressCallBack1 = edqValidateAddressCallBack1;\r\nfunction setUtilsConfig(_a) {\r\n    var defaultCountry = _a.defaultCountry, emailEnable = _a.emailEnable, phoneEnable = _a.phoneEnable, validatePhone = _a.validatePhone, validateEmail = _a.validateEmail, authorizationToken = _a.authorizationToken, dataSetCode = _a.dataSetCode, dataSetUsage = _a.dataSetUsage, proWebCallbackValidation = _a.proWebCallbackValidation, customCallbackName = _a.customCallbackName;\r\n    vDefaultCountry = defaultCountry;\r\n    edqEmailEnable = emailEnable;\r\n    edqPhoneEnable = phoneEnable;\r\n    edqValidatePhone = validatePhone;\r\n    edqValidateEmail = validateEmail;\r\n    edqAuthorizationToken = authorizationToken;\r\n    edqDataSetCode = dataSetCode;\r\n    edqDataSetUsage = dataSetUsage;\r\n    edqProWebCallbackValidation = proWebCallbackValidation;\r\n    edqCustomCallbackName = customCallbackName;\r\n}\r\nexports.setUtilsConfig = setUtilsConfig;\r\nfunction setUtilsGIConfig(_a) {\r\n    var globalIntuitiveStaging = _a.globalIntuitiveStaging, edqUnicornJsPath = _a.edqUnicornJsPath;\r\n    edqGlobalIntuitiveStaging = globalIntuitiveStaging;\r\n    window.sfccConfig.edqGlobalIntuitiveUnicornJsPath = edqUnicornJsPath;\r\n}\r\nexports.setUtilsGIConfig = setUtilsGIConfig;\r\n\n\n//# sourceURL=webpack://EdqDemandware.sfra/../src/sfra.ts?");
178
179                /***/
180            }),
181
182        /***/
183        
183"../src/utils/edq-utils.ts":
184            /*!*********************************!*\
185              !*** ../src/utils/edq-utils.ts ***!
186              \*********************************/
187            /*! no static exports found */
188            /***/
189            (function(module, exports, __webpack_require__) {
190
191                "use strict";
192                eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar edqEmailValidation_1 = __webpack_require__(/*! ./edqEmailValidation */ \"../src/utils/edqEmailValidation.ts\");\r\nvar edqPhoneValidation_1 = __webpack_require__(/*! ./edqPhoneValidation */ \"../src/utils/edqPhoneValidation.ts\");\r\nfunction enableButtonDisable(_a) {\r\n    var buttonToDisable = _a.buttonToDisable, buttonStatus = _a.buttonStatus, formSubmitButton = _a.formSubmitButton;\r\n    buttonToDisable.disabled = buttonStatus;\r\n    if (formSubmitButton) {\r\n        formSubmitButton.disabled = buttonStatus;\r\n    }\r\n}\r\nexports.enableButtonDisable = enableButtonDisable;\r\n/**\r\n * Add event listeners to the elements.\r\n *\r\n * @param {element} selector\r\n * @param {event} event\r\n * @param {function} fn\r\n */\r\nfunction addEventOnElement(_a) {\r\n  try { \r\n var selector = _a.selector, event = _a.event, fn = _a.fn;\r\n    var element = document.querySelector(selector);\r\n    if (!element) {\r\n        return;\r\n    }\r\n    element.addEventListener(event, fn);\r\n } catch(e) {}\r\n}\r\nexports.addEventOnElement = addEventOnElement;\r\n/**\r\n * Will manage the access restriction when Phone/Email validation is being used based on the BM configuration.\r\n */\r\nfunction edqEmailPhoneValidationCallback(_a) {\r\n    var edqEmailEnable = _a.edqEmailEnable, edqEmailLineElement = _a.edqEmailLineElement, edqPhoneEnable = _a.edqPhoneEnable, edqPhoneLineElements = _a.edqPhoneLineElements, pageRestrictValidation = _a.pageRestrictValidation, edqValidateEmail = _a.edqValidateEmail, edqValidatePhone = _a.edqValidatePhone, edqCurrentSubmitButton = _a.edqCurrentSubmitButton;\r\n    /** Email Validation not restricting access when Phone Validation is activated in the Billing stage for SFRA.\r\n    * Added the checkoutStage to review the button that we're going to disable to prevent on going to the next page on\r\n    * the checkout page when the option is available in the Business Manager configuration.\r\n    * For more information see Bug #147798 */\r\n    var urlParams = new URLSearchParams(window.location.search);\r\n    var checkoutStage = urlParams.get('stage');\r\n    /** In SFRA Billing and Sgipping are on the same page controlled by CSS and JS; with this validation we'll be able\r\n     *\tto set the button from the current stage we're on.\r\n     */\r\n    if (checkoutStage == \"shipping\") {\r\n        var setEmailPhoneCallback = function () {\r\n            edqEmailPhoneValidationCallback({\r\n                \"edqEmailEnable\": edqEmailEnable,\r\n                \"edqEmailLineElement\": edqEmailLineElement,\r\n                \"edqPhoneEnable\": edqPhoneEnable,\r\n                \"edqPhoneLineElements\": edqPhoneLineElements,\r\n                \"pageRestrictValidation\": window.sfccConfig.pageRestrictValidation,\r\n                \"edqValidateEmail\": edqValidateEmail,\r\n                \"edqValidatePhone\": edqValidatePhone,\r\n                \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton\r\n            });\r\n        };\r\n        addEventOnElement({ \"selector\": \"[value=submit-shipping]\", \"event\": \"focus\", \"fn\": setEmailPhoneCallback });\r\n    }\r\n    else if (checkoutStage == \"payment\") {\r\n        window.sfccConfig.edqCurrentSubmitButton = document.querySelector(\"[value=submit-payment]\");\r\n        var setEmailPhoneCallback = function () {\r\n            edqEmailPhoneValidationCallback({\r\n                \"edqEmailEnable\": edqEmailEnable,\r\n                \"edqEmailLineElement\": edqEmailLineElement,\r\n                \"edqPhoneEnable\": edqPhoneEnable,\r\n                \"edqPhoneLineElements\": edqPhoneLineElements,\r\n                \"pageRestrictValidation\": window.sfccConfig.pageRestrictValidation,\r\n                \"edqValidateEmail\": edqValidateEmail,\r\n                \"edqValidatePhone\": edqValidatePhone,\r\n                \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton\r\n            });\r\n        };\r\n        addEventOnElement({ \"selector\": \"[value=submit-payment]\", \"event\": \"focus\", \"fn\": setEmailPhoneCallback });\r\n    }\r\n    EdqEmailPhoneValidationHelper({\r\n        \"edqEmailEnable\": edqEmailEnable,\r\n        \"edqEmailLineElement\": edqEmailLineElement,\r\n        \"edqPhoneEnable\": edqPhoneEnable,\r\n        \"edqPhoneLineElements\": edqPhoneLineElements,\r\n        \"pageRestrictValidation\": window.sfccConfig.pageRestrictValidation,\r\n        \"edqValidateEmail\": edqValidateEmail,\r\n        \"edqValidatePhone\": edqValidatePhone,\r\n        \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton\r\n    });\r\n}\r\nexports.edqEmailPhoneValidationCallback = edqEmailPhoneValidationCallback;\r\nfunction EdqEmailPhoneValidationHelper(_a) {\r\n    var edqEmailEnable = _a.edqEmailEnable, edqEmailLineElement = _a.edqEmailLineElement, edqPhoneEnable = _a.edqPhoneEnable, edqPhoneLineElements = _a.edqPhoneLineElements, pageRestrictValidation = _a.pageRestrictValidation, edqValidateEmail = _a.edqValidateEmail, edqValidatePhone = _a.edqValidatePhone, edqCurrentSubmitButton = _a.edqCurrentSubmitButton;\r\n    if ((edqEmailEnable) && (edqEmailLineElement)) {\r\n        edqEmailValidation_1.edqEmailValidationCallback({\r\n            \"edqValidateEmail\": edqValidateEmail,\r\n            \"pageRestrictValidation\": window.sfccConfig.pageRestrictValidation,\r\n            \"edqEmailLineElement\": edqEmailLineElement,\r\n            \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton\r\n        });\r\n    }\r\n    if ((edqPhoneEnable) && (edqPhoneLineElements)) {\r\n        edqPhoneValidation_1.edqPhoneValidationCallback({\r\n            \"edqValidatePhone\": edqValidatePhone,\r\n            \"pageRestrictValidation\": window.sfccConfig.pageRestrictValidation,\r\n            \"edqPhoneLineElements\": edqPhoneLineElements,\r\n            \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton\r\n        });\r\n    }\r\n}\r\nexports.EdqEmailPhoneValidationHelper = EdqEmailPhoneValidationHelper;\r\n\n\n//# sourceURL=webpack://EdqDemandware.sfra/../src/utils/edq-utils.ts?");
193
194                /***/
195            }),
196
197        /***/
198        
198"../src/utils/edqCountry.ts":
199            /*!**********************************!*\
200              !*** ../src/utils/edqCountry.ts ***!
201              \**********************************/
202            /*! no static exports found */
203            /***/
204            (function(module, exports, __webpack_require__) {
205
206                "use strict";
207                eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n;\r\nvar countryDict = [];\r\ncountryDict.push({ key: \"AF\", value: \"AFG\" }, { key: \"AX\", value: \"ALA\" }, { key: \"AL\", value: \"ALB\" }, { key: \"DZ\", value: \"DZA\" }, { key: \"AS\", value: \"ASM\" }, { key: \"AD\", value: \"AND\" }, { key: \"AO\", value: \"AGO\" }, { key: \"AI\", value: \"AIA\" }, { key: \"AQ\", value: \"ATA\" }, { key: \"AG\", value: \"ATG\" }, { key: \"AR\", value: \"ARG\" }, { key: \"AM\", value: \"ARM\" }, { key: \"AW\", value: \"ABW\" }, { key: \"AU\", value: \"AUS\" }, { key: \"AT\", value: \"AUT\" }, { key: \"AZ\", value: \"AZE\" }, { key: \"BS\", value: \"BHS\" }, { key: \"BH\", value: \"BHR\" }, { key: \"BD\", value: \"BGD\" }, { key: \"BB\", value: \"BRB\" }, { key: \"BY\", value: \"BLR\" }, { key: \"BE\", value: \"BEL\" }, { key: \"BZ\", value: \"BLZ\" }, { key: \"BJ\", value: \"BEN\" }, { key: \"BM\", value: \"BMU\" }, { key: \"BT\", value: \"BTN\" }, { key: \"BO\", value: \"BOL\" }, { key: \"BA\", value: \"BIH\" }, { key: \"BW\", value: \"BWA\" }, { key: \"BV\", value: \"BVT\" }, { key: \"BR\", value: \"BRA\" }, { key: \"VG\", value: \"VGB\" }, { key: \"IO\", value: \"IOT\" }, { key: \"BN\", value: \"BRN\" }, { key: \"BG\", value: \"BGR\" }, { key: \"BF\", value: \"BFA\" }, { key: \"BI\", value: \"BDI\" }, { key: \"KH\", value: \"KHM\" }, { key: \"CM\", value: \"CMR\" }, { key: \"CA\", value: \"CAN\" }, { key: \"CV\", value: \"CPV\" }, { key: \"KY\", value: \"CYM\" }, { key: \"CF\", value: \"CAF\" }, { key: \"TD\", value: \"TCD\" }, { key: \"CL\", value: \"CHL\" }, { key: \"CN\", value: \"CHN\" }, { key: \"HK\", value: \"HKG\" }, { key: \"MO\", value: \"MAC\" }, { key: \"CX\", value: \"CXR\" }, { key: \"CC\", value: \"CCK\" }, { key: \"CO\", value: \"COL\" }, { key: \"KM\", value: \"COM\" }, { key: \"CG\", value: \"COG\" }, { key: \"CD\", value: \"COD\" }, { key: \"CK\", value: \"COK\" }, { key: \"CR\", value: \"CRI\" }, { key: \"CI\", value: \"CIV\" }, { key: \"HR\", value: \"HRV\" }, { key: \"CU\", value: \"CUB\" }, { key: \"CY\", value: \"CYP\" }, { key: \"CZ\", value: \"CZE\" }, { key: \"DK\", value: \"DNK\" }, { key: \"DJ\", value: \"DJI\" }, { key: \"DM\", value: \"DMA\" }, { key: \"DO\", value: \"DOM\" }, { key: \"EC\", value: \"ECU\" }, { key: \"EG\", value: \"EGY\" }, { key: \"SV\", value: \"SLV\" }, { key: \"GQ\", value: \"GNQ\" }, { key: \"ER\", value: \"ERI\" }, { key: \"EE\", value: \"EST\" }, { key: \"ET\", value: \"ETH\" }, { key: \"FK\", value: \"FLK\" }, { key: \"FO\", value: \"FRO\" }, { key: \"FJ\", value: \"FJI\" }, { key: \"FI\", value: \"FIN\" }, { key: \"FR\", value: \"FRA\" }, { key: \"GF\", value: \"GUF\" }, { key: \"PF\", value: \"PYF\" }, { key: \"TF\", value: \"ATF\" }, { key: \"GA\", value: \"GAB\" }, { key: \"GM\", value: \"GMB\" }, { key: \"GE\", value: \"GEO\" }, { key: \"DE\", value: \"DEU\" }, { key: \"GH\", value: \"GHA\" }, { key: \"GI\", value: \"GIB\" }, { key: \"GR\", value: \"GRC\" }, { key: \"GL\", value: \"GRL\" }, { key: \"GD\", value: \"GRD\" }, { key: \"GP\", value: \"GLP\" }, { key: \"GU\", value: \"GUM\" }, { key: \"GT\", value: \"GTM\" }, { key: \"GG\", value: \"GGY\" }, { key: \"GN\", value: \"GIN\" }, { key: \"GW\", value: \"GNB\" }, { key: \"GY\", value: \"GUY\" }, { key: \"HT\", value: \"HTI\" }, { key: \"HM\", value: \"HMD\" }, { key: \"VA\", value: \"VAT\" }, { key: \"HN\", value: \"HND\" }, { key: \"HU\", value: \"HUN\" }, { key: \"IS\", value: \"ISL\" }, { key: \"IN\", value: \"IND\" }, { key: \"ID\", value: \"IDN\" }, { key: \"IR\", value: \"IRN\" }, { key: \"IQ\", value: \"IRQ\" }, { key: \"IE\", value: \"IRL\" }, { key: \"IM\", value: \"IMN\" }, { key: \"IL\", value: \"ISR\" }, { key: \"IT\", value: \"ITA\" }, { key: \"JM\", value: \"JAM\" }, { key: \"JP\", value: \"JPN\" }, { key: \"JE\", value: \"JEY\" }, { key: \"JO\", value: \"JOR\" }, { key: \"KZ\", value: \"KAZ\" }, { key: \"KE\", value: \"KEN\" }, { key: \"KI\", value: \"KIR\" }, { key: \"KP\", value: \"PRK\" }, { key: \"KR\", value: \"KOR\" }, { key: \"KW\", value: \"KWT\" }, { key: \"KG\", value: \"KGZ\" }, { key: \"LA\", value: \"LAO\" }, { key: \"LV\", value: \"LVA\" }, { key: \"LB\", value: \"LBN\" }, { key: \"LS\", value: \"LSO\" }, { key: \"LR\", value: \"LBR\" }, { key: \"LY\", value: \"LBY\" }, { key: \"LI\", value: \"LIE\" }, { key: \"LT\", value: \"LTU\" }, { key: \"LU\", value: \"LUX\" }, { key: \"MK\", value: \"MKD\" }, { key: \"MG\", value: \"MDG\" }, { key: \"MW\", value: \"MWI\" }, { key: \"MY\", value: \"MYS\" }, { key: \"MV\", value: \"MDV\" }, { key: \"ML\", value: \"MLI\" }, { key: \"MT\", value: \"MLT\" }, { key: \"MH\", value: \"MHL\" }, { key: \"MQ\", value: \"MTQ\" }, { key: \"MR\", value: \"MRT\" }, { key: \"MU\", value: \"MUS\" }, { key: \"YT\", value: \"MYT\" }, { key: \"MX\", value: \"MEX\" }, { key: \"FM\", value: \"FSM\" }, { key: \"MD\", value: \"MDA\" }, { key: \"MC\", value: \"MCO\" }, { key: \"MN\", value: \"MNG\" }, { key: \"ME\", value: \"MNE\" }, { key: \"MS\", value: \"MSR\" }, { key: \"MA\", value: \"MAR\" }, { key: \"MZ\", value: \"MOZ\" }, { key: \"MM\", value: \"MMR\" }, { key: \"NA\", value: \"NAM\" }, { key: \"NR\", value: \"NRU\" }, { key: \"NP\", value: \"NPL\" }, { key: \"NL\", value: \"NLD\" }, { key: \"AN\", value: \"ANT\" }, { key: \"NC\", value: \"NCL\" }, { key: \"NZ\", value: \"NZL\" }, { key: \"NI\", value: \"NIC\" }, { key: \"NE\", value: \"NER\" }, { key: \"NG\", value: \"NGA\" }, { key: \"NU\", value: \"NIU\" }, { key: \"NF\", value: \"NFK\" }, { key: \"MP\", value: \"MNP\" }, { key: \"NO\", value: \"NOR\" }, { key: \"OM\", value: \"OMN\" }, { key: \"PK\", value: \"PAK\" }, { key: \"PW\", value: \"PLW\" }, { key: \"PS\", value: \"PSE\" }, { key: \"PA\", value: \"PAN\" }, { key: \"PG\", value: \"PNG\" }, { key: \"PY\", value: \"PRY\" }, { key: \"PE\", value: \"PER\" }, { key: \"PH\", value: \"PHL\" }, { key: \"PN\", value: \"PCN\" }, { key: \"PL\", value: \"POL\" }, { key: \"PT\", value: \"PRT\" }, { key: \"PR\", value: \"PRI\" }, { key: \"QA\", value: \"QAT\" }, { key: \"RE\", value: \"REU\" }, { key: \"RO\", value: \"ROU\" }, { key: \"RU\", value: \"RUS\" }, { key: \"RW\", value: \"RWA\" }, { key: \"BL\", value: \"BLM\" }, { key: \"SH\", value: \"SHN\" }, { key: \"KN\", value: \"KNA\" }, { key: \"LC\", value: \"LCA\" }, { key: \"MF\", value: \"MAF\" }, { key: \"PM\", value: \"SPM\" }, { key: \"VC\", value: \"VCT\" }, { key: \"WS\", value: \"WSM\" }, { key: \"SM\", value: \"SMR\" }, { key: \"ST\", value: \"STP\" }, { key: \"SA\", value: \"SAU\" }, { key: \"SN\", value: \"SEN\" }, { key: \"RS\", value: \"SRB\" }, { key: \"SC\", value: \"SYC\" }, { key: \"SL\", value: \"SLE\" }, { key: \"SG\", value: \"SGP\" }, { key: \"SK\", value: \"SVK\" }, { key: \"SI\", value: \"SVN\" }, { key: \"SB\", value: \"SLB\" }, { key: \"SO\", value: \"SOM\" }, { key: \"ZA\", value: \"ZAF\" }, { key: \"GS\", value: \"SGS\" }, { key: \"SS\", value: \"SSD\" }, { key: \"ES\", value: \"ESP\" }, { key: \"LK\", value: \"LKA\" }, { key: \"SD\", value: \"SDN\" }, { key: \"SR\", value: \"SUR\" }, { key: \"SJ\", value: \"SJM\" }, { key: \"SZ\", value: \"SWZ\" }, { key: \"SE\", value: \"SWE\" }, { key: \"CH\", value: \"CHE\" }, { key: \"SY\", value: \"SYR\" }, { key: \"TW\", value: \"TWN\" }, { key: \"TJ\", value: \"TJK\" }, { key: \"TZ\", value: \"TZA\" }, { key: \"TH\", value: \"THA\" }, { key: \"TL\", value: \"TLS\" }, { key: \"TG\", value: \"TGO\" }, { key: \"TK\", value: \"TKL\" }, { key: \"TO\", value: \"TON\" }, { key: \"TT\", value: \"TTO\" }, { key: \"TN\", value: \"TUN\" }, { key: \"TR\", value: \"TUR\" }, { key: \"TM\", value: \"TKM\" }, { key: \"TC\", value: \"TCA\" }, { key: \"TV\", value: \"TUV\" }, { key: \"UG\", value: \"UGA\" }, { key: \"UA\", value: \"UKR\" }, { key: \"AE\", value: \"ARE\" }, { key: \"GB\", value: \"GBR\" }, { key: \"US\", value: \"USA\" }, { key: \"UM\", value: \"UMI\" }, { key: \"UY\", value: \"URY\" }, { key: \"UZ\", value: \"UZB\" }, { key: \"VU\", value: \"VUT\" }, { key: \"VE\", value: \"VEN\" }, { key: \"VN\", value: \"VNM\" }, { key: \"VI\", value: \"VIR\" }, { key: \"WF\", value: \"WLF\" }, { key: \"EH\", value: \"ESH\" }, { key: \"YE\", value: \"YEM\" }, { key: \"ZM\", value: \"ZMB\" }, { key: \"ZW\", value: \"ZWE\" });\r\n/**\r\n * Searches for the Store Country code ISO-2 and returns the ISO-3 code.\r\n * @param {string} incomingCountryIso2\r\n *\r\n * @returns {string}\r\n */\r\nfunction countryAlpha3(_a) {\r\n    var incomingCountryIso2 = _a.incomingCountryIso2, vDefaultCountry = _a.vDefaultCountry;\r\n    var iso2ToIso3CountryDict;\r\n    countryDict.forEach(function (val) { iso2ToIso3CountryDict = (incomingCountryIso2.match(val.ke
207y)) ? val.value : iso2ToIso3CountryDict; });\r\n    return iso2ToIso3CountryDict || vDefaultCountry;\r\n}\r\nexports.countryAlpha3 = countryAlpha3;\r\n/**\r\n * Searches for the Store Country code ISO-3 and returns the ISO-2 code.\r\n * @param incomingCountryIso3\r\n *\r\n * @returns\r\n */\r\nfunction countryAlpha2(_a) {\r\n    var incomingCountryIso3 = _a.incomingCountryIso3;\r\n    return countryDict.filter(function (countryKeyAndValue) {\r\n        return countryKeyAndValue.value === incomingCountryIso3;\r\n    })[0] || null;\r\n}\r\nexports.countryAlpha2 = countryAlpha2;\r\n\n\n//# sourceURL=webpack://EdqDemandware.sfra/../src/utils/edqCountry.ts?");
208
209                /***/
210            }),
211
212        /***/
213        
213"../src/utils/edqEmailValidation.ts":
214            /*!******************************************!*\
215              !*** ../src/utils/edqEmailValidation.ts ***!
216              \******************************************/
217            /*! no static exports found */
218            /***/
219            (function(module, exports, __webpack_require__) {
220
221                "use strict";
222                eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n/*eslint no-unused-vars: \"error\"*/\r\nvar edq_utils_1 = __webpack_require__(/*! ./edq-utils */ \"../src/utils/edq-utils.ts\");\r\nvar notifyMeBtn = document.querySelector(\"#notify-me-btn\");\r\nif(notifyMeBtn) {\r\n    notifyMeBtn.addEventListener(\"click\", () => {\r\n                setemailModal();\r\n                edqSetEmailValidationConfiguration();\r\n    });\r\n}\r\n/**\r\n * Email validation\r\n * Sets the configuration to use Email Validate\r\n *\r\n * @param args.edqEmailAuthorizationToken - Contains the email authorization token for the Email Validate API\r\n * @param args.edqEmailLineSelector - Contains the selector of the email input to be validated\r\n */\r\nfunction edqSetEmailValidationConfiguration(_a) {\r\n    var edqEmailAuthorizationToken = _a.edqEmailAuthorizationToken, edqEmailLineElement = _a.edqEmailLineElement;\r\n    window.EdqConfig.EMAIL_VALIDATE_AUTH_TOKEN = edqEmailAuthorizationToken;\r\n    window.EdqConfig.EMAIL_TIMEOUT = '30000';\r\n    window.EdqConfig.EMAIL_ELEMENTS = [\r\n        edqEmailLineElement\r\n    ];\r\n}\r\nexports.edqSetEmailValidationConfiguration = edqSetEmailValidationConfiguration;\r\n/**\r\n * Will manage the access restriction when Email Validation is being used.\r\n *\r\n * @param edqValidateEmail - Enables or disables the Email Validation usage\r\n * @param pageRestrictValidation - Enables or disables the page restriction for the page to go to next page on email status\r\n * @param edqEmailLineElement - Contains the selector of the email input to be validated\r\n * @param edqCurrentSubmitButton - Contains the submit button that'll be managed to validate the page restriction\r\n */\r\nfunction edqEmailValidationCallback(_a) {\r\n    var edqValidateEmail = _a.edqValidateEmail, pageRestrictValidation = _a.pageRestrictValidation, edqEmailLineElement = _a.edqEmailLineElement, edqCurrentSubmitButton = _a.edqCurrentSubmitButton;\r\n    /**\r\n     * Allow users to continue with invalid email;\r\n     * based on the Business Manager configuration we can set if we want to prevent the user to go through with an invalid Email.\r\n     * For more information refer to task #101729.\r\n     */\r\n    if ((edqValidateEmail) && (window.sfccConfig.pageRestrictValidation)) {\r\n        if (edqEmailLineElement.hasAttribute(\"edq-metadata\")) {\r\n            var edqEmailResponse = JSON.parse(edqEmailLineElement.getAttribute(\"edq-metadata\"));\r\n            if ((edqEmailResponse[\"Certainty\"] == \"verified\") || (edqEmailResponse[\"Certainty\"] == \"unknown\")) {\r\n                window.sfccConfig.pageRestrictValidation = true;\r\n                edq_utils_1.enableButtonDisable({ \"buttonToDisable\": window.sfccConfig.edqCurrentSubmitButton, \"buttonStatus\": false, \"formSubmitButton\": document.querySelector(\"#form-submit\") });\r\n            }\r\n            else {\r\n                window.sfccConfig.pageRestrictValidation = false;\r\n\r\n                if($('#edq-email-suggestion').length > 0) {\r\n                    $('html, body').animate({\r\n                            scrollTop: $('#edq-email-suggestion').parents('.form-group').offset().top\r\n                    }, 500)\r\n                }\r\n\r\n                edq_utils_1.enableButtonDisable({ \"buttonToDisable\": window.sfccConfig.edqCurrentSubmitButton, \"buttonStatus\": false, \"formSubmitButton\": document.querySelector(\"#form-submit\") });\r\n            }\r\n        }\r\n    }\r\n}\r\nexports.edqEmailValidationCallback = edqEmailValidationCallback;\r\n\n\n//# sourceURL=webpack://EdqDemandware.sfra/../src/utils/edqEmailValidation.ts?");
223
224                /***/
225            }),
226
227        /***/
228        
228"../src/utils/edqGlobalIntuitive.ts":
229            /*!******************************************!*\
230              !*** ../src/utils/edqGlobalIntuitive.ts ***!
231              \******************************************/
232            /*! no static exports found */
233            /***/
234            (function(module, exports, __webpack_require__) {
235
236                "use strict";
237                eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar edqCountry_1 = __webpack_require__(/*! ./edqCountry */ \"../src/utils/edqCountry.ts\");\r\nvar edq_utils_1 = __webpack_require__(/*! ./edq-utils */ \"../src/utils/edq-utils.ts\");\r\nvar sfra_1 = __webpack_require__(/*! ../sfra */ \"../src/sfra.ts\");\r\n/**\r\n * Global Intuitive\r\n * Sets the configuration to use Global Intuitive\r\n *\r\n *@param vDefaultCountry - Contains the default country value provided by the store configuration\r\n *@param edqAuthorizationToken - Contains the Global Intuitive authorization token for the Email Validate API\r\n *@param edqDataSetCode - Contains the code for the dataset to be used\r\n *@param edqCountryElement - Contains the selector of the country input\r\n *@param edqAddressLine1Element - Contains the selector of the address line 1 input\r\n *@param edqAddressLine2Element - Contains the selector of the address line 2 input\r\n *@param edqAddressLine3Element - Contains the selector of the address line 3 input\r\n *@param edqCityLineElement - Contains the selector of the city line input\r\n *@param edqStateLineElement - Contains the selector of the state line input\r\n *@param edqPostalLineElement - Contains the selector of the postal code input\r\n */\r\nfunction edqSetGlobalIntuitiveConfiguration(_a) {\r\n    var vDefaultCountry = _a.vDefaultCountry, edqAuthorizationToken = _a.edqAuthorizationToken, edqDataSetUsage = _a.edqDataSetUsage, edqDataSetCode = _a.edqDataSetCode, edqCountryElement = _a.edqCountryElement, edqAddressLine1Element = _a.edqAddressLine1Element, edqAddressLine2Element = _a.edqAddressLine2Element, edqAddressLine3Element = _a.edqAddressLine3Element, edqCityLineElement = _a.edqCityLineElement, edqStateLineElement = _a.edqStateLineElement, edqPostalLineElement = _a.edqPostalLineElement;\r\n    var globalIntuitiveIsoCountry = vDefaultCountry;\r\n    if (window.sfccConfig.edqCountryElement != null) {\r\n        globalIntuitiveIsoCountry = window.sfccConfig.edqCountryElement.value;\r\n    }\r\n    window.EdqConfig.GLOBAL_INTUITIVE_AUTH_TOKEN = edqAuthorizationToken;\r\n    window.EdqConfig.GLOBAL_INTUITIVE_ISO3_COUNTRY = edqCountry_1.countryAlpha3({ \"incomingCountryIso2\": globalIntuitiveIsoCountry, \"vDefaultCountry\": vDefaultCountry });\r\n    if (globalIntuitiveIsoCountry === 'JP') {\r\n        window.EdqConfig.GLOBAL_INTUITIVE_ELEMENT = window.sfccConfig.edqPostalLineElement;\r\n    } else {\r\n        window.EdqConfig.GLOBAL_INTUITIVE_ELEMENT = window.sfccConfig.edqAddressLine1Element;\r\n    }\r\n    window.EdqConfig.GLOBAL_INTUITIVE_USE_CURRENT_LOCATION = window.sfccConfig.edqGlobalIntuitiveUseCurrentLocation;\r\n\r\n    if (navigator.geolocation && window.EdqConfig.GLOBAL_INTUITIVE_USE_CURRENT_LOCATION) {\r\n        if(sessionStorage.latitude && sessionStorage.longitude) {\r\n            window.EdqConfig.GLOBAL_INTUITIVE_LOCATION = `${sessionStorage.latitude}, ${sessionStorage.longitude}`;\r\n        } else {\r\n            navigator.geolocation.getCurrentPosition(getBrowserCoord, getServerCoord);\r\n\r\n            function getBrowserCoord(position) {\r\n                const latitude = position.coords.latitude;\r\n                const longitude = position.coords.longitude;\r\n                sessionStorage.setItem('latitude', latitude);\r\n                sessionStorage.setItem('longitude', longitude);\r\n                if (latitude && longitude) {\r\n                    window.EdqConfig.GLOBAL_INTUITIVE_LOCATION = `${latitude}, ${longitude}`;\r\n                }\r\n            }\r\n\r\n            function getServerCoord() {\r\n                var coordinates = document.querySelector(\"[name=shipping-cordinates]\").value;\r\n                if (coordinates) {\r\n                    window.EdqConfig.GLOBAL_INTUITIVE_LOCATION = co
237ordinates;\r\n                }\r\n            }\r\n        }\r\n    }\r\n    \r\n    /**\r\n     * Configuration option to include Data Sets for Global Intuitive.\r\n     * For more information refer to feature #118583.\r\n     */\r\n    if (edqDataSetUsage) {\r\n        window.EdqConfig.GLOBAL_INTUITIVE_DATASET = edqDataSetCode;\r\n    }\r\n    window.EdqConfig.GLOBAL_INTUITIVE_MAPPING = [\r\n        {\r\n            field: window.sfccConfig.edqAddressLine1Element,\r\n            elements: [\"address.addressLine1\"]\r\n        },\r\n        {\r\n            field: window.sfccConfig.edqAddressLine2Element,\r\n            elements: [\"address.addressLine2\"]\r\n        },\r\n        {\r\n            field: window.sfccConfig.edqAddressLine3Element,\r\n            elements: [\"address.addressLine3\"]\r\n        },\r\n        {\r\n            field: window.sfccConfig.edqCityLineElement,\r\n            elements: [\"address.locality\"]\r\n        },\r\n        {\r\n            field: window.sfccConfig.edqStateLineElement,\r\n            elements: [\"address.province\"]\r\n        },\r\n        {\r\n            field: window.sfccConfig.edqPostalLineElement,\r\n            elements: [\"address.postalCode\"]\r\n        },\r\n    ];\r\n}\r\nexports.edqSetGlobalIntuitiveConfiguration = edqSetGlobalIntuitiveConfiguration;\r\n/**\r\n * Will check if the country has a value when Global Intuitive has being used and set the Country value if this null.\r\n *\r\n *@param edqCountryElement - Contains the selector of the country input\r\n *@param edqAddressLine1Element - Contains the selector of the address line 1 input\r\n */\r\nfunction setCountryField(event, _a) {\r\n    var edqCountryElement = _a.edqCountryElement, edqAddressLine1Element = _a.edqAddressLine1Element;\r\n    setTimeout(function () {\r\n        if (edqCountryElement !== null && edqCountryElement.value === \"\" && edqAddressLine1Element.hasAttribute(\"edq-metadata\")) {\r\n            edqCountryElement.value = edqCountry_1.countryAlpha2({ \"incomingCountryIso3\": window.EdqConfig.GLOBAL_INTUITIVE_ISO3_COUNTRY })[\"key\"];\r\n        }\r\n    }, 5000);\r\n}\r\nexports.setCountryField = setCountryField;\r\n/**\r\n * Browser autofill triggers Global Intuitive Suggestion box and proceed to the billing stage the suggestion address box doesn't dissapear.\r\n * For more information see Bug #142988\r\n *\r\n * @param edqGlobalIntuitiveSuggestionsSelector - Contains the selector \".edq-global-intuitive-address-suggestions\"\r\n */\r\nfunction removeGlobalIntuitiveSuggestionBox(_a) {\r\n    var edqGlobalIntuitiveSuggestionsSelector = _a.edqGlobalIntuitiveSuggestionsSelector;\r\n    if ((edqGlobalIntuitiveSuggestionsSelector)\r\n        && (edqGlobalIntuitiveSuggestionsSelector.style.display == \"block\")) {\r\n        var edqGlobalIntuitiveSuggestionBox = edqGlobalIntuitiveSuggestionsSelector;\r\n        edqGlobalIntuitiveSuggestionBox.style.display = \"none\";\r\n    }\r\n}\r\nexports.removeGlobalIntuitiveSuggestionBox = removeGlobalIntuitiveSuggestionBox;\r\n/**\r\n * In SFRA the checkout web page contains both billing and shipping in a single page controlled by JavaScript to hide/show elements.\r\n * The setCheckoutFormEvents is intended to set all input address fields variables depending on the stage we are(billing/shipping);\r\n * the selectors choose by this function just appear once the stage is completed; once we click on the selector the other will\r\n * be going to the stage that we're selecting and the will continue the regular workflow.\r\n *\r\n * @param edqCountryElement - Contains the selector of the country input\r\n * @param reloadGIjs - Contains the value to reload Global Intuitive\r\n * @param edqGlobalIntuitiveUnicornJsPath - Contains the Global Intuitive url\r\n * @param edqGlobalIntuitiveIntegrityKey - Contains the Global Intuitive integrity key\r\n */\r\nfunction setCheckoutFormEvents(_a) {\r\n    var reloadGIjs = _a.reloadGIjs, edqGlobalIntuitiveUnicornJsPath = _a.edqGlobalIntuitiveUnicornJsPath, edqGlobalIntuitiveIntegrityKey = _a.edqGlobalIntuitiveIntegrityKey, vDefaultCountry = _a.vDefaultCountry, edqAuthorizationToken = _a.edqAuthorizationToken, edqDataSetUsage = _a.edqDataSetUsage, edqDataSetCode = _a.edqDataSetCode, edqCountryElement = _a.edqCountryElement, edqAddressLine1Element = _a.edqAddressLine1Element, edqAddressLine2Element = _a.edqAddressLine2Element, edqAddressLine3Element = _a.edqAddressLine3Element, edqCityLineElement = _a.edqCityLineElement, edqStateLineElement = _a.edqStateLineElement, edqPostalLineElement = _a.edqPostalLineElement;\r\n    if (edqCountryElement != null) {\r\n        if (edqCountryElement.value === \"\") {\r\n            edqCountryElement.value = \"US\";\r\n        }\r\n    }\r\n    /**\r\n     * Autofill after selecting a suggested address is broken.\r\n     * By doing this we can refresh the configuration for Global Intuitive in Checkout stage; we can toogle between\r\n     * shipping and billing address elements; since the webpage doesn't reload, all elements are controlled by js and css;\r\n     * the listeners are set to refresh the configuration for Global Intuitive.\r\n     * For more information see Bug #125898.\r\n     */\r\n    var setEventsForRegistration = function () {\r\n        setEventsForListeners({ \"checkoutStage\": \"\",\r\n            \"vDefaultCountry\": vDefaultCountry,\r\n            \"edqAuthorizationToken\": edqAuthorizationToken,\r\n            \"edqDataSetUsage\": edqDataSetUsage,\r\n            \"edqDataSetCode\": edqDataSetCode,\r\n            \"edqCountryElement\": edqCountryElement,\r\n            \"edqAddressLine1Element\": edqAddressLine1Element,\r\n            \"edqAddressLine2Element\": edqAddressLine2Element,\r\n            \"edqAddressLine3Element\": edqAddressLine3Element,\r\n            \"edqCityLineElement\": edqCityLineElement,\r\n            \"edqStateLineElement\": edqStateLineElement,\r\n            \"edqPostalLineElement\": edqPostalLineElement });\r\n    };\r\n    var setEventsForBilling = function () {\r\n        setEventsForListeners({ \"checkoutStage\": \"billing\",\r\n            \"vDefaultCountry\": vDefaultCountry,\r\n            \"edqAuthorizationToken\": edqAuthorizationToken,\r\n            \"edqDataSetUsage\": edqDataSetUsage,\r\n            \"edqDataSetCode\": edqDataSetCode,\r\n            \"edqCountryElement\": edqCountryElement,\r\n            \"edqAddressLine1Element\": edqAddressLine1Element,\r\n            \"edqAddressLine2Element\": edqAddressLine2Element,\r\n            \"edqAddressLine3Element\": edqAddressLine3Element,\r\n            \"edqCityLineElement\": edqCityLineElement,\r\n            \"edqStateLineElement\": edqStateLineElement,\r\n            \"edqPostalLineElement\": edqPostalLineElement });\r\n        if (reloadGIjs) {\r\n            /** Autofill not working on billing address at all\r\n             * By doing this in the checkout stage for SFRA we can remove the global-intuitive-unicorn.js in order to force to reload all the content with\r\n             * the new parameters that we're including, since the webpage doesn't do a refresh items we're not changing values\r\n             * For more information see Bug #126164 */\r\n            $(\"script[src=\\\"\" + window.sfccConfig.edqGlobalIntuitiveUnicornJsPath + \"\\\"]\").remove();\r\n            $(\"<script>\").attr({\r\n                src: window.sfccConfig.edqGlobalIntuitiveUnicornJsPath,\r\n                integrity: edqGlobalIntuitiveIntegrityKey,\r\n                crossorigin: \"anonymous\"\r\n            }).appendTo(\"body\");\r\n            reloadGIjs = false;\r\n        }\r\n    };\r\n    var setEventsForAddressSection = function () {\r\n        setEventsForListeners({ \"checkoutStage\": \"addressSection\",\r\n            \"vDefaultCountry\": vDefaultCountry,\r\n            \"edqAuthorizationToken\": edqAuthorizationToken,\r\n            \"edqDataSetUsage\": edqDataSetUsage,\r\n            \"edqDataSetCode\": edqDataSetCode,\r\n            \"edqCountryElement\": edqCountryElement,\r\n            \"edqAddressLine1Element\": edqAddressLine1Element,\r\n            \"edqAddressLine2Element\": edqAddressLine2Element,\r\n            \"edqAddressLine3Element\": edqAddressLine3Element,\r\n            \"edqCityLineElement\": edqCityLineElement,\r\n            \"edqStateLineElement\": edqStateLineElement,\r\n            \"edqPostalLineElement\": edqPostalLineElement });\r\n        if (reloadGIjs) {\r\n            /** Autofill not working on billing address at all\r\n             * By doing this in the checkout stage for SFRA we can remove the global-intuitive-unicorn.js in order to force to reload all the content with\r\n             * the new parameters that we're including, since the webpage doesn't do a refresh items we're not changing values\r\n             * For more information see Bug #126164 */\r\n            $(\"script[src=\\\"\" + window.sfccConfig.edqGlobalIntuitiveUnicornJsPath + \"\\\"]\").remove();\r\n            $(\"<script>\").attr({\r\n                src: window.sfccConfig.edqGlobalIntuitiveUnicornJsPath,\r\n                integrity: edqGlobalIntuitiveIntegrityKey,\r\n                crossorigin: \"anonymous\"\r\n            }).appendTo(\"body\");\r\n            reloadGIjs = false;\r\n        }\r\n    };\r\n    var setEventsForEditCheckoutAddressSection = function () {\r\n        setEventsForListeners({ \"checkoutStage\": \"EditCheckoutAddressSection\",\r\n            \"vDefaultCountry\": vDefaultCountry,\r\n            \"edqAuthorizationToken\": edqAuthorizationToken,\r\n            \"edqDataSetUsage\": edqDataSetUsage,\r\n            \"edqDataSetCode\": edqDataSetCode,\r\n            \"edqCountryElement\": edqCountryElement,\r\n            \"edqAddressLine1Element\": edqAddressLine1Element,\r\n            \"edqAddressLine2Element\": edqAddressLine2Element,\r\n            \"edqAddressLine3Element\": edqAddressLine3Element,\r\n            \"edqCityLineElement\": edqCityLineElement,\r\n            \"edqStateLineElement\": edqStateLineElement,\r\n            \"edqPostalLineElement\": edqPostalLineElement });\r\n        if (reloadGIjs) {\r\n            /** Autofill not working on billing address at all\r\n             * By doing this in the checkout stage for SFRA we can remove the global-intuitive-unicorn.js in order to force to reload all the content with\r\n             * the new parameters that we're including, since the webpage doesn't do a refresh items we're not changing values\r\n             * For more information see Bug #126164 */\r\n            $(\"script[src=\\\"\" + window.sfccConfig.edqGlobalIntuitiveUnicornJsPath + \"\\\"]\").remove();\r\n            $(\"<script>\").attr({\r\n                src: window.sfccConfig.edqGlobalIntuitiveUnicornJsPath,\r\n                integrity: edqGlobalIntuitiveIntegrityKey,\r\n                crossorigin: \"anonymous\"\r\n            }).appendTo(\"body\");\r\n            reloadGIjs = false;\r\n        }\r\n    };\r\n    var setEventsForShipping = function (e) {\r\n        setEventsForListeners({ \"checkoutStage\": \"shipping\",\r\n            \"vDefaultCountry\": vDefaultCountry,\r\n            \"edqAuthorizationToken\": edqAuthorizationToken,\r\n            \"edqDataSetUsage\": edqDataSetUsage,\r\n            \"edqDataSetCode\": edqDataSetCode,\r\n            \"edqCountryElement\": edqCountryElement,\r\n            \"edqAddressLine1Element\": edqAddressLine1Element,\r\n            \"edqAddressLine2Element\": edqAddressLine2Element,\r\n            \"edqAddressLine3Element\": edqAddressLine3Element,\r\n            \"edqCityLineElement\": edqCityLineElement,\r\n            \"edqStateLineElement\": edqStateLineElement,\r\n            \"edqPostalLineElement\": edqPostalLineElement });\r\n    };\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"#country\", \"event\": \"change\", \"fn\": setEventsForRegistration });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \".addressBookflyout.is-opened .shippingCountry\", \"event\": \"change\", \"fn\": setEventsForAddressSection });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \".shipping-address-form [name=dwfrm_address_country]\", \"event\": \"change\", \"fn\": setEventsForEditCheckoutAddressSection });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"[name=dwfrm_shipping_shippingAddress_addressFields_country]\", \"event\": \"change\", \"fn\": setEventsForShipping });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"[name=dwfrm_billing_addressFields_country]\", \"event\": \"change\", \"fn\": setEventsForBilling });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"#editShipping\", \"event\": \"click\", \"fn\": setEventsForShipping });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"[name=edqShippingAddAddress]\", \"event\": \"click\", \"fn\": setEventsForShipping });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"[name=edqShippingEditAddress]\", \"event\": \"click\", \"fn\": setEventsForShipping });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \".address-selector-block\", \"event\": \"click\", \"fn\": setEventsForBilling });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"#dwfrm_billing\", \"event\": \"click\", \"fn\": setEventsForBilling });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"[value=submit-shipping]\", \"event\": \"click\", \"fn\": removeGlobalIntuitiveSuggestionBox });\r\n}\r\nexports.setCheckoutFormEvents = setCheckoutFormEvents;\r\n/**\r\n * Set the events for the checkout stage; if shipping stage is selected this function will set the events\r\n * for shipping and when the stage changes to billing the function will set the events for the billing stage.\r\n *\r\n * @param checkoutStage - Contains the stage(shipping/billing) for the checkout page in SFRA\r\n */\r\nfunction setEventsForListeners(_a) {\r\n    var checkoutStage = _a.checkoutStage, vDefaultCountry = _a.vDefaultCountry, edqAuthorizationToken = _a.edqAuthorizationToken, edqDataSetUsage = _a.edqDataSetUsage, edqDataSetCode = _a.edqDataSetCode, edqCountryElement = _a.edqCountryElement, edqAddressLine1Element = _a.edqAddressLine1Element, edqAddressLine2Element = _a.edqAddressLine2Element, edqAddressLine3Element = _a.edqAddressLine3Element, edqCityLineElement = _a.edqCityLineElement, edqStateLineElement = _a.edqStateLineElement, edqPostalLineElement = _a.edqPostalLineElement;\r\n    sfra_1.setEdqInputSelectors({ \"stageContentLocation\": checkoutStage });\r\n    edqSetGlobalIntuitiveConfiguration({ vDefaultCountry: vDefaultCountry, edqAuthorizationToken: edqAuthorizationToken, edqDataSetUsage: edqDataSetUsage, edqDataSetCode: edqDataSetCode, edqCountryElement: edqCountryElement, edqAddressLine1Element: edqAddressLine1Element, edqAddressLine2Element: edqAddressLine2Element, edqAddressLine3Element: edqAddressLine3Element, edqCityLineElement: edqCityLineElement, edqStateLineElement: edqStateLineElement, edqPostalLineElement: edqPostalLineElement }); /* fn() */\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"[name=\" + edqAddressLine1Element.name + \"]\", \"event\": \"keypress\", \"fn\": function (e) { setCountryField(e, { \"edqCountryElement\": edqCountryElement, \"edqAddressLine1Element\": edqAddressLine1Element }); } });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"[name=\" + edqAddressLine1Element.name + \"]\", \"event\": \"mouseleave\", \"fn\": function (e) { setCountryField(e, { \"edqCountryElement\": edqCountryElement, \"edqAddressLine1Element\": edqAddressLine1Element }); } });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"[name=\" + edqAddressLine1Element.name + \"]\", \"event\": \"mouseenter\", \"fn\": function (e) { setCountryField(e, { \"edqCountryElement\": edqCountryElement, \"edqAddressLine1Element\": edqAddressLine1Element }); } });\r\n}\r\nexports.setEventsForListeners = setEventsForListeners;\r\n/**\r\n * Global Intuitive creating multiple elements of suggestion box\r\n * By doing this we remove all edq-verification-suggestion-box that are created; except the one we're using.\r\n * For more information see Bug #108100\r\n *\r\n * @param edqSuggestionBox - Contains the selector \"#edq-verification-suggestion-box\"\r\n */\r\nfunction removeMultipleEDQSuggestion(_a) {\r\n    var edqSuggestionBox = _a.edqSuggestionBox;\r\n    for (var i = 0; i < edqSuggestionBox
237.length; i++) {\r\n        edqSuggestionBox[i].parentNode.removeChild(edqSuggestionBox[i]);\r\n    }\r\n}\r\nexports.removeMultipleEDQSuggestion = removeMultipleEDQSuggestion;\r\n\n\n//# sourceURL=webpack://EdqDemandware.sfra/../src/utils/edqGlobalIntuitive.ts?");
238
239                /***/
240            }),
241
242        /***/
243        
243"../src/utils/edqPhoneValidation.ts":
244            /*!******************************************!*\
245              !*** ../src/utils/edqPhoneValidation.ts ***!
246              \******************************************/
247            /*! no static exports found */
248            /***/
249            (function(module, exports, __webpack_require__) {
250
251                "use strict";
252                eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar edq_utils_1 = __webpack_require__(/*! ./edq-utils */ \"../src/utils/edq-utils.ts\");\r\n/**\r\n * Phone validation\r\n * Sets the configuration to use Global Phone Validate\r\n *\r\n * @param edqAuthorizationToken - Contains the email authorization token for the Email Validate API\r\n * @param edqPhoneLineElements - Contains the selector of the phone input to be validated\r\n */\r\nfunction edqSetPhoneValidationConfiguration(_a) {\r\n    var edqAuthorizationToken = _a.edqAuthorizationToken, edqPhoneLineElements = _a.edqPhoneLineElements;\r\n    window.EdqConfig.GLOBAL_PHONE_VALIDATE_AUTH_TOKEN = edqAuthorizationToken;\r\n    window.EdqConfig.PHONE_TIMEOUT = '3500';\r\n    window.EdqConfig.REVERSE_PHONE_APPEND_MAPPINGS = [];\r\n    window.EdqConfig.PHONE_ELEMENTS = edqPhoneLineElements;\r\n}\r\nexports.edqSetPhoneValidationConfiguration = edqSetPhoneValidationConfiguration;\r\n/**\r\n * Will manage the access restriction when Phone Validation is being used.\r\n *\r\n * @param edqValidatePhone - Enables or disables the Phone Validation usage\r\n * @param pageRestrictValidation - Enables or disables the page restriction for the page to go to next page on phone status\r\n * @param edqPhoneLineElements - Contains the selector of the phone input to be validated\r\n * @param edqCurrentSubmitButton - Contains the submit button that'll be managed to validate the page restriction\r\n */\r\nfunction edqPhoneValidationCallback(_a) {\r\n    var edqValidatePhone = _a.edqValidatePhone, pageRestrictValidation = _a.pageRestrictValidation, edqPhoneLineElements = _a.edqPhoneLineElements, edqCurrentSubmitButton = _a.edqCurrentSubmitButton;\r\n    /**\r\n     * Allow users to continue with invalid phone;\r\n     * based on the Business Manager configuration we can set if we want to prevent the user to go through with an invalid phone.\r\n     * For more information refer to task #101729.\r\n     */\r\n    if ((edqValidatePhone) && (window.sfccConfig.pageRestrictValidation)) {\r\n        edqPhoneLineElements.forEach(function (phoneSelector) {\r\n            if (phoneSelector.hasAttribute(\"edq-metadata\")) {\r\n                var edqPhoneResponse = JSON.parse(phoneSelector.getAttribute(\"edq-metadata\"));\r\n                if (edqPhoneResponse[\"Certainty\"] == \"Verified\") {\r\n                    window.sfccConfig.pageRestrictValidation = true;\r\n                    edq_utils_1.enableButtonDisable({ \"buttonToDisable\": window.sfccConfig.edqCurrentSubmitButton, \"buttonStatus\": false, \"formSubmitButton\": document.querySelector(\"#form-submit\") });\r\n                }\r\n                else {\r\n                    window.sfccConfig.pageRestrictValidation = false;\r\n                    edq_utils_1.enableButtonDisable({ \"buttonToDisable\": window.sfccConfig.edqCurrentSubmitButton, \"buttonStatus\": false, \"formSubmitButton\": document.querySelector(\"#form-submit\") });\r\n                }\r\n            }\r\n        });\r\n    }\r\n}\r\nexports.edqPhoneValidationCallback = edqPhoneValidationCallback;\r\n\n\n//# sourceURL=webpack://EdqDemandware.sfra/../src/utils/edqPhoneValidation.ts?");
253
254                /***/
255            }),
256
257        /***/
258        
258"../src/utils/edqProWebVerification.ts":
259            /*!*********************************************!*\
260              !*** ../src/utils/edqProWebVerification.ts ***!
261              \*********************************************/
262            /*! no static exports found */
263            /***/
264            (function(module, exports, __webpack_require__) {
265
266                "use strict";
267                eval("\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar edqCountry_1 = __webpack_require__(/*! ./edqCountry */ \"../src/utils/edqCountry.ts\");\r\nvar edq_utils_1 = __webpack_require__(/*! ./edq-utils */ \"../src/utils/edq-utils.ts\");\r\nvar sfra_1 = __webpack_require__(/*! ../sfra */ \"../src/sfra.ts\");\r\n/**\r\n * Pro Web - Address (Verification Engine)\r\n * Sets the configuration to use Pro Web - Address (Verification Engine)\r\n *\r\n * @param formSubmitButton - Contains the form submit created by the cartridge\r\n * @param vDefaultCountry - Contains the default country value provided by the store configuration\r\n * @param edqAuthorizationToken - Contains the Pro Web authorization token for the Email Validate API\r\n * @param edqCountryElement - Contains the selector of the country input\r\n * @param edqProWebAddressLayout - Contains the layout to be used\r\n * @param edqAddressLine1Element - Contains the selector of the address line 1 input\r\n * @param edqAddressLine2Element - Contains the selector of the address line 2 input\r\n * @param edqCityLineElement - Contains the selector of the city line input\r\n * @param edqStateLineElement - Contains the selector of the state line input\r\n * @param edqPostalLineElement - Contains the selector of the postal code input\r\n */\r\nfunction edqSetProWebConfiguration(_a) {\r\n    var formSubmitButton = _a.formSubmitButton, vDefaultCountry = _a.vDefaultCountry, edqAuthorizationToken = _a.edqAuthorizationToken, edqCountryElement = _a.edqCountryElement, edqProWebAddressLayout = _a.edqProWebAddressLayout, edqAddressLine1Element = _a.edqAddressLine1Element, edqAddressLine2Element = _a.edqAddressLine2Element, edqAddressLine3Element = _a.edqAddressLine3Element, edqCityLineElement = _a.edqCityLineElement, edqStateLineElement = _a.edqStateLineElement, edqPostalLineElement = _a.edqPostalLineElement;\r\n    var proWebIsoCountry = vDefaultCountry;\r\n    if (edqCountryElement != null) {\r\n        proWebIsoCountry = edqCountryElement.value;\r\n    }\r\n    window.EdqConfig.PRO_WEB_TIMEOUT = '3500';\r\n    window.EdqConfig.PRO_WEB_AUTH_TOKEN = edqAuthorizationToken;\r\n    window.EdqConfig.PRO_WEB_SUBMIT_TRIGGERS = [\r\n        {\r\n            type: \"click\",\r\n            element: formSubmitButton,\r\n        }\r\n    ];\r\n    window.EdqConfig.PRO_WEB_LAYOUT = edqProWebAddressLayout;\r\n    window.EdqConfig.PRO_WEB_COUNTRY = edqProWebCountryOverride || edqCountry_1.countryAlpha3({ \"incomingCountryIso2\": proWebIsoCountry, \"vDefaultCountry\": vDefaultCountry });\r\n    window.EdqConfig.PRO_WEB_CALLBACK = window.sfccConfig.edqProWebCallback;\r\n    const addressMapping = [\r\n        {\r\n            field: window.sfccConfig.edqAddressLine1Element,\r\n            elements: [\"address.addressLine1\"],\r\n            modalFieldSelector: \"#interaction-address--original-address-line-one\",\r\n        },\r\n        {\r\n            field: window.sfccConfig.edqAddressLine2Element,\r\n            elements: [\"address.addressLine2\"],\r\n            transformation: function (el) { return \"@\" + (el.value || el.innerText); },\r\n            modalFieldSelector: \"#interaction-address--original-address-line-two\",\r\n        },\r\n        {\r\n            field: window.sfccConfig.edqCityLineElement,\r\n            elements: [\"address.locality\"],\r\n            transformation: function (el) { return \"@\" + (el.value || el.innerText); },\r\n            modalFieldSelector: \"#interaction-address--original-locality\",\r\n        },\r\n        {\r\n            field: window.sfccConfig.edqStateLineElement,\r\n            elements: [\"address.province\"],\r\n            transformation: function (el) { return (el && (el.value || el.innerText) === \"null\") ? \"@\" : (el.value || el.innerText).trim(); },\r\n            modalFieldSelector: \"#interaction-address--original-prov
267ince\",\r\n        },\r\n        {\r\n            field: window.sfccConfig.edqPostalLineElement,\r\n            elements: [\"address.postalCode\"],\r\n            modalFieldSelector: \"#interaction-address--original-postal-code\",\r\n        },\r\n    ];\r\n    if(proWebIsoCountry === 'FR' || proWebIsoCountry ==='GB' || proWebIsoCountry === 'DE')\r\n    {addressMapping.splice(2,0,{\r\n            field: window.sfccConfig.edqAddressLine3Element,\r\n            elements: [\"address.addressLine3\"],\r\n            transformation: function (el) { return \"@\" + (el.value || el.innerText); },\r\n            modalFieldSelector: \"#interaction-address--original-address-line-three\",\r\n            });\r\n        }\r\n    window.EdqConfig.PRO_WEB_MAPPING = (proWebIsoCountry === 'FR' || proWebIsoCountry === 'GB')\r\n        ? addressMapping.filter(map => !(Array.isArray(map.elements) && map.elements.includes(\"address.province\")))\r\n        : addressMapping;\r\n    window.EdqConfig.VERIFICATION_MODAL_OVERRIDES = {\r\n        modalHeader: {\r\n            updated: window.sfccConfig.headerUpdateAddressText,\r\n            unverified: window.sfccConfig.headerUnverifiedAddressText,\r\n        },\r\n        interactionRequired: {\r\n            updatedAddressHeader: window.sfccConfig.headerInteractionUpdateAddressText,\r\n            originalAddressHeader: window.sfccConfig.labelOriginalAddressText,\r\n            useOriginalAddress: window.sfccConfig.labelUseOriginalAddressText,\r\n            useUpdatedAddress: window.sfccConfig.labelUseUpdatedAddressText,\r\n            searchPlaceholder: window.sfccConfig.searchPlaceHolderAddressText,\r\n        }\r\n    };\r\n}\r\nexports.edqSetProWebConfiguration = edqSetProWebConfiguration;\r\n/**\r\n * Will manage custom code from the client to verify the results from Pro Web Address Verification callback.\r\n *\r\n * @param edqProWebMetaDataJSON - Contains all the information form the attribute \"edq-metadata\"\r\n *\r\n * @returns boolean\r\n */\r\nfunction edqProWebExecuteTransitionCallBack(_a) {\r\n    var edqProWebMetaDataJSON = _a.edqProWebMetaDataJSON, edqCustomCallbackName = _a.edqCustomCallbackName;\r\n    var edqCustomFunctionName = edqCustomCallbackName;\r\n    var edqJsonParameter = [edqProWebMetaDataJSON];\r\n    var edqCustomTransitionCallback = window[edqCustomFunctionName];\r\n    try {\r\n        if (typeof edqCustomTransitionCallback === \"function\") {\r\n            return edqCustomTransitionCallback.apply(null, edqJsonParameter);\r\n        } else {\r\n            if (window.sfccConfig.edqAddressLine1Element) {\r\n                window.sfccConfig.edqAddressLine1Element.value = window.sfccConfig.edqAddressLine1Element.value.substring(0, 35);\r\n            }\r\n            if (window.sfccConfig.edqAddressLine2Element) {\r\n                window.sfccConfig.edqAddressLine2Element.value = window.sfccConfig.edqAddressLine2Element.value.substring(0, 35);\r\n            }\r\n            if (window.sfccConfig.edqAddressLine3Element) {\r\n                window.sfccConfig.edqAddressLine3Element.value = window.sfccConfig.edqAddressLine3Element.value.substring(0, 35);\r\n            }\r\n            return true;\r\n        }\r\n    }\r\n    catch (err) {\r\n        return true;\r\n    }\r\n}\r\nexports.edqProWebExecuteTransitionCallBack = edqProWebExecuteTransitionCallBack;\r\n/**\r\n * Manage the configuration in the checkout stage(Billing/Shipping) when the stage changes.\r\n * @param {string} checkoutStage\r\n * @param {string} edqCurrentSubmitButton\r\n */\r\nfunction setEventsForListenersProWeb(_a) {\r\n    var checkoutStage = _a.checkoutStage, edqCurrentSubmitButton = _a.edqCurrentSubmitButton, formSubmitButton = _a.formSubmitButton, vDefaultCountry = _a.vDefaultCountry, edqAuthorizationToken = _a.edqAuthorizationToken, edqCountryElement = _a.edqCountryElement, edqProWebAddressLayout = _a.edqProWebAddressLayout, edqAddressLine1Element = _a.edqAddressLine1Element, edqAddressLine2Element = _a.edqAddressLine2Element, edqAddressLine3Element = _a.edqAddressLine3Element, edqCityLineElement = _a.edqCityLineElement, edqStateLineElement = _a.edqStateLineElement, edqPostalLineElement = _a.edqPostalLineElement;\r\n    sfra_1.setEdqInputSelectors({ \"stageContentLocation\": checkoutStage });\r\n    if (checkoutStage !== \"billing\") {\r\n        buttonCssSeetings({ \"formSubmitButton\": window.sfccConfig.edqCurrentSubmitButton, \"edqCurrentSubmitButton\": formSubmitButton });\r\n    }\r\n    edqSetProWebConfiguration({ \"formSubmitButton\": formSubmitButton,\r\n        \"vDefaultCountry\": vDefaultCountry,\r\n        \"edqAuthorizationToken\": edqAuthorizationToken,\r\n        \"edqCountryElement\": edqCountryElement,\r\n        \"edqProWebAddressLayout\": edqProWebAddressLayout,\r\n        \"edqAddressLine1Element\": edqAddressLine1Element,\r\n        \"edqAddressLine2Element\": edqAddressLine2Element,\r\n        \"edqAddressLine3Element\": edqAddressLine3Element,\r\n        \"edqCityLineElement\": edqCityLineElement, \"edqStateLineElement\": edqStateLineElement,\r\n        \"edqPostalLineElement\": edqPostalLineElement });\r\n}\r\nexports.setEventsForListenersProWeb = setEventsForListenersProWeb;\r\n/**\r\n * Set the events depending the touchpoint (Shipping/Billing/Address) for Pro Web.\r\n */\r\nfunction edqCheckoutPageWorkflows(_a) {\r\n    var edqCurrentSubmitButton = _a.edqCurrentSubmitButton, formSubmitButton = _a.formSubmitButton, vDefaultCountry = _a.vDefaultCountry, edqAuthorizationToken = _a.edqAuthorizationToken, edqCountryElement = _a.edqCountryElement, edqProWebAddressLayout = _a.edqProWebAddressLayout, edqAddressLine1Element = _a.edqAddressLine1Element, edqAddressLine2Element = _a.edqAddressLine2Element, edqAddressLine3Element = _a.edqAddressLine3Element, edqCityLineElement = _a.edqCityLineElement, edqStateLineElement = _a.edqStateLineElement, edqPostalLineElement = _a.edqPostalLineElement;\r\n    /**\r\n     * This is intended to hide the form button in initial load of the page; just to show verification engine button in the form.\r\n     */\r\n    if (window.sfccConfig.edqCurrentSubmitButton) {\r\n        window.sfccConfig.edqCurrentSubmitButton.style.display = \"none\";\r\n    }\r\n    /**\r\n     * Potential misconfiguration of checkout process.\r\n     * By doing this we can refresh the configuration for Pro Web in Checkout stage; we can toogle between\r\n     * shipping and billing address elements; since the webpage doesn't reload, all elements are controlled by js and css;\r\n     * the listeners are set to refresh the configuration for Pro Web.\r\n     * For more information refer to task #101727.\r\n     */\r\n    var setEventsForRegistrationStage = function () {\r\n        setEventsForListenersProWeb({ \"checkoutStage\": \"\",\r\n            \"edqCurrentSubmitButton\": document.querySelector(\"[name=save]\"),\r\n            \"formSubmitButton\": formSubmitButton,\r\n            \"vDefaultCountry\": vDefaultCountry,\r\n            \"edqAuthorizationToken\": edqAuthorizationToken,\r\n            \"edqCountryElement\": edqCountryElement,\r\n            \"edqProWebAddressLayout\": edqProWebAddressLayout,\r\n            \"edqAddressLine1Element\": edqAddressLine1Element,\r\n            \"edqAddressLine2Element\": edqAddressLine2Element,\r\n            \"edqAddressLine3Element\": edqAddressLine3Element,\r\n            \"edqCityLineElement\": edqCityLineElement,\r\n            \"edqStateLineElement\": edqStateLineElement,\r\n            \"edqPostalLineElement\": edqPostalLineElement });\r\n    };\r\n    var setEventsForBillingStage = function () {\r\n        setEventsForListenersProWeb({ \"checkoutStage\": \"billing\",\r\n            \"edqCurrentSubmitButton\": document.querySelector(\"[value=submit-payment]\"),\r\n            \"formSubmitButton\": formSubmitButton,\r\n            \"vDefaultCountry\": vDefaultCountry,\r\n            \"edqAuthorizationToken\": edqAuthorizationToken,\r\n            \"edqCountryElement\": edqCountryElement,\r\n            \"edqProWebAddressLayout\": edqProWebAddressLayout,\r\n            \"edqAddressLine1Element\": edqAddressLine1Element,\r\n            \"edqAddressLine2Element\": edqAddressLine2Element,\r\n            \"edqAddressLine3Element\": edqAddressLine3Element,\r\n            \"edqCityLineElement\": edqCityLineElement,\r\n            \"edqStateLineElement\": edqStateLineElement,\r\n            \"edqPostalLineElement\": edqPostalLineElement });\r\n    };\r\n    var setEventsForShippingStage = function () {\r\n        edq_utils_1.enableButtonDisable({ \"buttonToDisable\": document.querySelector(\"[value=submit-shipping]\"), \"buttonStatus\": false, \"formSubmitButton\": formSubmitButton });\r\n        setEventsForListenersProWeb({ \"checkoutStage\": \"shipping\",\r\n            \"edqCurrentSubmitButton\": document.querySelector(\"[value=submit-shipping]\"),\r\n            \"formSubmitButton\": formSubmitButton || document.querySelector(\"[value=submit-shipping]\"),\r\n            \"vDefaultCountry\": vDefaultCountry,\r\n            \"edqAuthorizationToken\": edqAuthorizationToken,\r\n            \"edqCountryElement\": edqCountryElement,\r\n            \"edqProWebAddressLayout\": edqProWebAddressLayout,\r\n            \"edqAddressLine1Element\": edqAddressLine1Element,\r\n            \"edqAddressLine2Element\": edqAddressLine2Element,\r\n            \"edqAddressLine3Element\": edqAddressLine3Element,\r\n            \"edqCityLineElement\": edqCityLineElement,\r\n            \"edqStateLineElement\": edqStateLineElement,\r\n            \"edqPostalLineElement\": edqPostalLineElement });\r\n    };\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"#country\", \"event\": \"change\", \"fn\": setEventsForRegistrationStage });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"#editShipping\", \"event\": \"mousedown\", \"fn\": setEventsForShippingStage });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \".shipping-address-block\", \"event\": \"click\", \"fn\": setEventsForShippingStage });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"#editPayment\", \"event\": \"mousedown\", \"fn\": setEventsForBillingStage });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \".billing-address\", \"event\": \"click\", \"fn\": setEventsForBillingStage });\r\n    edq_utils_1.addEventOnElement({ \"selector\": \"#dwfrm_billing\", \"event\": \"focus\", \"fn\": setEventsForBillingStage });\r\n}\r\nexports.edqCheckoutPageWorkflows = edqCheckoutPageWorkflows;\r\n/**\r\n * Pro Web Address Verification callback\r\n *\r\n * @param formSubmitButton - Contains the form submit created by the cartridge\r\n * @param edqStateLineElement - Contains the selector of the state line input\r\n */\r\nfunction edqValidateAddressCallBack(_a) {\r\n    var formSubmitButton = _a.formSubmitButton, edqStateLineElement = _a.edqStateLineElement, edqProWebCallbackValidation = _a.edqProWebCallbackValidation, edqCustomCallbackName = _a.edqCustomCallbackName, edqCurrentSubmitButton = _a.edqCurrentSubmitButton;\r\n    var edqProWebMetaDataJSON;\r\n    var edqProWebResponse = formSubmitButton;\r\n    if (edqProWebResponse.getAttribute(\"edq-metadata\")) {\r\n        edqProWebMetaDataJSON = JSON.parse(edqProWebResponse.getAttribute(\"edq-metadata\"));\r\n        edqStateLineElement.value = edqProWebMetaDataJSON[\"address.province\"];\r\n        formSubmitButton.removeAttribute(\"edq-metadata\");\r\n    }\r\n    if (edqProWebCallbackValidation) {\r\n        if (edqProWebExecuteTransitionCallBack({ edqProWebMetaDataJSON: edqProWebMetaDataJSON, edqCustomCallbackName: edqCustomCallbackName })) {\r\n            buttonCssSeetings({ \"formSubmitButton\": formSubmitButton, \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton });\r\n            window.sfccConfig.edqCurrentSubmitButton.click();\r\n        }\r\n    }\r\n    else {\r\n        buttonCssSeetings({ \"formSubmitButton\": formSubmitButton, \"edqCurrentSubmitButton\": window.sfccConfig.edqCurrentSubmitButton });\r\n        window.sfccConfig.edqCurrentSubmitButton.click();\r\n    }\r\n}\r\nexports.edqValidateAddressCallBack = edqValidateAddressCallBack;\r\n/**\r\n * Manage the button settings for the Button \"form-submit\", depending on the touchpoint.\r\n *\r\n * @param formSubmitButton - Contains the form submit created by the cartridge\r\n * @param edqCurrentSubmitButton - Contains the current submit page button\r\n */\r\nfunction buttonCssSeetings(_a) {\r\n    var formSubmitButton = _a.formSubmitButton, edqCurrentSubmitButton = _a.edqCurrentSubmitButton;\r\n    formSubmitButton.style.display = \"none\";\r\n    edqCurrentSubmitButton.style.display = \"block\";\r\n    edqCurrentSubmitButton.removeAttribute(\"style\");\r\n}\r\nexports.buttonCssSeetings = buttonCssSeetings;\r\n\n\n//# sourceURL=webpack://EdqDemandware.sfra/../src/utils/edqProWebVerification.ts?");
268
269                /***/
270            })
270
271
272        /******/
273    });
274});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.