{"version":3,"file":"common~account.widgets~checkout.widgets.bundle.js","mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;AACA;AACA,6BAAe,oCAAUA,QAAqE,EAAE;EAC5F;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI,MAAMC,iBAAiB,SAASD,QAAQ,CAAC;IACrC;AACR;AACA;AACA;AACA;AACA;IACQE,WAAWA,CAACC,IAAI,EAAE;MACd,IAAIA,IAAI,CAACC,OAAO,EAAE;QACd;AAChB;AACA;AACA;QACgB,IAAI,CAACC,kBAAkB,CAAC,WAAW,EAAEF,IAAI,CAAC;MAC9C,CAAC,MAAM;QACH,KAAK,CAACD,WAAW,CAACC,IAAI,CAAC;MAC3B;IACJ;EACJ;EAEA,OAAOF,iBAAiB;AAC5B;;;;;;;;;;;;;;ACzEA;AACA;AACA;AACA;AACA,6BAAe,oCAAUK,UAAyE,EAAE;EAChG;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI,MAAMC,qBAAqB,SAASD,UAAU,CAAC;IAG3C;AACR;AACA;IACQE,IAAIA,CAAA,EAAS;MACT,KAAK,CAACA,IAAI,CAAC,CAAC;MAEZ,mLAAmD,CAACC,IAAI,CAAEC,MAAM,IAAK;QACjE,MAAMC,MAAM,GAAGD,MAAM,CAACE,OAAO;QAE7B,IAAI,CAACF,MAAM,GAAG,IAAIC,MAAM,CAAC,IAAI,CAACE,GAAG,CAAC,OAAO,CAAC,CAACC,GAAG,CAAC,CAAC,EAAE;UAC9CC,uBAAuB,EAAE,I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CAACC,WAAW,CAAC,IAAI,CAAClB,MAAM,CAACC,WAAW,CAAC;QAC1D,CAAC,CAAC;MACN;IACJ;EACJ;EAEA,OAAOR,WAAW;AACtB;;;;;;;;;;;;;;ACpIA;AACA;AACA;AACA;AACA,6BAAe,oCAAU0B,SAAuE,EAAE;EAC9F;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI,MAAMC,iBAAiB,SAASD,SAAS,CAAC;IACtCzB,KAAKA,CAAA,EAAG;MACJ,OAAO;QACHO,WAAW,EAAE,IAAI;QACjB,GAAG,KAAK,CAACP,KAAK,CAAC;MACnB,CAAC;IACL;;IAEA;AACR;AACA;AACA;AACA;IACQwB,WAAWA,CAACjB,WAAW,EAAE;MACrB,IAAI,CAACoB,OAAO,CAAC,aAAa,EAAEpB,WAAW,CAAC;IAC5C;EACJ;EAEA,OAAOmB,iBAAiB;AAC5B;;;;;;;;;;;;;;;AChCmC;;AAEnC;AACA;AACA;AACA;AACA,6BAAe,oCAAUA,iBAAuF,EAAE;EAC9G;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI,MAAMK,uBAAuB,SAASL,iBAAiB,CAAC;IACpD;AACR;AACA;AACA;IACQ7C,IAAIA,CAAA,EAAG;MACH,KAAK,CAACA,IAAI,CAAC,CAAC;;MAEZ;MACA,IAAI,CAACmD,MAAM,GAAG,KAAK;IACvB;;IAEA;AACR;AACA;AACA;AACA;IACQC,WAAWA,CAAA,EAAG;MACV;MACA,IAAI,IAAI,CAACD,MAAM,EAAE;QACb;MACJ;MAEAJ,4EAAiB,CAAC,IAAI,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AAwB,CAAC;UACvCC,OAAO,EAAEtC;QACb,CAAC,CAAC;MACN;IACJ;EACJ;EAEA,OAAOwB,uBAAuB;AAClC;;;;;;;;;;;;;;AC1JA;AACA;AACA;AACA;AACA,6BAAe,oCAAU1D,QAAqE,EAAE;EAC5F;AACJ;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EAGI,MAAMyE,SAAS,SAASzE,QAAQ,CAAC;IAC7B;AACR;AACA;AACA;AACA;IACQ0E,aAAaA,CAAA,EAAG;MACZ;MACA,IAAI,CAAC/B,OAAO,CAAC,2BAA2B,EAAEgC,yBAAyB,IAAIA,yBAAyB,CAACC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;IACnH;EACJ;EAEA,OAAOH,SAAS;AACpB;;;;;;;;;;;;;;;;;;;;;;;ACnEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AASA,IAAII,SAAwB;AAC5B,IAAIC,cAAc;AAClB,IAAIC,WAAW,GAAG,KAAK;AAEvB,MAAMC,qBAAqB,GAAG,IAAIC,OAAO,CAAEC,OAAO,IAAK;EACnDJ,cAAc,GAAGI,OAAO;AAC5B,CAAC,CAAC;;AAEF;AACA;AACA;AACA;AACAC,MAAM,CAACC,qBAAqB,GAAG,MAAM;EACjCP,SAAS,GAAGM,MAAM,CAACE,MAAM;EAEzBP,cAAc,CAAC,CAAC;AACpB,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA,SAASQ,6BAA6BA,CAACd,OAAO,EAAE;EAC5C,MAAMvC,MAAM,GAAG;IACXsD,Q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,WAAW,EAAE;EAC5D,OAAOvE,SAAS,CAACiD,IAAI,CAACuB,QAAQ,CAACC,SAAS,CAACJ,sBAAsB,CAACC,UAAU,EAAEC,WAAW,CAAC;AAC5F;;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS3F,YAAYA,CAACW,iBAAiB,EAAEI,OAAO,EAAE;EACrD,MAAM+E,aAAa,GAAGjE,6BAA6B,CAACd,OAAO,CAAC;EAC5D,MAAMhC,OAAO,GAAGgH,MAAM,CAACC,IAAI,CAACF,aAAa,CAAC,CAACG,MAAM,CAAC,CAACC,aAAa,EAAE7F,KAAK,KAAK;IACxE6F,aAAa,CAAC7F,KAAK,CAAC,GAAGqC,eAAe,CAAC/B,iBAAiB,EAAEmF,aAAa,CAACzF,KAAK,CAAC,CAAC;IAE/E,OAAO6F,aAAa;EACxB,CAAC,EAAE,CAAC,CAAC,CAAC;EAEN,OAAO1E,OAAO,CAACC,OAAO,CAAC1C,OAAO,CAAC;AACnC","sources":["webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/account/PasswordResetForm.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/checkout/InputCreditCardNumber.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/forms/AddressForm.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/forms/AutocompleteField.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/forms/GoogleAutocompleteField.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/forms/ajax/LoginForm.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/toolbox/googleMgr.ts"],"sourcesContent":["/**\n * @param AjaxForm Base widget for extending\n * @returns PasswordResetForm widget\n */\nexport default function (AjaxForm: ReturnType<typeof import('widgets/forms/AjaxForm').default>) {\n    /**\n     * @category widgets\n     * @subcategory account\n     * @class PasswordResetForm\n     * @augments AjaxForm\n     * @classdesc Represents PasswordResetForm component with next features:\n     * 1. Allow fire {@link PasswordResetForm#event:submitted} event on success response from backend\n     * 3. The main purpose of the widget is emit event that form was successfully submitted\n     *\n     * PasswordResetDialogForm widget should be a part of {@link PasswordResetModal} widgets that implement modal\n     * Widget has next relationship:\n     * * PasswordResetForm fire {@link PasswordResetForm#event:submitted} event that {@link PasswordResetModal} listens\n     * @property {string} data-widget - Widget name `PasswordResetForm`\n     * @example <caption>Example of PasswordResetForm widget usage</caption>\n     * <form\n     *      class=\"reset-password-form\"\n     *      action=\"${URLUtils.url('Account-PasswordResetDialogForm', 'mobile', pdict.mobile)}\"\n     *      method=\"POST\"\n     *      name=\"email-form\"\n     *      id=\"email-form\"\n     *      data-widget=\"passwordResetForm\"\n     *      data-id=\"passwordResetForm\"\n     *      data-event-submit.prevent=\"handleSubmit\"\n     *      data-widget-event-submitted=\"showModal\"\n     *  >\n     *      <div data-ref=\"errorMessageLabel\"></div>\n     *      {{^receivedMsgBody}}\n     *          <isprint value=\"${\n     *              formElement(pdict.profileForm.resetPassword.email).render()\n     *          }\" encoding=\"off\"/>\n     *          <div class=\"b-dialog-footer m-actions\">\n     *              <button\n     *                  type=\"submit\"\n     *                  class=\"b-button m-width_full\"\n     *                  data-widget=\"button\"\n     *                  data-widget-event-click=\"handleSubmit\"\n     *                  data-event-click.prevent=\"handleClick\"\n     *                  data-ref=\"lastFocusElement\"\n     *                  data-tau=\"forgot_password_submit\"\n     *                  data-id=\"submitButton\"\n     *              >\n     *                  ${Resource.msg('form.passwordReset.submit','forms',null)}\n     *              </button>\n     *          </div>\n     *      {{/receivedMsgBody}}\n     *  </form>\n     */\n    class PasswordResetForm extends AjaxForm {\n        /**\n         * @description Handle server response\n         * @emits PasswordResetForm#submitted\n         * @param {object} data - response data\n         * @returns {void}\n         */\n        onSubmitted(data) {\n            if (data.success) {\n                /**\n                 * @description Event to submitted form\n                 * @event PasswordResetForm#submitted\n                 */\n                this.emitWithoutContext('submitted', data);\n            } else {\n                super.onSubmitted(data);\n            }\n        }\n    }\n\n    return PasswordResetForm;\n}\n","/**\n * @param BasicInput Base widget for extending\n * @returns Credit Card Number Input widget\n */\nexport default function (BasicInput: ReturnType<typeof import('widgets/forms/BasicInput').default>) {\n    /**\n     * @category widgets\n     * @subcategory checkout\n     * @class InputCreditCardNumber\n     * @augments BasicInput\n     * @classdesc Represents credit card input field with next features:\n     * 1. Initializes cleave on widget's field\n     * 2. Overlaps {@link BasicInput#getValue} method to get not masked value from cleave\n     * @example <caption>Dynamicforms config for credir card field</caption>\n     * cardNumber: {\n     *     widget: {\n     *         type: 'inputCreditCardNumber'\n     *     },\n     *     extends: 'fields.input.text',\n     *     'label.text': 'form.payment.card.number',\n     *     'caption.show': true,\n     *     'caption.text': 'form.payment.card.number.caption',\n     *     validation: {\n     *         'patterns.parse': 'validation.patterns.parse.cardnumber',\n     *         'errors.parse': 'validation.errors.parse'\n     *     },\n     *     element: {\n     *         required: true,\n     *         attributes: {\n     *            autocomplete: 'cc-number',\n     *             inputmode: 'numeric'\n     *         }\n     *     }\n     *  }\n     */\n    class InputCreditCardNumber extends BasicInput {\n        private cleave: typeof import('cleave.js');\n\n        /**\n         * @description Initialize widget logic\n         */\n        init(): void {\n            super.init();\n\n            import(/* webpackChunkName: 'cleave' */'cleave.js').then((cleave) => {\n                const Cleave = cleave.default;\n\n                this.cleave = new Cleave(this.ref('field').get(), {\n                    onCreditCardTypeChanged: this.onCreditCardTypeChanged.bind(this),\n                    creditCard: true,\n                    delimiter: ' '\n                });\n\n                this.onDestroy(() => {\n                    if (this.cleave) {\n                        this.cleave.destroy();\n                        this.cleave = undefined;\n                    }\n                });\n            });\n        }\n\n        /**\n         * @description Emit event after user fill credit card into input\n         * @param type Type of credit card\n         * @emits InputCreditCardNumber#creditcardtypechanged\n         */\n        onCreditCardTypeChanged(type: string): void {\n            this.emit('creditcardtypechanged', type);\n        }\n\n        /**\n         * @description Get credit card raw value\n         * @returns Credit card raw value\n         */\n        getValue(): string {\n            if (this.cleave) {\n                return this.cleave.getRawValue();\n            }\n\n            return super.getValue();\n        }\n    }\n\n    return InputCreditCardNumber;\n}\n","/**\n * @typedef {InstanceType<ReturnType<typeof import('widgets/forms/BasicInput').default>>} basicInput\n *\n */\n\n/**\n * @param AjaxForm Base widget for extending\n * @returns Address Form widget\n */\nexport default function (AjaxForm: ReturnType<typeof import('widgets/forms/AjaxForm').default>) {\n    /**\n     * @category widgets\n     * @subcategory forms\n     * @class AddressForm\n     * @augments AjaxForm\n     * @classdesc Address form component with next features:\n     * 1. Initiates form definition update and autocomplete config on country change event.\n     * 2. After triggering state change on address autocomplete field, filles address fields with autocomplete data\n     *\n     * Widget has next relationship:\n     * * After country changing updates autocomplete config by calling {@link AutocompleteField#updateState}\n     *\n     * >* As an address autocomplete provider could be used different 3d parties.\n     * >* Class is not intended to be used directly, but instead concrete forms (like profile address, shipping / billing address) should extend this class.\n     * @property {string[]} data-address-fields - Form address fields array\n     * @property {boolean} [data-address-autocomplete-enabled=true] - Is address autocomplete enabled for the form\n     * @property {string} [data-address-autocomplete-provider=googleAutocomplete] - An identifier of address autocomplete form field\n     * @example <caption>Example of shipping form</caption>\n     * <form\n     *     autocomplete=\"on\"\n     *     novalidate\n     *     data-widget=\"shippingForm\"\n     *     data-event-submit.prevent=\"handleSubmit\"\n     *     ...\n     *     data-address-fields=\"${[\n     *         shippingFields.firstName.htmlName,\n     *         shippingFields.lastName.htmlName,\n     *         shippingFields.address1.htmlName,\n     *         shippingFields.address2.htmlName,\n     *         shippingFields.country.htmlName,\n     *         shippingFields.states.stateCode.htmlName,\n     *         shippingFields.city.htmlName,\n     *         shippingFields.postalCode.htmlName,\n     *         shippingFields.phone.htmlName\n     *     ].join(',')}\"\n     *     ...\n     *     data-form-definition-url=\"${URLUtils.url('Forms-FormDefinition', 'form', 'shipping')}\"\n     *     <isprint value=${pdict.forms.shippingForm.attributes} encoding=\"off\"/>\n     *     data-address-autocomplete-enabled=\"${!!require('util/sitepref').getValue('addressSuggestionProvider').value}\"\n     * >\n     *     ...\n     *     <div\n     *         class=\"b-form-message\"\n     *         role=\"alert\"\n     *         hidden=\"hidden\"\n     *         data-ref=\"errorMessageLabel\"\n     *     ></div>\n     *     ...\n     * </form>\n     */\n    class AddressForm extends AjaxForm {\n        getById: any;\n\n        prefs() {\n            return {\n                addressFields: '',\n                addressAutocompleteEnabled: true,\n                addressAutocompleteProvider: 'googleAutocomplete',\n                ...super.prefs()\n            };\n        }\n\n        /**\n         * @description Update form html body, after country change\n         * @listens InputSelect#change\n         * @param {basicInput} el - Country code field\n         * @returns {void}\n         */\n        onCountryChange(el) {\n            this.config.countryCode = el.getValue();\n\n            this.updateFormData({ countryCode: this.config.countryCode })\n                .then(() => this.updateAddressAutocomplete());\n        }\n\n        /**\n         * @description Get address fields from prefs\n         * @returns {string[]} Address fields names, separated by a comma\n         */\n        getAddressFields() {\n            return this.prefs().addressFields.split(',');\n        }\n\n        /**\n         * @description Update address fields with new address object\n         * @listens GoogleAutoCompleteField#placechanged\n         * @param {basicInput} el - Autocomplete input field\n         * @param {object} address - Address object\n         * @param {string} [address.address1] - Address 1\n         * @param {string} [address.city] - City\n         * @param {string} [address.county] - County\n         * @param {string} [address.postalCode] - Postal Code\n         * @param {string} [address.stateCode] - State code\n         * @returns {void}\n         */\n        handlePlaceChange(el, address) {\n            this.getAddressFields().forEach(item => {\n                this.getById(item, (/** @type {basicInput} */addressField) => {\n                    const name = addressField.getName() || '';\n                    const shortName = name.split('_').pop();\n\n                    if (shortName && (shortName in address)) {\n                        addressField.setValue(address[shortName] || '');\n                    }\n                });\n            });\n        }\n\n        /**\n         * @description Handles address autocomplete update with the current country code\n         * @returns {void}\n         */\n        updateAddressAutocomplete() {\n            if (this.prefs().addressAutocompleteEnabled) {\n                this.getById(this.prefs().addressAutocompleteProvider, (autocompleteField) => {\n                    autocompleteField.updateState(this.config.countryCode);\n                });\n            }\n        }\n    }\n\n    return AddressForm;\n}\n","/**\n * @param InputText Base widget for extending\n * @returns Input Textarea class\n */\nexport default function (InputText: ReturnType<typeof import('widgets/forms/InputText').default>) {\n    /**\n     * @category widgets\n     * @subcategory forms\n     * @class AutocompleteField\n     * @augments InputText\n     * @classdesc Base autocomplete field component with next features:\n     * 1. Updates country restriction by calling {@link AutocompleteField#updateState} method from parent widget\n     *\n     *  This component should be extended with concrete autocomplete realization\n     *\n     * @property {string} [data-country-code=US] - Country restriction\n     */\n    class AutocompleteField extends InputText {\n        prefs() {\n            return {\n                countryCode: 'US',\n                ...super.prefs()\n            };\n        }\n\n        /**\n         * @description Updates autocomplete restrictions\n         * @param {string} countryCode - New country code\n         * @returns {void}\n         */\n        updateState(countryCode) {\n            this.setPref('countryCode', countryCode);\n        }\n    }\n\n    return AutocompleteField;\n}\n","import {\n    initGoogleMapsApi,\n    initGoogleAutocomplete,\n    parseAddress\n} from 'widgets/toolbox/googleMgr';\n\n/**\n * @param AutocompleteField Base widget for extending\n * @returns Google Autocomplete Field widget\n */\nexport default function (AutocompleteField: ReturnType<typeof import('widgets/forms/AutocompleteField').default>) {\n    /**\n     * @category widgets\n     * @subcategory forms\n     * @class GoogleAutocompleteField\n     * @augments AutocompleteField\n     * @classdesc Represents GoogleAutocompleteField components that implement Google Autocomplete functionality using Google Places API.\n     * It has next features:\n     * 1. Inits google autocomplete once user is clicked on the input field\n     * 2. Emits widget event with the suggested address by google autocomplete API\n     *\n     * GoogleAutocompleteField widget should receive countryCode\n     * and google maps API key values in order to properly init the google autocomplete functionality\n     * @property {string} data-country-code - current country code value\n     * @property {string} data-api-key - google maps API key\n     * @example <caption>Example of Google autocomplete field </caption>\n     *    <div\n     *        data-widget=\"googleAutocompleteField\"\n     *        data-widget-event-placechanged=\"handlePlaceChange\"\n     *        data-id=\"googleAutocomplete\"\n     *        data-api-key=\"...\"\n     *        data-country-code=\"US\"\n     *        ...\n     *    >\n     *        <label\n     *            class=\"b-form_section-label\"\n     *            for=\"dwfrm_shipping_shippingAddress_addressFields_quickFinder\"\n     *            ...\n     *        >\n     *            Quick Address Finder\n     *        </label>\n     *        <input\n     *            data-ref=\"field\"\n     *            id=\"dwfrm_shipping_shippingAddress_addressFields_quickFinder\"\n     *            type=\"text\"\n     *            class=\"b-input pac-target-input m-valid\"\n     *            placeholder=\"Start typing address or ZIP code\"\n     *            aria-describedby=\"dwfrm_shipping_shippingAddress_addressFields_quickFinder-error\"\n     *            name=\"dwfrm_shipping_shippingAddress_addressFields_quickFinder\"\n     *            value=\"\"\n     *            maxlength=\"2147483647\"\n     *            data-event-focus=\"handleFocus\"\n     *            data-event-blur=\"validate\"\n     *            autocomplete=\"off\"\n     *            ...\n     *        >\n     *        <div\n     *            role=\"alert\"\n     *            class=\"b-form_section-message m-hide\"\n     *            data-ref=\"errorFeedback\"\n     *            id=\"dwfrm_shipping_shippingAddress_addressFields_quickFinder-error\"\n     *            hidden=\"hidden\"\n     *            ...\n     *        >\n     *            ...error text\n     *        </div>\n     *    </div>\n     */\n    class GoogleAutocompleteField extends AutocompleteField {\n        /**\n          * @description Initialize widget logic\n          * @returns {void}\n          */\n        init() {\n            super.init();\n\n            // @ts-expect-error ts-migrate(2551) FIXME: Property 'inited' does not exist on type 'GoogleAu... Remove this comment to see the full error message\n            this.inited = false;\n        }\n\n        /**\n         * @listens dom:focus\n         * @description Init google API once field is focused\n         * @returns {void}\n         */\n        handleFocus() {\n            // @ts-expect-error ts-migrate(2551) FIXME: Property 'inited' does not exist on type 'GoogleAu... Remove this comment to see the full error message\n            if (this.inited) {\n                return;\n            }\n\n            initGoogleMapsApi(this.config.apiKey).then(() => {\n                const field = /** @type {HTMLInputElement} */ (this.ref('field').get());\n\n                if (field) {\n                    initGoogleAutocomplete(field, this.prefs().countryCode)\n                        .then(this.initEvents.bind(this))\n                        .then(() => {\n                            // @ts-expect-error ts-migrate(2551) FIXME: Property 'inited' does not exist on type 'GoogleAu... Remove this comment to see the full error message\n                            this.inited = true;\n                        });\n                }\n            });\n        }\n\n        /**\n         * @description Init google API events\n         * @param {object} autocomplete - google autocomplete\n         * @returns {void}\n         */\n        initEvents(autocomplete) {\n            if (!autocomplete) {\n                return;\n            }\n\n            // @ts-expect-error ts-migrate(2339) FIXME: Property 'autocomplete' does not exist on type 'Go... Remove this comment to see the full error message\n            this.autocomplete = autocomplete;\n\n            // @ts-expect-error ts-migrate(2339) FIXME: Property 'autocomplete' does not exist on type 'Go... Remove this comment to see the full error message\n            this.autocomplete.addListener('place_changed', () => {\n                const place = autocomplete.getPlace();\n                const addressComponents = place.address_components;\n\n                if (addressComponents) {\n                    parseAddress(addressComponents, this.prefs().countryCode).then((parsedAddress) => {\n                        if (parsedAddress) {\n                            /**\n                             * @description Event to trigger address form fields prefill\n                             * @event AddressForm#handlePlaceChange\n                             */\n                            this.emit('placechanged', parsedAddress);\n                        }\n                    });\n                }\n            });\n        }\n\n        /**\n         * @description Updates google API restrictions\n         * @param {string} countryCode - current country code\n         * @returns {void}\n         */\n        updateState(countryCode) {\n            // @ts-expect-error ts-migrate(2339) FIXME: Property 'autocomplete' does not exist on type 'Go... Remove this comment to see the full error message\n            if (countryCode && this.autocomplete) {\n                // @ts-expect-error ts-migrate(2339) FIXME: Property 'autocomplete' does not exist on type 'Go... Remove this comment to see the full error message\n                this.autocomplete.setComponentRestrictions({\n                    country: countryCode\n                });\n            }\n        }\n    }\n\n    return GoogleAutocompleteField;\n}\n","/**\n * @param AjaxForm Base widget for extending\n * @returns LoginForm widget\n */\nexport default function (AjaxForm: ReturnType<typeof import('widgets/forms/AjaxForm').default>) {\n    /**\n     * @category widgets\n     * @subcategory forms\n     * @class LoginForm\n     * @augments AjaxForm\n     * @classdesc Represents LoginForm component with next features:\n     * 1. Show password reset modal on click\n     * @property {string} data-widget - Widget name `loginForm`\n     * @example <caption>Example of LoginForm widget usage</caption>\n     *  <form\n     *      action=\"${pdict.actionUrl}\"\n     *      class=\"b-form m-login\"\n     *      method=\"POST\"\n     *      name=\"login-form\"\n     *      data-widget=\"${pdict.isCheckoutLogin ? 'checkoutLoginForm': 'loginForm'}\"\n     *      data-event-submit.prevent=\"handleSubmit\"\n     *      <isif condition=\"${pdict.isCheckoutLogin}\">data-cart-url=\"${URLUtils.https('Cart-Show')}\"</isif>\n     *      novalidate\n     *  >\n     *          Form content...\n     *      <div class=\"b-reset_password\">\n     *          <div\n     *              data-widget=\"passwordResetModal\"\n     *              data-id=\"passwordResetModal\"\n     *          >\n     *              <div data-ref=\"container\" hidden=\"hidden\"></div>\n     *              <script type=\"template/mustache\" data-ref=\"template\">\n     *                  <div class=\"b-dialog m-reset_password\" data-ref=\"container\">\n     *                      <isinclude template=\"account/password/requestPasswordResetModal\"/>\n     *                  </div>\n     *              </script>\n     *          </div>\n\n     *          <isprint value=\"${\n     *              formElement(pdict.loginForm.password).render()\n     *          }\" encoding=\"off\"/>\n\n     *          <button\n     *              class=\"b-reset_password-btn\"\n     *              id=\"password-reset\"\n     *              data-event-click=\"passwordReset\"\n     *              data-tau=\"login_password_reset\"\n     *              type=\"button\"\n     *          >\n     *              ${Resource.msg('form.login.forgot.link', 'forms', null)}\n     *          </button>\n     *      </div>\n     *  </form>\n     */\n    class LoginForm extends AjaxForm {\n        /**\n         * @description Show password reset modal\n         * @listens dom#click\n         * @returns {void}\n         */\n        passwordReset() {\n            // @ts-expect-error ts-migrate(2339) FIXME: Property 'showModal' does not exist on type 'Widge... Remove this comment to see the full error message\n            this.getById('ajaxFormResponseContainer', ajaxFormResponseContainer => ajaxFormResponseContainer.showModal({}));\n        }\n    }\n\n    return LoginForm;\n}\n","/**\n * @module googleMgr\n * @category widgets\n * @subcategory toolbox\n * @description\n * Represents googleMgr component with next features:\n * 1. Allow to init google maps API\n * 2. Allow to init Google Autocomplete\n * 3. Allow to parse address object\n * @example <caption>Example of googleMgr module usage</caption>\n * import {\n *      initGoogleMapsApi,\n *      initGoogleAutocomplete,\n *      parseAddress\n *  } from 'widgets/toolbox/googleMgr';\n *\n * initGoogleMapsApi(this.config.apiKey).then(() => {\n *      const field = (this.ref('field').get());\n *      if (field) {\n *          initGoogleAutocomplete(field, this.prefs().countryCode)\n *              .then(this.initEvents.bind(this))\n *              .then(() => {\n *                  this.inited = true;\n *              });\n *      }\n *  });\n *\n */\n\ndeclare global {\n    interface Window {\n        googleMapsApiCallback: () => void;\n        google: typeof google;\n    }\n}\n\nlet googleApi: typeof google;\nlet resolveGMapsFn;\nlet initialized = false;\n\nconst initializationPromise = new Promise((resolve) => {\n    resolveGMapsFn = resolve;\n});\n\n/**\n * @description callback fires once google maps api loaded\n * @returns {void}\n */\nwindow.googleMapsApiCallback = () => {\n    googleApi = window.google;\n\n    resolveGMapsFn();\n};\n\n/**\n * @description Return mapping config for provided country\n * @param {string} country - Mapping config country\n * @returns {object} Mapping config\n */\nfunction getAddressFieldsMappingConfig(country) {\n    const config = {\n        address1: {\n            serviceObjectTypes: ['street_number', 'route'],\n            serviceObjectProperty: 'long_name'\n        },\n        address2: {\n            serviceObjectTypes: [],\n            serviceObjectProperty: ''\n        },\n        city: {\n            serviceObjectTypes: [['locality', 'postal_town']],\n            serviceObjectProperty: 'long_name'\n        },\n        stateCode: {\n            serviceObjectTypes: ['administrative_area_level_1'],\n            serviceObjectProperty: 'short_name'\n        },\n        postalCode: {\n            serviceObjectTypes: ['postal_code'],\n            serviceObjectProperty: 'long_name'\n        }\n    };\n\n    switch (country) {\n        case 'GB':\n            config.stateCode.serviceObjectTypes = ['administrative_area_level_2'];\n            break;\n        default:\n            break;\n    }\n\n    return config;\n}\n\n/**\n * @description Return address component by provided type\n * @param {Array} addressComponents - API address components\n * @param {string} type - Target component type\n * @returns {object|undefined} Address component\n */\nfunction getAddressComponentByType(addressComponents, type) {\n    return addressComponents.find((addressComponent) => {\n        return addressComponent.types.indexOf(type) === 0;\n    });\n}\n\n/**\n * @description Return address component by provided type\n * @param {object} addressComponents - API address components\n * @param {object} fieldConfig - Configuration object for current field\n * @returns {string} Address field\n */\nfunction getAddressField(addressComponents, fieldConfig) {\n    const typesForMerge = fieldConfig.serviceObjectTypes;\n    const aimProperty = fieldConfig.serviceObjectProperty;\n    const targetAddressProperties = [];\n    let addressComponent;\n\n    typesForMerge.forEach((mergeType) => {\n        if (Array.isArray(mergeType)) {\n            for (let i = 0, l = mergeType.length; i < l; i++) {\n                addressComponent = getAddressComponentByType(addressComponents, mergeType[i]);\n\n                if (addressComponent && addressComponent[aimProperty]) {\n                    break;\n                }\n            }\n        } else {\n            addressComponent = getAddressComponentByType(addressComponents, mergeType);\n        }\n\n        if (addressComponent && addressComponent[aimProperty]) {\n            // @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'any' is not assignable to parame... Remove this comment to see the full error message\n            targetAddressProperties.push(addressComponent[aimProperty]);\n        }\n    });\n\n    return targetAddressProperties.join(' ');\n}\n\n/**\n * @description Loads google maps API\n * @param {string} apiKey - api key\n * @returns {Promise} result\n */\nexport function initGoogleMapsApi(apiKey?) {\n    if (!initialized) {\n        if (!apiKey) {\n            return Promise.reject();\n        }\n\n        const url = new URL('https://maps.googleapis.com/maps/api/js');\n\n        url.searchParams.append('key', apiKey);\n        url.searchParams.append('libraries', 'geometry,places');\n        url.searchParams.append('callback', 'googleMapsApiCallback');\n\n        const script = document.createElement('script');\n\n        script.src = decodeURIComponent(url.toString());\n        script.async = true;\n        script.type = 'text/javascript';\n\n        document.body.appendChild(script);\n\n        initialized = true;\n    }\n\n    return initializationPromise;\n}\n\n/**\n * @description Init google autocomplete for the field\n * @param {HTMLInputElement} field - input field\n * @param {string} countryCode - country code to restrict search results\n * @returns {Promise} result\n */\nexport function initGoogleAutocomplete(field, countryCode) {\n    return Promise.resolve(new googleApi.maps.places.Autocomplete(\n        field, {\n            componentRestrictions: {\n                country: countryCode\n            }\n        }\n    ));\n}\n\n/**\n * @description Init google geocoder\n * @returns {object} result\n */\nexport function initGoogleGeocoder() {\n    return new googleApi.maps.Geocoder();\n}\n\nexport function getGoogleMap(mapContainer, options) {\n    return new googleApi.maps.Map(mapContainer, options);\n}\n\nexport function getGoogleMapMarker(options) {\n    return new googleApi.maps.Marker(options);\n}\n\nexport function getGoogleMapBounds() {\n    return new googleApi.maps.LatLngBounds();\n}\n\nexport function getGoogleMapInfoWindow() {\n    return new googleApi.maps.InfoWindow();\n}\n\nexport function createLatLngObject(lat, lng) {\n    return new googleApi.maps.LatLng(lat, lng);\n}\n\nexport function computeDistanceBetween(storePoint, searchPoint) {\n    return googleApi.maps.geometry.spherical.computeDistanceBetween(storePoint, searchPoint);\n}\n\n/**\n * @description Returns parsed address object\n * @param {Array} addressComponents - Array with google address components\n * @param {string} country - Components country\n * @returns {object} result\n */\nexport function parseAddress(addressComponents, country) {\n    const mappingConfig = getAddressFieldsMappingConfig(country);\n    const address = Object.keys(mappingConfig).reduce((addressObject, field) => {\n        addressObject[field] = getAddressField(addressComponents, mappingConfig[field]);\n\n        return addressObject;\n    }, {});\n\n    return Promise.resolve(address);\n}\n"],"names":["AjaxForm","PasswordResetForm","onSubmitted","data","success","emitWithoutContext","BasicInput","InputCreditCardNumber","init","then","cleave","Cleave","default","ref","get","onCreditCardTypeChanged","bind","creditCard","delimiter","onDestroy","destroy","undefined","type","emit","getValue","getRawValue","AddressForm","prefs","addressFields","addressAutocompleteEnabled","addressAutocompleteProvider","onCountryChange","el","config","countryCode","updateFormData","updateAddressAutocomplete","getAddressFields","split","handlePlaceChange","address","forEach","item","getById","addressField","name","getName","shortName","pop","setValue","autocompleteField","updateState","InputText","AutocompleteField","setPref","initGoogleMapsApi","initGoogleAutocomplete","parseAddress","GoogleAutocompleteField","inited","handleFocus","apiKey","field","initEvents","autocomplete","addListener","place","getPlace","addressComponents","address_components","parsedAddress","setComponentRestrictions","country","LoginForm","passwordReset","ajaxFormResponseContainer","showModal","googleApi","resolveGMapsFn","initialized","initializationPromise","Promise","resolve","window","googleMapsApiCallback","google","getAddressFieldsMappingConfig","address1","serviceObjectTypes","serviceObjectProperty","address2","city","stateCode","postalCode","getAddressComponentByType","find","addressComponent","types","indexOf","getAddressField","fieldConfig","typesForMerge","aimProperty","targetAddressProperties","mergeType","Array","isArray","i","l","length","push","join","reject","url","URL","searchParams","append","script","document","createElement","src","decodeURIComponent","toString","async","body","appendChild","maps","places","Autocomplete","componentRestrictions","initGoogleGeocoder","Geocoder","getGoogleMap","mapContainer","options","Map","getGoogleMapMarker","Marker","getGoogleMapBounds","LatLngBounds","getGoogleMapInfoWindow","InfoWindow","createLatLngObject","lat","lng","LatLng","computeDistanceBetween","storePoint","searchPoint","geometry","spherical","mappingConfig","Object","keys","reduce","addressObject"],"sourceRoot":""}