@zonos/elements 1.3.241 → 1.3.243
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-376f0f29.js → cart-6d254f1a.js} +3 -1
- package/dist/cjs/{hasInclusivePrice-2e306ea5.js → hasInclusivePrice-ac0440e7.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-856220a7.js → invoice-8984eb26.js} +2 -2
- package/dist/cjs/{isCollectMobileTablet-72ea7338.js → isCollectMobileTablet-7e929884.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-08aa03da.js → localization-ec5a6780.js} +120 -0
- package/dist/cjs/{paypal-ef7e2610.js → paypal-0f4b77fd.js} +2 -2
- package/dist/cjs/{placeTestOrder-427786ae.js → placeTestOrder-6cc9d040.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-9057dec8.js → renderCheckoutCurrency-df60f3a6.js} +2 -2
- package/dist/cjs/zonos-address-display_9.cjs.entry.js +20 -20
- package/dist/cjs/zonos-address_4.cjs.entry.js +5 -5
- package/dist/cjs/zonos-card_5.cjs.entry.js +5 -5
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +9 -9
- package/dist/cjs/zonos-checkout.cjs.entry.js +119 -79
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +5 -5
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +6 -6
- package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +13 -3
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +8 -0
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +41 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +6 -0
- package/dist/collection/components/store/translationStore/strings.base.js +6 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +6 -0
- package/dist/collection/components/store/translationStore/strings.french.js +6 -0
- package/dist/collection/components/store/translationStore/strings.german.js +6 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +6 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
- 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-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/triggerBuildLandedCost.js +3 -0
- package/dist/collection/components/utils/checkout/isShippableCountry.js +15 -1
- package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +129 -0
- package/dist/collection/types/generated/graphql.internal.types.js +2 -0
- package/dist/esm/{cart-60532eb4.js → cart-00134a17.js} +4 -2
- package/dist/esm/{hasInclusivePrice-736c9eec.js → hasInclusivePrice-f41e52b8.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-cbb44b0b.js → invoice-4a8178f8.js} +2 -2
- package/dist/esm/{isCollectMobileTablet-e5503ab8.js → isCollectMobileTablet-70fa91b6.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-285da14c.js → localization-ee8bb238.js} +120 -0
- package/dist/esm/{paypal-ac12eedb.js → paypal-2e28d0e7.js} +2 -2
- package/dist/esm/{placeTestOrder-bba48f55.js → placeTestOrder-aa884e31.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-0176e66f.js → renderCheckoutCurrency-54994d08.js} +2 -2
- package/dist/esm/zonos-address-display_9.entry.js +20 -20
- package/dist/esm/zonos-address_4.entry.js +5 -5
- package/dist/esm/zonos-card_5.entry.js +5 -5
- package/dist/esm/zonos-cart-items_12.entry.js +9 -9
- package/dist/esm/zonos-checkout.entry.js +120 -80
- package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
- package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
- package/dist/esm/zonos-collect.entry.js +4 -4
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +3 -3
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +5 -5
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +6 -6
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
- package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
- package/dist/esm/zonos-invoice.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/cart-00134a17.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-736c9eec.js → hasInclusivePrice-f41e52b8.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-cbb44b0b.js → invoice-4a8178f8.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-e5503ab8.js → isCollectMobileTablet-70fa91b6.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-ee8bb238.js +1 -0
- package/dist/esm-es5/{paypal-ac12eedb.js → paypal-2e28d0e7.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-bba48f55.js → placeTestOrder-aa884e31.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-0176e66f.js → renderCheckoutCurrency-54994d08.js} +1 -1
- package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.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-checkout.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-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-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.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/scripts/index.d.ts +34 -2
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +8 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +3 -1
- package/dist/types/components/utils/checkout/isShippableCountry.d.ts +2 -1
- package/dist/types/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.d.ts +24 -0
- package/dist/types/components.d.ts +16 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +14 -2
- package/dist/types/types/generated/graphql.internal.types.ts +15 -3
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-069e8b40.entry.js +1 -0
- package/dist/zonos-elements/{p-de517648.entry.js → p-0a1b82df.entry.js} +1 -1
- package/dist/zonos-elements/p-0e70900c.entry.js +1 -0
- package/dist/zonos-elements/{p-3a8a6092.system.js → p-0fcd7a94.system.js} +1 -1
- package/dist/zonos-elements/{p-22e26d61.entry.js → p-10b1f35f.entry.js} +1 -1
- package/dist/zonos-elements/{p-2ed81f5d.system.js → p-11e79ab7.system.js} +1 -1
- package/dist/zonos-elements/{p-5afb9260.system.entry.js → p-14c920b2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-32fddb6d.system.entry.js → p-1db4ae37.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-149365e3.system.entry.js → p-20c5d640.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-59a76f73.entry.js → p-231baaf8.entry.js} +1 -1
- package/dist/zonos-elements/{p-8dc025c7.system.entry.js → p-232b0fb5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c5195813.entry.js → p-29bb70e0.entry.js} +1 -1
- package/dist/zonos-elements/{p-8792fef2.system.entry.js → p-2c2a1339.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2dd9b3e0.entry.js +1 -0
- package/dist/zonos-elements/p-343dee8b.system.js +1 -0
- package/dist/zonos-elements/{p-bd603c1a.entry.js → p-3e67ca05.entry.js} +1 -1
- package/dist/zonos-elements/{p-8fd37163.entry.js → p-41147617.entry.js} +1 -1
- package/dist/zonos-elements/{p-13927760.system.entry.js → p-47f02d2a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4d2ed8d5.js +1 -0
- package/dist/zonos-elements/{p-de5a68c3.system.entry.js → p-4fc549f4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-56107bdf.system.entry.js +1 -0
- package/dist/zonos-elements/{p-2ab3f86c.system.entry.js → p-599347f4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-62cfcd21.system.entry.js → p-60443628.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-61aa9365.system.entry.js → p-633017f0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-675dd093.system.js +1 -0
- package/dist/zonos-elements/{p-60397a04.system.entry.js → p-67e19c00.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3e30e203.system.js → p-68f419f1.system.js} +1 -1
- package/dist/zonos-elements/{p-4954a927.system.entry.js → p-6b1091f1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-706d1537.entry.js → p-6beaff11.entry.js} +1 -1
- package/dist/zonos-elements/{p-f04c208e.js → p-6d82c3a4.js} +2 -2
- package/dist/zonos-elements/p-6dc9b9e5.js +1 -0
- package/dist/zonos-elements/{p-85205ac8.system.js → p-6fad6110.system.js} +1 -1
- package/dist/zonos-elements/{p-4dfd33d9.entry.js → p-73e79407.entry.js} +1 -1
- package/dist/zonos-elements/p-752dae00.system.js +1 -0
- package/dist/zonos-elements/{p-fc43442d.system.entry.js → p-75813a38.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-df69f036.entry.js → p-7a4a4b52.entry.js} +1 -1
- package/dist/zonos-elements/{p-2f869f2c.system.entry.js → p-84cf1a90.system.entry.js} +1 -1
- package/dist/zonos-elements/p-899c3878.system.entry.js +1 -0
- package/dist/zonos-elements/{p-944d00da.entry.js → p-8f0f6449.entry.js} +1 -1
- package/dist/zonos-elements/{p-90f58466.system.entry.js → p-90e10b7e.system.entry.js} +1 -1
- package/dist/zonos-elements/p-914149a4.js +1 -0
- package/dist/zonos-elements/{p-ba456282.system.entry.js → p-917f714c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fc64f69d.entry.js → p-9691381e.entry.js} +1 -1
- package/dist/zonos-elements/{p-3a19ae6e.system.js → p-975c6928.system.js} +1 -1
- package/dist/zonos-elements/{p-14314ad3.entry.js → p-9c49daa4.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5c31ca4.system.entry.js → p-9fa90292.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9e29a4a3.entry.js → p-a04c7b1e.entry.js} +1 -1
- package/dist/zonos-elements/{p-121c60c1.system.entry.js → p-a359e0a2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fa322dc1.entry.js → p-aa028d91.entry.js} +1 -1
- package/dist/zonos-elements/{p-79b9aee4.system.entry.js → p-af7e37c1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b3dbe0ec.system.js +1 -0
- package/dist/zonos-elements/{p-264690d7.entry.js → p-c01f86b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-f2614438.js → p-c02e3fef.js} +1 -1
- package/dist/zonos-elements/{p-d9007f2e.system.entry.js → p-c11668b5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-865536f0.entry.js → p-c1fb3a2d.entry.js} +1 -1
- package/dist/zonos-elements/p-c2442878.system.js +1 -1
- package/dist/zonos-elements/{p-e0227f2c.entry.js → p-c8e5bb8a.entry.js} +1 -1
- package/dist/zonos-elements/{p-328990f0.js → p-c9db8939.js} +1 -1
- package/dist/zonos-elements/{p-094f9c5a.entry.js → p-cfb2b5c7.entry.js} +1 -1
- package/dist/zonos-elements/{p-89a5e936.system.entry.js → p-cfb9b847.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d042455d.entry.js +1 -0
- package/dist/zonos-elements/p-dbea1f9b.entry.js +1 -0
- package/dist/zonos-elements/{p-9f1bd9b8.entry.js → p-dcf999d8.entry.js} +1 -1
- package/dist/zonos-elements/{p-9c7edad5.system.entry.js → p-e3b4a218.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7eae7c62.entry.js → p-ea1d5802.entry.js} +1 -1
- package/dist/zonos-elements/p-f5cfce05.js +1 -0
- package/dist/zonos-elements/{p-dfb429d7.system.entry.js → p-f7e6c1b5.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fab5f272.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-60532eb4.js +0 -1
- package/dist/esm-es5/localization-285da14c.js +0 -1
- package/dist/zonos-elements/p-0307e4ac.entry.js +0 -1
- package/dist/zonos-elements/p-0c977c47.system.js +0 -1
- package/dist/zonos-elements/p-1a5a23ed.js +0 -1
- package/dist/zonos-elements/p-3ef06605.js +0 -1
- package/dist/zonos-elements/p-5a5c06ad.entry.js +0 -1
- package/dist/zonos-elements/p-664da916.entry.js +0 -1
- package/dist/zonos-elements/p-83bf52d6.js +0 -1
- package/dist/zonos-elements/p-87bed9ec.system.js +0 -1
- package/dist/zonos-elements/p-ab195686.system.js +0 -1
- package/dist/zonos-elements/p-b152859d.system.entry.js +0 -1
- package/dist/zonos-elements/p-b408debb.system.entry.js +0 -1
- package/dist/zonos-elements/p-c3533444.entry.js +0 -1
- package/dist/zonos-elements/p-cd12c86c.system.js +0 -1
- package/dist/zonos-elements/p-e5ee64c0.entry.js +0 -1
- package/dist/zonos-elements/p-e8f4da3a.js +0 -1
- package/dist/zonos-elements/p-f73d243a.js +0 -1
|
@@ -2,10 +2,10 @@ import { r as registerInstance, h, H as Host, a as getElement, c as createEvent
|
|
|
2
2
|
import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
|
|
5
|
-
import {
|
|
6
|
-
import { s as storageStore } from './localization-
|
|
5
|
+
import { b as stripeStore, t as trackConversionEvent } from './cart-00134a17.js';
|
|
6
|
+
import { s as storageStore } from './localization-ee8bb238.js';
|
|
7
7
|
import { l as logError } from './handleFetch-a844cac1.js';
|
|
8
|
-
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-
|
|
8
|
+
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-2e28d0e7.js';
|
|
9
9
|
import { l as log } from './VarianceTest-572cecf5.js';
|
|
10
10
|
import './isDarkColor-9ddd90cc.js';
|
|
11
11
|
|
|
@@ -255,7 +255,7 @@ const ZonosPayment = class {
|
|
|
255
255
|
}
|
|
256
256
|
render() {
|
|
257
257
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
258
|
-
return (h(Host, { key: '
|
|
258
|
+
return (h(Host, { key: '1fb61e01184d3a0b2dc079ae468e96175d9f6518', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '3860ff7fc2656ff045ce09c0de2e14aa7a22e194', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '3cabad9c095f2eeba8cfc464374ca9abfc2af5ee', class: "zonos--payment-component" }), h("div", { key: '9e2b13a0d8131a5513f99e2a6436ca3c5f03d7cf', class: "zonos--payment-paypal-container" })));
|
|
259
259
|
}
|
|
260
260
|
get el() { return getElement(this); }
|
|
261
261
|
static get watchers() { return {
|
|
@@ -319,7 +319,7 @@ const ZonosPaypalPayment = class {
|
|
|
319
319
|
this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
|
|
320
320
|
}
|
|
321
321
|
render() {
|
|
322
|
-
return (h(Host, { key: '
|
|
322
|
+
return (h(Host, { key: '35387382aaa81e3f8e025e8f3503be41b86e2355', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: '34fad15dee67d8b913071a59d35b1c2317d4d3a0', class: "zonos--payment-paypal-container" })));
|
|
323
323
|
}
|
|
324
324
|
get el() { return getElement(this); }
|
|
325
325
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { r as registerInstance, d as getAssetPath, h, H as Host, F as Fragment, c as createEvent, a as getElement } from './index-0bbe9693.js';
|
|
2
|
-
import {
|
|
3
|
-
import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-
|
|
4
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
2
|
+
import { d as cartStore, E as cartStoreHasOneEligibleItem, F as stripeStoreApplyPromoCode, G as stripeStoreRemovePromoCode, b as stripeStore, y as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, I as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, J as stripeStoreTranslateAddressToLatin, K as extractName, z as cartStoreOnChange, L as stripeStoreAsyncAddressUpdate, D as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo, N as cartStoreGetMethod, O as sortServiceLevelOptionsByAmount } from './cart-00134a17.js';
|
|
3
|
+
import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-ee8bb238.js';
|
|
4
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-54994d08.js';
|
|
5
5
|
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-b5b18743.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
7
7
|
import { z as zonosStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
8
|
-
import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-
|
|
9
|
-
import { s as submitGtag, c as paypalStoreReset, a as paypalStore, i as isContrastColor } from './paypal-
|
|
8
|
+
import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-f41e52b8.js';
|
|
9
|
+
import { s as submitGtag, c as paypalStoreReset, a as paypalStore, i as isContrastColor } from './paypal-2e28d0e7.js';
|
|
10
10
|
import { h as handleFetch, s as sendErrorLog, j as jsonParse, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
|
|
11
11
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
12
12
|
import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
|
|
13
13
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
14
14
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
15
|
-
import { p as placeTestOrder } from './placeTestOrder-
|
|
15
|
+
import { p as placeTestOrder } from './placeTestOrder-aa884e31.js';
|
|
16
16
|
import { i as isDarkColor, t as tinycolor } from './isDarkColor-9ddd90cc.js';
|
|
17
17
|
import { i as isColorVariable } from './isColorVariable-0a94004f.js';
|
|
18
18
|
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-047a6cd4.js';
|
|
@@ -1738,11 +1738,11 @@ const ZonosRestState = class {
|
|
|
1738
1738
|
}
|
|
1739
1739
|
render() {
|
|
1740
1740
|
const imageUrl = this.getImageRestState();
|
|
1741
|
-
return (h(Host, { key: '
|
|
1741
|
+
return (h(Host, { key: '2d9be86849c6ff2f039ca21676cbdf912538eb1d', class: classes(['zonos--elements zonos--restState']), style: {
|
|
1742
1742
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
1743
|
-
} }, h("div", { key: '
|
|
1743
|
+
} }, h("div", { key: 'f538f05fe92eca4ee05daf72ee3387bea337c20c', class: "zonos--restState-image" }, h("img", { key: 'cc752b1ed3e9e656810c901df9f8b19462efc978', alt: this.restStateType, onError: () => {
|
|
1744
1744
|
this.isErrorImageLoad = true;
|
|
1745
|
-
}, src: imageUrl })), h("div", { key: '
|
|
1745
|
+
}, src: imageUrl })), h("div", { key: '4729c415dbac98876fcd907437b8df21b925dec5', class: "content" }, h("zonos-text", { key: '39313c8c71d228cd1076e809146ad7ac3d877a9a', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '69813bd32ae3867ebebcc511655f2052b1175945', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: '98b085930fd76e2ff095cc971ae4699041c1a550', class: "action" }, h("slot", { key: '188318643319081914ed30aad91de5f15b014953' }))));
|
|
1746
1746
|
}
|
|
1747
1747
|
static get assetsDirs() { return ["assets"]; }
|
|
1748
1748
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h, F as Fragment, H as Host } from './index-0bbe9693.js';
|
|
2
|
-
import { s as stripeStoreGetDomesticShippingSession, a as
|
|
3
|
-
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalStore, b as paypalInitScript } from './paypal-
|
|
4
|
-
import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-
|
|
2
|
+
import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as cartStoreOnChange } from './cart-00134a17.js';
|
|
3
|
+
import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalStore, b as paypalInitScript } from './paypal-2e28d0e7.js';
|
|
4
|
+
import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-ee8bb238.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-b434e436.js';
|
|
6
6
|
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
|
|
7
|
-
import { h as handleFetch,
|
|
7
|
+
import { h as handleFetch, b as getAdditionalLogMetadata, g as getIsTestMode, l as logError, j as jsonParse, s as sendErrorLog, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-a844cac1.js';
|
|
8
8
|
import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-047a6cd4.js';
|
|
9
9
|
import { _ as _getIsValidCartId, c as checkoutHiddenBtnSelector, a as checkoutHiddenInternationalBtnSelector, d as domesticRedirectedBtnSelector, g as getAbandonedCartRenewTokenValue } from './CheckoutConfig-724d7bae.js';
|
|
10
10
|
import { l as log, g as getElapsedTime, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
@@ -104,10 +104,23 @@ const isDisabledCountry = (showLog = true) => {
|
|
|
104
104
|
return false;
|
|
105
105
|
};
|
|
106
106
|
|
|
107
|
-
const isShippableCountry = (showLog = true
|
|
107
|
+
const isShippableCountry = (showLog = true,
|
|
108
|
+
/**
|
|
109
|
+
* If provided, will check if the country is shippable based on the provided country code instead of the Hello selected country code
|
|
110
|
+
*/
|
|
111
|
+
providedCountryCode) => {
|
|
112
|
+
var _a;
|
|
108
113
|
if (!localizationStore.localizationLoaded) {
|
|
109
114
|
return false;
|
|
110
115
|
}
|
|
116
|
+
if (providedCountryCode) {
|
|
117
|
+
const isProvidedCountryCodeShippableCountry = !!((_a = localizationStore.shippingZoneCountries) === null || _a === void 0 ? void 0 : _a[providedCountryCode]) &&
|
|
118
|
+
!zonosStore.disabledCountries.includes(providedCountryCode);
|
|
119
|
+
if (showLog && !isProvidedCountryCodeShippableCountry) {
|
|
120
|
+
log(`Checkout: ${providedCountryCode} is not a shippable country: ${isProvidedCountryCodeShippableCountry}`);
|
|
121
|
+
}
|
|
122
|
+
return isProvidedCountryCodeShippableCountry;
|
|
123
|
+
}
|
|
111
124
|
// if localization is loaded and the localization is not a shippable country, keep the original click event
|
|
112
125
|
if (!localizationStore.isShippableCountry) {
|
|
113
126
|
if (showLog) {
|
|
@@ -118,15 +131,70 @@ const isShippableCountry = (showLog = true) => {
|
|
|
118
131
|
return true;
|
|
119
132
|
};
|
|
120
133
|
|
|
134
|
+
const SHIP_TO_COUNTRY_SELECTOR = 'select[name="shippingAddress.countryCode"]';
|
|
121
135
|
/**
|
|
122
|
-
* Watch for changes in domestic checkout step
|
|
136
|
+
* Watch for changes in domestic checkout step. Redirects user to home page to open international checkout when user selects a country in the international shipping zone.
|
|
123
137
|
* @note Only works on default bigcommerce checkout page
|
|
124
138
|
*/
|
|
125
|
-
const
|
|
139
|
+
const watchImmediateBigcommerceDomesticCheckoutRedirect = ({ domesticRedirectedBtnSelector, onInternationalCheckoutSelected, onShippingAddressSessionFound, }) => {
|
|
126
140
|
if (!window.Zonos.isBigCommerce) {
|
|
127
141
|
return;
|
|
128
142
|
}
|
|
129
|
-
|
|
143
|
+
/**
|
|
144
|
+
* Keep checking
|
|
145
|
+
*/
|
|
146
|
+
const handleInternationalCheckoutSelected = async () => {
|
|
147
|
+
const shipToCountryElement = document.querySelector(SHIP_TO_COUNTRY_SELECTOR);
|
|
148
|
+
if (!shipToCountryElement) {
|
|
149
|
+
return false;
|
|
150
|
+
}
|
|
151
|
+
const shippingCountry = shipToCountryElement.value;
|
|
152
|
+
if (!shippingCountry) {
|
|
153
|
+
// do nothing if shipping country is not found
|
|
154
|
+
return false;
|
|
155
|
+
}
|
|
156
|
+
if (!isShippableCountry(false, shippingCountry)) {
|
|
157
|
+
// do nothing if shipping country is not shippable
|
|
158
|
+
return false;
|
|
159
|
+
}
|
|
160
|
+
if (onInternationalCheckoutSelected) {
|
|
161
|
+
await onInternationalCheckoutSelected();
|
|
162
|
+
}
|
|
163
|
+
// update the country code in localization store and check if it's shippable
|
|
164
|
+
localizationStoreUpdateSelectedCountryCode({
|
|
165
|
+
isInitializing: false,
|
|
166
|
+
newSelectedCountryCode: shippingCountry,
|
|
167
|
+
});
|
|
168
|
+
const shippingAddress = {
|
|
169
|
+
address1: '',
|
|
170
|
+
address2: '',
|
|
171
|
+
city: '',
|
|
172
|
+
countryCode: shippingCountry,
|
|
173
|
+
firstName: '',
|
|
174
|
+
lastName: '',
|
|
175
|
+
phone: '',
|
|
176
|
+
postalCode: '',
|
|
177
|
+
stateOrProvince: '',
|
|
178
|
+
};
|
|
179
|
+
// save the shipping address to session storage
|
|
180
|
+
stripeStoreSaveDomesticShippingSession({
|
|
181
|
+
address1: shippingAddress.address1,
|
|
182
|
+
address2: shippingAddress.address2,
|
|
183
|
+
city: shippingAddress.city,
|
|
184
|
+
countryCode: shippingAddress.countryCode,
|
|
185
|
+
firstName: shippingAddress.firstName,
|
|
186
|
+
lastName: shippingAddress.lastName,
|
|
187
|
+
phone: shippingAddress.phone,
|
|
188
|
+
postalCode: shippingAddress.postalCode,
|
|
189
|
+
state: shippingAddress.stateOrProvince,
|
|
190
|
+
});
|
|
191
|
+
// redirect to home page, home page then will open the checkout dialog if having domestic shipping session
|
|
192
|
+
window.location.href = '/';
|
|
193
|
+
return true;
|
|
194
|
+
};
|
|
195
|
+
let isProcessing = false;
|
|
196
|
+
let intervalCreated = false;
|
|
197
|
+
const observer = new MutationObserver(() => {
|
|
130
198
|
const domesticRedirectedButton = document.querySelector(domesticRedirectedBtnSelector);
|
|
131
199
|
const shippingAddressSession = stripeStoreGetDomesticShippingSession();
|
|
132
200
|
// append a hidden button to the body if the shipping address session is found
|
|
@@ -141,84 +209,47 @@ const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShi
|
|
|
141
209
|
observer.disconnect();
|
|
142
210
|
return;
|
|
143
211
|
}
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
const
|
|
147
|
-
if
|
|
212
|
+
const isBigcommerceDomesticCheckoutPage = window.location.pathname.includes('/checkout') &&
|
|
213
|
+
window.Zonos.isBigCommerce;
|
|
214
|
+
const shipToCountryElement = document.querySelector(SHIP_TO_COUNTRY_SELECTOR);
|
|
215
|
+
// Should just disconnect the observer if it's not bigcommerce domestic checkout page
|
|
216
|
+
if (!isBigcommerceDomesticCheckoutPage) {
|
|
217
|
+
observer.disconnect();
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
// Shouldn't do anything if it's not bigcommerce domestic checkout page
|
|
221
|
+
if (!shipToCountryElement) {
|
|
148
222
|
// do nothing if shipping country and the continue button is not found
|
|
149
223
|
return;
|
|
150
224
|
}
|
|
151
|
-
|
|
225
|
+
log('Domestic checkout found - Listening for shipping country change', 'info', {
|
|
226
|
+
value: shipToCountryElement.value,
|
|
227
|
+
});
|
|
228
|
+
// Should not create a new interval if it's already created
|
|
229
|
+
if (intervalCreated) {
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
intervalCreated = true;
|
|
233
|
+
// disconnect the observer after we know that's bigcommerce domestic checkout page
|
|
152
234
|
observer.disconnect();
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
const shippingCountry = shipToCountryElement.value;
|
|
156
|
-
if (!shippingCountry) {
|
|
157
|
-
// do nothing if shipping country is not found
|
|
235
|
+
const interval = setInterval(async () => {
|
|
236
|
+
if (isProcessing) {
|
|
158
237
|
return;
|
|
159
238
|
}
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
return;
|
|
239
|
+
isProcessing = true;
|
|
240
|
+
try {
|
|
241
|
+
const isInternationalCountrySelected = await handleInternationalCheckoutSelected();
|
|
242
|
+
// When isInternationalCountrySelected is true, user will be redirected shortly, so we can stop the checking interval here
|
|
243
|
+
if (isInternationalCountrySelected) {
|
|
244
|
+
clearInterval(interval);
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
isProcessing = false;
|
|
170
248
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
if (!shipToFormElement) {
|
|
174
|
-
return;
|
|
249
|
+
catch (_a) {
|
|
250
|
+
isProcessing = false;
|
|
175
251
|
}
|
|
176
|
-
|
|
177
|
-
const shipAddress1Element = document.querySelector('input#addressLine1Input');
|
|
178
|
-
const shippingAddress = {
|
|
179
|
-
address1: (_a = formData.get('shippingAddress.address1')) !== null && _a !== void 0 ? _a :
|
|
180
|
-
// in Canada, the address1 is not included in the form, try to get value from input id instead.
|
|
181
|
-
(shipAddress1Element && shipAddress1Element.value),
|
|
182
|
-
address2: formData.get('shippingAddress.address2'),
|
|
183
|
-
city: formData.get('shippingAddress.city'),
|
|
184
|
-
countryCode: formData.get('shippingAddress.countryCode'),
|
|
185
|
-
firstName: formData.get('shippingAddress.firstName'),
|
|
186
|
-
lastName: formData.get('shippingAddress.lastName'),
|
|
187
|
-
phone: formData.get('shippingAddress.phone'),
|
|
188
|
-
postalCode: formData.get('shippingAddress.postalCode'),
|
|
189
|
-
stateOrProvince: (_b = formData.get('shippingAddress.stateOrProvince')) !== null && _b !== void 0 ? _b : formData.get('shippingAddress.stateOrProvinceCode'),
|
|
190
|
-
};
|
|
191
|
-
if (Object.values(shippingAddress).some(value => value === undefined || value === null)) {
|
|
192
|
-
logError('One or more shipping address field is missing', Object.entries(shippingAddress));
|
|
193
|
-
void sendErrorLog({
|
|
194
|
-
endpoint: 'No endpoint, domestic checkout form missing fields',
|
|
195
|
-
errors: [
|
|
196
|
-
'Bigcommerce: One or more shipping address field is missing in the domestic checkout form',
|
|
197
|
-
JSON.stringify(Object.entries(shippingAddress)),
|
|
198
|
-
],
|
|
199
|
-
metadata: {
|
|
200
|
-
storeId: zonosStore.storeId,
|
|
201
|
-
},
|
|
202
|
-
});
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
// save the shipping address to session storage
|
|
206
|
-
stripeStoreSaveDomesticShippingSession({
|
|
207
|
-
address1: shippingAddress.address1,
|
|
208
|
-
address2: shippingAddress.address2,
|
|
209
|
-
city: shippingAddress.city,
|
|
210
|
-
countryCode: shippingAddress.countryCode,
|
|
211
|
-
firstName: shippingAddress.firstName,
|
|
212
|
-
lastName: shippingAddress.lastName,
|
|
213
|
-
phone: shippingAddress.phone,
|
|
214
|
-
postalCode: shippingAddress.postalCode,
|
|
215
|
-
state: shippingAddress.stateOrProvince,
|
|
216
|
-
});
|
|
217
|
-
e.preventDefault();
|
|
218
|
-
e.stopPropagation();
|
|
219
|
-
// redirect to home page, home page then will open the checkout dialog if having domestic shipping session
|
|
220
|
-
window.location.href = '/';
|
|
221
|
-
});
|
|
252
|
+
}, 1000);
|
|
222
253
|
});
|
|
223
254
|
observer.observe(document.body, {
|
|
224
255
|
childList: true,
|
|
@@ -512,6 +543,10 @@ const ZonosCheckout = class {
|
|
|
512
543
|
* Whether or not the fedex shipping dialog should be shown
|
|
513
544
|
*/
|
|
514
545
|
this.shouldShowFedexShippingConsentDialog = false;
|
|
546
|
+
/**
|
|
547
|
+
* Whether or not the domestic checkout dialog should be shown
|
|
548
|
+
*/
|
|
549
|
+
this.detectedDomesticCheckoutDialogOpen = false;
|
|
515
550
|
/**
|
|
516
551
|
* Client secret value
|
|
517
552
|
*/
|
|
@@ -1363,8 +1398,13 @@ const ZonosCheckout = class {
|
|
|
1363
1398
|
cartStore.isStagingMode = this.overrideStagingMode;
|
|
1364
1399
|
}
|
|
1365
1400
|
// check if bigcommerce, if user enters the shipping address that's in the shipping zone at bigcommerce checkout
|
|
1366
|
-
|
|
1401
|
+
watchImmediateBigcommerceDomesticCheckoutRedirect({
|
|
1367
1402
|
domesticRedirectedBtnSelector: domesticRedirectedBtnSelector,
|
|
1403
|
+
onInternationalCheckoutSelected: async () => {
|
|
1404
|
+
this.detectedDomesticCheckoutDialogOpen = true;
|
|
1405
|
+
// wait for 2 secs
|
|
1406
|
+
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
1407
|
+
},
|
|
1368
1408
|
onShippingAddressSessionFound: shippingAddressSession => {
|
|
1369
1409
|
// prefilled the default address if shipping address session is found for checkout on open
|
|
1370
1410
|
this.defaultAddress = [
|
|
@@ -1877,7 +1917,7 @@ const ZonosCheckout = class {
|
|
|
1877
1917
|
this.isMobile && 'mobile',
|
|
1878
1918
|
this.isIframed && 'iframed',
|
|
1879
1919
|
this.hiddenMode && 'hidden-mode',
|
|
1880
|
-
]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), h("zonos-confirm-dialog", { class: "zonos--close-confirm-dialog", dialogCancelBtnText: translate("Don't close"), dialogConfirmBtnText: translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: translate('Would you like to close checkout and return to the site?'), dialogTitle: translate('Are you sure?'), onCancelClicked: () => {
|
|
1920
|
+
]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), h("zonos-dialog", { isLoading: true, loadingText: translate('You will be redirected to international checkout shortly.'), loadingTitle: translate('We detected that you are shipping to an international address.'), noClickOutside: true, noCloseButton: true, open: this.detectedDomesticCheckoutDialogOpen, width: "450px" }), h("zonos-confirm-dialog", { class: "zonos--close-confirm-dialog", dialogCancelBtnText: translate("Don't close"), dialogConfirmBtnText: translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: translate('Would you like to close checkout and return to the site?'), dialogTitle: translate('Are you sure?'), onCancelClicked: () => {
|
|
1881
1921
|
this.confirmDialogOpen = false;
|
|
1882
1922
|
},
|
|
1883
1923
|
// Mark user selected confirm to close the dialog
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, d as getAssetPath, h, H as Host } from './index-0bbe9693.js';
|
|
2
|
-
import {
|
|
2
|
+
import { d as cartStore } from './cart-00134a17.js';
|
|
3
3
|
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-b5b18743.js';
|
|
4
4
|
import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
6
|
import { s as styles } from './styles-6fc2fad9.js';
|
|
7
|
-
import './localization-
|
|
7
|
+
import './localization-ee8bb238.js';
|
|
8
8
|
import './handleFetch-a844cac1.js';
|
|
9
9
|
import './VarianceTest-572cecf5.js';
|
|
10
10
|
import './isDarkColor-9ddd90cc.js';
|
|
@@ -48,10 +48,10 @@ const HStack = class {
|
|
|
48
48
|
this.spacing = 24;
|
|
49
49
|
}
|
|
50
50
|
render() {
|
|
51
|
-
return (h(Host, { key: '
|
|
51
|
+
return (h(Host, { key: '443aa77bfbf4c0c84c33d0ef7652caec001968c3', style: {
|
|
52
52
|
'--spacing': `${this.spacing}px`,
|
|
53
53
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
54
|
-
} }, h("slot", { key: '
|
|
54
|
+
} }, h("slot", { key: '3366df34b9f0f3549e556cff1e47878c2f6cd124' })));
|
|
55
55
|
}
|
|
56
56
|
};
|
|
57
57
|
HStack.style = ZonosHStackStyle0;
|
|
@@ -74,7 +74,7 @@ const ZonosSkeleton = class {
|
|
|
74
74
|
this.skeletonHeight = '14px';
|
|
75
75
|
}
|
|
76
76
|
render() {
|
|
77
|
-
return (h(Host, { key: '
|
|
77
|
+
return (h(Host, { key: '096e505180d901c1523567f89cdbcca7869a0895', class: classes(['zonos--elements zonos--skeleton']), style: styles({
|
|
78
78
|
'--zonos--skeleton-height': this.skeletonHeight,
|
|
79
79
|
'--zonos--skeleton-width': this.skeletonWidth,
|
|
80
80
|
}) }));
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, a as getElement } from './index-0bbe9693.js';
|
|
2
|
-
import {
|
|
3
|
-
import { s as submitGtag, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-
|
|
4
|
-
import { t as translate, s as storageStore, l as localizationStore, p as translationStoreOnChange } from './localization-
|
|
2
|
+
import { b as stripeStore, c as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, y as stripeStoreReset, I as stripeStoreMessageBasedOnStatus, d as cartStore, r as cartStoreNextStep, z as cartStoreOnChange } from './cart-00134a17.js';
|
|
3
|
+
import { s as submitGtag, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-2e28d0e7.js';
|
|
4
|
+
import { t as translate, s as storageStore, l as localizationStore, p as translationStoreOnChange } from './localization-ee8bb238.js';
|
|
5
5
|
import { z as zonosStore } from './zonosStore-b434e436.js';
|
|
6
6
|
import { h as handleFetch, s as sendErrorLog, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
|
|
7
7
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
8
8
|
import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
|
|
9
9
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
10
|
-
import { i as isCollectMobile, a as isCollectTablet, e as collectStore } from './isCollectMobileTablet-
|
|
10
|
+
import { i as isCollectMobile, a as isCollectTablet, e as collectStore } from './isCollectMobileTablet-70fa91b6.js';
|
|
11
11
|
import { c as classes } from './classes-0d95c529.js';
|
|
12
12
|
import { l as languages } from './ILanguage-cd6acb72.js';
|
|
13
|
-
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-
|
|
14
|
-
import { p as placeTestOrder } from './placeTestOrder-
|
|
13
|
+
import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-54994d08.js';
|
|
14
|
+
import { p as placeTestOrder } from './placeTestOrder-aa884e31.js';
|
|
15
15
|
import { r as renderFallback } from './renderFallback-3f010b48.js';
|
|
16
16
|
import './isDarkColor-9ddd90cc.js';
|
|
17
17
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, F as Fragment } from './index-0bbe9693.js';
|
|
2
|
-
import {
|
|
3
|
-
import { i as isCollectMobile, a as isCollectTablet, c as collectStoreUpdateSelectedShippingOption, b as collectStoreInitShippingInfo, d as collectStoreAsyncAddressUpdate, e as collectStore } from './isCollectMobileTablet-
|
|
4
|
-
import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-
|
|
5
|
-
import { s as storageStore, t as translate, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-
|
|
2
|
+
import { b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, n as cartStoreUpdateToErrorState, e as cartStoreUpdateItems, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, u as stripeStoreUpdateCheckoutSessionBaseCurrency, w as stripeStoreConfirmPayment, B as stripeStoreOnChange, y as stripeStoreReset, f as cartStoreReset } from './cart-00134a17.js';
|
|
3
|
+
import { i as isCollectMobile, a as isCollectTablet, c as collectStoreUpdateSelectedShippingOption, b as collectStoreInitShippingInfo, d as collectStoreAsyncAddressUpdate, e as collectStore } from './isCollectMobileTablet-70fa91b6.js';
|
|
4
|
+
import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-2e28d0e7.js';
|
|
5
|
+
import { s as storageStore, t as translate, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-ee8bb238.js';
|
|
6
6
|
import { z as zonosStore } from './zonosStore-b434e436.js';
|
|
7
7
|
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
|
|
8
8
|
import { h as handleFetch, s as sendErrorLog, l as logError, g as getIsTestMode } from './handleFetch-a844cac1.js';
|
|
@@ -27,7 +27,7 @@ const ZonosComponent = class {
|
|
|
27
27
|
return format(this.first, this.middle, this.last);
|
|
28
28
|
}
|
|
29
29
|
render() {
|
|
30
|
-
return h("div", { key: '
|
|
30
|
+
return h("div", { key: 'c15c75e21319fb4723d1062aa89c6e08cc2129b3' }, "Hello, World! I'm ", this.getText());
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
ZonosComponent.style = ZonosComponentStyle0;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-0bbe9693.js';
|
|
2
|
-
import {
|
|
3
|
-
import { e as getOverridenZCountry, i as isValidSelector, h as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-
|
|
2
|
+
import { b as stripeStore } from './cart-00134a17.js';
|
|
3
|
+
import { e as getOverridenZCountry, i as isValidSelector, h as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-ee8bb238.js';
|
|
4
4
|
import { z as zonosStore, e as zonosStoreInitSetting, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
5
5
|
import { g as getGenericSettingsOverride, i as iframeServices, a as injectPrivateIframe } from './getGenericSettingsOverride-0bc3e118.js';
|
|
6
6
|
import { h as handleFetch, l as logError } from './handleFetch-a844cac1.js';
|
|
@@ -723,7 +723,7 @@ const ZonosController = class {
|
|
|
723
723
|
zonosStore.organizationName = organizationName;
|
|
724
724
|
}
|
|
725
725
|
render() {
|
|
726
|
-
return h(Host, { key: '
|
|
726
|
+
return h(Host, { key: 'fe248e1e38cd3d98c56f55d39b704f7337c74c29', class: "zonos--elements" });
|
|
727
727
|
}
|
|
728
728
|
};
|
|
729
729
|
ZonosController.style = ZonosControllerStyle0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement } from './index-0bbe9693.js';
|
|
2
|
-
import { l as localizationStore } from './localization-
|
|
2
|
+
import { l as localizationStore } from './localization-ee8bb238.js';
|
|
3
3
|
import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-a844cac1.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement } from './index-0bbe9693.js';
|
|
2
|
-
import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, t as translate, l as localizationStore } from './localization-ee8bb238.js';
|
|
3
3
|
import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
|
|
4
4
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
5
5
|
import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
|
|
@@ -1951,9 +1951,9 @@ const ZonosHelloDialogFooter = class {
|
|
|
1951
1951
|
const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
|
|
1952
1952
|
// Only use gray-0 (white) when the background color is dark (apply inverted color if the element is using dark theme variable)
|
|
1953
1953
|
const mainColor = primaryColor && isDarkColor(primaryColor) ? 'white' : 'black';
|
|
1954
|
-
return (h(Host, { key: '
|
|
1954
|
+
return (h(Host, { key: '7480572c4e05bfc177458ab00adb774069f28d52', class: "zonos--elements" }, h("div", { key: 'bd27466c0d82be3c5cde2f89dcc48749e2313090', class: "zonos--hello-dialog-footer", style: {
|
|
1955
1955
|
'--zonos--primary-color': primaryColor,
|
|
1956
|
-
} }, h("a", { key: '
|
|
1956
|
+
} }, h("a", { key: 'f6ca08c3c4f8eef3f4b81a77ba0d5a2e6cea8f62', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'a54d33d548145f0eb542041d3903ea4a257c39bb', "aria-label": "Zonos Logo", autoHeight: true, content: mainColor === 'black' ? ZonosIconLight : ZonosIconDark, iconColor: mainColor, size: 108 })), h("div", { key: '52e06b22daaac439d5ebdcdcf44bd8f85fed4564', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: '30b994c3340467a62e72f62bde853b24e3f9e4f1', buttonColor: mainColor, icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), h("zonos-button", { key: '26e2b5d8525d57841e2b7c1fefc69c96b21ad199', buttonColor: mainColor, icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localizationStore.selectedCountryCode)))));
|
|
1957
1957
|
}
|
|
1958
1958
|
get ele() { return getElement(this); }
|
|
1959
1959
|
};
|
|
@@ -2062,10 +2062,10 @@ const ZonosVirtualScroll = class {
|
|
|
2062
2062
|
render() {
|
|
2063
2063
|
const { width: containerWidth } = this.containerDimensions;
|
|
2064
2064
|
const visibleItems = this.getVisibleItems();
|
|
2065
|
-
return (h(Host, { key: '
|
|
2065
|
+
return (h(Host, { key: 'a5083227ddbd44f3f94f0e4ecd7ebee309526fce', class: classes(['zonos--virtual-scroll']) }, h("div", { key: '45dd1bb2f501ca6a2091c06a68c5f96652bd2976', class: classes(['scroller']), style: {
|
|
2066
2066
|
height: `${this.totalHeight}px`,
|
|
2067
2067
|
width: `${containerWidth}px`,
|
|
2068
|
-
} }), h("div", { key: '
|
|
2068
|
+
} }), h("div", { key: 'e8c90e99bdc3301c5430a098d4b9f57ec0bc020b', class: classes(['item-container']), style: {
|
|
2069
2069
|
height: `${this.totalHeight}px`,
|
|
2070
2070
|
} }, visibleItems.map(({ element }) => element))));
|
|
2071
2071
|
}
|