@zonos/elements 1.3.201 → 1.3.202
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/VarianceTest-0cb1e118.js +12 -0
- package/dist/cjs/cart-637ba3d0.js +1943 -0
- package/dist/cjs/{debounce-d393fafe.js → debounce-94e1b7ff.js} +1 -1
- package/dist/cjs/{getBorderRadius-3d0a563e.js → getBorderRadius-8d3b1049.js} +1 -1
- package/dist/cjs/index.cjs.js +10 -8
- package/dist/cjs/{isDarkColor-92a10a85.js → isDarkColor-bcf49625.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{cart-e73cde62.js → localization-2f17c95f.js} +74 -1941
- package/dist/cjs/{paypal-39bbbd1a.js → paypal-0eceff03.js} +10 -9
- package/dist/cjs/zonos-address_11.cjs.entry.js +98 -72
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -3
- package/dist/cjs/zonos-card.cjs.entry.js +3 -2
- package/dist/cjs/{zonos-cart-items_13.cjs.entry.js → zonos-cart-items_14.cjs.entry.js} +99 -80
- package/dist/cjs/zonos-checkout.cjs.entry.js +395 -50
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -1
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +13 -11
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -5
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +13 -13
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +10 -8
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +41 -42
- package/dist/cjs/zonos-hello.cjs.entry.js +30 -31
- package/dist/cjs/zonos-input.cjs.entry.js +3 -2
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +8 -9
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -3
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -7
- package/dist/cjs/zonos-text.cjs.entry.js +2 -1
- package/dist/cjs/zonos-toggle.cjs.entry.js +4 -3
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -3
- package/dist/cjs/{zonosStore-c466b127.js → zonosStore-9264749e.js} +15 -5
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +18 -17
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +235 -15
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +2 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.css +62 -0
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +90 -0
- 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-stripe-input/zonos-stripe-input.js +4 -4
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- 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-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 +3 -3
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +15 -16
- package/dist/collection/components/store/checkout/paypal.js +2 -1
- package/dist/collection/components/store/checkout/stripe.js +16 -11
- package/dist/collection/components/store/hello/localization.js +5 -5
- package/dist/collection/components/store/storageStore.js +32 -0
- package/dist/collection/components/store/zonosStore.js +12 -6
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +18 -6
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +19 -7
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +3 -3
- package/dist/collection/components/utils/api/getCheckoutSession.js +3 -3
- package/dist/collection/components/utils/api/placeTestOrder.js +2 -1
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +3 -2
- package/dist/collection/components/utils/api/selectVarianceTest.js +20 -0
- package/dist/collection/components/utils/buildCartUrl.js +44 -0
- package/dist/collection/components/utils/getLegacyQueryParams.js +42 -0
- package/dist/collection/components/utils/varianceTest/filterExpiredTests.js +6 -0
- package/dist/collection/components/utils/varianceTest/filterValidTests.js +23 -0
- package/dist/collection/components/utils/varianceTest/getSelectedTestVariant.js +6 -0
- package/dist/collection/components/utils/varianceTest/hasAtLeastOneAvailableTestKey.js +14 -0
- package/dist/collection/components/utils/varianceTest/isInAvailableTestKey.js +4 -0
- package/dist/collection/components/utils/varianceTest/isTestEnabled.js +4 -0
- package/dist/collection/components/utils/varianceTest/isTestKeysAllVariantSelected.js +6 -0
- package/dist/collection/components/utils/varianceTest/mergeTest.js +13 -0
- package/dist/collection/scripts/_getZonosQaUrl.js +2 -2
- package/dist/collection/types/checkout/api/VarianceTest.js +8 -0
- package/dist/collection/types/generated/graphql.internal.types.js +12 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/VarianceTest-fef2d958.js +10 -0
- package/dist/esm/cart-b7c15b61.js +1907 -0
- package/dist/esm/{debounce-a2121722.js → debounce-3a9f27a0.js} +1 -1
- package/dist/esm/{getBorderRadius-413e97eb.js → getBorderRadius-78b28b4d.js} +1 -1
- package/dist/esm/index.js +9 -8
- package/dist/esm/{isDarkColor-4c7b2ffc.js → isDarkColor-31dd7dff.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{cart-f79c8021.js → localization-bf7224aa.js} +70 -1907
- package/dist/esm/{paypal-6d4667d1.js → paypal-932fd3dd.js} +5 -4
- package/dist/esm/zonos-address_11.entry.js +54 -28
- package/dist/esm/zonos-badge.entry.js +2 -1
- package/dist/esm/zonos-banner.entry.js +2 -1
- package/dist/esm/zonos-button_3.entry.js +4 -3
- package/dist/esm/zonos-card.entry.js +3 -2
- package/dist/esm/{zonos-cart-items_13.entry.js → zonos-cart-items_14.entry.js} +48 -30
- package/dist/esm/zonos-checkout.entry.js +363 -18
- package/dist/esm/zonos-collapse.entry.js +2 -1
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +8 -6
- package/dist/esm/zonos-country-flag.entry.js +3 -4
- package/dist/esm/zonos-country-select_4.entry.js +8 -8
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +10 -8
- package/dist/esm/zonos-hello-dialog.entry.js +7 -8
- package/dist/esm/zonos-hello.entry.js +4 -5
- package/dist/esm/zonos-input.entry.js +3 -2
- package/dist/esm/zonos-language-select_2.entry.js +5 -6
- package/dist/esm/zonos-logo.entry.js +4 -3
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -2
- package/dist/esm/zonos-stripe-input.entry.js +8 -7
- package/dist/esm/zonos-text.entry.js +2 -1
- package/dist/esm/zonos-toggle.entry.js +4 -3
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +4 -3
- package/dist/esm/{zonosStore-cdabc848.js → zonosStore-d10a829f.js} +15 -5
- package/dist/esm-es5/VarianceTest-fef2d958.js +1 -0
- package/dist/esm-es5/cart-b7c15b61.js +1 -0
- package/dist/esm-es5/{debounce-a2121722.js → debounce-3a9f27a0.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-413e97eb.js → getBorderRadius-78b28b4d.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-4c7b2ffc.js → isDarkColor-31dd7dff.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-bf7224aa.js +1 -0
- package/dist/esm-es5/{paypal-6d4667d1.js → paypal-932fd3dd.js} +2 -2
- 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 -0
- 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-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 +1 -0
- package/dist/scripts/index.d.ts +839 -765
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +16 -0
- package/dist/types/components/common/zonos-loading-overlay/zonos-loading-overlay.d.ts +16 -0
- package/dist/types/components/store/checkout/cart.d.ts +0 -1
- package/dist/types/components/store/checkout/stripe.d.ts +2 -2
- package/dist/types/components/store/hello/localization.d.ts +2 -2
- package/dist/types/components/store/storageStore.d.ts +13 -0
- package/dist/types/components/store/zonosStore.d.ts +7 -2
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +2 -0
- package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +2 -0
- package/dist/types/components/utils/api/selectVarianceTest.d.ts +6 -0
- package/dist/types/components/utils/buildCartUrl.d.ts +10 -0
- package/dist/types/components/utils/getLegacyQueryParams.d.ts +2 -0
- package/dist/types/components/utils/varianceTest/filterExpiredTests.d.ts +2 -0
- package/dist/types/components/utils/varianceTest/filterValidTests.d.ts +9 -0
- package/dist/types/components/utils/varianceTest/getSelectedTestVariant.d.ts +2 -0
- package/dist/types/components/utils/varianceTest/hasAtLeastOneAvailableTestKey.d.ts +8 -0
- package/dist/types/components/utils/varianceTest/isInAvailableTestKey.d.ts +2 -0
- package/dist/types/components/utils/varianceTest/isTestEnabled.d.ts +2 -0
- package/dist/types/components/utils/varianceTest/isTestKeysAllVariantSelected.d.ts +9 -0
- package/dist/types/components/utils/varianceTest/mergeTest.d.ts +5 -0
- package/dist/types/components.d.ts +51 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +7 -0
- package/dist/types/types/checkout/CheckoutConfig.d.ts +13 -1
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +7 -0
- package/dist/types/types/checkout/api/VarianceTest.d.ts +30 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +163 -0
- package/dist/types/types/generated/graphql.internal.types.ts +199 -0
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/utils/ZonosSettings.d.ts +7 -6
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-609c32a3.system.entry.js → p-01987cb2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-04a01cb1.js +1 -0
- package/dist/zonos-elements/p-04b43dd5.entry.js +1 -0
- package/dist/zonos-elements/p-0f77d087.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7831b52c.system.entry.js → p-1dcdb65f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-26a634a5.system.entry.js +1 -0
- package/dist/zonos-elements/p-27987298.system.entry.js +1 -0
- package/dist/zonos-elements/p-2af2eb6f.system.entry.js +1 -0
- package/dist/zonos-elements/p-2b8f787a.entry.js +1 -0
- package/dist/zonos-elements/p-30cfa524.entry.js +1 -0
- package/dist/zonos-elements/p-32320d9a.system.js +1 -0
- package/dist/zonos-elements/p-3284f459.system.entry.js +1 -0
- package/dist/zonos-elements/{p-13796f98.js → p-3d82a352.js} +1 -1
- package/dist/zonos-elements/p-452070af.system.entry.js +1 -0
- package/dist/zonos-elements/p-45ebc788.entry.js +1 -0
- package/dist/zonos-elements/p-4c81112f.entry.js +1 -0
- package/dist/zonos-elements/p-4efa8187.js +1 -0
- package/dist/zonos-elements/p-5170bc41.entry.js +1 -0
- package/dist/zonos-elements/p-5a2dd041.system.js +1 -0
- package/dist/zonos-elements/p-5c74e5c9.system.entry.js +1 -0
- package/dist/zonos-elements/p-5d0f7364.system.js +1 -0
- package/dist/zonos-elements/p-6a52a2bc.system.entry.js +1 -0
- package/dist/zonos-elements/p-715d0f59.system.entry.js +1 -0
- package/dist/zonos-elements/{p-b8d87932.js → p-72f37935.js} +1 -1
- package/dist/zonos-elements/p-7ae5cd60.entry.js +1 -0
- package/dist/zonos-elements/p-80bbd9c0.system.entry.js +1 -0
- package/dist/zonos-elements/p-851c642e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-4300d944.entry.js → p-8d870d4c.entry.js} +1 -1
- package/dist/zonos-elements/p-98b65387.entry.js +1 -0
- package/dist/zonos-elements/p-9af5e93a.entry.js +1 -0
- package/dist/zonos-elements/p-aa1193bc.entry.js +1 -0
- package/dist/zonos-elements/{p-5de59662.js → p-aae60057.js} +2 -2
- package/dist/zonos-elements/p-ab176281.system.entry.js +1 -0
- package/dist/zonos-elements/p-b52aba52.entry.js +1 -0
- package/dist/zonos-elements/p-bc220d35.system.js +1 -0
- package/dist/zonos-elements/p-bc8bda92.entry.js +1 -0
- package/dist/zonos-elements/p-be5afc91.system.entry.js +1 -0
- package/dist/zonos-elements/p-bec2a3ce.entry.js +1 -0
- package/dist/zonos-elements/p-c291bac1.entry.js +1 -0
- package/dist/zonos-elements/p-c3d2422e.entry.js +1 -0
- package/dist/zonos-elements/{p-f28eb1dd.system.js → p-c50b3100.system.js} +1 -1
- package/dist/zonos-elements/p-c58acd4c.system.entry.js +1 -0
- package/dist/zonos-elements/p-c5fcbc92.system.entry.js +1 -0
- package/dist/zonos-elements/p-c767242b.entry.js +1 -0
- package/dist/zonos-elements/p-c9aa902e.system.entry.js +1 -0
- package/dist/zonos-elements/p-cb823c4d.system.js +1 -0
- package/dist/zonos-elements/{p-7d5d89f2.system.js → p-d2466fbd.system.js} +2 -2
- package/dist/zonos-elements/{p-d422ad1d.system.js → p-d42dfd32.system.js} +1 -1
- package/dist/zonos-elements/p-d46349d3.system.entry.js +1 -0
- package/dist/zonos-elements/p-d60ca44b.system.entry.js +1 -0
- package/dist/zonos-elements/{p-b2241919.entry.js → p-d6a10007.entry.js} +1 -1
- package/dist/zonos-elements/p-db025dfc.system.entry.js +1 -0
- package/dist/zonos-elements/p-db3968a2.js +1 -0
- package/dist/zonos-elements/p-dcd6acd4.system.entry.js +1 -0
- package/dist/zonos-elements/p-dd1cfa74.entry.js +1 -0
- package/dist/zonos-elements/p-df4c46a6.entry.js +1 -0
- package/dist/zonos-elements/{p-4593324c.js → p-e26c9e83.js} +1 -1
- package/dist/zonos-elements/p-e68d5219.entry.js +1 -0
- package/dist/zonos-elements/p-ea6d87a1.system.js +1 -1
- package/dist/zonos-elements/p-ef3e05e5.system.js +1 -0
- package/dist/zonos-elements/p-f255e822.js +1 -0
- package/dist/zonos-elements/p-f655ec36.entry.js +1 -0
- package/dist/zonos-elements/{p-e91b244c.entry.js → p-f891d470.entry.js} +1 -1
- package/dist/zonos-elements/p-f8d0d488.system.entry.js +1 -0
- package/dist/zonos-elements/{p-240ee490.system.entry.js → p-fbe36bc8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fcc2e712.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-f79c8021.js +0 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +0 -1
- package/dist/esm-es5/zonosStore-cdabc848.js +0 -1
- package/dist/zonos-elements/p-0302a254.entry.js +0 -1
- package/dist/zonos-elements/p-06ed3582.system.js +0 -1
- package/dist/zonos-elements/p-147ca395.entry.js +0 -1
- package/dist/zonos-elements/p-1998d8b3.entry.js +0 -1
- package/dist/zonos-elements/p-1eddec23.entry.js +0 -1
- package/dist/zonos-elements/p-20030bf5.system.js +0 -1
- package/dist/zonos-elements/p-24a2e899.system.entry.js +0 -1
- package/dist/zonos-elements/p-264f46a5.entry.js +0 -1
- package/dist/zonos-elements/p-2882b9f4.entry.js +0 -1
- package/dist/zonos-elements/p-2c915112.system.entry.js +0 -1
- package/dist/zonos-elements/p-327aebf5.entry.js +0 -1
- package/dist/zonos-elements/p-33488109.system.entry.js +0 -1
- package/dist/zonos-elements/p-337fab4e.js +0 -1
- package/dist/zonos-elements/p-3ddecaa4.system.entry.js +0 -1
- package/dist/zonos-elements/p-48f70043.system.entry.js +0 -1
- package/dist/zonos-elements/p-49a31b14.system.entry.js +0 -1
- package/dist/zonos-elements/p-4cd867d5.js +0 -1
- package/dist/zonos-elements/p-55711b80.system.entry.js +0 -1
- package/dist/zonos-elements/p-578bf5d7.entry.js +0 -1
- package/dist/zonos-elements/p-5c061a35.entry.js +0 -1
- package/dist/zonos-elements/p-6096c1c5.entry.js +0 -1
- package/dist/zonos-elements/p-65a8f19d.entry.js +0 -1
- package/dist/zonos-elements/p-6adc6e27.entry.js +0 -1
- package/dist/zonos-elements/p-6cd9b6a1.system.entry.js +0 -1
- package/dist/zonos-elements/p-79070ee6.entry.js +0 -1
- package/dist/zonos-elements/p-7bb9c330.entry.js +0 -1
- package/dist/zonos-elements/p-82aa4f9f.system.entry.js +0 -1
- package/dist/zonos-elements/p-8540f3e2.system.entry.js +0 -1
- package/dist/zonos-elements/p-8a9d4605.system.entry.js +0 -1
- package/dist/zonos-elements/p-932bed54.system.entry.js +0 -1
- package/dist/zonos-elements/p-94e3e50d.system.entry.js +0 -1
- package/dist/zonos-elements/p-9f6dd86a.entry.js +0 -1
- package/dist/zonos-elements/p-a64ab131.system.entry.js +0 -1
- package/dist/zonos-elements/p-aac95779.system.entry.js +0 -1
- package/dist/zonos-elements/p-ad3c5358.entry.js +0 -1
- package/dist/zonos-elements/p-af6af82e.system.js +0 -1
- package/dist/zonos-elements/p-b66b3306.system.entry.js +0 -1
- package/dist/zonos-elements/p-b6afcf3f.system.entry.js +0 -1
- package/dist/zonos-elements/p-b8d91f99.entry.js +0 -1
- package/dist/zonos-elements/p-c770044a.system.entry.js +0 -1
- package/dist/zonos-elements/p-d4842d10.system.entry.js +0 -1
- package/dist/zonos-elements/p-d6c3aec8.system.entry.js +0 -1
- package/dist/zonos-elements/p-daf73a4c.system.js +0 -1
- package/dist/zonos-elements/p-de388ea0.entry.js +0 -1
- package/dist/zonos-elements/p-e14d89de.entry.js +0 -1
- package/dist/zonos-elements/p-f6e587bb.entry.js +0 -1
- package/dist/zonos-elements/p-f818bdf5.entry.js +0 -1
- package/dist/zonos-elements/p-fce6bffe.system.entry.js +0 -1
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const localization = require('./localization-2f17c95f.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-9264749e.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
10
10
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
11
11
|
require('./handleFetch-969d05d8.js');
|
|
12
|
-
require('./
|
|
13
|
-
require('./getBorderRadius-3d0a563e.js');
|
|
12
|
+
require('./VarianceTest-0cb1e118.js');
|
|
14
13
|
|
|
15
14
|
const getHasMoreSpaceAbove = (ref) => {
|
|
16
15
|
const componentRect = ref.getBoundingClientRect();
|
|
@@ -58,9 +57,9 @@ const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="
|
|
|
58
57
|
const zonosHelloDialogCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--zonos-elements-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--zonos-elements-radius-12);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:8px;top:8px;width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--zonos-elements-hover-color);border-radius:var(--zonos-elements-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:16px}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:12px}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}@media (max-height: 600px){:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{max-height:80vh}}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:500px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px) and (max-height: 600px){:host .zonos--hello-dialog{max-height:80vh}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}}@media (max-width: 768px){:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";
|
|
59
58
|
const ZonosHelloDialogStyle0 = zonosHelloDialogCss;
|
|
60
59
|
|
|
61
|
-
const dutyTaxMessage_AU_lowValueGST = `${
|
|
60
|
+
const dutyTaxMessage_AU_lowValueGST = `${localization.translate('The low-value GST law passed July 1st, 2018 applies to this retailer.')} ${wrapStringWithLink({
|
|
62
61
|
href: 'https://zonos.com/docs/global-ecommerce/landed-cost/tax-remittance/australia-gst',
|
|
63
|
-
text:
|
|
62
|
+
text: localization.translate('Learn more.'),
|
|
64
63
|
})}`;
|
|
65
64
|
const ZonosHelloDialog = class {
|
|
66
65
|
constructor(hostRef) {
|
|
@@ -96,11 +95,11 @@ const ZonosHelloDialog = class {
|
|
|
96
95
|
*/
|
|
97
96
|
this.hasTaxId = () => {
|
|
98
97
|
var _a;
|
|
99
|
-
return (_a =
|
|
98
|
+
return (_a = localization.localizationStore.countryLandedCost) === null || _a === void 0 ? void 0 : _a.hasTaxId;
|
|
100
99
|
};
|
|
101
100
|
this.hasInclusivePrices = () => {
|
|
102
101
|
var _a;
|
|
103
|
-
return ((_a =
|
|
102
|
+
return ((_a = localization.localizationStore.inclusivePricing) === null || _a === void 0 ? void 0 : _a.status) === 'ENABLED';
|
|
104
103
|
};
|
|
105
104
|
/**
|
|
106
105
|
* Some countries don't have threshold. So we need to show generic message for them
|
|
@@ -113,31 +112,31 @@ const ZonosHelloDialog = class {
|
|
|
113
112
|
return ['AU'].includes(countryCode);
|
|
114
113
|
};
|
|
115
114
|
this.getDutyMessage = () => {
|
|
116
|
-
const { countryLandedCost } =
|
|
115
|
+
const { countryLandedCost } = localization.localizationStore;
|
|
117
116
|
// Our Robby API spells deminimis wrong here
|
|
118
117
|
const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
|
|
119
|
-
?
|
|
118
|
+
? localization.currencyFormat({ amount: countryLandedCost.dutyDeminimus })
|
|
120
119
|
: null;
|
|
121
120
|
// If deminimis is undefined or null, assume it's $0
|
|
122
121
|
return dutyDeminimis &&
|
|
123
122
|
!this.isNoThresholdCountry(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode)
|
|
124
|
-
?
|
|
123
|
+
? localization.translate('Spend [threshold] duty free.', {
|
|
125
124
|
threshold: dutyDeminimis,
|
|
126
125
|
})
|
|
127
|
-
:
|
|
126
|
+
: localization.translate('Duties will apply to all orders.');
|
|
128
127
|
};
|
|
129
128
|
this.getTaxMessage = () => {
|
|
130
|
-
const { countryLandedCost } =
|
|
129
|
+
const { countryLandedCost } = localization.localizationStore;
|
|
131
130
|
// Our Robby API spells deminimis wrong here
|
|
132
131
|
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
133
|
-
?
|
|
132
|
+
? localization.currencyFormat({ amount: countryLandedCost.vatTaxDeminimus })
|
|
134
133
|
: null;
|
|
135
134
|
return taxDeminimis &&
|
|
136
135
|
!this.isNoThresholdCountry(countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.countryCode)
|
|
137
|
-
?
|
|
136
|
+
? localization.translate('Spend [threshold] tax free.', {
|
|
138
137
|
threshold: taxDeminimis,
|
|
139
138
|
})
|
|
140
|
-
:
|
|
139
|
+
: localization.translate('Taxes will apply to all orders.');
|
|
141
140
|
};
|
|
142
141
|
this.getUkDutyTaxMessage = (landedCost) => {
|
|
143
142
|
if (landedCost.allowLowValueOrders) {
|
|
@@ -146,9 +145,9 @@ const ZonosHelloDialog = class {
|
|
|
146
145
|
}
|
|
147
146
|
const dutyDeminimis = landedCost.dutyDeminimus;
|
|
148
147
|
return [
|
|
149
|
-
|
|
148
|
+
localization.translate('Orders to [countryName] must be over [threshold] to ship.', {
|
|
150
149
|
countryName: 'United Kingdom',
|
|
151
|
-
threshold:
|
|
150
|
+
threshold: localization.currencyFormat({ amount: dutyDeminimis }),
|
|
152
151
|
}),
|
|
153
152
|
];
|
|
154
153
|
};
|
|
@@ -157,7 +156,7 @@ const ZonosHelloDialog = class {
|
|
|
157
156
|
return [dutyTaxMessage_AU_lowValueGST];
|
|
158
157
|
}
|
|
159
158
|
return [
|
|
160
|
-
|
|
159
|
+
localization.translate('Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.', {
|
|
161
160
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
162
161
|
}),
|
|
163
162
|
dutyTaxMessage_AU_lowValueGST,
|
|
@@ -168,42 +167,42 @@ const ZonosHelloDialog = class {
|
|
|
168
167
|
return null;
|
|
169
168
|
}
|
|
170
169
|
return [
|
|
171
|
-
|
|
170
|
+
localization.translate('[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.', {
|
|
172
171
|
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
173
|
-
threshold:
|
|
172
|
+
threshold: localization.currencyFormat({ amount: landedCost.vatTaxDeminimus }),
|
|
174
173
|
}),
|
|
175
174
|
];
|
|
176
175
|
};
|
|
177
176
|
this.getInclusivePriceMessage = () => {
|
|
178
|
-
const setting =
|
|
177
|
+
const setting = localization.localizationStore.inclusivePricing;
|
|
179
178
|
if ((setting === null || setting === void 0 ? void 0 : setting.status) !== 'ENABLED') {
|
|
180
179
|
return null;
|
|
181
180
|
}
|
|
182
181
|
if (setting.duty.status === 'INCLUDED' &&
|
|
183
182
|
setting.tax.status === 'INCLUDED' &&
|
|
184
183
|
setting.fee.status === 'INCLUDED') {
|
|
185
|
-
return
|
|
184
|
+
return localization.translate('Product prices already include duties, taxes, and fees. No additional duties, taxes, or fees will be added at checkout, with rare exceptions.');
|
|
186
185
|
}
|
|
187
186
|
if (setting.duty.status === 'INCLUDED' &&
|
|
188
187
|
setting.tax.status === 'INCLUDED') {
|
|
189
|
-
return
|
|
188
|
+
return localization.translate('Product prices already include duties and taxes. No additional duties or taxes will be added at checkout, with rare exceptions.');
|
|
190
189
|
}
|
|
191
190
|
if (setting.duty.status === 'INCLUDED' &&
|
|
192
191
|
setting.fee.status === 'INCLUDED') {
|
|
193
|
-
return
|
|
192
|
+
return localization.translate('Product prices already include duties and fees. No additional duties or fees will be added at checkout, with rare exceptions.');
|
|
194
193
|
}
|
|
195
194
|
if (setting.tax.status === 'INCLUDED' &&
|
|
196
195
|
setting.fee.status === 'INCLUDED') {
|
|
197
|
-
return
|
|
196
|
+
return localization.translate('Product prices already include taxes and fees. No additional taxes or fees will be added at checkout, with rare exceptions.');
|
|
198
197
|
}
|
|
199
198
|
if (setting.duty.status === 'INCLUDED') {
|
|
200
|
-
return
|
|
199
|
+
return localization.translate('Product prices already include duties. No additional duties will be added at checkout, with rare exceptions.');
|
|
201
200
|
}
|
|
202
201
|
if (setting.tax.status === 'INCLUDED') {
|
|
203
|
-
return
|
|
202
|
+
return localization.translate('Product prices already include taxes. No additional taxes will be added at checkout, with rare exceptions.');
|
|
204
203
|
}
|
|
205
204
|
if (setting.fee.status === 'INCLUDED') {
|
|
206
|
-
return
|
|
205
|
+
return localization.translate('Product prices already include fees. No additional fees will be added at checkout, with rare exceptions.');
|
|
207
206
|
}
|
|
208
207
|
return null;
|
|
209
208
|
};
|
|
@@ -211,20 +210,20 @@ const ZonosHelloDialog = class {
|
|
|
211
210
|
* Get additional duty tax message if selected country has tax id
|
|
212
211
|
*/
|
|
213
212
|
this.getAdditionalDutyTaxMessage = () => {
|
|
214
|
-
if (!
|
|
213
|
+
if (!localization.localizationStore.countryLandedCost) {
|
|
215
214
|
return null;
|
|
216
215
|
}
|
|
217
216
|
// only show the message if the store has a tax id for selected country
|
|
218
217
|
if (!this.hasTaxId()) {
|
|
219
218
|
return null;
|
|
220
219
|
}
|
|
221
|
-
switch (
|
|
220
|
+
switch (localization.localizationStore.countryLandedCost.countryCode) {
|
|
222
221
|
case 'GB':
|
|
223
|
-
return this.getUkDutyTaxMessage(
|
|
222
|
+
return this.getUkDutyTaxMessage(localization.localizationStore.countryLandedCost);
|
|
224
223
|
case 'AU':
|
|
225
|
-
return this.getAustraliaDutyTaxMessage(
|
|
224
|
+
return this.getAustraliaDutyTaxMessage(localization.localizationStore.countryLandedCost);
|
|
226
225
|
case 'NZ':
|
|
227
|
-
return this.getNewZealandDutyTaxMessge(
|
|
226
|
+
return this.getNewZealandDutyTaxMessge(localization.localizationStore.countryLandedCost);
|
|
228
227
|
default:
|
|
229
228
|
// show nothing
|
|
230
229
|
return null;
|
|
@@ -251,7 +250,7 @@ const ZonosHelloDialog = class {
|
|
|
251
250
|
}
|
|
252
251
|
render() {
|
|
253
252
|
var _a;
|
|
254
|
-
const { selectedCountryCode } =
|
|
253
|
+
const { selectedCountryCode } = localization.localizationStore;
|
|
255
254
|
const hasInclusivePrices = this.hasInclusivePrices();
|
|
256
255
|
const inclusivePriceMessage = this.getInclusivePriceMessage();
|
|
257
256
|
// If deminimis is undefined or null, assume it's $0
|
|
@@ -263,27 +262,27 @@ const ZonosHelloDialog = class {
|
|
|
263
262
|
const animateLeft = this.animateFromLeftOverride ||
|
|
264
263
|
(this.dialogRef && getHasMoreSpaceOnRight.getHasMoreSpaceOnRight(this.dialogRef));
|
|
265
264
|
const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
|
|
266
|
-
const { customMessages } =
|
|
267
|
-
const welcomeMessage =
|
|
265
|
+
const { customMessages } = localization.localizationStore;
|
|
266
|
+
const welcomeMessage = localization.translate('Welcome to [storeName]', {
|
|
268
267
|
storeName: zonosStore.zonosStore.organizationName,
|
|
269
268
|
});
|
|
270
269
|
const defaultMessageStr = ((_a = customMessages.find(x => x.pageName === 'hello_default')) === null || _a === void 0 ? void 0 : _a.message) ||
|
|
271
|
-
|
|
270
|
+
localization.translate('Know about duties and taxes before you buy. Shop with confidence!');
|
|
272
271
|
const defaultMessage = formatStringWithLinks.formatStringWithLinks(defaultMessageStr);
|
|
273
272
|
const currentPage = this.getCurrentPageEnum();
|
|
274
273
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
275
|
-
return (index.h(index.Host, { key: '
|
|
274
|
+
return (index.h(index.Host, { key: '7b6752f327fdefb40d272d30d50a5fd208ff69a6', class: "zonos--elements" }, index.h("div", { key: 'b03b78ddfb3a0d6cedb156161fd82ebe45926773', class: classes.classes([
|
|
276
275
|
'zonos--hello-dialog',
|
|
277
276
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
278
277
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
279
278
|
!!this.mobileLocationOverride &&
|
|
280
279
|
'zonos--hello-dialog-mobile-override',
|
|
281
280
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
282
|
-
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (index.h("div", { key: '
|
|
281
|
+
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (index.h("div", { key: '367b5a0158679001cb3004d5d965a518cdc3b8ce' }, index.h("div", { key: '01dd9b2df5b20e61764274a6405118a7b42019f3', class: "zonos--hello-dialog-content" }, index.h("zonos-button", { key: 'ed49fe9a95fd6ace11669ee194d90eaae951d938', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), index.h("zonos-v-stack", { key: '23d391b8f4a13a1b077333f7ac788306dbeb98d6', spacing: 24 }, index.h("zonos-country-flag", { key: '24c6682b66fe5aa5061bab0b260d6c6fed724f52', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), index.h("zonos-v-stack", { key: 'fcb2717fa3403337b507f64adb557bd300841a41', class: "zonos--hello-dialog-header", spacing: 4 }, index.h("zonos-text", { key: '013fbda529816a2a1f22fc9d524d087fd69145c8', type: "boldSubheader" }, welcomeMessage), index.h("zonos-text", { key: '2134a015a6e22f6e02db8935150055b04620eed8', innerHTML: defaultMessage, textColor: "gray-800" })), index.h("zonos-v-stack", { key: '67030faaca46fea72230037b594eb3d0abb18acb', spacing: 8 }, this.restrictedItems.map(item => {
|
|
283
282
|
var _a;
|
|
284
283
|
return item && (index.h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (index.h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
285
|
-
}), index.h("zonos-card", { key: '
|
|
286
|
-
additionalInformation.map(info => (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), index.h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { key: '
|
|
284
|
+
}), index.h("zonos-card", { key: '21d50e218fd560e137b68e6d2a16edf118d18148', spacing: "12px" }, index.h("zonos-v-stack", { key: '70c333afd352aee4a92b47b58c267ec5c6ff122c', spacing: 12 }, hasInclusivePrices ? (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), index.h("zonos-text", null, inclusivePriceMessage))) : (index.h(index.Fragment, null, index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), index.h("zonos-text", null, dutyDeMinimisMessage)), index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), index.h("zonos-text", null, taxDeMinimisMessage)))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
285
|
+
additionalInformation.map(info => (index.h("div", { class: "zonos--flex-message" }, index.h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country", content: BagIcon }), index.h("zonos-text", { innerHTML: info })))))), filteredMessages.map(x => (index.h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), index.h("zonos-hello-dialog-footer", { key: '7fa2a3e7646668c37ad2026dcfe0d59d6fd350b8', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (index.h("div", { key: '9a59a41f8ffbef2361ada0d5390708232c829026' }, index.h("zonos-country-select", { key: '3f10795b4eb5695e9848e2c69611f1a4953f5370', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (index.h("div", { key: 'c4aa8b2d533e6735a587fc8c7eb217f52e1fc5c9' }, index.h("zonos-language-select", { key: 'eb75fbe3e7de95b0459d559ac7ee233b77873545', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
287
286
|
}
|
|
288
287
|
static get assetsDirs() { return ["assets"]; }
|
|
289
288
|
static get watchers() { return {
|
|
@@ -3,14 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const debounce = require('./debounce-
|
|
7
|
-
const
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const debounce = require('./debounce-94e1b7ff.js');
|
|
7
|
+
const localization = require('./localization-2f17c95f.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-9264749e.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-969d05d8.js');
|
|
11
11
|
const getHasMoreSpaceOnRight = require('./getHasMoreSpaceOnRight-4c94667f.js');
|
|
12
|
-
require('./
|
|
13
|
-
require('./getBorderRadius-3d0a563e.js');
|
|
12
|
+
require('./VarianceTest-0cb1e118.js');
|
|
14
13
|
|
|
15
14
|
const checkItemRestrictions = async ({ items, shipFrom, shipTo, }) => {
|
|
16
15
|
var _a;
|
|
@@ -31,7 +30,7 @@ const detectItemRestrictions = async (newProducts) => {
|
|
|
31
30
|
if (!newProducts.length) {
|
|
32
31
|
return [];
|
|
33
32
|
}
|
|
34
|
-
const { selectedCountryCode } =
|
|
33
|
+
const { selectedCountryCode } = localization.localizationStore;
|
|
35
34
|
if (!selectedCountryCode) {
|
|
36
35
|
handleFetch.logError('Hello could not check item restrictions - No country code selected');
|
|
37
36
|
return [];
|
|
@@ -82,11 +81,11 @@ const getProductsOnPage = () => {
|
|
|
82
81
|
handleFetch.log(`Hello could not check item restrictions - must provide title and description selectors.`);
|
|
83
82
|
}
|
|
84
83
|
const titleNodes = (productTitleElementSelector &&
|
|
85
|
-
|
|
84
|
+
localization.isValidSelector(productTitleElementSelector) &&
|
|
86
85
|
document.querySelectorAll(productTitleElementSelector)) ||
|
|
87
86
|
[];
|
|
88
87
|
const descriptionNodes = (productDescriptionElementSelector &&
|
|
89
|
-
|
|
88
|
+
localization.isValidSelector(productDescriptionElementSelector) &&
|
|
90
89
|
document.querySelectorAll(productDescriptionElementSelector)) ||
|
|
91
90
|
[];
|
|
92
91
|
if (titleNodes.length !== descriptionNodes.length) {
|
|
@@ -97,7 +96,7 @@ const getProductsOnPage = () => {
|
|
|
97
96
|
const shouldDisableCart = restrictionBehavior === 'RESTRICT_AND_BLOCK';
|
|
98
97
|
const cartButtonNodes = (shouldDisableCart &&
|
|
99
98
|
productAddToCartElementSelector &&
|
|
100
|
-
|
|
99
|
+
localization.isValidSelector(productAddToCartElementSelector) &&
|
|
101
100
|
document.querySelectorAll(productAddToCartElementSelector)) ||
|
|
102
101
|
[];
|
|
103
102
|
if (shouldDisableCart && cartButtonNodes.length !== descriptionNodes.length) {
|
|
@@ -132,20 +131,20 @@ const ZonosHello = class {
|
|
|
132
131
|
const isRestrictionPage = zonosStore.zonosStore.currentHelloPage === 'productDetail' ||
|
|
133
132
|
zonosStore.zonosStore.currentHelloPage === 'productList';
|
|
134
133
|
if (isRestrictionPage && this.allRestrictedItems.length) {
|
|
135
|
-
const clickMessage =
|
|
134
|
+
const clickMessage = localization.translate('click to learn more');
|
|
136
135
|
const restrictMessage = zonosStore.zonosStore.currentHelloPage === 'productDetail'
|
|
137
|
-
?
|
|
138
|
-
:
|
|
136
|
+
? localization.translate('Restricted item')
|
|
137
|
+
: localization.translate('Restricted items found');
|
|
139
138
|
return `${restrictMessage} - ${clickMessage}`;
|
|
140
139
|
}
|
|
141
140
|
switch (zonosStore.zonosStore.currentHelloPage) {
|
|
142
141
|
case 'cart':
|
|
143
|
-
return
|
|
142
|
+
return localization.translate(`Prepay duties and taxes at checkout`);
|
|
144
143
|
case 'productList':
|
|
145
144
|
case 'productDetail':
|
|
146
|
-
return
|
|
145
|
+
return localization.translate(`See duty and tax thresholds`);
|
|
147
146
|
default:
|
|
148
|
-
return
|
|
147
|
+
return localization.translate('Welcome to [storeName]', {
|
|
149
148
|
storeName: organizationName,
|
|
150
149
|
});
|
|
151
150
|
}
|
|
@@ -248,9 +247,9 @@ const ZonosHello = class {
|
|
|
248
247
|
setInterval(() => {
|
|
249
248
|
if (window.location.href !== this.initialUrl) {
|
|
250
249
|
const prevUrl = this.initialUrl && new URL(this.initialUrl);
|
|
251
|
-
const initialZonosCountry = prevUrl &&
|
|
250
|
+
const initialZonosCountry = prevUrl && localization.getZCountryUrlParam(prevUrl.searchParams);
|
|
252
251
|
// If the zCountry url param changes, reset current item restriction tracking
|
|
253
|
-
if (initialZonosCountry !==
|
|
252
|
+
if (initialZonosCountry !== localization.localizationStore.selectedCountryCode) {
|
|
254
253
|
this.allFoundProducts = [];
|
|
255
254
|
this.allRestrictedItems = [];
|
|
256
255
|
this.productsOnPage = [];
|
|
@@ -258,9 +257,9 @@ const ZonosHello = class {
|
|
|
258
257
|
this.initialUrl = window.location.href;
|
|
259
258
|
zonosStore.zonosStore.currentHelloPage = getCurrentHelloLocalePage();
|
|
260
259
|
const currentUrl = new URL(window.location.href);
|
|
261
|
-
const zCountry =
|
|
260
|
+
const zCountry = localization.getZCountryUrlParam(currentUrl.searchParams);
|
|
262
261
|
if (!zCountry) {
|
|
263
|
-
|
|
262
|
+
localization.setZCountryUrlParam(localization.localizationStore.selectedCountryCode);
|
|
264
263
|
return;
|
|
265
264
|
}
|
|
266
265
|
void this.reloadHelloData();
|
|
@@ -283,24 +282,24 @@ const ZonosHello = class {
|
|
|
283
282
|
}
|
|
284
283
|
};
|
|
285
284
|
this.shouldRenderHello = (showLog = true) => {
|
|
286
|
-
if (!
|
|
285
|
+
if (!localization.localizationStore.localizationLoaded) {
|
|
287
286
|
return false;
|
|
288
287
|
}
|
|
289
288
|
const { showForCountries } = zonosStore.zonosStore.helloSettings;
|
|
290
289
|
if (showLog) {
|
|
291
|
-
if (!
|
|
290
|
+
if (!localization.localizationStore.isShippableCountry) {
|
|
292
291
|
handleFetch.log(`Hello: not shippable country - Show for countries: ${showForCountries}`);
|
|
293
292
|
}
|
|
294
293
|
}
|
|
295
294
|
// if localization is loaded and the localization is not a shippable country, keep the original click event
|
|
296
295
|
if (showForCountries === 'ONLY_SHIPPABLE') {
|
|
297
|
-
return
|
|
296
|
+
return localization.localizationStore.isShippableCountry;
|
|
298
297
|
}
|
|
299
298
|
// if user wants to show hello for all countries
|
|
300
299
|
if (showForCountries === 'ALL') {
|
|
301
300
|
return true;
|
|
302
301
|
}
|
|
303
|
-
return showForCountries === null || showForCountries === void 0 ? void 0 : showForCountries.includes(
|
|
302
|
+
return showForCountries === null || showForCountries === void 0 ? void 0 : showForCountries.includes(localization.localizationStore.selectedCountryCode || '');
|
|
304
303
|
};
|
|
305
304
|
this.mobileLocationOverride = undefined;
|
|
306
305
|
this.animateFromLeftOverride = undefined;
|
|
@@ -320,7 +319,7 @@ const ZonosHello = class {
|
|
|
320
319
|
* Get the country list the hello widget's country select is using
|
|
321
320
|
*/
|
|
322
321
|
async getCountryList() {
|
|
323
|
-
return
|
|
322
|
+
return localization.localizationStore.helloCountryList;
|
|
324
323
|
}
|
|
325
324
|
componentWillLoad() {
|
|
326
325
|
const initInterval = setInterval(async () => {
|
|
@@ -346,32 +345,32 @@ const ZonosHello = class {
|
|
|
346
345
|
// do nothing if currency behavior is disabled
|
|
347
346
|
return;
|
|
348
347
|
}
|
|
349
|
-
if (!
|
|
348
|
+
if (!localization.localizationStore.exchangeRate) {
|
|
350
349
|
handleFetch.log('Could not display currency. Exchange rate and format data is not available.', 'warn');
|
|
351
350
|
return;
|
|
352
351
|
}
|
|
353
|
-
|
|
352
|
+
localization.currencyDisplay();
|
|
354
353
|
}
|
|
355
354
|
/**
|
|
356
355
|
* This method will call convert and format, and return the converted and formatted string
|
|
357
356
|
* @returns string
|
|
358
357
|
*/
|
|
359
358
|
async convertAndFormat(value) {
|
|
360
|
-
return
|
|
359
|
+
return localization.currencyConvertAndFormat(value);
|
|
361
360
|
}
|
|
362
361
|
/**
|
|
363
362
|
* This method will convert the currency and return the converted value
|
|
364
363
|
* @returns number
|
|
365
364
|
*/
|
|
366
365
|
async convert(value) {
|
|
367
|
-
return
|
|
366
|
+
return localization.currencyConvert(value);
|
|
368
367
|
}
|
|
369
368
|
/**
|
|
370
369
|
* This method will format the currency and return the formatted string
|
|
371
370
|
* @returns number
|
|
372
371
|
*/
|
|
373
372
|
async format(value) {
|
|
374
|
-
return
|
|
373
|
+
return localization.currencyFormat({ amount: value });
|
|
375
374
|
}
|
|
376
375
|
/**
|
|
377
376
|
* This method show the hello dialog
|
|
@@ -393,7 +392,7 @@ const ZonosHello = class {
|
|
|
393
392
|
return;
|
|
394
393
|
}
|
|
395
394
|
// Should only trigger once when hello is showing up on the page
|
|
396
|
-
if (
|
|
395
|
+
if (localization.localizationStore.selectedCountryCode &&
|
|
397
396
|
typeof zonosStore.zonosStore.helloSettings.onInitSuccess === 'function') {
|
|
398
397
|
this.isHelloWidgetRendered = true;
|
|
399
398
|
void ((_b = (_a = zonosStore.zonosStore.helloSettings).onInitSuccess) === null || _b === void 0 ? void 0 : _b.call(_a, {
|
|
@@ -457,7 +456,7 @@ const ZonosHello = class {
|
|
|
457
456
|
handleFetch.log('Hello is excluded on this url', 'warn');
|
|
458
457
|
return null;
|
|
459
458
|
}
|
|
460
|
-
const { selectedCountryCode, targetCurrency } =
|
|
459
|
+
const { selectedCountryCode, targetCurrency } = localization.localizationStore;
|
|
461
460
|
const { isOnLeft, isOnTop, shouldFloat } = this.getHelloLocation();
|
|
462
461
|
const appearanceSettings = zonosStore.mergeConfig(zonosStore.zonosStore.appearance, this.appearanceSettingsOverride || null);
|
|
463
462
|
const { theme } = appearanceSettings;
|
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-9264749e.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-8d3b1049.js');
|
|
9
|
+
require('./VarianceTest-0cb1e118.js');
|
|
9
10
|
|
|
10
11
|
const zonosInputCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--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{margin:1px;}:host .zonos--label-wrapper{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:100%;width:100%;background:var(--zonos-elements-input-background);border-radius:var(--zonos--border-radius);border:var(--zonos-elements-border)}:host .zonos--label-wrapper:hover{border:1px solid var(--zonos-elements-gray-300)}:host .zonos--floated-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos-elements-input-background);border:0;-ms-flex-order:2;order:2;font-weight:500}:host .zonos--floated-input :-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}:host .zonos--floated-input :-internal-autofill-selected+label+div{background-color:#e8f0fe}:host .zonos--floated-input.has-label{padding:16px 4px 8px 16px}:host .zonos--floated-input.has-label.has-input-prefix{padding-left:0}:host .zonos--floated-input.has-label.has-input-prefix+.zonos--floated-label::before{margin-left:0}:host .zonos--floated-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}:host .zonos--floated-input:focus{outline:none}:host .zonos--floated-input:focus+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-blue);box-shadow:var(--zonos-elements-glow-blue)}:host .zonos--floated-input.has-error+.zonos--floated-label::after{-webkit-box-shadow:var(--zonos-elements-glow-error);box-shadow:var(--zonos-elements-glow-error)}:host .zonos--floated-input.has-content::-webkit-input-placeholder,:host .zonos--floated-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-moz-placeholder,:host .zonos--floated-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content:-ms-input-placeholder,:host .zonos--floated-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::-ms-input-placeholder,:host .zonos--floated-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content::placeholder,:host .zonos--floated-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}:host .zonos--floated-input.has-content+.zonos--floated-label::before,:host .zonos--floated-input:focus+.zonos--floated-label::before{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}:host .zonos--floated-input:-webkit-autofill,:host .zonos--floated-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}:host .zonos--floated-label{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}:host .zonos--floated-label::before{content:attr(data-label);color:var(--zonos-elements-gray-800);position:absolute;font-size:var(--zonos-elements-font-size-base);line-height:var(--zonos-elements-font-size-base);display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - var(--zonos-elements-font-size-base) / 2);z-index:1}:host .zonos--floated-label::after{content:\"\";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}:host .disabled .zonos--floated-label{pointer-events:inherit}:host .disabled .zonos--floated-label::after{cursor:not-allowed;z-index:1}:host(.sm){height:calc(var(--zonos-elements-size-sm) - 2px)}:host(.sm) .zonos--floated-input.has-label{padding-top:13px;padding-bottom:0}:host(.sm) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.sm) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:2px}:host(.md){height:calc(var(--zonos-elements-size-md) - 2px)}:host(.md) .zonos--floated-input.has-label{padding-top:20px}:host(.md) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.md) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:6px}:host(.lg){height:calc(var(--zonos-elements-size-lg) - 2px)}:host(.lg) .zonos--floated-input.has-label:focus+.zonos--floated-label::before,:host(.lg) .zonos--floated-input.has-label.has-content+.zonos--floated-label::before{top:10px}:host(.xl){height:calc(var(--zonos-elements-size-xl) - 2px)}:host(.xl) .zonos--floated-input.has-label{padding-bottom:2px}";
|
|
11
12
|
const ZonosInputStyle0 = zonosInputCss;
|
|
@@ -3,12 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const localization = require('./localization-2f17c95f.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-9264749e.js');
|
|
8
8
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
9
9
|
require('./handleFetch-969d05d8.js');
|
|
10
|
-
require('./
|
|
11
|
-
require('./getBorderRadius-3d0a563e.js');
|
|
10
|
+
require('./VarianceTest-0cb1e118.js');
|
|
12
11
|
|
|
13
12
|
const GreenCheckDuotoneIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
14
13
|
<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>
|
|
@@ -24,16 +23,16 @@ const ZonosLanguageSelect = class {
|
|
|
24
23
|
index.registerInstance(this, hostRef);
|
|
25
24
|
this.languageSelected = (languageCode) => {
|
|
26
25
|
// mutate the selected language code in store
|
|
27
|
-
void
|
|
26
|
+
void localization.localizationStoreUpdateSelectedLocale(languageCode);
|
|
28
27
|
this.handleOnClose();
|
|
29
28
|
};
|
|
30
29
|
this.handleOnClose = () => { };
|
|
31
30
|
}
|
|
32
31
|
render() {
|
|
33
|
-
const { selectedLocale } =
|
|
32
|
+
const { selectedLocale } = localization.localizationStore;
|
|
34
33
|
return (index.h(index.Host, { key: 'cc711dba7371852eab6e20994389ae3b95bb3be7', class: "zonos--elements", style: {
|
|
35
34
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
36
|
-
} }, index.h("div", { key: '47135e2b7363a3179139a7b8e23cb22435ce3299', class: "zonos--language-select" }, index.h("zonos-select-dialog-header", { key: '3bf830e585fa6478f560c57dfa978721af47ad19', handleOnClose: () => this.handleOnClose(), label:
|
|
35
|
+
} }, index.h("div", { key: '47135e2b7363a3179139a7b8e23cb22435ce3299', class: "zonos--language-select" }, index.h("zonos-select-dialog-header", { key: '3bf830e585fa6478f560c57dfa978721af47ad19', handleOnClose: () => this.handleOnClose(), label: localization.translate('Select a language') }), index.h("div", { key: 'f693b231755087ec849f5a759b2dc43e2695b24f', class: "zonos--language-select-content" }, ILanguage.languages.map(language => (index.h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, index.h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (index.h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
|
|
37
36
|
}
|
|
38
37
|
};
|
|
39
38
|
ZonosLanguageSelect.style = ZonosLanguageSelectStyle0;
|
|
@@ -50,9 +49,9 @@ const ZonosSelectDialogHeader = class {
|
|
|
50
49
|
this.label = '';
|
|
51
50
|
}
|
|
52
51
|
render() {
|
|
53
|
-
return (index.h(index.Host, { key: '
|
|
52
|
+
return (index.h(index.Host, { key: '184508c2af24eedda1e4a59db89f787cd71a345f', class: "zonos--elements", style: {
|
|
54
53
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
55
|
-
} }, index.h("zonos-v-stack", { key: '
|
|
54
|
+
} }, index.h("zonos-v-stack", { key: '28bd290a2307c13e93036ee988f71bba87e76b19', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, index.h("div", { key: '49c2a1c0c44d9950907f47d90c9a34a83e5158da', class: "zonos--select-dialog-header" }, index.h("zonos-text", { key: '244ef10f5ee38d4a056ad6c076185d42ca3cd174', type: "boldLabel" }, this.label), index.h("zonos-button", { key: 'dab99b609f1a3250f73e2f25b837c9300a964090', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), index.h("slot", { key: 'b2fdb25cdc7c6382ec8d171aa14f1f4b7f33a4e8' }))));
|
|
56
55
|
}
|
|
57
56
|
};
|
|
58
57
|
ZonosSelectDialogHeader.style = ZonosSelectDialogHeaderStyle0;
|
|
@@ -3,8 +3,9 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-9264749e.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
+
require('./VarianceTest-0cb1e118.js');
|
|
8
9
|
|
|
9
10
|
const zonosLogoCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host img{-webkit-filter:var(--zonos--filter-color);filter:var(--zonos--filter-color);width:var(--zonos--width)}";
|
|
10
11
|
const ZonosLogoStyle0 = zonosLogoCss;
|
|
@@ -19,11 +20,11 @@ const ZonosLogo = class {
|
|
|
19
20
|
const filterColor = this.theme === 'DARK'
|
|
20
21
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
21
22
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
22
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: 'c41a277084d4880e1f452a1f7ca097ad3507059f', class: classes.classes(['zonos--elements zonos--logo']), style: {
|
|
23
24
|
'--zonos--filter-color': filterColor,
|
|
24
25
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
25
26
|
'--zonos--width': this.width,
|
|
26
|
-
} }, index.h("img", { key: '
|
|
27
|
+
} }, index.h("img", { key: '01361446c08074a8f8b4cac206a999e381d5d903', alt: "Zonos Logo", src: index.getAssetPath('./assets/ZonosLogo.png') })));
|
|
27
28
|
}
|
|
28
29
|
static get assetsDirs() { return ["assets"]; }
|
|
29
30
|
};
|
|
@@ -3,10 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-0993f42d.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-9264749e.js');
|
|
7
7
|
const classes = require('./classes-b7918f56.js');
|
|
8
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const getBorderRadius = require('./getBorderRadius-8d3b1049.js');
|
|
9
9
|
const isColorVariable = require('./isColorVariable-525dbfa7.js');
|
|
10
|
+
require('./VarianceTest-0cb1e118.js');
|
|
10
11
|
|
|
11
12
|
const zonosShippingRichRadioCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--zonos--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--zonos--selected-border-color, var(--zonos-elements-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";
|
|
12
13
|
const ZonosShippingRichRadioStyle0 = zonosShippingRichRadioCss;
|