@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
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-b3f6a451.js');
|
|
7
7
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
9
9
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
10
|
-
const zonosStore = require('./zonosStore-
|
|
10
|
+
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
11
11
|
const classes = require('./classes-b7918f56.js');
|
|
12
12
|
const RemoveIcon$1 = require('./RemoveIcon-081ac073.js');
|
|
13
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
14
|
-
const isDarkColor = require('./isDarkColor-
|
|
13
|
+
const getBorderRadius = require('./getBorderRadius-61ed5601.js');
|
|
14
|
+
const isDarkColor = require('./isDarkColor-d206c6fa.js');
|
|
15
15
|
|
|
16
16
|
const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
|
|
17
17
|
const ZonosAddressStyle0 = zonosAddressCss;
|
|
@@ -149,7 +149,7 @@ const ZonosAddress = class {
|
|
|
149
149
|
}
|
|
150
150
|
render() {
|
|
151
151
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
152
|
-
return (index.h(index.Host, { key: '
|
|
152
|
+
return (index.h(index.Host, { key: '50871d11c001d37882b61476acdc227fcf3e2abd', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: '90ffd3b0cc76446c88f3afe864a9bc9ecabb3997', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: '98c2bd4c328bc3df138ae61f767b70b18524e877', class: "zonos--address-component" })));
|
|
153
153
|
}
|
|
154
154
|
get el() { return index.getElement(this); }
|
|
155
155
|
static get watchers() { return {
|
|
@@ -449,14 +449,14 @@ const ZonosCheckbox = class {
|
|
|
449
449
|
customRoundRadius: '4px',
|
|
450
450
|
overrideBorderStyle: this.borderStyle,
|
|
451
451
|
});
|
|
452
|
-
return (index.h(index.Host, { key: '
|
|
452
|
+
return (index.h(index.Host, { key: 'be29586ffd5ae5227614622cfb402686ff5e0583', class: classes.classes(['zonos--elements zonos--checkbox']), style: {
|
|
453
453
|
'--background-color': backgroundColor,
|
|
454
454
|
'--border-radius': borderStyle,
|
|
455
455
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
456
456
|
'--size': `${this.size}px`,
|
|
457
|
-
} }, index.h("label", { key: '
|
|
457
|
+
} }, index.h("label", { key: '091c2388668a94962d7b2bde4496856805f675e8', class: classes.classes([this.isDisabled && 'disabled']) }, index.h("input", { key: 'c0f66d11f63591b03631cb1c970c0db201d435e2', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
|
|
458
458
|
this.checkboxSelected.emit(e.target.checked);
|
|
459
|
-
}, type: "checkbox" }), index.h("span", { key: '
|
|
459
|
+
}, type: "checkbox" }), index.h("span", { key: 'ab6c4847d006a812829bd8e871520455da91c7b0', class: "checkmark-container" }, index.h("svg", { key: '617693bef302910db463cdf95b10700b72ea8d44', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '410728b7d5edf27966e660e598f166ce8292015e', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (index.h("zonos-text", { key: '1b9a21e7ef15ad34684453bc25cb3744ba183cd0', size: this.fontSize }, this.label)))));
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
462
|
ZonosCheckbox.style = ZonosCheckboxStyle0;
|
|
@@ -522,7 +522,7 @@ const ZonosDialog = class {
|
|
|
522
522
|
const borderStyle = getBorderRadius.getBorderRadius({
|
|
523
523
|
overrideBorderStyle: this.borderStyle,
|
|
524
524
|
});
|
|
525
|
-
return (index.h(index.Host, { key: '
|
|
525
|
+
return (index.h(index.Host, { key: '018771d0e01311ae520abcf33fbd64316794b202', class: classes.classes([
|
|
526
526
|
'zonos--elements',
|
|
527
527
|
this.open && 'open',
|
|
528
528
|
this.isLoading && 'is-loading',
|
|
@@ -534,10 +534,10 @@ const ZonosDialog = class {
|
|
|
534
534
|
'--height': this.height || 'initial',
|
|
535
535
|
'--min-height': this.minHeight || '500px',
|
|
536
536
|
'--width': this.width,
|
|
537
|
-
} }, index.h("div", { key: '
|
|
537
|
+
} }, index.h("div", { key: 'a86c9f8465054fde894bbdd71149e59d97e8cbcf', class: "zonos--backdrop" }), index.h("div", { key: 'b2f0c86fa0e768474ba4d522f8c2b8157f89cd56', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '26cd8a7b98d38c53dcf4789c8781f0c1ced99633', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: '34d0ba841a9af9ca2ff6d21d0471113cc86cdec3', class: "zonos--loading" }, index.h("zonos-spinner", { key: '0109778b1a9734de0959035e3975414fb1cac1be', size: 30 }))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: 'f80a4c337727500ee1ad92c1d80d7b3088eccc0f', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '92b078fbbcd9ca5f8bf178fc67f2bee817d1e961', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: '698e45fffd466f22b6179aa220d35fe39ee5374c', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, variant: "subtle" })))), index.h("div", { key: 'a4012e5a48d5fbcc77cac038d8a39fe05f332008', class: classes.classes([
|
|
538
538
|
'zonos--body',
|
|
539
539
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
540
|
-
]) }, index.h("slot", { key: '
|
|
540
|
+
]) }, index.h("slot", { key: 'd64b381cb91afde4ddbde58348a62612d9871c8e' })), index.h("slot", { key: '4ddd73bfe41ecd1c90b18f82a8d8f12a1eacf144', name: "dialog-footer" })))));
|
|
541
541
|
}
|
|
542
542
|
static get assetsDirs() { return ["assets"]; }
|
|
543
543
|
};
|
|
@@ -584,7 +584,7 @@ const ZonosLinkAuthentication = class {
|
|
|
584
584
|
}
|
|
585
585
|
render() {
|
|
586
586
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
587
|
-
return (index.h(index.Host, { key: '
|
|
587
|
+
return (index.h(index.Host, { key: 'f0b26abf99ef99c6665dabdddebc9ff086b6816c', class: "zonos--link-authentication zonos--elements" }, index.h("zonos-text", { key: '898dbdffac06fe2a68af90610a22044bb72391ce', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: 'e2ec9abb0cf76a39a1262e1366e375dd898450cd', class: "zonos--link-authentication-component" })));
|
|
588
588
|
}
|
|
589
589
|
get el() { return index.getElement(this); }
|
|
590
590
|
static get watchers() { return {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const RemoveLineIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -27,16 +27,16 @@ const ZonosBadge = class {
|
|
|
27
27
|
this.dismissHandler = undefined;
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return (index.h(index.Host, { key: '
|
|
30
|
+
return (index.h(index.Host, { key: '250028cd50c23400b88ae1cbfa17836ade3d501b', class: classes.classes(['zonos--elements zonos--badge']), style: {
|
|
31
31
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
32
|
-
} }, index.h("div", { key: '
|
|
32
|
+
} }, index.h("div", { key: '9d2f93b0fb791c6b3390d669473261183b5662dd', class: classes.classes([
|
|
33
33
|
'zonos--badge-content',
|
|
34
34
|
this.badgeColor,
|
|
35
35
|
this.rounded && 'rounded',
|
|
36
36
|
this.iconRight && 'icon-right',
|
|
37
37
|
this.size,
|
|
38
38
|
this.bold && 'bold',
|
|
39
|
-
]) }, this.icon, index.h("zonos-text", { key: '
|
|
39
|
+
]) }, this.icon, index.h("zonos-text", { key: 'b612923e4e26d250a6f9d604e68d7d5a69f99701', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: '71369a45f9e31e9f08cbd54a4e97d310d213a768' })), this.dismissHandler && (index.h("zonos-icon", { key: '256f64f95a466be5cc7d1606666067fc06dbd061', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
ZonosBadge.style = ZonosBadgeStyle0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
8
|
|
|
9
9
|
const zonosBannerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-61ed5601.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-6f5a9608.js');
|
|
10
|
-
const isDarkColor = require('./isDarkColor-
|
|
10
|
+
const isDarkColor = require('./isDarkColor-d206c6fa.js');
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Get theme for button text based on background color
|
|
@@ -159,12 +159,12 @@ const ZonosButton = class {
|
|
|
159
159
|
const borderStyle = getBorderRadius.getBorderRadius({
|
|
160
160
|
overrideBorderStyle: this.borderStyle,
|
|
161
161
|
});
|
|
162
|
-
return (index.h(index.Host, { key: '
|
|
162
|
+
return (index.h(index.Host, { key: 'd35c2874d343aa93b38cb40cbe8cdeb5c77bb97c', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
|
|
163
163
|
'--background-color': backgroundColor,
|
|
164
164
|
'--border-radius': borderStyle,
|
|
165
165
|
'--color': color,
|
|
166
166
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
167
|
-
}) }, index.h("button", { key: '
|
|
167
|
+
}) }, index.h("button", { key: '9a964a9eb765152075c6a08008341d177e4d2879', class: classes.classes([
|
|
168
168
|
this.hasIcon && 'has-icon',
|
|
169
169
|
this.hasContent && 'has-content',
|
|
170
170
|
this.noBackground && 'no-background',
|
|
@@ -179,7 +179,7 @@ const ZonosButton = class {
|
|
|
179
179
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
180
180
|
]), disabled: disabled, style: {
|
|
181
181
|
justifyContent: this.justifyContent,
|
|
182
|
-
} }, this.loading && (index.h("div", { key: '
|
|
182
|
+
} }, this.loading && (index.h("div", { key: 'bcc0ae7d419ae25477b65d4e9c26b62f7f1e1a1f', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: 'dcd083f67544bd05b0ca866ff19a44fc33c77715', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: 'c32fab50c66737462c6a2743100cd43156edab27', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
183
183
|
}
|
|
184
184
|
static get delegatesFocus() { return true; }
|
|
185
185
|
get ele() { return index.getElement(this); }
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-61ed5601.js');
|
|
9
9
|
|
|
10
10
|
const zonosCardCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--zonos-elements-border);border-radius:var(--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
|
|
11
11
|
const ZonosCardStyle0 = zonosCardCss;
|
|
@@ -30,16 +30,16 @@ const ZonosCard = class {
|
|
|
30
30
|
customRoundRadius: `${this.borderRadius}px`,
|
|
31
31
|
overrideBorderStyle: 'ROUNDED',
|
|
32
32
|
});
|
|
33
|
-
return (index.h(index.Host, { key: '
|
|
33
|
+
return (index.h(index.Host, { key: '0feaf20ca1bb493792614216aeace549a3bad708', style: {
|
|
34
34
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
35
|
-
} }, index.h("div", { key: '
|
|
35
|
+
} }, index.h("div", { key: '9a05937c24886d73e52ef2f6bf722869247e133c', class: classes.classes(['styled-card']), style: {
|
|
36
36
|
'--background-color': backgroundColor,
|
|
37
37
|
'--border-radius': borderRadius,
|
|
38
38
|
padding: this.spacing,
|
|
39
|
-
} }, this.label && (index.h("header", { key: '
|
|
39
|
+
} }, this.label && (index.h("header", { key: '862b765cabe5ab5c897db18654b0be0c8ed492f3', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: 'e637d00494ba2ca7d081bd2eebcb825afc4ffa90', type: "subheader" }, this.label), index.h("h-stack", { key: '5174ef0a9f588d9862aca3375a3ad3269cbc0051', spacing: 8 }, this.actions))), index.h("slot", { key: 'b260fa53b675b0465d32deba0daaa13a0eb85ac1' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: '0681bfa581ef37bf0a102eb1dfe9f6fd4c0d88f4', class: "card-footer", style: {
|
|
40
40
|
height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
|
|
41
41
|
padding: this.spacing,
|
|
42
|
-
} }, index.h("div", { key: '
|
|
42
|
+
} }, index.h("div", { key: '65271d4dd4e32a64467be17d10202cad1f302fe4' }, this.footerContent), index.h("h-stack", { key: 'fd1ded15a0caae9a2f781fc0f6fbf59e7768ef37', spacing: 8 }, this.footerActions))))));
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
ZonosCard.style = ZonosCardStyle0;
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-b3f6a451.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const paypal = require('./paypal-
|
|
9
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
+
const paypal = require('./paypal-aab541fd.js');
|
|
9
|
+
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
11
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
11
|
+
const getBorderRadius = require('./getBorderRadius-61ed5601.js');
|
|
12
12
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
13
13
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
14
14
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
15
|
-
const isDarkColor = require('./isDarkColor-
|
|
15
|
+
const isDarkColor = require('./isDarkColor-d206c6fa.js');
|
|
16
16
|
const isColorVariable = require('./isColorVariable-6f5a9608.js');
|
|
17
17
|
const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
|
|
18
18
|
|
|
@@ -1036,7 +1036,7 @@ const turndownService = new TurndownService();
|
|
|
1036
1036
|
* @example
|
|
1037
1037
|
* const htmlInput = "<h1>Hello World</h1><p>This is a paragraph.</p>";
|
|
1038
1038
|
* const result = cleanHtmlMarkdown(htmlInput);
|
|
1039
|
-
* console.
|
|
1039
|
+
* console.info(result); // Outputs cleaned HTML after conversion and processing
|
|
1040
1040
|
*/
|
|
1041
1041
|
const cleanHtmlMarkdown = (htmlString) => {
|
|
1042
1042
|
const mdString = turndownService.turndown(htmlString);
|
|
@@ -1295,6 +1295,14 @@ const ZonosCheckoutFinish = class {
|
|
|
1295
1295
|
}
|
|
1296
1296
|
window.location.href = url;
|
|
1297
1297
|
};
|
|
1298
|
+
/**
|
|
1299
|
+
* It would make more sense to have keep shopping button if the success behavior is not redirecting to a different page
|
|
1300
|
+
*/
|
|
1301
|
+
this.shouldRenderKeepShoppingButton = () => {
|
|
1302
|
+
const { successBehavior } = zonosStore.zonosStore.checkoutSettings;
|
|
1303
|
+
return (successBehavior === 'ZONOS_SUCCESS_PAGE' ||
|
|
1304
|
+
successBehavior === 'CLOSE_MODAL');
|
|
1305
|
+
};
|
|
1298
1306
|
this.handleSuccessBehavior = async () => {
|
|
1299
1307
|
var _a, _b;
|
|
1300
1308
|
/**
|
|
@@ -1529,6 +1537,7 @@ const ZonosCheckoutFinish = class {
|
|
|
1529
1537
|
this.notificationType = 'success';
|
|
1530
1538
|
this.notificationTitle = '';
|
|
1531
1539
|
this.notificationMessages = [];
|
|
1540
|
+
this.notificationActionText = cart.translate('Keep shopping');
|
|
1532
1541
|
this.order = null;
|
|
1533
1542
|
}
|
|
1534
1543
|
componentDidLoad() {
|
|
@@ -1551,11 +1560,12 @@ const ZonosCheckoutFinish = class {
|
|
|
1551
1560
|
}
|
|
1552
1561
|
render() {
|
|
1553
1562
|
const isTestMode = createCustomEvent.getIsTestMode();
|
|
1554
|
-
return (index.h(index.Host, { key: '
|
|
1563
|
+
return (index.h(index.Host, { key: 'c951a9a8fac681e50d9741b8bfef09e10e1e6b9b', class: "zonos--checkout-finish zonos--elements", style: {
|
|
1555
1564
|
'--border-radius': getBorderRadius.getBorderRadius({
|
|
1556
1565
|
overrideBorderStyle: this.borderRadius,
|
|
1557
1566
|
}),
|
|
1558
|
-
} }, !this.isLoading && (index.h("div", { key: '
|
|
1567
|
+
} }, !this.isLoading && (index.h("div", { key: 'b6d10fa322320f30c0ff702f256f32b6acb69af5', class: "zonos--finish-details" }, index.h("div", { key: '8c3801345cb72d8c9addcea1577e4480640c4ae9', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '89a874b1f1d1b325cda6d6f8e5863c10867c6161', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: 'ed3410d00f0215bcfaf53e15bb5c6f6e0d923c65', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), !window.Zonos.isLegacyCheckout &&
|
|
1568
|
+
this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: 'adfd0912e7e7f59284488163f500c3d07453bc4b', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cart.cartStore.step === 'finish' && (index.h("div", { key: '2f9c5db57935e99531189a29a5471b26d963e646', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: 'ebcebeabea725bbbec030cfde621ab54c7263f53', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: 'f52f574517b536a7586d2fea92fc66b22996b8ed', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
|
|
1559
1569
|
}
|
|
1560
1570
|
static get assetsDirs() { return ["assets"]; }
|
|
1561
1571
|
};
|
|
@@ -1603,10 +1613,10 @@ const ZonosCheckoutFooter = class {
|
|
|
1603
1613
|
const languageLabel = (_a = ILanguage.languages.find(x => x.code === cart.localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
1604
1614
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
1605
1615
|
const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
|
|
1606
|
-
return (index.h(index.Host, { key: '
|
|
1616
|
+
return (index.h(index.Host, { key: '43ce81796f2534226d03420dbaa8d8d37161f64a', class: classes.classes(['zonos--elements', this.isMobile && 'mobile']) }, index.h("div", { key: 'c20e95a6ad27bccc7b23ae14ce9bea9319327dd4', class: "zonos--checkout-footer" }, index.h("div", { key: 'fa95241196ab3fff6c6520cbe083199a418f1f6c', class: "zonos--checkout-locale-wrapper" }, index.h("zonos-button", { key: '7c12428aa768eb81a9ecec798575109be5811a2c', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), index.h("div", { key: '4615354c98cd5617343db83743e4d177d893f712', class: classes.classes([
|
|
1607
1617
|
'zonos--checkout-footer-dialog',
|
|
1608
1618
|
this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
|
|
1609
|
-
]) }, index.h("zonos-language-select", { key: '
|
|
1619
|
+
]) }, index.h("zonos-language-select", { key: '35b0c80d3b20167991391f336d0eda178857047c', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: '333f9da8e9aeb6286e52145630ec7e9ec8aabff6', class: "zonos--checkout-footer-icon-wrapper" }, index.h("a", { key: 'b6de914d3f4886151e5b780de7f517e158e83173', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: 'b6aba4130c0f1f22dd6644002f752630d3d8524f', textColor: colorDesktop }, "Privacy policy")), index.h("div", { key: 'b44e2b03aa2e156076f27737be4d82dd62a98f0b', class: "zonos--checkout-footer-logo" }, index.h("zonos-text", { key: '22cee8f4bdc69c38a9f5ab5affaaf9fd23fe70e3', textColor: colorDesktop }, "Powered by"), index.h("a", { key: '87fe092647de1fcc9ac6e3bf3ff00b9014f67560', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: 'b35efd69f13b4623ef40f42b12f83a8a9506f725', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 })))))));
|
|
1610
1620
|
}
|
|
1611
1621
|
get el() { return index.getElement(this); }
|
|
1612
1622
|
static get watchers() { return {
|
|
@@ -1775,17 +1785,17 @@ const ZonosCheckoutProgressTabs = class {
|
|
|
1775
1785
|
color: labelSelectedColor,
|
|
1776
1786
|
})
|
|
1777
1787
|
: labelSelectedColor;
|
|
1778
|
-
return (index.h(index.Host, { key: '
|
|
1788
|
+
return (index.h(index.Host, { key: '6f1797cd7dbaf99d72cdb61041c780d0635d9dc0', class: "zonos--elements", style: {
|
|
1779
1789
|
'--color': contrastLabelColor,
|
|
1780
1790
|
'--progress-percent': this.getTotalSuccessStep(),
|
|
1781
|
-
} }, index.h("div", { key: '
|
|
1791
|
+
} }, index.h("div", { key: '8eb4ef12ed76f9e14a68b6dfe589b0f10bd3fc3b', class: "zonos--tab-wrapper" }, Object.values(cart.cartStore.tabItems).map((tab, index$1) => {
|
|
1782
1792
|
const isSelected = tab.value === selectedStep;
|
|
1783
1793
|
return (index.h("button", { class: classes.classes([
|
|
1784
1794
|
'zonos--tab-item',
|
|
1785
1795
|
tab.value === selectedStep && 'selected',
|
|
1786
1796
|
tab.isDone && 'done',
|
|
1787
1797
|
]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => (cart.cartStore.step = tab.value) }, index.h("div", { class: "zonos--tab-index" }, index.h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index$1 + 1), index.h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), index.h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, cart.translate(tab.label))));
|
|
1788
|
-
})), index.h("div", { key: '
|
|
1798
|
+
})), index.h("div", { key: 'fa2d07af26eb4c50ecb06ec685cbf0eddc54be98', class: "zonos--tab-progress" }, index.h("div", { key: 'af86726d61e8db32f95a84758ace851e7297d013', class: "zonos--progress-bar-fill" }))));
|
|
1789
1799
|
}
|
|
1790
1800
|
static get assetsDirs() { return ["assets"]; }
|
|
1791
1801
|
get ele() { return index.getElement(this); }
|
|
@@ -1887,13 +1897,13 @@ const ZonosConfirmDialog = class {
|
|
|
1887
1897
|
const borderStyle = getBorderRadius.getBorderRadius();
|
|
1888
1898
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
1889
1899
|
const theme = zonosStore.getZonosStoreTheme(zonosStore.zonosStore.appearance.theme);
|
|
1890
|
-
return (index.h(index.Host, { key: '
|
|
1900
|
+
return (index.h(index.Host, { key: 'ba14f47b129207062edf7eca1f9fc5b71d689e4a', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
|
|
1891
1901
|
'--border-radius': borderStyle,
|
|
1892
1902
|
'--dialog-width': `${this.dialogWidth}px`,
|
|
1893
1903
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
1894
|
-
} }, index.h("div", { key: '
|
|
1904
|
+
} }, index.h("div", { key: 'b9eb2237cc834e23ce3b60bf2f99ad5c4d0b4ebf', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: '45b67c5a79955b579f0488f239f79a78d448482f', "aria-hidden": "true", class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: '8aae5e6df9242f84fc225e687563db7aabc1751b', class: "zonos--confirm-dialog", onBlur: () => {
|
|
1895
1905
|
this.focusDialog();
|
|
1896
|
-
} }, index.h("div", { key: '
|
|
1906
|
+
} }, index.h("div", { key: '7a1eb45d4e015a9cd1ebb7acc9fe28917153bd53', class: "wrapper" }, index.h("div", { key: 'd145883d1ff60117e800e4238e3f011e43173246', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: '9a93b028b1d282f1d6fde264773a0f4a4d62326c', class: "content" }, index.h("div", { key: '92573585e3689e4fffa60d904199999e0bfa8216', class: "title" }, index.h("zonos-text", { key: 'eaf1f349f478f577edc6884cf9824b74d86dcbb7', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: 'aa3df64ec40031fd7599972a454cab232f57c7b9', class: "subtitle" }, index.h("zonos-text", { key: 'ea802033d7faf3bcd2a9c682dcdcd6588d3c9970', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: 'fb814639b9bbf9f284cf2def17d75ead8270c06f', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: 'fa1597ca8c4cd999c23229d0097e5c264844b8d1', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || cart.translate('Cancel'))), index.h("zonos-button", { key: '78be0072def6bfa88a7482d3f7bbd5df53450f3d', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
|
|
1897
1907
|
}
|
|
1898
1908
|
static get assetsDirs() { return ["assets"]; }
|
|
1899
1909
|
get el() { return index.getElement(this); }
|
|
@@ -2147,11 +2157,11 @@ const ZonosRestState = class {
|
|
|
2147
2157
|
}
|
|
2148
2158
|
render() {
|
|
2149
2159
|
const imageUrl = this.getImageRestState();
|
|
2150
|
-
return (index.h(index.Host, { key: '
|
|
2160
|
+
return (index.h(index.Host, { key: 'c6b1e581578da852f6ff852c0c8ff48eba97c82b', class: classes.classes(['zonos--elements zonos--restState']), style: {
|
|
2151
2161
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
2152
|
-
} }, index.h("div", { key: '
|
|
2162
|
+
} }, index.h("div", { key: '3c9bb31ade1e3343901fbb22bef5a123b3332a77', class: "zonos--restState-image" }, index.h("img", { key: '00417c062265b35f8603d90520f5efe677b76b19', alt: this.restStateType, onError: () => {
|
|
2153
2163
|
this.isErrorImageLoad = true;
|
|
2154
|
-
}, src: imageUrl })), index.h("div", { key: '
|
|
2164
|
+
}, src: imageUrl })), index.h("div", { key: '503346f06d25e04a1bc1bbfb770359817854cd64', class: "content" }, index.h("zonos-text", { key: 'eb580484efd22fd93530d43d04889569ced27fba', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '34972cd05b26b01b1e7877a80b79d6729b63b025', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: '703bfa3740b94e7d742804cd073347ba5f6a8855', class: "action" }, index.h("slot", { key: 'd0b330b60ad98bda20d35cc6802412d24ab6c536' }))));
|
|
2155
2165
|
}
|
|
2156
2166
|
static get assetsDirs() { return ["assets"]; }
|
|
2157
2167
|
};
|
|
@@ -2252,10 +2262,7 @@ const ZonosShipping = class {
|
|
|
2252
2262
|
}
|
|
2253
2263
|
this.isSelecting = true;
|
|
2254
2264
|
// save selected shipping option to store
|
|
2255
|
-
|
|
2256
|
-
if (!updateStatus) {
|
|
2257
|
-
return;
|
|
2258
|
-
}
|
|
2265
|
+
await cart.cartStoreUpdateSelectedShippingOption(selectedShippingOption, e.detail.landedCostId);
|
|
2259
2266
|
this.isSelecting = false;
|
|
2260
2267
|
};
|
|
2261
2268
|
this.handleValidate = () => {
|
|
@@ -2402,13 +2409,13 @@ const ZonosShipping = class {
|
|
|
2402
2409
|
if (this.showErrorBanner) {
|
|
2403
2410
|
this.showErrorBanner = !this.handleValidate();
|
|
2404
2411
|
}
|
|
2405
|
-
return (index.h(index.Host, { key: '
|
|
2412
|
+
return (index.h(index.Host, { key: '1a4721f877f6ec6a82cf3d280f73d6c0beb093d2', class: "zonos--shipping zonos--elements" }, index.h("div", { key: '97477ecd56c30af140aa5797dc60ff9c27500f8c', class: "zonos--group" }, index.h("zonos-text", { key: '3041eae048928c7a48d0449015043f4e3ba84579', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { key: '045c89abf1610df69d9bdac288d235705a325fa5', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: 'ccb50e1734d2ab81363ace6fd35071ac760d85bf', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.translate('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.'), class: "zonos--shipping-method-error", intent: "error" })) : (index.h("div", { class: "zonos--shipping-options-wrapper" }, index.h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
|
|
2406
2413
|
!!this.serviceLevelsDAP.length && (index.h("button", { class: classes.classes([
|
|
2407
2414
|
'zonos--shipping-options-collapse-trigger',
|
|
2408
2415
|
this.collapsedDAPOptions && 'collapsed',
|
|
2409
2416
|
]), onClick: () => {
|
|
2410
2417
|
this.collapsedDAPOptions = !this.collapsedDAPOptions;
|
|
2411
|
-
} }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: '
|
|
2418
|
+
} }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: 'adf857b2d728ae34da27be04f67547fba42e26c0', class: "zonos--group-btn" }, index.h("zonos-button", { key: '5d8dec320202c3f43ea598f2183631b04da0dd7f', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
|
|
2412
2419
|
// use primary type when on mobile mode
|
|
2413
2420
|
variant: this.submitBtnType }, cart.translate('Go to payment'))))));
|
|
2414
2421
|
}
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-b3f6a451.js');
|
|
7
|
+
const paypal = require('./paypal-aab541fd.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
9
9
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
10
10
|
const createCustomEvent = require('./createCustomEvent-3e982e57.js');
|
|
11
11
|
const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
|
|
12
12
|
const classes = require('./classes-b7918f56.js');
|
|
13
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
14
|
-
const isDarkColor = require('./isDarkColor-
|
|
15
|
-
const CheckoutConfig = require('./CheckoutConfig-
|
|
13
|
+
const getBorderRadius = require('./getBorderRadius-61ed5601.js');
|
|
14
|
+
const isDarkColor = require('./isDarkColor-d206c6fa.js');
|
|
15
|
+
const CheckoutConfig = require('./CheckoutConfig-f2622b6b.js');
|
|
16
16
|
const RemoveIcon = require('./RemoveIcon-081ac073.js');
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -390,7 +390,18 @@ const ZonosCheckout = class {
|
|
|
390
390
|
countryCode: cart.localizationStore.selectedCountryCode,
|
|
391
391
|
currencyCode: cart.localizationStore.targetCurrency,
|
|
392
392
|
});
|
|
393
|
-
|
|
393
|
+
// Remove negative line items and move them to adjustments here, this is only for the deprecated `buildCartDetail` where negative line items are just treated as global discount amounts. It is up to the caller to create the right discount line items.
|
|
394
|
+
const cartItemsFiltered = cartItems.filter(item => item.amount >= 0);
|
|
395
|
+
const negativeItems = cartItems.filter(item => item.amount < 0);
|
|
396
|
+
const adjustments = negativeItems.map(item => ({
|
|
397
|
+
amount: item.amount,
|
|
398
|
+
currencyCode: item.currencyCode,
|
|
399
|
+
description: item.name || item.description || '',
|
|
400
|
+
productId: item.productId || null,
|
|
401
|
+
sku: item.sku || null,
|
|
402
|
+
type: 'CART_TOTAL',
|
|
403
|
+
}));
|
|
404
|
+
await cart.cartStoreUpdateItems({ adjustments, cartItems: cartItemsFiltered });
|
|
394
405
|
}
|
|
395
406
|
// if client secret doesn't exist, request a new one.
|
|
396
407
|
if (!cart.stripeStore.clientSecret) {
|
|
@@ -862,7 +873,7 @@ const ZonosCheckout = class {
|
|
|
862
873
|
cart.cartStore.step !== 'error' &&
|
|
863
874
|
!cart.stripeStore.stripeElements) ||
|
|
864
875
|
cart.stripeStore.isFetchingSession;
|
|
865
|
-
const { colorPrimary, colorSecondary, logoUrl, style } = zonosStore.mergeConfig(zonosStore.zonosStore.appearance, this.appearanceSettingsOverride);
|
|
876
|
+
const { colorPrimary, colorSecondary, logoUrl, style } = zonosStore.mergeConfig(zonosStore.zonosStore.appearance, this.appearanceSettingsOverride || null);
|
|
866
877
|
const hasFooter = zonosStore.zonosStore.appearance.zonosAttribution === 'ENABLED';
|
|
867
878
|
const rightSideTheme = zonosStore.zonosStore.appearance.theme;
|
|
868
879
|
const themePrimaryColorBased = colorPrimary && isDarkColor.isDarkColor(colorPrimary) ? 'DARK' : 'LIGHT';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
7
7
|
|
|
8
8
|
const zonosCollapseCss = ":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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
|
|
9
9
|
const ZonosCollapseStyle0 = zonosCollapseCss;
|
|
@@ -50,10 +50,10 @@ const ZonosCollapse = class {
|
|
|
50
50
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
51
51
|
this.el.style.overflow = 'hidden';
|
|
52
52
|
}
|
|
53
|
-
return (index.h(index.Host, { key: '
|
|
53
|
+
return (index.h(index.Host, { key: '514e75d41d29d70b4ca60230288ae183200b1e12', class: 'zonos--elements zonos--collapse', style: {
|
|
54
54
|
'--font-family': zonosStore.zonosStoreFontFamily(),
|
|
55
55
|
height: this.getElementHeight(),
|
|
56
|
-
} }, index.h("div", { key: '
|
|
56
|
+
} }, index.h("div", { key: '068aee1d13bde4c83ea8582b34844da7452c907c' }, index.h("iframe", { key: 'b22fd8ad898a098c244cb817dc6951854505efca', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: 'b54783376005085e379c7b8d43218ead1bf8e8ac' }))));
|
|
57
57
|
}
|
|
58
58
|
get el() { return index.getElement(this); }
|
|
59
59
|
};
|
|
@@ -22,7 +22,7 @@ const ZonosComponent = class {
|
|
|
22
22
|
return format(this.first, this.middle, this.last);
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return index.h("div", { key: '
|
|
25
|
+
return index.h("div", { key: 'ece01ba1df61d0c15e60d2cf9fffbf4c01268612' }, "Hello, World! I'm ", this.getText());
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
ZonosComponent.style = ZonosComponentStyle0;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-b3f6a451.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
8
8
|
const handleFetch = require('./handleFetch-aa729c61.js');
|
|
9
|
-
require('./isDarkColor-
|
|
10
|
-
require('./getBorderRadius-
|
|
9
|
+
require('./isDarkColor-d206c6fa.js');
|
|
10
|
+
require('./getBorderRadius-61ed5601.js');
|
|
11
11
|
|
|
12
12
|
const getZonosSettings = async () => {
|
|
13
13
|
const { errors, json, zonosMode } = await handleFetch.handleFetch('/api/zonos-elements/zonos-settings');
|
|
@@ -52,6 +52,20 @@ const injectHelloComponent = (anchorElementSelector) => {
|
|
|
52
52
|
}
|
|
53
53
|
return false;
|
|
54
54
|
};
|
|
55
|
+
const convertPosition = (position) => {
|
|
56
|
+
switch (position) {
|
|
57
|
+
case 'BOTTOM_RIGHT':
|
|
58
|
+
return 'bottom-right';
|
|
59
|
+
case 'BOTTOM_LEFT':
|
|
60
|
+
return 'bottom-left';
|
|
61
|
+
case 'TOP_LEFT':
|
|
62
|
+
return 'top-left';
|
|
63
|
+
case 'TOP_RIGHT':
|
|
64
|
+
return 'top-right';
|
|
65
|
+
default:
|
|
66
|
+
return 'bottom-right';
|
|
67
|
+
}
|
|
68
|
+
};
|
|
55
69
|
/**
|
|
56
70
|
* Injects the hello mobile wrapper to the DOM and returns the anchor element selector
|
|
57
71
|
* @returns anchor element selector
|
|
@@ -127,6 +141,15 @@ const initHello = async (helloSettings) => {
|
|
|
127
141
|
// inject hello to mobile anchor if hello is still not found
|
|
128
142
|
injectHelloComponent(helloAnchor);
|
|
129
143
|
}, 1000);
|
|
144
|
+
setTimeout(() => {
|
|
145
|
+
if (helloSettings.notFoundElementFallback) {
|
|
146
|
+
handleFetch.log(`Hello anchor selector ${helloSettings.anchorElementSelector} not found after 3 seconds, falling back to 'notFoundElementFallback': ${helloSettings.notFoundElementFallback}`, 'info');
|
|
147
|
+
const defaultAnchor = injectDefaultWrapper({
|
|
148
|
+
position: convertPosition(helloSettings.notFoundElementFallback),
|
|
149
|
+
});
|
|
150
|
+
injectHelloComponent(defaultAnchor);
|
|
151
|
+
}
|
|
152
|
+
}, 3000);
|
|
130
153
|
}
|
|
131
154
|
};
|
|
132
155
|
|
|
@@ -332,7 +355,7 @@ const ZonosController = class {
|
|
|
332
355
|
zonosStore.zonosStore.organizationName = organizationName;
|
|
333
356
|
}
|
|
334
357
|
render() {
|
|
335
|
-
return index.h(index.Host, { key: '
|
|
358
|
+
return index.h(index.Host, { key: '8e6c4a23893a1d3913d996a62bd14fd000612e42', class: "zonos--elements" });
|
|
336
359
|
}
|
|
337
360
|
};
|
|
338
361
|
ZonosController.style = ZonosControllerStyle0;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-d56e0a8b.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-b3f6a451.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-e12d459c.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-aa729c61.js');
|
|
10
|
-
require('./isDarkColor-
|
|
11
|
-
require('./getBorderRadius-
|
|
10
|
+
require('./isDarkColor-d206c6fa.js');
|
|
11
|
+
require('./getBorderRadius-61ed5601.js');
|
|
12
12
|
|
|
13
13
|
const zonosCountryFlagCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
|
|
14
14
|
const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
|