@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,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const zonosStore = require('./zonosStore-
|
|
4
|
-
const localization = require('./localization-
|
|
5
|
-
const translationStore = require('./translationStore-
|
|
3
|
+
const zonosStore = require('./zonosStore-37a4b4f4.js');
|
|
4
|
+
const localization = require('./localization-39516612.js');
|
|
5
|
+
const translationStore = require('./translationStore-08d3ff9c.js');
|
|
6
6
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
7
7
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
8
|
-
const isDarkColor = require('./isDarkColor-
|
|
9
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
8
|
+
const isDarkColor = require('./isDarkColor-878e600e.js');
|
|
9
|
+
const getBorderRadius = require('./getBorderRadius-2ef1170d.js');
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* Extract first name and last name from the name string
|
|
@@ -75,6 +75,7 @@ const prepCartCalculateLandedCost = (cartId) => {
|
|
|
75
75
|
const { firstName: billingFirstName, lastName: billingLastName } = extractName({
|
|
76
76
|
name: translatedBillingAddress.name,
|
|
77
77
|
});
|
|
78
|
+
const checkoutSessionCountry = localization.getOverridenZCountry() || 'US';
|
|
78
79
|
return {
|
|
79
80
|
billingAddress: {
|
|
80
81
|
addressLine1: translatedBillingAddress.line1,
|
|
@@ -94,6 +95,9 @@ const prepCartCalculateLandedCost = (cartId) => {
|
|
|
94
95
|
// Use the first item's currency code
|
|
95
96
|
cartCurrencyCode: (_a = cartStore.items[0]) === null || _a === void 0 ? void 0 : _a.currencyCode,
|
|
96
97
|
cartId,
|
|
98
|
+
checkoutSessionCountry: checkoutSessionCountry ||
|
|
99
|
+
localization.localizationStore.selectedCountryCode ||
|
|
100
|
+
undefined,
|
|
97
101
|
checkoutSessionId: localization.storageStore.checkoutSessionId || '',
|
|
98
102
|
contact: {
|
|
99
103
|
companyName: stripeStore.companyName,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const localization = require('./localization-39516612.js');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Since the backend and the frontend are using the same keys,
|
|
7
|
+
* make sure to not change the key value below since if it changes
|
|
8
|
+
* and the frontend script is cached, the formula may not work as expected.
|
|
9
|
+
*/
|
|
10
|
+
const DUTY_KEY = 'gkjqw123';
|
|
11
|
+
const TAXES_KEY = 'Kq93wqw3';
|
|
12
|
+
|
|
13
|
+
const hasInclusivePrice = () => {
|
|
14
|
+
var _a;
|
|
15
|
+
return (_a = localization.localizationStore.inclusivePricingConfigurations) === null || _a === void 0 ? void 0 : _a.some(x => {
|
|
16
|
+
var _a, _b;
|
|
17
|
+
return ((_a = x.configurations[DUTY_KEY]) === null || _a === void 0 ? void 0 : _a.status) === 'ENABLED' ||
|
|
18
|
+
((_b = x.configurations[TAXES_KEY]) === null || _b === void 0 ? void 0 : _b.status) === 'ENABLED';
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
exports.DUTY_KEY = DUTY_KEY;
|
|
23
|
+
exports.TAXES_KEY = TAXES_KEY;
|
|
24
|
+
exports.hasInclusivePrice = hasInclusivePrice;
|
|
@@ -21,7 +21,7 @@ function _interopNamespace(e) {
|
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
const NAMESPACE = 'zonos-elements';
|
|
24
|
-
const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation:
|
|
24
|
+
const BUILD = /* zonos-elements */ { allRenderFn: true, appendChildSlotFix: false, asyncLoading: true, asyncQueue: false, attachStyles: true, cloneNodeFix: false, constructableCSS: true, cssAnnotations: true, devTools: false, element: false, event: true, experimentalScopedSlotChanges: false, experimentalSlotFixes: false, formAssociated: false, hasRenderFn: true, hostListener: true, hostListenerTarget: true, hostListenerTargetBody: true, hostListenerTargetDocument: true, hostListenerTargetParent: false, hostListenerTargetWindow: true, hotModuleReplacement: false, hydrateClientSide: false, hydrateServerSide: false, hydratedAttribute: false, hydratedClass: true, hydratedSelectorName: "hydrated", initializeNextTick: false, invisiblePrehydration: true, isDebug: false, isDev: false, isTesting: false, lazyLoad: true, lifecycle: true, lifecycleDOMEvents: false, member: true, method: true, mode: false, modernPropertyDecls: false, observeAttribute: true, profile: false, prop: true, propBoolean: true, propMutable: true, propNumber: true, propString: true, reflect: false, scoped: true, scopedSlotTextContentFix: false, scriptDataOpts: false, shadowDelegatesFocus: true, shadowDom: true, slot: true, slotChildNodesFix: false, slotRelocation: true, state: true, style: true, svg: true, taskQueue: true, transformTagName: false, updatable: true, vdomAttribute: true, vdomClass: true, vdomFunctional: true, vdomKey: true, vdomListener: true, vdomPropOrAttr: true, vdomRef: true, vdomRender: true, vdomStyle: true, vdomText: true, vdomXlink: true, watchCallback: true };
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
27
|
Stencil Client Platform v4.27.2 | MIT Licensed | https://stenciljs.com
|
|
@@ -246,6 +246,113 @@ var unwrapErr = (result) => {
|
|
|
246
246
|
throw result.value;
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
|
+
var updateFallbackSlotVisibility = (elm) => {
|
|
250
|
+
const childNodes = internalCall(elm, "childNodes");
|
|
251
|
+
if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
|
|
252
|
+
getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
|
|
253
|
+
if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
|
|
254
|
+
if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
|
|
255
|
+
slotNode.hidden = true;
|
|
256
|
+
} else {
|
|
257
|
+
slotNode.hidden = false;
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
});
|
|
261
|
+
}
|
|
262
|
+
let i2 = 0;
|
|
263
|
+
for (i2 = 0; i2 < childNodes.length; i2++) {
|
|
264
|
+
const childNode = childNodes[i2];
|
|
265
|
+
if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
|
|
266
|
+
updateFallbackSlotVisibility(childNode);
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
};
|
|
270
|
+
var getSlottedChildNodes = (childNodes) => {
|
|
271
|
+
const result = [];
|
|
272
|
+
for (let i2 = 0; i2 < childNodes.length; i2++) {
|
|
273
|
+
const slottedNode = childNodes[i2]["s-nr"] || void 0;
|
|
274
|
+
if (slottedNode && slottedNode.isConnected) {
|
|
275
|
+
result.push(slottedNode);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
return result;
|
|
279
|
+
};
|
|
280
|
+
function getHostSlotNodes(childNodes, hostName, slotName) {
|
|
281
|
+
let i2 = 0;
|
|
282
|
+
let slottedNodes = [];
|
|
283
|
+
let childNode;
|
|
284
|
+
for (; i2 < childNodes.length; i2++) {
|
|
285
|
+
childNode = childNodes[i2];
|
|
286
|
+
if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0 || getSlotName(childNode) === slotName)) {
|
|
287
|
+
slottedNodes.push(childNode);
|
|
288
|
+
if (typeof slotName !== "undefined") return slottedNodes;
|
|
289
|
+
}
|
|
290
|
+
slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
|
|
291
|
+
}
|
|
292
|
+
return slottedNodes;
|
|
293
|
+
}
|
|
294
|
+
var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
|
|
295
|
+
const childNodes = [];
|
|
296
|
+
if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
|
|
297
|
+
let node = slot;
|
|
298
|
+
while (node = node.nextSibling) {
|
|
299
|
+
if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
|
|
300
|
+
}
|
|
301
|
+
return childNodes;
|
|
302
|
+
};
|
|
303
|
+
var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
|
|
304
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
305
|
+
if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
|
|
306
|
+
return true;
|
|
307
|
+
}
|
|
308
|
+
if (nodeToRelocate.getAttribute("slot") === slotName) {
|
|
309
|
+
return true;
|
|
310
|
+
}
|
|
311
|
+
return false;
|
|
312
|
+
}
|
|
313
|
+
if (nodeToRelocate["s-sn"] === slotName) {
|
|
314
|
+
return true;
|
|
315
|
+
}
|
|
316
|
+
return slotName === "";
|
|
317
|
+
};
|
|
318
|
+
var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
|
|
319
|
+
function patchSlotNode(node) {
|
|
320
|
+
if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
|
|
321
|
+
const assignedFactory = (elementsOnly) => (function(opts) {
|
|
322
|
+
const toReturn = [];
|
|
323
|
+
const slotName = this["s-sn"];
|
|
324
|
+
if (opts == null ? void 0 : opts.flatten) {
|
|
325
|
+
console.error(`
|
|
326
|
+
Flattening is not supported for Stencil non-shadow slots.
|
|
327
|
+
You can use \`.childNodes\` to nested slot fallback content.
|
|
328
|
+
If you have a particular use case, please open an issue on the Stencil repo.
|
|
329
|
+
`);
|
|
330
|
+
}
|
|
331
|
+
const parent = this["s-cr"].parentElement;
|
|
332
|
+
const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
|
|
333
|
+
slottedNodes.forEach((n) => {
|
|
334
|
+
if (slotName === getSlotName(n)) {
|
|
335
|
+
toReturn.push(n);
|
|
336
|
+
}
|
|
337
|
+
});
|
|
338
|
+
if (elementsOnly) {
|
|
339
|
+
return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
|
|
340
|
+
}
|
|
341
|
+
return toReturn;
|
|
342
|
+
}).bind(node);
|
|
343
|
+
node.assignedElements = assignedFactory(true);
|
|
344
|
+
node.assignedNodes = assignedFactory(false);
|
|
345
|
+
}
|
|
346
|
+
function internalCall(node, method) {
|
|
347
|
+
if ("__" + method in node) {
|
|
348
|
+
const toReturn = node["__" + method];
|
|
349
|
+
if (typeof toReturn !== "function") return toReturn;
|
|
350
|
+
return toReturn.bind(node);
|
|
351
|
+
} else {
|
|
352
|
+
if (typeof node[method] !== "function") return node[method];
|
|
353
|
+
return node[method].bind(node);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
249
356
|
var createTime = (fnName, tagName = "") => {
|
|
250
357
|
{
|
|
251
358
|
return () => {
|
|
@@ -263,6 +370,7 @@ var uniqueTime = (key, measureText) => {
|
|
|
263
370
|
var h = (nodeName, vnodeData, ...children) => {
|
|
264
371
|
let child = null;
|
|
265
372
|
let key = null;
|
|
373
|
+
let slotName = null;
|
|
266
374
|
let simple = false;
|
|
267
375
|
let lastSimple = false;
|
|
268
376
|
const vNodeChildren = [];
|
|
@@ -289,6 +397,9 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
289
397
|
if (vnodeData.key) {
|
|
290
398
|
key = vnodeData.key;
|
|
291
399
|
}
|
|
400
|
+
if (vnodeData.name) {
|
|
401
|
+
slotName = vnodeData.name;
|
|
402
|
+
}
|
|
292
403
|
{
|
|
293
404
|
const classData = vnodeData.className || vnodeData.class;
|
|
294
405
|
if (classData) {
|
|
@@ -311,6 +422,9 @@ var h = (nodeName, vnodeData, ...children) => {
|
|
|
311
422
|
{
|
|
312
423
|
vnode.$key$ = key;
|
|
313
424
|
}
|
|
425
|
+
{
|
|
426
|
+
vnode.$name$ = slotName;
|
|
427
|
+
}
|
|
314
428
|
return vnode;
|
|
315
429
|
};
|
|
316
430
|
var newVNode = (tag, text) => {
|
|
@@ -327,6 +441,9 @@ var newVNode = (tag, text) => {
|
|
|
327
441
|
{
|
|
328
442
|
vnode.$key$ = null;
|
|
329
443
|
}
|
|
444
|
+
{
|
|
445
|
+
vnode.$name$ = null;
|
|
446
|
+
}
|
|
330
447
|
return vnode;
|
|
331
448
|
};
|
|
332
449
|
var Host = {};
|
|
@@ -649,16 +766,41 @@ function sortedAttrNames(attrNames) {
|
|
|
649
766
|
|
|
650
767
|
// src/runtime/vdom/vdom-render.ts
|
|
651
768
|
var scopeId;
|
|
769
|
+
var contentRef;
|
|
652
770
|
var hostTagName;
|
|
653
771
|
var useNativeShadowDom = false;
|
|
772
|
+
var checkSlotFallbackVisibility = false;
|
|
773
|
+
var checkSlotRelocate = false;
|
|
654
774
|
var isSvgMode = false;
|
|
655
775
|
var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
776
|
+
var _a;
|
|
656
777
|
const newVNode2 = newParentVNode.$children$[childIndex];
|
|
657
778
|
let i2 = 0;
|
|
658
779
|
let elm;
|
|
659
780
|
let childNode;
|
|
781
|
+
let oldVNode;
|
|
782
|
+
if (!useNativeShadowDom) {
|
|
783
|
+
checkSlotRelocate = true;
|
|
784
|
+
if (newVNode2.$tag$ === "slot") {
|
|
785
|
+
newVNode2.$flags$ |= newVNode2.$children$ ? (
|
|
786
|
+
// slot element has fallback content
|
|
787
|
+
// still create an element that "mocks" the slot element
|
|
788
|
+
2 /* isSlotFallback */
|
|
789
|
+
) : (
|
|
790
|
+
// slot element does not have fallback content
|
|
791
|
+
// create an html comment we'll use to always reference
|
|
792
|
+
// where actual slot content should sit next to
|
|
793
|
+
1 /* isSlotReference */
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
}
|
|
660
797
|
if (newVNode2.$text$ !== null) {
|
|
661
798
|
elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
|
|
799
|
+
} else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
|
|
800
|
+
elm = newVNode2.$elm$ = win.document.createTextNode("");
|
|
801
|
+
{
|
|
802
|
+
updateElement(null, newVNode2, isSvgMode);
|
|
803
|
+
}
|
|
662
804
|
} else {
|
|
663
805
|
if (!isSvgMode) {
|
|
664
806
|
isSvgMode = newVNode2.$tag$ === "svg";
|
|
@@ -698,10 +840,54 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
|
|
|
698
840
|
}
|
|
699
841
|
}
|
|
700
842
|
elm["s-hn"] = hostTagName;
|
|
843
|
+
{
|
|
844
|
+
if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
|
|
845
|
+
elm["s-sr"] = true;
|
|
846
|
+
elm["s-cr"] = contentRef;
|
|
847
|
+
elm["s-sn"] = newVNode2.$name$ || "";
|
|
848
|
+
elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
|
|
849
|
+
patchSlotNode(elm);
|
|
850
|
+
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
851
|
+
if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
|
|
852
|
+
{
|
|
853
|
+
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
{
|
|
857
|
+
addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
}
|
|
701
861
|
return elm;
|
|
702
862
|
};
|
|
863
|
+
var putBackInOriginalLocation = (parentElm, recursive) => {
|
|
864
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
865
|
+
const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
|
|
866
|
+
if (parentElm["s-sr"] && BUILD.experimentalSlotFixes) {
|
|
867
|
+
let node = parentElm;
|
|
868
|
+
while (node = node.nextSibling) {
|
|
869
|
+
if (node && node["s-sn"] === parentElm["s-sn"] && node["s-sh"] === hostTagName) {
|
|
870
|
+
oldSlotChildNodes.push(node);
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
}
|
|
874
|
+
for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
|
|
875
|
+
const childNode = oldSlotChildNodes[i2];
|
|
876
|
+
if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
|
|
877
|
+
insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
|
|
878
|
+
childNode["s-ol"].remove();
|
|
879
|
+
childNode["s-ol"] = void 0;
|
|
880
|
+
childNode["s-sh"] = void 0;
|
|
881
|
+
checkSlotRelocate = true;
|
|
882
|
+
}
|
|
883
|
+
if (recursive) {
|
|
884
|
+
putBackInOriginalLocation(childNode, recursive);
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
888
|
+
};
|
|
703
889
|
var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
704
|
-
let containerElm = parentElm;
|
|
890
|
+
let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
|
|
705
891
|
let childNode;
|
|
706
892
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
707
893
|
containerElm = containerElm.shadowRoot;
|
|
@@ -711,7 +897,7 @@ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
|
711
897
|
childNode = createElm(null, parentVNode, startIdx);
|
|
712
898
|
if (childNode) {
|
|
713
899
|
vnodes[startIdx].$elm$ = childNode;
|
|
714
|
-
insertBefore(containerElm, childNode, before);
|
|
900
|
+
insertBefore(containerElm, childNode, referenceNode(before) );
|
|
715
901
|
}
|
|
716
902
|
}
|
|
717
903
|
}
|
|
@@ -723,6 +909,14 @@ var removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
723
909
|
const elm = vnode.$elm$;
|
|
724
910
|
nullifyVNodeRefs(vnode);
|
|
725
911
|
if (elm) {
|
|
912
|
+
{
|
|
913
|
+
checkSlotFallbackVisibility = true;
|
|
914
|
+
if (elm["s-ol"]) {
|
|
915
|
+
elm["s-ol"].remove();
|
|
916
|
+
} else {
|
|
917
|
+
putBackInOriginalLocation(elm, true);
|
|
918
|
+
}
|
|
919
|
+
}
|
|
726
920
|
elm.remove();
|
|
727
921
|
}
|
|
728
922
|
}
|
|
@@ -759,11 +953,17 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
759
953
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
760
954
|
newEndVnode = newCh[--newEndIdx];
|
|
761
955
|
} else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
|
|
956
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
957
|
+
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
958
|
+
}
|
|
762
959
|
patch(oldStartVnode, newEndVnode, isInitialRender);
|
|
763
960
|
insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
|
|
764
961
|
oldStartVnode = oldCh[++oldStartIdx];
|
|
765
962
|
newEndVnode = newCh[--newEndIdx];
|
|
766
963
|
} else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
|
|
964
|
+
if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
|
|
965
|
+
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
966
|
+
}
|
|
767
967
|
patch(oldEndVnode, newStartVnode, isInitialRender);
|
|
768
968
|
insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
|
|
769
969
|
oldEndVnode = oldCh[--oldEndIdx];
|
|
@@ -794,7 +994,11 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
794
994
|
}
|
|
795
995
|
if (node) {
|
|
796
996
|
{
|
|
797
|
-
insertBefore(
|
|
997
|
+
insertBefore(
|
|
998
|
+
referenceNode(oldStartVnode.$elm$).parentNode,
|
|
999
|
+
node,
|
|
1000
|
+
referenceNode(oldStartVnode.$elm$)
|
|
1001
|
+
);
|
|
798
1002
|
}
|
|
799
1003
|
}
|
|
800
1004
|
}
|
|
@@ -814,6 +1018,9 @@ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = fals
|
|
|
814
1018
|
};
|
|
815
1019
|
var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
816
1020
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
1021
|
+
if (leftVNode.$tag$ === "slot") {
|
|
1022
|
+
return leftVNode.$name$ === rightVNode.$name$;
|
|
1023
|
+
}
|
|
817
1024
|
if (!isInitialRender) {
|
|
818
1025
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
819
1026
|
}
|
|
@@ -824,12 +1031,14 @@ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
|
|
|
824
1031
|
}
|
|
825
1032
|
return false;
|
|
826
1033
|
};
|
|
1034
|
+
var referenceNode = (node) => node && node["s-ol"] || node;
|
|
827
1035
|
var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
828
1036
|
const elm = newVNode2.$elm$ = oldVNode.$elm$;
|
|
829
1037
|
const oldChildren = oldVNode.$children$;
|
|
830
1038
|
const newChildren = newVNode2.$children$;
|
|
831
1039
|
const tag = newVNode2.$tag$;
|
|
832
1040
|
const text = newVNode2.$text$;
|
|
1041
|
+
let defaultHolder;
|
|
833
1042
|
if (text === null) {
|
|
834
1043
|
{
|
|
835
1044
|
isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
|
|
@@ -853,10 +1062,62 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
|
|
|
853
1062
|
if (isSvgMode && tag === "svg") {
|
|
854
1063
|
isSvgMode = false;
|
|
855
1064
|
}
|
|
1065
|
+
} else if ((defaultHolder = elm["s-cr"])) {
|
|
1066
|
+
defaultHolder.parentNode.textContent = text;
|
|
856
1067
|
} else if (oldVNode.$text$ !== text) {
|
|
857
1068
|
elm.data = text;
|
|
858
1069
|
}
|
|
859
1070
|
};
|
|
1071
|
+
var relocateNodes = [];
|
|
1072
|
+
var markSlotContentForRelocation = (elm) => {
|
|
1073
|
+
let node;
|
|
1074
|
+
let hostContentNodes;
|
|
1075
|
+
let j;
|
|
1076
|
+
const children = elm.__childNodes || elm.childNodes;
|
|
1077
|
+
for (const childNode of children) {
|
|
1078
|
+
if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
|
|
1079
|
+
hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
|
|
1080
|
+
const slotName = childNode["s-sn"];
|
|
1081
|
+
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1082
|
+
node = hostContentNodes[j];
|
|
1083
|
+
if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (!BUILD.experimentalSlotFixes )) {
|
|
1084
|
+
if (isNodeLocatedInSlot(node, slotName)) {
|
|
1085
|
+
let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1086
|
+
checkSlotFallbackVisibility = true;
|
|
1087
|
+
node["s-sn"] = node["s-sn"] || slotName;
|
|
1088
|
+
if (relocateNodeData) {
|
|
1089
|
+
relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
|
|
1090
|
+
relocateNodeData.$slotRefNode$ = childNode;
|
|
1091
|
+
} else {
|
|
1092
|
+
node["s-sh"] = childNode["s-hn"];
|
|
1093
|
+
relocateNodes.push({
|
|
1094
|
+
$slotRefNode$: childNode,
|
|
1095
|
+
$nodeToRelocate$: node
|
|
1096
|
+
});
|
|
1097
|
+
}
|
|
1098
|
+
if (node["s-sr"]) {
|
|
1099
|
+
relocateNodes.map((relocateNode) => {
|
|
1100
|
+
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
|
|
1101
|
+
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1102
|
+
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
1103
|
+
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
1104
|
+
}
|
|
1105
|
+
}
|
|
1106
|
+
});
|
|
1107
|
+
}
|
|
1108
|
+
} else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1109
|
+
relocateNodes.push({
|
|
1110
|
+
$nodeToRelocate$: node
|
|
1111
|
+
});
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
}
|
|
1116
|
+
if (childNode.nodeType === 1 /* ElementNode */) {
|
|
1117
|
+
markSlotContentForRelocation(childNode);
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
};
|
|
860
1121
|
var nullifyVNodeRefs = (vNode) => {
|
|
861
1122
|
{
|
|
862
1123
|
vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
|
|
@@ -893,6 +1154,7 @@ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
|
|
|
893
1154
|
}
|
|
894
1155
|
}
|
|
895
1156
|
var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
1157
|
+
var _a, _b, _c, _d;
|
|
896
1158
|
const hostElm = hostRef.$hostElement$;
|
|
897
1159
|
const cmpMeta = hostRef.$cmpMeta$;
|
|
898
1160
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
@@ -913,7 +1175,77 @@ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
|
|
|
913
1175
|
scopeId = hostElm["s-sc"];
|
|
914
1176
|
}
|
|
915
1177
|
useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
|
|
1178
|
+
{
|
|
1179
|
+
contentRef = hostElm["s-cr"];
|
|
1180
|
+
checkSlotFallbackVisibility = false;
|
|
1181
|
+
}
|
|
916
1182
|
patch(oldVNode, rootVnode, isInitialLoad);
|
|
1183
|
+
{
|
|
1184
|
+
plt.$flags$ |= 1 /* isTmpDisconnected */;
|
|
1185
|
+
if (checkSlotRelocate) {
|
|
1186
|
+
markSlotContentForRelocation(rootVnode.$elm$);
|
|
1187
|
+
for (const relocateData of relocateNodes) {
|
|
1188
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1189
|
+
if (!nodeToRelocate["s-ol"] && win.document) {
|
|
1190
|
+
const orgLocationNode = win.document.createTextNode("");
|
|
1191
|
+
orgLocationNode["s-nr"] = nodeToRelocate;
|
|
1192
|
+
insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
|
|
1193
|
+
}
|
|
1194
|
+
}
|
|
1195
|
+
for (const relocateData of relocateNodes) {
|
|
1196
|
+
const nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1197
|
+
const slotRefNode = relocateData.$slotRefNode$;
|
|
1198
|
+
if (slotRefNode) {
|
|
1199
|
+
const parentNodeRef = slotRefNode.parentNode;
|
|
1200
|
+
let insertBeforeNode = slotRefNode.nextSibling;
|
|
1201
|
+
{
|
|
1202
|
+
let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
|
|
1203
|
+
while (orgLocationNode) {
|
|
1204
|
+
let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
|
|
1205
|
+
if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
|
|
1206
|
+
refNode = refNode.nextSibling;
|
|
1207
|
+
while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
|
|
1208
|
+
refNode = refNode == null ? void 0 : refNode.nextSibling;
|
|
1209
|
+
}
|
|
1210
|
+
if (!refNode || !refNode["s-nr"]) {
|
|
1211
|
+
insertBeforeNode = refNode;
|
|
1212
|
+
break;
|
|
1213
|
+
}
|
|
1214
|
+
}
|
|
1215
|
+
orgLocationNode = orgLocationNode.previousSibling;
|
|
1216
|
+
}
|
|
1217
|
+
}
|
|
1218
|
+
const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
|
|
1219
|
+
const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
|
|
1220
|
+
if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
|
|
1221
|
+
if (nodeToRelocate !== insertBeforeNode) {
|
|
1222
|
+
if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
|
|
1223
|
+
nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
|
|
1224
|
+
}
|
|
1225
|
+
insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
|
|
1226
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
|
|
1227
|
+
nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
|
|
1228
|
+
}
|
|
1229
|
+
}
|
|
1230
|
+
}
|
|
1231
|
+
nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
|
|
1232
|
+
} else {
|
|
1233
|
+
if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
|
|
1234
|
+
if (isInitialLoad) {
|
|
1235
|
+
nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
|
|
1236
|
+
}
|
|
1237
|
+
nodeToRelocate.hidden = true;
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
if (checkSlotFallbackVisibility) {
|
|
1243
|
+
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1244
|
+
}
|
|
1245
|
+
plt.$flags$ &= ~1 /* isTmpDisconnected */;
|
|
1246
|
+
relocateNodes.length = 0;
|
|
1247
|
+
}
|
|
1248
|
+
contentRef = void 0;
|
|
917
1249
|
};
|
|
918
1250
|
|
|
919
1251
|
// src/runtime/update-component.ts
|
|
@@ -1353,6 +1685,12 @@ var connectedCallback = (elm) => {
|
|
|
1353
1685
|
const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
|
|
1354
1686
|
if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
|
|
1355
1687
|
hostRef.$flags$ |= 1 /* hasConnected */;
|
|
1688
|
+
{
|
|
1689
|
+
if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
|
|
1690
|
+
cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
|
|
1691
|
+
setContentReference(elm);
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1356
1694
|
{
|
|
1357
1695
|
let ancestorComponent = elm;
|
|
1358
1696
|
while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
|
|
@@ -1385,6 +1723,16 @@ var connectedCallback = (elm) => {
|
|
|
1385
1723
|
endConnected();
|
|
1386
1724
|
}
|
|
1387
1725
|
};
|
|
1726
|
+
var setContentReference = (elm) => {
|
|
1727
|
+
if (!win.document) {
|
|
1728
|
+
return;
|
|
1729
|
+
}
|
|
1730
|
+
const contentRefElm = elm["s-cr"] = win.document.createComment(
|
|
1731
|
+
""
|
|
1732
|
+
);
|
|
1733
|
+
contentRefElm["s-cn"] = true;
|
|
1734
|
+
insertBefore(elm, contentRefElm, elm.firstChild);
|
|
1735
|
+
};
|
|
1388
1736
|
var disconnectInstance = (instance, elm) => {
|
|
1389
1737
|
{
|
|
1390
1738
|
safeCall(instance, "disconnectedCallback", void 0, elm || instance);
|
package/dist/cjs/index.cjs.js
CHANGED
|
@@ -132,7 +132,7 @@ const getZonosQaUrl = () => {
|
|
|
132
132
|
return null;
|
|
133
133
|
}
|
|
134
134
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
135
|
-
const cdnUrl = "https://v1.3.
|
|
135
|
+
const cdnUrl = "https://v1.3.232.js.zonos.com";
|
|
136
136
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
137
137
|
if (!qaUrl &&
|
|
138
138
|
(cdnUrl.includes('test.') ||
|
|
@@ -380,10 +380,10 @@ const zonosLoadUrl = (() => {
|
|
|
380
380
|
return null;
|
|
381
381
|
})();
|
|
382
382
|
const startLoadTime = Date.now();
|
|
383
|
-
const ZONOS_URL = "https://v1.3.
|
|
384
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
385
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
386
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
383
|
+
const ZONOS_URL = "https://v1.3.232.js.zonos.com";
|
|
384
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.232";
|
|
385
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.232";
|
|
386
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.232";
|
|
387
387
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
388
388
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
389
389
|
class Zonos {
|
|
@@ -401,7 +401,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
401
401
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
402
402
|
: null;
|
|
403
403
|
Zonos.isBigCommerce = false;
|
|
404
|
-
Zonos.releaseDate = "
|
|
404
|
+
Zonos.releaseDate = "1755722224035";
|
|
405
405
|
Zonos.isLegacyCheckout = false;
|
|
406
406
|
Zonos.startLoadTime = startLoadTime;
|
|
407
407
|
Zonos.domain = typeof window !== 'undefined'
|
|
@@ -421,7 +421,7 @@ Zonos.isNpm = true;
|
|
|
421
421
|
Zonos.zonosQaUrl = null;
|
|
422
422
|
Zonos.zonosQaUrlApi = null;
|
|
423
423
|
Zonos.trackEventLogs = [];
|
|
424
|
-
Zonos.version = `v${"1.3.
|
|
424
|
+
Zonos.version = `v${"1.3.232"}`;
|
|
425
425
|
Zonos.modeAlerted = false;
|
|
426
426
|
Zonos.cartData = null;
|
|
427
427
|
Zonos.paypal = null;
|