@zonos/elements 1.3.230 → 1.3.232
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-ad82a680.js → cart-bc615014.js} +9 -5
- package/dist/cjs/{debounce-2c9f3f1e.js → debounce-815d1517.js} +1 -1
- package/dist/cjs/{getBorderRadius-c7d9f676.js → getBorderRadius-2ef1170d.js} +1 -1
- package/dist/cjs/hasInclusivePrice-84145546.js +24 -0
- package/dist/cjs/{index-1c710d00.js → index-69fa8852.js} +352 -4
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{isDarkColor-994c38e4.js → isDarkColor-878e600e.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{localization-31e3dfe3.js → localization-39516612.js} +119 -31
- package/dist/cjs/{paypal-88b5e878.js → paypal-1d6f1a71.js} +5 -5
- package/dist/cjs/{placeTestOrder-6aefbf9c.js → placeTestOrder-a5469e40.js} +11 -7
- package/dist/cjs/{renderFallback-87c908ad.js → renderFallback-c2576fbe.js} +4 -4
- package/dist/cjs/{translationStore-b8b25e9d.js → translationStore-08d3ff9c.js} +602 -362
- package/dist/cjs/{updateCheckoutSessionAttributes-a4899e90.js → updateCheckoutSessionAttributes-3a1db9de.js} +1 -1
- package/dist/cjs/zonos-address_11.cjs.entry.js +31 -15
- package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
- package/dist/cjs/zonos-banner_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-cart-items_13.cjs.entry.js +193 -25
- package/dist/cjs/zonos-checkout.cjs.entry.js +14 -11
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -7
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +10 -10
- package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-controller.cjs.entry.js +16 -9
- package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +12 -9
- package/dist/cjs/zonos-elements.cjs.js +2 -2
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +9 -9
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +57 -47
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/cjs/{zonosStore-5d489c65.js → zonosStore-37a4b4f4.js} +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +68 -7
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +4 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +115 -6
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +2 -1
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +7 -4
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +54 -43
- package/dist/collection/components/main/zonos-controller.js +5 -2
- package/dist/collection/components/store/hello/localization.js +47 -16
- package/dist/collection/components/store/translationStore/strings.arabic.js +30 -18
- package/dist/collection/components/store/translationStore/strings.base.js +30 -18
- package/dist/collection/components/store/translationStore/strings.chinese.js +30 -18
- package/dist/collection/components/store/translationStore/strings.danish.js +30 -18
- package/dist/collection/components/store/translationStore/strings.dutch.js +30 -18
- package/dist/collection/components/store/translationStore/strings.french.js +30 -18
- package/dist/collection/components/store/translationStore/strings.german.js +30 -18
- package/dist/collection/components/store/translationStore/strings.hebrew.js +30 -18
- package/dist/collection/components/store/translationStore/strings.indonesian.js +30 -18
- package/dist/collection/components/store/translationStore/strings.italian.js +30 -18
- package/dist/collection/components/store/translationStore/strings.japanese.js +30 -18
- package/dist/collection/components/store/translationStore/strings.korean.js +30 -18
- package/dist/collection/components/store/translationStore/strings.norwegian.js +30 -18
- package/dist/collection/components/store/translationStore/strings.polish.js +30 -18
- package/dist/collection/components/store/translationStore/strings.portuguese.js +30 -18
- package/dist/collection/components/store/translationStore/strings.russian.js +30 -18
- package/dist/collection/components/store/translationStore/strings.spanish.js +30 -18
- package/dist/collection/components/store/translationStore/strings.swedish.js +30 -18
- package/dist/collection/components/store/translationStore/strings.turkish.js +30 -18
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +30 -18
- package/dist/collection/components/store/translationStore.js +1 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- 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 +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +18 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/{getInclusivePricing.js → getInclusivePriceConfigurations.js} +1 -1
- package/dist/collection/components/utils/api/getLocalization.js +2 -5
- package/dist/collection/components/utils/api/getZonosSettings.js +5 -0
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +6 -0
- package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -5
- package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +4 -1
- package/dist/collection/components/utils/getOverridenZCountry.js +11 -0
- package/dist/collection/components/utils/hasInclusivePrice.js +10 -0
- package/dist/collection/components/utils/hello/currencyConversion/applyInclusiveEffectiveRate.js +10 -0
- package/dist/collection/components/utils/hello/currencyConversion/applyInclusivePrice.js +39 -0
- package/dist/collection/components/utils/hello/currencyConversion/calculateInclusivePrice.js +32 -0
- package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +11 -6
- package/dist/collection/constants/key.js +9 -0
- package/dist/collection/types/InclusivePricing.js +1 -0
- package/dist/collection/types/InputFieldLabel.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +574 -3
- package/dist/collection/types/index.js +1 -0
- package/dist/collection/utils/performBlurCurrency.js +38 -5
- package/dist/esm/{cart-c74f9aaa.js → cart-14f305b3.js} +9 -5
- package/dist/esm/{debounce-f081e4d8.js → debounce-c4785346.js} +1 -1
- package/dist/esm/{getBorderRadius-6281d902.js → getBorderRadius-877f6389.js} +1 -1
- package/dist/esm/hasInclusivePrice-0eda8ba9.js +20 -0
- package/dist/esm/{index-55a03023.js → index-0bbe9693.js} +352 -4
- package/dist/esm/index.js +7 -7
- package/dist/esm/{isDarkColor-83e0c27e.js → isDarkColor-9ddd90cc.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{localization-106476cb.js → localization-c5029ffc.js} +118 -32
- package/dist/esm/{paypal-bf3a2bdd.js → paypal-fded8844.js} +5 -5
- package/dist/esm/{placeTestOrder-891295e8.js → placeTestOrder-2250f719.js} +11 -7
- package/dist/esm/{renderFallback-ce0e238a.js → renderFallback-dbf1e3ae.js} +4 -4
- package/dist/esm/{translationStore-766b7521.js → translationStore-690c4e04.js} +602 -362
- package/dist/esm/{updateCheckoutSessionAttributes-160720f6.js → updateCheckoutSessionAttributes-047a6cd4.js} +1 -1
- package/dist/esm/zonos-address_11.entry.js +31 -15
- package/dist/esm/zonos-badge.entry.js +2 -2
- package/dist/esm/zonos-banner_2.entry.js +3 -3
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-cart-items_13.entry.js +193 -25
- package/dist/esm/zonos-checkout.entry.js +14 -11
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -7
- package/dist/esm/zonos-collect-finish_6.entry.js +10 -10
- package/dist/esm/zonos-collect.entry.js +9 -9
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-confirm-dialog_2.entry.js +4 -4
- package/dist/esm/zonos-controller.entry.js +16 -9
- package/dist/esm/zonos-country-flag.entry.js +4 -4
- package/dist/esm/zonos-country-select_4.entry.js +12 -9
- package/dist/esm/zonos-elements.js +3 -3
- package/dist/esm/zonos-empty-state-payment_4.entry.js +9 -9
- package/dist/esm/zonos-hello-dialog.entry.js +57 -47
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +3 -3
- package/dist/esm/zonos-language-select_2.entry.js +4 -4
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm/{zonosStore-e3d0493a.js → zonosStore-b434e436.js} +1 -1
- package/dist/esm-es5/cart-14f305b3.js +1 -0
- package/dist/esm-es5/{debounce-f081e4d8.js → debounce-c4785346.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-6281d902.js → getBorderRadius-877f6389.js} +1 -1
- package/dist/esm-es5/hasInclusivePrice-0eda8ba9.js +1 -0
- package/dist/esm-es5/index-0bbe9693.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-83e0c27e.js → isDarkColor-9ddd90cc.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-c5029ffc.js +1 -0
- package/dist/esm-es5/{paypal-bf3a2bdd.js → paypal-fded8844.js} +1 -1
- package/dist/esm-es5/placeTestOrder-2250f719.js +1 -0
- package/dist/esm-es5/{renderFallback-ce0e238a.js → renderFallback-dbf1e3ae.js} +1 -1
- package/dist/esm-es5/translationStore-690c4e04.js +1 -0
- package/dist/esm-es5/{updateCheckoutSessionAttributes-160720f6.js → updateCheckoutSessionAttributes-047a6cd4.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_2.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.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-e3d0493a.js → zonosStore-b434e436.js} +1 -1
- package/dist/scripts/blurCurrencyOnInit.js +1 -1
- package/dist/scripts/index.d.ts +62 -8
- 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-cart-subtotal/zonos-cart-subtotal.d.ts +2 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +11 -0
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +1 -1
- package/dist/types/components/store/checkout/cart.d.ts +3 -0
- package/dist/types/components/store/hello/localization.d.ts +14 -3
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.base.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.danish.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.french.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.german.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.italian.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.korean.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.polish.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.russian.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +27 -15
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +27 -15
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/api/getInclusivePriceConfigurations.d.ts +2 -0
- package/dist/types/components/utils/getOverridenZCountry.d.ts +5 -0
- package/dist/types/components/utils/hasInclusivePrice.d.ts +1 -0
- package/dist/types/components/utils/hello/currencyConversion/applyInclusiveEffectiveRate.d.ts +1 -0
- package/dist/types/components/utils/hello/currencyConversion/applyInclusivePrice.d.ts +1 -0
- package/dist/types/components/utils/hello/currencyConversion/calculateInclusivePrice.d.ts +27 -0
- package/dist/types/constants/key.d.ts +9 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +1 -0
- package/dist/types/types/InclusivePricing.d.ts +13 -0
- package/dist/types/types/InputFieldLabel.d.ts +1 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +1 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +2 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +686 -53
- package/dist/types/types/generated/graphql.internal.types.ts +740 -52
- package/dist/types/types/index.d.ts +1 -0
- package/dist/types/types/utils/ZonosSettings.d.ts +2 -0
- package/dist/types/utils/performBlurCurrency.d.ts +12 -0
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-b91df44b.system.entry.js → p-00ac999f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4523b982.entry.js → p-00ec22b2.entry.js} +1 -1
- package/dist/zonos-elements/{p-bd373de0.system.entry.js → p-03ff7b01.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5f7a9b69.system.entry.js → p-0a90dd80.system.entry.js} +1 -1
- package/dist/zonos-elements/p-100f6a88.system.entry.js +1 -0
- package/dist/zonos-elements/{p-cf56b990.entry.js → p-143d706b.entry.js} +1 -1
- package/dist/zonos-elements/p-14d7489d.js +1 -0
- package/dist/zonos-elements/p-1d5aa016.system.js +1 -0
- package/dist/zonos-elements/p-1eae4987.entry.js +1 -0
- package/dist/zonos-elements/p-1f894984.js +1 -0
- package/dist/zonos-elements/{p-6c8e4f01.system.entry.js → p-23b45714.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-433d76b4.system.js → p-23d497e3.system.js} +1 -1
- package/dist/zonos-elements/p-2557b96b.js +1 -0
- package/dist/zonos-elements/{p-f912e9c3.entry.js → p-27874c22.entry.js} +1 -1
- package/dist/zonos-elements/{p-b0a75761.entry.js → p-2ca8b037.entry.js} +1 -1
- package/dist/zonos-elements/p-2dbcecf4.entry.js +1 -0
- package/dist/zonos-elements/p-30e835a8.entry.js +1 -0
- package/dist/zonos-elements/{p-236e0144.system.entry.js → p-316f9052.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5608ac9d.entry.js → p-3185968f.entry.js} +1 -1
- package/dist/zonos-elements/{p-fa90adb8.entry.js → p-31975752.entry.js} +1 -1
- package/dist/zonos-elements/{p-6bab9096.entry.js → p-31af91f0.entry.js} +1 -1
- package/dist/zonos-elements/{p-38f42f10.system.entry.js → p-452fb638.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c998e4ed.entry.js → p-4592ae49.entry.js} +1 -1
- package/dist/zonos-elements/p-4e41143a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f548807d.system.entry.js → p-52b87408.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cb11d11b.system.entry.js → p-540cec7e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2f7ea09.entry.js → p-55e2e4ed.entry.js} +1 -1
- package/dist/zonos-elements/p-561be3a2.system.js +1 -0
- package/dist/zonos-elements/{p-a199bb13.js → p-5762e217.js} +1 -1
- package/dist/zonos-elements/{p-e688e493.js → p-57fa64d7.js} +1 -1
- package/dist/zonos-elements/{p-360d7101.system.entry.js → p-59ebb8c7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5c680f72.js +1 -0
- package/dist/zonos-elements/{p-cbb01de9.entry.js → p-5f398c28.entry.js} +1 -1
- package/dist/zonos-elements/p-5f77d19e.js +1 -0
- package/dist/zonos-elements/p-60469388.system.entry.js +1 -0
- package/dist/zonos-elements/{p-caebc1f8.system.js → p-652e80f0.system.js} +1 -1
- package/dist/zonos-elements/{p-4da7b6a8.system.entry.js → p-6adfb3af.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2b84039a.entry.js → p-74ca7739.entry.js} +1 -1
- package/dist/zonos-elements/{p-de984173.system.js → p-767a31a8.system.js} +1 -1
- package/dist/zonos-elements/{p-38f2f63f.system.entry.js → p-770852bf.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7c705c76.system.js +1 -0
- package/dist/zonos-elements/{p-2db90c99.system.entry.js → p-81ba2820.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-964a4d85.js → p-82739127.js} +2 -2
- package/dist/zonos-elements/p-88ea9f82.entry.js +1 -0
- package/dist/zonos-elements/p-8a23bbf5.js +1 -0
- package/dist/zonos-elements/{p-10894d36.entry.js → p-905d2490.entry.js} +1 -1
- package/dist/zonos-elements/{p-24e26a2c.system.js → p-909e2bc3.system.js} +1 -1
- package/dist/zonos-elements/{p-b658c28a.entry.js → p-936b54c1.entry.js} +1 -1
- package/dist/zonos-elements/{p-288f5a5b.system.entry.js → p-93f2e1ee.system.entry.js} +1 -1
- package/dist/zonos-elements/p-989d3af9.system.js +2 -0
- package/dist/zonos-elements/{p-d96545ae.entry.js → p-9b8750f3.entry.js} +1 -1
- package/dist/zonos-elements/p-a0a4e43d.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c89e9d56.system.js → p-a25428eb.system.js} +1 -1
- package/dist/zonos-elements/{p-7a97e1cf.system.entry.js → p-a2819807.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6d423364.entry.js → p-a6e74856.entry.js} +1 -1
- package/dist/zonos-elements/p-ab41bab5.js +2 -0
- package/dist/zonos-elements/p-ae940a99.js +1 -0
- package/dist/zonos-elements/{p-dc56b469.system.entry.js → p-b1fd1ec2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7af39c98.js → p-b2a0ab4a.js} +1 -1
- package/dist/zonos-elements/{p-23f6a2fb.system.entry.js → p-b7ea5f4f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c81f6387.entry.js → p-bf9d889f.entry.js} +1 -1
- package/dist/zonos-elements/p-c1ecab92.entry.js +1 -0
- package/dist/zonos-elements/{p-81b357f7.system.js → p-c2442878.system.js} +1 -1
- package/dist/zonos-elements/{p-7e5bd9af.system.entry.js → p-c288c6da.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b4bf2f03.entry.js → p-c50cc926.entry.js} +1 -1
- package/dist/zonos-elements/{p-b6ef4a5e.system.entry.js → p-c5cb2364.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-57413c34.system.js → p-c6e3d747.system.js} +1 -1
- package/dist/zonos-elements/{p-2dc38ef3.entry.js → p-c7b658cb.entry.js} +1 -1
- package/dist/zonos-elements/p-cf765af3.system.js +1 -0
- package/dist/zonos-elements/{p-89c5164b.system.js → p-d45285aa.system.js} +1 -1
- package/dist/zonos-elements/{p-bccd49d7.system.entry.js → p-d556c6d1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1a67ae71.system.entry.js → p-db628e49.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e03e1a62.entry.js +1 -0
- package/dist/zonos-elements/{p-6f1024de.system.entry.js → p-e7874318.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e8949e7e.entry.js +1 -0
- package/dist/zonos-elements/p-ea0b5d10.system.js +1 -0
- package/dist/zonos-elements/p-eae3462c.entry.js +1 -0
- package/dist/zonos-elements/{p-b669050d.system.entry.js → p-eea0eb57.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f892595d.system.entry.js +1 -0
- package/dist/zonos-elements/{p-23c46dfa.system.js → p-f8d56ba9.system.js} +1 -1
- package/dist/zonos-elements/p-fc776473.js +1 -0
- package/dist/zonos-elements/p-fd3b46ee.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +3 -3
- package/dist/esm-es5/cart-c74f9aaa.js +0 -1
- package/dist/esm-es5/index-55a03023.js +0 -2
- package/dist/esm-es5/localization-106476cb.js +0 -1
- package/dist/esm-es5/placeTestOrder-891295e8.js +0 -1
- package/dist/esm-es5/translationStore-766b7521.js +0 -1
- package/dist/types/components/utils/api/getInclusivePricing.d.ts +0 -6
- package/dist/zonos-elements/p-053a042e.entry.js +0 -1
- package/dist/zonos-elements/p-0ffd710e.js +0 -1
- package/dist/zonos-elements/p-1d15662c.js +0 -1
- package/dist/zonos-elements/p-203c7fda.js +0 -1
- package/dist/zonos-elements/p-21b251f0.system.entry.js +0 -1
- package/dist/zonos-elements/p-225a61c4.system.entry.js +0 -1
- package/dist/zonos-elements/p-258570ce.entry.js +0 -1
- package/dist/zonos-elements/p-462f8857.entry.js +0 -1
- package/dist/zonos-elements/p-57ee34aa.system.entry.js +0 -1
- package/dist/zonos-elements/p-595668d7.system.js +0 -1
- package/dist/zonos-elements/p-5fc34563.system.js +0 -2
- package/dist/zonos-elements/p-62803534.entry.js +0 -1
- package/dist/zonos-elements/p-6497ce22.entry.js +0 -1
- package/dist/zonos-elements/p-65db3219.entry.js +0 -1
- package/dist/zonos-elements/p-783e7fa7.entry.js +0 -1
- package/dist/zonos-elements/p-9972941a.entry.js +0 -1
- package/dist/zonos-elements/p-ad7be556.system.entry.js +0 -1
- package/dist/zonos-elements/p-b30c2ad9.js +0 -2
- package/dist/zonos-elements/p-b4fe3604.system.js +0 -1
- package/dist/zonos-elements/p-b8293509.js +0 -1
- package/dist/zonos-elements/p-bdeb20cb.js +0 -1
- package/dist/zonos-elements/p-c3c3cd98.js +0 -1
- package/dist/zonos-elements/p-c6d0e87d.system.entry.js +0 -1
- package/dist/zonos-elements/p-cdaf52f4.system.js +0 -1
- package/dist/zonos-elements/p-cef1e888.system.js +0 -1
- package/dist/zonos-elements/p-eea0d8af.js +0 -1
- package/dist/zonos-elements/p-f4085c23.entry.js +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-
|
|
2
|
-
import { d as debounce_1 } from './debounce-
|
|
3
|
-
import { d as isObject_1, z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-
|
|
4
|
-
import { c as stripeStore, t as trackConversionEvent, K as extractName, B as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, e as cartStore } from './cart-
|
|
5
|
-
import { s as storageStore,
|
|
6
|
-
import { t as translate } from './translationStore-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-0bbe9693.js';
|
|
2
|
+
import { d as debounce_1 } from './debounce-c4785346.js';
|
|
3
|
+
import { d as isObject_1, z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
4
|
+
import { c as stripeStore, t as trackConversionEvent, K as extractName, B as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, e as cartStore } from './cart-14f305b3.js';
|
|
5
|
+
import { s as storageStore, p as getFallbackDefaultCountryCode, q as storageStoreOnChange, l as localizationStore } from './localization-c5029ffc.js';
|
|
6
|
+
import { t as translate } from './translationStore-690c4e04.js';
|
|
7
7
|
import { l as logError, i as isCheckoutMobile, s as sendErrorLog } from './handleFetch-a844cac1.js';
|
|
8
8
|
import { s as shouldRenderTaxIdInput, i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './shouldRenderTaxIdInput-8bc112bb.js';
|
|
9
9
|
import { c as classes } from './classes-0d95c529.js';
|
|
10
10
|
import { l as log } from './VarianceTest-572cecf5.js';
|
|
11
11
|
import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
|
|
12
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
12
|
+
import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
|
|
13
13
|
import { R as RemoveIcon$2 } from './RemoveIcon-9dc5dd1a.js';
|
|
14
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
14
|
+
import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
|
|
15
15
|
import { i as inheritAriaAttributes, a as inheritAttributes } from './helpers-2f6955b1.js';
|
|
16
16
|
|
|
17
17
|
var debounce = debounce_1,
|
|
@@ -397,7 +397,7 @@ const ZonosAddress$1 = class {
|
|
|
397
397
|
'zonos--address',
|
|
398
398
|
'zonos--elements',
|
|
399
399
|
`zonos--${this.type}-address`,
|
|
400
|
-
]) }, this.titleText && (h("zonos-text", { key: '2e666ed81597ac95d3de575a2d901d083e9100cc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '
|
|
400
|
+
]) }, this.titleText && (h("zonos-text", { key: '2e666ed81597ac95d3de575a2d901d083e9100cc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: '8ca6987aa7d70093c078e3afca20ac0b1484bd77', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '23345f2b61e387c57a363be8df8aa54ab6461a88', class: "zonos--address-component" })));
|
|
401
401
|
}
|
|
402
402
|
get el() { return getElement(this); }
|
|
403
403
|
static get watchers() { return {
|
|
@@ -559,9 +559,9 @@ const ZonosAddressSuggestions = class {
|
|
|
559
559
|
return segments;
|
|
560
560
|
}
|
|
561
561
|
render() {
|
|
562
|
-
return (h(Host, { key: '
|
|
562
|
+
return (h(Host, { key: '466084b61818244ec8b18aecad34cdf1c3ce07d0', class: "zonos--address-suggestions", role: "group", style: {
|
|
563
563
|
'--zonos--border-radius': getBorderRadius(),
|
|
564
|
-
} }, h("ul", { key: '
|
|
564
|
+
} }, h("ul", { key: '6d683213f5a4ffe06ba1292234753060a75ddf55', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: '10765017862170072ec33afae156f87c63bab39b', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '8660904e473b17ae5643aacab3d0fba3858c6632', class: "powered-by-container" }, h("zonos-text", { key: 'a310c0e5014e061470eee2c1ce17df59d5cb3cbd', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: 'a156fa8d30df760a3c87d6519a630ee5c7224525', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '634f7ea46f1f210ecd8b11711eb29e100ae95d76', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
|
|
565
565
|
this.localSuggestions = [];
|
|
566
566
|
} }))), this.localSuggestions.map(suggestion => (
|
|
567
567
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -1751,10 +1751,10 @@ const ZonosAddress = class {
|
|
|
1751
1751
|
this.country = localizationStore.selectedCountryCode;
|
|
1752
1752
|
}
|
|
1753
1753
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
1754
|
-
return (h(Host, { key: '
|
|
1754
|
+
return (h(Host, { key: 'fed5a2350a7c3f3d83e21d4538c2ab1fc41fb397', class: classes([
|
|
1755
1755
|
'zonos--address zonos--elements',
|
|
1756
1756
|
`zonos--${this.type}-address`,
|
|
1757
|
-
]) }, h("zonos-text", { key: '
|
|
1757
|
+
]) }, h("zonos-text", { key: '08a95944a1cc34b50fc7f1c3356e7853a8eb83b0', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: '7275e2aa1fe566e43fb223f68257ec0df9fbf5af', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
|
|
1758
1758
|
}
|
|
1759
1759
|
get el() { return getElement(this); }
|
|
1760
1760
|
static get watchers() { return {
|
|
@@ -1893,7 +1893,7 @@ const validateEmailValue = (value) => {
|
|
|
1893
1893
|
const zonosLinkAuthenticationCss = ".sc-zonos-link-authentication-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:16px}.sc-zonos-link-authentication-h .zonos--input-invalid.sc-zonos-link-authentication{border:2px solid var(--zonos-elements-red-600);border-radius:var(--zonos--border-radius)}";
|
|
1894
1894
|
const ZonosLinkAuthenticationStyle0 = zonosLinkAuthenticationCss;
|
|
1895
1895
|
|
|
1896
|
-
const MAX_RETRIES_INITIALIZE_LINK =
|
|
1896
|
+
const MAX_RETRIES_INITIALIZE_LINK = 51;
|
|
1897
1897
|
const ZonosLinkAuthentication = class {
|
|
1898
1898
|
constructor(hostRef) {
|
|
1899
1899
|
registerInstance(this, hostRef);
|
|
@@ -1969,6 +1969,22 @@ const ZonosLinkAuthentication = class {
|
|
|
1969
1969
|
});
|
|
1970
1970
|
stripeStore.stripeLinkElement = linkAuthenticationElement;
|
|
1971
1971
|
this.retriesInitializeLink = 0;
|
|
1972
|
+
// 10 seconds
|
|
1973
|
+
if (this.retriesInitializeLink > 11) {
|
|
1974
|
+
log('Stripe link element initialized', 'info', {
|
|
1975
|
+
retriesInitializeLink: this.retriesInitializeLink,
|
|
1976
|
+
stripe: this.stripe,
|
|
1977
|
+
});
|
|
1978
|
+
void sendErrorLog({
|
|
1979
|
+
endpoint: 'stripe-link-authentication-init-long-running',
|
|
1980
|
+
errors: [
|
|
1981
|
+
'Stripe link element initialized after 20 retries - 10 seconds',
|
|
1982
|
+
],
|
|
1983
|
+
metadata: {
|
|
1984
|
+
retriesInitializeLink: this.retriesInitializeLink,
|
|
1985
|
+
},
|
|
1986
|
+
});
|
|
1987
|
+
}
|
|
1972
1988
|
}
|
|
1973
1989
|
catch (error) {
|
|
1974
1990
|
if (error instanceof Error) {
|
|
@@ -1983,7 +1999,7 @@ const ZonosLinkAuthentication = class {
|
|
|
1983
1999
|
endpoint: 'stripe-link-authentication-init-error',
|
|
1984
2000
|
errors: [error.message],
|
|
1985
2001
|
metadata: {
|
|
1986
|
-
|
|
2002
|
+
retriesInitializeLink: this.retriesInitializeLink,
|
|
1987
2003
|
},
|
|
1988
2004
|
});
|
|
1989
2005
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-0bbe9693.js';
|
|
2
|
+
import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import './VarianceTest-572cecf5.js';
|
|
5
5
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
2
|
-
import { f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-0bbe9693.js';
|
|
2
|
+
import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
4
|
+
import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
|
|
5
5
|
import './VarianceTest-572cecf5.js';
|
|
6
6
|
|
|
7
7
|
const zonosBannerCss = ":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{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
2
|
-
import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-0bbe9693.js';
|
|
2
|
+
import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
3
3
|
import { i as inheritAriaAttributes, a as inheritAttributes } from './helpers-2f6955b1.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
5
|
+
import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
|
|
6
6
|
import { i as isColorVariable } from './isColorVariable-0a94004f.js';
|
|
7
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
7
|
+
import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
|
|
8
8
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
9
9
|
import './VarianceTest-572cecf5.js';
|
|
10
10
|
|
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
import { r as registerInstance, d as getAssetPath, h, H as Host, F as Fragment, c as createEvent, a as getElement } from './index-
|
|
2
|
-
import { e as cartStore, E as cartStoreHasOneEligibleItem, F as stripeStoreApplyPromoCode, G as stripeStoreRemovePromoCode, c as stripeStore, y as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, I as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, J as stripeStoreTranslateAddressToLatin, K as extractName, z as cartStoreOnChange, L as stripeStoreAsyncAddressUpdate, D as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo, N as cartStoreGetMethod, O as sortServiceLevelOptionsByAmount } from './cart-
|
|
3
|
-
import { t as translate } from './translationStore-
|
|
4
|
-
import { r as renderCheckoutCurrency, p as placeTestOrder } from './placeTestOrder-
|
|
1
|
+
import { r as registerInstance, d as getAssetPath, h, H as Host, F as Fragment, c as createEvent, a as getElement } from './index-0bbe9693.js';
|
|
2
|
+
import { e as cartStore, E as cartStoreHasOneEligibleItem, F as stripeStoreApplyPromoCode, G as stripeStoreRemovePromoCode, c as stripeStore, y as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, I as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, J as stripeStoreTranslateAddressToLatin, K as extractName, z as cartStoreOnChange, L as stripeStoreAsyncAddressUpdate, D as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo, N as cartStoreGetMethod, O as sortServiceLevelOptionsByAmount } from './cart-14f305b3.js';
|
|
3
|
+
import { t as translate } from './translationStore-690c4e04.js';
|
|
4
|
+
import { r as renderCheckoutCurrency, p as placeTestOrder } from './placeTestOrder-2250f719.js';
|
|
5
5
|
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-b5b18743.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-c5029ffc.js';
|
|
8
|
+
import { z as zonosStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
9
|
+
import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-0eda8ba9.js';
|
|
10
|
+
import { s as submitGtag, c as paypalStoreReset, a as paypalStore, i as isContrastColor } from './paypal-fded8844.js';
|
|
10
11
|
import { h as handleFetch, s as sendErrorLog, j as jsonParse, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
|
|
11
12
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
12
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
13
|
+
import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
|
|
13
14
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
14
15
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
15
|
-
import { i as isDarkColor, t as tinycolor } from './isDarkColor-
|
|
16
|
+
import { i as isDarkColor, t as tinycolor } from './isDarkColor-9ddd90cc.js';
|
|
16
17
|
import { i as isColorVariable } from './isColorVariable-0a94004f.js';
|
|
17
|
-
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-
|
|
18
|
+
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-047a6cd4.js';
|
|
18
19
|
import { s as shouldRenderTaxIdInput, c as containsNonLatinChars } from './shouldRenderTaxIdInput-8bc112bb.js';
|
|
19
20
|
import { e as euCountryCodes } from './TaxId-50d72254.js';
|
|
20
|
-
import './debounce-
|
|
21
|
+
import './debounce-c4785346.js';
|
|
21
22
|
|
|
22
23
|
const zonosCartItemsCss = ":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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--cart-table td{vertical-align:top}:host .zonos--cart-item-name{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}:host .zonos--cart-item-name .zonos--cart-item-quantity>*{display:inline-block}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px}";
|
|
23
24
|
const ZonosCartItemsStyle0 = zonosCartItemsCss;
|
|
@@ -148,12 +149,43 @@ const ZonosCartSubtotal = class {
|
|
|
148
149
|
* Loading state for apply promo code button
|
|
149
150
|
*/
|
|
150
151
|
this.loading = false;
|
|
152
|
+
this.getInclusivePriceType = () => {
|
|
153
|
+
var _a, _b;
|
|
154
|
+
const inclusivePriceConfiguration = localizationStore.inclusivePricingConfigurations.find(Boolean);
|
|
155
|
+
const dutyInclusive = ((_a = inclusivePriceConfiguration === null || inclusivePriceConfiguration === void 0 ? void 0 : inclusivePriceConfiguration.configurations[DUTY_KEY]) === null || _a === void 0 ? void 0 : _a.status) ===
|
|
156
|
+
'ENABLED';
|
|
157
|
+
const taxInclusive = ((_b = inclusivePriceConfiguration === null || inclusivePriceConfiguration === void 0 ? void 0 : inclusivePriceConfiguration.configurations[TAXES_KEY]) === null || _b === void 0 ? void 0 : _b.status) ===
|
|
158
|
+
'ENABLED';
|
|
159
|
+
if (dutyInclusive && taxInclusive) {
|
|
160
|
+
return 'DUTY_TAX_AND_FEE';
|
|
161
|
+
}
|
|
162
|
+
// Fee would also be included with duty if it's inclusive
|
|
163
|
+
if (dutyInclusive) {
|
|
164
|
+
return 'DUTY_AND_FEE';
|
|
165
|
+
}
|
|
166
|
+
if (taxInclusive) {
|
|
167
|
+
return 'TAX';
|
|
168
|
+
}
|
|
169
|
+
return null;
|
|
170
|
+
};
|
|
171
|
+
this.getCartSubtotalSubtitle = () => {
|
|
172
|
+
const inclusivePriceType = this.getInclusivePriceType();
|
|
173
|
+
if (inclusivePriceType === 'DUTY_AND_FEE') {
|
|
174
|
+
return (h("zonos-text", { class: "zonos--caption", type: "caption" }, translate('Duties and fees included')));
|
|
175
|
+
}
|
|
176
|
+
if (inclusivePriceType === 'TAX') {
|
|
177
|
+
return (h("zonos-text", { class: "zonos--caption", type: "caption" }, translate('Taxes included')));
|
|
178
|
+
}
|
|
179
|
+
return null;
|
|
180
|
+
};
|
|
151
181
|
}
|
|
152
182
|
render() {
|
|
153
183
|
var _a, _b, _c, _d, _e;
|
|
184
|
+
// Since now we are prefetching the landed cost, we need to not show the total that includes the landed cost and shipping
|
|
185
|
+
const cartTotal = cartStore.step === 'customer-info' ? cartStore.subtotal : cartStore.total;
|
|
154
186
|
const showDutyTaxesInfo = cartStore.step === 'payment' || cartStore.step === 'shipping';
|
|
155
187
|
// Show 0 for subtotal and total when all items are restricted
|
|
156
|
-
const total = cartStoreHasOneEligibleItem() ?
|
|
188
|
+
const total = cartStoreHasOneEligibleItem() ? cartTotal : 0;
|
|
157
189
|
// Total is in target currency, devide by target rate to get base currency
|
|
158
190
|
const subtotal = cartStoreHasOneEligibleItem() ? cartStore.subtotal : 0;
|
|
159
191
|
const shouldRenderPromoInput =
|
|
@@ -179,16 +211,43 @@ const ZonosCartSubtotal = class {
|
|
|
179
211
|
this.loading = false;
|
|
180
212
|
};
|
|
181
213
|
const renderShippingInfo = () => {
|
|
182
|
-
if (!cartStore.selectedShippingOption
|
|
214
|
+
if (!cartStore.selectedShippingOption ||
|
|
215
|
+
// Should not show shipping info at customer info step
|
|
216
|
+
cartStore.step === 'customer-info') {
|
|
183
217
|
return (h(Fragment, null, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Shipping')), h("zonos-text", { class: "zonos--caption", type: "caption" }, translate('No shipping method selected'))));
|
|
184
218
|
}
|
|
185
219
|
return (h(Fragment, null, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cartStore.selectedShippingOption.displayName), cartStore.selectedShippingOptionTransitTime && (h("zonos-text", { class: "zonos--caption", type: "caption" }, cartStore.selectedShippingOptionTransitTime))));
|
|
186
220
|
};
|
|
187
221
|
const renderLandedCost = () => {
|
|
188
222
|
var _a, _b, _c;
|
|
223
|
+
// At the moment, inclusive price only support for US merchant
|
|
224
|
+
if (hasInclusivePrice()) {
|
|
225
|
+
const inclusivePriceType = this.getInclusivePriceType();
|
|
226
|
+
// This should not happen, put it here to exclude null from the type
|
|
227
|
+
if (!inclusivePriceType) {
|
|
228
|
+
return null;
|
|
229
|
+
}
|
|
230
|
+
if (inclusivePriceType === 'TAX') {
|
|
231
|
+
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Duties and fees')), h("zonos-text", { class: "zonos--caption", type: "caption" }, translate('Nothing due at the door'))), h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, h("div", { class: "zonos--cart-duty-tax-price" }, cartStore.dutiesTaxesFees !== null
|
|
232
|
+
? renderCheckoutCurrency({
|
|
233
|
+
amount: cartStore.dutiesTaxesFees,
|
|
234
|
+
isForeign: true,
|
|
235
|
+
})
|
|
236
|
+
: '-'))));
|
|
237
|
+
}
|
|
238
|
+
if (inclusivePriceType === 'DUTY_AND_FEE') {
|
|
239
|
+
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Taxes'))), h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, h("div", { class: "zonos--cart-duty-tax-price" }, cartStore.dutiesTaxesFees !== null
|
|
240
|
+
? renderCheckoutCurrency({
|
|
241
|
+
amount: cartStore.dutiesTaxesFees,
|
|
242
|
+
isForeign: true,
|
|
243
|
+
})
|
|
244
|
+
: '-'))));
|
|
245
|
+
}
|
|
246
|
+
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Duties, taxes, and fees')), h("zonos-text", { class: "zonos--caption", type: "caption" }, translate('The purchase price covers duties, taxes and fees.'))), h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, h("div", { class: "zonos--cart-duty-tax-price" }, "-"))));
|
|
247
|
+
}
|
|
189
248
|
// Domestic US doesn't have duty applied, just taxes and fees
|
|
190
249
|
if ((_b = (_a = zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.domesticCountries) === null || _b === void 0 ? void 0 : _b.includes(((_c = stripeStore.stripeAddressEventData) === null || _c === void 0 ? void 0 : _c.value.address.country) || 'US')) {
|
|
191
|
-
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Taxes and fees'))), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("div", { class: "zonos--cart-duty-tax-price" }, cartStore.dutiesTaxesFees !== null ||
|
|
250
|
+
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Taxes and fees'))), h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, h("div", { class: "zonos--cart-duty-tax-price" }, cartStore.dutiesTaxesFees !== null ||
|
|
192
251
|
cartStore.dutiesTaxesFeesEstimate !== null
|
|
193
252
|
? renderCheckoutCurrency({
|
|
194
253
|
amount: cartStore.dutiesTaxesFees ||
|
|
@@ -199,23 +258,23 @@ const ZonosCartSubtotal = class {
|
|
|
199
258
|
: '-'))));
|
|
200
259
|
}
|
|
201
260
|
if (cartStore.landedCostMethod === 'DAP') {
|
|
202
|
-
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Duties, taxes, and fees')), cartStore.dutiesTaxesFeesEstimate !== null
|
|
261
|
+
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Duties, taxes, and fees')), cartStore.dutiesTaxesFeesEstimate !== null
|
|
203
262
|
? `${translate('Estimated [amount]', {
|
|
204
263
|
amount: renderCheckoutCurrency({
|
|
205
264
|
amount: cartStore.dutiesTaxesFeesEstimate,
|
|
206
265
|
isForeign: true,
|
|
207
266
|
}),
|
|
208
267
|
})}`
|
|
209
|
-
: '-'), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("div", { class: "zonos--cart-duty-tax-price" }, translate('Due at delivery')))));
|
|
268
|
+
: '-'), h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, h("div", { class: "zonos--cart-duty-tax-price" }, translate('Due at delivery')))));
|
|
210
269
|
}
|
|
211
|
-
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Duties, taxes, and fees')), h("zonos-text", { class: "zonos--caption", type: "caption" }, translate('Nothing due at the door'))), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("div", { class: "zonos--cart-duty-tax-price" }, cartStore.dutiesTaxesFees !== null
|
|
270
|
+
return (h(Fragment, null, h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Duties, taxes, and fees')), h("zonos-text", { class: "zonos--caption", type: "caption" }, translate('Nothing due at the door'))), h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, h("div", { class: "zonos--cart-duty-tax-price" }, cartStore.dutiesTaxesFees !== null
|
|
212
271
|
? renderCheckoutCurrency({
|
|
213
272
|
amount: cartStore.dutiesTaxesFees,
|
|
214
273
|
isForeign: true,
|
|
215
274
|
})
|
|
216
275
|
: '-'))));
|
|
217
276
|
};
|
|
218
|
-
return (h(Host, { class: "zonos--cart-subtotal zonos--elements" }, h("table", { class: "zonos--cart-table" }, h("tr", { class: "zonos--row zonos--cart-subtotal" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { type: "semiBoldLabel" }, translate('Cart subtotal'))), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
277
|
+
return (h(Host, { class: "zonos--cart-subtotal zonos--elements" }, h("table", { class: "zonos--cart-table" }, h("tr", { class: "zonos--row zonos--cart-subtotal" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column zonos--cart-subtotal-title" }, h("zonos-text", { type: "semiBoldLabel" }, translate('Cart subtotal')), h("zonos-text", { class: "zonos--caption", type: "caption" }, this.getCartSubtotalSubtitle())), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
219
278
|
amount: subtotal,
|
|
220
279
|
isForeign: true,
|
|
221
280
|
})))), h("tr", { class: "zonos--row zonos--cart-shipping" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column zonos--cart-subtotal-title" }, renderShippingInfo()), h("td", { class: "zonos--column zonos--cart-subtotal-price" }, cartStore.shipping
|
|
@@ -1141,9 +1200,13 @@ const taxIdValidationResult = ({ companyName, shippingCountry, taxId, }) => {
|
|
|
1141
1200
|
};
|
|
1142
1201
|
};
|
|
1143
1202
|
|
|
1144
|
-
const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;height:100%;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:2}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
|
|
1203
|
+
const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;height:100%;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info ul.sc-zonos-customer-info{list-style:disc;padding-left:8px}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:2}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
|
|
1145
1204
|
const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
|
|
1146
1205
|
|
|
1206
|
+
/**
|
|
1207
|
+
* Max address field length
|
|
1208
|
+
*/
|
|
1209
|
+
const MAX_CHARACTER_LENGTH_PER_FIELD = 35;
|
|
1147
1210
|
const ZonosCustomerInfo = class {
|
|
1148
1211
|
constructor(hostRef) {
|
|
1149
1212
|
registerInstance(this, hostRef);
|
|
@@ -1203,6 +1266,7 @@ const ZonosCustomerInfo = class {
|
|
|
1203
1266
|
this.selectedCountryCode = localizationStore.selectedCountryCode;
|
|
1204
1267
|
this.genericSettings = zonosStore.genericSettings;
|
|
1205
1268
|
this.addressFormRenderType = cartStore.addressFormRenderType;
|
|
1269
|
+
this.exceededCharacterLimitErrorFieldList = [];
|
|
1206
1270
|
/**
|
|
1207
1271
|
* Handler for invalid characters in the address
|
|
1208
1272
|
*/
|
|
@@ -1324,6 +1388,72 @@ const ZonosCustomerInfo = class {
|
|
|
1324
1388
|
isValid: !hasError,
|
|
1325
1389
|
};
|
|
1326
1390
|
};
|
|
1391
|
+
/**
|
|
1392
|
+
* Make sure all fields in the address are within the character limit
|
|
1393
|
+
*/
|
|
1394
|
+
this.validateAddressLength = ({ address, type, }) => {
|
|
1395
|
+
if (!address) {
|
|
1396
|
+
return [];
|
|
1397
|
+
}
|
|
1398
|
+
const { city, line1, postal_code, state } = address.value.address;
|
|
1399
|
+
const { firstName, lastName, name } = address.value;
|
|
1400
|
+
const { firstName: extractedFirstName, lastName: extractedLastName } = extractName({
|
|
1401
|
+
firstName,
|
|
1402
|
+
lastName,
|
|
1403
|
+
name,
|
|
1404
|
+
});
|
|
1405
|
+
const cityLength = city.length;
|
|
1406
|
+
const line1Length = line1.length;
|
|
1407
|
+
const postalCodeLength = postal_code.length;
|
|
1408
|
+
const stateLength = state.length;
|
|
1409
|
+
const firstNameLength = extractedFirstName.length;
|
|
1410
|
+
const lastNameLength = extractedLastName.length;
|
|
1411
|
+
const addressType = type === 'shipping' ? 'shipping' : 'billing';
|
|
1412
|
+
const errorMessageList = [];
|
|
1413
|
+
if (cityLength > MAX_CHARACTER_LENGTH_PER_FIELD) {
|
|
1414
|
+
errorMessageList.push({
|
|
1415
|
+
addressType,
|
|
1416
|
+
fieldLabel: 'City',
|
|
1417
|
+
value: city,
|
|
1418
|
+
});
|
|
1419
|
+
}
|
|
1420
|
+
if (line1Length > MAX_CHARACTER_LENGTH_PER_FIELD) {
|
|
1421
|
+
errorMessageList.push({
|
|
1422
|
+
addressType,
|
|
1423
|
+
fieldLabel: 'Address line 1',
|
|
1424
|
+
value: line1,
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
if (postalCodeLength > MAX_CHARACTER_LENGTH_PER_FIELD) {
|
|
1428
|
+
errorMessageList.push({
|
|
1429
|
+
addressType,
|
|
1430
|
+
fieldLabel: 'Zip',
|
|
1431
|
+
value: postal_code,
|
|
1432
|
+
});
|
|
1433
|
+
}
|
|
1434
|
+
if (stateLength > MAX_CHARACTER_LENGTH_PER_FIELD) {
|
|
1435
|
+
errorMessageList.push({
|
|
1436
|
+
addressType,
|
|
1437
|
+
fieldLabel: 'State/Province/Region/Prefecture',
|
|
1438
|
+
value: state,
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
if (firstNameLength > MAX_CHARACTER_LENGTH_PER_FIELD) {
|
|
1442
|
+
errorMessageList.push({
|
|
1443
|
+
addressType,
|
|
1444
|
+
fieldLabel: 'First name',
|
|
1445
|
+
value: extractedFirstName,
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
if (lastNameLength > MAX_CHARACTER_LENGTH_PER_FIELD) {
|
|
1449
|
+
errorMessageList.push({
|
|
1450
|
+
addressType,
|
|
1451
|
+
fieldLabel: 'Last name',
|
|
1452
|
+
value: extractedLastName,
|
|
1453
|
+
});
|
|
1454
|
+
}
|
|
1455
|
+
return errorMessageList;
|
|
1456
|
+
};
|
|
1327
1457
|
this.handleValidate = () => {
|
|
1328
1458
|
var _a, _b;
|
|
1329
1459
|
const stripeShippingAddressEventData = stripeStore.stripeAddressEventData;
|
|
@@ -1359,13 +1489,29 @@ const ZonosCustomerInfo = class {
|
|
|
1359
1489
|
});
|
|
1360
1490
|
log('==> isValidLink', 'info', isValidLink);
|
|
1361
1491
|
// validate tax id input if it's required for specific countries, optional otherwise
|
|
1362
|
-
const { error, valid } = taxIdValidationResult({
|
|
1492
|
+
const { error, valid: validTaxId } = taxIdValidationResult({
|
|
1363
1493
|
companyName: stripeStore.companyName,
|
|
1364
1494
|
shippingCountry: this.shippingCountry,
|
|
1365
1495
|
taxId: stripeStore.taxId,
|
|
1366
1496
|
});
|
|
1367
|
-
this.taxIdErrorMessage = !
|
|
1368
|
-
|
|
1497
|
+
this.taxIdErrorMessage = !validTaxId ? translate(error) : '';
|
|
1498
|
+
const addressLengthErrorList = this.validateAddressLength({
|
|
1499
|
+
address: stripeStore.stripeAddressEventData,
|
|
1500
|
+
type: 'shipping',
|
|
1501
|
+
});
|
|
1502
|
+
const billingAddressLengthErrorList = this.validateAddressLength({
|
|
1503
|
+
address: stripeStore.stripeBillingAddressEventData,
|
|
1504
|
+
type: 'billing',
|
|
1505
|
+
});
|
|
1506
|
+
this.exceededCharacterLimitErrorFieldList = [
|
|
1507
|
+
...addressLengthErrorList,
|
|
1508
|
+
...billingAddressLengthErrorList,
|
|
1509
|
+
];
|
|
1510
|
+
if (!isValidBilling ||
|
|
1511
|
+
!isValidShipping ||
|
|
1512
|
+
!isValidLink ||
|
|
1513
|
+
!validTaxId ||
|
|
1514
|
+
this.exceededCharacterLimitErrorFieldList.length > 0) {
|
|
1369
1515
|
return false;
|
|
1370
1516
|
}
|
|
1371
1517
|
return true;
|
|
@@ -1394,6 +1540,27 @@ const ZonosCustomerInfo = class {
|
|
|
1394
1540
|
state: addressValue.address.state || '',
|
|
1395
1541
|
};
|
|
1396
1542
|
};
|
|
1543
|
+
this.renderExceededCharacterLimitError = (type) => {
|
|
1544
|
+
const errorMessageByType = this.exceededCharacterLimitErrorFieldList.filter(({ addressType }) => addressType === type);
|
|
1545
|
+
if (!errorMessageByType.length) {
|
|
1546
|
+
return null;
|
|
1547
|
+
}
|
|
1548
|
+
return (h("zonos-banner", { class: "zonos--error-banner", intent: "error", slot: "below-title" }, h("ul", null, errorMessageByType.map(({ fieldLabel, value }) => {
|
|
1549
|
+
const isAddressLine1 = fieldLabel === 'Address line 1';
|
|
1550
|
+
if (isAddressLine1) {
|
|
1551
|
+
return (h("li", { key: fieldLabel }, translate('[fieldLabel] is [currentLength] characters. Please shorten to [maxLength] or less or move the rest to address line 2.', {
|
|
1552
|
+
currentLength: value.length,
|
|
1553
|
+
fieldLabel,
|
|
1554
|
+
maxLength: MAX_CHARACTER_LENGTH_PER_FIELD,
|
|
1555
|
+
})));
|
|
1556
|
+
}
|
|
1557
|
+
return (h("li", { key: fieldLabel }, translate('[fieldLabel] is [currentLength] characters. Please shorten to [maxLength] or less.', {
|
|
1558
|
+
currentLength: value.length,
|
|
1559
|
+
fieldLabel,
|
|
1560
|
+
maxLength: MAX_CHARACTER_LENGTH_PER_FIELD,
|
|
1561
|
+
})));
|
|
1562
|
+
}))));
|
|
1563
|
+
};
|
|
1397
1564
|
this.renderAddressComponent = (type) => {
|
|
1398
1565
|
if (!this.selectedCountryCode) {
|
|
1399
1566
|
void sendErrorLog({
|
|
@@ -1424,10 +1591,10 @@ const ZonosCustomerInfo = class {
|
|
|
1424
1591
|
}
|
|
1425
1592
|
// Render custom address component if the custom address form is enabled
|
|
1426
1593
|
if (this.addressFormRenderType === 'zonos') {
|
|
1427
|
-
return (h("zonos-custom-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }));
|
|
1594
|
+
return (h("zonos-custom-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
|
|
1428
1595
|
}
|
|
1429
1596
|
// Render Stripe address component by default
|
|
1430
|
-
return (h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }));
|
|
1597
|
+
return (h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
|
|
1431
1598
|
};
|
|
1432
1599
|
}
|
|
1433
1600
|
watchShowErrorBanner() {
|
|
@@ -1620,7 +1787,8 @@ const ZonosReview = class {
|
|
|
1620
1787
|
this.isMobile = isCheckoutMobile(this.mobile);
|
|
1621
1788
|
}
|
|
1622
1789
|
render() {
|
|
1623
|
-
const
|
|
1790
|
+
const cartTotal = cartStore.step === 'customer-info' ? cartStore.subtotal : cartStore.total;
|
|
1791
|
+
const total = cartStoreHasOneEligibleItem() ? cartTotal : 0;
|
|
1624
1792
|
const titleTextType = this.isMobile ? 'boldSubheader' : 'semiBoldLabel';
|
|
1625
1793
|
const totalTextType = this.isMobile
|
|
1626
1794
|
? 'boldSubheader'
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { r as registerInstance, h, F as Fragment, H as Host } from './index-
|
|
2
|
-
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreCleanupDomesticShippingSession, b as stripeStoreSaveDomesticShippingSession, c as stripeStore, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as cartStoreUpdateItems, g as cartStoreReset, h as cartStoreResetTabItems, j as cartStoreClearCheckoutInterval, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as getCheckoutSessionBody, o as cartStoreUpdateToErrorState, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as cartStoreOnChange } from './cart-
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalStore, b as paypalInitScript } from './paypal-
|
|
4
|
-
import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, c as localizationStoreOnChange, d as currencyFormat } from './localization-
|
|
5
|
-
import { t as translate } from './translationStore-
|
|
6
|
-
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, F as Fragment, H as Host } from './index-0bbe9693.js';
|
|
2
|
+
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreCleanupDomesticShippingSession, b as stripeStoreSaveDomesticShippingSession, c as stripeStore, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as cartStoreUpdateItems, g as cartStoreReset, h as cartStoreResetTabItems, j as cartStoreClearCheckoutInterval, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as getCheckoutSessionBody, o as cartStoreUpdateToErrorState, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as cartStoreOnChange } from './cart-14f305b3.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalStore, b as paypalInitScript } from './paypal-fded8844.js';
|
|
4
|
+
import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, c as localizationStoreOnChange, d as currencyFormat } from './localization-c5029ffc.js';
|
|
5
|
+
import { t as translate } from './translationStore-690c4e04.js';
|
|
6
|
+
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-b434e436.js';
|
|
7
7
|
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
|
|
8
8
|
import { h as handleFetch, l as logError, s as sendErrorLog, b as getAdditionalLogMetadata, g as getIsTestMode, j as jsonParse, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-a844cac1.js';
|
|
9
|
-
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-
|
|
9
|
+
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-047a6cd4.js';
|
|
10
10
|
import { _ as _getIsValidCartId, c as checkoutHiddenBtnSelector, a as checkoutHiddenInternationalBtnSelector, d as domesticRedirectedBtnSelector, g as getAbandonedCartRenewTokenValue } from './CheckoutConfig-724d7bae.js';
|
|
11
11
|
import { l as log, g as getElapsedTime, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
12
12
|
import { c as classes } from './classes-0d95c529.js';
|
|
13
13
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
14
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
15
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
14
|
+
import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
|
|
15
|
+
import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
|
|
16
16
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
17
17
|
import { R as RemoveIcon } from './RemoveIcon-9dc5dd1a.js';
|
|
18
|
-
import './debounce-
|
|
18
|
+
import './debounce-c4785346.js';
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Check if store discount is enabled
|
|
@@ -159,7 +159,10 @@ const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShi
|
|
|
159
159
|
return;
|
|
160
160
|
}
|
|
161
161
|
// update the country code in localization store and check if it's shippable
|
|
162
|
-
localizationStoreUpdateSelectedCountryCode(
|
|
162
|
+
localizationStoreUpdateSelectedCountryCode({
|
|
163
|
+
isInitializing: false,
|
|
164
|
+
newSelectedCountryCode: shippingCountry,
|
|
165
|
+
});
|
|
163
166
|
// do nothing if the country is still domestic
|
|
164
167
|
if (!isShippableCountry(false)) {
|
|
165
168
|
// cleanup the domestic shipping session if it's domestic because we will open the intl checkout after redirecting
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, a as getElement } from './index-
|
|
2
|
-
import { f as zonosStoreFontFamily } from './zonosStore-
|
|
1
|
+
import { r as registerInstance, h, H as Host, a as getElement } from './index-0bbe9693.js';
|
|
2
|
+
import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
3
3
|
import './VarianceTest-572cecf5.js';
|
|
4
4
|
|
|
5
5
|
const zonosCollapseCss = ":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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { r as registerInstance, d as getAssetPath, h, H as Host } from './index-
|
|
2
|
-
import { e as cartStore } from './cart-
|
|
1
|
+
import { r as registerInstance, d as getAssetPath, h, H as Host } from './index-0bbe9693.js';
|
|
2
|
+
import { e as cartStore } from './cart-14f305b3.js';
|
|
3
3
|
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-b5b18743.js';
|
|
4
|
-
import { f as zonosStoreFontFamily } from './zonosStore-
|
|
4
|
+
import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
6
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
7
|
-
import './localization-
|
|
7
|
+
import './localization-c5029ffc.js';
|
|
8
8
|
import './handleFetch-a844cac1.js';
|
|
9
9
|
import './VarianceTest-572cecf5.js';
|
|
10
|
-
import './translationStore-
|
|
11
|
-
import './isDarkColor-
|
|
12
|
-
import './getBorderRadius-
|
|
10
|
+
import './translationStore-690c4e04.js';
|
|
11
|
+
import './isDarkColor-9ddd90cc.js';
|
|
12
|
+
import './getBorderRadius-877f6389.js';
|
|
13
13
|
|
|
14
14
|
const zonosCollectCartItemsCss = ":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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:first-child{width:48px}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px;-webkit-box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);border-radius:10px}";
|
|
15
15
|
const ZonosCollectCartItemsStyle0 = zonosCollectCartItemsCss;
|