@zonos/elements 1.3.204 → 1.3.206
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/{cart-0d91ad0b.js → cart-3d961c6e.js} +6 -5
- package/dist/cjs/{debounce-94e1b7ff.js → debounce-0b9c0f8a.js} +1 -1
- package/dist/cjs/{getBorderRadius-8d3b1049.js → getBorderRadius-c424eb05.js} +1 -1
- package/dist/cjs/{index-0993f42d.js → index-1c710d00.js} +455 -377
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{isDarkColor-bcf49625.js → isDarkColor-35e8daec.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-2f17c95f.js → localization-ff33875b.js} +421 -182
- package/dist/cjs/{paypal-9953115b.js → paypal-dee5c109.js} +4 -4
- package/dist/cjs/zonos-address_11.cjs.entry.js +273 -121
- package/dist/cjs/zonos-badge.cjs.entry.js +26 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +6 -5
- package/dist/cjs/zonos-button_3.cjs.entry.js +89 -24
- package/dist/cjs/zonos-card.cjs.entry.js +10 -9
- package/dist/cjs/zonos-cart-items_14.cjs.entry.js +193 -74
- package/dist/cjs/zonos-checkout.cjs.entry.js +90 -35
- package/dist/cjs/zonos-collapse.cjs.entry.js +8 -2
- package/dist/cjs/zonos-component.cjs.entry.js +10 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -8
- package/dist/cjs/zonos-country-flag.cjs.entry.js +8 -4
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +52 -24
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +11 -10
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +102 -36
- package/dist/cjs/zonos-hello.cjs.entry.js +29 -17
- package/dist/cjs/zonos-input.cjs.entry.js +18 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +15 -4
- package/dist/cjs/zonos-link.cjs.entry.js +4 -4
- package/dist/cjs/zonos-logo.cjs.entry.js +8 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +8 -8
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +25 -9
- package/dist/cjs/zonos-text.cjs.entry.js +11 -4
- package/dist/cjs/zonos-toggle.cjs.entry.js +5 -3
- package/dist/cjs/zonos-tooltip.cjs.entry.js +7 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +6 -2
- package/dist/cjs/{zonosStore-9264749e.js → zonosStore-7c1e1bc1.js} +4 -5
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +0 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +24 -13
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +6 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +14 -10
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +25 -9
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +83 -28
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +54 -17
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +8 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +20 -12
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +24 -2
- package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +69 -18
- package/dist/collection/components/common/zonos-card/zonos-card.js +7 -6
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +15 -2
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +8 -2
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +6 -0
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +34 -9
- package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +5 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +6 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +6 -0
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +48 -14
- package/dist/collection/components/common/zonos-icon/zonos-icon.js +12 -1
- package/dist/collection/components/common/zonos-input/zonos-input.js +15 -1
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +5 -1
- package/dist/collection/components/common/zonos-link/zonos-link.js +3 -3
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +7 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +6 -0
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +4 -4
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +7 -0
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +5 -5
- package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +21 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +19 -14
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +37 -12
- package/dist/collection/components/common/zonos-text/zonos-text.js +9 -2
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +3 -1
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +6 -0
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +4 -0
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -7
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +9 -0
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +25 -13
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +8 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +0 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +98 -32
- package/dist/collection/components/main/zonos-controller.js +0 -4
- package/dist/collection/components/store/checkout/stripe.js +2 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +21 -9
- package/dist/collection/components/store/translationStore/strings.base.js +21 -10
- package/dist/collection/components/store/translationStore/strings.chinese.js +21 -9
- package/dist/collection/components/store/translationStore/strings.danish.js +21 -9
- package/dist/collection/components/store/translationStore/strings.dutch.js +21 -9
- package/dist/collection/components/store/translationStore/strings.french.js +21 -9
- package/dist/collection/components/store/translationStore/strings.german.js +21 -9
- package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -9
- package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -9
- package/dist/collection/components/store/translationStore/strings.italian.js +21 -9
- package/dist/collection/components/store/translationStore/strings.japanese.js +21 -9
- package/dist/collection/components/store/translationStore/strings.korean.js +21 -9
- package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -9
- package/dist/collection/components/store/translationStore/strings.polish.js +21 -9
- package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -9
- package/dist/collection/components/store/translationStore/strings.russian.js +21 -9
- package/dist/collection/components/store/translationStore/strings.spanish.js +21 -9
- package/dist/collection/components/store/translationStore/strings.swedish.js +21 -9
- package/dist/collection/components/store/translationStore/strings.turkish.js +21 -9
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -9
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +21 -8
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +13 -5
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +73 -33
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +11 -6
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -2
- package/dist/esm/{cart-db61eb95.js → cart-5835676d.js} +7 -6
- package/dist/esm/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
- package/dist/esm/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
- package/dist/esm/{index-a457c60c.js → index-5ea9f81d.js} +455 -377
- package/dist/esm/index.js +7 -7
- package/dist/esm/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/{localization-bf7224aa.js → localization-4c7f64e8.js} +421 -182
- package/dist/esm/{paypal-2e0ffb07.js → paypal-b4f106be.js} +4 -4
- package/dist/esm/zonos-address_11.entry.js +273 -121
- package/dist/esm/zonos-badge.entry.js +26 -4
- package/dist/esm/zonos-banner.entry.js +6 -5
- package/dist/esm/zonos-button_3.entry.js +89 -24
- package/dist/esm/zonos-card.entry.js +10 -9
- package/dist/esm/zonos-cart-items_14.entry.js +193 -74
- package/dist/esm/zonos-checkout.entry.js +90 -35
- package/dist/esm/zonos-collapse.entry.js +8 -2
- package/dist/esm/zonos-component.entry.js +10 -1
- package/dist/esm/zonos-controller.entry.js +6 -8
- package/dist/esm/zonos-country-flag.entry.js +8 -4
- package/dist/esm/zonos-country-select_4.entry.js +52 -24
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-empty-state-payment_4.entry.js +11 -10
- package/dist/esm/zonos-hello-dialog.entry.js +102 -36
- package/dist/esm/zonos-hello.entry.js +29 -17
- package/dist/esm/zonos-input.entry.js +18 -4
- package/dist/esm/zonos-language-select_2.entry.js +15 -4
- package/dist/esm/zonos-link.entry.js +4 -4
- package/dist/esm/zonos-logo.entry.js +8 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +8 -8
- package/dist/esm/zonos-stripe-input.entry.js +25 -9
- package/dist/esm/zonos-text.entry.js +11 -4
- package/dist/esm/zonos-toggle.entry.js +5 -3
- package/dist/esm/zonos-tooltip.entry.js +7 -1
- package/dist/esm/zonos-v-stack.entry.js +6 -2
- package/dist/esm/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +4 -5
- package/dist/esm-es5/{cart-db61eb95.js → cart-5835676d.js} +1 -1
- package/dist/esm-es5/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
- package/dist/esm-es5/index-5ea9f81d.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-4c7f64e8.js +1 -0
- package/dist/esm-es5/{paypal-2e0ffb07.js → paypal-b4f106be.js} +1 -1
- package/dist/esm-es5/zonos-address_11.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_14.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-empty-state-payment_4.entry.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-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.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-d10a829f.js → zonosStore-1e015fa5.js} +1 -1
- 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/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.base.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.french.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.german.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -6
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -6
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-019f8637.entry.js +1 -0
- package/dist/zonos-elements/p-02da743b.system.js +2 -0
- package/dist/zonos-elements/p-051e0e48.entry.js +1 -0
- package/dist/zonos-elements/p-0c4c8d63.entry.js +1 -0
- package/dist/zonos-elements/p-12cd9d3a.entry.js +1 -0
- package/dist/zonos-elements/{p-d42dfd32.system.js → p-1327b935.system.js} +1 -1
- package/dist/zonos-elements/p-1640d77f.js +2 -0
- package/dist/zonos-elements/{p-3d82a352.js → p-16678764.js} +1 -1
- package/dist/zonos-elements/{p-c291bac1.entry.js → p-18149db1.entry.js} +1 -1
- package/dist/zonos-elements/{p-db025dfc.system.entry.js → p-1ad099ec.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c5fcbc92.system.entry.js → p-1bc09abe.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d46349d3.system.entry.js → p-22cb6880.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cdd3087f.system.entry.js → p-265af369.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9aa902e.system.entry.js → p-2866fd29.system.entry.js} +1 -1
- package/dist/zonos-elements/p-30778fde.system.entry.js +1 -0
- package/dist/zonos-elements/p-3196bf98.entry.js +1 -0
- package/dist/zonos-elements/p-3505e4c4.entry.js +1 -0
- package/dist/zonos-elements/p-3a50124e.entry.js +1 -0
- package/dist/zonos-elements/p-3afc27ef.entry.js +1 -0
- package/dist/zonos-elements/{p-ea6d87a1.system.js → p-3ee44728.system.js} +1 -1
- package/dist/zonos-elements/p-41c1d7c4.entry.js +1 -0
- package/dist/zonos-elements/p-42a9557f.entry.js +1 -0
- package/dist/zonos-elements/{p-f8d0d488.system.entry.js → p-469ccc66.system.entry.js} +1 -1
- package/dist/zonos-elements/p-47e2cd31.entry.js +1 -0
- package/dist/zonos-elements/p-4a3bb31d.entry.js +1 -0
- package/dist/zonos-elements/{p-26a634a5.system.entry.js → p-4cb8b87f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4e9c8f9e.system.js +1 -0
- package/dist/zonos-elements/{p-80bbd9c0.system.entry.js → p-4fb88ebc.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-df4c46a6.entry.js → p-5616b304.entry.js} +1 -1
- package/dist/zonos-elements/{p-a9307caa.js → p-658936c9.js} +2 -2
- package/dist/zonos-elements/{p-6b6a9dd6.system.js → p-666164d9.system.js} +1 -1
- package/dist/zonos-elements/{p-3284f459.system.entry.js → p-719e14a8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fbe36bc8.system.entry.js → p-7234f876.system.entry.js} +1 -1
- package/dist/zonos-elements/p-74bcb5cc.entry.js +1 -0
- package/dist/zonos-elements/{p-27987298.system.entry.js → p-7777d85f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-aa1193bc.entry.js → p-848e08e8.entry.js} +1 -1
- package/dist/zonos-elements/{p-ab176281.system.entry.js → p-858b7908.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0693422b.system.js → p-91c996d3.system.js} +1 -1
- package/dist/zonos-elements/{p-851c642e.system.entry.js → p-93aeba62.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9b8a5372.entry.js +1 -0
- package/dist/zonos-elements/{p-cb823c4d.system.js → p-9e9ac7a2.system.js} +1 -1
- package/dist/zonos-elements/p-9fa17353.js +1 -0
- package/dist/zonos-elements/{p-01987cb2.system.entry.js → p-a0f570ea.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a2b55d11.entry.js +1 -0
- package/dist/zonos-elements/p-aafcd40f.system.entry.js +1 -0
- package/dist/zonos-elements/p-abc83d01.entry.js +1 -0
- package/dist/zonos-elements/p-abe218ab.system.entry.js +1 -0
- package/dist/zonos-elements/{p-45ebc788.entry.js → p-b21b0330.entry.js} +1 -1
- package/dist/zonos-elements/{p-488ad646.system.entry.js → p-b50eaeac.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b922c441.system.js +1 -0
- package/dist/zonos-elements/p-ba027b70.system.entry.js +1 -0
- package/dist/zonos-elements/p-bab19e2a.entry.js +1 -0
- package/dist/zonos-elements/p-c4e0f49a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c50b3100.system.js → p-c666d557.system.js} +1 -1
- package/dist/zonos-elements/{p-f891d470.entry.js → p-c988cf84.entry.js} +1 -1
- package/dist/zonos-elements/{p-6a71f76b.system.js → p-d5f7f7e6.system.js} +1 -1
- package/dist/zonos-elements/p-dbd23bea.entry.js +1 -0
- package/dist/zonos-elements/p-e0587eeb.entry.js +1 -0
- package/dist/zonos-elements/{p-72f37935.js → p-e337fa88.js} +1 -1
- package/dist/zonos-elements/{p-d6a10007.entry.js → p-e5152c04.entry.js} +1 -1
- package/dist/zonos-elements/p-ea88baa9.system.entry.js +1 -0
- package/dist/zonos-elements/p-eb2560b6.system.entry.js +1 -0
- package/dist/zonos-elements/{p-452070af.system.entry.js → p-eca09508.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e26c9e83.js → p-ed20f2f7.js} +1 -1
- package/dist/zonos-elements/p-edcfb3a3.js +1 -0
- package/dist/zonos-elements/{p-be5afc91.system.entry.js → p-f4d741de.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5c74e5c9.system.entry.js → p-f8bfc320.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d99d9e00.js → p-f9664811.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +50 -40
- package/dist/esm-es5/index-a457c60c.js +0 -2
- package/dist/esm-es5/localization-bf7224aa.js +0 -1
- package/dist/zonos-elements/p-04b43dd5.entry.js +0 -1
- package/dist/zonos-elements/p-06f25f75.entry.js +0 -1
- package/dist/zonos-elements/p-0944fe64.entry.js +0 -1
- package/dist/zonos-elements/p-0c62cfb3.entry.js +0 -1
- package/dist/zonos-elements/p-1dcdb65f.system.entry.js +0 -1
- package/dist/zonos-elements/p-25970cb8.system.entry.js +0 -1
- package/dist/zonos-elements/p-43633269.system.js +0 -2
- package/dist/zonos-elements/p-4b5197e7.system.entry.js +0 -1
- package/dist/zonos-elements/p-4c81112f.entry.js +0 -1
- package/dist/zonos-elements/p-4efa8187.js +0 -1
- package/dist/zonos-elements/p-5170bc41.entry.js +0 -1
- package/dist/zonos-elements/p-5d0f7364.system.js +0 -1
- package/dist/zonos-elements/p-715d0f59.system.entry.js +0 -1
- package/dist/zonos-elements/p-7ae5cd60.entry.js +0 -1
- package/dist/zonos-elements/p-8d870d4c.entry.js +0 -1
- package/dist/zonos-elements/p-9af5e93a.entry.js +0 -1
- package/dist/zonos-elements/p-bc8bda92.entry.js +0 -1
- package/dist/zonos-elements/p-c137dc82.js +0 -2
- package/dist/zonos-elements/p-c3d2422e.entry.js +0 -1
- package/dist/zonos-elements/p-c66fc4e5.system.entry.js +0 -1
- package/dist/zonos-elements/p-c767242b.entry.js +0 -1
- package/dist/zonos-elements/p-cf6ae7dc.entry.js +0 -1
- package/dist/zonos-elements/p-d2165441.system.entry.js +0 -1
- package/dist/zonos-elements/p-dcd6acd4.system.entry.js +0 -1
- package/dist/zonos-elements/p-dd1cfa74.entry.js +0 -1
- package/dist/zonos-elements/p-dfd1ba1d.entry.js +0 -1
- package/dist/zonos-elements/p-e68d5219.entry.js +0 -1
- package/dist/zonos-elements/p-ef3e05e5.system.js +0 -1
- package/dist/zonos-elements/p-f255e822.js +0 -1
- package/dist/zonos-elements/p-f29edb65.entry.js +0 -1
- package/dist/zonos-elements/p-f655ec36.entry.js +0 -1
- package/dist/zonos-elements/p-fcc2e712.entry.js +0 -1
|
@@ -17,30 +17,55 @@ export class ZonosStripeSelect {
|
|
|
17
17
|
*/
|
|
18
18
|
this.inheritedAttributes = {};
|
|
19
19
|
this.selectId = `zonos--select-${++selectId}`;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
this.selectChange.emit('');
|
|
24
|
-
this.el.selectedValue = '';
|
|
25
|
-
this.el.dispatchEvent(new Event('change'));
|
|
26
|
-
};
|
|
27
|
-
this.name = undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Selected value of the select
|
|
22
|
+
*/
|
|
28
23
|
this.selectedValue = '';
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Disables the select
|
|
26
|
+
*/
|
|
32
27
|
this.isDisabled = false;
|
|
28
|
+
/**
|
|
29
|
+
* Error state of the select
|
|
30
|
+
*/
|
|
33
31
|
this.isError = false;
|
|
32
|
+
/**
|
|
33
|
+
* Error message of the select
|
|
34
|
+
*/
|
|
34
35
|
this.error = '';
|
|
36
|
+
/**
|
|
37
|
+
* Placeholder for the select
|
|
38
|
+
*/
|
|
35
39
|
this.selectPlaceholder = '';
|
|
40
|
+
/**
|
|
41
|
+
* Options for the select. Must be set using a query selector.
|
|
42
|
+
*/
|
|
36
43
|
this.options = [];
|
|
44
|
+
/**
|
|
45
|
+
* The autoComplete attribute for the select.
|
|
46
|
+
*/
|
|
37
47
|
this.autoComplete = '';
|
|
48
|
+
/**
|
|
49
|
+
* The value of the select.
|
|
50
|
+
*/
|
|
38
51
|
this.value = '';
|
|
52
|
+
/**
|
|
53
|
+
* Whether the select is required
|
|
54
|
+
*/
|
|
39
55
|
this.required = false;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the select can be cleared
|
|
58
|
+
*/
|
|
40
59
|
this.isClearable = false;
|
|
41
|
-
this.minWidth = undefined;
|
|
42
60
|
this.internalValue = this.selectedValue;
|
|
43
61
|
this.internalOptions = this.options;
|
|
62
|
+
this.handleClear = (e) => {
|
|
63
|
+
e.stopPropagation();
|
|
64
|
+
this.internalValue = '';
|
|
65
|
+
this.selectChange.emit('');
|
|
66
|
+
this.el.selectedValue = '';
|
|
67
|
+
this.el.dispatchEvent(new Event('change'));
|
|
68
|
+
};
|
|
44
69
|
}
|
|
45
70
|
onOptionsChange(newValue) {
|
|
46
71
|
this.internalOptions = newValue;
|
|
@@ -6,10 +6,17 @@ import { styles } from "../../utils/styles";
|
|
|
6
6
|
import { textOptions, } from "../../../types/styles/Text";
|
|
7
7
|
export class ZonosText {
|
|
8
8
|
constructor() {
|
|
9
|
+
/**
|
|
10
|
+
* The icon element to display
|
|
11
|
+
*/
|
|
9
12
|
this.textColor = 'gray-1000';
|
|
10
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Type of the text to display
|
|
15
|
+
*/
|
|
11
16
|
this.type = 'body';
|
|
12
|
-
|
|
17
|
+
/**
|
|
18
|
+
* Whether or not the component is ready
|
|
19
|
+
*/
|
|
13
20
|
this.ready = false;
|
|
14
21
|
}
|
|
15
22
|
componentDidRender() {
|
|
@@ -3,8 +3,10 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
|
3
3
|
import { classes } from "../../utils/classes";
|
|
4
4
|
export class ZonosToggle {
|
|
5
5
|
constructor() {
|
|
6
|
+
/**
|
|
7
|
+
* Options for the toggle
|
|
8
|
+
*/
|
|
6
9
|
this.options = [];
|
|
7
|
-
this.value = undefined;
|
|
8
10
|
}
|
|
9
11
|
render() {
|
|
10
12
|
return (h(Host, { key: '9a526e8fee8e4c5af558442c82f7acbc634706c3', class: classes(['zonos--elements zonos--toggle']), style: {
|
|
@@ -2,7 +2,13 @@ import { h, Host } from "@stencil/core";
|
|
|
2
2
|
import { classes } from "../../utils/classes";
|
|
3
3
|
export class ZonosTooltip {
|
|
4
4
|
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* The title of the tooltip
|
|
7
|
+
*/
|
|
5
8
|
this.label = '';
|
|
9
|
+
/**
|
|
10
|
+
* The subtitle of the tooltip
|
|
11
|
+
*/
|
|
6
12
|
this.subtitle = '';
|
|
7
13
|
this.showTooltip = false;
|
|
8
14
|
}
|
|
@@ -4,6 +4,10 @@ import { zonosStoreFontFamily } from "../../store/zonosStore";
|
|
|
4
4
|
import { classes } from "../../utils/classes";
|
|
5
5
|
export class VStack {
|
|
6
6
|
constructor() {
|
|
7
|
+
/**
|
|
8
|
+
* The spacing between elements in the stack
|
|
9
|
+
* @default 24
|
|
10
|
+
*/
|
|
7
11
|
this.spacing = 24;
|
|
8
12
|
}
|
|
9
13
|
render() {
|
|
@@ -6,16 +6,11 @@ import { h, Host } from "@stencil/core";
|
|
|
6
6
|
*/
|
|
7
7
|
export class ZonosVirtualScroll {
|
|
8
8
|
constructor() {
|
|
9
|
+
this.scrollTop = 0;
|
|
10
|
+
this.totalHeight = 1;
|
|
9
11
|
this.scrollListener = (_ev) => {
|
|
10
12
|
this.scrollTop = this.ele.scrollTop;
|
|
11
13
|
};
|
|
12
|
-
this.container = undefined;
|
|
13
|
-
this.renderItem = undefined;
|
|
14
|
-
this.itemWidth = undefined;
|
|
15
|
-
this.fallbackItemHeight = undefined;
|
|
16
|
-
this.itemHeights = undefined;
|
|
17
|
-
this.scrollTop = 0;
|
|
18
|
-
this.totalHeight = 1;
|
|
19
14
|
}
|
|
20
15
|
updateTotalHeight() {
|
|
21
16
|
this.totalHeight = this.itemHeights.reduce((acc, height) => acc + (height || this.fallbackItemHeight), 0);
|
|
@@ -2,8 +2,17 @@ import { h } from "@stencil/core";
|
|
|
2
2
|
import { format } from "../../../utils/format";
|
|
3
3
|
export class ZonosComponent {
|
|
4
4
|
constructor() {
|
|
5
|
+
/**
|
|
6
|
+
* The first name
|
|
7
|
+
*/
|
|
5
8
|
this.first = '';
|
|
9
|
+
/**
|
|
10
|
+
* The middle name
|
|
11
|
+
*/
|
|
6
12
|
this.middle = '';
|
|
13
|
+
/**
|
|
14
|
+
* The last name
|
|
15
|
+
*/
|
|
7
16
|
this.last = '';
|
|
8
17
|
}
|
|
9
18
|
getText() {
|
|
@@ -19,6 +19,31 @@ import { mergeConfig } from "../../utils/mergeConfig";
|
|
|
19
19
|
const PEEK_MESSAGE_CLOSE_DELAY_MS = 3000;
|
|
20
20
|
export class ZonosHello {
|
|
21
21
|
constructor() {
|
|
22
|
+
this.showPeekMessage = false;
|
|
23
|
+
this.zonosStoreHelloSettings = zonosStore.helloSettings;
|
|
24
|
+
this.showDialog = false;
|
|
25
|
+
this.peekMessage = '';
|
|
26
|
+
this.initialUrl = '';
|
|
27
|
+
/**
|
|
28
|
+
* This array will hold all restricted items handled by Hello thus far
|
|
29
|
+
*/
|
|
30
|
+
this.allRestrictedItems = [];
|
|
31
|
+
/**
|
|
32
|
+
* This array will hold all products handled by Hello thus far
|
|
33
|
+
*/
|
|
34
|
+
this.allFoundProducts = [];
|
|
35
|
+
/**
|
|
36
|
+
* This array will hold all products currently on the page
|
|
37
|
+
*/
|
|
38
|
+
this.productsOnPage = [];
|
|
39
|
+
/**
|
|
40
|
+
* Hello widget is rendered on the screen, this should only triggered once
|
|
41
|
+
*/
|
|
42
|
+
this.isHelloWidgetRendered = false;
|
|
43
|
+
/**
|
|
44
|
+
* Determine if the window is mobile
|
|
45
|
+
*/
|
|
46
|
+
this.isMobile = false;
|
|
22
47
|
this.getHelloPeekMessage = (organizationName) => {
|
|
23
48
|
const isRestrictionPage = zonosStore.currentHelloPage === 'productDetail' ||
|
|
24
49
|
zonosStore.currentHelloPage === 'productList';
|
|
@@ -193,19 +218,6 @@ export class ZonosHello {
|
|
|
193
218
|
}
|
|
194
219
|
return showForCountries === null || showForCountries === void 0 ? void 0 : showForCountries.includes(localizationStore.selectedCountryCode || '');
|
|
195
220
|
};
|
|
196
|
-
this.mobileLocationOverride = undefined;
|
|
197
|
-
this.animateFromLeftOverride = undefined;
|
|
198
|
-
this.appearanceSettingsOverride = undefined;
|
|
199
|
-
this.showPeekMessage = false;
|
|
200
|
-
this.zonosStoreHelloSettings = zonosStore.helloSettings;
|
|
201
|
-
this.showDialog = false;
|
|
202
|
-
this.peekMessage = '';
|
|
203
|
-
this.initialUrl = '';
|
|
204
|
-
this.allRestrictedItems = [];
|
|
205
|
-
this.allFoundProducts = [];
|
|
206
|
-
this.productsOnPage = [];
|
|
207
|
-
this.isHelloWidgetRendered = false;
|
|
208
|
-
this.isMobile = false;
|
|
209
221
|
}
|
|
210
222
|
/**
|
|
211
223
|
* Get the country list the hello widget's country select is using
|
|
@@ -8,8 +8,15 @@ import Globe from "./assets/globe.svg";
|
|
|
8
8
|
import ZonosIcon from "./assets/zonosIcon.svg";
|
|
9
9
|
export class ZonosHelloDialogFooter {
|
|
10
10
|
constructor() {
|
|
11
|
-
|
|
11
|
+
/**
|
|
12
|
+
* Whether or not the country select dialog is open
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
12
15
|
this.setShowCountrySelect = () => { };
|
|
16
|
+
/**
|
|
17
|
+
* Whether or not the language select dialog is open
|
|
18
|
+
* @default false
|
|
19
|
+
*/
|
|
13
20
|
this.setShowLanguageSelect = () => { };
|
|
14
21
|
}
|
|
15
22
|
render() {
|
|
@@ -8,6 +8,7 @@ import { currencyFormat } from "../../utils/hello/currencyConversion/currencyFor
|
|
|
8
8
|
import { getHasMoreSpaceAbove } from "../../utils/hello/getHasMoreSpaceAbove";
|
|
9
9
|
import { getHasMoreSpaceOnRight } from "../../utils/hello/getHasMoreSpaceOnRight";
|
|
10
10
|
import { wrapStringWithLink } from "../../utils/wrapStringWithLink";
|
|
11
|
+
import { euCountryCodes } from "../../../types/checkout/Tax";
|
|
11
12
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
12
13
|
import BagIcon from "./assets/bagIcon.svg";
|
|
13
14
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
@@ -20,12 +21,25 @@ import MessageIcon from "./assets/messageIcon.svg";
|
|
|
20
21
|
import MoneyIcon from "./assets/moneyIcon.svg";
|
|
21
22
|
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
22
23
|
import RemoveIcon from "./assets/removeIcon.svg";
|
|
23
|
-
const dutyTaxMessage_AU_lowValueGST = `${translate('The low-value GST law passed July 1st, 2018 applies to this retailer.')} ${wrapStringWithLink({
|
|
24
|
-
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst',
|
|
25
|
-
text: translate('Learn more.'),
|
|
26
|
-
})}`;
|
|
27
24
|
export class ZonosHelloDialog {
|
|
28
25
|
constructor() {
|
|
26
|
+
/**
|
|
27
|
+
* Whether or not the dialog is open
|
|
28
|
+
*/
|
|
29
|
+
this.isOpen = false;
|
|
30
|
+
/**
|
|
31
|
+
* The function to set the open state
|
|
32
|
+
* @default () => {}
|
|
33
|
+
*/
|
|
34
|
+
this.setIsOpen = () => { };
|
|
35
|
+
/**
|
|
36
|
+
* Item restrictions array if any
|
|
37
|
+
* @default []
|
|
38
|
+
*/
|
|
39
|
+
this.restrictedItems = [];
|
|
40
|
+
this.welcomeMessage = 'Welcome to our Demo App!';
|
|
41
|
+
this.showCountrySelect = false;
|
|
42
|
+
this.showLanguageSelect = false;
|
|
29
43
|
this.clickOutsideDialogHandler = (e) => {
|
|
30
44
|
if (!e.composedPath().includes(this.dialogRef) && this.isOpen) {
|
|
31
45
|
this.setIsOpen(false);
|
|
@@ -70,18 +84,25 @@ export class ZonosHelloDialog {
|
|
|
70
84
|
if (!countryCode || !this.hasTaxId()) {
|
|
71
85
|
return false;
|
|
72
86
|
}
|
|
73
|
-
|
|
87
|
+
const countryCodes = [
|
|
88
|
+
'AU',
|
|
89
|
+
'NZ',
|
|
90
|
+
'GB',
|
|
91
|
+
'NO',
|
|
92
|
+
'SG',
|
|
93
|
+
...euCountryCodes,
|
|
94
|
+
];
|
|
95
|
+
return countryCodes.includes(countryCode);
|
|
74
96
|
};
|
|
75
97
|
this.getDutyMessage = () => {
|
|
76
|
-
const
|
|
98
|
+
const countryLandedCost = localizationStore.countryLandedCost;
|
|
77
99
|
// Our Robby API spells deminimis wrong here
|
|
78
100
|
const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
|
|
79
101
|
? currencyFormat({ amount: countryLandedCost.dutyDeminimus })
|
|
80
102
|
: null;
|
|
81
103
|
// If deminimis is undefined or null, assume it's $0
|
|
82
|
-
return dutyDeminimis
|
|
83
|
-
|
|
84
|
-
? translate('Spend [threshold] duty free.', {
|
|
104
|
+
return dutyDeminimis
|
|
105
|
+
? translate('Spend up to [threshold] duty free.', {
|
|
85
106
|
threshold: dutyDeminimis,
|
|
86
107
|
})
|
|
87
108
|
: translate('Duties will apply to all orders.');
|
|
@@ -94,15 +115,31 @@ export class ZonosHelloDialog {
|
|
|
94
115
|
: null;
|
|
95
116
|
return taxDeminimis &&
|
|
96
117
|
!this.isNoThresholdCountry(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode)
|
|
97
|
-
? translate('Spend [threshold] tax free.', {
|
|
118
|
+
? translate('Spend up to [threshold] tax free.', {
|
|
98
119
|
threshold: taxDeminimis,
|
|
99
120
|
})
|
|
100
121
|
: translate('Taxes will apply to all orders.');
|
|
101
122
|
};
|
|
123
|
+
this.getEuDutyTaxMessage = (landedCost) => {
|
|
124
|
+
return [
|
|
125
|
+
`${translate('Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
|
|
126
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
127
|
+
})} ${wrapStringWithLink({
|
|
128
|
+
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss',
|
|
129
|
+
text: translate('Learn more.'),
|
|
130
|
+
})}`,
|
|
131
|
+
];
|
|
132
|
+
};
|
|
102
133
|
this.getUkDutyTaxMessage = (landedCost) => {
|
|
103
134
|
if (landedCost.allowLowValueOrders) {
|
|
104
|
-
|
|
105
|
-
|
|
135
|
+
return [
|
|
136
|
+
`${translate('Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
|
|
137
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
138
|
+
})} ${wrapStringWithLink({
|
|
139
|
+
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/european-ioss',
|
|
140
|
+
text: translate('Learn more.'),
|
|
141
|
+
})}`,
|
|
142
|
+
];
|
|
106
143
|
}
|
|
107
144
|
const dutyDeminimis = landedCost.dutyDeminimus;
|
|
108
145
|
return [
|
|
@@ -114,13 +151,15 @@ export class ZonosHelloDialog {
|
|
|
114
151
|
};
|
|
115
152
|
this.getAustraliaDutyTaxMessage = (landedCost) => {
|
|
116
153
|
if (this.hasInclusivePrices()) {
|
|
117
|
-
return [
|
|
154
|
+
return [];
|
|
118
155
|
}
|
|
119
156
|
return [
|
|
120
|
-
translate('
|
|
157
|
+
`${translate('Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
|
|
121
158
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
122
|
-
})
|
|
123
|
-
|
|
159
|
+
})} ${wrapStringWithLink({
|
|
160
|
+
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst',
|
|
161
|
+
text: translate('Learn more.'),
|
|
162
|
+
})}`,
|
|
124
163
|
];
|
|
125
164
|
};
|
|
126
165
|
this.getNewZealandDutyTaxMessge = (landedCost) => {
|
|
@@ -128,10 +167,38 @@ export class ZonosHelloDialog {
|
|
|
128
167
|
return null;
|
|
129
168
|
}
|
|
130
169
|
return [
|
|
131
|
-
translate('
|
|
170
|
+
`${translate('Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
|
|
132
171
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
133
|
-
|
|
134
|
-
|
|
172
|
+
})} ${wrapStringWithLink({
|
|
173
|
+
href: 'https://zonos.com/docs/guides/country-guides/new-zealand/new-zealand-import-taxes',
|
|
174
|
+
text: translate('Learn more.'),
|
|
175
|
+
})}`,
|
|
176
|
+
];
|
|
177
|
+
};
|
|
178
|
+
this.getNorwayDutyTaxMessage = (landedCost) => {
|
|
179
|
+
if (this.hasInclusivePrices()) {
|
|
180
|
+
return null;
|
|
181
|
+
}
|
|
182
|
+
return [
|
|
183
|
+
`${translate('Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.', {
|
|
184
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
185
|
+
})} ${wrapStringWithLink({
|
|
186
|
+
href: 'https://zonos.com/docs/guides/country-guides/norway-voec-scheme',
|
|
187
|
+
text: translate('Learn more.'),
|
|
188
|
+
})}`,
|
|
189
|
+
];
|
|
190
|
+
};
|
|
191
|
+
this.getSingaporeDutyTaxMessage = (landedCost) => {
|
|
192
|
+
if (this.hasInclusivePrices()) {
|
|
193
|
+
return null;
|
|
194
|
+
}
|
|
195
|
+
return [
|
|
196
|
+
`${translate('Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.', {
|
|
197
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
198
|
+
})} ${wrapStringWithLink({
|
|
199
|
+
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/singapore-gst-settings',
|
|
200
|
+
text: translate('Learn more.'),
|
|
201
|
+
})}`,
|
|
135
202
|
];
|
|
136
203
|
};
|
|
137
204
|
this.getInclusivePriceMessage = () => {
|
|
@@ -185,20 +252,19 @@ export class ZonosHelloDialog {
|
|
|
185
252
|
return this.getAustraliaDutyTaxMessage(localizationStore.countryLandedCost);
|
|
186
253
|
case 'NZ':
|
|
187
254
|
return this.getNewZealandDutyTaxMessge(localizationStore.countryLandedCost);
|
|
255
|
+
case 'NO':
|
|
256
|
+
return this.getNorwayDutyTaxMessage(localizationStore.countryLandedCost);
|
|
257
|
+
case 'SG':
|
|
258
|
+
return this.getSingaporeDutyTaxMessage(localizationStore.countryLandedCost);
|
|
188
259
|
default:
|
|
260
|
+
// show EU duty tax message if country is in EU
|
|
261
|
+
if (euCountryCodes.includes(localizationStore.countryLandedCost.countryCode)) {
|
|
262
|
+
return this.getEuDutyTaxMessage(localizationStore.countryLandedCost);
|
|
263
|
+
}
|
|
189
264
|
// show nothing
|
|
190
265
|
return null;
|
|
191
266
|
}
|
|
192
267
|
};
|
|
193
|
-
this.isOpen = false;
|
|
194
|
-
this.setIsOpen = () => { };
|
|
195
|
-
this.mobileLocationOverride = undefined;
|
|
196
|
-
this.animateFromLeftOverride = undefined;
|
|
197
|
-
this.appearanceSettings = undefined;
|
|
198
|
-
this.restrictedItems = [];
|
|
199
|
-
this.welcomeMessage = 'Welcome to our Demo App!';
|
|
200
|
-
this.showCountrySelect = false;
|
|
201
|
-
this.showLanguageSelect = false;
|
|
202
268
|
}
|
|
203
269
|
globalClickHandler(e) {
|
|
204
270
|
this.clickOutsideDialogHandler(e);
|
|
@@ -232,18 +298,18 @@ export class ZonosHelloDialog {
|
|
|
232
298
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
233
299
|
const currentPage = this.getCurrentPageEnum();
|
|
234
300
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
235
|
-
return (h(Host, { key: '
|
|
301
|
+
return (h(Host, { key: '0830447fd72c987521c1790936f64948c28e368a', class: "zonos--elements" }, h("div", { key: '945b144257ac98cd3e18484b5df7c656967ed4bb', class: classes([
|
|
236
302
|
'zonos--hello-dialog',
|
|
237
303
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
238
304
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
239
305
|
!!this.mobileLocationOverride &&
|
|
240
306
|
'zonos--hello-dialog-mobile-override',
|
|
241
307
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
242
|
-
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
308
|
+
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'd4281bee820f6f1c0128a27a68637d9cf14bb9df' }, h("div", { key: '2eb86efbcf9a69fcad628fff00d6f4834026f720', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '54c1db50880af58304586091a2c96b63d21939b9', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '4814c176342c0a81379e499c9e9c9fff2611ca30', spacing: 24 }, h("zonos-country-flag", { key: 'a96e2f98b8d34d9c9b85e7b1989e6c29a9efb319', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'bdfcfa7d339c007df770101d8a63433d40be6ce2', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '7bebb2baef3b43444325b8755d9de41f7617a30a', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'cc5e7c2dda01e545a1d85bbbb1e5cab53ab27574', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: 'dbd3743ea89e59796b8f0a7c90eb4bf2564212ad', spacing: 8 }, this.restrictedItems.map(item => {
|
|
243
309
|
var _a;
|
|
244
310
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
245
|
-
}), h("zonos-card", { key: '
|
|
246
|
-
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '
|
|
311
|
+
}), h("zonos-card", { key: '428f00f603d782b9496d40049571e3ea9dad57ba', spacing: "12px" }, h("zonos-v-stack", { key: '1433a878c9782cb57cbe85d83bdbe090d0e5d610', spacing: 12 }, hasInclusivePrices ? (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), h("zonos-text", null, inclusivePriceMessage))) : (h(Fragment, null, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis icon", content: ImportIcon }), h("zonos-text", { "aria-label": "Duty de minimis message" }, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis icon", content: MoneyIcon }), h("zonos-text", { "aria-label": "Tax de minimis message" }, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
312
|
+
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info })))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '09e8b05e240cd995e16c0f736df6ef66d9fff511', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '1ed01c7f23d1b1f5a1e95d39e614e748ea407d6f' }, h("zonos-country-select", { key: 'b8c249f2e9f902e444b22371e9581be7ab34f07a', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: 'cc6066e1e0eba08130342cef80ecdcd8c2e53e49' }, h("zonos-language-select", { key: 'c803df7ce92321f72d48a39eddcf1bbd3e279738', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
247
313
|
}
|
|
248
314
|
static get is() { return "zonos-hello-dialog"; }
|
|
249
315
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,10 +11,6 @@ import { CheckoutAddressService } from "../utils/iframe/CheckoutAddressService";
|
|
|
11
11
|
import { iframeServices, injectPrivateIframe, } from "../utils/iframe/IframeHelpers";
|
|
12
12
|
import { log } from "../utils/logging/log";
|
|
13
13
|
export class ZonosController {
|
|
14
|
-
constructor() {
|
|
15
|
-
this.config = undefined;
|
|
16
|
-
this.zonosApiKey = undefined;
|
|
17
|
-
}
|
|
18
14
|
/**
|
|
19
15
|
* Method to initialize checkout element
|
|
20
16
|
*/
|
|
@@ -691,7 +691,8 @@ const stripeStoreInitCheckoutSession = async () => {
|
|
|
691
691
|
if (errors.length || !json) {
|
|
692
692
|
const messages = (_a = errors.find(error => error.message)) === null || _a === void 0 ? void 0 : _a.message;
|
|
693
693
|
// check if the error is related to expired cart and thow error so we can show error message accordingly
|
|
694
|
-
if (
|
|
694
|
+
if (Array.isArray(messages) &&
|
|
695
|
+
messages.some(message => message.message === 'Cart is expired.')) {
|
|
695
696
|
throw new Error('Cart is expired.');
|
|
696
697
|
}
|
|
697
698
|
logError('Error occurred when creating checkout session', JSON.stringify(errors, null, 2));
|
|
@@ -152,8 +152,23 @@ export const stringsArabic = {
|
|
|
152
152
|
'Due at delivery': {
|
|
153
153
|
value: 'مستحق عند التسليم',
|
|
154
154
|
},
|
|
155
|
-
'
|
|
156
|
-
value: '
|
|
155
|
+
'Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
|
|
156
|
+
value: 'بسبب قانون الضرائب الأسترالي، سيتم تقييم جميع الطلبات بنسبة [percentage] من ضريبة السلع والخدمات بغض النظر عن إجمالي الطلب.',
|
|
157
|
+
},
|
|
158
|
+
'Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
159
|
+
value: 'بسبب قانون الضرائب IOSS، سيتم تقييم جميع الطلبات بنسبة [percentage] ضريبة القيمة المضافة بغض النظر عن إجمالي الطلب.',
|
|
160
|
+
},
|
|
161
|
+
'Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
|
|
162
|
+
value: 'بسبب قانون الضرائب النيوزيلندي، سيتم تقييم جميع الطلبات بنسبة [percentage] من ضريبة السلع والخدمات بغض النظر عن إجمالي الطلب.',
|
|
163
|
+
},
|
|
164
|
+
'Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
|
|
165
|
+
value: 'بسبب قانون الضرائب في سنغافورة، سيتم تقييم جميع الطلبات بنسبة [percentage] GST بغض النظر عن إجمالي الطلب.',
|
|
166
|
+
},
|
|
167
|
+
'Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
168
|
+
value: 'بسبب قانون الضرائب في المملكة المتحدة، سيتم تقييم جميع الطلبات بنسبة [percentage] ضريبة القيمة المضافة بغض النظر عن إجمالي الطلب.',
|
|
169
|
+
},
|
|
170
|
+
'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
171
|
+
value: 'بسبب قانون الضرائب VOEC، سيتم تقييم جميع الطلبات بنسبة [percentage] ضريبة القيمة المضافة بغض النظر عن إجمالي الطلب.',
|
|
157
172
|
},
|
|
158
173
|
'Duties and taxes will be applied to items and shipping.': {
|
|
159
174
|
value: 'سيتم تطبيق الرسوم والضرائب على العناصر والشحن.',
|
|
@@ -464,11 +479,11 @@ export const stringsArabic = {
|
|
|
464
479
|
'Something went wrong.': {
|
|
465
480
|
value: 'حدث خطأ ما.',
|
|
466
481
|
},
|
|
467
|
-
'Spend [threshold] duty free.': {
|
|
468
|
-
value: 'أنفق [threshold] معفى من الرسوم الجمركية.',
|
|
482
|
+
'Spend up to [threshold] duty free.': {
|
|
483
|
+
value: 'أنفق حتى [threshold] معفى من الرسوم الجمركية.',
|
|
469
484
|
},
|
|
470
|
-
'Spend [threshold] tax free.': {
|
|
471
|
-
value: 'أنفق [threshold]
|
|
485
|
+
'Spend up to [threshold] tax free.': {
|
|
486
|
+
value: 'أنفق حتى [threshold] معفى من الضرائب.',
|
|
472
487
|
},
|
|
473
488
|
'Staging mode': {
|
|
474
489
|
value: 'وضع التدريج',
|
|
@@ -626,9 +641,6 @@ export const stringsArabic = {
|
|
|
626
641
|
Zip: {
|
|
627
642
|
value: 'الرمز البريدي',
|
|
628
643
|
},
|
|
629
|
-
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
630
|
-
value: '[percentage] ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز [threshold] بالإضافة إلى رسوم معاملة إدخال الاستيراد ورسوم MPI.',
|
|
631
|
-
},
|
|
632
644
|
'[percentage] GST due on any order above [threshold].': {
|
|
633
645
|
value: '[percentage] ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز [threshold].',
|
|
634
646
|
},
|
|
@@ -153,8 +153,23 @@ export const stringsBase = {
|
|
|
153
153
|
'Due at delivery': {
|
|
154
154
|
value: 'Due at delivery',
|
|
155
155
|
},
|
|
156
|
-
'
|
|
157
|
-
value: '
|
|
156
|
+
'Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
|
|
157
|
+
value: 'Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.',
|
|
158
|
+
},
|
|
159
|
+
'Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
160
|
+
value: 'Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.',
|
|
161
|
+
},
|
|
162
|
+
'Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
|
|
163
|
+
value: 'Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.',
|
|
164
|
+
},
|
|
165
|
+
'Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
|
|
166
|
+
value: 'Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.',
|
|
167
|
+
},
|
|
168
|
+
'Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
169
|
+
value: 'Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.',
|
|
170
|
+
},
|
|
171
|
+
'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
172
|
+
value: 'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.',
|
|
158
173
|
},
|
|
159
174
|
'Duties and taxes will be applied to items and shipping.': {
|
|
160
175
|
value: 'Duties and taxes will be applied to items and shipping.',
|
|
@@ -465,11 +480,11 @@ export const stringsBase = {
|
|
|
465
480
|
'Something went wrong.': {
|
|
466
481
|
value: 'Something went wrong.',
|
|
467
482
|
},
|
|
468
|
-
'Spend [threshold] duty free.': {
|
|
469
|
-
value: 'Spend [threshold] duty free.',
|
|
483
|
+
'Spend up to [threshold] duty free.': {
|
|
484
|
+
value: 'Spend up to [threshold] duty free.',
|
|
470
485
|
},
|
|
471
|
-
'Spend [threshold] tax free.': {
|
|
472
|
-
value: 'Spend [threshold] tax free.',
|
|
486
|
+
'Spend up to [threshold] tax free.': {
|
|
487
|
+
value: 'Spend up to [threshold] tax free.',
|
|
473
488
|
},
|
|
474
489
|
'Staging mode': {
|
|
475
490
|
value: 'Staging mode',
|
|
@@ -498,7 +513,6 @@ export const stringsBase = {
|
|
|
498
513
|
'Street or avenue': {
|
|
499
514
|
value: 'Street or avenue',
|
|
500
515
|
},
|
|
501
|
-
// Address 1 labels
|
|
502
516
|
Success: {
|
|
503
517
|
value: 'Success',
|
|
504
518
|
},
|
|
@@ -628,9 +642,6 @@ export const stringsBase = {
|
|
|
628
642
|
Zip: {
|
|
629
643
|
value: 'Zip',
|
|
630
644
|
},
|
|
631
|
-
'[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
|
|
632
|
-
value: '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.',
|
|
633
|
-
},
|
|
634
645
|
'[percentage] GST due on any order above [threshold].': {
|
|
635
646
|
value: '[percentage] GST due on any order above [threshold].',
|
|
636
647
|
},
|