{"version":3,"file":"account.widgets.bundle.js","mappings":";;;;;;;;;;;;;AAAA;AACA;AACA;;AAEA;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;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;EAQI,MAAMC,oBAAoB,SAASD,QAAQ,CAAC;IACxCE,KAAKA,CAAA,EAAG;MACJ,OAAO;QACHC,gBAAgB,EAAE;UACdC,IAAI,EAAE,MAAM;UACZC,QAAQ,EAAE,UAAU;UACpBC,MAAM,EAAE,YAAY;UACpBC,UAAU,EAAE,aAAa;UACzBC,OAAO,EAAE,SAAS;UAClBC,IAAI,EAAE;QACV,CAAC;QACD,GAAG,KAAK,CAACP,KAAK,CAAC;MACnB,CAAC;IACL;;IAEA;AACR;AACA;AACA;AACA;AACA;AACA;IACQQ,iBAAiBA,CAACC,aAAa,EAAEC,QAAQ,EAAE;MACvC,IAAI,CAACC,OAAO,CAAC,UAAU,EAAGC,aAAa,IAAK;QACxC;QACAA,aAAa,CAACC,QAAQ,CAACH,QAAQ,IAAI,IAAI,CAACV,KAAK,CAAC,CAAC,CAACC,gBAAgB,GAC1D,IAAI,CAACD,KAAK,CAAC,CAAC,CAACC,gBAAgB,CAACS,QAAQ,CAAC,GACvCA,QAAQ,CAAC;MACnB,CAAC,CAAC;IACN;EACJ;EAEA,OAAOX,oBAAoB;AAC/B;;;;;;;;;;;;;;;ACxIoE;AAGpE;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAAe,oCAAUgB,MAAe,EAAE;EACtC;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;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;EAEI,MAAMC,WAAW,SAASD,MAAM,CAAC;IAG7Bf,KAAKA,CAAA,EAAG;MACJ,OAAO;QACHiB,mBAAmB,EAAwB,CAAC,CAAC;QAC7C,GAAG,KAAK,CAACjB,KAAK,CAAC;MACnB,CAAC;IACL;;IAEA;AACR;AACA;AACA;AACA;IACQkB,mBAAmBA,CAACC,UAAsB,EAAyC;MAC/E,MAAMC,SAAS,GAAGD,UAAU,CAACE,IAAI,CAAC,WAAW,CAAC;MAC9C,MAAMC,WAAW,GAAGH,UAAU,CAACE,IAAI,CAAC,aAAa,CAAC;MAClD,MAAME,SAAS,GAAGJ,UAAU,CAACE,IAAI,CAAC,WAAW,CAAC;MAE9C,IAAI,CAACD,SAAS,EAAE;QAAE,OAAOI,SAAS;MAAE;;MAEpC;MACA,OAAOV,oEAAc,CAACM,SAAS,EAAE;QAC7BG,SAAS;QACTD;MACJ,CAAC,EAAE,MAAM,CAAC,CAACG,IAAI,CAAEC,QAAQ,IAAK;QAC1B,IAAI,CAACA,QAAQ,CAACC,OAAO,EAAE;UAAE,OAAOD,QAAQ;QAAE;QAE1C,IAAIA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,CAACuC,WAAW,CAAC,IAAI,CAAClF,KAAK,CAAC,CAAC,CAAC8D,WAAW,CAAC,CAACI,IAAI,CAAC,WAAW,EAAE,KAAK,CAAC;IACnF;EACJ;EAEA,OAAOL,eAAe;AAC1B;;;;;;;;;;;;;;;AChJoD;;AAEpD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,6BAAe,oCAAU9C,MAAe,EAAE;EACtC;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;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;EAEI,MAAMoE,YAAY,SAASpE,MAAM,CAAC;IAC9Bf,KAAKA,CAAA,EAAG;MACJ,OAAO;QACHoF,SAAS,EAAE,EAAE;QACbC,aAAa,EAAE,EAAE;QACjBpE,mBAAmB,EAAwB,CAAC,CAAC;QAC7C,GAAG,KAAK,CAACjB,KAAK,CAAC;MACnB,CAAC;IACL;;IAEA;AACR;AACA;AACA;AACA;AACA;IACQsF,UAAUA,CAACC,IAAI,EAAE;MACb;MACA,IAAI,CAACC,YAAY,GAAGD,IAAI,CAAClE,IAAI,CAAC,MAAM,CAAC;MACrC,IAAI,CAACV,OAAO,CAAC,eAAe,EAAE,EAAC,4BAA6BwB,aAAa,KAAK;QAC1E;QACAA,aAAa,CAACC,SAAS,CAAC;UAAEqD,UAAU,EAAEF,IAAI,CAAClE,IAAI,CAAC,MAAM;QAAE,CAAC,CAAC;MAC9D,CAAC,CAAC;IAC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AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACI,MAAM0G,mBAAmB,SAAS1G,MAAM,CAAC;IACrC;AACR;AACA;AACA;AACA;AACA;AACA;IACQ2G,kBAAkBA,CAACC,IAAI,EAAE;MACrB,IAAI,CAACrE,QAAQ,CAAC,CAAC,CAACC,IAAI,CAAC,gCAAgC,EAAEoE,IAAI,CAAC;IAChE;EACJ;EAEA,OAAOF,mBAAmB;AAC9B","sources":["webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/account/AddPaymentMethodForm.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/account/AddressList.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/account/OrderHistoryMgr.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/account/PaymentsList.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/forms/AddressBookForm.ts","webpack://sfra-boilerplate/./cartridges/app_storefront_widgets/cartridge/client/default/js/widgets/order/OrderProductSummary.ts"],"sourcesContent":["/**\n * @typedef {InstanceType<ReturnType<typeof import('widgets/checkout/InputCreditCardNumber').default>>} inputCreditCardNumber\n */\n\n/**\n * @param AjaxForm Base widget for extending\n * @returns AddPaymentMethodForm widget\n */\nexport default function (AjaxForm: ReturnType<typeof import('widgets/forms/AjaxForm').default>) {\n    /**\n     * @category widgets\n     * @subcategory account\n     * @class AddPaymentMethodForm\n     * @augments AjaxForm\n     * @classdesc Represents payment method form component with next features:\n     * 1. Set new card type if it was determined\n     *\n     * Widget has next relationship:\n     * *Use {@link InputHidden#setValue} method to set new payment card type\n     * @property {object} [cart-types-mapping] - Mapping between SFCC types and cleave`s\n     * @example <caption>Example of AddPaymentMethodForm widget usage</caption>\n     * <form\n     *     action=\"${URLUtils.url('PaymentInstruments-SavePayment', 'UUID', pdict.UUID)}\"\n     *     class=\"b-form m-account m-payment_form\"\n     *     method=\"POST\"\n     *     name=\"payment-form\" ${pdict.paymentForm.attributes}\n     *     data-widget=\"addPaymentMethodForm\"\n     *     data-event-submit.prevent=\"handleSubmit\"\n     * >\n     *     <div\n     *         class=\"b-form-message\"\n     *         hidden=\"hidden\"\n     *         data-ref=\"errorMessageLabel\"\n     *     ></div>\n\n     *     <div class=\"b-form-title\">\n     *         Credit / Debit card\n     *     </div>\n\n     *     <isprint value=\"${\n     *         formElement(pdict.paymentForm.cardType).render()\n     *     }\" encoding=\"off\"/>\n\n     *     <!-- Name on Card -->\n     *     <div\n     *         class=\"b-form-line\">\n     *         <isprint value=\"${\n     *             formElement(pdict.paymentForm.cardOwner).render()\n     *         }\" encoding=\"off\"/>\n     *     </div>\n\n     *     <!-- Card Number -->\n     *     <div class=\"b-form-line\">\n     *         <isprint value=\"${\n     *             formElement(pdict.paymentForm.cardNumber).render()\n     *         }\" encoding=\"off\"/>\n     *     </div>\n\n     *     <!-- Month & Year -->\n     *     <div class=\"b-form_section\">\n     *         <div class=\"b-form_section-label\">\n     *             <span class=\"b-form_section-required\" aria-hidden=\"true\">\n     *                 ${Resource.msg('form.input.required', 'forms', '')}\n     *             </span>\n     *             ${Resource.msg('form.payment.card.expiryDate', 'forms', '')}\n     *         </div>\n     *         <div class=\"b-form-line m-fixed_width\">\n     *             <isprint value=\"${\n     *                 formElement(pdict.paymentForm.expirationMonth).render()\n     *             }\" encoding=\"off\"/>\n     *             <span class=\"b-form_section-divider\">/</span>\n     *             <isprint value=\"${\n     *                 formElement(pdict.paymentForm.expirationYear).render()\n     *             }\" encoding=\"off\"/>\n     *         </div>\n     *     </div>\n\n     *      <div class=\"b-form_section\">\n     *         <isprint value=\"${\n     *             formElement(pdict.paymentForm.makeDefaultPayment).render()\n     *         }\" encoding=\"off\"/>\n     *     </div>\n\n     *     <div class=\"b-form-line m-mobile_column\">\n     *         <button\n     *             type=\"submit\"\n     *             class=\"b-button m-width_full b-form-btn_save\"\n     *             name=\"save\"\n     *             data-widget=\"button\"\n     *             data-widget-event-click=\"handleSubmit\"\n     *             data-event-click.prevent=\"handleClick\"\n     *             data-id=\"submitButton\"\n     *         >\n     *             ${Resource.msg('payment.save','payment',null)}\n     *         </button>\n     *         <a\n     *             href=\"${URLUtils.url('PaymentInstruments-List')}\"\n     *             class=\"b-button m-outline b-form-btn_cancel\"\n     *         >\n     *             ${Resource.msg('common.cancel','common',null)}\n     *         </a>\n     *     </div>\n     * </form>\n    */\n    class AddPaymentMethodForm extends AjaxForm {\n        prefs() {\n            return {\n                cartTypesMapping: {\n                    amex: 'Amex',\n                    discover: 'Discover',\n                    diners: 'DinersClub',\n                    mastercard: 'Master Card',\n                    maestro: 'Maestro',\n                    visa: 'Visa'\n                },\n                ...super.prefs()\n            };\n        }\n\n        /**\n         * @description Handle credit card type change\n         * @listens InputCreditCardNumber#creditcardtypechanged\n         * @param {inputCreditCardNumber|null} ccFieldWidget - Credit card field widget\n         * @param {string} cardType - New credit card type\n         * @returns {void}\n         */\n        newCreditCardType(ccFieldWidget, cardType) {\n            this.getById('cardType', (cardTypeField) => {\n                // @ts-expect-error ts-migrate(2339) FIXME: Property 'setValue' does not exist on type 'Widget... Remove this comment to see the full error message\n                cardTypeField.setValue(cardType in this.prefs().cartTypesMapping\n                    ? this.prefs().cartTypesMapping[cardType]\n                    : cardType);\n            });\n        }\n    }\n\n    return AddPaymentMethodForm;\n}\n","import { TWidget } from 'widgets/Widget';\nimport { getJSONByUrl, submitFormJson } from 'widgets/toolbox/ajax';\nimport { RefElement } from 'widgets/toolbox/RefElement';\n\n/**\n * @typedef {InstanceType<ReturnType<typeof import('widgets/global/ConfirmDialog').default>>} confirmDialog\n */\n/**\n * @param Widget Base widget for extending\n * @returns AddressList widget\n */\nexport default function (Widget: TWidget) {\n    /**\n     * @category widgets\n     * @subcategory account\n     * @class AddressList\n     * @augments Widget\n     * @classdesc Represents AddressList component with next features:\n     * 1. Allow remove address\n     * 2. Update address tile after removal\n     *\n     * Widget has next relationship:\n     * *Use {@link ConfirmDialog#showModal} method to show confirmation dialog when remove address button click\n     * @property {string} data-widget - Widget name `addressList`\n     * @property {object} data-accessibility-alerts - Accessibility alerts messages for different user actions\n     * @example <caption>Example of AddressList widget usage</caption>\n     *  <div\n     *      class=\"b-cards_grid\"\n     *      data-widget=\"addressList\"\n     *      data-tau=\"address_book_list\"\n     *      data-accessibility-alerts='{\n     *          \"deleteDefaultAddress\": \"${Resource.msg('addressBook.alert.addressDeleted.default', 'addressBook', null)}\",\n     *          \"addressRemoved\": \"${Resource.msg('addressBook.alert.addressDeleted', 'addressBook', null)}\"\n     *      }'\n     *  >\n     *      <!-- Rows for addresses in the Address Book -->\n     *      <isloop items=\"${pdict.addressBook}\" var=\"address\">\n     *          <section\n     *              class=\"b-cards_grid-item ${address.isDefault ? 'm-default' : ''}\"\n     *              id=\"uuid-${address.addressUUID}\"\n     *              data-ref=\"${address.ID}\"\n     *              data-is-default-address=\"${address.isDefault}\"\n     *              <isif condition=\"${address.isDefault}\">\n     *                  data-tau=\"address_book_item_default\"\n     *              <iselse/>\n     *                  data-tau=\"address_book_item\"\n     *              </isif>\n     *          >\n     *              <div class=\"b-cards_grid-header\">\n     *                  <isif condition=\"${address.isDefault}\">\n     *                      <h2 class=\"b-cards_grid-title\">\n     *                          ${Resource.msg('label.addressbook.defaultaddress','account',null)}\n     *                      </h2>\n     *                  <iselse/>\n     *                      <a\n     *                          href=\"${URLUtils.url('Address-SetDefault', 'addressId', address.ID)}\"\n     *                          class=\"b-cards_grid-link b-cards_grid-set_default\"\n     *                          data-tau=\"address_book_setDefault\"\n     *                          aria-label=\"${Resource.msg('addressBook.makeDefault.wai','addressBook',null)}.\"\n     *                      >\n     *                          ${Resource.msg('addressBook.makeDefault','addressBook',null)}\n     *                      </a>\n     *                  </isif>\n     *                  <a\n     *                      href=\"${URLUtils.url('Address-EditAddress', 'addressId', address.ID)}\"\n     *                      class=\"b-cards_grid-link b-cards_grid-edit\"\n     *                      data-tau=\"address_book_edit\"\n     *                  >\n     *                      ${Resource.msg('common.edit','common',null)}\n     *                  </a>\n     *                  <button\n     *                      type=\"button\"\n     *                      class=\"b-cards_grid-link b-cards_grid-delete\"\n     *                      data-toggle=\"modal\"\n     *                      data-target=\"#deleteAddressModal\"\n     *                      data-tau=\"address_book_delete\"\n     *                      data-id=\"${address.ID}\"\n     *                      data-url=\"${pdict.actionUrls.deleteActionUrl}\"\n     *                      data-event-click=\"removeAddress\"\n     *                      aria-label=\"${Resource.msg('addressBook.delete.wai','addressBook',null)}\"\n     *                      data-default=\"${address.isDefault ? 'default' : '' }\"\n     *                  >\n     *                      ${Resource.msg('common.delete','common',null)}\n     *                  </button>\n     *              </div>\n     *              <div class=\"b-cards_grid-body\">\n     *                  <div\n     *                      class=\"b-cards_grid-info\"\n     *                      data-tau=\"address_book-info\"\n     *                      id=\"address-details-${address.addressUUID}\"\n     *                  >\n     *                      <isprint value=\"${address.rendered}\" encoding=\"off\" />\n     *                  </div>\n\n     *                  <isinclude template=\"account/deleteAddressModal\"/>\n     *              </div>\n     *          </section>\n     *      </isloop>\n     *      <div data-ref=\"addressTile\"></div>\n     *      <script type=\"template/mustache\" data-ref=\"addressTile\">\n     *          <isinclude template=\"m/account/addressBook/address\"/>\n     *      </script>\n     *  </div>\n     */\n    class AddressList extends Widget {\n        addressToRemove: RefElement | undefined;\n\n        prefs() {\n            return {\n                accessibilityAlerts: <TAccessibilityAlerts>{},\n                ...super.prefs()\n            };\n        }\n\n        /**\n         * @description Handle click on the link and do request on the server\n         * @param targetLink Target link\n         * @returns Fetching result promise\n         */\n        setAsDefaultAddress(targetLink: RefElement): Promise<Record<string, unknown>>|void {\n            const actionUrl = targetLink.data('actionUrl');\n            const addressType = targetLink.data('addressType');\n            const addressId = targetLink.data('addressId');\n\n            if (!actionUrl) { return undefined; }\n\n            // @ts-expect-error FIXME: Define correct type\n            return submitFormJson(actionUrl, {\n                addressId,\n                addressType\n            }, 'POST').then((response) => {\n                if (!response.success) { return response; }\n\n                if (response.redirectUrl) {\n                    // @ts-expect-error FIXME: Define correct type\n                    window.location.href = response.redirectUrl;\n                }\n\n                return response;\n            });\n        }\n\n        /**\n         * @description Show confirmation dialog on remove address button click\n         * @listens dom#click\n         * @param {RefElement} address removed address tile\n         * @returns {void}\n         */\n        removeAddress(address: RefElement) {\n            this.addressToRemove = address;\n            this.getById('confirmDialog', (/** @type {confirmDialog} */ confirmDialog) => {\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                confirmDialog.showModal({ addressTitle: address.data('id') });\n            });\n        }\n\n        /**\n         * @description Remove address\n         * @listens dom#click\n         * @emits \"alert.show\"\n         * @returns {Promise<object|null>} Promise object represents server response for address removing\n         */\n        confirmedRemoveAddress() {\n            if (!this.addressToRemove) {\n                return Promise.resolve(null);\n            }\n\n            const addressId = <string> this.addressToRemove.data('id');\n            const isDefault = this.addressToRemove.data('default');\n\n            // @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'string | number | boolean | RefE... Remove this comment to see the full error message\n            return submitFormJson(this.addressToRemove.data('url'), {\n                addressId,\n                isDefault\n            }, 'POST').then((response) => {\n                const addressCard = this.ref(addressId);\n\n                const {\n                    defaultAddresses\n                } = response;\n                const addNewAddressElement = this.ref('addNewAddress').get();\n\n                if (addressCard) {\n                    addressCard.remove();\n                    delete this.addressToRemove;\n                    let accessibilityAlert = this.prefs().accessibilityAlerts.addressRemoved;\n\n                    if (addressCard.data('isDefaultAddress')) {\n                        // @ts-expect-error ts-migrate(2571) FIXME: Object is of type 'unknown'.\n                        defaultAddresses.forEach(address => {\n                            if (!address) { return; }\n\n                            this.updateAddressTile(address.address.addressId, {\n                                isDefault: true,\n                                address: address\n                            });\n                        });\n\n                        accessibilityAlert = this.prefs().accessibilityAlerts.deleteDefaultAddress;\n                    }\n\n                    if (addNewAddressElement) {\n                        addNewAddressElement.focus();\n                    }\n\n                    /**\n                     * @description Global event to show alert\n                     * @event \"alert.show\"\n                     */\n                    this.eventBus().emit('alert.show', {\n                        accessibilityAlert\n                    });\n                }\n\n                return response;\n            });\n        }\n\n        /**\n         * @description Updates address tile\n         * @param addressID - target address ID\n         * @param templateParams - rendering template params\n         * @returns Promise object represents address tiles rendering result\n         */\n        updateAddressTile(addressID: string, templateParams: Record<string, unknown>): Promise<void> {\n            return this.render('addressTile', templateParams, this.ref(addressID));\n        }\n    }\n\n    return AddressList;\n}\n","import { TWidget } from 'widgets/Widget';\nimport { getJSONByUrl, getContentByUrl } from 'widgets/toolbox/ajax';\n\n/**\n * @typedef {InstanceType<typeof import('widgets/toolbox/RefElement').RefElement>} refElement\n * @typedef {ReturnType<typeof import('widgets/forms/InputSelect').default>} InputSelect\n */\n/**\n * @param Widget Base widget for extending\n * @returns OrderHistoryMgr widget\n */\nexport default function (Widget: TWidget) {\n    /**\n     * @category widgets\n     * @subcategory account\n     * @class OrderHistoryMgr\n     * @augments Widget\n     * @classdesc Represents OrderHistoryMgr component with next features:\n     * 1. Allow load more order\n     * 2. Allow update order list by order create  date using select options(last 6 months/ last 12 months)\n     * 3. Allow show loader overlay while updating results\n     * @property {string} data-widget - Widget name `OrderHistoryMgr`\n     * @property {object} data-accessibility-alert - Accessibility alerts messages for different user actions\n     * @example <caption>Example of OrderHistoryMgr widget usage</caption>\n     * <isdecorate template=\"common/layout/account\">\n     *      <h1 class=\"b-account-history_title\">\n     *          ${Resource.msg('history.title','history',null)}\n     *      </h1>\n     *      <div data-widget=\"orderHistoryMgr\"\n     *          data-accessibility-alerts='{\n     *              \"orderlistupdated\": \"${Resource.msg('alert.orderlistupdated', 'order', null)}\"\n     *          }'\n     *      >\n     *          <isinclude template=\"account/order/historyOrders\"/>\n     *      </div>\n     *  </isdecorate>\n     */\n    class OrderHistoryMgr extends Widget {\n        prefs() {\n            return {\n                classesBusy: 'm-busy',\n                accessibilityAlerts: <TAccessibilityAlerts>{},\n                ...super.prefs()\n            };\n        }\n\n        /**\n         * @description Load more orders\n         * @listens dom#click\n         * @emits \"alert.show\"\n         * @param {refElement} button Target element\n         * @returns {Promise<object>} Promise object represents server response for loading more\n        */\n        loadMore(button) {\n            const href = String(button.attr('href'));\n\n            this.busy();\n\n            return getJSONByUrl(href).then(response => {\n                return Promise.all([\n                    this.ref('listFooter').remove(),\n\n                    // @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'unknown' is not assignable to pa... Remove this comment to see the full error message\n                    this.ref('orderList').append(response.orderListItems),\n\n                    // @ts-expect-error ts-migrate(2345) FIXME: Argument of type 'unknown' is not assignable to pa... Remove this comment to see the full error message\n                    this.ref('orderList').append(response.orderListFooter)\n                ]).then(() => {\n                    const accessibilityAlert = this.prefs().accessibilityAlerts.orderlistupdated;\n\n                    /**\n                     * @description Global event to show alert\n                     * @event \"alert.show\"\n                     */\n                    this.eventBus().emit('alert.show', {\n                        accessibilityAlert\n                    });\n\n                    return response;\n                }).finally(() => {\n                    this.unbusy();\n                });\n            });\n        }\n\n        /**\n         * @description Update Order List\n         * @listens dom#click\n         * @emits \"alert.show\"\n         * @param {InstanceType<InputSelect>} select Target element\n         * @returns {Promise<object|null>} Promise object represents server response with order list markup\n         */\n        updateOrderList(select) {\n            const selectedSorting = select.getSelectedOptions();\n\n            if (!selectedSorting) {\n                return Promise.resolve(null);\n            }\n\n            const url = String(selectedSorting.val());\n\n            this.busy();\n\n            return getContentByUrl(url).then(response => {\n                if (typeof response === 'string') {\n                    return this.render(undefined, undefined, this.ref('grid'), response)\n                        .then(() => response);\n                } else {\n                    return Promise.resolve(null);\n                }\n            }).then((response)=> {\n                const accessibilityAlert = this.prefs().accessibilityAlerts.orderlistupdated;\n\n                /**\n                 * @description Global event to show alert\n                 * @event \"alert.show\"\n                 */\n                this.eventBus().emit('alert.show', {\n                    accessibilityAlert\n                });\n\n                return response;\n            }).finally(() => {\n                this.unbusy();\n            });\n        }\n\n        /**\n         * @description Busy\n         * @returns {void}\n         */\n        busy() {\n            this.ref('grid').addClass(this.prefs().classesBusy).attr('aria-busy', 'true');\n        }\n\n        /**\n         * @description Unbusy\n         * @returns {void}\n         */\n        unbusy() {\n            this.ref('grid').removeClass(this.prefs().classesBusy).attr('aria-busy', false);\n        }\n    }\n\n    return OrderHistoryMgr;\n}\n","import { TWidget } from 'widgets/Widget';\nimport { getJSONByUrl } from 'widgets/toolbox/ajax';\n\n/**\n * @typedef {InstanceType<typeof import('widgets/toolbox/RefElement').RefElement>} RefElement\n * @typedef {InstanceType<ReturnType<typeof import('widgets/global/ConfirmDialog').default>>} confirmDialog\n */\n/**\n * @param Widget Base widget for extending\n * @returns PaymentsList widget\n */\nexport default function (Widget: TWidget) {\n    /**\n     * @category widgets\n     * @subcategory account\n     * @class PaymentsList\n     * @augments Widget\n     * @classdesc Represents PaymentsList component with next features:\n     * 1. Update payment instrument\n     * 2. Set default payment instrument\n     * 3. Update payments list\n     *\n     * Widget has next relationship:\n     * *Use {@link ConfirmDialog#showModal} method to show confirmation dialog when remove card button click\n     * @property {string} data-widget - Widget name `paymentsList`\n     * @property {string} delete-url - URL to the endpoint, that deletes payment method\n     * @property {string} set-default-url - URL to the endpoint, that marks payment method as default\n     * @property {object} accessibility-alerts - Object with accessibility alerts\n     * @example <caption>Example of PaymentsList widget usage</caption>\n     *   <div data-widget=\"paymentsList\"\n     *             data-delete-url=\"${pdict.actionUrl}\"\n     *             data-set-default-url=\"${URLUtils.url('PaymentInstruments-SetDefault')}\"\n     *             data-accessibility-alerts='{\n     *                 \"methodDeleted\": \"${Resource.msg('alert.methodDeleted', 'payment', null)}\",\n     *                 \"defaultMethodChanged\": \"${Resource.msg('alert.defaultMethodChanged', 'payment', null)}\"\n     *             }'\n     *         >\n     *             <a\n     *                 class=\"b-cards_grid-item m-add_new\"\n     *                 href=\"${URLUtils.url('PaymentInstruments-AddPayment')}\"\n     *             >\n     *                 <isinclude template=\"common/icons/standalone/payment\"/>\n     *                 <span class=\"b-cards_grid-add_new\">\n     *                     ${Resource.msg('savedPayments.addNew','payment',null)}\n     *                 </span>\n     *             </a>\n\n     *             <div data-ref=\"paymentsList\">\n     *                 <isloop items=\"${pdict.paymentInstruments}\" var=\"paymentInstrument\">\n     *                     <div\n     *                         class=\"b-cards_grid-item m-payment_card\"\n     *                         data-ref=\"payment-${paymentInstrument.UUID}\"\n     *                     >\n     *                         <div class=\"b-cards_grid-header\">\n     *                             <div class=\"b-cards_grid-header_left\">\n     *                                 <isif condition=\"${paymentInstrument.expired}\">\n     *                                     <div class=\"b-cards_grid-expired\">\n     *                                         ${Resource.msg('savedPayments.expired','payment',null)}\n     *                                     </div>\n     *                                 <iselse/>\n     *                                     <isif condition=\"${paymentInstrument.default}\">\n     *                                         <h2 class=\"b-cards_grid-title\">\n     *                                             ${Resource.msg('savedPayments.default','payment',null)}\n     *                                         </h2>\n     *                                     <iselse/>\n     *                                         <button\n     *                                             class=\"b-cards_grid-link\"\n     *                                             data-uuid=\"${paymentInstrument.UUID}\"\n     *                                             type=\"button\"\n     *                                             data-event-click=\"setPaymentDefault\"\n     *                                         >\n     *                                             ${Resource.msg('savedPayments.makeDefault','payment',null)}\n     *                                         </button>\n     *                                     </isif>\n     *                                 </isif>\n     *                             </div>\n     *                             <div class=\"b-cards_grid-header_right\">\n     *                                 <button\n     *                                     type=\"button\"\n     *                                     class=\"b-cards_grid-link b-cards_grid-delete\"\n     *                                     data-uuid=\"${paymentInstrument.UUID}\"\n     *                                     data-card=\"${paymentInstrument.maskedCreditCardNumber}\"\n     *                                     data-event-click=\"removeCard\"\n     *                                     aria-label=\"${Resource.msg('savedPayments.delete.wai','payment',null)}\"\n     *                                 >\n     *                                     ${Resource.msg('common.delete','common',null)}\n     *                                 </button>\n     *                             </div>\n     *                         </div>\n     *                         .......................Instrument body\n     *                     </div>\n     *                 </isloop>\n     *             </div>\n     *             <script data-ref=\"paymentListTemplate\" type=\"template/mustache\">\n     *                 <isinclude template=\"m/account/payment/paymentsList\"/>\n     *             </script>\n     *             <isinclude template=\"account/payment/deletePaymentModal\"/>\n     *         </div>\n     *  </div>\n     */\n    class PaymentsList extends Widget {\n        prefs() {\n            return {\n                deleteUrl: '',\n                setDefaultUrl: '',\n                accessibilityAlerts: <TAccessibilityAlerts>{},\n                ...super.prefs()\n            };\n        }\n\n        /**\n         * @description Show confirmation dialog on remove card button click\n         * @listens dom#click\n         * @param {RefElement} card - Payment instrument to remove\n         * @returns {void}\n         */\n        removeCard(card) {\n            // @ts-expect-error ts-migrate(2339) FIXME: Property 'cardToRemove' does not exist on type 'Pa... Remove this comment to see the full error message\n            this.cardToRemove = card.data('uuid');\n            this.getById('confirmDialog', (/** @type {confirmDialog} */ confirmDialog) => {\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                confirmDialog.showModal({ cardNumber: card.data('card') });\n            });\n        }\n\n        /**\n         * @description Remove card\n         * @listens dom#click\n         * @returns {Promise<object|null>} Promise object represents server response for card removing\n         */\n        confirmedRemoveCard() {\n            // @ts-expect-error ts-migrate(2339) FIXME: Property 'cardToRemove' does not exist on type 'Pa... Remove this comment to see the full error message\n            if (!this.cardToRemove) {\n                return Promise.resolve(null);\n            }\n\n            // @ts-expect-error ts-migrate(2339) FIXME: Property 'cardToRemove' does not exist on type 'Pa... Remove this comment to see the full error message\n            return getJSONByUrl(this.prefs().deleteUrl, { UUID: this.cardToRemove }).then((responseData) => {\n                if (responseData.newPaymentList) {\n                    this.updatePaymentsList(responseData.newPaymentList).then(() => {\n                        /**\n                         * @description Global event to show alert\n                         * @event \"alert.show\"\n                         */\n                        // eslint-disable-next-line sonarjs/no-duplicate-string\n                        this.eventBus().emit('alert.show', {\n                            accessibilityAlert: this.prefs().accessibilityAlerts.defaultMethodDeleted\n                        });\n                    });\n                } else {\n                    // @ts-expect-error ts-migrate(2339) FIXME: Property 'cardToRemove' does not exist on type 'Pa... Remove this comment to see the full error message\n                    this.ref(`payment-${this.cardToRemove}`).remove();\n\n                    /**\n                     * @description Global event to show alert\n                     * @event \"alert.show\"\n                     */\n                    this.eventBus().emit('alert.show', {\n                        accessibilityAlert: this.prefs().accessibilityAlerts.methodDeleted\n                    });\n                }\n\n                // @ts-expect-error ts-migrate(2571) FIXME: Object is of type 'unknown'.\n                if (responseData.message && responseData.message.length) {\n                    this.ref('emptyPaymentsList').show();\n                }\n\n                // @ts-expect-error ts-migrate(2339) FIXME: Property 'cardToRemove' does not exist on type 'Pa... Remove this comment to see the full error message\n                delete this.cardToRemove;\n\n                return responseData;\n            });\n        }\n\n        /**\n         * @description Set current payment method as default\n         * @listens dom#click\n         * @param {RefElement} setDefaultBtn - Set default button\n         * @returns {void}\n         */\n        setPaymentDefault(setDefaultBtn) {\n            getJSONByUrl(this.prefs().setDefaultUrl, { UUID: setDefaultBtn.data('uuid') }).then((responseData) => {\n                if (responseData.customerPaymentInstruments) {\n                    this.updatePaymentsList(responseData.customerPaymentInstruments).then(() => {\n                        /**\n                         * @description Global event to show alert\n                         * @event \"alert.show\"\n                         */\n                        this.eventBus().emit('alert.show', {\n                            accessibilityAlert: this.prefs().accessibilityAlerts.defaultMethodChanged\n                        });\n                    });\n                }\n            });\n        }\n\n        /**\n         * @description Update payments list\n         * @param {Array} paymentInstruments - List of customer payments\n         * @returns {Promise<void>} Promise object represents payment tiles rendering result\n         */\n        updatePaymentsList(paymentInstruments) {\n            paymentInstruments.forEach((instrument) => {\n                instrument.creditCardTypeLow = instrument.creditCardType.toLowerCase();\n                instrument.creditCardLastDigits = instrument.maskedCreditCardNumber.slice(-4);\n            });\n\n            return this.render(\n                'paymentListTemplate',\n                { customerPaymentInstruments: paymentInstruments },\n                this.ref('paymentsList')\n            );\n        }\n    }\n\n    return PaymentsList;\n}\n","/**\n * @typedef {InstanceType<ReturnType<typeof import('widgets/forms/BasicInput').default>>} BasicInput\n */\n\n/**\n * @param AddressForm Base widget for extending\n * @returns Address Form class\n */\nexport default function (AddressForm: ReturnType<typeof import('widgets/forms/AddressForm').default>) {\n    /**\n     * @category widgets\n     * @subcategory forms\n     * @class AddressBookForm\n     * @augments AddressForm\n     * @classdesc Represents AddressBookForm component with next features:\n     * 1. Show accessibility alert on address edit depends on the address was the default or not\n     * 2. Allow handle server response\n     * @property {string} data-widget - Widget name `addressBookForm`\n     * @property {string} data-form-definition-url - Update form definition URL\n     * @property {object} data-accessibility-alerts - Accessibility alerts messages\n     * @example <caption>Example of AddressBookForm widget usage</caption>\n     * <form\n     *     data-widget=\"addressBookForm\"\n     *     data-event-submit.prevent=\"handleSubmit\" novalidate\n     *     action=\"${URLUtils.url('Address-SaveAddress')}\" method=\"POST\n     *     data-form-definition-url=\"${URLUtils.url('Forms-FormDefinition', 'form', 'address')}\"\n     * >\n     *     <div class=\"alert alert-danger\" hidden=\"hidden\" data-ref=\"errorMessageLabel\"></div>\n     *     ... form fields\n     *     <input type=\"hidden\" name=\"${pdict.csrf.tokenName}\" value=\"${pdict.csrf.token}\"/>\n     *     <div>\n     *         <button\n     *              type=\"submit\"\n     *              name=\"save\"\n     *              data-widget=\"button\"\n     *              data-widget-event-click=\"handleSubmit\"\n     *              data-event-click.prevent=\"handleClick\"\n     *              data-id=\"submitButton\"\n     *         >\n     *              ${Resource.msg('button.save','account',null)}\n     *         </button>\n     *     </div>\n     * </form>\n     */\n    class AddressBookForm extends AddressForm {\n        prefs() {\n            return {\n                isDefaultAddress: false,\n                accessibilityAlerts: <TAccessibilityAlerts>{},\n                ...super.prefs()\n            };\n        }\n\n        /**\n         * @description Check if default address was changed and triggered Global Alerts\n         * @emits \"alert.show\"\n         * @param {object} response Server JSON response once form submitted\n         * @returns {void}\n         */\n        triggerEditAddressEvent(response) {\n            let accessibilityAlert = {};\n            const isEditedAddressDefault = this.prefs().isDefaultAddress;\n            const isSavedAddressDefault = response.isDefault;\n\n            if (isSavedAddressDefault && !isEditedAddressDefault) {\n                accessibilityAlert = this.prefs().accessibilityAlerts.defaultAddressChanged;\n            } else {\n                accessibilityAlert = this.prefs().accessibilityAlerts.unselectedDefaultAddress;\n            }\n\n            /**\n             * @description Global event to show alert\n             * @event \"alert.show\"\n             */\n            this.eventBus().emit('alert.show', {\n                accessibilityAlert\n            });\n        }\n\n        /**\n         * @description Check if setAsDefault value was changed and triggered Global Alerts\n         * @param {object} data Server JSON response once form submitted\n         * @returns {void}\n         */\n        onSubmitted(data) {\n            if (data.success) {\n                this.triggerEditAddressEvent(data);\n            }\n\n            super.onSubmitted(data);\n        }\n    }\n\n    return AddressBookForm;\n}\n","import { TWidget } from 'widgets/Widget';\n/**\n * @typedef {InstanceType<typeof import('widgets/toolbox/RefElement').RefElement>} refElement\n */\n\n/**\n * @param Widget Base widget for extending\n * @returns Order Product Summary widget\n */\nexport default function (Widget: TWidget) {\n    /**\n     * @category widgets\n     * @subcategory order\n     * @class OrderProductSummary\n     * @augments Widget\n     * @classdesc Represents ordered products summary with next features:\n     * 1. Handles click on product link\n     *\n     * @example <caption>Order products summary</caption>\n     * <div data-widget=\"orderProductSummary\">\n     *     <isloop items=\"${pdict.order.shipping}\" var=\"shippingModel\">\n     *         <isloop items=\"${shippingModel.productLineItems.items}\" var=\"lineItem\">\n     *             <isif condition=\"${lineItem.isBonusProductLineItem}\">\n     *                 <isinclude template=\"checkout/productCard/bonusProductCard\" />\n     *             <iselse/>\n     *                 <isinclude template=\"checkout/productCard/productCard\" />\n     *             </isif>\n     *         </isloop>\n     *         <isif condition=\"${pdict.order.shipping.length > 1}\">\n     *             <isinclude template=\"checkout/shipping/shippingCard\" />\n     *         </isif>\n     *     </isloop>\n     * </div>\n     */\n    class OrderProductSummary extends Widget {\n        /**\n         * @description Executes when user clicks on order product link.\n         * Usually used by analytics etc.\n         * @emits \"orderdetail.product.link.click\"\n         * @param {refElement} link - clicked product tile link\n         * @returns {void}\n         */\n        onProductLinkClick(link) {\n            this.eventBus().emit('orderdetail.product.link.click', link);\n        }\n    }\n\n    return OrderProductSummary;\n}\n"],"names":["AjaxForm","AddPaymentMethodForm","prefs","cartTypesMapping","amex","discover","diners","mastercard","maestro","visa","newCreditCardType","ccFieldWidget","cardType","getById","cardTypeField","setValue","submitFormJson","Widget","AddressList","accessibilityAlerts","setAsDefaultAddress","targetLink","actionUrl","data","addressType","addressId","undefined","then","response","success","redirectUrl","window","location","href","removeAddress","address","addressToRemove","confirmDialog","showModal","addressTitle","confirmedRemoveAddress","Promise","resolve","isDefault","addressCard","ref","defaultAddresses","addNewAddressElement","get","remove","accessibilityAlert","addressRemoved","forEach","updateAddressTile","deleteDefaultAddress","focus","eventBus","emit","addressID","templateParams","render","getJSONByUrl","getContentByUrl","OrderHistoryMgr","classesBusy","loadMore","button","String","attr","busy","all","append","orderListItems","orderListFooter","orderlistupdated","finally","unbusy","updateOrderList","select","selectedSorting","getSelectedOptions","url","val","addClass","removeClass","PaymentsList","deleteUrl","setDefaultUrl","removeCard","card","cardToRemove","cardNumber","confirmedRemoveCard","UUID","responseData","newPaymentList","updatePaymentsList","defaultMethodDeleted","methodDeleted","message","length","show","setPaymentDefault","setDefaultBtn","customerPaymentInstruments","defaultMethodChanged","paymentInstruments","instrument","creditCardTypeLow","creditCardType","toLowerCase","creditCardLastDigits","maskedCreditCardNumber","slice","AddressForm","AddressBookForm","isDefaultAddress","triggerEditAddressEvent","isEditedAddressDefault","isSavedAddressDefault","defaultAddressChanged","unselectedDefaultAddress","onSubmitted","OrderProductSummary","onProductLinkClick","link"],"sourceRoot":""}