@zonos/elements 1.3.266 → 1.3.268
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-efc42379.js → cart-af7c024e.js} +129 -4
- package/dist/cjs/{debounce-606d1801.js → debounce-7990f5ea.js} +1 -1
- package/dist/cjs/{getBorderRadius-a91911e7.js → getBorderRadius-fc683d94.js} +1 -1
- package/dist/cjs/{getContrastColor-ce80dbe7.js → getContrastColor-d5134ef3.js} +2 -2
- package/dist/cjs/{hasInclusivePrice-400be1b2.js → hasInclusivePrice-0fa6e022.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-9e4d479f.js → invoice-c2e3f232.js} +3 -3
- package/dist/cjs/{isCollectMobileTablet-630fcf87.js → isCollectMobileTablet-6014787b.js} +3 -3
- package/dist/cjs/{isContrastColor-a02c4889.js → isContrastColor-76592c92.js} +1 -1
- package/dist/cjs/{isDarkColor-e317bb06.js → isDarkColor-5d6ca405.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-4b17c530.js → localization-f897bc45.js} +472 -1
- package/dist/cjs/{paypal-3bb55914.js → paypal-6756a0da.js} +60 -18
- package/dist/cjs/{placeTestOrder-313cbd78.js → placeTestOrder-a4874e51.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-e0436f1c.js → renderCheckoutCurrency-584d50fe.js} +2 -2
- package/dist/cjs/{submitGtag-07a3b09e.js → submitGtag-4906b161.js} +1 -1
- package/dist/cjs/{throttle-8aebac7d.js → throttle-02c2e917.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-a9a97194.js → updateCheckoutSessionAttributes-47d73942.js} +1 -1
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +7 -7
- package/dist/cjs/zonos-address_4.cjs.entry.js +7 -7
- package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_5.cjs.entry.js +8 -8
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +94 -27
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +112 -85
- package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +11 -11
- package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
- package/dist/cjs/zonos-controller.cjs.entry.js +126 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +3 -3
- package/dist/cjs/zonos-hello.cjs.entry.js +3 -3
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +11 -11
- package/dist/cjs/zonos-invoice.cjs.entry.js +9 -9
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/{zonos-store-credit.cjs.entry.js → zonos-policy-consent_2.cjs.entry.js} +91 -6
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-0662b95f.js → zonosStore-45a87908.js} +1 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +7 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +66 -12
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +103 -75
- package/dist/collection/components/checkout/zonos-checkout/zonos-policy-consent/zonos-policy-consent.css +93 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-policy-consent/zonos-policy-consent.js +93 -0
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +1 -1
- package/dist/collection/components/main/zonos-controller.js +6 -2
- package/dist/collection/components/store/checkout/paypal.js +57 -14
- package/dist/collection/components/store/checkout/policyConsent.js +58 -0
- package/dist/collection/components/store/checkout/stripe.js +66 -0
- package/dist/collection/components/store/hello/localization.js +6 -0
- package/dist/collection/components/store/translationStore/strings.arabic.js +21 -0
- package/dist/collection/components/store/translationStore/strings.base.js +21 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +21 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +21 -0
- package/dist/collection/components/store/translationStore/strings.french.js +21 -0
- package/dist/collection/components/store/translationStore/strings.german.js +21 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +21 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +21 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +21 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +21 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -0
- package/dist/collection/components/store/zonosStore.js +1 -0
- package/dist/collection/components/utils/checkout/injectDomesticElementHideStyle.js +116 -0
- package/dist/collection/types/generated/graphql.internal.types.js +351 -73
- package/dist/collection/utils/toggleBigcommerceNativeCurrencySelector.js +48 -0
- package/dist/esm/{cart-62c166fc.js → cart-68c16805.js} +125 -5
- package/dist/esm/{debounce-ab526ca0.js → debounce-58e4ff3e.js} +1 -1
- package/dist/esm/{getBorderRadius-98c64be8.js → getBorderRadius-d23f47a6.js} +1 -1
- package/dist/esm/{getContrastColor-0aa643c1.js → getContrastColor-f0bd5b65.js} +2 -2
- package/dist/esm/{hasInclusivePrice-a73f64b7.js → hasInclusivePrice-f1ca1610.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-fa4ff6fb.js → invoice-d0eadc6a.js} +3 -3
- package/dist/esm/{isCollectMobileTablet-5f50ec81.js → isCollectMobileTablet-11ade63f.js} +3 -3
- package/dist/esm/{isContrastColor-6bad285e.js → isContrastColor-fbddacb6.js} +1 -1
- package/dist/esm/{isDarkColor-0a8453e7.js → isDarkColor-566f04c5.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-d2631105.js → localization-8e81b696.js} +472 -1
- package/dist/esm/{paypal-424d040d.js → paypal-e32877e9.js} +60 -18
- package/dist/esm/{placeTestOrder-cf237d95.js → placeTestOrder-4cf429d7.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-513ead96.js → renderCheckoutCurrency-9459b8a3.js} +2 -2
- package/dist/esm/{submitGtag-ae9d5d91.js → submitGtag-c7ea1f2a.js} +1 -1
- package/dist/esm/{throttle-882b1f47.js → throttle-f09d0659.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-da7fdd37.js → updateCheckoutSessionAttributes-40e301a4.js} +1 -1
- package/dist/esm/zonos-address-display_8.entry.js +7 -7
- package/dist/esm/zonos-address_4.entry.js +7 -7
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_5.entry.js +8 -8
- package/dist/esm/zonos-cart-items_12.entry.js +94 -27
- package/dist/esm/zonos-checkbox_2.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +112 -85
- package/dist/esm/zonos-collapse.entry.js +1 -1
- package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
- package/dist/esm/zonos-collect-finish_6.entry.js +11 -11
- package/dist/esm/zonos-collect.entry.js +9 -9
- package/dist/esm/zonos-controller.entry.js +126 -7
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +3 -3
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +3 -3
- package/dist/esm/zonos-hello.entry.js +3 -3
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +7 -7
- package/dist/esm/zonos-invoice-finish_5.entry.js +11 -11
- package/dist/esm/zonos-invoice.entry.js +9 -9
- package/dist/esm/zonos-language-select_2.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/{zonos-store-credit.entry.js → zonos-policy-consent_2.entry.js} +91 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
- package/dist/esm/zonos-stripe-input.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +1 -1
- package/dist/esm/{zonosStore-9662b071.js → zonosStore-8e19daff.js} +1 -0
- package/dist/esm-es5/cart-68c16805.js +1 -0
- package/dist/esm-es5/{debounce-ab526ca0.js → debounce-58e4ff3e.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-98c64be8.js → getBorderRadius-d23f47a6.js} +1 -1
- package/dist/esm-es5/{getContrastColor-0aa643c1.js → getContrastColor-f0bd5b65.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-a73f64b7.js → hasInclusivePrice-f1ca1610.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-fa4ff6fb.js → invoice-d0eadc6a.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-5f50ec81.js → isCollectMobileTablet-11ade63f.js} +1 -1
- package/dist/esm-es5/{isContrastColor-6bad285e.js → isContrastColor-fbddacb6.js} +1 -1
- package/dist/esm-es5/{isDarkColor-0a8453e7.js → isDarkColor-566f04c5.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-8e81b696.js +1 -0
- package/dist/esm-es5/{paypal-424d040d.js → paypal-e32877e9.js} +2 -2
- package/dist/esm-es5/{placeTestOrder-cf237d95.js → placeTestOrder-4cf429d7.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-513ead96.js → renderCheckoutCurrency-9459b8a3.js} +1 -1
- package/dist/esm-es5/{submitGtag-ae9d5d91.js → submitGtag-c7ea1f2a.js} +1 -1
- package/dist/esm-es5/throttle-f09d0659.js +1 -0
- package/dist/esm-es5/{updateCheckoutSessionAttributes-da7fdd37.js → updateCheckoutSessionAttributes-40e301a4.js} +1 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.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-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.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-policy-consent_2.entry.js +1 -0
- 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-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-9662b071.js → zonosStore-8e19daff.js} +1 -1
- package/dist/scripts/index.d.ts +105 -11
- 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-policy-consent/zonos-policy-consent.d.ts +3 -0
- package/dist/types/components/store/checkout/policyConsent.d.ts +41 -0
- package/dist/types/components/store/checkout/stripe.d.ts +13 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +21 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +21 -0
- package/dist/types/components/utils/checkout/injectDomesticElementHideStyle.d.ts +18 -0
- package/dist/types/components.d.ts +13 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +29 -11
- package/dist/types/types/checkout/CheckoutConfig.d.ts +32 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +501 -119
- package/dist/types/types/generated/graphql.internal.types.ts +561 -154
- package/dist/types/types/utils/ZonosSettings.d.ts +9 -0
- package/dist/types/utils/toggleBigcommerceNativeCurrencySelector.d.ts +17 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-7b640194.entry.js → p-000b895a.entry.js} +1 -1
- package/dist/zonos-elements/p-01913da8.js +1 -0
- package/dist/zonos-elements/{p-bbbbae9a.system.entry.js → p-06e7fe2a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0803ad10.js +1 -0
- package/dist/zonos-elements/{p-79e5a629.system.entry.js → p-0e36a7cf.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8cd0a098.system.entry.js → p-108b5307.system.entry.js} +1 -1
- package/dist/zonos-elements/p-11439d12.entry.js +1 -0
- package/dist/zonos-elements/{p-b6df4cc2.system.entry.js → p-134c5010.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ea88f7f5.system.entry.js → p-1376e67f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-14d6542f.system.js +1 -0
- package/dist/zonos-elements/p-17be8409.entry.js +1 -0
- package/dist/zonos-elements/{p-a75baf3e.js → p-17e3cd62.js} +1 -1
- package/dist/zonos-elements/{p-0207c91e.system.js → p-18af6aaa.system.js} +1 -1
- package/dist/zonos-elements/p-1eef8c23.system.js +1 -0
- package/dist/zonos-elements/p-24091606.system.entry.js +1 -0
- package/dist/zonos-elements/{p-6b6cfc59.system.entry.js → p-26ae4ee7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-71fb6126.entry.js → p-2afecda7.entry.js} +1 -1
- package/dist/zonos-elements/p-2ccd20c0.system.js +1 -0
- package/dist/zonos-elements/{p-d28be518.js → p-33d4be28.js} +1 -1
- package/dist/zonos-elements/{p-26c85188.entry.js → p-344a1fee.entry.js} +1 -1
- package/dist/zonos-elements/{p-f1bbad73.entry.js → p-38311c16.entry.js} +1 -1
- package/dist/zonos-elements/p-3b28fc76.js +1 -0
- package/dist/zonos-elements/{p-db3b101a.js → p-3dc3596b.js} +1 -1
- package/dist/zonos-elements/{p-3689821f.system.js → p-3e7ee89d.system.js} +1 -1
- package/dist/zonos-elements/{p-2b30beea.system.js → p-44b279cc.system.js} +1 -1
- package/dist/zonos-elements/{p-4d433020.system.entry.js → p-48805ed6.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ab0b23f2.js → p-4df08fc4.js} +1 -1
- package/dist/zonos-elements/p-4fe3d5e0.system.js +18 -0
- package/dist/zonos-elements/{p-227ef22f.entry.js → p-50362897.entry.js} +1 -1
- package/dist/zonos-elements/p-52bd7be3.system.js +1 -0
- package/dist/zonos-elements/{p-deaf0e38.system.entry.js → p-536cbab5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-305e2dd8.system.js → p-53a59935.system.js} +1 -1
- package/dist/zonos-elements/{p-27513bfe.system.entry.js → p-593764cf.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-01384124.system.js → p-5b05b461.system.js} +1 -1
- package/dist/zonos-elements/{p-a49ba3ae.system.entry.js → p-5b4e5608.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1bf9a1b9.system.js → p-5d65be06.system.js} +1 -1
- package/dist/zonos-elements/{p-bce7bfcc.system.entry.js → p-5e18d92b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1957af5a.system.entry.js → p-5f92db80.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5fa2395d.system.js +1 -0
- package/dist/zonos-elements/{p-2431f95c.entry.js → p-620a9013.entry.js} +1 -1
- package/dist/zonos-elements/p-623fc89a.system.entry.js +1 -0
- package/dist/zonos-elements/p-64e8f05d.system.entry.js +1 -0
- package/dist/zonos-elements/{p-2a6be4a5.entry.js → p-658ab5e2.entry.js} +1 -1
- package/dist/zonos-elements/{p-bb77b580.entry.js → p-673407b8.entry.js} +1 -1
- package/dist/zonos-elements/{p-6ab742d9.system.entry.js → p-69089a6f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f76d5249.entry.js → p-6f41c193.entry.js} +1 -1
- package/dist/zonos-elements/{p-f3cfd8fa.js → p-701d9a7c.js} +1 -1
- package/dist/zonos-elements/{p-02d812c8.entry.js → p-7166df08.entry.js} +1 -1
- package/dist/zonos-elements/p-72960738.js +1 -0
- package/dist/zonos-elements/p-72c3756a.js +1 -0
- package/dist/zonos-elements/{p-5ae695a3.entry.js → p-7628569a.entry.js} +1 -1
- package/dist/zonos-elements/p-774de1ec.system.js +1 -0
- package/dist/zonos-elements/{p-27061873.entry.js → p-777d396e.entry.js} +1 -1
- package/dist/zonos-elements/{p-ce44c942.system.js → p-7a220941.system.js} +1 -1
- package/dist/zonos-elements/{p-46071125.entry.js → p-7aca66cd.entry.js} +1 -1
- package/dist/zonos-elements/p-7cf8e1f0.js +1 -0
- package/dist/zonos-elements/{p-eb99a625.system.js → p-7d9d2407.system.js} +1 -1
- package/dist/zonos-elements/{p-889e5db0.entry.js → p-7fef8558.entry.js} +1 -1
- package/dist/zonos-elements/{p-7003d093.system.entry.js → p-80df7e0b.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8116d3ba.entry.js +1 -0
- package/dist/zonos-elements/{p-648f3ada.entry.js → p-889a44fc.entry.js} +1 -1
- package/dist/zonos-elements/{p-4c89d04a.js → p-896fb969.js} +1 -1
- package/dist/zonos-elements/{p-0ea16658.system.entry.js → p-8ddc21f1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-90d22087.system.js +1 -0
- package/dist/zonos-elements/{p-7c101a92.system.entry.js → p-95b460e9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-08934304.system.entry.js → p-95f3bbad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7677c45a.entry.js → p-97da66f2.entry.js} +1 -1
- package/dist/zonos-elements/{p-55fb4ea3.system.entry.js → p-98bea13e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ba9e2612.system.entry.js → p-990d1495.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9f5fb332.js +1 -0
- package/dist/zonos-elements/{p-6b682a6b.system.entry.js → p-a0ee01dd.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ac8cfdc0.js +1 -0
- package/dist/zonos-elements/{p-7b74e5f2.system.entry.js → p-af12a1b7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b4b23475.entry.js → p-b35a0b1e.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf5c3dd7.system.entry.js → p-b59fc3fa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b71ef46e.js +17 -0
- package/dist/zonos-elements/{p-d63e18a8.entry.js → p-b93b66c2.entry.js} +1 -1
- package/dist/zonos-elements/p-b9a615bc.system.entry.js +1 -0
- package/dist/zonos-elements/{p-6a195559.system.js → p-bc919de1.system.js} +1 -1
- package/dist/zonos-elements/{p-72efa5b7.system.entry.js → p-bc9a30a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-665bfd4f.entry.js → p-c1463da7.entry.js} +1 -1
- package/dist/zonos-elements/{p-03e95598.entry.js → p-c3459f4a.entry.js} +1 -1
- package/dist/zonos-elements/{p-781cc8de.system.entry.js → p-c7ca3e98.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c91fade3.entry.js +1 -0
- package/dist/zonos-elements/{p-79f3c227.system.entry.js → p-c92a5ae5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-cd34ecf2.js +1 -0
- package/dist/zonos-elements/{p-28e2ac3b.entry.js → p-dae881f2.entry.js} +1 -1
- package/dist/zonos-elements/{p-9b660cd3.js → p-dcafbd4e.js} +1 -1
- package/dist/zonos-elements/{p-8571f3ce.entry.js → p-df55536b.entry.js} +1 -1
- package/dist/zonos-elements/{p-acf42bc1.entry.js → p-e3d6f9b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-928291e5.entry.js → p-e548b8ec.entry.js} +1 -1
- package/dist/zonos-elements/{p-5e6f85f0.system.js → p-f053975e.system.js} +1 -1
- package/dist/zonos-elements/{p-72187e00.entry.js → p-fc5007e0.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.css +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-62c166fc.js +0 -1
- package/dist/esm-es5/localization-d2631105.js +0 -1
- package/dist/esm-es5/throttle-882b1f47.js +0 -1
- package/dist/esm-es5/zonos-store-credit.entry.js +0 -1
- package/dist/zonos-elements/p-06c4d422.system.js +0 -1
- package/dist/zonos-elements/p-0efd2d5a.js +0 -1
- package/dist/zonos-elements/p-1a470353.entry.js +0 -1
- package/dist/zonos-elements/p-1d6f3ab9.js +0 -1
- package/dist/zonos-elements/p-209d7728.system.entry.js +0 -1
- package/dist/zonos-elements/p-27eeaf56.system.js +0 -1
- package/dist/zonos-elements/p-367a72bc.js +0 -1
- package/dist/zonos-elements/p-37207963.system.js +0 -1
- package/dist/zonos-elements/p-40284821.system.js +0 -1
- package/dist/zonos-elements/p-40a45837.system.entry.js +0 -1
- package/dist/zonos-elements/p-4495f149.system.entry.js +0 -1
- package/dist/zonos-elements/p-456a600b.entry.js +0 -1
- package/dist/zonos-elements/p-4980facb.js +0 -1
- package/dist/zonos-elements/p-5e10d4ff.system.entry.js +0 -1
- package/dist/zonos-elements/p-61d73d69.js +0 -1
- package/dist/zonos-elements/p-6d81901a.js +0 -1
- package/dist/zonos-elements/p-8ccd6d3f.js +0 -1
- package/dist/zonos-elements/p-9aaa1d80.entry.js +0 -1
- package/dist/zonos-elements/p-a371f770.system.js +0 -1
- package/dist/zonos-elements/p-a9425900.system.js +0 -18
- package/dist/zonos-elements/p-b2d276e1.js +0 -1
- package/dist/zonos-elements/p-c7047a1c.js +0 -1
- package/dist/zonos-elements/p-cd88efdb.js +0 -17
- package/dist/zonos-elements/p-daeb57cb.entry.js +0 -1
- package/dist/zonos-elements/p-e3292be8.system.js +0 -1
- package/dist/zonos-elements/p-e5dfccd8.system.js +0 -1
|
@@ -3,24 +3,24 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const localization = require('./localization-
|
|
9
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-af7c024e.js');
|
|
7
|
+
const paypal = require('./paypal-6756a0da.js');
|
|
8
|
+
const localization = require('./localization-f897bc45.js');
|
|
9
|
+
const zonosStore = require('./zonosStore-45a87908.js');
|
|
10
10
|
const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
|
|
11
11
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
12
|
-
const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-
|
|
12
|
+
const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-47d73942.js');
|
|
13
13
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
14
14
|
const CheckoutConfig = require('./CheckoutConfig-27c82f94.js');
|
|
15
15
|
const classes = require('./classes-b7918f56.js');
|
|
16
16
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
17
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
18
|
-
const isDarkColor = require('./isDarkColor-
|
|
17
|
+
const getBorderRadius = require('./getBorderRadius-fc683d94.js');
|
|
18
|
+
const isDarkColor = require('./isDarkColor-5d6ca405.js');
|
|
19
19
|
const styles = require('./styles-d1e64fb9.js');
|
|
20
20
|
const RemoveIcon = require('./RemoveIcon-081ac073.js');
|
|
21
|
-
require('./isContrastColor-
|
|
22
|
-
require('./submitGtag-
|
|
23
|
-
require('./debounce-
|
|
21
|
+
require('./isContrastColor-76592c92.js');
|
|
22
|
+
require('./submitGtag-4906b161.js');
|
|
23
|
+
require('./debounce-7990f5ea.js');
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
26
|
* Check if store discount is enabled
|
|
@@ -1787,6 +1787,12 @@ const ZonosCheckout = class {
|
|
|
1787
1787
|
// reset cart store if it's not preview mode and only when checkout is in the finish step.
|
|
1788
1788
|
cart.cartStoreReset();
|
|
1789
1789
|
}
|
|
1790
|
+
// Clear policy consent on every close (not just finish) so a buyer who
|
|
1791
|
+
// checked the box mid-flow and then closed can't carry the prior
|
|
1792
|
+
// acceptance into a new attempt without a fresh checkbox click.
|
|
1793
|
+
if (!this.preview) {
|
|
1794
|
+
cart.policyConsentStoreReset();
|
|
1795
|
+
}
|
|
1790
1796
|
// reset step to customer info
|
|
1791
1797
|
cart.cartStore.step = 'customer-info';
|
|
1792
1798
|
// reset the tab item, so that user needs to click on Continue button to re-quote the landed cost if needed.
|
|
@@ -2615,77 +2621,104 @@ const ZonosCheckout = class {
|
|
|
2615
2621
|
cart.stripeStore.shouldRenderPayInUsdButton &&
|
|
2616
2622
|
!this.payInUsdConfirmDialogOpen) {
|
|
2617
2623
|
this.payInUsdConfirmDialogOpen = true;
|
|
2624
|
+
// Don't unlock consent here — the USD-confirm dialog is mid-flow; the
|
|
2625
|
+
// lock should hold until the user resolves the dialog and we re-enter.
|
|
2618
2626
|
return;
|
|
2619
2627
|
}
|
|
2620
2628
|
// Close the dialog after the user confirms to proceed with the payment in USD
|
|
2621
2629
|
this.payInUsdConfirmDialogOpen = false;
|
|
2622
|
-
//
|
|
2623
|
-
|
|
2624
|
-
//
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
// reset inventory check message
|
|
2628
|
-
cart.cartStore.inventoryCheckErrorMessage = null;
|
|
2629
|
-
// Attempt to change settlement currency to USD
|
|
2630
|
-
const baseCurrencyUpdateSuccess = await cart.stripeStoreUpdateCheckoutSessionBaseCurrency();
|
|
2631
|
-
// Should not proceed to confirm payment if base currency update failed
|
|
2632
|
-
if (!baseCurrencyUpdateSuccess) {
|
|
2633
|
-
cart.stripeStore.hasPaymentError = true;
|
|
2634
|
-
cart.stripeStore.customErrorMessage = localization.translate('Unable to complete payment in [currency]. Please try again or select a different currency. If the issue persists, contact our support team for assistance.', {
|
|
2635
|
-
currency: cart.stripeStore.checkoutSettlementCurrency,
|
|
2636
|
-
});
|
|
2637
|
-
this.submitLoading = false;
|
|
2638
|
-
return;
|
|
2639
|
-
}
|
|
2630
|
+
// Track whether consent was required at the start of this flow so we know
|
|
2631
|
+
// whether to release the lock in `finally`. The store reset on checkout
|
|
2632
|
+
// close will catch any stragglers, but releasing here lets the buyer
|
|
2633
|
+
// recover (uncheck / retry) when an async step aborts.
|
|
2634
|
+
const consentWasRequired = cart.isPolicyConsentRequired();
|
|
2640
2635
|
try {
|
|
2641
|
-
//
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
//
|
|
2647
|
-
cart.cartStore.inventoryCheckErrorMessage =
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
this.submitLoading = false;
|
|
2653
|
-
return;
|
|
2654
|
-
}
|
|
2655
|
-
// Apply store credit if customer has selected an amount
|
|
2656
|
-
const storeCreditAmount = cart.storeCreditStoreGetEffectiveAmount();
|
|
2657
|
-
if (storeCreditAmount > 0) {
|
|
2658
|
-
const storeCreditResult = await cart.storeCreditStoreApplyCredit();
|
|
2659
|
-
if (!storeCreditResult.success) {
|
|
2636
|
+
// reset paypal error message
|
|
2637
|
+
paypal.paypalStore.paypalErrorMessage = null;
|
|
2638
|
+
// reset error state
|
|
2639
|
+
cart.stripeStore.hasPaymentError = false;
|
|
2640
|
+
this.submitLoading = true;
|
|
2641
|
+
// reset inventory check message
|
|
2642
|
+
cart.cartStore.inventoryCheckErrorMessage = null;
|
|
2643
|
+
// Attempt to change settlement currency to USD
|
|
2644
|
+
const baseCurrencyUpdateSuccess = await cart.stripeStoreUpdateCheckoutSessionBaseCurrency();
|
|
2645
|
+
// Should not proceed to confirm payment if base currency update failed
|
|
2646
|
+
if (!baseCurrencyUpdateSuccess) {
|
|
2660
2647
|
cart.stripeStore.hasPaymentError = true;
|
|
2661
|
-
cart.stripeStore.customErrorMessage =
|
|
2662
|
-
|
|
2663
|
-
|
|
2648
|
+
cart.stripeStore.customErrorMessage = localization.translate('Unable to complete payment in [currency]. Please try again or select a different currency. If the issue persists, contact our support team for assistance.', {
|
|
2649
|
+
currency: cart.stripeStore.checkoutSettlementCurrency,
|
|
2650
|
+
});
|
|
2664
2651
|
this.submitLoading = false;
|
|
2665
2652
|
return;
|
|
2666
2653
|
}
|
|
2667
|
-
}
|
|
2668
|
-
// If store credit covers the full order, create order directly without payment
|
|
2669
|
-
if (cart.storeCreditStoreCoversFullAmount()) {
|
|
2670
2654
|
try {
|
|
2671
|
-
//
|
|
2672
|
-
|
|
2673
|
-
|
|
2655
|
+
// check inventory before proceeding to payment
|
|
2656
|
+
cart.cartStore.inventoryCheckErrorMessage =
|
|
2657
|
+
await cart.stripeStoreHandleInventoryCheck();
|
|
2658
|
+
}
|
|
2659
|
+
catch (_a) {
|
|
2660
|
+
// If user provide callback and it throw an exception, default to this message and stop the payment.
|
|
2661
|
+
cart.cartStore.inventoryCheckErrorMessage = localization.translate('Unable to check inventory. Please try again.');
|
|
2662
|
+
}
|
|
2663
|
+
// Don't proceed to payment if there's an error message
|
|
2664
|
+
if (cart.cartStore.inventoryCheckErrorMessage) {
|
|
2665
|
+
// stop the submit loading state
|
|
2666
|
+
this.submitLoading = false;
|
|
2667
|
+
return;
|
|
2668
|
+
}
|
|
2669
|
+
// Apply store credit if customer has selected an amount
|
|
2670
|
+
const storeCreditAmount = cart.storeCreditStoreGetEffectiveAmount();
|
|
2671
|
+
if (storeCreditAmount > 0) {
|
|
2672
|
+
const storeCreditResult = await cart.storeCreditStoreApplyCredit();
|
|
2673
|
+
if (!storeCreditResult.success) {
|
|
2674
2674
|
cart.stripeStore.hasPaymentError = true;
|
|
2675
|
-
cart.stripeStore.customErrorMessage =
|
|
2675
|
+
cart.stripeStore.customErrorMessage =
|
|
2676
|
+
storeCreditResult.error ||
|
|
2677
|
+
localization.translate('Unable to apply store credit. Please try again.');
|
|
2676
2678
|
this.submitLoading = false;
|
|
2677
2679
|
return;
|
|
2678
2680
|
}
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
+
}
|
|
2682
|
+
// If store credit covers the full order, create order directly without payment
|
|
2683
|
+
if (cart.storeCreditStoreCoversFullAmount()) {
|
|
2684
|
+
try {
|
|
2685
|
+
// Validate checkout session (landed cost ID, etc.) before creating order
|
|
2686
|
+
const checkoutSessionStatus = await cart.validateCheckoutSession();
|
|
2687
|
+
if (!checkoutSessionStatus.valid) {
|
|
2688
|
+
cart.stripeStore.hasPaymentError = true;
|
|
2689
|
+
cart.stripeStore.customErrorMessage = checkoutSessionStatus.errorMessage;
|
|
2690
|
+
this.submitLoading = false;
|
|
2691
|
+
return;
|
|
2692
|
+
}
|
|
2693
|
+
const orderResult = await cart.storeCreditStoreCreateOrder();
|
|
2694
|
+
if (!orderResult.success) {
|
|
2695
|
+
cart.stripeStore.hasPaymentError = true;
|
|
2696
|
+
cart.stripeStore.customErrorMessage =
|
|
2697
|
+
orderResult.error ||
|
|
2698
|
+
localization.translate('Unable to place order with store credit. Please try again.');
|
|
2699
|
+
this.submitLoading = false;
|
|
2700
|
+
return;
|
|
2701
|
+
}
|
|
2702
|
+
cart.cartStoreNextStep();
|
|
2703
|
+
cart.cartStoreClearCheckoutInterval();
|
|
2704
|
+
}
|
|
2705
|
+
catch (err) {
|
|
2706
|
+
handleFetch.logError(err);
|
|
2707
|
+
paypal.submitAnalytics({
|
|
2708
|
+
event: 'zonos-checkout-payment-fail',
|
|
2709
|
+
metadata: {
|
|
2710
|
+
checkoutSessionId: localization.storageStore.checkoutSessionId,
|
|
2711
|
+
},
|
|
2712
|
+
});
|
|
2681
2713
|
cart.stripeStore.hasPaymentError = true;
|
|
2682
|
-
cart.stripeStore.customErrorMessage =
|
|
2683
|
-
orderResult.error ||
|
|
2684
|
-
localization.translate('Unable to place order with store credit. Please try again.');
|
|
2685
|
-
this.submitLoading = false;
|
|
2686
|
-
return;
|
|
2687
2714
|
}
|
|
2715
|
+
this.submitLoading = false;
|
|
2716
|
+
return;
|
|
2717
|
+
}
|
|
2718
|
+
try {
|
|
2719
|
+
await cart.stripeStoreConfirmPayment();
|
|
2688
2720
|
cart.cartStoreNextStep();
|
|
2721
|
+
// clear the checkout session timeout timer when purchase is complete
|
|
2689
2722
|
cart.cartStoreClearCheckoutInterval();
|
|
2690
2723
|
}
|
|
2691
2724
|
catch (err) {
|
|
@@ -2697,32 +2730,22 @@ const ZonosCheckout = class {
|
|
|
2697
2730
|
},
|
|
2698
2731
|
});
|
|
2699
2732
|
cart.stripeStore.hasPaymentError = true;
|
|
2733
|
+
// should request inventory refund if there's an error during payment
|
|
2734
|
+
if (cart.stripeStore.shouldInventoryRefund) {
|
|
2735
|
+
void cart.stripeStoreHandleInventoryRefund();
|
|
2736
|
+
cart.stripeStore.shouldInventoryRefund = false;
|
|
2737
|
+
}
|
|
2700
2738
|
}
|
|
2701
2739
|
this.submitLoading = false;
|
|
2702
|
-
return;
|
|
2703
2740
|
}
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
cart
|
|
2707
|
-
//
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
catch (err) {
|
|
2711
|
-
handleFetch.logError(err);
|
|
2712
|
-
paypal.submitAnalytics({
|
|
2713
|
-
event: 'zonos-checkout-payment-fail',
|
|
2714
|
-
metadata: {
|
|
2715
|
-
checkoutSessionId: localization.storageStore.checkoutSessionId,
|
|
2716
|
-
},
|
|
2717
|
-
});
|
|
2718
|
-
cart.stripeStore.hasPaymentError = true;
|
|
2719
|
-
// should request inventory refund if there's an error during payment
|
|
2720
|
-
if (cart.stripeStore.shouldInventoryRefund) {
|
|
2721
|
-
void cart.stripeStoreHandleInventoryRefund();
|
|
2722
|
-
cart.stripeStore.shouldInventoryRefund = false;
|
|
2741
|
+
finally {
|
|
2742
|
+
// Release the consent lock on every terminal exit (success or failure)
|
|
2743
|
+
// so the buyer can re-toggle / retry. On success the cart advances and
|
|
2744
|
+
// the close-handler reset would clean this up anyway.
|
|
2745
|
+
if (consentWasRequired) {
|
|
2746
|
+
cart.policyConsentStore.locked = false;
|
|
2723
2747
|
}
|
|
2724
2748
|
}
|
|
2725
|
-
this.submitLoading = false;
|
|
2726
2749
|
}
|
|
2727
2750
|
async handleFinishClick() {
|
|
2728
2751
|
// reset stripe store
|
|
@@ -2734,6 +2757,8 @@ const ZonosCheckout = class {
|
|
|
2734
2757
|
}
|
|
2735
2758
|
// reset cart store
|
|
2736
2759
|
cart.cartStoreReset();
|
|
2760
|
+
// reset policy consent so the next checkout starts un-accepted
|
|
2761
|
+
cart.policyConsentStoreReset();
|
|
2737
2762
|
// redirect to vendor store url if this is legacy checkout.
|
|
2738
2763
|
if (window.Zonos.isLegacyCheckout && window.Zonos.cartData) {
|
|
2739
2764
|
const storeBaseUrl = window.Zonos.cartData.storeBaseUrl ||
|
|
@@ -2935,6 +2960,8 @@ const ZonosCheckout = class {
|
|
|
2935
2960
|
cart.stripeStoreReset();
|
|
2936
2961
|
// reset cart store
|
|
2937
2962
|
cart.cartStoreReset();
|
|
2963
|
+
// reset policy consent
|
|
2964
|
+
cart.policyConsentStoreReset();
|
|
2938
2965
|
// cleanup onChange listener
|
|
2939
2966
|
this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
|
|
2940
2967
|
window.removeEventListener('message', this.handleHostedOpenWindowCallback);
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const zonosStore = require('./zonosStore-45a87908.js');
|
|
7
7
|
require('./VarianceTest-bec00ea8.js');
|
|
8
8
|
|
|
9
9
|
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}";
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-af7c024e.js');
|
|
7
7
|
const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-31da84b7.js');
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
8
|
+
const zonosStore = require('./zonosStore-45a87908.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
10
|
const styles = require('./styles-d1e64fb9.js');
|
|
11
|
-
require('./localization-
|
|
11
|
+
require('./localization-f897bc45.js');
|
|
12
12
|
require('./handleFetch-954f30e1.js');
|
|
13
13
|
require('./VarianceTest-bec00ea8.js');
|
|
14
|
-
require('./isDarkColor-
|
|
15
|
-
require('./getBorderRadius-
|
|
14
|
+
require('./isDarkColor-5d6ca405.js');
|
|
15
|
+
require('./getBorderRadius-fc683d94.js');
|
|
16
16
|
|
|
17
17
|
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}";
|
|
18
18
|
const ZonosCollectCartItemsStyle0 = zonosCollectCartItemsCss;
|
|
@@ -3,23 +3,23 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const localization = require('./localization-
|
|
9
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-af7c024e.js');
|
|
7
|
+
const paypal = require('./paypal-6756a0da.js');
|
|
8
|
+
const localization = require('./localization-f897bc45.js');
|
|
9
|
+
const zonosStore = require('./zonosStore-45a87908.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
11
11
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
12
|
-
const getBorderRadius = require('./getBorderRadius-
|
|
12
|
+
const getBorderRadius = require('./getBorderRadius-fc683d94.js');
|
|
13
13
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
14
|
-
const isCollectMobileTablet = require('./isCollectMobileTablet-
|
|
14
|
+
const isCollectMobileTablet = require('./isCollectMobileTablet-6014787b.js');
|
|
15
15
|
const classes = require('./classes-b7918f56.js');
|
|
16
16
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
17
|
-
const renderCheckoutCurrency = require('./renderCheckoutCurrency-
|
|
18
|
-
const placeTestOrder = require('./placeTestOrder-
|
|
17
|
+
const renderCheckoutCurrency = require('./renderCheckoutCurrency-584d50fe.js');
|
|
18
|
+
const placeTestOrder = require('./placeTestOrder-a4874e51.js');
|
|
19
19
|
const renderFallback = require('./renderFallback-bc20ee20.js');
|
|
20
|
-
require('./isDarkColor-
|
|
21
|
-
require('./isContrastColor-
|
|
22
|
-
require('./submitGtag-
|
|
20
|
+
require('./isDarkColor-5d6ca405.js');
|
|
21
|
+
require('./isContrastColor-76592c92.js');
|
|
22
|
+
require('./submitGtag-4906b161.js');
|
|
23
23
|
|
|
24
24
|
const RemoveIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
25
25
|
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const isCollectMobileTablet = require('./isCollectMobileTablet-
|
|
8
|
-
const paypal = require('./paypal-
|
|
9
|
-
const localization = require('./localization-
|
|
10
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-af7c024e.js');
|
|
7
|
+
const isCollectMobileTablet = require('./isCollectMobileTablet-6014787b.js');
|
|
8
|
+
const paypal = require('./paypal-6756a0da.js');
|
|
9
|
+
const localization = require('./localization-f897bc45.js');
|
|
10
|
+
const zonosStore = require('./zonosStore-45a87908.js');
|
|
11
11
|
const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
|
|
12
12
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
13
13
|
const classes = require('./classes-b7918f56.js');
|
|
14
14
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
15
15
|
const renderFallback = require('./renderFallback-bc20ee20.js');
|
|
16
16
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
17
|
-
require('./isDarkColor-
|
|
18
|
-
require('./getBorderRadius-
|
|
19
|
-
require('./isContrastColor-
|
|
20
|
-
require('./submitGtag-
|
|
17
|
+
require('./isDarkColor-5d6ca405.js');
|
|
18
|
+
require('./getBorderRadius-fc683d94.js');
|
|
19
|
+
require('./isContrastColor-76592c92.js');
|
|
20
|
+
require('./submitGtag-4906b161.js');
|
|
21
21
|
|
|
22
22
|
const ChevronDownIcon = `<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
23
23
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
8
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const cart = require('./cart-af7c024e.js');
|
|
7
|
+
const localization = require('./localization-f897bc45.js');
|
|
8
|
+
const zonosStore = require('./zonosStore-45a87908.js');
|
|
9
9
|
const getGenericSettingsOverride = require('./getGenericSettingsOverride-c0ca32b9.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-954f30e1.js');
|
|
11
11
|
const VarianceTest = require('./VarianceTest-bec00ea8.js');
|
|
12
|
-
const submitGtag = require('./submitGtag-
|
|
13
|
-
require('./isDarkColor-
|
|
14
|
-
require('./getBorderRadius-
|
|
12
|
+
const submitGtag = require('./submitGtag-4906b161.js');
|
|
13
|
+
require('./isDarkColor-5d6ca405.js');
|
|
14
|
+
require('./getBorderRadius-fc683d94.js');
|
|
15
15
|
|
|
16
16
|
const getZonosSettings = async () => {
|
|
17
17
|
if (window.Zonos.cartSettings) {
|
|
@@ -101,6 +101,122 @@ const initInvoice = () => {
|
|
|
101
101
|
injectCheckoutElement();
|
|
102
102
|
};
|
|
103
103
|
|
|
104
|
+
const STYLE_ID = 'zonos-domestic-element-hide-style';
|
|
105
|
+
/**
|
|
106
|
+
* Probe whether the host parser understands `:is(...)`. Real browsers do
|
|
107
|
+
* (Chrome 88+, Firefox 78+, Safari 14+); older environments and some test
|
|
108
|
+
* runtimes don't. When supported, we wrap the merchant selector in a single
|
|
109
|
+
* `:is(...)` so a single `body.z-intl ` ancestor scopes the whole group.
|
|
110
|
+
* When not supported, we distribute the prefix across each top-level
|
|
111
|
+
* comma-separated piece instead — so the rule still applies in that
|
|
112
|
+
* environment.
|
|
113
|
+
*/
|
|
114
|
+
const supportsIsSelector = typeof document !== 'undefined' &&
|
|
115
|
+
(() => {
|
|
116
|
+
try {
|
|
117
|
+
document.querySelector(':is(.zonos-is-probe)');
|
|
118
|
+
return true;
|
|
119
|
+
}
|
|
120
|
+
catch (_a) {
|
|
121
|
+
return false;
|
|
122
|
+
}
|
|
123
|
+
})();
|
|
124
|
+
/**
|
|
125
|
+
* Split a CSS selector string on top-level commas. Commas inside parentheses
|
|
126
|
+
* (`:not(.a, .b)`, `:nth-child(2n+1)`) or attribute brackets
|
|
127
|
+
* (`[data-foo=","]`) are preserved as part of the piece.
|
|
128
|
+
*/
|
|
129
|
+
const splitTopLevelCommas = (input) => {
|
|
130
|
+
const parts = [];
|
|
131
|
+
let parenDepth = 0;
|
|
132
|
+
let bracketDepth = 0;
|
|
133
|
+
let current = '';
|
|
134
|
+
for (let i = 0; i < input.length; i++) {
|
|
135
|
+
const char = input[i];
|
|
136
|
+
if (char === '(') {
|
|
137
|
+
parenDepth++;
|
|
138
|
+
}
|
|
139
|
+
else if (char === ')') {
|
|
140
|
+
parenDepth--;
|
|
141
|
+
}
|
|
142
|
+
else if (char === '[') {
|
|
143
|
+
bracketDepth++;
|
|
144
|
+
}
|
|
145
|
+
else if (char === ']') {
|
|
146
|
+
bracketDepth--;
|
|
147
|
+
}
|
|
148
|
+
if (char === ',' && parenDepth === 0 && bracketDepth === 0) {
|
|
149
|
+
const trimmed = current.trim();
|
|
150
|
+
if (trimmed) {
|
|
151
|
+
parts.push(trimmed);
|
|
152
|
+
}
|
|
153
|
+
current = '';
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
current += char;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
const trimmed = current.trim();
|
|
160
|
+
if (trimmed) {
|
|
161
|
+
parts.push(trimmed);
|
|
162
|
+
}
|
|
163
|
+
return parts;
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* Build the fully-scoped selector that will land in the injected `<style>`
|
|
167
|
+
* tag. Exported so tests can exercise both branches of the `:is()`-support
|
|
168
|
+
* fallback without having to mock the module-level probe.
|
|
169
|
+
*/
|
|
170
|
+
const buildDomesticHideSelector = ({ merchantSelector, supportsIs, }) => {
|
|
171
|
+
if (supportsIs) {
|
|
172
|
+
return `body.z-intl :is(${merchantSelector})`;
|
|
173
|
+
}
|
|
174
|
+
// Fallback: distribute the `body.z-intl ` ancestor prefix across each
|
|
175
|
+
// top-level comma-separated piece. Parentheses/brackets are respected,
|
|
176
|
+
// so pseudo-classes that take selector lists (`:not(.a, .b)`) and
|
|
177
|
+
// attribute selectors that contain commas stay intact.
|
|
178
|
+
return splitTopLevelCommas(merchantSelector)
|
|
179
|
+
.map(part => `body.z-intl ${part}`)
|
|
180
|
+
.join(', ');
|
|
181
|
+
};
|
|
182
|
+
/**
|
|
183
|
+
* Inject a `<style>` tag that hides storefront elements matching the
|
|
184
|
+
* merchant-configured `checkoutSettings.domesticElementSelector`, scoped to
|
|
185
|
+
* `body.z-intl` so the rule only takes effect when the shopper is in a
|
|
186
|
+
* shipping zone (Hello sets the body class). The exact selector we emit is
|
|
187
|
+
* also the selector we validate — see [[buildDomesticHideSelector]] for the
|
|
188
|
+
* `:is()`-support branching.
|
|
189
|
+
*/
|
|
190
|
+
const injectDomesticElementHideStyle = (domesticElementSelector) => {
|
|
191
|
+
if (typeof document === 'undefined' || !domesticElementSelector) {
|
|
192
|
+
return;
|
|
193
|
+
}
|
|
194
|
+
const fullSelector = buildDomesticHideSelector({
|
|
195
|
+
merchantSelector: domesticElementSelector,
|
|
196
|
+
supportsIs: supportsIsSelector,
|
|
197
|
+
});
|
|
198
|
+
// The browser's own parser is the source of truth — `document.querySelector`
|
|
199
|
+
// throws `DOMException(SyntaxError)` for syntactically invalid selectors.
|
|
200
|
+
// Validating the exact string we're about to emit catches both malformed
|
|
201
|
+
// input and payloads that close `:is(` early to escape the wrapper.
|
|
202
|
+
try {
|
|
203
|
+
document.querySelector(fullSelector);
|
|
204
|
+
}
|
|
205
|
+
catch (_a) {
|
|
206
|
+
VarianceTest.log(`Skip domesticElementSelector injection: "${domesticElementSelector}" produced an invalid CSS selector ("${fullSelector}")`, 'warn');
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
// Already injected — settings can re-emit on hot reload during dev.
|
|
210
|
+
if (document.getElementById(STYLE_ID)) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
const style = document.createElement('style');
|
|
214
|
+
style.id = STYLE_ID;
|
|
215
|
+
style.textContent = `${fullSelector} { display: none !important; }`;
|
|
216
|
+
(document.head || document.body).appendChild(style);
|
|
217
|
+
VarianceTest.log('Zonos domestic element hide style injected');
|
|
218
|
+
};
|
|
219
|
+
|
|
104
220
|
const injectHelloComponent = (anchorElementSelector) => {
|
|
105
221
|
const triggerAnchorElement = document.querySelector(anchorElementSelector);
|
|
106
222
|
// append checkout component if doesn't exist
|
|
@@ -633,6 +749,9 @@ const ZonosController = class {
|
|
|
633
749
|
zonosSettings: json,
|
|
634
750
|
});
|
|
635
751
|
zonosStore.zonosStore.zonosMode = zonosMode;
|
|
752
|
+
// Inject the merchant's domestic-element hide style now that
|
|
753
|
+
// checkoutSettings have been merged into the store.
|
|
754
|
+
injectDomesticElementHideStyle(zonosStore.zonosStore.checkoutSettings.domesticElementSelector);
|
|
636
755
|
// setup google font after store loaded
|
|
637
756
|
void this.setupGoogleFont();
|
|
638
757
|
if (zonosStore.zonosStore.helloSettings.visibilityStatus === 'DISABLED') {
|
|
@@ -730,7 +849,7 @@ const ZonosController = class {
|
|
|
730
849
|
zonosStore.zonosStore.organizationName = organizationName;
|
|
731
850
|
}
|
|
732
851
|
render() {
|
|
733
|
-
return index.h(index.Host, { key: '
|
|
852
|
+
return index.h(index.Host, { key: 'fe1f262a2bfbf4f6f39c0f23783c132bde8d2dd7', class: "zonos--elements" });
|
|
734
853
|
}
|
|
735
854
|
};
|
|
736
855
|
ZonosController.style = ZonosControllerStyle0;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const localization = require('./localization-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const localization = require('./localization-f897bc45.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-45a87908.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-954f30e1.js');
|
|
10
10
|
require('./VarianceTest-bec00ea8.js');
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-b1f95d96.js');
|
|
6
|
-
const localization = require('./localization-
|
|
7
|
-
const zonosStore = require('./zonosStore-
|
|
6
|
+
const localization = require('./localization-f897bc45.js');
|
|
7
|
+
const zonosStore = require('./zonosStore-45a87908.js');
|
|
8
8
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
9
|
-
const isDarkColor = require('./isDarkColor-
|
|
9
|
+
const isDarkColor = require('./isDarkColor-5d6ca405.js');
|
|
10
10
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
11
11
|
const classes = require('./classes-b7918f56.js');
|
|
12
12
|
require('./handleFetch-954f30e1.js');
|