@zonos/elements 1.3.114 → 1.3.116
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/{CheckoutConfig-5d7cf0c0.js → CheckoutConfig-f2622b6b.js} +1 -1
- package/dist/cjs/{cart-6d966eea.js → cart-b3f6a451.js} +143 -55
- package/dist/cjs/{getBorderRadius-53c35cd1.js → getBorderRadius-61ed5601.js} +1 -1
- package/dist/cjs/index.cjs.js +36 -13
- package/dist/cjs/{isDarkColor-87ee1eb7.js → isDarkColor-d206c6fa.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-ae7bd9f2.js → paypal-aab541fd.js} +3 -3
- package/dist/cjs/zonos-address_7.cjs.entry.js +12 -12
- package/dist/cjs/zonos-badge.cjs.entry.js +4 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-card.cjs.entry.js +6 -6
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +32 -25
- package/dist/cjs/zonos-checkout.cjs.entry.js +19 -8
- package/dist/cjs/zonos-collapse.cjs.entry.js +3 -3
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +28 -5
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +12 -12
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -8
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +6 -6
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
- package/dist/cjs/zonos-notification_3.cjs.entry.js +7 -7
- 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/zonos-toggle.cjs.entry.js +3 -3
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +3 -3
- package/dist/cjs/{zonosStore-b18fe6b6.js → zonosStore-e12d459c.js} +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +13 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +13 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +3 -6
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.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/common/zonos-virtual-scroll/zonos-virtual-scroll.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 +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/stripe.js +38 -11
- package/dist/collection/components/store/hello/localization.js +28 -29
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
- package/dist/collection/components/store/zonosStore.js +1 -0
- 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/api/prepCalculateLandedCost.js +14 -12
- package/dist/collection/components/utils/cleanHtmlMarkdown.js +1 -1
- package/dist/collection/components/utils/hello/initHello.js +23 -0
- package/dist/collection/scripts/_getTempCartById.js +1 -1
- package/dist/collection/scripts/_zonosBase.js +28 -5
- package/dist/esm/{CheckoutConfig-32f33d8b.js → CheckoutConfig-018263e2.js} +1 -1
- package/dist/esm/{cart-89bc298d.js → cart-fdaeeb8d.js} +143 -55
- package/dist/esm/{getBorderRadius-e55a9df1.js → getBorderRadius-008516a4.js} +1 -1
- package/dist/esm/index.js +37 -14
- package/dist/esm/{isDarkColor-4261bc3c.js → isDarkColor-dc08fa26.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-804a4bcb.js → paypal-fb68deeb.js} +3 -3
- package/dist/esm/zonos-address_7.entry.js +12 -12
- package/dist/esm/zonos-badge.entry.js +4 -4
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +6 -6
- package/dist/esm/zonos-card.entry.js +6 -6
- package/dist/esm/zonos-cart-items_13.entry.js +32 -25
- package/dist/esm/zonos-checkout.entry.js +19 -8
- package/dist/esm/zonos-collapse.entry.js +3 -3
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +28 -5
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_4.entry.js +12 -12
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +8 -8
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +6 -6
- package/dist/esm/zonos-language-select_2.entry.js +8 -8
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +3 -3
- package/dist/esm/zonos-notification_3.entry.js +7 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-toggle.entry.js +3 -3
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +3 -3
- package/dist/esm/{zonosStore-7798ac16.js → zonosStore-6b5bd87c.js} +1 -0
- package/dist/esm-es5/{CheckoutConfig-32f33d8b.js → CheckoutConfig-018263e2.js} +1 -1
- package/dist/esm-es5/cart-fdaeeb8d.js +1 -0
- package/dist/esm-es5/{getBorderRadius-e55a9df1.js → getBorderRadius-008516a4.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-4261bc3c.js → isDarkColor-dc08fa26.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-804a4bcb.js → paypal-fb68deeb.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.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.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.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_4.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-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.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/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-7798ac16.js → zonosStore-6b5bd87c.js} +1 -1
- package/dist/scripts/index.d.ts +25 -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-finish/zonos-checkout-finish.d.ts +5 -0
- package/dist/types/components/store/hello/localization.d.ts +1 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/api/prepCalculateLandedCost.d.ts +1 -1
- package/dist/types/components/utils/cleanHtmlMarkdown.d.ts +1 -1
- package/dist/types/components/utils/hello/initHello.d.ts +1 -0
- package/dist/types/components/utils/mergeConfig.d.ts +1 -1
- package/dist/types/scripts/_zonosBase.d.ts +1 -1
- package/dist/types/types/checkout/CheckoutConfig.d.ts +12 -11
- package/dist/types/types/global.d.ts +4 -0
- package/dist/types/types/hello/HelloConfig.d.ts +8 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-15750a04.system.js → p-00dc1507.system.js} +1 -1
- package/dist/zonos-elements/{p-ad733913.entry.js → p-069a1891.entry.js} +1 -1
- package/dist/zonos-elements/p-0b4a06cc.entry.js +1 -0
- package/dist/zonos-elements/p-0c57d568.system.entry.js +1 -0
- package/dist/zonos-elements/p-0c868b63.system.entry.js +1 -0
- package/dist/zonos-elements/p-0cedb17a.system.entry.js +1 -0
- package/dist/zonos-elements/p-122c318e.system.js +1 -0
- package/dist/zonos-elements/{p-c652212b.entry.js → p-149612d6.entry.js} +1 -1
- package/dist/zonos-elements/{p-1769c0d2.entry.js → p-15fbb3a5.entry.js} +1 -1
- package/dist/zonos-elements/{p-e4a69ce9.system.entry.js → p-1aed6403.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1c1ab3c8.system.entry.js → p-1e4f7997.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2628189b.js +1 -0
- package/dist/zonos-elements/{p-9d7a79e3.entry.js → p-26be7ea7.entry.js} +1 -1
- package/dist/zonos-elements/{p-7cb4523f.system.entry.js → p-28b79606.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a2edb77e.entry.js → p-2c9b4d6f.entry.js} +1 -1
- package/dist/zonos-elements/{p-ead95c3b.entry.js → p-30b1eae9.entry.js} +1 -1
- package/dist/zonos-elements/{p-55735806.system.entry.js → p-383f6e8c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d01cfb8b.system.entry.js → p-3a410b06.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-45214b34.system.entry.js → p-3dacae53.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1deb01e3.entry.js → p-3e2aa5e2.entry.js} +1 -1
- package/dist/zonos-elements/{p-42d9d3af.system.entry.js → p-3f5b6e7a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2aa5575f.entry.js → p-44991bcf.entry.js} +1 -1
- package/dist/zonos-elements/{p-c598b3c5.entry.js → p-46d96a0d.entry.js} +1 -1
- package/dist/zonos-elements/{p-3c326d01.system.entry.js → p-48b42c33.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ab9af87d.system.entry.js → p-55d26aaa.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8f9198f2.system.js → p-579932dc.system.js} +1 -1
- package/dist/zonos-elements/p-5c37e64d.entry.js +1 -0
- package/dist/zonos-elements/{p-b35e67f7.system.entry.js → p-60e5a6a2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e5e63927.system.entry.js → p-66303c89.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e559d12d.js → p-67a32cc5.js} +1 -1
- package/dist/zonos-elements/{p-05d558c2.entry.js → p-6b52ae05.entry.js} +1 -1
- package/dist/zonos-elements/{p-1c7e19f7.entry.js → p-6de38759.entry.js} +1 -1
- package/dist/zonos-elements/{p-33b57fab.system.js → p-6e2f4ea1.system.js} +1 -1
- package/dist/zonos-elements/{p-019028d5.entry.js → p-7a4170ba.entry.js} +1 -1
- package/dist/zonos-elements/{p-ac97f26c.system.entry.js → p-80733970.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d3c1ad61.system.entry.js → p-86f0d69c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a24da794.js → p-91cfbf46.js} +1 -1
- package/dist/zonos-elements/{p-f26c4392.entry.js → p-93626c76.entry.js} +1 -1
- package/dist/zonos-elements/{p-8e6bbf2c.entry.js → p-99ab4440.entry.js} +1 -1
- package/dist/zonos-elements/{p-42b0fca8.system.entry.js → p-9a89de05.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d49cdf77.system.entry.js → p-9e757bf5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-56d405d0.js → p-9eae2294.js} +1 -1
- package/dist/zonos-elements/{p-3c90f724.system.entry.js → p-b31095d5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b82e527a.entry.js +1 -0
- package/dist/zonos-elements/p-c325fd7b.entry.js +1 -0
- package/dist/zonos-elements/{p-daab619c.system.js → p-c3e98be6.system.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-2cce0f21.system.js → p-c85b4e43.system.js} +1 -1
- package/dist/zonos-elements/{p-514b42a4.system.entry.js → p-d1a3fa94.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0a8b6b4a.system.entry.js → p-d3472a00.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-31acf417.entry.js → p-d91da318.entry.js} +1 -1
- package/dist/zonos-elements/{p-e132bc3d.js → p-dd8fb969.js} +1 -1
- package/dist/zonos-elements/{p-f20b3656.entry.js → p-de2fe7f5.entry.js} +1 -1
- package/dist/zonos-elements/{p-032159ed.js → p-e1ce04b1.js} +1 -1
- package/dist/zonos-elements/{p-1605dd48.entry.js → p-e46bd90a.entry.js} +1 -1
- package/dist/zonos-elements/{p-ec26f25a.system.entry.js → p-e47cba8e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1a0e138c.entry.js → p-ebb97202.entry.js} +1 -1
- package/dist/zonos-elements/{p-442a308c.system.entry.js → p-eeb2c2f4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f1a5d662.system.entry.js +1 -0
- package/dist/zonos-elements/{p-ed222a50.entry.js → p-f8c88d80.entry.js} +1 -1
- package/dist/zonos-elements/p-fbedb337.system.js +1 -0
- package/dist/zonos-elements/{p-b34ccbfd.entry.js → p-ff6e4ea6.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +2 -2
- package/dist/esm-es5/cart-89bc298d.js +0 -1
- package/dist/zonos-elements/p-007c64dc.system.js +0 -1
- package/dist/zonos-elements/p-02b1e030.system.entry.js +0 -1
- package/dist/zonos-elements/p-30b8dbd4.entry.js +0 -1
- package/dist/zonos-elements/p-347c0756.entry.js +0 -1
- package/dist/zonos-elements/p-3cfa837c.entry.js +0 -1
- package/dist/zonos-elements/p-6ae2485b.system.js +0 -1
- package/dist/zonos-elements/p-97114032.js +0 -1
- package/dist/zonos-elements/p-d1f334d8.system.entry.js +0 -1
- package/dist/zonos-elements/p-ece0b7ab.system.entry.js +0 -1
- package/dist/zonos-elements/p-f25f6bf9.system.entry.js +0 -1
- package/dist/zonos-elements/p-fe781493.entry.js +0 -1
|
@@ -149,6 +149,9 @@ export declare const stringsDanish: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsDutch: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsFrench: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsGerman: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsHebrew: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsIndonesian: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsItalian: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsJapanese: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsKorean: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsNorwegian: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsPolish: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsPortuguese: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsRussian: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsSpanish: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsSwedish: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsTurkish: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -149,6 +149,9 @@ export declare const stringsVietnamese: {
|
|
|
149
149
|
'It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?': {
|
|
150
150
|
value: string;
|
|
151
151
|
};
|
|
152
|
+
'Keep shopping': {
|
|
153
|
+
value: string;
|
|
154
|
+
};
|
|
152
155
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
153
156
|
value: string;
|
|
154
157
|
};
|
|
@@ -32,4 +32,4 @@ export type ITranslationKey = keyof typeof stringsBase;
|
|
|
32
32
|
* // No variables:
|
|
33
33
|
* translate('Above de minimis threshold for')
|
|
34
34
|
*/
|
|
35
|
-
export declare const translate: <T extends "Shipping" | "Email" | "Name" | "Quantity" | "Guaranteed" | "Customer" | "Country" | "Failure" | "Success" | "Hide" | "Delivery" | "Payment" | " (Duties due at door)" | " (Duties prepaid)" | "Above de minimis threshold for" | "Add promotional code" | "Address" | "Address line 1" | "Address line 2" | "An unexpected error occurred when processing PayPal order." | "Apply" | "Are you sure?" | "Back" | "Billing" | "Billing address" | "Cancel" | "Card number copied to clipboard" | "Cart subtotal" | "City" | "Click to copy the card number. Use any future expiration date and three number CVC." | "Close" | "Contact" | "Continue to shipping" | "Couldn't place order" | "Customer information" | "Delivery options" | "Discounts" | "Don't close" | "Due at delivery" | "Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders." | "Duties and taxes will be applied to items and shipping." | "Duties and taxes will be charged upon delivery." | "Duties will apply to all orders." | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Estimated" | "Expected delivery" | "Failed to create PayPal order. Please try again, or consider using an alternative method." | "First name" | "Go to payment" | "Hide non-prepaid options" | "Invalid promo code" | "It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?" | "It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Learn more." | "Missing required fields. Make sure all fields are completed." | "No countries found" | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at delivery" | "Nothing due at the door" | "Order complete!" | "Order total" | "Orders to [countryName] must be over [threshold] to ship." | "Pay [orderTotal]" | "Pay [organizationName]" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Proceed with order" | "Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions." | "Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions." | "Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions." | "Product prices already include duties. No additional duties will be added at checkout, with rare exceptions." | "Product prices already include fees. No additional fees will be added at checkout, with rare exceptions." | "Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions." | "Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions." | "Reload" | "Restricted item" | "Restricted items found" | "Return to cart" | "Return to merchant site" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Session timed out" | "Shipping address same as billing" | "Shipping method" | "Show" | "Show non-prepaid options" | "Something went wrong." | "Spend [threshold] duty free." | "Spend [threshold] tax free." | "State" | "State/Province" | "Taxes will apply to all orders." | "Test cards" | "Test mode" | "The following items are unable to be shipped to your country and are not included in your cart total." | "The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability." | "The low-value GST law passed July 1st, 2018 applies to this retailer." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Unable to check inventory. Please try again." | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to [storeName]" | "Welcome!" | "What you entered" | "Would you like to close checkout and return to the site?" | "You may incur additional fees from the shipping carrier by not prepaying." | "You will be redirected back to the merchant's site in a few seconds." | "You're all set!" | "Your checkout session has expired. Please reload the page to continue." | "Your order has been successfully placed." | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy." | "[percentage] GST due on any order above [threshold]." | "business days" | "click to learn more" | "days" | "restricted items" | "weeks">(...[key, replacement]: TranslateParams<T>) => string;
|
|
35
|
+
export declare const translate: <T extends "Shipping" | "Email" | "Name" | "Quantity" | "Guaranteed" | "Customer" | "Country" | "Failure" | "Success" | "Hide" | "Delivery" | "Payment" | " (Duties due at door)" | " (Duties prepaid)" | "Above de minimis threshold for" | "Add promotional code" | "Address" | "Address line 1" | "Address line 2" | "An unexpected error occurred when processing PayPal order." | "Apply" | "Are you sure?" | "Back" | "Billing" | "Billing address" | "Cancel" | "Card number copied to clipboard" | "Cart subtotal" | "City" | "Click to copy the card number. Use any future expiration date and three number CVC." | "Close" | "Contact" | "Continue to shipping" | "Couldn't place order" | "Customer information" | "Delivery options" | "Discounts" | "Don't close" | "Due at delivery" | "Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders." | "Duties and taxes will be applied to items and shipping." | "Duties and taxes will be charged upon delivery." | "Duties will apply to all orders." | "Duties, taxes, and fees" | "Error creating Checkout" | "Error updating Checkout" | "Estimated" | "Expected delivery" | "Failed to create PayPal order. Please try again, or consider using an alternative method." | "First name" | "Go to payment" | "Hide non-prepaid options" | "Invalid promo code" | "It looks like you placed an order just a few minutes ago ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?" | "It looks like you placed an order just a few minutes ago ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?" | "Keep shopping" | "Know about duties and taxes before you buy. Shop with confidence!" | "Last name" | "Learn more." | "Missing required fields. Make sure all fields are completed." | "No countries found" | "No shipping method selected" | "No shipping methods found - please review and update your address details by selecting the \"Customer\" tab above. If you continue to encounter issues, contact our support team for assistance." | "No shipping methods found - try editing your address or contacting support if the error persists" | "Nothing due at delivery" | "Nothing due at the door" | "Order complete!" | "Order total" | "Orders to [countryName] must be over [threshold] to ship." | "Pay [orderTotal]" | "Pay [organizationName]" | "Payment failed" | "Payment failed. Please try another payment method." | "Payment method" | "Payment processing. We'll update you when payment is received." | "Phone number" | "Please ensure your text uses the Latin alphabet only (A-Z, a-z)." | "Postal code" | "Powered by" | "Prepay duties and taxes at checkout" | "Proceed with order" | "Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions." | "Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions." | "Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions." | "Product prices already include duties. No additional duties will be added at checkout, with rare exceptions." | "Product prices already include fees. No additional fees will be added at checkout, with rare exceptions." | "Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions." | "Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions." | "Reload" | "Restricted item" | "Restricted items found" | "Return to cart" | "Return to merchant site" | "Search countries" | "See duty and tax thresholds" | "Select a country" | "Select a language" | "Session timed out" | "Shipping address same as billing" | "Shipping method" | "Show" | "Show non-prepaid options" | "Something went wrong." | "Spend [threshold] duty free." | "Spend [threshold] tax free." | "State" | "State/Province" | "Taxes will apply to all orders." | "Test cards" | "Test mode" | "The following items are unable to be shipped to your country and are not included in your cart total." | "The item you're looking for is currently unavailable in our inventory. Please check back later or contact support for assistance with availability." | "The low-value GST law passed July 1st, 2018 applies to this retailer." | "There's been an error creating your checkout session. Please reload and try again or contact support if the error persists" | "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists" | "To ensure delivery all address details must be in Latin characters." | "Translated address" | "Unable to check inventory. Please try again." | "Update address" | "Update your address" | "We couldn't complete your payment. Please verify the payment details and try again." | "We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time." | "Welcome to [storeName]" | "Welcome!" | "What you entered" | "Would you like to close checkout and return to the site?" | "You may incur additional fees from the shipping carrier by not prepaying." | "You will be redirected back to the merchant's site in a few seconds." | "You're all set!" | "Your checkout session has expired. Please reload the page to continue." | "Your order has been successfully placed." | "Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us." | "[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy." | "[percentage] GST due on any order above [threshold]." | "business days" | "click to learn more" | "days" | "restricted items" | "weeks">(...[key, replacement]: TranslateParams<T>) => string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { CalculateLandedCostRequest, CartCalculateLandedCostRequest } from "../../../types/checkout/api/CalculateLandedCost";
|
|
2
2
|
/**
|
|
3
|
-
* Similar to prepCalculateLandedCost except it only uses
|
|
3
|
+
* Similar to prepCalculateLandedCost except it only uses cart ID
|
|
4
4
|
*/
|
|
5
5
|
export declare const prepCartCalculateLandedCost: (cartId: string) => CartCalculateLandedCostRequest;
|
|
6
6
|
export declare const prepCalculateLandedCost: () => CalculateLandedCostRequest;
|
|
@@ -11,6 +11,6 @@
|
|
|
11
11
|
* @example
|
|
12
12
|
* const htmlInput = "<h1>Hello World</h1><p>This is a paragraph.</p>";
|
|
13
13
|
* const result = cleanHtmlMarkdown(htmlInput);
|
|
14
|
-
* console.
|
|
14
|
+
* console.info(result); // Outputs cleaned HTML after conversion and processing
|
|
15
15
|
*/
|
|
16
16
|
export declare const cleanHtmlMarkdown: (htmlString: string) => string[];
|
|
@@ -2,5 +2,6 @@ import type { HelloMobileLocation, HelloSettingFragment } from "../../../types/g
|
|
|
2
2
|
export declare const initHello: (helloSettings: Omit<Partial<HelloSettingFragment>, 'mobileLocation'> & {
|
|
3
3
|
desktopLocation?: HelloMobileLocation | null;
|
|
4
4
|
mobileLocation: HelloMobileLocation | null;
|
|
5
|
+
notFoundElementFallback: HelloMobileLocation | null;
|
|
5
6
|
visibilityStatus?: 'ENABLED' | 'DISABLED';
|
|
6
7
|
}) => Promise<void>;
|
|
@@ -6,4 +6,4 @@ export type DeepPartial<T> = T extends object ? {
|
|
|
6
6
|
* @param value1 Merge object
|
|
7
7
|
* @param value2[] List of objects to merge (need to have the same shape as value1)
|
|
8
8
|
*/
|
|
9
|
-
export declare const mergeConfig: <T>(defaultObj: T, fetchedObj: T | null, ...overrideObj: (DeepPartial<T> | null | undefined)[]) => Exclude<T, undefined>;
|
|
9
|
+
export declare const mergeConfig: <T>(defaultObj: T, fetchedObj: DeepPartial<T> | null, ...overrideObj: (DeepPartial<T> | null | undefined)[]) => Exclude<T, undefined>;
|
|
@@ -252,7 +252,7 @@ export declare abstract class Zonos {
|
|
|
252
252
|
static getCurrentTimestamp: () => number;
|
|
253
253
|
static cartId: string | null;
|
|
254
254
|
private static zonosController;
|
|
255
|
-
static init: (
|
|
255
|
+
static init: (params: LoadZonosParams) => Promise<void>;
|
|
256
256
|
static displayCurrency: () => void;
|
|
257
257
|
static openHelloDialog: (value?: boolean) => void;
|
|
258
258
|
static showNotification: (notification: NotificationInit) => void;
|
|
@@ -20,8 +20,8 @@ export type CheckoutConfig = {
|
|
|
20
20
|
type: AnalyticsProviderType;
|
|
21
21
|
}>;
|
|
22
22
|
/**
|
|
23
|
-
* @default false - when false,
|
|
24
|
-
* @note if set to true,
|
|
23
|
+
* @default false - when false, the place order button will be disabled until the script is loaded
|
|
24
|
+
* @note if set to true, the place order button will not be enabled or disabled
|
|
25
25
|
*/
|
|
26
26
|
disablePlaceOrderButtonActivation?: boolean;
|
|
27
27
|
externalPaymentMethods: Array<{
|
|
@@ -64,6 +64,11 @@ export type CheckoutConfig = {
|
|
|
64
64
|
*/
|
|
65
65
|
subscriptionStatus: CheckoutSubscriptionStatus;
|
|
66
66
|
successBehavior: CheckoutSuccessBehavior;
|
|
67
|
+
/**
|
|
68
|
+
* The success page action text for checkout.
|
|
69
|
+
* @note Default text supports translation automatically, but any custom text will not be translated.
|
|
70
|
+
*/
|
|
71
|
+
successPageActionText?: string;
|
|
67
72
|
/**
|
|
68
73
|
* The success page subtitle text for checkout. Each item in the array will appear on a new line.
|
|
69
74
|
* @note Default text supports translation automatically, but any custom text will not be translated.
|
|
@@ -78,9 +83,7 @@ export type CheckoutConfig = {
|
|
|
78
83
|
visibilityStatus: CheckoutVisibilityStatus;
|
|
79
84
|
/**
|
|
80
85
|
* Cart info callback for checkout (optional),
|
|
81
|
-
* @deprecated This is deprecated in favor of new
|
|
82
|
-
* @note
|
|
83
|
-
* This function is deprecated in favor of new API `createCartId`
|
|
86
|
+
* @deprecated This is deprecated in favor of the new callback `createCartId`. The new API would only need the cart ID to retrieve cart data.
|
|
84
87
|
* @note will attempt to use cart data if available
|
|
85
88
|
* User can dispatch an event 'zonos--init-cart-info' to update the cart
|
|
86
89
|
* @example
|
|
@@ -102,16 +105,14 @@ export type CheckoutConfig = {
|
|
|
102
105
|
buildCartDetail?: (params: BuildCardDetailParams) => Promise<CartItem[]>;
|
|
103
106
|
/**
|
|
104
107
|
* Calculate landed cost callback for checkout (optional)
|
|
105
|
-
* @deprecated
|
|
106
|
-
* @note
|
|
107
|
-
* This function is deprecated in favor of new API `createCartId`
|
|
108
|
+
* @deprecated This is deprecated in favor of the new callback `createCartId`. When using the new callback, the cart details will be retrieved using the cart ID, so this callback would no longer be needed.
|
|
108
109
|
* @note will attempt to use cart data if available
|
|
109
110
|
*/
|
|
110
111
|
buildLandedCost?: (params: BuildLandedCostParams) => Promise<BuildLandedCostResponse>;
|
|
111
112
|
/**
|
|
112
|
-
*
|
|
113
|
+
* A callback that returns the cart id from `cartCreate` mutation. You would use your cart data to call the `cartCreate` mutation and return the cart ID that was created.
|
|
113
114
|
* @note
|
|
114
|
-
* The mutation `cartCreate`
|
|
115
|
+
* The mutation `cartCreate` should be called on the server side
|
|
115
116
|
* @returns string - Cart ID
|
|
116
117
|
*/
|
|
117
118
|
createCartId?: () => Promise<string> | string;
|
|
@@ -125,7 +126,7 @@ export type CheckoutConfig = {
|
|
|
125
126
|
* @returns {string | null} - The error message to display to the user. If the message is empty or null, the payment will proceed.
|
|
126
127
|
* @example
|
|
127
128
|
* onInventoryCheck: async ({ items }) => {
|
|
128
|
-
* // Check if all items are available from the server. If the fetch is throwing an error,
|
|
129
|
+
* // Check if all items are available from the server. If the fetch is throwing an error, show a generic error message "Unable to check inventory. Please try again.".
|
|
129
130
|
* const itemsInfo = await fetch('https://yourserver.com/api/get-available-items', {
|
|
130
131
|
* method: 'POST',
|
|
131
132
|
* body: JSON.stringify({ items }),
|
|
@@ -26,6 +26,10 @@ declare global {
|
|
|
26
26
|
* A flag to determine if the current page is a BigCommerce page
|
|
27
27
|
*/
|
|
28
28
|
bcConfig?: unknown;
|
|
29
|
+
/**
|
|
30
|
+
* This flag would be set to true if zonosQaUrl is present in the query params and preview script loadZonos.js is injected to DOM
|
|
31
|
+
*/
|
|
32
|
+
isZonosPreview?: boolean;
|
|
29
33
|
/**
|
|
30
34
|
* A flag to determine if the current page is a BigCommerce page
|
|
31
35
|
*/
|
|
@@ -17,6 +17,14 @@ export type HelloConfig = {
|
|
|
17
17
|
homepageUrlPattern: string | null;
|
|
18
18
|
mobileLocation: HelloMobileLocation | null;
|
|
19
19
|
mode: Mode;
|
|
20
|
+
/**
|
|
21
|
+
* Position of floating hello if `anchorElementSelector` is not found after 3 seconds
|
|
22
|
+
*
|
|
23
|
+
* null: don't render if not found
|
|
24
|
+
*
|
|
25
|
+
* @default null
|
|
26
|
+
*/
|
|
27
|
+
notFoundElementFallback: HelloMobileLocation | null;
|
|
20
28
|
organization: string;
|
|
21
29
|
peekMessageBehavior: HelloPeekMessageBehavior;
|
|
22
30
|
peekMessageDelay: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e,a as n}from"./p-970fa103.js";import{s as t,c as o}from"./p-56d405d0.js";export{c as checkoutHiddenBtnSelector,d as domesticRedirectedBtnSelector}from"./p-56d405d0.js";const s=["jsdelivr","cdnjs","unpkg","vercel"],r="jsdelivr",i=e=>{const n=s.indexOf(e);return s[n+1]||null},l="https://js.stripe.com/v3",u=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,a="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let m=null;const p=Promise.resolve().then((()=>{return e=null,null!==m||(m=new Promise(((t,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(a),window.Stripe)t(window.Stripe);else try{let s=(()=>{const e=document.querySelectorAll(`script[src^="${l}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&u.test(t.src))return t}return null})();s&&e?console.warn(a):s||(s=(e=>{const t=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${l}${t}`;const s=document.head||document.body;return s?(s.appendChild(o),o):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==s||s.addEventListener("load",(()=>{window.Stripe?t(window.Stripe):o(new Error("Stripe.js not available"))})),null==s||s.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else t(null)}))),m;var e}));let w=!1;var f;p.catch((e=>{w||console.warn(e)}));const h=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:t}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,t=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),o=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:o,isWhiteListed:t}})({loadScriptSrc:null==e?void 0:e.src});return t?n:null})(),v="https://v1.3.114.js.zonos.com",y=h||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.114",z="https://rsms.me",j="https://fonts.googleapis.com",S=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class g{}f=g,g.doneInit=!1,g.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),g.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),g._paypalMockResponse=null,g.isBigCommerce=!1,g.releaseDate="1730391557048",g.isLegacyCheckout=!1,g.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),g.isNpm=!0,g.zonosQaUrl=null,g.zonosQaUrlApi=null,g.version="v1.3.114",g.modeAlerted=!1,g.cartData=null,g.paypal=null,g.getCurrentTimestamp=()=>(new Date).getTime(),g.zonosController=null,g.init=async({appearance:s,checkoutSettings:r,currencyConverter:i,helloSettings:c,onCountryChange:l,overrideCurrencyFormat:d,storeId:u,zonosApiKey:a})=>{if(f.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),!f.doneInit){if(e(`====== ZONOS DEBUG MODE: on (${f.version}) ======`),f.zonosApiKey=a,f.storeId=u,f.isNpm){if(e("====== ZONOS LOADING FROM NPM ======"),!a&&!f.cartId)return void n("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!f.cartData&&f.cartId){e("Initialize cart data");const o=await t(f.cartId);if(!o)return void n("Failed to get cart data");f.cartData=o.cartData,f.zonosApiKey=o.zonosApiKey}}if(f.cartId&&f.cartData){e("Cart data is available, inject hidden button and trigger checkout");const n=document.createElement("button");n.style.display="none",n.id=`${o}`,document.body.appendChild(n)}e("init zonos"),f.injectZonosCdn(),f.injectZonosCss(),f.injectFonts(),f.injectController({config:{appearance:s,checkoutSettings:r,currencyConverter:i,helloSettings:c,onCountryChange:l,overrideCurrencyFormat:d}}),f.doneInit=!0}},g.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},g.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},g.showNotification=e=>{var n;null===(n=f.zonosController)||void 0===n||n.showNotification(e)},g.updateOrganizationName=e=>{var n;null===(n=f.zonosController)||void 0===n||n.updateOrganizationName(e)},g.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:t,placeOrderButtonSelector:o})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&o){const n=document.querySelectorAll(o),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(t?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&t&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},g.injectController=({config:t})=>{var o;if(document.querySelector("zonos-controller"))return;if(null===(o=t.checkoutSettings)||void 0===o?void 0:o.placeOrderButtonSelector){const e=t.checkoutSettings.placeOrderButtonSelector;f.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{f.disablePlaceOrderButtons({config:t,disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=t,s.zonosApiKey=f.zonosApiKey||"",s.addEventListener("stripeInitEvent",(async t=>{const{detail:o}=t;e("loading Stripe");const r=await(async(...e)=>{w=!0;const n=Date.now();return p.then((t=>((e,n,t)=>{if(null===e)return null;const o=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(o,t),o})(t,e,n)))})(o.publishableKey);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),f.zonosController=s,e("Zonos controller injected!")},g.injectScript=({cdnType:t,isModule:o,theRestUrl:s})=>{const r=`${f.getZonosUrl(t)}/${s}`;if(document.querySelector(`script[src="${r}"]`))return void e(`Zonos script "${r}" already exists in the document`,"warn");const c=document.head||document.body,l=document.createElement("script");o?l.type="module":l.noModule=!0,l.src=r,l.crossOrigin="anonymous",l.onerror=()=>{n(`Failed to load ${l.src}`);const e=i(t);e&&f.injectScript({cdnType:e,isModule:o,theRestUrl:s})},c.appendChild(l)},g.getZonosUrl=n=>{const t=()=>{switch(n){case"jsdelivr":return y;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.114";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.114";case"vercel":return v}};return f.isNpm&&(()=>{const n=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||n)return null;const t=(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),o="https://v1.3.114.js.zonos.com";if(!t&&(o.includes("test.")||o.includes("test-")))return o;if(!t&&["dev.demo.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!t)return null;if("dev-elements"===t)return"https://dev.elements.zonos.com";const s=`https://${t}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${s}' for loading elements script`,"warn"),fetch(s).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${s}' 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})),s})()||t()},g.injectZonosCdn=()=>{f.injectScript({cdnType:r,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),f.injectScript({cdnType:r,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},g.injectStylesheet=({cdnType:e,theRestUrl:t})=>{const o=f.getZonosUrl(e),s=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${v}/`,s.appendChild(r);const c=document.createElement("link");c.rel="stylesheet",c.href=`${o}/${t}`,c.onerror=()=>{n(`Failed to load ${c.href}`);const o=i(e);o&&f.injectStylesheet({cdnType:o,theRestUrl:t})},s.appendChild(c)},g.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(f.injectStylesheet({cdnType:r,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},g.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${z}"]`);for(let n=0;n<e.length;n++){const t=e[n];if(t&&!S.test(t.href))return t}return null})())return void e("Inter font already injected","warn");const n=document.head||document.body,t=document.createElement("link");t.rel="preconnect",t.href=z,n.appendChild(t);const o=document.createElement("link");o.rel="stylesheet",o.href=`${z}/inter/inter.css`,n.appendChild(o),e("Zonos font injected!")},g.setupGoogleFont=e=>{var n;null===(n=f.zonosController)||void 0===n||n.setupGoogleFont(e)},g.injectSupportGoogleFont=n=>{var t;e(`[FONT] injecting ${n}`);const o=null===(t=n.match(/family=(.*?):/))||void 0===t?void 0:t[1],s=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${j}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=j,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${o} font already injected`,"warn");const r=document.createElement("link");r.rel="stylesheet",r.href=n,s.appendChild(r),e(`[FONT] ${o} font injected!`)};export{g as Zonos}
|
|
1
|
+
import{l as e,a as n}from"./p-970fa103.js";import{s as o,c as t}from"./p-9eae2294.js";export{c as checkoutHiddenBtnSelector,d as domesticRedirectedBtnSelector}from"./p-9eae2294.js";const s=["jsdelivr","cdnjs","unpkg","vercel"],r="jsdelivr",i=e=>{const n=s.indexOf(e);return s[n+1]||null},l=()=>{const n=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||n)return null;const o=(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),t="https://v1.3.116.js.zonos.com";if(!o&&(t.includes("test.")||t.includes("test-")))return t;if(!o&&["dev.demo.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!o)return null;if("dev-elements"===o)return"https://dev.elements.zonos.com";const s=`https://${o}.preview.js.zonos.com`;return e(`[ZONOS-WARNING] using '${s}' for loading elements script`,"warn"),fetch(s).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${s}' 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,o=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",o),window.location.reload(),null})),s},a="https://js.stripe.com/v3",u=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,m="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let p=null;const w=Promise.resolve().then((()=>{return e=null,null!==p||(p=new Promise(((o,t)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(m),window.Stripe)o(window.Stripe);else try{let s=(()=>{const e=document.querySelectorAll(`script[src^="${a}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&u.test(o.src))return o}return null})();s&&e?console.warn(m):s||(s=(e=>{const o=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",t=document.createElement("script");t.src=`${a}${o}`;const s=document.head||document.body;return s?(s.appendChild(t),t):(n("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==s||s.addEventListener("load",(()=>{window.Stripe?o(window.Stripe):t(new Error("Stripe.js not available"))})),null==s||s.addEventListener("error",(()=>{t(new Error("Failed to load Stripe.js"))}))}catch(e){return void t(e)}else o(null)}))),p;var e}));let f=!1;var h;w.catch((e=>{f||console.warn(e)}));const v=(()=>{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","dev.assets-checkout.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})(),y="https://v1.3.116.js.zonos.com",z=v||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.116",j="https://rsms.me",S="https://fonts.googleapis.com",g=/^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;class ${}h=$,$.doneInit=!1,$.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),$.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),$._paypalMockResponse=null,$.isBigCommerce=!1,$.releaseDate="1730756346718",$.isLegacyCheckout=!1,$.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),$.isNpm=!0,$.zonosQaUrl=null,$.zonosQaUrlApi=null,$.version="v1.3.116",$.modeAlerted=!1,$.cartData=null,$.paypal=null,$.getCurrentTimestamp=()=>(new Date).getTime(),$.zonosController=null,$.init=async s=>{const{appearance:r,checkoutSettings:i,currencyConverter:c,helloSettings:d,onCountryChange:a,overrideCurrencyFormat:u,storeId:m,zonosApiKey:p}=s;if(h.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),!h.doneInit){if(e(`====== ZONOS DEBUG MODE: on (${h.version}) ======`),h.zonosApiKey=p,h.storeId=m,h.isNpm){e("====== ZONOS LOADING FROM NPM ======");const t=l();if(t&&!window.isZonosPreview){e(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${t} ======`,"info");const n=document.createElement("script");return n.src=`${t}/dist/scripts/zonos.js`,document.head.appendChild(n),n.addEventListener("load",(()=>{window.Zonos.isNpm=h.isNpm,window.Zonos.isBigCommerce=h.isBigCommerce,window.Zonos.isLegacyCheckout=h.isLegacyCheckout,window.Zonos.init(s)})),n.addEventListener("error",(()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${t}`)})),void(window.isZonosPreview=!0)}if(!p&&!h.cartId)return void n("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!h.cartData&&h.cartId){e("Initialize cart data");const t=await o(h.cartId);if(!t)return void n("Failed to get cart data");h.cartData=t.cartData,h.zonosApiKey=t.zonosApiKey}}if(h.cartId&&h.cartData){e("Cart data is available, inject hidden button and trigger checkout");const n=document.createElement("button");n.style.display="none",n.id=`${t}`,document.body.appendChild(n)}e("init zonos"),h.injectZonosCdn(),h.injectZonosCss(),h.injectFonts(),h.injectController({config:{appearance:r,checkoutSettings:i,currencyConverter:c,helloSettings:d,onCountryChange:a,overrideCurrencyFormat:u}}),h.doneInit=!0}},$.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},$.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},$.showNotification=e=>{var n;null===(n=h.zonosController)||void 0===n||n.showNotification(e)},$.updateOrganizationName=e=>{var n;null===(n=h.zonosController)||void 0===n||n.updateOrganizationName(e)},$.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:o,placeOrderButtonSelector:t})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&t){const n=document.querySelectorAll(t),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(o?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&o&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},$.injectController=({config:o})=>{var t;if(document.querySelector("zonos-controller"))return;if(null===(t=o.checkoutSettings)||void 0===t?void 0:t.placeOrderButtonSelector){const e=o.checkoutSettings.placeOrderButtonSelector;h.disablePlaceOrderButtons({config:o,disable:!0,placeOrderButtonSelector:e}),new MutationObserver((()=>{h.disablePlaceOrderButtons({config:o,disable:!0,placeOrderButtonSelector:e})})).observe(document.body,{childList:!0,subtree:!0})}const s=document.createElement("zonos-controller");s.config=o,s.zonosApiKey=h.zonosApiKey||"",s.addEventListener("stripeInitEvent",(async o=>{const{detail:t}=o;e("loading Stripe");const r=await(async(...e)=>{f=!0;const n=Date.now();return w.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);r?(window.Zonos.stripe=r,s.initCheckoutElement(r)):n("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(s),h.zonosController=s,e("Zonos controller injected!")},$.injectScript=({cdnType:o,isModule:t,theRestUrl:s})=>{const r=`${h.getZonosUrl(o)}/${s}`;if(document.querySelector(`script[src="${r}"]`))return void e(`Zonos script "${r}" already exists in the document`,"warn");const c=document.head||document.body,l=document.createElement("script");t?l.type="module":l.noModule=!0,l.src=r,l.crossOrigin="anonymous",l.onerror=()=>{n(`Failed to load ${l.src}`);const e=i(o);e&&h.injectScript({cdnType:e,isModule:t,theRestUrl:s})},c.appendChild(l)},$.getZonosUrl=e=>{const n=()=>{switch(e){case"jsdelivr":return z;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.116";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.116";case"vercel":return y}};return h.isNpm&&l()||n()},$.injectZonosCdn=()=>{h.injectScript({cdnType:r,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),h.injectScript({cdnType:r,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),e("Zonos cdn script injected!")},$.injectStylesheet=({cdnType:e,theRestUrl:o})=>{const t=h.getZonosUrl(e),s=document.head||document.body,r=document.createElement("link");r.rel="preconnect",r.href=`${y}/`,s.appendChild(r);const c=document.createElement("link");c.rel="stylesheet",c.href=`${t}/${o}`,c.onerror=()=>{n(`Failed to load ${c.href}`);const t=i(e);t&&h.injectStylesheet({cdnType:t,theRestUrl:o})},s.appendChild(c)},$.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?e("Zonos style links already injected","warn"):(h.injectStylesheet({cdnType:r,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),e("Zonos style css injected!"))},$.injectFonts=()=>{if((()=>{const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${j}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&!g.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=j,n.appendChild(o);const t=document.createElement("link");t.rel="stylesheet",t.href=`${j}/inter/inter.css`,n.appendChild(t),e("Zonos font injected!")},$.setupGoogleFont=e=>{var n;null===(n=h.zonosController)||void 0===n||n.setupGoogleFont(e)},$.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^="${S}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=S,s.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${n}"]`))return void e(`[FONT] ${t} font already injected`,"warn");const r=document.createElement("link");r.rel="stylesheet",r.href=n,s.appendChild(r),e(`[FONT] ${t} font injected!`)};export{$ as Zonos}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var __spreadArray=this&&this.__spreadArray||function(r,n,t){if(t||arguments.length===2)for(var e=0,a=n.length,i;e<a;e++){if(i||!(e in n)){if(!i)i=Array.prototype.slice.call(n,0,e);i[e]=n[e]}}return r.concat(i||Array.prototype.slice.call(n))};System.register(["./p-fd061229.system.js"],(function(r){"use strict";var n,t;return{setters:[function(r){n=r.g;t=r.f}],execute:function(){var e=function(r,n,t){var e=r.get(n);if(!e){r.set(n,[t])}else if(!e.includes(t)){e.push(t)}};var a=function(r,n){var t;return function(){var e=[];for(var a=0;a<arguments.length;a++){e[a]=arguments[a]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;r.apply(void 0,e)}),n)}};var i=function(r){return!("isConnected"in r)||r.isConnected};var u=a((function(r){for(var n=0,t=r.keys();n<t.length;n++){var e=t[n];r.set(e,r.get(e).filter(i))}}),2e3);var o=function(){if(typeof n!=="function"){return{}}var r=new Map;return{dispose:function(){return r.clear()},get:function(t){var a=n();if(a){e(r,t,a)}},set:function(n){var e=r.get(n);if(e){r.set(n,e.filter(t))}u(r)},reset:function(){r.forEach((function(r){return r.forEach(t)}));u(r)}}};var v=function(r){return typeof r==="function"?r():r};var f=function(r,n){if(n===void 0){n=function(r,n){return r!==n}}var t=v(r);var e=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var a={dispose:[],get:[],set:[],reset:[]};var i=function(){var n;e=new Map(Object.entries((n=v(r))!==null&&n!==void 0?n:{}));a.reset.forEach((function(r){return r()}))};var u=function(){a.dispose.forEach((function(r){return r()}));i()};var o=function(r){a.get.forEach((function(n){return n(r)}));return e.get(r)};var f=function(r,t){var i=e.get(r);if(n(t,i,r)){e.set(r,t);a.set.forEach((function(n){return n(r,t,i)}))}};var l=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(r,n){return o(n)},ownKeys:function(r){return Array.from(e.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(r,n){return e.has(n)},set:function(r,n,t){f(n,t);return true}});var s=function(r,n){a[r].push(n);return function(){c(a[r],n)}};var d=function(n,t){var e=s("set",(function(r,e){if(r===n){t(e)}}));var a=s("reset",(function(){return t(v(r)[n])}));return function(){e();a()}};var b=function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var t=r.reduce((function(r,n){if(n.set){r.push(s("set",n.set))}if(n.get){r.push(s("get",n.get))}if(n.reset){r.push(s("reset",n.reset))}if(n.dispose){r.push(s("dispose",n.dispose))}return r}),[]);return function(){return t.forEach((function(r){return r()}))}};var h=function(r){var n=e.get(r);a.set.forEach((function(t){return t(r,n,n)}))};return{state:l,get:o,set:f,on:s,onChange:d,use:b,dispose:u,reset:i,forceUpdate:h}};var c=function(r,n){var t=r.indexOf(n);if(t>=0){r[t]=r[r.length-1];r.length--}};var l=r("c",(function(r,n){var t=f(r,n);t.use(o());return t}));var s=r("a",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function d(){this.__data__=[];this.size=0}var b=d;function h(r,n){return r===n||r!==r&&n!==n}var y=h;var p=y;function j(r,n){var t=r.length;while(t--){if(p(r[t][0],n)){return t}}return-1}var A=j;var w=A;var g=Array.prototype;var O=g.splice;function m(r){var n=this.__data__,t=w(n,r);if(t<0){return false}var e=n.length-1;if(t==e){n.pop()}else{O.call(n,t,1)}--this.size;return true}var S=m;var _=A;function E(r){var n=this.__data__,t=_(n,r);return t<0?undefined:n[t][1]}var D=E;var T=A;function B(r){return T(this.__data__,r)>-1}var I=B;var L=A;function C(r,n){var t=this.__data__,e=L(t,r);if(e<0){++this.size;t.push([r,n])}else{t[e][1]=n}return this}var P=C;var U=b,M=S,x=D,F=I,N=P;function R(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}R.prototype.clear=U;R.prototype["delete"]=M;R.prototype.get=x;R.prototype.has=F;R.prototype.set=N;var k=R;var z=k;function $(){this.__data__=new z;this.size=0}var G=$;function H(r){var n=this.__data__,t=n["delete"](r);this.size=n.size;return t}var K=H;function V(r){return this.__data__.get(r)}var Y=V;function W(r){return this.__data__.has(r)}var q=W;var J=typeof s=="object"&&s&&s.Object===Object&&s;var Q=J;var X=Q;var Z=typeof self=="object"&&self&&self.Object===Object&&self;var rr=X||Z||Function("return this")();var nr=r("_",rr);var tr=nr;var er=tr.Symbol;var ar=er;var ir=ar;var ur=Object.prototype;var or=ur.hasOwnProperty;var vr=ur.toString;var fr=ir?ir.toStringTag:undefined;function cr(r){var n=or.call(r,fr),t=r[fr];try{r[fr]=undefined;var e=true}catch(r){}var a=vr.call(r);if(e){if(n){r[fr]=t}else{delete r[fr]}}return a}var lr=cr;var sr=Object.prototype;var dr=sr.toString;function br(r){return dr.call(r)}var hr=br;var yr=ar,pr=lr,jr=hr;var Ar="[object Null]",wr="[object Undefined]";var gr=yr?yr.toStringTag:undefined;function Or(r){if(r==null){return r===undefined?wr:Ar}return gr&&gr in Object(r)?pr(r):jr(r)}var mr=r("e",Or);function Sr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var _r=r("f",Sr);var Er=mr,Dr=_r;var Tr="[object AsyncFunction]",Br="[object Function]",Ir="[object GeneratorFunction]",Lr="[object Proxy]";function Cr(r){if(!Dr(r)){return false}var n=Er(r);return n==Br||n==Ir||n==Tr||n==Lr}var Pr=Cr;var Ur=nr;var Mr=Ur["__core-js_shared__"];var xr=Mr;var Fr=xr;var Nr=function(){var r=/[^.]+$/.exec(Fr&&Fr.keys&&Fr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Rr(r){return!!Nr&&Nr in r}var kr=Rr;var zr=Function.prototype;var $r=zr.toString;function Gr(r){if(r!=null){try{return $r.call(r)}catch(r){}try{return r+""}catch(r){}}return""}var Hr=Gr;var Kr=Pr,Vr=kr,Yr=_r,Wr=Hr;var qr=/[\\^$.*+?()[\]{}|]/g;var Jr=/^\[object .+?Constructor\]$/;var Qr=Function.prototype,Xr=Object.prototype;var Zr=Qr.toString;var rn=Xr.hasOwnProperty;var nn=RegExp("^"+Zr.call(rn).replace(qr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tn(r){if(!Yr(r)||Vr(r)){return false}var n=Kr(r)?nn:Jr;return n.test(Wr(r))}var en=tn;function an(r,n){return r==null?undefined:r[n]}var un=an;var on=en,vn=un;function fn(r,n){var t=vn(r,n);return on(t)?t:undefined}var cn=fn;var ln=cn,sn=nr;var dn=ln(sn,"Map");var bn=dn;var hn=cn;var yn=hn(Object,"create");var pn=yn;var jn=pn;function An(){this.__data__=jn?jn(null):{};this.size=0}var wn=An;function gn(r){var n=this.has(r)&&delete this.__data__[r];this.size-=n?1:0;return n}var On=gn;var mn=pn;var Sn="__lodash_hash_undefined__";var _n=Object.prototype;var En=_n.hasOwnProperty;function Dn(r){var n=this.__data__;if(mn){var t=n[r];return t===Sn?undefined:t}return En.call(n,r)?n[r]:undefined}var Tn=Dn;var Bn=pn;var In=Object.prototype;var Ln=In.hasOwnProperty;function Cn(r){var n=this.__data__;return Bn?n[r]!==undefined:Ln.call(n,r)}var Pn=Cn;var Un=pn;var Mn="__lodash_hash_undefined__";function xn(r,n){var t=this.__data__;this.size+=this.has(r)?0:1;t[r]=Un&&n===undefined?Mn:n;return this}var Fn=xn;var Nn=wn,Rn=On,kn=Tn,zn=Pn,$n=Fn;function Gn(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}Gn.prototype.clear=Nn;Gn.prototype["delete"]=Rn;Gn.prototype.get=kn;Gn.prototype.has=zn;Gn.prototype.set=$n;var Hn=Gn;var Kn=Hn,Vn=k,Yn=bn;function Wn(){this.size=0;this.__data__={hash:new Kn,map:new(Yn||Vn),string:new Kn}}var qn=Wn;function Jn(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}var Qn=Jn;var Xn=Qn;function Zn(r,n){var t=r.__data__;return Xn(n)?t[typeof n=="string"?"string":"hash"]:t.map}var rt=Zn;var nt=rt;function tt(r){var n=nt(this,r)["delete"](r);this.size-=n?1:0;return n}var et=tt;var at=rt;function it(r){return at(this,r).get(r)}var ut=it;var ot=rt;function vt(r){return ot(this,r).has(r)}var ft=vt;var ct=rt;function lt(r,n){var t=ct(this,r),e=t.size;t.set(r,n);this.size+=t.size==e?0:1;return this}var st=lt;var dt=qn,bt=et,ht=ut,yt=ft,pt=st;function jt(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}jt.prototype.clear=dt;jt.prototype["delete"]=bt;jt.prototype.get=ht;jt.prototype.has=yt;jt.prototype.set=pt;var At=jt;var wt=k,gt=bn,Ot=At;var mt=200;function St(r,n){var t=this.__data__;if(t instanceof wt){var e=t.__data__;if(!gt||e.length<mt-1){e.push([r,n]);this.size=++t.size;return this}t=this.__data__=new Ot(e)}t.set(r,n);this.size=t.size;return this}var _t=St;var Et=k,Dt=G,Tt=K,Bt=Y,It=q,Lt=_t;function Ct(r){var n=this.__data__=new Et(r);this.size=n.size}Ct.prototype.clear=Dt;Ct.prototype["delete"]=Tt;Ct.prototype.get=Bt;Ct.prototype.has=It;Ct.prototype.set=Lt;var Pt=Ct;var Ut=cn;var Mt=function(){try{var r=Ut(Object,"defineProperty");r({},"",{});return r}catch(r){}}();var xt=Mt;var Ft=xt;function Nt(r,n,t){if(n=="__proto__"&&Ft){Ft(r,n,{configurable:true,enumerable:true,value:t,writable:true})}else{r[n]=t}}var Rt=Nt;var kt=Rt,zt=y;function $t(r,n,t){if(t!==undefined&&!zt(r[n],t)||t===undefined&&!(n in r)){kt(r,n,t)}}var Gt=$t;function Ht(r){return function(n,t,e){var a=-1,i=Object(n),u=e(n),o=u.length;while(o--){var v=u[r?o:++a];if(t(i[v],v,i)===false){break}}return n}}var Kt=Ht;var Vt=Kt;var Yt=Vt();var Wt=Yt;var qt={exports:{}};(function(r,n){var t=nr;var e=n&&!n.nodeType&&n;var a=e&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===e;var u=i?t.Buffer:undefined,o=u?u.allocUnsafe:undefined;function v(r,n){if(n){return r.slice()}var t=r.length,e=o?o(t):new r.constructor(t);r.copy(e);return e}r.exports=v})(qt,qt.exports);var Jt=nr;var Qt=Jt.Uint8Array;var Xt=Qt;var Zt=Xt;function re(r){var n=new r.constructor(r.byteLength);new Zt(n).set(new Zt(r));return n}var ne=re;var te=ne;function ee(r,n){var t=n?te(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var ae=ee;function ie(r,n){var t=-1,e=r.length;n||(n=Array(e));while(++t<e){n[t]=r[t]}return n}var ue=ie;var oe=_r;var ve=Object.create;var fe=function(){function r(){}return function(n){if(!oe(n)){return{}}if(ve){return ve(n)}r.prototype=n;var t=new r;r.prototype=undefined;return t}}();var ce=fe;function le(r,n){return function(t){return r(n(t))}}var se=le;var de=se;var be=de(Object.getPrototypeOf,Object);var he=be;var ye=Object.prototype;function pe(r){var n=r&&r.constructor,t=typeof n=="function"&&n.prototype||ye;return r===t}var je=pe;var Ae=ce,we=he,ge=je;function Oe(r){return typeof r.constructor=="function"&&!ge(r)?Ae(we(r)):{}}var me=Oe;function Se(r){return r!=null&&typeof r=="object"}var _e=r("i",Se);var Ee=mr,De=_e;var Te="[object Arguments]";function Be(r){return De(r)&&Ee(r)==Te}var Ie=Be;var Le=Ie,Ce=_e;var Pe=Object.prototype;var Ue=Pe.hasOwnProperty;var Me=Pe.propertyIsEnumerable;var xe=Le(function(){return arguments}())?Le:function(r){return Ce(r)&&Ue.call(r,"callee")&&!Me.call(r,"callee")};var Fe=xe;var Ne=Array.isArray;var Re=Ne;var ke=9007199254740991;function ze(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ke}var $e=ze;var Ge=Pr,He=$e;function Ke(r){return r!=null&&He(r.length)&&!Ge(r)}var Ve=Ke;var Ye=Ve,We=_e;function qe(r){return We(r)&&Ye(r)}var Je=qe;var Qe={exports:{}};function Xe(){return false}var Ze=Xe;(function(r,n){var t=nr,e=Ze;var a=n&&!n.nodeType&&n;var i=a&&"object"=="object"&&r&&!r.nodeType&&r;var u=i&&i.exports===a;var o=u?t.Buffer:undefined;var v=o?o.isBuffer:undefined;var f=v||e;r.exports=f})(Qe,Qe.exports);var ra=mr,na=he,ta=_e;var ea="[object Object]";var aa=Function.prototype,ia=Object.prototype;var ua=aa.toString;var oa=ia.hasOwnProperty;var va=ua.call(Object);function fa(r){if(!ta(r)||ra(r)!=ea){return false}var n=na(r);if(n===null){return true}var t=oa.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&ua.call(t)==va}var ca=fa;var la=mr,sa=$e,da=_e;var ba="[object Arguments]",ha="[object Array]",ya="[object Boolean]",pa="[object Date]",ja="[object Error]",Aa="[object Function]",wa="[object Map]",ga="[object Number]",Oa="[object Object]",ma="[object RegExp]",Sa="[object Set]",_a="[object String]",Ea="[object WeakMap]";var Da="[object ArrayBuffer]",Ta="[object DataView]",Ba="[object Float32Array]",Ia="[object Float64Array]",La="[object Int8Array]",Ca="[object Int16Array]",Pa="[object Int32Array]",Ua="[object Uint8Array]",Ma="[object Uint8ClampedArray]",xa="[object Uint16Array]",Fa="[object Uint32Array]";var Na={};Na[Ba]=Na[Ia]=Na[La]=Na[Ca]=Na[Pa]=Na[Ua]=Na[Ma]=Na[xa]=Na[Fa]=true;Na[ba]=Na[ha]=Na[Da]=Na[ya]=Na[Ta]=Na[pa]=Na[ja]=Na[Aa]=Na[wa]=Na[ga]=Na[Oa]=Na[ma]=Na[Sa]=Na[_a]=Na[Ea]=false;function Ra(r){return da(r)&&sa(r.length)&&!!Na[la(r)]}var ka=Ra;function za(r){return function(n){return r(n)}}var $a=za;var Ga={exports:{}};(function(r,n){var t=Q;var e=n&&!n.nodeType&&n;var a=e&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===e;var u=i&&t.process;var o=function(){try{var r=a&&a.require&&a.require("util").types;if(r){return r}return u&&u.binding&&u.binding("util")}catch(r){}}();r.exports=o})(Ga,Ga.exports);var Ha=ka,Ka=$a,Va=Ga.exports;var Ya=Va&&Va.isTypedArray;var Wa=Ya?Ka(Ya):Ha;var qa=Wa;function Ja(r,n){if(n==="constructor"&&typeof r[n]==="function"){return}if(n=="__proto__"){return}return r[n]}var Qa=Ja;var Xa=Rt,Za=y;var ri=Object.prototype;var ni=ri.hasOwnProperty;function ti(r,n,t){var e=r[n];if(!(ni.call(r,n)&&Za(e,t))||t===undefined&&!(n in r)){Xa(r,n,t)}}var ei=ti;var ai=ei,ii=Rt;function ui(r,n,t,e){var a=!t;t||(t={});var i=-1,u=n.length;while(++i<u){var o=n[i];var v=e?e(t[o],r[o],o,t,r):undefined;if(v===undefined){v=r[o]}if(a){ii(t,o,v)}else{ai(t,o,v)}}return t}var oi=ui;function vi(r,n){var t=-1,e=Array(r);while(++t<r){e[t]=n(t)}return e}var fi=vi;var ci=9007199254740991;var li=/^(?:0|[1-9]\d*)$/;function si(r,n){var t=typeof r;n=n==null?ci:n;return!!n&&(t=="number"||t!="symbol"&&li.test(r))&&(r>-1&&r%1==0&&r<n)}var di=si;var bi=fi,hi=Fe,yi=Re,pi=Qe.exports,ji=di,Ai=qa;var wi=Object.prototype;var gi=wi.hasOwnProperty;function Oi(r,n){var t=yi(r),e=!t&&hi(r),a=!t&&!e&&pi(r),i=!t&&!e&&!a&&Ai(r),u=t||e||a||i,o=u?bi(r.length,String):[],v=o.length;for(var f in r){if((n||gi.call(r,f))&&!(u&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||ji(f,v)))){o.push(f)}}return o}var mi=Oi;function Si(r){var n=[];if(r!=null){for(var t in Object(r)){n.push(t)}}return n}var _i=Si;var Ei=_r,Di=je,Ti=_i;var Bi=Object.prototype;var Ii=Bi.hasOwnProperty;function Li(r){if(!Ei(r)){return Ti(r)}var n=Di(r),t=[];for(var e in r){if(!(e=="constructor"&&(n||!Ii.call(r,e)))){t.push(e)}}return t}var Ci=Li;var Pi=mi,Ui=Ci,Mi=Ve;function xi(r){return Mi(r)?Pi(r,true):Ui(r)}var Fi=xi;var Ni=oi,Ri=Fi;function ki(r){return Ni(r,Ri(r))}var zi=ki;var $i=Gt,Gi=qt.exports,Hi=ae,Ki=ue,Vi=me,Yi=Fe,Wi=Re,qi=Je,Ji=Qe.exports,Qi=Pr,Xi=_r,Zi=ca,ru=qa,nu=Qa,tu=zi;function eu(r,n,t,e,a,i,u){var o=nu(r,t),v=nu(n,t),f=u.get(v);if(f){$i(r,t,f);return}var c=i?i(o,v,t+"",r,n,u):undefined;var l=c===undefined;if(l){var s=Wi(v),d=!s&&Ji(v),b=!s&&!d&&ru(v);c=v;if(s||d||b){if(Wi(o)){c=o}else if(qi(o)){c=Ki(o)}else if(d){l=false;c=Gi(v,true)}else if(b){l=false;c=Hi(v,true)}else{c=[]}}else if(Zi(v)||Yi(v)){c=o;if(Yi(o)){c=tu(o)}else if(!Xi(o)||Qi(o)){c=Vi(v)}}else{l=false}}if(l){u.set(v,c);a(c,v,e,i,u);u["delete"](v)}$i(r,t,c)}var au=eu;var iu=Pt,uu=Gt,ou=Wt,vu=au,fu=_r,cu=Fi,lu=Qa;function su(r,n,t,e,a){if(r===n){return}ou(n,(function(i,u){a||(a=new iu);if(fu(i)){vu(r,n,u,t,su,e,a)}else{var o=e?e(lu(r,u),i,u+"",r,n,a):undefined;if(o===undefined){o=i}uu(r,u,o)}}),cu)}var du=su;function bu(r){return r}var hu=bu;function yu(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}var pu=yu;var ju=pu;var Au=Math.max;function wu(r,n,t){n=Au(n===undefined?r.length-1:n,0);return function(){var e=arguments,a=-1,i=Au(e.length-n,0),u=Array(i);while(++a<i){u[a]=e[n+a]}a=-1;var o=Array(n+1);while(++a<n){o[a]=e[a]}o[n]=t(u);return ju(r,this,o)}}var gu=wu;function Ou(r){return function(){return r}}var mu=Ou;var Su=mu,_u=xt,Eu=hu;var Du=!_u?Eu:function(r,n){return _u(r,"toString",{configurable:true,enumerable:false,value:Su(n),writable:true})};var Tu=Du;var Bu=800,Iu=16;var Lu=Date.now;function Cu(r){var n=0,t=0;return function(){var e=Lu(),a=Iu-(e-t);t=e;if(a>0){if(++n>=Bu){return arguments[0]}}else{n=0}return r.apply(undefined,arguments)}}var Pu=Cu;var Uu=Tu,Mu=Pu;var xu=Mu(Uu);var Fu=xu;var Nu=hu,Ru=gu,ku=Fu;function zu(r,n){return ku(Ru(r,n,Nu),r+"")}var $u=zu;var Gu=y,Hu=Ve,Ku=di,Vu=_r;function Yu(r,n,t){if(!Vu(t)){return false}var e=typeof n;if(e=="number"?Hu(t)&&Ku(n,t.length):e=="string"&&n in t){return Gu(t[n],r)}return false}var Wu=Yu;var qu=$u,Ju=Wu;function Qu(r){return qu((function(n,t){var e=-1,a=t.length,i=a>1?t[a-1]:undefined,u=a>2?t[2]:undefined;i=r.length>3&&typeof i=="function"?(a--,i):undefined;if(u&&Ju(t[0],t[1],u)){i=a<3?undefined:i;a=1}n=Object(n);while(++e<a){var o=t[e];if(o){r(n,o,e,i)}}return n}))}var Xu=Qu;var Zu=du,ro=Xu;var no=ro((function(r,n,t){Zu(r,n,t)}));var to=no;var eo=r("m",(function(r,n){var t=[];for(var e=2;e<arguments.length;e++){t[e-2]=arguments[e]}var a=__spreadArray([r,n],t,true).filter(Boolean);return to.apply(null,a)}));var ao=l((function(){return{appearance:{colorPrimary:"white",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedCharacterSets:"ALL",analyticsProviders:[],externalPaymentMethods:[],externalServiceTokens:[],mode:"TEST",orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",disabledCountries:[],helloSettings:{anchorElementSelector:"",cartUrlPattern:"",countryOverrideBehavior:"URL_PARAM",currencyBehavior:"ENABLED",currencyElementSelector:".money",desktopLocation:"BOTTOM_RIGHT",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED",showForCountries:"ONLY_SHIPPABLE",visibilityStatus:"ENABLED"},loadedConfig:false,onlineStoreSettings:{allowedDomains:[],url:""},organizationId:"",organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:"",zonosMode:null}})),io=ao.dispose,uo=ao.reset,oo=ao.state;r("z",oo);var vo=null;var fo=r("g",(function(r){if(r==="SYSTEM"){return window.matchMedia("(prefers-color-scheme: dark)").matches?"DARK":"LIGHT"}return r}));var co=r("b",(function(r){var n=r.overrideSettings,t=r.zonosSettings;var e,a,i,u,o;uo();if(t){vo=t}var v=eo(oo.appearance,(vo===null||vo===void 0?void 0:vo.appearanceSettings)||(t===null||t===void 0?void 0:t.appearanceSettings)||null,n===null||n===void 0?void 0:n.appearance);if(v.theme==="SYSTEM"){v.theme=fo(v.theme)}oo.onlineStoreSettings=eo(oo.onlineStoreSettings,(t===null||t===void 0?void 0:t.onlineStoreSettings)||null);oo.disabledCountries=((e=t===null||t===void 0?void 0:t.checkoutSettings)===null||e===void 0?void 0:e.disabledCountries)||[];oo.appearance=v;oo.checkoutSettings=eo(oo.checkoutSettings,(vo===null||vo===void 0?void 0:vo.checkoutSettings)||(t===null||t===void 0?void 0:t.checkoutSettings)||null,n===null||n===void 0?void 0:n.checkoutSettings);oo.helloSettings=eo(oo.helloSettings,(vo===null||vo===void 0?void 0:vo.helloSettings)||(t===null||t===void 0?void 0:t.helloSettings)||null,n===null||n===void 0?void 0:n.helloSettings);oo.loadedConfig=true;oo.organizationId=((a=t===null||t===void 0?void 0:t.organization)===null||a===void 0?void 0:a.id)||"";oo.organizationName=((i=t===null||t===void 0?void 0:t.organization)===null||i===void 0?void 0:i.name)||"";oo.storeId=((o=(u=t===null||t===void 0?void 0:t.organization)===null||u===void 0?void 0:u.references)===null||o===void 0?void 0:o.storeId)||null;oo.currencyConverter=n===null||n===void 0?void 0:n.currencyConverter;oo.onCountryChange=n===null||n===void 0?void 0:n.onCountryChange;oo.overrideCurrencyFormat=n===null||n===void 0?void 0:n.overrideCurrencyFormat}));var lo=r("d",(function(){var r=oo.appearance.fontFamily||"Inter";return r}))}}}));
|
|
1
|
+
var __spreadArray=this&&this.__spreadArray||function(r,n,t){if(t||arguments.length===2)for(var e=0,a=n.length,i;e<a;e++){if(i||!(e in n)){if(!i)i=Array.prototype.slice.call(n,0,e);i[e]=n[e]}}return r.concat(i||Array.prototype.slice.call(n))};System.register(["./p-fd061229.system.js"],(function(r){"use strict";var n,t;return{setters:[function(r){n=r.g;t=r.f}],execute:function(){var e=function(r,n,t){var e=r.get(n);if(!e){r.set(n,[t])}else if(!e.includes(t)){e.push(t)}};var a=function(r,n){var t;return function(){var e=[];for(var a=0;a<arguments.length;a++){e[a]=arguments[a]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;r.apply(void 0,e)}),n)}};var i=function(r){return!("isConnected"in r)||r.isConnected};var u=a((function(r){for(var n=0,t=r.keys();n<t.length;n++){var e=t[n];r.set(e,r.get(e).filter(i))}}),2e3);var o=function(){if(typeof n!=="function"){return{}}var r=new Map;return{dispose:function(){return r.clear()},get:function(t){var a=n();if(a){e(r,t,a)}},set:function(n){var e=r.get(n);if(e){r.set(n,e.filter(t))}u(r)},reset:function(){r.forEach((function(r){return r.forEach(t)}));u(r)}}};var v=function(r){return typeof r==="function"?r():r};var f=function(r,n){if(n===void 0){n=function(r,n){return r!==n}}var t=v(r);var e=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var a={dispose:[],get:[],set:[],reset:[]};var i=function(){var n;e=new Map(Object.entries((n=v(r))!==null&&n!==void 0?n:{}));a.reset.forEach((function(r){return r()}))};var u=function(){a.dispose.forEach((function(r){return r()}));i()};var o=function(r){a.get.forEach((function(n){return n(r)}));return e.get(r)};var f=function(r,t){var i=e.get(r);if(n(t,i,r)){e.set(r,t);a.set.forEach((function(n){return n(r,t,i)}))}};var l=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(r,n){return o(n)},ownKeys:function(r){return Array.from(e.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(r,n){return e.has(n)},set:function(r,n,t){f(n,t);return true}});var s=function(r,n){a[r].push(n);return function(){c(a[r],n)}};var d=function(n,t){var e=s("set",(function(r,e){if(r===n){t(e)}}));var a=s("reset",(function(){return t(v(r)[n])}));return function(){e();a()}};var b=function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var t=r.reduce((function(r,n){if(n.set){r.push(s("set",n.set))}if(n.get){r.push(s("get",n.get))}if(n.reset){r.push(s("reset",n.reset))}if(n.dispose){r.push(s("dispose",n.dispose))}return r}),[]);return function(){return t.forEach((function(r){return r()}))}};var h=function(r){var n=e.get(r);a.set.forEach((function(t){return t(r,n,n)}))};return{state:l,get:o,set:f,on:s,onChange:d,use:b,dispose:u,reset:i,forceUpdate:h}};var c=function(r,n){var t=r.indexOf(n);if(t>=0){r[t]=r[r.length-1];r.length--}};var l=r("c",(function(r,n){var t=f(r,n);t.use(o());return t}));var s=r("a",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function d(){this.__data__=[];this.size=0}var b=d;function h(r,n){return r===n||r!==r&&n!==n}var y=h;var p=y;function j(r,n){var t=r.length;while(t--){if(p(r[t][0],n)){return t}}return-1}var A=j;var w=A;var g=Array.prototype;var m=g.splice;function O(r){var n=this.__data__,t=w(n,r);if(t<0){return false}var e=n.length-1;if(t==e){n.pop()}else{m.call(n,t,1)}--this.size;return true}var S=O;var _=A;function E(r){var n=this.__data__,t=_(n,r);return t<0?undefined:n[t][1]}var D=E;var T=A;function B(r){return T(this.__data__,r)>-1}var I=B;var L=A;function C(r,n){var t=this.__data__,e=L(t,r);if(e<0){++this.size;t.push([r,n])}else{t[e][1]=n}return this}var P=C;var U=b,M=S,F=D,x=I,N=P;function R(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}R.prototype.clear=U;R.prototype["delete"]=M;R.prototype.get=F;R.prototype.has=x;R.prototype.set=N;var k=R;var z=k;function $(){this.__data__=new z;this.size=0}var G=$;function H(r){var n=this.__data__,t=n["delete"](r);this.size=n.size;return t}var K=H;function V(r){return this.__data__.get(r)}var Y=V;function W(r){return this.__data__.has(r)}var q=W;var J=typeof s=="object"&&s&&s.Object===Object&&s;var Q=J;var X=Q;var Z=typeof self=="object"&&self&&self.Object===Object&&self;var rr=X||Z||Function("return this")();var nr=r("_",rr);var tr=nr;var er=tr.Symbol;var ar=er;var ir=ar;var ur=Object.prototype;var or=ur.hasOwnProperty;var vr=ur.toString;var fr=ir?ir.toStringTag:undefined;function cr(r){var n=or.call(r,fr),t=r[fr];try{r[fr]=undefined;var e=true}catch(r){}var a=vr.call(r);if(e){if(n){r[fr]=t}else{delete r[fr]}}return a}var lr=cr;var sr=Object.prototype;var dr=sr.toString;function br(r){return dr.call(r)}var hr=br;var yr=ar,pr=lr,jr=hr;var Ar="[object Null]",wr="[object Undefined]";var gr=yr?yr.toStringTag:undefined;function mr(r){if(r==null){return r===undefined?wr:Ar}return gr&&gr in Object(r)?pr(r):jr(r)}var Or=r("e",mr);function Sr(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var _r=r("f",Sr);var Er=Or,Dr=_r;var Tr="[object AsyncFunction]",Br="[object Function]",Ir="[object GeneratorFunction]",Lr="[object Proxy]";function Cr(r){if(!Dr(r)){return false}var n=Er(r);return n==Br||n==Ir||n==Tr||n==Lr}var Pr=Cr;var Ur=nr;var Mr=Ur["__core-js_shared__"];var Fr=Mr;var xr=Fr;var Nr=function(){var r=/[^.]+$/.exec(xr&&xr.keys&&xr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Rr(r){return!!Nr&&Nr in r}var kr=Rr;var zr=Function.prototype;var $r=zr.toString;function Gr(r){if(r!=null){try{return $r.call(r)}catch(r){}try{return r+""}catch(r){}}return""}var Hr=Gr;var Kr=Pr,Vr=kr,Yr=_r,Wr=Hr;var qr=/[\\^$.*+?()[\]{}|]/g;var Jr=/^\[object .+?Constructor\]$/;var Qr=Function.prototype,Xr=Object.prototype;var Zr=Qr.toString;var rn=Xr.hasOwnProperty;var nn=RegExp("^"+Zr.call(rn).replace(qr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tn(r){if(!Yr(r)||Vr(r)){return false}var n=Kr(r)?nn:Jr;return n.test(Wr(r))}var en=tn;function an(r,n){return r==null?undefined:r[n]}var un=an;var on=en,vn=un;function fn(r,n){var t=vn(r,n);return on(t)?t:undefined}var cn=fn;var ln=cn,sn=nr;var dn=ln(sn,"Map");var bn=dn;var hn=cn;var yn=hn(Object,"create");var pn=yn;var jn=pn;function An(){this.__data__=jn?jn(null):{};this.size=0}var wn=An;function gn(r){var n=this.has(r)&&delete this.__data__[r];this.size-=n?1:0;return n}var mn=gn;var On=pn;var Sn="__lodash_hash_undefined__";var _n=Object.prototype;var En=_n.hasOwnProperty;function Dn(r){var n=this.__data__;if(On){var t=n[r];return t===Sn?undefined:t}return En.call(n,r)?n[r]:undefined}var Tn=Dn;var Bn=pn;var In=Object.prototype;var Ln=In.hasOwnProperty;function Cn(r){var n=this.__data__;return Bn?n[r]!==undefined:Ln.call(n,r)}var Pn=Cn;var Un=pn;var Mn="__lodash_hash_undefined__";function Fn(r,n){var t=this.__data__;this.size+=this.has(r)?0:1;t[r]=Un&&n===undefined?Mn:n;return this}var xn=Fn;var Nn=wn,Rn=mn,kn=Tn,zn=Pn,$n=xn;function Gn(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}Gn.prototype.clear=Nn;Gn.prototype["delete"]=Rn;Gn.prototype.get=kn;Gn.prototype.has=zn;Gn.prototype.set=$n;var Hn=Gn;var Kn=Hn,Vn=k,Yn=bn;function Wn(){this.size=0;this.__data__={hash:new Kn,map:new(Yn||Vn),string:new Kn}}var qn=Wn;function Jn(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}var Qn=Jn;var Xn=Qn;function Zn(r,n){var t=r.__data__;return Xn(n)?t[typeof n=="string"?"string":"hash"]:t.map}var rt=Zn;var nt=rt;function tt(r){var n=nt(this,r)["delete"](r);this.size-=n?1:0;return n}var et=tt;var at=rt;function it(r){return at(this,r).get(r)}var ut=it;var ot=rt;function vt(r){return ot(this,r).has(r)}var ft=vt;var ct=rt;function lt(r,n){var t=ct(this,r),e=t.size;t.set(r,n);this.size+=t.size==e?0:1;return this}var st=lt;var dt=qn,bt=et,ht=ut,yt=ft,pt=st;function jt(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}jt.prototype.clear=dt;jt.prototype["delete"]=bt;jt.prototype.get=ht;jt.prototype.has=yt;jt.prototype.set=pt;var At=jt;var wt=k,gt=bn,mt=At;var Ot=200;function St(r,n){var t=this.__data__;if(t instanceof wt){var e=t.__data__;if(!gt||e.length<Ot-1){e.push([r,n]);this.size=++t.size;return this}t=this.__data__=new mt(e)}t.set(r,n);this.size=t.size;return this}var _t=St;var Et=k,Dt=G,Tt=K,Bt=Y,It=q,Lt=_t;function Ct(r){var n=this.__data__=new Et(r);this.size=n.size}Ct.prototype.clear=Dt;Ct.prototype["delete"]=Tt;Ct.prototype.get=Bt;Ct.prototype.has=It;Ct.prototype.set=Lt;var Pt=Ct;var Ut=cn;var Mt=function(){try{var r=Ut(Object,"defineProperty");r({},"",{});return r}catch(r){}}();var Ft=Mt;var xt=Ft;function Nt(r,n,t){if(n=="__proto__"&&xt){xt(r,n,{configurable:true,enumerable:true,value:t,writable:true})}else{r[n]=t}}var Rt=Nt;var kt=Rt,zt=y;function $t(r,n,t){if(t!==undefined&&!zt(r[n],t)||t===undefined&&!(n in r)){kt(r,n,t)}}var Gt=$t;function Ht(r){return function(n,t,e){var a=-1,i=Object(n),u=e(n),o=u.length;while(o--){var v=u[r?o:++a];if(t(i[v],v,i)===false){break}}return n}}var Kt=Ht;var Vt=Kt;var Yt=Vt();var Wt=Yt;var qt={exports:{}};(function(r,n){var t=nr;var e=n&&!n.nodeType&&n;var a=e&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===e;var u=i?t.Buffer:undefined,o=u?u.allocUnsafe:undefined;function v(r,n){if(n){return r.slice()}var t=r.length,e=o?o(t):new r.constructor(t);r.copy(e);return e}r.exports=v})(qt,qt.exports);var Jt=nr;var Qt=Jt.Uint8Array;var Xt=Qt;var Zt=Xt;function re(r){var n=new r.constructor(r.byteLength);new Zt(n).set(new Zt(r));return n}var ne=re;var te=ne;function ee(r,n){var t=n?te(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var ae=ee;function ie(r,n){var t=-1,e=r.length;n||(n=Array(e));while(++t<e){n[t]=r[t]}return n}var ue=ie;var oe=_r;var ve=Object.create;var fe=function(){function r(){}return function(n){if(!oe(n)){return{}}if(ve){return ve(n)}r.prototype=n;var t=new r;r.prototype=undefined;return t}}();var ce=fe;function le(r,n){return function(t){return r(n(t))}}var se=le;var de=se;var be=de(Object.getPrototypeOf,Object);var he=be;var ye=Object.prototype;function pe(r){var n=r&&r.constructor,t=typeof n=="function"&&n.prototype||ye;return r===t}var je=pe;var Ae=ce,we=he,ge=je;function me(r){return typeof r.constructor=="function"&&!ge(r)?Ae(we(r)):{}}var Oe=me;function Se(r){return r!=null&&typeof r=="object"}var _e=r("i",Se);var Ee=Or,De=_e;var Te="[object Arguments]";function Be(r){return De(r)&&Ee(r)==Te}var Ie=Be;var Le=Ie,Ce=_e;var Pe=Object.prototype;var Ue=Pe.hasOwnProperty;var Me=Pe.propertyIsEnumerable;var Fe=Le(function(){return arguments}())?Le:function(r){return Ce(r)&&Ue.call(r,"callee")&&!Me.call(r,"callee")};var xe=Fe;var Ne=Array.isArray;var Re=Ne;var ke=9007199254740991;function ze(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ke}var $e=ze;var Ge=Pr,He=$e;function Ke(r){return r!=null&&He(r.length)&&!Ge(r)}var Ve=Ke;var Ye=Ve,We=_e;function qe(r){return We(r)&&Ye(r)}var Je=qe;var Qe={exports:{}};function Xe(){return false}var Ze=Xe;(function(r,n){var t=nr,e=Ze;var a=n&&!n.nodeType&&n;var i=a&&"object"=="object"&&r&&!r.nodeType&&r;var u=i&&i.exports===a;var o=u?t.Buffer:undefined;var v=o?o.isBuffer:undefined;var f=v||e;r.exports=f})(Qe,Qe.exports);var ra=Or,na=he,ta=_e;var ea="[object Object]";var aa=Function.prototype,ia=Object.prototype;var ua=aa.toString;var oa=ia.hasOwnProperty;var va=ua.call(Object);function fa(r){if(!ta(r)||ra(r)!=ea){return false}var n=na(r);if(n===null){return true}var t=oa.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&ua.call(t)==va}var ca=fa;var la=Or,sa=$e,da=_e;var ba="[object Arguments]",ha="[object Array]",ya="[object Boolean]",pa="[object Date]",ja="[object Error]",Aa="[object Function]",wa="[object Map]",ga="[object Number]",ma="[object Object]",Oa="[object RegExp]",Sa="[object Set]",_a="[object String]",Ea="[object WeakMap]";var Da="[object ArrayBuffer]",Ta="[object DataView]",Ba="[object Float32Array]",Ia="[object Float64Array]",La="[object Int8Array]",Ca="[object Int16Array]",Pa="[object Int32Array]",Ua="[object Uint8Array]",Ma="[object Uint8ClampedArray]",Fa="[object Uint16Array]",xa="[object Uint32Array]";var Na={};Na[Ba]=Na[Ia]=Na[La]=Na[Ca]=Na[Pa]=Na[Ua]=Na[Ma]=Na[Fa]=Na[xa]=true;Na[ba]=Na[ha]=Na[Da]=Na[ya]=Na[Ta]=Na[pa]=Na[ja]=Na[Aa]=Na[wa]=Na[ga]=Na[ma]=Na[Oa]=Na[Sa]=Na[_a]=Na[Ea]=false;function Ra(r){return da(r)&&sa(r.length)&&!!Na[la(r)]}var ka=Ra;function za(r){return function(n){return r(n)}}var $a=za;var Ga={exports:{}};(function(r,n){var t=Q;var e=n&&!n.nodeType&&n;var a=e&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===e;var u=i&&t.process;var o=function(){try{var r=a&&a.require&&a.require("util").types;if(r){return r}return u&&u.binding&&u.binding("util")}catch(r){}}();r.exports=o})(Ga,Ga.exports);var Ha=ka,Ka=$a,Va=Ga.exports;var Ya=Va&&Va.isTypedArray;var Wa=Ya?Ka(Ya):Ha;var qa=Wa;function Ja(r,n){if(n==="constructor"&&typeof r[n]==="function"){return}if(n=="__proto__"){return}return r[n]}var Qa=Ja;var Xa=Rt,Za=y;var ri=Object.prototype;var ni=ri.hasOwnProperty;function ti(r,n,t){var e=r[n];if(!(ni.call(r,n)&&Za(e,t))||t===undefined&&!(n in r)){Xa(r,n,t)}}var ei=ti;var ai=ei,ii=Rt;function ui(r,n,t,e){var a=!t;t||(t={});var i=-1,u=n.length;while(++i<u){var o=n[i];var v=e?e(t[o],r[o],o,t,r):undefined;if(v===undefined){v=r[o]}if(a){ii(t,o,v)}else{ai(t,o,v)}}return t}var oi=ui;function vi(r,n){var t=-1,e=Array(r);while(++t<r){e[t]=n(t)}return e}var fi=vi;var ci=9007199254740991;var li=/^(?:0|[1-9]\d*)$/;function si(r,n){var t=typeof r;n=n==null?ci:n;return!!n&&(t=="number"||t!="symbol"&&li.test(r))&&(r>-1&&r%1==0&&r<n)}var di=si;var bi=fi,hi=xe,yi=Re,pi=Qe.exports,ji=di,Ai=qa;var wi=Object.prototype;var gi=wi.hasOwnProperty;function mi(r,n){var t=yi(r),e=!t&&hi(r),a=!t&&!e&&pi(r),i=!t&&!e&&!a&&Ai(r),u=t||e||a||i,o=u?bi(r.length,String):[],v=o.length;for(var f in r){if((n||gi.call(r,f))&&!(u&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||ji(f,v)))){o.push(f)}}return o}var Oi=mi;function Si(r){var n=[];if(r!=null){for(var t in Object(r)){n.push(t)}}return n}var _i=Si;var Ei=_r,Di=je,Ti=_i;var Bi=Object.prototype;var Ii=Bi.hasOwnProperty;function Li(r){if(!Ei(r)){return Ti(r)}var n=Di(r),t=[];for(var e in r){if(!(e=="constructor"&&(n||!Ii.call(r,e)))){t.push(e)}}return t}var Ci=Li;var Pi=Oi,Ui=Ci,Mi=Ve;function Fi(r){return Mi(r)?Pi(r,true):Ui(r)}var xi=Fi;var Ni=oi,Ri=xi;function ki(r){return Ni(r,Ri(r))}var zi=ki;var $i=Gt,Gi=qt.exports,Hi=ae,Ki=ue,Vi=Oe,Yi=xe,Wi=Re,qi=Je,Ji=Qe.exports,Qi=Pr,Xi=_r,Zi=ca,ru=qa,nu=Qa,tu=zi;function eu(r,n,t,e,a,i,u){var o=nu(r,t),v=nu(n,t),f=u.get(v);if(f){$i(r,t,f);return}var c=i?i(o,v,t+"",r,n,u):undefined;var l=c===undefined;if(l){var s=Wi(v),d=!s&&Ji(v),b=!s&&!d&&ru(v);c=v;if(s||d||b){if(Wi(o)){c=o}else if(qi(o)){c=Ki(o)}else if(d){l=false;c=Gi(v,true)}else if(b){l=false;c=Hi(v,true)}else{c=[]}}else if(Zi(v)||Yi(v)){c=o;if(Yi(o)){c=tu(o)}else if(!Xi(o)||Qi(o)){c=Vi(v)}}else{l=false}}if(l){u.set(v,c);a(c,v,e,i,u);u["delete"](v)}$i(r,t,c)}var au=eu;var iu=Pt,uu=Gt,ou=Wt,vu=au,fu=_r,cu=xi,lu=Qa;function su(r,n,t,e,a){if(r===n){return}ou(n,(function(i,u){a||(a=new iu);if(fu(i)){vu(r,n,u,t,su,e,a)}else{var o=e?e(lu(r,u),i,u+"",r,n,a):undefined;if(o===undefined){o=i}uu(r,u,o)}}),cu)}var du=su;function bu(r){return r}var hu=bu;function yu(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}var pu=yu;var ju=pu;var Au=Math.max;function wu(r,n,t){n=Au(n===undefined?r.length-1:n,0);return function(){var e=arguments,a=-1,i=Au(e.length-n,0),u=Array(i);while(++a<i){u[a]=e[n+a]}a=-1;var o=Array(n+1);while(++a<n){o[a]=e[a]}o[n]=t(u);return ju(r,this,o)}}var gu=wu;function mu(r){return function(){return r}}var Ou=mu;var Su=Ou,_u=Ft,Eu=hu;var Du=!_u?Eu:function(r,n){return _u(r,"toString",{configurable:true,enumerable:false,value:Su(n),writable:true})};var Tu=Du;var Bu=800,Iu=16;var Lu=Date.now;function Cu(r){var n=0,t=0;return function(){var e=Lu(),a=Iu-(e-t);t=e;if(a>0){if(++n>=Bu){return arguments[0]}}else{n=0}return r.apply(undefined,arguments)}}var Pu=Cu;var Uu=Tu,Mu=Pu;var Fu=Mu(Uu);var xu=Fu;var Nu=hu,Ru=gu,ku=xu;function zu(r,n){return ku(Ru(r,n,Nu),r+"")}var $u=zu;var Gu=y,Hu=Ve,Ku=di,Vu=_r;function Yu(r,n,t){if(!Vu(t)){return false}var e=typeof n;if(e=="number"?Hu(t)&&Ku(n,t.length):e=="string"&&n in t){return Gu(t[n],r)}return false}var Wu=Yu;var qu=$u,Ju=Wu;function Qu(r){return qu((function(n,t){var e=-1,a=t.length,i=a>1?t[a-1]:undefined,u=a>2?t[2]:undefined;i=r.length>3&&typeof i=="function"?(a--,i):undefined;if(u&&Ju(t[0],t[1],u)){i=a<3?undefined:i;a=1}n=Object(n);while(++e<a){var o=t[e];if(o){r(n,o,e,i)}}return n}))}var Xu=Qu;var Zu=du,ro=Xu;var no=ro((function(r,n,t){Zu(r,n,t)}));var to=no;var eo=r("m",(function(r,n){var t=[];for(var e=2;e<arguments.length;e++){t[e-2]=arguments[e]}var a=__spreadArray([r,n],t,true).filter(Boolean);return to.apply(null,a)}));var ao=l((function(){return{appearance:{colorPrimary:"white",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedCharacterSets:"ALL",analyticsProviders:[],externalPaymentMethods:[],externalServiceTokens:[],mode:"TEST",orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",disabledCountries:[],helloSettings:{anchorElementSelector:"",cartUrlPattern:"",countryOverrideBehavior:"URL_PARAM",currencyBehavior:"ENABLED",currencyElementSelector:".money",desktopLocation:"BOTTOM_RIGHT",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",notFoundElementFallback:null,organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED",showForCountries:"ONLY_SHIPPABLE",visibilityStatus:"ENABLED"},loadedConfig:false,onlineStoreSettings:{allowedDomains:[],url:""},organizationId:"",organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:"",zonosMode:null}})),io=ao.dispose,uo=ao.reset,oo=ao.state;r("z",oo);var vo=null;var fo=r("g",(function(r){if(r==="SYSTEM"){return window.matchMedia("(prefers-color-scheme: dark)").matches?"DARK":"LIGHT"}return r}));var co=r("b",(function(r){var n=r.overrideSettings,t=r.zonosSettings;var e,a,i,u,o;uo();if(t){vo=t}var v=eo(oo.appearance,(vo===null||vo===void 0?void 0:vo.appearanceSettings)||(t===null||t===void 0?void 0:t.appearanceSettings)||null,n===null||n===void 0?void 0:n.appearance);if(v.theme==="SYSTEM"){v.theme=fo(v.theme)}oo.onlineStoreSettings=eo(oo.onlineStoreSettings,(t===null||t===void 0?void 0:t.onlineStoreSettings)||null);oo.disabledCountries=((e=t===null||t===void 0?void 0:t.checkoutSettings)===null||e===void 0?void 0:e.disabledCountries)||[];oo.appearance=v;oo.checkoutSettings=eo(oo.checkoutSettings,(vo===null||vo===void 0?void 0:vo.checkoutSettings)||(t===null||t===void 0?void 0:t.checkoutSettings)||null,n===null||n===void 0?void 0:n.checkoutSettings);oo.helloSettings=eo(oo.helloSettings,(vo===null||vo===void 0?void 0:vo.helloSettings)||(t===null||t===void 0?void 0:t.helloSettings)||null,n===null||n===void 0?void 0:n.helloSettings);oo.loadedConfig=true;oo.organizationId=((a=t===null||t===void 0?void 0:t.organization)===null||a===void 0?void 0:a.id)||"";oo.organizationName=((i=t===null||t===void 0?void 0:t.organization)===null||i===void 0?void 0:i.name)||"";oo.storeId=((o=(u=t===null||t===void 0?void 0:t.organization)===null||u===void 0?void 0:u.references)===null||o===void 0?void 0:o.storeId)||null;oo.currencyConverter=n===null||n===void 0?void 0:n.currencyConverter;oo.onCountryChange=n===null||n===void 0?void 0:n.onCountryChange;oo.overrideCurrencyFormat=n===null||n===void 0?void 0:n.overrideCurrencyFormat}));var lo=r("d",(function(){var r=oo.appearance.fontFamily||"Inter";return r}))}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as e,h as t,H as s}from"./p-5b7da777.js";import{d as o}from"./p-
|
|
1
|
+
import{r as e,h as t,H as s}from"./p-5b7da777.js";import{d as o}from"./p-91cfbf46.js";import{c as i}from"./p-b4b7f705.js";import{i as a}from"./p-66eb66d1.js";const h={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}},l=class{constructor(t){e(this,t),this.textColor="gray-1000",this.size=void 0,this.type="body",this.weight=void 0,this.ready=!1}componentDidRender(){setTimeout((()=>{this.ready=!0}),100)}render(){const{size:e,tag:l,weight:n}=h.body,{size:r,tag:z,weight:x}=h[this.type],g=this.size||r||e,m=this.weight||x||n,d=z||l,b=a(this.textColor)?`var(--zonos-elements-${this.textColor})`:this.textColor;return t(s,{class:i(["zonos--elements",`zonos--text-size-${g}`,`zonos--text-weight-${m}`]),style:{"--color":b,"--font-family":o()}},(()=>{switch(d){case"h2":return t("h2",null,t("slot",null));case"h3":return t("h3",null,t("slot",null));case"h4":return t("h4",null,t("slot",null));case"h5":return t("h5",null,t("slot",null));default:return t("span",null,t("slot",null))}})())}};l.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{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}";export{l as zonos_text}
|