@zonos/elements 1.3.22 → 1.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ILanguage-d247b45b.js → ILanguage-98b04442.js} +2 -2
- package/dist/cjs/{cart-f963b239.js → cart-31ad351d.js} +399 -220
- package/dist/cjs/{getBorderRadius-332422ab.js → getBorderRadius-ea0984bb.js} +1 -1
- package/dist/cjs/index.cjs.js +3 -3
- package/dist/cjs/{isDarkColor-3ddf6511.js → isDarkColor-b14d5752.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{submitGtag-8d562ad4.js → submitGtag-d37af04d.js} +2 -2
- package/dist/cjs/zonos-address_8.cjs.entry.js +7 -7
- package/dist/cjs/zonos-badge_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_2.cjs.entry.js +5 -5
- package/dist/cjs/{zonos-cart-items_11.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +41 -12
- package/dist/cjs/zonos-checkout.cjs.entry.js +46 -6
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +9 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +7 -7
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -11
- package/dist/cjs/zonos-hello.cjs.entry.js +15 -11
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-768d6ca0.js → zonosStore-3958bbeb.js} +0 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +44 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +31 -10
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +4 -4
- package/dist/collection/components/common/zonos-rest-state/assets/Boxes.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Earth.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/EmptyBox.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Lock.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/PigBank.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Scribble.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Search.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Settings.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/ShoppingCart.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/SpilledCup.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Switch.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/TaxId.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Truck.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/assets/Warning.png +0 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.css +53 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +102 -0
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +3 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -3
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +9 -7
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/store/hello/localization.js +1 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +19 -10
- package/dist/collection/components/store/translationStore/strings.base.js +19 -10
- package/dist/collection/components/store/translationStore/strings.chinese.js +19 -10
- package/dist/collection/components/store/translationStore/strings.danish.js +19 -10
- package/dist/collection/components/store/translationStore/strings.dutch.js +19 -10
- package/dist/collection/components/store/translationStore/strings.french.js +19 -10
- package/dist/collection/components/store/translationStore/strings.german.js +19 -10
- package/dist/collection/components/store/translationStore/strings.hebrew.js +19 -10
- package/dist/collection/components/store/translationStore/strings.indonesian.js +19 -10
- package/dist/collection/components/store/translationStore/strings.italian.js +19 -10
- package/dist/collection/components/store/translationStore/strings.japanese.js +19 -10
- package/dist/collection/components/store/translationStore/strings.korean.js +19 -10
- package/dist/collection/components/store/translationStore/strings.norwegian.js +19 -10
- package/dist/collection/components/store/translationStore/strings.polish.js +19 -10
- package/dist/collection/components/store/translationStore/strings.portuguese.js +19 -10
- package/dist/collection/components/store/translationStore/strings.russian.js +19 -10
- package/dist/collection/components/store/translationStore/strings.spanish.js +19 -10
- package/dist/collection/components/store/translationStore/strings.swedish.js +19 -10
- package/dist/collection/components/store/translationStore/strings.turkish.js +19 -10
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +19 -10
- package/dist/collection/components/store/translationStore.js +2 -2
- package/dist/collection/components/store/zonosStore.js +0 -2
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +1 -15
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +14 -2
- package/dist/collection/components/utils/hello/getCurrentHelloLocalePage.js +8 -6
- package/dist/collection/components/utils/hello/initHello.js +4 -2
- package/dist/collection/components/utils/restStateType.js +16 -0
- package/dist/collection/types/ILanguage.js +2 -2
- package/dist/esm/{ILanguage-97790bee.js → ILanguage-cd6acb72.js} +2 -2
- package/dist/esm/{cart-efecbea6.js → cart-8662415b.js} +399 -220
- package/dist/esm/{getBorderRadius-a2e46e26.js → getBorderRadius-5e5a5800.js} +1 -1
- package/dist/esm/index.js +3 -3
- package/dist/esm/{isDarkColor-69ed8e39.js → isDarkColor-5185b62c.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{submitGtag-a7b8a86e.js → submitGtag-07553cf5.js} +2 -2
- package/dist/esm/zonos-address_8.entry.js +7 -7
- package/dist/esm/zonos-badge_2.entry.js +3 -3
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_2.entry.js +5 -5
- package/dist/esm/{zonos-cart-items_11.entry.js → zonos-cart-items_12.entry.js} +41 -13
- package/dist/esm/zonos-checkout.entry.js +47 -7
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +9 -7
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_3.entry.js +7 -7
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +13 -11
- package/dist/esm/zonos-hello.entry.js +15 -11
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-notification.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +5 -5
- package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
- package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/{zonosStore-93da32b4.js → zonosStore-8b9ea19c.js} +0 -2
- package/dist/esm-es5/ILanguage-cd6acb72.js +1 -0
- package/dist/esm-es5/cart-8662415b.js +1 -0
- package/dist/esm-es5/{getBorderRadius-a2e46e26.js → getBorderRadius-5e5a5800.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-69ed8e39.js → isDarkColor-5185b62c.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{submitGtag-a7b8a86e.js → submitGtag-07553cf5.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-93da32b4.js → zonosStore-8b9ea19c.js} +1 -1
- package/dist/scripts/index.d.ts +74 -12
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +12 -0
- package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +8 -1
- package/dist/types/components/common/zonos-rest-state/zonos-rest-state.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.base.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.danish.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.french.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.german.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.italian.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.korean.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.polish.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.russian.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +17 -8
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +17 -8
- package/dist/types/components/store/translationStore.d.ts +7 -7
- package/dist/types/components/utils/hello/currencyConversion/getCurrencyElements.d.ts +1 -1
- package/dist/types/components/utils/restStateType.d.ts +2 -0
- package/dist/types/components.d.ts +52 -3
- package/dist/types/scripts/_zonosBase.d.ts +21 -2
- package/dist/types/types/ILanguage.d.ts +2 -2
- package/dist/types/types/hello/HelloConfig.d.ts +1 -3
- package/dist/zonos-elements/assets/Boxes.png +0 -0
- package/dist/zonos-elements/assets/Earth.png +0 -0
- package/dist/zonos-elements/assets/EmptyBox.png +0 -0
- package/dist/zonos-elements/assets/Lock.png +0 -0
- package/dist/zonos-elements/assets/PigBank.png +0 -0
- package/dist/zonos-elements/assets/Scribble.png +0 -0
- package/dist/zonos-elements/assets/Search.png +0 -0
- package/dist/zonos-elements/assets/Settings.png +0 -0
- package/dist/zonos-elements/assets/ShoppingCart.png +0 -0
- package/dist/zonos-elements/assets/SpilledCup.png +0 -0
- package/dist/zonos-elements/assets/Switch.png +0 -0
- package/dist/zonos-elements/assets/TaxId.png +0 -0
- package/dist/zonos-elements/assets/Truck.png +0 -0
- package/dist/zonos-elements/assets/Warning.png +0 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-c77c056d.system.entry.js → p-02a01106.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-283aa6f9.system.entry.js → p-088d6460.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-13940c52.entry.js → p-0ea19a4d.entry.js} +1 -1
- package/dist/zonos-elements/p-144147f8.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ecaed308.system.entry.js → p-1620d0cc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7d2fc0fd.entry.js → p-1752853e.entry.js} +1 -1
- package/dist/zonos-elements/{p-8df58197.system.entry.js → p-1d7c9c24.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-33f83b9a.system.entry.js → p-1e2fbb1d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1fed304e.system.js +1 -0
- package/dist/zonos-elements/{p-498a0e18.entry.js → p-2701e08c.entry.js} +1 -1
- package/dist/zonos-elements/{p-140bb400.system.entry.js → p-299bceb7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-33b054d9.system.js +1 -0
- package/dist/zonos-elements/{p-d6f829c2.entry.js → p-33bcb4ab.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b7438ef.entry.js → p-41413c70.entry.js} +1 -1
- package/dist/zonos-elements/{p-bbe5d0f0.entry.js → p-44c59c27.entry.js} +1 -1
- package/dist/zonos-elements/p-45969dde.system.entry.js +1 -0
- package/dist/zonos-elements/p-4f2986fa.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1e07c616.system.entry.js → p-5992c6fb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5a11a235.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c53f7199.entry.js → p-6260d404.entry.js} +1 -1
- package/dist/zonos-elements/p-687f1f62.entry.js +1 -0
- package/dist/zonos-elements/{p-36f8a3df.system.js → p-7d48c12c.system.js} +1 -1
- package/dist/zonos-elements/{p-68e3ef26.system.entry.js → p-7f08c0f4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a20f6ba3.entry.js → p-7fa5a6ea.entry.js} +1 -1
- package/dist/zonos-elements/p-81750812.entry.js +1 -0
- package/dist/zonos-elements/{p-298b5d95.entry.js → p-84791c5c.entry.js} +1 -1
- package/dist/zonos-elements/{p-884b41a8.system.js → p-8853e051.system.js} +1 -1
- package/dist/zonos-elements/{p-57d70603.entry.js → p-8e584524.entry.js} +1 -1
- package/dist/zonos-elements/{p-8171d013.system.entry.js → p-941a01be.system.entry.js} +1 -1
- package/dist/zonos-elements/p-97aceb11.js +1 -0
- package/dist/zonos-elements/{p-2d3940dc.entry.js → p-9c0859b5.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0f0edbe.entry.js → p-9c8705ac.entry.js} +1 -1
- package/dist/zonos-elements/{p-795a3ed5.js → p-a5e9d372.js} +1 -1
- package/dist/zonos-elements/p-a67e5a9b.js +1 -0
- package/dist/zonos-elements/p-afc277d9.entry.js +1 -0
- package/dist/zonos-elements/{p-85a49fb8.system.entry.js → p-b45db572.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b56c38a9.entry.js +1 -0
- package/dist/zonos-elements/{p-3bee1a04.system.entry.js → p-b79753bb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a52afd83.system.js → p-be14323b.system.js} +1 -1
- package/dist/zonos-elements/{p-95ffff25.js → p-bf9dca26.js} +1 -1
- package/dist/zonos-elements/{p-5ca32f4f.entry.js → p-bfc30599.entry.js} +1 -1
- package/dist/zonos-elements/{p-d8255adf.entry.js → p-c0ddef11.entry.js} +1 -1
- package/dist/zonos-elements/{p-20ab8daf.system.entry.js → p-c41d1708.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-df267420.js → p-c53cef11.js} +1 -1
- package/dist/zonos-elements/{p-2641f474.system.entry.js → p-c8e83577.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c9e433c0.system.js +1 -0
- package/dist/zonos-elements/{p-6e717c40.system.entry.js → p-cbe5c7bb.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d1b8bfce.system.js +1 -0
- package/dist/zonos-elements/p-d29b5bff.entry.js +1 -0
- package/dist/zonos-elements/{p-18432252.js → p-d6307a6d.js} +1 -1
- package/dist/zonos-elements/{p-5edc4f18.system.entry.js → p-d6796b73.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c2328652.system.entry.js → p-d7e6cad0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e0bf9666.system.js +1 -1
- package/dist/zonos-elements/{p-e5f7ff0f.entry.js → p-f3feed11.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +7 -15
- package/dist/esm-es5/ILanguage-97790bee.js +0 -1
- package/dist/esm-es5/cart-efecbea6.js +0 -1
- package/dist/esm-es5/zonos-cart-items_11.entry.js +0 -1
- package/dist/zonos-elements/p-102c670d.entry.js +0 -1
- package/dist/zonos-elements/p-16ad90ca.js +0 -1
- package/dist/zonos-elements/p-348adf28.js +0 -1
- package/dist/zonos-elements/p-49061c5d.entry.js +0 -1
- package/dist/zonos-elements/p-678daa20.system.entry.js +0 -1
- package/dist/zonos-elements/p-8a65433a.entry.js +0 -1
- package/dist/zonos-elements/p-968df90a.entry.js +0 -1
- package/dist/zonos-elements/p-9a299a98.system.entry.js +0 -1
- package/dist/zonos-elements/p-abe7524f.system.js +0 -1
- package/dist/zonos-elements/p-c7360a6c.system.js +0 -1
- package/dist/zonos-elements/p-d0a2b1ba.system.entry.js +0 -1
- package/dist/zonos-elements/p-d0c53fba.system.js +0 -1
- package/dist/zonos-elements/p-dafc6260.system.js +0 -1
- package/dist/zonos-elements/p-e625f68d.system.entry.js +0 -1
- package/dist/zonos-elements/p-edfb5021.entry.js +0 -1
|
@@ -19,6 +19,7 @@ import { LoadZonosParamsConfig } from "./scripts/_zonosBase";
|
|
|
19
19
|
import { NotificationInit } from "./components/common/zonos-notification/zonos-notification";
|
|
20
20
|
import { RestrictedItem } from "./types/hello/RestrictedItem";
|
|
21
21
|
import { AppearanceConfig as AppearanceConfig1 } from "./components.d";
|
|
22
|
+
import { RestStateType } from "./components/utils/restStateType";
|
|
22
23
|
import { ShippingRichRadioItem } from "./components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio";
|
|
23
24
|
import { SpinnerColor } from "./components/common/zonos-spinner/zonos-spinner";
|
|
24
25
|
import { GridSpacing } from "./types/styles/GridSpacing";
|
|
@@ -36,6 +37,7 @@ export { LoadZonosParamsConfig } from "./scripts/_zonosBase";
|
|
|
36
37
|
export { NotificationInit } from "./components/common/zonos-notification/zonos-notification";
|
|
37
38
|
export { RestrictedItem } from "./types/hello/RestrictedItem";
|
|
38
39
|
export { AppearanceConfig as AppearanceConfig1 } from "./components.d";
|
|
40
|
+
export { RestStateType } from "./components/utils/restStateType";
|
|
39
41
|
export { ShippingRichRadioItem } from "./components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio";
|
|
40
42
|
export { SpinnerColor } from "./components/common/zonos-spinner/zonos-spinner";
|
|
41
43
|
export { GridSpacing } from "./types/styles/GridSpacing";
|
|
@@ -431,7 +433,7 @@ export namespace Components {
|
|
|
431
433
|
/**
|
|
432
434
|
* Cancel button text
|
|
433
435
|
*/
|
|
434
|
-
"dialogCancelBtnText"
|
|
436
|
+
"dialogCancelBtnText"?: string;
|
|
435
437
|
/**
|
|
436
438
|
* Confirm button text
|
|
437
439
|
*/
|
|
@@ -455,6 +457,11 @@ export namespace Components {
|
|
|
455
457
|
* @default "Are you sure?"
|
|
456
458
|
*/
|
|
457
459
|
"dialogTitle": string;
|
|
460
|
+
/**
|
|
461
|
+
* Type of dialog - "alert" - Only confirm button - "confirm" - Both Confirm and cancel buttons
|
|
462
|
+
* @default "confirm"
|
|
463
|
+
*/
|
|
464
|
+
"dialogType": 'alert' | 'confirm';
|
|
458
465
|
/**
|
|
459
466
|
* Whether or not the dialog is open
|
|
460
467
|
*/
|
|
@@ -813,6 +820,20 @@ export namespace Components {
|
|
|
813
820
|
*/
|
|
814
821
|
"titleText"?: string;
|
|
815
822
|
}
|
|
823
|
+
interface ZonosRestState {
|
|
824
|
+
/**
|
|
825
|
+
* The subtitle of the rest state
|
|
826
|
+
*/
|
|
827
|
+
"restStateSubtitle": string;
|
|
828
|
+
/**
|
|
829
|
+
* The title of the rest state
|
|
830
|
+
*/
|
|
831
|
+
"restStateTitle": string;
|
|
832
|
+
/**
|
|
833
|
+
* The type of rest state
|
|
834
|
+
*/
|
|
835
|
+
"restStateType": RestStateType;
|
|
836
|
+
}
|
|
816
837
|
interface ZonosReview {
|
|
817
838
|
/**
|
|
818
839
|
* Whether or not to show the collapse icon This is controled from the collapsed state of the zonos-collapse component to show the collapse icon
|
|
@@ -1330,6 +1351,12 @@ declare global {
|
|
|
1330
1351
|
prototype: HTMLZonosPaymentElement;
|
|
1331
1352
|
new (): HTMLZonosPaymentElement;
|
|
1332
1353
|
};
|
|
1354
|
+
interface HTMLZonosRestStateElement extends Components.ZonosRestState, HTMLStencilElement {
|
|
1355
|
+
}
|
|
1356
|
+
var HTMLZonosRestStateElement: {
|
|
1357
|
+
prototype: HTMLZonosRestStateElement;
|
|
1358
|
+
new (): HTMLZonosRestStateElement;
|
|
1359
|
+
};
|
|
1333
1360
|
interface HTMLZonosReviewElement extends Components.ZonosReview, HTMLStencilElement {
|
|
1334
1361
|
}
|
|
1335
1362
|
var HTMLZonosReviewElement: {
|
|
@@ -1438,6 +1465,7 @@ declare global {
|
|
|
1438
1465
|
"zonos-logo": HTMLZonosLogoElement;
|
|
1439
1466
|
"zonos-notification": HTMLZonosNotificationElement;
|
|
1440
1467
|
"zonos-payment": HTMLZonosPaymentElement;
|
|
1468
|
+
"zonos-rest-state": HTMLZonosRestStateElement;
|
|
1441
1469
|
"zonos-review": HTMLZonosReviewElement;
|
|
1442
1470
|
"zonos-select-dialog-header": HTMLZonosSelectDialogHeaderElement;
|
|
1443
1471
|
"zonos-shipping": HTMLZonosShippingElement;
|
|
@@ -1848,7 +1876,7 @@ declare namespace LocalJSX {
|
|
|
1848
1876
|
/**
|
|
1849
1877
|
* Cancel button text
|
|
1850
1878
|
*/
|
|
1851
|
-
"dialogCancelBtnText"
|
|
1879
|
+
"dialogCancelBtnText"?: string;
|
|
1852
1880
|
/**
|
|
1853
1881
|
* Confirm button text
|
|
1854
1882
|
*/
|
|
@@ -1861,7 +1889,7 @@ declare namespace LocalJSX {
|
|
|
1861
1889
|
/**
|
|
1862
1890
|
* Whether or not the dialog is open
|
|
1863
1891
|
*/
|
|
1864
|
-
"dialogOpen"
|
|
1892
|
+
"dialogOpen": boolean;
|
|
1865
1893
|
/**
|
|
1866
1894
|
* Dialog subtitle text
|
|
1867
1895
|
* @default "" No subtitle
|
|
@@ -1872,6 +1900,11 @@ declare namespace LocalJSX {
|
|
|
1872
1900
|
* @default "Are you sure?"
|
|
1873
1901
|
*/
|
|
1874
1902
|
"dialogTitle"?: string;
|
|
1903
|
+
/**
|
|
1904
|
+
* Type of dialog - "alert" - Only confirm button - "confirm" - Both Confirm and cancel buttons
|
|
1905
|
+
* @default "confirm"
|
|
1906
|
+
*/
|
|
1907
|
+
"dialogType"?: 'alert' | 'confirm';
|
|
1875
1908
|
/**
|
|
1876
1909
|
* Whether or not the dialog is open
|
|
1877
1910
|
*/
|
|
@@ -2200,6 +2233,20 @@ declare namespace LocalJSX {
|
|
|
2200
2233
|
*/
|
|
2201
2234
|
"titleText"?: string;
|
|
2202
2235
|
}
|
|
2236
|
+
interface ZonosRestState {
|
|
2237
|
+
/**
|
|
2238
|
+
* The subtitle of the rest state
|
|
2239
|
+
*/
|
|
2240
|
+
"restStateSubtitle": string;
|
|
2241
|
+
/**
|
|
2242
|
+
* The title of the rest state
|
|
2243
|
+
*/
|
|
2244
|
+
"restStateTitle": string;
|
|
2245
|
+
/**
|
|
2246
|
+
* The type of rest state
|
|
2247
|
+
*/
|
|
2248
|
+
"restStateType": RestStateType;
|
|
2249
|
+
}
|
|
2203
2250
|
interface ZonosReview {
|
|
2204
2251
|
/**
|
|
2205
2252
|
* Whether or not to show the collapse icon This is controled from the collapsed state of the zonos-collapse component to show the collapse icon
|
|
@@ -2349,6 +2396,7 @@ declare namespace LocalJSX {
|
|
|
2349
2396
|
"zonos-logo": ZonosLogo;
|
|
2350
2397
|
"zonos-notification": ZonosNotification;
|
|
2351
2398
|
"zonos-payment": ZonosPayment;
|
|
2399
|
+
"zonos-rest-state": ZonosRestState;
|
|
2352
2400
|
"zonos-review": ZonosReview;
|
|
2353
2401
|
"zonos-select-dialog-header": ZonosSelectDialogHeader;
|
|
2354
2402
|
"zonos-shipping": ZonosShipping;
|
|
@@ -2400,6 +2448,7 @@ declare module "@stencil/core" {
|
|
|
2400
2448
|
"zonos-logo": LocalJSX.ZonosLogo & JSXBase.HTMLAttributes<HTMLZonosLogoElement>;
|
|
2401
2449
|
"zonos-notification": LocalJSX.ZonosNotification & JSXBase.HTMLAttributes<HTMLZonosNotificationElement>;
|
|
2402
2450
|
"zonos-payment": LocalJSX.ZonosPayment & JSXBase.HTMLAttributes<HTMLZonosPaymentElement>;
|
|
2451
|
+
"zonos-rest-state": LocalJSX.ZonosRestState & JSXBase.HTMLAttributes<HTMLZonosRestStateElement>;
|
|
2403
2452
|
"zonos-review": LocalJSX.ZonosReview & JSXBase.HTMLAttributes<HTMLZonosReviewElement>;
|
|
2404
2453
|
"zonos-select-dialog-header": LocalJSX.ZonosSelectDialogHeader & JSXBase.HTMLAttributes<HTMLZonosSelectDialogHeaderElement>;
|
|
2405
2454
|
"zonos-shipping": LocalJSX.ZonosShipping & JSXBase.HTMLAttributes<HTMLZonosShippingElement>;
|
|
@@ -5,8 +5,23 @@ import type { TempCart } from "../types/checkout/api/TempCart";
|
|
|
5
5
|
import type { CheckoutConfig } from "../types/checkout/CheckoutConfig";
|
|
6
6
|
import type { CountryCode, CurrencyCode } from "../types/generated/graphql.customer.types";
|
|
7
7
|
import type { HelloConfig } from "../types/hello/HelloConfig";
|
|
8
|
+
/**
|
|
9
|
+
* Currency converter function to be used in Hello and Checkout
|
|
10
|
+
* @note don't modify the element directly in this function, otherwise it might cause unexpected behavior like an infinite loop
|
|
11
|
+
*/
|
|
8
12
|
export type CurrencyConverter = (props: {
|
|
9
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Current currency code
|
|
15
|
+
*/
|
|
16
|
+
currencyCode: CurrencyCode;
|
|
17
|
+
/**
|
|
18
|
+
* The original amount before conversion
|
|
19
|
+
*/
|
|
20
|
+
originalAmount: number;
|
|
21
|
+
/**
|
|
22
|
+
* HTML element matching the selector specified in the helloSettings init
|
|
23
|
+
*/
|
|
24
|
+
selector: HTMLElement;
|
|
10
25
|
/**
|
|
11
26
|
* Convert the amount to the target currency in Hello (no locale format)
|
|
12
27
|
* @param convert amount
|
|
@@ -34,10 +49,14 @@ export type CurrencyConverter = (props: {
|
|
|
34
49
|
* format(100) // return CA$100.00 when selected country in Hello is Canada
|
|
35
50
|
*/
|
|
36
51
|
format: (amount: number) => string;
|
|
37
|
-
}) =>
|
|
52
|
+
}) => string;
|
|
38
53
|
export type LoadZonosParamsConfig = {
|
|
39
54
|
appearance?: Partial<AppearanceConfig>;
|
|
40
55
|
checkoutSettings?: Partial<CheckoutConfig>;
|
|
56
|
+
/**
|
|
57
|
+
* Currency converter function to be used in Hello and Checkout
|
|
58
|
+
* @note don't modify element directly in this function, otherwise it might cause unexpected behavior like an infinite loop
|
|
59
|
+
*/
|
|
41
60
|
currencyConverter?: CurrencyConverter;
|
|
42
61
|
helloSettings?: Partial<HelloConfig>;
|
|
43
62
|
/**
|
|
@@ -33,7 +33,7 @@ export declare const languages: readonly [{
|
|
|
33
33
|
}, {
|
|
34
34
|
readonly code: "de";
|
|
35
35
|
readonly label: "German";
|
|
36
|
-
readonly translatedLabel: "
|
|
36
|
+
readonly translatedLabel: "Deutsch";
|
|
37
37
|
}, {
|
|
38
38
|
readonly code: "ja";
|
|
39
39
|
readonly label: "Japanese";
|
|
@@ -49,7 +49,7 @@ export declare const languages: readonly [{
|
|
|
49
49
|
}, {
|
|
50
50
|
readonly code: "tr";
|
|
51
51
|
readonly label: "Turkish";
|
|
52
|
-
readonly translatedLabel: "
|
|
52
|
+
readonly translatedLabel: "Türkçe";
|
|
53
53
|
}, {
|
|
54
54
|
readonly code: "he";
|
|
55
55
|
readonly label: "Hebrew";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { HelloCurrencyBehavior,
|
|
1
|
+
import type { HelloCurrencyBehavior, HelloMobileLocation, HelloPeekMessageBehavior, HelloRestrictionBehavior, Mode } from "../generated/graphql.customer.types";
|
|
2
2
|
export type HelloConfig = {
|
|
3
3
|
anchorElementSelector: string;
|
|
4
4
|
cartUrlPattern: string | null;
|
|
@@ -9,7 +9,6 @@ export type HelloConfig = {
|
|
|
9
9
|
countryOverrideBehavior?: 'URL_PARAM' | 'SESSION';
|
|
10
10
|
currencyBehavior: HelloCurrencyBehavior;
|
|
11
11
|
currencyElementSelector: string;
|
|
12
|
-
dutyTaxEstimationBehavior: HelloEstimateBehavior;
|
|
13
12
|
excludedUrlPatterns: Array<string>;
|
|
14
13
|
homepageUrlPattern: string | null;
|
|
15
14
|
mobileLocation: HelloMobileLocation;
|
|
@@ -21,7 +20,6 @@ export type HelloConfig = {
|
|
|
21
20
|
productDescriptionElementSelector: string | null;
|
|
22
21
|
productDetailUrlPattern: string | null;
|
|
23
22
|
productListUrlPattern: string | null;
|
|
24
|
-
productPriceElementSelector: string | null;
|
|
25
23
|
productTitleElementSelector: string | null;
|
|
26
24
|
restrictionBehavior: HelloRestrictionBehavior;
|
|
27
25
|
};
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e,a as n}from"./p-eaa335e1.js";const o="https://js.stripe.com/v3",t=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let i=null;const r=Promise.resolve().then((()=>{return e=null,null!==i||(i=new Promise(((i,r)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(s),window.Stripe)i(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${o}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&t.test(o.src))return o}return null})();l&&e?console.warn(s):l||(l=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",s=document.createElement("script");s.src=`${o}${t}`;const i=document.head||document.body;return i?(i.appendChild(s),s):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?i(window.Stripe):r(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{r(new Error("Failed to load Stripe.js"))}))}catch(e){return void r(e)}else i(null)}))),i;var e}));let l=!1;var c;r.catch((e=>{l||console.warn(e)}));const d=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,o=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),t=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:t,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?n:null})()||"https://v1.3.22.js.zonos.com",a="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.22",u="https://rsms.me",m="https://fonts.googleapis.com",p=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class w{}c=w,w.doneInit=!1,w.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),w.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),w.isBigCommerce=!1,w.isNpm=!0,w.internationalHideSelector="",w.zonosQaUrl=null,w.version="v1.3.22",w.modeAlerted=!1,w.tempCartData=null,w.getCurrentTimestamp=()=>(new Date).getTime(),w.zonosController=null,w.init=async({appearance:o,checkoutSettings:t,currencyConverter:s,helloSettings:i,onCountryChange:r,overrideCurrencyFormat:l,storeId:d,zonosApiKey:a})=>{c.doneInit||(e(`====== ZONOS DEBUG MODE: on (${c.version}) ======`),a?(c.zonosApiKey=a,c.storeId=d,e("init zonos"),c.injectSentryScript(),c.injectZonosCdn(),c.injectZonosCss(),c.injectFonts(),c.injectController({config:{appearance:o,checkoutSettings:t,currencyConverter:s,helloSettings:i,onCountryChange:r,overrideCurrencyFormat:l},zonosApiKey:a}),c.doneInit=!0):n("Missing Zonos API key"))},w.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},w.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},w.showNotification=e=>{var n;null===(n=c.zonosController)||void 0===n||n.showNotification(e)},w.updateOrganizationName=e=>{var n;null===(n=c.zonosController)||void 0===n||n.updateOrganizationName(e)},w.disablePlaceOrderButtons=({autoEnable:e=!0,disable:n,placeOrderButtonSelector:o})=>{if(o){const t=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};t.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(n?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&n&&setTimeout((()=>{t.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},w.injectController=({config:o,zonosApiKey:t})=>{var s;if(document.querySelector("zonos-controller"))return;if(null===(s=o.checkoutSettings)||void 0===s?void 0:s.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;c.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{c.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const i=document.createElement("zonos-controller");i.config=o,i.zonosApiKey=t,i.addEventListener("stripeInitEvent",(async o=>{const{detail:t}=o;e("loading Stripe");const s=await(async(...e)=>{l=!0;const n=Date.now();return r.then((o=>((e,n,o)=>{if(null===e)return null;const t=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(t,o),t})(o,e,n)))})(t.publishableKey);s?(window.Zonos.stripe=s,i.initCheckoutElement(s)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(i),c.zonosController=i,e("Zonos controller injected!")},w.injectSentryScript=()=>{const o="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${o}"]`))return void e("Sentry script already exists in the document","warn");const t=document.head||document.body,s=document.createElement("script");s.crossOrigin="anonymous",s.src=o,s.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l",s.setAttribute("data-lazy","no"),s.onerror=()=>{n(`Failed to load ${s.src}`)},s.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.init({beforeSend(e){var n,o,t,s,i,r;const l=null===(r=null===(i=null===(s=null===(t=null===(o=null===(n=e.exception)||void 0===n?void 0:n.values)||void 0===o?void 0:o[0])||void 0===t?void 0:t.stacktrace)||void 0===s?void 0:s.frames)||void 0===i?void 0:i[0])||void 0===r?void 0:r.filename,c=(null==l?void 0:l.includes("js.zonos.com"))||(null==l?void 0:l.includes("@zonos/elements")),d=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");return c&&!d?e:null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${c.version}`,tracesSampler:()=>.01})},t.appendChild(s)},w.injectScript=({fallBackDomain:o,isModule:t,scriptDomain:s,theRestUrl:i})=>{const r=`${s}/${i}`;if(document.querySelector(`script[src="${r}"]`))return void e(`Zonos script "${r}" already exists in the document`,"warn");const l=document.head||document.body,d=document.createElement("script");t?d.type="module":d.noModule=!0,d.src=r,d.crossOrigin="anonymous",d.onerror=()=>{/\/\/v\d+\./g.test(s)?(o&&c.injectScript({isModule:t,scriptDomain:o,theRestUrl:i}),n(`Failed to load ${d.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(d)},w.getZonosUrl=()=>c.isNpm&&(()=>{if("undefined"==typeof window)return null;const n=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href);if(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const o=`https://${n}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${o}' for loading script`,"warn"),fetch(o).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${o}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,t=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null})),o})()||d,w.injectZonosCdn=()=>{const n=c.getZonosUrl();c.injectScript({fallBackDomain:a,isModule:!0,scriptDomain:n,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),c.injectScript({fallBackDomain:a,isModule:!1,scriptDomain:n,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},w.injectStylesheet=({fallBackDomain:o,stylesheetDomain:t,theRestUrl:s})=>{const i=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${d}/`,i.appendChild(r);const l=document.createElement("link");l.rel="stylesheet",l.href=`${t}/${s}`,l.onerror=()=>{const i=/\/\/v\d+\./g.test(t);i?(o&&i&&c.injectStylesheet({stylesheetDomain:o,theRestUrl:s}),n(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},i.appendChild(l)},w.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(c.injectStylesheet({fallBackDomain:a,stylesheetDomain:d,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},w.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${u}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&!p.test(o.href))return o}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=u,n.appendChild(o);const t=document.createElement("link");t.rel="stylesheet",t.href=`${u}/inter/inter.css`,n.appendChild(t),e("Zonos font injected!")},w.setupGoogleFont=e=>{var n;null===(n=c.zonosController)||void 0===n||n.setupGoogleFont(e)},w.injectSupportGoogleFont=n=>{var o;e(`[FONT] injecting ${n}`);const t=null===(o=n.match(/family=(.*?):/))||void 0===o?void 0:o[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${m}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=m,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${t} font already injected`,"warn");const i=document.createElement("link");i.rel="stylesheet",i.href=n,s.appendChild(i),e(`[FONT] ${t} font injected!`)};export{w as Zonos}
|
|
1
|
+
import{l as e,a as n}from"./p-eaa335e1.js";const o="https://js.stripe.com/v3",t=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,s="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let i=null;const r=Promise.resolve().then((()=>{return e=null,null!==i||(i=new Promise(((i,r)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(s),window.Stripe)i(window.Stripe);else try{let l=(()=>{const e=document.querySelectorAll(`script[src^="${o}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&t.test(o.src))return o}return null})();l&&e?console.warn(s):l||(l=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",s=document.createElement("script");s.src=`${o}${t}`;const i=document.head||document.body;return i?(i.appendChild(s),s):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==l||l.addEventListener("load",(()=>{window.Stripe?i(window.Stripe):r(new Error("Stripe.js not available"))})),null==l||l.addEventListener("error",(()=>{r(new Error("Failed to load Stripe.js"))}))}catch(e){return void r(e)}else i(null)}))),i;var e}));let l=!1;var c;r.catch((e=>{l||console.warn(e)}));const d=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,o=["dev.elements.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),t=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:t,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?n:null})()||"https://v1.3.24.js.zonos.com",a="https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.24",u="https://rsms.me",m="https://fonts.googleapis.com",p=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class w{}c=w,w.doneInit=!1,w.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),w.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),w.isBigCommerce=!1,w.isNpm=!0,w.internationalHideSelector="",w.zonosQaUrl=null,w.version="v1.3.24",w.modeAlerted=!1,w.tempCartData=null,w.getCurrentTimestamp=()=>(new Date).getTime(),w.zonosController=null,w.init=async({appearance:o,checkoutSettings:t,currencyConverter:s,helloSettings:i,onCountryChange:r,overrideCurrencyFormat:l,storeId:d,zonosApiKey:a})=>{c.doneInit||(e(`====== ZONOS DEBUG MODE: on (${c.version}) ======`),a?(c.zonosApiKey=a,c.storeId=d,e("init zonos"),c.injectSentryScript(),c.injectZonosCdn(),c.injectZonosCss(),c.injectFonts(),c.injectController({config:{appearance:o,checkoutSettings:t,currencyConverter:s,helloSettings:i,onCountryChange:r,overrideCurrencyFormat:l},zonosApiKey:a}),c.doneInit=!0):n("Missing Zonos API key"))},w.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},w.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},w.showNotification=e=>{var n;null===(n=c.zonosController)||void 0===n||n.showNotification(e)},w.updateOrganizationName=e=>{var n;null===(n=c.zonosController)||void 0===n||n.updateOrganizationName(e)},w.disablePlaceOrderButtons=({autoEnable:e=!0,disable:n,placeOrderButtonSelector:o})=>{if(o){const t=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};t.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(n?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&n&&setTimeout((()=>{t.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},w.injectController=({config:o,zonosApiKey:t})=>{var s;if(document.querySelector("zonos-controller"))return;if(null===(s=o.checkoutSettings)||void 0===s?void 0:s.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;c.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{c.disablePlaceOrderButtons({disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const i=document.createElement("zonos-controller");i.config=o,i.zonosApiKey=t,i.addEventListener("stripeInitEvent",(async o=>{const{detail:t}=o;e("loading Stripe");const s=await(async(...e)=>{l=!0;const n=Date.now();return r.then((o=>((e,n,o)=>{if(null===e)return null;const t=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(t,o),t})(o,e,n)))})(t.publishableKey);s?(window.Zonos.stripe=s,i.initCheckoutElement(s)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(i),c.zonosController=i,e("Zonos controller injected!")},w.injectSentryScript=()=>{const o="https://browser.sentry-cdn.com/7.88.0/bundle.tracing.min.js";if(document.querySelector(`script[src="${o}"]`))return void e("Sentry script already exists in the document","warn");const t=document.head||document.body,s=document.createElement("script");s.crossOrigin="anonymous",s.src=o,s.integrity="sha384-z/aQww1Fr6Mes0MO/2wlzQd2nXBCdDcKPXDTsMDMNPgTGRPqii3a4bzH79I+Vo8l",s.setAttribute("data-lazy","no"),s.onerror=()=>{n(`Failed to load ${s.src}`)},s.onload=()=>{var e;null===(e=window.Sentry)||void 0===e||e.init({beforeSend(e){var n,o,t,s,i,r;const l=null===(r=null===(i=null===(s=null===(t=null===(o=null===(n=e.exception)||void 0===n?void 0:n.values)||void 0===o?void 0:o[0])||void 0===t?void 0:t.stacktrace)||void 0===s?void 0:s.frames)||void 0===i?void 0:i[0])||void 0===r?void 0:r.filename,c=(null==l?void 0:l.includes("js.zonos.com"))||(null==l?void 0:l.includes("@zonos/elements")),d=window.location.href.includes("dev.elements")||window.location.href.includes("route.js.zonos.com");return c&&!d?e:null},dsn:"https://19168bd05af0e2e0e7520ad58953e4f2@o446983.ingest.sentry.io/4506400622837760",ignoreErrors:["Failed to load Stripe.js"],release:`zonos-elements@${c.version}`,tracesSampler:()=>.01})},t.appendChild(s)},w.injectScript=({fallBackDomain:o,isModule:t,scriptDomain:s,theRestUrl:i})=>{const r=`${s}/${i}`;if(document.querySelector(`script[src="${r}"]`))return void e(`Zonos script "${r}" already exists in the document`,"warn");const l=document.head||document.body,d=document.createElement("script");t?d.type="module":d.noModule=!0,d.src=r,d.crossOrigin="anonymous",d.onerror=()=>{/\/\/v\d+\./g.test(s)?(o&&c.injectScript({isModule:t,scriptDomain:o,theRestUrl:i}),n(`Failed to load ${d.src}`)):e("No need to fallback since this is not a versioned domain","warn")},l.appendChild(d)},w.getZonosUrl=()=>c.isNpm&&(()=>{if("undefined"==typeof window)return null;const n=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href);if(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const o=`https://${n}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${o}' for loading script`,"warn"),fetch(o).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${o}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,t=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",t),window.location.reload(),null})),o})()||d,w.injectZonosCdn=()=>{const n=c.getZonosUrl();c.injectScript({fallBackDomain:a,isModule:!0,scriptDomain:n,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),c.injectScript({fallBackDomain:a,isModule:!1,scriptDomain:n,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},w.injectStylesheet=({fallBackDomain:o,stylesheetDomain:t,theRestUrl:s})=>{const i=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${d}/`,i.appendChild(r);const l=document.createElement("link");l.rel="stylesheet",l.href=`${t}/${s}`,l.onerror=()=>{const i=/\/\/v\d+\./g.test(t);i?(o&&i&&c.injectStylesheet({stylesheetDomain:o,theRestUrl:s}),n(`Failed to load ${l.href}`)):e("No need to fallback since this is not a versioned domain","warn")},i.appendChild(l)},w.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(c.injectStylesheet({fallBackDomain:a,stylesheetDomain:d,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},w.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${u}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&!p.test(o.href))return o}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,o=document.createElement("link");o.rel="preconnect",o.href=u,n.appendChild(o);const t=document.createElement("link");t.rel="stylesheet",t.href=`${u}/inter/inter.css`,n.appendChild(t),e("Zonos font injected!")},w.setupGoogleFont=e=>{var n;null===(n=c.zonosController)||void 0===n||n.setupGoogleFont(e)},w.injectSupportGoogleFont=n=>{var o;e(`[FONT] injecting ${n}`);const t=null===(o=n.match(/family=(.*?):/))||void 0===o?void 0:o[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${m}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=m,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${t} font already injected`,"warn");const i=document.createElement("link");i.rel="stylesheet",i.href=n,s.appendChild(i),e(`[FONT] ${t} font injected!`)};export{w as Zonos}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-d99232c5.system.js","./p-
|
|
1
|
+
System.register(["./p-d99232c5.system.js","./p-be14323b.system.js","./p-23e7c655.system.js"],(function(t){"use strict";var s,e,o,i,n,r;return{setters:[function(t){s=t.r;e=t.h;o=t.a;i=t.H},function(t){n=t.d},function(t){r=t.c}],execute:function(){var a=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";var h=a;var f=t("zonos_logo",function(){function t(t){s(this,t);this.theme="LIGHT";this.width="auto"}t.prototype.render=function(){var t=this.theme==="DARK"?"invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)":"whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)";return e(i,{key:"c790c72d413c586a873c5046a1aee797c1f0af36",class:r(["zonos--elements zonos--logo"]),style:{"--filter-color":t,"--font-family":n(),"--width":this.width}},e("img",{key:"68efd2097a0d8488308de0b50bef30cc67deb6fa",alt:"Zonos Logo",src:o("./assets/ZonosLogo.png")}))};Object.defineProperty(t,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return t}());f.style=h}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-d99232c5.system.js","./p-
|
|
1
|
+
System.register(["./p-d99232c5.system.js","./p-be14323b.system.js","./p-23e7c655.system.js","./p-4a107b6f.system.js"],(function(e){"use strict";var t,s,o,n,i,a;return{setters:[function(e){t=e.r;s=e.h;o=e.H},function(e){n=e.d},function(e){i=e.c},function(e){a=e.i}],execute:function(){var l={pageHeader:{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",weight:900},secondaryPageHeader:{label:'Secondary Page Header (3XL) • 34px, 500 "Medium"',size:"3xl",tag:"h2",weight:500},header:{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},descriptionHeader:{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},title:{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",weight:600},boldSubheader:{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:700},semiBoldSubheader:{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",weight:600},subheader:{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:500},boldLabel:{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:700},semiBoldLabel:{label:"Semi Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:600},label:{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:500},body:{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",weight:400},smallHeader:{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",weight:600},caption:{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",weight:400},hintText:{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",weight:400}};var h=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{color:var(--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos-elements-font-size-3xl)}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos-elements-font-size-2xl)}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos-elements-font-size-xl)}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos-elements-font-size-l)}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos-elements-font-size-base)}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos-elements-font-size-s)}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos-elements-font-size-xs)}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";var r=h;var z=e("zonos_text",function(){function e(e){t(this,e);this.textColor="gray-1200";this.size=undefined;this.type="body";this.weight=undefined;this.ready=false}e.prototype.componentDidRender=function(){var e=this;setTimeout((function(){e.ready=true}),100)};e.prototype.render=function(){var e=l.body,t=e.size,h=e.tag,r=e.weight;var z=l[this.type],x=z.size,g=z.tag,f=z.weight;var m=this.size||x||t;var u=this.weight||f||r;var b=g||h;var d=a(this.textColor)?"var(--zonos-elements-".concat(this.textColor,")"):this.textColor;var p=function(){switch(b){case"h2":return s("h2",null,s("slot",null));case"h3":return s("h3",null,s("slot",null));case"h4":return s("h4",null,s("slot",null));case"h5":return s("h5",null,s("slot",null));case"span":default:return s("span",null,s("slot",null))}};return s(o,{class:i(["zonos--elements","zonos--text-size-".concat(m),"zonos--text-weight-".concat(u)]),style:{"--color":d,"--font-family":n()}},p())};return e}());z.style=r}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as o,H as s}from"./p-ce347974.js";import{d as i}from"./p-
|
|
1
|
+
import{r as t,h as o,H as s}from"./p-ce347974.js";import{d as i}from"./p-c53cef11.js";import{c as n}from"./p-b4b7f705.js";const e=class{constructor(o){t(this,o),this.notificationArray=[]}async showNotification(t){const o=`id-${Math.random().toString(36).substring(2,9)}`,s=Object.assign(Object.assign({},t),{id:o,timeout:t.timeout||5e3,transitionClass:"",type:t.type||"success"});this.notificationArray=[...this.notificationArray,s],setTimeout((()=>{this.updateTransitionClass({id:o,transitionClass:"show"})}),50),setTimeout((()=>{this.removeNotification(o)}),s.timeout)}updateTransitionClass({id:t,transitionClass:o}){this.notificationArray=this.notificationArray.map((s=>s.id===t?Object.assign(Object.assign({},s),{transitionClass:o}):s))}removeNotification(t){this.updateTransitionClass({id:t,transitionClass:""}),setTimeout((()=>{this.notificationArray=this.notificationArray.filter((o=>o.id!==t))}),300)}render(){return o(s,{key:"17c08c90c6c1dfade4e43451c196127a0f53429e",class:n(["zonos--elements zonos--notification"]),style:{"--font-family":i()}},o("div",{key:"6624419d86a5c7518539069dbc5c9d7c08262c75",class:"zonos--notification-items"},this.notificationArray.map((t=>o("div",{"aria-hidden":"true",class:n(["zonos--notification-item",t.type,t.transitionClass]),key:t.id,onClick:()=>{this.removeNotification(t.id)}},o("zonos-text",{textColor:"gray-0"},t.message))))))}};e.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--notification-items{position:fixed;z-index:9999999;bottom:24px;gap:8px;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--notification-item{cursor:pointer;-webkit-transition:all 0.3s ease;transition:all 0.3s ease;padding:8px;border-radius:var(--border-radius, var(--zonos-elements-radius-6));opacity:0;-ms-flex-negative:0.0001;flex-shrink:0.0001;-webkit-transform:translateY(100%);transform:translateY(100%)}:host .zonos--notification-item+:host .zonos--notification-item{margin-top:8px}:host .zonos--notification-item.show{opacity:1;-webkit-transform:translateY(0);transform:translateY(0);-ms-flex-positive:1000;flex-grow:1000}:host .zonos--notification-item.success{background-color:var(--zonos-elements-green-700)}:host .zonos--notification-item.error{background-color:var(--zonos-elements-red-700)}:host .zonos--notification-item.warning{background-color:var(--zonos-elements-orange-700)}";export{e as zonos_notification}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var __awaiter=this&&this.__awaiter||function(o,e,t,n){function s(o){return o instanceof t?o:new t((function(e){e(o)}))}return new(t||(t=Promise))((function(t,c){function i(o){try{u(n.next(o))}catch(o){c(o)}}function r(o){try{u(n["throw"](o))}catch(o){c(o)}}function u(o){o.done?t(o.value):s(o.value).then(i,r)}u((n=n.apply(o,e||[])).next())}))};var __generator=this&&this.__generator||function(o,e){var t={label:0,sent:function(){if(c[0]&1)throw c[1];return c[1]},trys:[],ops:[]},n,s,c,i;return i={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function r(o){return function(e){return u([o,e])}}function u(r){if(n)throw new TypeError("Generator is already executing.");while(i&&(i=0,r[0]&&(t=0)),t)try{if(n=1,s&&(c=r[0]&2?s["return"]:r[0]?s["throw"]||((c=s["return"])&&c.call(s),0):s.next)&&!(c=c.call(s,r[1])).done)return c;if(s=0,c)r=[r[0]&2,c.value];switch(r[0]){case 0:case 1:c=r;break;case 4:t.label++;return{value:r[1],done:false};case 5:t.label++;s=r[1];r=[0];continue;case 7:r=t.ops.pop();t.trys.pop();continue;default:if(!(c=t.trys,c=c.length>0&&c[c.length-1])&&(r[0]===6||r[0]===2)){t=0;continue}if(r[0]===3&&(!c||r[1]>c[0]&&r[1]<c[3])){t.label=r[1];break}if(r[0]===6&&t.label<c[1]){t.label=c[1];c=r;break}if(c&&t.label<c[2]){t.label=c[2];t.ops.push(r);break}if(c[2])t.ops.pop();t.trys.pop();continue}r=e.call(o,t)}catch(o){r=[6,o];s=0}finally{n=c=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};System.register(["./p-d99232c5.system.js","./p-d1b8bfce.system.js","./p-be14323b.system.js","./p-1fed304e.system.js","./p-aed0098c.system.js","./p-63db40b9.system.js","./p-23e7c655.system.js","./p-33b054d9.system.js","./p-8853e051.system.js","./p-2770ba48.system.js"],(function(o){"use strict";var e,t,n,s,c,i,r,u,a,h,d,l,f,z,m,k,v,p,g,b,w,y,x,C,_,O,S,I,A,T,N,j,H,L,B,E,M;return{setters:[function(o){e=o.r;t=o.h;n=o.H;s=o.F},function(o){c=o.l;i=o.s;r=o.a;u=o.b;a=o.c;h=o.i;d=o.d;l=o.e;f=o.f;z=o.g;m=o.h;k=o.j;v=o.k;p=o.t;g=o.m;b=o.n;w=o.o;y=o.p;x=o.q},function(o){C=o.z;_=o.g;O=o.m},function(o){S=o.c;I=o.s;A=o.a;T=o.t},function(o){N=o.i},function(o){j=o.l;H=o.a},function(o){L=o.c},function(o){B=o.g},function(o){E=o.i},function(o){M=o.R}],execute:function(){var P=this;var D=function(o){var e=o.key,t=o.value;return t?{key:e,value:t}:null};var G=function(o){return[D({key:"brand",value:o.itemBrand}),D({key:"material",value:o.itemMaterial}),D({key:"category",value:o.itemCategory}),D({key:"color",value:o.itemColor}),D({key:"customization",value:o.itemCustomization}),D({key:"descriptionDetailed",value:o.itemDescriptionDetailed}),D({key:"fabricContent",value:o.itemFabricContent}),D({key:"ltlClass",value:o.itemLtlClass}),D({key:"pickingLocation",value:o.itemPickingLocation}),D({key:"shipFromLocation",value:o.itemShipFromLocation}),D({key:"size",value:o.itemSize}),D({key:"status",value:o.status})].filter(Boolean)};var R=function(o){if(!o){return"POUND"}switch(o.toUpperCase()){case"KG":return"KILOGRAM";case"OZ":return"OUNCE";case"G":return"GRAM";default:return"POUND"}};var U=function(o){if(!o){return[]}var e=[];if(o.length){e.push({type:"LENGTH",unitOfMeasure:"INCH",value:o.length})}if(o.width){e.push({type:"WIDTH",unitOfMeasure:"INCH",value:o.width})}if(o.weight){e.push({type:"WEIGHT",unitOfMeasure:R(o.weightUnits),value:o.weight})}if(o.height){e.push({type:"HEIGHT",unitOfMeasure:"INCH",value:o.height})}return e};var Z=function(o){var e;var t=((e=o===null||o===void 0?void 0:o.items)===null||e===void 0?void 0:e.map((function(o){return{amount:o.unitPrice||0,attributes:G(o),countryOfOrigin:o.countryOfOrigin||undefined,currencyCode:"USD",description:o.itemDescriptionLong||"",imageUrl:o.imageURL||"",itemType:"PHYSICAL_GOOD",measurements:U(o),name:o.description||"",productId:o.productId||"",quantity:o.quantity||0,sku:o.sku||""}})))||[];return t};var F=function(o){if(o===void 0){o=true}if(!c.localizationLoaded){return false}if(!c.isShippableCountry){document.dispatchEvent(S("legacyCheckoutError","Unable to initiate checkout process in a country where shipping is not available"));if(o){j("Checkout: not shippable country")}return false}return true};var K=function(o){var e=o.domesticRedirectedBtnSelector,t=o.onShippingAddressSessionFound;if(!window.Zonos.isBigCommerce){return}var n=new MutationObserver((function(){return __awaiter(P,void 0,void 0,(function(){var o,s,c,h,d;var l=this;return __generator(this,(function(f){o=document.querySelector(e);s=i();if(!o&&s){c=document.createElement("button");c.style.display="none";c.id="zonos--domestic-redirected-checkout-button";document.body.appendChild(c);t===null||t===void 0?void 0:t(s);n.disconnect();return[2]}h=document.querySelector('select[name="shippingAddress.countryCode"]');d=document.querySelector("#checkout-shipping-continue");if(!h||!d){return[2]}n.disconnect();d.addEventListener("click",(function(o){return __awaiter(l,void 0,void 0,(function(){var e,t,n,s,c,i,d;return __generator(this,(function(l){n=h.value;if(!n){return[2]}r(n);if(!F(false)){u();return[2]}s=document.querySelector("form");if(!s){return[2]}c=new FormData(s);i=document.querySelector("input#addressLine1Input");d={address1:(e=c.get("shippingAddress.address1"))!==null&&e!==void 0?e:i&&i.value,address2:c.get("shippingAddress.address2"),city:c.get("shippingAddress.city"),countryCode:c.get("shippingAddress.countryCode"),firstName:c.get("shippingAddress.firstName"),lastName:c.get("shippingAddress.lastName"),phone:c.get("shippingAddress.phone"),postalCode:c.get("shippingAddress.postalCode"),stateOrProvince:(t=c.get("shippingAddress.stateOrProvince"))!==null&&t!==void 0?t:c.get("shippingAddress.stateOrProvinceCode")};if(Object.values(d).some((function(o){return o===undefined||o===null}))){H("One or more shipping address field is missing",Object.entries(d));void I({endpoint:"No endpoint, domestic checkout form missing fields",errors:["Bigcommerce: One or more shipping address field is missing in the domestic checkout form",JSON.stringify(Object.entries(d))],metadata:{domain:window.location.hostname,storeId:C.storeId}});return[2]}a({address1:d.address1,address2:d.address2,city:d.city,countryCode:d.countryCode,firstName:d.firstName,lastName:d.lastName,phone:d.phone,postalCode:d.postalCode,state:d.stateOrProvince});o.preventDefault();o.stopPropagation();window.location.href="/";return[2]}))}))}));return[2]}))}))}));n.observe(document.body,{childList:true,subtree:true})};var V='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n';var W=".sc-zonos-checkout-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-h *.sc-zonos-checkout{font-family:var(--font-family, Inter), Inter}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--border-radius, var(--zonos-elements-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:32px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--primary-color, var(--zonos-elements-gray-0));border-right:1px solid var(--zonos-elements-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--zonos-elements-gray-0)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--zonos-elements-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:24px;padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout img.sc-zonos-checkout{width:150px;min-width:150px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 8px 8px}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:24px}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--close-button.sc-zonos-checkout{position:absolute;right:24px;top:24px;z-index:2}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:76px;margin-bottom:8px}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--zonos-elements-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:32px}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:12px;padding-bottom:76px}@media (max-width: 768px){.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding-bottom:0}}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2;border-right:none}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:16px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border:var(--zonos-elements-border);border-radius:var(--border-radius, var(--zonos-elements-radius-10));background-color:var(--zonos-elements-gray-50);padding:12px;margin-top:32px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--review.sc-zonos-checkout{margin-bottom:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--cart-items.sc-zonos-checkout{margin-top:8px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout zonos-checkout-footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}";var Y=W;var q=90*60*1e3;var J=o("zonos_checkout",function(){function o(o){var t=this;e(this,o);this.onChangeLocaleListener=function(){};this.applyStripeTheme=function(){return __awaiter(t,void 0,void 0,(function(){var o,e,t,n,s;return __generator(this,(function(c){switch(c.label){case 0:s=((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme)||C.appearance.theme;return[4,h({overrideBorderRaidus:(e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.style,overridePrimaryColor:(t=this.appearanceSettingsOverride)===null||t===void 0?void 0:t.colorPrimary,overrideSecondaryColor:(n=this.appearanceSettingsOverride)===null||n===void 0?void 0:n.colorSecondary,overrideTheme:this.isMobile?s:undefined})];case 1:c.sent();return[2]}}))}))};this.getCurrentLocalePageEnum=function(){switch(d.step){case"customer-info":return"checkout_customer_info";case"shipping":return"checkout_shipping_info";case"payment":return"checkout_payment_info";default:return null}};this.appearanceSettingsOverride=undefined;this.preview=false;this.mobile=false;this.defaultAddress=null;this.forceDialogOpen=false;this.open=this.forceDialogOpen;this.stripe=window.Zonos.stripe;this.submitLoading=false;this.paymentError=false;this.collapseReviewMobile=true;this.isAttachError=false;this.isMobile=false;this.zonosReviewRef=undefined;this.storybookPaymentStatusOverride=undefined;this.domesticRedirectedBtnSelector="#zonos--domestic-redirected-checkout-button";this.legacyCheckoutHiddenBtnSelector="#legacy-checkout-hidden-button";this.isLegacyCheckout=false;this.confirmDialogOpen=false;this.showSessionTimoutScreen=false;this.checkoutTimeoutInterval=null}o.prototype.initCartInfoHandler=function(o){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=o.detail;void l(e);return[2]}))}))};o.prototype.handleKeyPress=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(o.key==="Escape"){void this.closeDialogHandler()}return[2]}))}))};o.prototype.closeDialogHandler=function(o){return __awaiter(this,void 0,void 0,(function(){var e,t;return __generator(this,(function(n){if(!this.open){return[2]}if(!(o===null||o===void 0?void 0:o.confirmed)){this.confirmDialogOpen=true;return[2]}this.confirmDialogOpen=false;A("zonos-checkout-close");this.open=this.forceDialogOpen||false;if(!this.preview&&d.step==="finish"){f()}d.step="customer-info";z();this.clearCheckoutTimeoutInterval();(t=(e=C.checkoutSettings).onClose)===null||t===void 0?void 0:t.call(e);return[2]}))}))};o.prototype.buildCartAndInit=function(){return __awaiter(this,void 0,void 0,(function(){var o,e,t;return __generator(this,(function(n){switch(n.label){case 0:if(!window.Zonos.tempCartData)return[3,2];o=Z(window.Zonos.tempCartData);return[4,l(o)];case 1:n.sent();return[3,5];case 2:if(!(C.checkoutSettings.buildCartDetail&&c.selectedCountryCode))return[3,5];j("build cart detail");return[4,C.checkoutSettings.buildCartDetail({countryCode:c.selectedCountryCode,currencyCode:c.targetCurrency})];case 3:e=n.sent();return[4,l(e)];case 4:n.sent();n.label=5;case 5:if(!!m.clientSecret)return[3,7];return[4,k()];case 6:t=n.sent();j("stripeStoreInitCheckoutSession: ".concat(t));if(!t){return[2,false]}n.label=7;case 7:return[4,this.applyStripeTheme()];case 8:n.sent();return[2,true]}}))}))};o.prototype.clearCheckoutTimeoutInterval=function(){if(this.checkoutTimeoutInterval){clearTimeout(this.checkoutTimeoutInterval);this.checkoutTimeoutInterval=null}};o.prototype.startCheckoutTimeoutInterval=function(){var o=this;if(this.preview){return}var e=new URLSearchParams(window.location.search).get("zonosCheckoutTimeout");var t=e&&!isNaN(parseInt(e,10))?parseInt(e,10):q;j("==START CHECKOUT TIMEOUT - ".concat(t,"=="));this.checkoutTimeoutInterval=setTimeout((function(){o.showSessionTimoutScreen=true}),t)};o.prototype.reloadCheckoutSession=function(){window.location.reload()};o.prototype.attachCheckout=function(){var o=this;var e=C.checkoutSettings.placeOrderButtonSelector;j("attach checkout ".concat(e));if(!e){return}var t=document.querySelectorAll("".concat(e,", ").concat(this.domesticRedirectedBtnSelector));t.forEach((function(e){var t=e.getAttribute("data-zonos-checkout-attached");if(t){return}e.addEventListener("click",(function(e){return __awaiter(o,void 0,void 0,(function(){var o,t;return __generator(this,(function(n){switch(n.label){case 0:if(!F()){return[2]}e.preventDefault();e.stopPropagation();j("zonos checkout button clicked");m.isFetchingSession=true;this.open=true;n.label=1;case 1:n.trys.push([1,3,,4]);return[4,this.buildCartAndInit()];case 2:o=n.sent();if(!o){throw new Error("Error building cart")}this.startCheckoutTimeoutInterval();A("zonos-checkout-start");void T("checkout_open");return[3,4];case 3:t=n.sent();m.isFetchingSession=false;v({messages:[p("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:p("Error creating Checkout")});return[3,4];case 4:return[2]}}))}))}));e.removeAttribute("disabled");e.setAttribute("data-zonos-checkout-attached","true");if(e.matches(o.domesticRedirectedBtnSelector)){e.dispatchEvent(S("click"));u();e.remove()}if(e.matches(o.legacyCheckoutHiddenBtnSelector)){o.isLegacyCheckout=true;e.dispatchEvent(S("click"));e.remove()}}))};o.prototype.appearanceSettingsOverrideChanged=function(){if(!this.appearanceSettingsOverride){return}void this.applyStripeTheme()};o.prototype.useLegacyQueryParam=function(){var o=new URLSearchParams(window.location.search);var e={country:o.get("country"),customerAddress1:o.get("customerAddress1"),customerAddress2:o.get("customerAddress2"),customerCity:o.get("customerCity"),customerEmail:o.get("customerEmail"),customerName:o.get("customerName"),customerPhone:o.get("customerPhone"),customerState:o.get("customerState"),customerZip:o.get("customerZip")};if(!e.customerAddress1||!e.customerCity||!e.customerName||!e.customerPhone||!e.customerState||!e.customerZip||!e.country){return}this.defaultAddress={address:{city:e.customerCity,country:e.country,line1:e.customerAddress1,line2:e.customerAddress2||"",postal_code:e.customerZip,state:e.customerState},email:e.customerEmail||"",name:e.customerName,phone:e.customerPhone}};o.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var o,e;var t=this;return __generator(this,(function(n){m.stripe=window.Zonos.stripe;this.stripe=window.Zonos.stripe;K({domesticRedirectedBtnSelector:this.domesticRedirectedBtnSelector,onShippingAddressSessionFound:function(o){t.defaultAddress={address:{city:o.city,country:o.countryCode,line1:o.address1,line2:o.address2,postal_code:o.postalCode,state:o.state},email:"",name:"".concat(o.firstName," ").concat(o.lastName),phone:o.phone}}});if(window.Zonos.tempCartData){this.useLegacyQueryParam()}o=setInterval((function(){var e=window.Zonos.internationalHideSelector;if(!e){clearInterval(o);return}var t=F(false);var n=document.querySelectorAll(e);if(!t){n===null||n===void 0?void 0:n.forEach((function(o){var e=o;var t=e.getAttribute("data-zonos-checkout-original-display")||getComputedStyle(e).display;e.style.display=t||"initial"}));return}n===null||n===void 0?void 0:n.forEach((function(o){var e=o;var t=e.style.display;e.setAttribute("data-zonos-checkout-original-display",t);e.style.display="none"}))}),100);e=setInterval((function(){m.stripe=window.Zonos.stripe;t.stripe=window.Zonos.stripe;if(!t.stripe){j("waiting for stripe to be loaded");return}if(t.storybookPaymentStatusOverride){clearInterval(e);return}j("init checkout");if(t.preview||t.forceDialogOpen){void t.buildCartAndInit()}else{t.attachCheckout();var o=new MutationObserver((function(){t.attachCheckout()}));o.observe(document.body,{childList:true,subtree:true})}clearInterval(e)}),50);setTimeout((function(){clearInterval(e)}),1e4);return[2]}))}))};o.prototype.setToFinishStep=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){d.step="finish";this.storybookPaymentStatusOverride=o;return[2]}))}))};o.prototype.handleCustomerInfoContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;var e=this;return __generator(this,(function(t){switch(t.label){case 0:this.submitLoading=true;return[4,g()];case 1:t.sent();o=setInterval((function(){if(d.landedCostData||!m.isFetchingLandedCost){if(d.landedCostData){b()}e.submitLoading=false;clearInterval(o)}}),500);return[2]}}))}))};o.prototype.handleShippingContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o=this;return __generator(this,(function(e){this.submitLoading=true;setTimeout((function(){b();o.submitLoading=false}),500);return[2]}))}))};o.prototype.handleCheckoutPaymentContinue=function(){return __awaiter(this,void 0,void 0,(function(){var o;return __generator(this,(function(e){switch(e.label){case 0:this.paymentError=false;this.submitLoading=true;e.label=1;case 1:e.trys.push([1,3,,4]);return[4,w()];case 2:e.sent();b();this.clearCheckoutTimeoutInterval();return[3,4];case 3:o=e.sent();H(o);this.paymentError=true;return[3,4];case 4:this.submitLoading=false;return[2]}}))}))};o.prototype.handleFinishClick=function(){return __awaiter(this,void 0,void 0,(function(){var o,e,t;return __generator(this,(function(n){switch(n.label){case 0:y();if(!this.preview)return[3,2];d.step="customer-info";return[4,this.init()];case 1:n.sent();return[2];case 2:f();if(this.isLegacyCheckout&&window.Zonos.tempCartData){o=window.Zonos.tempCartData.contShoppingURL;window.location.href=o;return[2]}e=window.location.href;t=e.split("?")[0];window.history.replaceState(window.history.state,document.title,t);this.open=false;window.location.reload();return[2]}}))}))};o.prototype.handleWindowResize=function(){this.isMobile=N(this.mobile);void this.applyStripeTheme();j("mobile: ".concat(this.isMobile))};o.prototype.handleMobileChange=function(){this.isMobile=N(this.mobile);void this.applyStripeTheme();j("mobile: ".concat(this.isMobile))};o.prototype.handleAppearanceSettingsOverrideChange=function(){var o;if((o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.theme){this.appearanceSettingsOverride.theme=_(this.appearanceSettingsOverride.theme)}};o.prototype.componentWillLoad=function(){var o=this;void this.init();this.isMobile=N(this.mobile);this.handleAppearanceSettingsOverrideChange();this.onChangeLocaleListener=x("selectedLocale",(function(){void o.applyStripeTheme()}));j("mobile: ".concat(this.isMobile))};o.prototype.disconnectedCallback=function(){y();f();this.onChangeLocaleListener()};o.prototype.render=function(){var o=this;var e;var i=d.step!=="finish"&&d.step!=="error"&&!m.stripeElements||m.isFetchingSession;var r=O(C.appearance,this.appearanceSettingsOverride),u=r.colorPrimary,a=r.colorSecondary,h=r.logoUrl,l=r.style;var f=C.appearance.zonosAttribution==="ENABLED";var z=C.appearance.theme;var k=u&&E(u)?"DARK":"LIGHT";var v=this.isMobile?z:k;var g=!this.isMobile?a:undefined;var b=c.customMessages;var w=(e=b.find((function(o){return o.pageName==="checkout_default"})))===null||e===void 0?void 0:e.message;var y=this.getCurrentLocalePageEnum();var x=b.filter((function(o){return o.pageName===y}));var _=function(){var e=o.preview?"".concat(h,"?timestamp=").concat(Date.now()):h;return t("div",{class:"zonos--logo"},e&&t("img",{alt:"".concat(C.organizationName," logo"),src:e,width:100}))};var S=function(){return t("zonos-v-stack",null,_(),t("zonos-checkout-progress-tabs",{backgroundColor:o.isMobile?"--zonos-elements-gray-0":null}),x.map((function(o){return t("zonos-custom-message",{icon:V,message:o.message})})))};var I=function(){if(o.showSessionTimoutScreen){return t("zonos-rest-state",{class:"zonos--session-timeout",restStateSubtitle:p("Your checkout session has expired. Please reload the page to continue."),restStateTitle:p("Session timed out"),restStateType:"Warning"},t("zonos-button",{onClick:function(){return o.reloadCheckoutSession()},variant:"primary"},p("Reload")))}return t("div",{class:"zonos--content",style:{"--border-radius":B({overrideBorderStyle:l})}},d.step!=="finish"&&d.step!=="error"&&t(s,null,t("div",{class:"zonos--left","data-theme":v,style:{"--primary-color":!o.isMobile?u:""}},!o.isMobile&&S(),d.step==="customer-info"&&t("zonos-customer-info",{continueLoading:o.submitLoading,defaultAddress:o.defaultAddress,isMobile:o.isMobile,onContinueClicked:function(){return o.handleCustomerInfoContinue()},submitBtnColor:g}),d.step==="shipping"&&t("zonos-shipping",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleShippingContinue()},submitBtnColor:g}),d.step==="payment"&&t("zonos-checkout-payment",{continueLoading:o.submitLoading,onContinueClicked:function(){return o.handleCheckoutPaymentContinue()},paymentError:o.paymentError,submitBtnColor:g})),t("div",{class:"zonos--right","data-theme":z},o.isMobile&&S(),!o.isLegacyCheckout&&t("zonos-button",{class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close checkout dialog",content:M}),noBackground:true,onClick:function(){return o.closeDialogHandler()}}),t("div",{class:"flex--wrapper"},t("div",{class:"zonos--wrapper"},t("zonos-review",{collapsed:o.collapseReviewMobile,mobile:o.isMobile,onClick:function(){if(!o.isMobile){return}o.collapseReviewMobile=!o.collapseReviewMobile}}),t("zonos-collapse",{collapsed:o.collapseReviewMobile&&o.isMobile},t("zonos-cart-items",null),o.isMobile&&t("zonos-v-stack",{spacing:16},t("zonos-cart-subtotal",null),t("zonos-custom-message",{class:"zonos--checkout-default-message",icon:V,message:w})))),t("zonos-cart-restricted-items",null),!o.isMobile&&t("zonos-v-stack",{spacing:16},t("zonos-cart-subtotal",null),t("zonos-custom-message",{class:"zonos--checkout-default-message",icon:V,message:w}))))),(d.step==="finish"||d.step==="error")&&t("div",{class:"zonos--done","data-theme":z},t("div",{class:"zonos--header"},_(),t("zonos-button",{class:"zonos--close-button",icon:t("zonos-icon",{"aria-label":"Close checkout dialog",content:M}),noBackground:true,onClick:function(){return o.handleFinishClick()},theme:z})),t("zonos-checkout-finish",{borderRadius:l,onCloseClick:function(){return o.handleFinishClick()},overrideNotification:d.step==="error"&&!!d.error?Object.assign(Object.assign({},d.error),{type:"error"}):undefined,storybookForceStatus:o.storybookPaymentStatusOverride})),t("zonos-checkout-footer",{"data-theme":z,mobile:o.isMobile,slot:!o.isMobile?"dialog-footer":undefined}))};return t(n,{class:L(["zonos--checkout zonos--elements",f&&"has-footer",this.preview&&"preview",this.isMobile&&"mobile"])},this.preview?I():t("zonos-dialog",{borderStyle:l,"data-theme":z,height:"980px",isLoading:i,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return o.closeDialogHandler()},open:this.open,width:"1200px"},I()),t("zonos-confirm-dialog",{class:"zonos--close-confirm-dialog",dialogCancelBtnText:p("Don't close"),dialogConfirmBtnText:p("Close"),dialogIntent:"warn",dialogOpen:this.confirmDialogOpen,dialogSubtitle:p("Would you like to close checkout and return to the site?"),dialogTitle:p("Are you sure?"),onCancelClicked:function(){o.confirmDialogOpen=false},onConfirmClicked:function(){return o.closeDialogHandler({confirmed:true})}}))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{appearanceSettingsOverride:["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],mobile:["handleMobileChange"]}},enumerable:false,configurable:true});return o}());J.style=Y}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./p-d99232c5.system.js","./p-
|
|
1
|
+
System.register(["./p-d99232c5.system.js","./p-be14323b.system.js","./p-23e7c655.system.js","./p-d1b8bfce.system.js","./p-c9e433c0.system.js","./p-63db40b9.system.js","./p-8853e051.system.js","./p-33b054d9.system.js"],(function(e){"use strict";var t,s,a,n,o,i,r,c,d;return{setters:[function(e){t=e.r;s=e.h;a=e.H},function(e){n=e.d},function(e){o=e.c},function(e){i=e.H;r=e.t;c=e.l},function(e){d=e.l},function(){},function(){},function(){}],execute:function(){var l=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos-elements-radius-6);padding:var(--spacing, 24px);text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";var h=l;var f=e("zonos_card",function(){function e(e){t(this,e);this.actions=undefined;this.footerActions=undefined;this.footerContent=undefined;this.footerHeight=undefined;this.label=undefined;this.spacing="24px"}e.prototype.render=function(){return s(a,{key:"0e52ca31db6c2f956da1910d6e0a222b588c1bcc",style:{"--font-family":n()}},s("div",{key:"69f391d821f88cbee4b0c586a8323b1dd68d7fd3",class:o(["styled-card"]),style:{padding:this.spacing}},this.label&&s("header",{key:"4568a1d7c354830e6e65e31b20b38140aaab9d01",class:"card-header",style:{padding:this.spacing}},s("zonos-text",{key:"e0a6b7a3776916f8208c27373878041807d91960",type:"subheader"},this.label),s("h-stack",{key:"c5f8d01b2f477b16ab9387081987eae64b156e76",spacing:8},this.actions)),s("slot",{key:"6001acfaae8ba37456a7c23bae5c44a91da074f9"}),(this.footerActions||this.footerContent)&&s("footer",{key:"78b926a323a5f1375c8120d5aa8b1ab2a4f3fa4a",class:"card-footer",style:{height:this.footerHeight?"".concat(this.footerHeight,"px"):"auto",padding:this.spacing}},s("div",{key:"2bd0c86b75096c2ee786d4a9b16a3d6e385fbbf1"},this.footerContent),s("h-stack",{key:"7a3f840ac9678a905338a99b8327115bc8199789",spacing:8},this.footerActions))))};return e}());f.style=h;var g='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n';var u=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";var m=u;var b=e("zonos_language_select",function(){function e(e){var s=this;t(this,e);this.languageSelected=function(e){void i(e);s.handleOnClose()};this.handleOnClose=function(){}}e.prototype.render=function(){var e=this;var t=c.selectedLocale;return s(a,{key:"34580123b768ce983c0c9c6fa309bdb1d6756a5a",class:"zonos--elements",style:{"--font-family":n()}},s("div",{key:"6e86352a45b5d9ad0e5ed5dac330367a49a6c6fe",class:"zonos--language-select"},s("zonos-select-dialog-header",{key:"d5b55cbb2858a2c0a6aa6ce0ea0d50eecc7360e8",handleOnClose:function(){return e.handleOnClose()},label:r("Select a language")}),s("div",{key:"c9aeb075428357c4cb15d9a2b09df7c8d6b01b11",class:"zonos--language-select-content"},d.map((function(a){return s("button",{class:"zonos--language-select-button",onClick:function(){return e.languageSelected(a.code)}},s("zonos-text",{textColor:"gray-800"},a.translatedLabel),a.code===t&&s("zonos-icon",{content:g,size:16}))})))))};return e}());b.style=m}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as o,h as e,H as s}from"./p-ce347974.js";import{d as r}from"./p-
|
|
1
|
+
import{r as o,h as e,H as s}from"./p-ce347974.js";import{d as r}from"./p-c53cef11.js";import{c as t}from"./p-b4b7f705.js";const n=class{constructor(e){o(this,e),this.handleSlotChange=()=>{this.hasContent=!0},this.bannerTitle=void 0,this.intent=void 0,this.hasContent=!1}render(){const o=({color:o})=>{const s=`var(--zonos-elements-${o}-800)`,r=`var(--zonos-elements-${o}-300)`,[n,a]=[this.bannerTitle,e("slot",{onSlotchange:this.handleSlotChange})].filter(Boolean),l="gray"===o?"gray-1200":`${o}-800`;return e("div",{class:t(["zonos--container"])},e("div",{class:"zonos--icon-wrapper"},e("svg",{color:s,fill:"none",height:"20",viewBox:"0 0 24 24",width:"20",xmlns:"https://www.w3.org/2000/svg"},e("path",{"clip-rule":"evenodd",d:"M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z","data-is-secondary-color":"true",fill:r,"fill-rule":"evenodd"}),e("path",{"clip-rule":"evenodd",d:"M12 6.99a1 1 0 0 1 1 1V8a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1ZM12 11a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z",fill:"currentColor","fill-rule":"evenodd"}))),e("div",{class:"zonos--header-wrapper"},e("zonos-text",{textColor:l,type:"label",weight:600},n)),a&&e("div",{class:"zonos--content-wrapper"},e("zonos-text",{textColor:l},a)))},n=t(["zonos--elements zonos--banner",this.intent]),a=r();switch(this.intent){case"error":return e(s,{class:n,style:{"--font-family":a}},o({color:"red"}));case"info":return e(s,{class:n,style:{"--font-family":a}},o({color:"blue"}));case"success":return e(s,{class:n,style:{"--font-family":a}},o({color:"green"}));case"warning":return e(s,{class:n,style:{"--font-family":a}},o({color:"orange"}));default:return e(s,{class:n,style:{"--font-family":a}},o({color:"gray"}))}}};n.style=':host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:"icon header" ". content";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}';export{n as zonos_banner}
|