@zonos/elements 1.3.262 → 1.3.264
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-d08c87e2.js → cart-d4486651.js} +4 -4
- package/dist/cjs/{debounce-3e17b4e9.js → debounce-606d1801.js} +1 -1
- package/dist/cjs/{getBorderRadius-db55a464.js → getBorderRadius-a91911e7.js} +1 -1
- package/dist/cjs/{getContrastColor-8ed1cb48.js → getContrastColor-68058615.js} +2 -2
- package/dist/cjs/{hasInclusivePrice-c781c336.js → hasInclusivePrice-40358cb1.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-e64f97c6.js → invoice-600fa2a4.js} +3 -3
- package/dist/cjs/{isCollectMobileTablet-9675485f.js → isCollectMobileTablet-f56566ef.js} +3 -3
- package/dist/cjs/{isContrastColor-6a17f408.js → isContrastColor-a02c4889.js} +1 -1
- package/dist/cjs/{isDarkColor-bfe6d1eb.js → isDarkColor-e317bb06.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-a7fac4b4.js → localization-06cc0379.js} +16 -2
- package/dist/cjs/{paypal-e278f405.js → paypal-52c4a4d4.js} +5 -5
- package/dist/cjs/{placeTestOrder-aefd31e8.js → placeTestOrder-7c88197a.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-a374741a.js → renderCheckoutCurrency-2ebeff09.js} +2 -2
- package/dist/cjs/{submitGtag-4241212b.js → submitGtag-07a3b09e.js} +1 -1
- package/dist/cjs/{throttle-dac93461.js → throttle-8aebac7d.js} +2 -2
- package/dist/cjs/{updateCheckoutSessionAttributes-a3776bb0.js → updateCheckoutSessionAttributes-a9a97194.js} +1 -1
- package/dist/cjs/zonos-address-display_8.cjs.entry.js +24 -24
- package/dist/cjs/zonos-address_4.cjs.entry.js +13 -13
- package/dist/cjs/zonos-badge.cjs.entry.js +4 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-card_5.cjs.entry.js +14 -14
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +25 -23
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-checkout.cjs.entry.js +217 -67
- package/dist/cjs/zonos-collapse.cjs.entry.js +3 -3
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +9 -9
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +27 -25
- package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +15 -13
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +13 -11
- package/dist/cjs/zonos-hello.cjs.entry.js +46 -14
- package/dist/cjs/zonos-input.cjs.entry.js +6 -6
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +11 -11
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +22 -20
- package/dist/cjs/zonos-invoice.cjs.entry.js +9 -9
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +5 -5
- package/dist/cjs/zonos-store-credit.cjs.entry.js +6 -6
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +3 -3
- package/dist/cjs/{zonosStore-1c517e55.js → zonosStore-0662b95f.js} +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +5 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +4 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +52 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +5 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +5 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.css +5 -0
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +5 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -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/zonos-hello.css +23 -15
- package/dist/collection/components/hello/zonos-hello/zonos-hello.js +45 -10
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +5 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +4 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +10 -8
- 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/zonosStore.js +1 -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/checkout/bigcommerceStorefrontApi.js +1 -1
- package/dist/collection/components/utils/checkout/getBigCommerceCustomerAddresses.js +99 -0
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +15 -0
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +1 -1
- package/dist/collection/components/utils/hello/getHelloWidgetSize.js +22 -0
- package/dist/collection/types/generated/graphql.internal.types.js +67 -1
- package/dist/esm/{cart-c490d252.js → cart-41f41429.js} +4 -4
- package/dist/esm/{debounce-8faafc9f.js → debounce-ab526ca0.js} +1 -1
- package/dist/esm/{getBorderRadius-66de1b16.js → getBorderRadius-98c64be8.js} +1 -1
- package/dist/esm/{getContrastColor-e14f95a7.js → getContrastColor-2340485f.js} +2 -2
- package/dist/esm/{hasInclusivePrice-7a0ce66a.js → hasInclusivePrice-afc0dd6e.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-3ea5715b.js → invoice-e6721745.js} +3 -3
- package/dist/esm/{isCollectMobileTablet-0dcbd45a.js → isCollectMobileTablet-d02bb448.js} +3 -3
- package/dist/esm/{isContrastColor-f9e65e70.js → isContrastColor-6bad285e.js} +1 -1
- package/dist/esm/{isDarkColor-8092a9fb.js → isDarkColor-0a8453e7.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-542dbe20.js → localization-ee06df70.js} +16 -2
- package/dist/esm/{paypal-d8804da5.js → paypal-ac74241f.js} +5 -5
- package/dist/esm/{placeTestOrder-d7001709.js → placeTestOrder-0416d327.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-75f1bba3.js → renderCheckoutCurrency-99da51f5.js} +2 -2
- package/dist/esm/{submitGtag-7f5c5bb5.js → submitGtag-ae9d5d91.js} +1 -1
- package/dist/esm/{throttle-5a66b4fd.js → throttle-882b1f47.js} +2 -2
- package/dist/esm/{updateCheckoutSessionAttributes-8f3f932e.js → updateCheckoutSessionAttributes-da7fdd37.js} +1 -1
- package/dist/esm/zonos-address-display_8.entry.js +24 -24
- package/dist/esm/zonos-address_4.entry.js +13 -13
- package/dist/esm/zonos-badge.entry.js +4 -4
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +6 -6
- package/dist/esm/zonos-card_5.entry.js +14 -14
- package/dist/esm/zonos-cart-items_12.entry.js +25 -23
- package/dist/esm/zonos-checkbox_2.entry.js +8 -8
- package/dist/esm/zonos-checkout.entry.js +218 -68
- package/dist/esm/zonos-collapse.entry.js +3 -3
- package/dist/esm/zonos-collect-cart-items_3.entry.js +9 -9
- package/dist/esm/zonos-collect-finish_6.entry.js +27 -25
- package/dist/esm/zonos-collect.entry.js +9 -9
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +7 -7
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +15 -13
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +13 -11
- package/dist/esm/zonos-hello.entry.js +46 -14
- package/dist/esm/zonos-input.entry.js +6 -6
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +11 -11
- package/dist/esm/zonos-invoice-finish_5.entry.js +22 -20
- package/dist/esm/zonos-invoice.entry.js +9 -9
- package/dist/esm/zonos-language-select_2.entry.js +6 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +3 -3
- package/dist/esm/zonos-shipping-rich-radio.entry.js +5 -5
- package/dist/esm/zonos-store-credit.entry.js +6 -6
- package/dist/esm/zonos-stripe-input.entry.js +7 -7
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +3 -3
- package/dist/esm/{zonosStore-f1d45eac.js → zonosStore-9662b071.js} +1 -0
- package/dist/esm-es5/{cart-c490d252.js → cart-41f41429.js} +1 -1
- package/dist/esm-es5/{debounce-8faafc9f.js → debounce-ab526ca0.js} +1 -1
- package/dist/esm-es5/{getBorderRadius-66de1b16.js → getBorderRadius-98c64be8.js} +1 -1
- package/dist/esm-es5/{getContrastColor-e14f95a7.js → getContrastColor-2340485f.js} +1 -1
- package/dist/esm-es5/{hasInclusivePrice-7a0ce66a.js → hasInclusivePrice-afc0dd6e.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-3ea5715b.js → invoice-e6721745.js} +1 -1
- package/dist/esm-es5/{isCollectMobileTablet-0dcbd45a.js → isCollectMobileTablet-d02bb448.js} +1 -1
- package/dist/esm-es5/{isContrastColor-f9e65e70.js → isContrastColor-6bad285e.js} +1 -1
- package/dist/esm-es5/{isDarkColor-8092a9fb.js → isDarkColor-0a8453e7.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{localization-542dbe20.js → localization-ee06df70.js} +1 -1
- package/dist/esm-es5/{paypal-d8804da5.js → paypal-ac74241f.js} +2 -2
- package/dist/esm-es5/{placeTestOrder-d7001709.js → placeTestOrder-0416d327.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-75f1bba3.js → renderCheckoutCurrency-99da51f5.js} +1 -1
- package/dist/esm-es5/{submitGtag-7f5c5bb5.js → submitGtag-ae9d5d91.js} +1 -1
- package/dist/esm-es5/{throttle-5a66b4fd.js → throttle-882b1f47.js} +1 -1
- package/dist/esm-es5/{updateCheckoutSessionAttributes-8f3f932e.js → updateCheckoutSessionAttributes-da7fdd37.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-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-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-store-credit.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-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-f1d45eac.js → zonosStore-9662b071.js} +1 -1
- package/dist/scripts/index.d.ts +31 -15
- 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 +9 -0
- package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +8 -1
- package/dist/types/components/utils/checkout/bigcommerceStorefrontApi.d.ts +22 -11
- package/dist/types/components/utils/checkout/getBigCommerceCustomerAddresses.d.ts +26 -0
- package/dist/types/components/utils/hello/getHelloWidgetSize.d.ts +15 -0
- package/dist/types/components.d.ts +10 -2
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +8 -7
- package/dist/types/types/generated/graphql.internal.types.d.ts +100 -20
- package/dist/types/types/generated/graphql.internal.types.ts +118 -20
- package/dist/types/types/hello/HelloConfig.d.ts +5 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-53fe581b.system.js → p-0207c91e.system.js} +1 -1
- package/dist/zonos-elements/{p-9262a57c.system.entry.js → p-0529a06b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d7a9be55.system.js → p-076ca381.system.js} +1 -1
- package/dist/zonos-elements/{p-5a79e1f4.entry.js → p-07cdff18.entry.js} +1 -1
- package/dist/zonos-elements/{p-5db00bfa.system.entry.js → p-0914b8a1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-155b4425.entry.js → p-0b4ba025.entry.js} +1 -1
- package/dist/zonos-elements/{p-17476a30.system.entry.js → p-0f9a04fe.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-72adb40d.js → p-14ce8e3a.js} +1 -1
- package/dist/zonos-elements/{p-7df3e44b.system.entry.js → p-15f70aae.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b1c76c38.system.entry.js → p-16948eea.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-43a6e469.system.js → p-1bf9a1b9.system.js} +1 -1
- package/dist/zonos-elements/{p-e749fb81.entry.js → p-1cc651e8.entry.js} +1 -1
- package/dist/zonos-elements/{p-a3020bc9.entry.js → p-1ed2827f.entry.js} +1 -1
- package/dist/zonos-elements/p-20e0c24e.entry.js +1 -0
- package/dist/zonos-elements/{p-248bdea2.system.js → p-24aae506.system.js} +1 -1
- package/dist/zonos-elements/{p-f7d24382.system.entry.js → p-2555ba6b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3deb91cb.entry.js → p-258c0551.entry.js} +1 -1
- package/dist/zonos-elements/{p-f00a56be.system.entry.js → p-274a7c0e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fb87172c.entry.js → p-283ffaad.entry.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-aa74b61a.system.entry.js → p-2c027b67.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2fc253b3.js +1 -0
- package/dist/zonos-elements/{p-00bd7e5d.entry.js → p-32ecece3.entry.js} +1 -1
- package/dist/zonos-elements/p-349bdc03.system.entry.js +1 -0
- package/dist/zonos-elements/{p-80e7cab5.entry.js → p-34dc7755.entry.js} +1 -1
- package/dist/zonos-elements/p-367a72bc.js +1 -0
- package/dist/zonos-elements/{p-15ef7644.system.js → p-3689821f.system.js} +1 -1
- package/dist/zonos-elements/{p-a75b8ad7.js → p-37f47658.js} +1 -1
- package/dist/zonos-elements/{p-4a227683.system.entry.js → p-3a23ec5f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3bc1adb7.entry.js +1 -0
- package/dist/zonos-elements/p-41f2e301.entry.js +1 -0
- package/dist/zonos-elements/{p-b5223840.js → p-4220556e.js} +1 -1
- package/dist/zonos-elements/{p-072c5e07.system.entry.js → p-42518502.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4980facb.js +1 -0
- package/dist/zonos-elements/{p-5dd78b4b.js → p-4c89d04a.js} +1 -1
- package/dist/zonos-elements/{p-27f01d76.entry.js → p-52077d7c.entry.js} +1 -1
- package/dist/zonos-elements/p-551dd2e0.js +1 -0
- package/dist/zonos-elements/{p-b2cd18b4.system.entry.js → p-5678c044.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ed827ca3.entry.js → p-59aa5785.entry.js} +1 -1
- package/dist/zonos-elements/{p-e25e0b4b.system.js → p-5e6f85f0.system.js} +1 -1
- package/dist/zonos-elements/{p-cdbb50cf.entry.js → p-665bfd4f.entry.js} +1 -1
- package/dist/zonos-elements/{p-4cee62fb.entry.js → p-66edcaa4.entry.js} +1 -1
- package/dist/zonos-elements/{p-cab6bd98.system.js → p-6a195559.system.js} +1 -1
- package/dist/zonos-elements/p-6b9ad020.entry.js +1 -0
- package/dist/zonos-elements/p-6d81901a.js +1 -0
- package/dist/zonos-elements/{p-3ff736f7.system.entry.js → p-7003d093.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-196423ad.system.js → p-721069c3.system.js} +1 -1
- package/dist/zonos-elements/{p-14f156c6.system.entry.js → p-72833da8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f2909fb8.entry.js → p-7564d199.entry.js} +1 -1
- package/dist/zonos-elements/{p-e76dc266.system.entry.js → p-79f3c227.system.entry.js} +1 -1
- package/dist/zonos-elements/p-84c7cae6.system.entry.js +1 -0
- package/dist/zonos-elements/{p-e55bc187.entry.js → p-8571f3ce.entry.js} +1 -1
- package/dist/zonos-elements/p-86ed51fd.entry.js +1 -0
- package/dist/zonos-elements/{p-d50fef06.system.entry.js → p-88596f27.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8a01157e.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9e761130.entry.js → p-8a21ed2d.entry.js} +1 -1
- package/dist/zonos-elements/{p-bf4d2299.system.entry.js → p-90a19f4c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-947f5092.js → p-90d19cb6.js} +1 -1
- package/dist/zonos-elements/{p-06ef4d79.entry.js → p-9288878f.entry.js} +1 -1
- package/dist/zonos-elements/{p-ef12af4b.entry.js → p-92a14180.entry.js} +1 -1
- package/dist/zonos-elements/{p-dee6adff.system.js → p-98c53c77.system.js} +1 -1
- package/dist/zonos-elements/{p-8d0bca3a.system.entry.js → p-9da832b2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a8bb461c.js → p-9eff0691.js} +1 -1
- package/dist/zonos-elements/{p-66934a78.system.entry.js → p-9f18348f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9f7e7148.system.js +1 -0
- package/dist/zonos-elements/{p-e36e724b.system.entry.js → p-a2e9b2aa.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a661dd45.system.entry.js → p-a5f5993f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-a901d002.js +1 -0
- package/dist/zonos-elements/{p-2f924331.js → p-ab0b23f2.js} +1 -1
- package/dist/zonos-elements/{p-e673a4d9.entry.js → p-ab73cbed.entry.js} +1 -1
- package/dist/zonos-elements/p-b0526805.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f0046c48.entry.js → p-b13d56b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b7beb44.system.js → p-b32cd0c5.system.js} +1 -1
- package/dist/zonos-elements/{p-ade15fd2.entry.js → p-b4b23475.entry.js} +1 -1
- package/dist/zonos-elements/{p-0699931c.system.js → p-b65bca4b.system.js} +1 -1
- package/dist/zonos-elements/p-ba7cf5e8.system.entry.js +1 -0
- package/dist/zonos-elements/{p-c7ecef98.system.entry.js → p-ba9e2612.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9de27162.system.entry.js → p-c0fffa75.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c52bc5ad.system.entry.js +1 -0
- package/dist/zonos-elements/p-c9a1f774.js +1 -0
- package/dist/zonos-elements/{p-a1142a95.entry.js → p-cc481c69.entry.js} +1 -1
- package/dist/zonos-elements/p-ccc4f69b.entry.js +1 -0
- package/dist/zonos-elements/{p-20263609.system.js → p-ce855245.system.js} +1 -1
- package/dist/zonos-elements/{p-4d776228.entry.js → p-d1ff24f5.entry.js} +1 -1
- package/dist/zonos-elements/{p-f6922df5.js → p-d28be518.js} +1 -1
- package/dist/zonos-elements/p-d6b49830.entry.js +1 -0
- package/dist/zonos-elements/{p-5beab541.js → p-db3b101a.js} +1 -1
- package/dist/zonos-elements/{p-0ec4e307.system.js → p-db607fc3.system.js} +1 -1
- package/dist/zonos-elements/{p-a98b8b68.system.js → p-dea75665.system.js} +2 -2
- package/dist/zonos-elements/p-e3292be8.system.js +1 -0
- package/dist/zonos-elements/{p-b47fcd8c.system.entry.js → p-e3bc3917.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d983d472.entry.js → p-e5582c35.entry.js} +1 -1
- package/dist/zonos-elements/p-e5dfccd8.system.js +1 -0
- package/dist/zonos-elements/{p-7dbac3ae.system.entry.js → p-e6cc5a25.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-313b87f3.system.entry.js → p-e98e4c0b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-61be7d98.system.js → p-eb99a625.system.js} +1 -1
- package/dist/zonos-elements/{p-ed9385f4.js → p-f3cfd8fa.js} +1 -1
- package/dist/zonos-elements/{p-c263f95f.entry.js → p-f546bd7d.entry.js} +1 -1
- package/dist/zonos-elements/{p-55742c52.entry.js → p-f9c715ad.entry.js} +1 -1
- package/dist/zonos-elements/{p-50a15e3d.system.entry.js → p-fb684748.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/zonos-elements/p-022ddd4a.system.entry.js +0 -1
- package/dist/zonos-elements/p-09307a03.js +0 -1
- package/dist/zonos-elements/p-1916c2b0.entry.js +0 -1
- package/dist/zonos-elements/p-34fc45e5.entry.js +0 -1
- package/dist/zonos-elements/p-56c11359.system.entry.js +0 -1
- package/dist/zonos-elements/p-7158a18b.js +0 -1
- package/dist/zonos-elements/p-721fadd5.js +0 -1
- package/dist/zonos-elements/p-7237f43b.system.entry.js +0 -1
- package/dist/zonos-elements/p-72a181b5.entry.js +0 -1
- package/dist/zonos-elements/p-75a27c68.entry.js +0 -1
- package/dist/zonos-elements/p-7c5c5318.js +0 -1
- package/dist/zonos-elements/p-7d9bbdc8.js +0 -1
- package/dist/zonos-elements/p-838e335c.entry.js +0 -1
- package/dist/zonos-elements/p-8bce79f4.system.js +0 -1
- package/dist/zonos-elements/p-944bf0e7.js +0 -1
- package/dist/zonos-elements/p-a2b3c1ef.system.entry.js +0 -1
- package/dist/zonos-elements/p-b21cf539.system.entry.js +0 -1
- package/dist/zonos-elements/p-ca411d97.entry.js +0 -1
- package/dist/zonos-elements/p-cd563d65.system.js +0 -1
- package/dist/zonos-elements/p-cdf99051.entry.js +0 -1
- package/dist/zonos-elements/p-dc4e867e.system.entry.js +0 -1
- package/dist/zonos-elements/p-e6726a50.system.js +0 -1
- package/dist/zonos-elements/p-f68ce554.js +0 -1
|
@@ -324,18 +324,20 @@ export class ZonosHelloDialog {
|
|
|
324
324
|
}
|
|
325
325
|
}
|
|
326
326
|
render() {
|
|
327
|
-
var _a;
|
|
327
|
+
var _a, _b;
|
|
328
328
|
const { selectedCountryCode } = localizationStore;
|
|
329
329
|
// Show additional information if selected country has tax id
|
|
330
330
|
const additionalInformation = this.getAdditionalDutyTaxMessage();
|
|
331
|
-
|
|
332
|
-
|
|
331
|
+
// Honor an explicit boolean from the parent (computed from
|
|
332
|
+
// desktop/mobile location overrides) so dialog direction always matches
|
|
333
|
+
// the widget button. Fall back to spatial detection only when undefined.
|
|
334
|
+
const animateLeft = (_a = this.animateFromLeftOverride) !== null && _a !== void 0 ? _a : (this.dialogRef && getHasMoreSpaceOnRight(this.dialogRef));
|
|
333
335
|
const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
|
|
334
336
|
const { customMessages } = localizationStore;
|
|
335
337
|
const welcomeMessage = translate('Welcome to [storeName]', {
|
|
336
338
|
storeName: zonosStore.organizationName,
|
|
337
339
|
});
|
|
338
|
-
const defaultMessageStr = ((
|
|
340
|
+
const defaultMessageStr = ((_b = customMessages.find(x => x.pageName === 'hello_default')) === null || _b === void 0 ? void 0 : _b.message) ||
|
|
339
341
|
translate('Know about duties and taxes before you buy. Shop with confidence!');
|
|
340
342
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
341
343
|
const currentPage = this.getCurrentPageEnum();
|
|
@@ -345,25 +347,25 @@ export class ZonosHelloDialog {
|
|
|
345
347
|
// If deminimis is undefined or null, assume it's $0
|
|
346
348
|
const taxDeMinimisMessage = this.getTaxMessage();
|
|
347
349
|
const inclusivePriceMessage = this.getInclusivePriceMessage();
|
|
348
|
-
return (h(Host, { key: '
|
|
350
|
+
return (h(Host, { key: '4f03947b13c6e6d9f19d3d4241c427f9ef8cb07b', class: "zonos--elements" }, h("div", { key: 'c5001cd7c4c7bb0fcf2375fc211c9afbd2059f32', class: classes([
|
|
349
351
|
'zonos--hello-dialog',
|
|
350
352
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
351
353
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
352
354
|
!!this.mobileLocationOverride &&
|
|
353
355
|
'zonos--hello-dialog-mobile-override',
|
|
354
356
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
355
|
-
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
357
|
+
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'cb86aadda605b075152c21009b11f57b87b1d815' }, h("div", { key: '77a7e3bd67cd2b19f2adec81f15c642d76151f74', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: 'ac5d1386f34c2948ea087d64ba60d1af87e76487', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: '50fcf820665b013090f8b22bd011b48edd23e47d', spacing: 24 }, h("zonos-country-flag", { key: 'fba9eb926c23fdad59d4262582fefd102aa9e721', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '08438a0f1f7ab1ed7aa6077bd8c0c040d10a48e2', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: 'f3ed157753544a886c2362e48d4ff941135f69dd', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '989155955d1b6b50e54b38b9aedf71041a1ca57e', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '480acbed038550026005317e0fa41c74db4befe6', spacing: 8 }, this.restrictedItems.map(item => {
|
|
356
358
|
var _a;
|
|
357
359
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
358
360
|
}), (dutyDeMinimisMessage ||
|
|
359
361
|
taxDeMinimisMessage ||
|
|
360
362
|
inclusivePriceMessage ||
|
|
361
|
-
!!(additionalInformation === null || additionalInformation === void 0 ? void 0 : additionalInformation.length)) && (h("zonos-card", { key: '
|
|
363
|
+
!!(additionalInformation === null || additionalInformation === void 0 ? void 0 : additionalInformation.length)) && (h("zonos-card", { key: 'ec95384f56843f11e7ef678363c08718ce879bea', spacing: "12px" }, h("zonos-v-stack", { key: 'e56aedf0bf3c2e698b6911ae0d96f3c46059158e', spacing: 12 }, this.renderHelloMessage({
|
|
362
364
|
dutyDeMinimisMessage,
|
|
363
365
|
inclusivePriceMessage,
|
|
364
366
|
taxDeMinimisMessage,
|
|
365
367
|
}), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
366
|
-
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info }))))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '
|
|
368
|
+
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info }))))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '103bcee4af2a3979a7db3e86b287063bec16310b', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: '900e288096edd6aa4bcfddd3b80932a11c675a6a' }, h("zonos-country-select", { key: '278e3cfe7dcd69332e6257517759ca2c8e959ae0', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '2d70d0c380fc681492b7b97b4d78677db88a78fc' }, h("zonos-language-select", { key: '7debc2fa20436565b00c7f9832b89f388a814a96', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
367
369
|
}
|
|
368
370
|
static get is() { return "zonos-hello-dialog"; }
|
|
369
371
|
static get encapsulation() { return "shadow"; }
|
|
@@ -331,7 +331,7 @@ export class ZonosController {
|
|
|
331
331
|
zonosStore.organizationName = organizationName;
|
|
332
332
|
}
|
|
333
333
|
render() {
|
|
334
|
-
return h(Host, { key: '
|
|
334
|
+
return h(Host, { key: '681a81baa59bfe91e9fe0927aee49fa720fcb35b', class: "zonos--elements" });
|
|
335
335
|
}
|
|
336
336
|
static get is() { return "zonos-controller"; }
|
|
337
337
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,7 +52,7 @@ export class ZonosPaypalPayment {
|
|
|
52
52
|
this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'c01e031b29e0089389be2a16e888bd0b7c24dcd8', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: 'f03c880bde17291f083cfe1f0db6a918f92d720b', class: "zonos--payment-paypal-container" })));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "zonos-paypal-payment"; }
|
|
58
58
|
static get encapsulation() { return "scoped"; }
|
|
@@ -352,11 +352,11 @@ export class ZonosAddress {
|
|
|
352
352
|
this.isAddressFilled = true;
|
|
353
353
|
}
|
|
354
354
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
355
|
-
return (h(Host, { key: '
|
|
355
|
+
return (h(Host, { key: 'ebba5be32c456e8b71d397db63e666e5d5df1543', class: classes([
|
|
356
356
|
'zonos--address',
|
|
357
357
|
'zonos--elements',
|
|
358
358
|
`zonos--${this.type}-address`,
|
|
359
|
-
]) }, this.titleText && (h("zonos-text", { key: '
|
|
359
|
+
]) }, this.titleText && (h("zonos-text", { key: '25f15ea17b50ed055eb98b072850296312785b06', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: '631bc324d1bb96fb9e796b38a6da42ef6ca601a3', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), h("div", { key: '25f88c72f8fc9b788b042f2df2f1b8085132f683', class: "zonos--address-component" })));
|
|
360
360
|
}
|
|
361
361
|
static get is() { return "zonos-address"; }
|
|
362
362
|
static get encapsulation() { return "scoped"; }
|
|
@@ -78,9 +78,9 @@ export class ZonosAddressSuggestions {
|
|
|
78
78
|
return segments;
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '95f0fa0a1a5eb62ae2f08f305216a365f166af96', class: "zonos--address-suggestions", role: "group", style: {
|
|
82
82
|
'--zonos--border-radius': getBorderRadius(),
|
|
83
|
-
} }, h("ul", { key: '
|
|
83
|
+
} }, h("ul", { key: 'd76493f93428da65b645b8bf16ee82b780b2eb97', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: 'b7d4a61c717a2df1057a81ff2e6517a0b7a7869a', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '0dca2094920653d6205dd79e717290536e7ae1c9', class: "powered-by-container" }, h("zonos-text", { key: 'baa29ec5e43286d4df28eb418c7b2ccc4bf7d1e7', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '2b544408cc75a9c50750072b1efb63e4cd4f1323', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '939ba84809ce8f113a8d13cc75cb8a3c23013847', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
|
|
84
84
|
this.localSuggestions = [];
|
|
85
85
|
} }))), this.localSuggestions.map(suggestion => (
|
|
86
86
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -924,10 +924,10 @@ export class ZonosAddress {
|
|
|
924
924
|
this.country = localizationStore.selectedCountryCode;
|
|
925
925
|
}
|
|
926
926
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
927
|
-
return (h(Host, { key: '
|
|
927
|
+
return (h(Host, { key: 'ce15e47889c185c72b9f79327ebbd24950da1811', class: classes([
|
|
928
928
|
'zonos--address zonos--elements',
|
|
929
929
|
`zonos--${this.type}-address`,
|
|
930
|
-
]) }, h("zonos-text", { key: '
|
|
930
|
+
]) }, h("zonos-text", { key: '91d1a627a89b8114075f5ecc1dff7bd8d52dd0b7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: '1a69664bc17a2d59cff241bbb0917714340e006e', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), this.renderCustomAddressForm()));
|
|
931
931
|
}
|
|
932
932
|
static get is() { return "zonos-custom-address"; }
|
|
933
933
|
static get encapsulation() { return "scoped"; }
|
|
@@ -67,7 +67,7 @@ export class ZonosPayment {
|
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
69
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '6bc25553430c9e23c77a0607ad28dc4c9efa66e6', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: 'e4ba3f581697a799e50fe066e7cc922a206af8e5', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '0247eecadf083f09b67c5f668da845431234750d', class: "zonos--payment-component" }), h("div", { key: '7f63abd0a2c1cbc62f931e44fc44c69b57a4f8ed', class: "zonos--payment-paypal-container" })));
|
|
71
71
|
}
|
|
72
72
|
static get is() { return "zonos-payment"; }
|
|
73
73
|
static get encapsulation() { return "scoped"; }
|
|
@@ -32,7 +32,7 @@ export const fetchCheckoutId = async () => {
|
|
|
32
32
|
*/
|
|
33
33
|
export const fetchBigCommerceCheckout = async (checkoutId) => {
|
|
34
34
|
try {
|
|
35
|
-
const response = await fetch(`/api/storefront/checkouts/${checkoutId}?include=customer.customerGroup`, {
|
|
35
|
+
const response = await fetch(`/api/storefront/checkouts/${checkoutId}?include=customer.customerGroup,customer.addresses`, {
|
|
36
36
|
credentials: 'same-origin',
|
|
37
37
|
headers: {
|
|
38
38
|
Accept: 'application/json',
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
const toContactOption = (address, email) => {
|
|
2
|
+
// Skip entries missing the fields the address form treats as required.
|
|
3
|
+
if (!address.address1 || !address.countryCode) {
|
|
4
|
+
return null;
|
|
5
|
+
}
|
|
6
|
+
const name = [address.firstName, address.lastName]
|
|
7
|
+
.filter(Boolean)
|
|
8
|
+
.join(' ')
|
|
9
|
+
.trim();
|
|
10
|
+
return {
|
|
11
|
+
address: {
|
|
12
|
+
city: address.city || '',
|
|
13
|
+
country: address.countryCode,
|
|
14
|
+
line1: address.address1,
|
|
15
|
+
line2: address.address2 || '',
|
|
16
|
+
postal_code: address.postalCode || '',
|
|
17
|
+
// Prefer the ISO subdivision code when present so it round-trips through
|
|
18
|
+
// Stripe; fall back to the human-readable state name.
|
|
19
|
+
state: address.stateOrProvinceCode || address.stateOrProvince || '',
|
|
20
|
+
},
|
|
21
|
+
email,
|
|
22
|
+
name,
|
|
23
|
+
phone: address.phone || '',
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
const dedupKey = (option) => [
|
|
27
|
+
option.address.line1,
|
|
28
|
+
option.address.line2 || '',
|
|
29
|
+
option.address.postal_code,
|
|
30
|
+
option.address.country,
|
|
31
|
+
]
|
|
32
|
+
.join('|')
|
|
33
|
+
.toLowerCase();
|
|
34
|
+
/**
|
|
35
|
+
* Extract a logged-in BigCommerce shopper's known addresses from a Storefront
|
|
36
|
+
* API checkout response and convert them into the shape that `zonos-address`
|
|
37
|
+
* consumes (`StripeStoreContactOption[]`).
|
|
38
|
+
*
|
|
39
|
+
* Combines the saved address book (`customer.addresses`) with any address
|
|
40
|
+
* already attached to the active checkout's consignments, so a shopper who
|
|
41
|
+
* just selected a one-off shipping address on BC native checkout still sees
|
|
42
|
+
* that address in the international checkout's address picker. Deduplicates
|
|
43
|
+
* by line1 + line2 + postal code + country.
|
|
44
|
+
*
|
|
45
|
+
* Callers must supply `isShippable` so addresses outside the merchant's
|
|
46
|
+
* shipping zones are filtered out — international checkout can't fulfill
|
|
47
|
+
* them and showing them would just confuse the shopper. The optional
|
|
48
|
+
* `selectedCountryCode` floats addresses in that country to the top of the
|
|
49
|
+
* list so the shopper's current destination is the default choice.
|
|
50
|
+
*
|
|
51
|
+
* Returns an empty list for guest sessions (no `customer.id`) or when the
|
|
52
|
+
* checkout response is missing the relevant includes.
|
|
53
|
+
*/
|
|
54
|
+
export const getBigCommerceCustomerAddresses = (checkout, options) => {
|
|
55
|
+
var _a, _b, _c, _d;
|
|
56
|
+
if (!((_a = checkout === null || checkout === void 0 ? void 0 : checkout.customer) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
57
|
+
return [];
|
|
58
|
+
}
|
|
59
|
+
const { isShippable, selectedCountryCode } = options;
|
|
60
|
+
const email = checkout.customer.email || '';
|
|
61
|
+
const consignmentAddresses = (_c = (_b = checkout.consignments) === null || _b === void 0 ? void 0 : _b.flatMap(consignment => consignment.shippingAddress ? [consignment.shippingAddress] : [])) !== null && _c !== void 0 ? _c : [];
|
|
62
|
+
const savedAddresses = (_d = checkout.customer.addresses) !== null && _d !== void 0 ? _d : [];
|
|
63
|
+
const seen = new Set();
|
|
64
|
+
const result = [];
|
|
65
|
+
// Iterate saved addresses first so the dedup key for an address present in
|
|
66
|
+
// both lists keeps the saved-book version (which carries an `id` and is the
|
|
67
|
+
// shopper's canonical entry).
|
|
68
|
+
for (const address of [...savedAddresses, ...consignmentAddresses]) {
|
|
69
|
+
const option = toContactOption(address, email);
|
|
70
|
+
if (!option) {
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
if (!isShippable(option.address.country)) {
|
|
74
|
+
continue;
|
|
75
|
+
}
|
|
76
|
+
const key = dedupKey(option);
|
|
77
|
+
if (seen.has(key)) {
|
|
78
|
+
continue;
|
|
79
|
+
}
|
|
80
|
+
seen.add(key);
|
|
81
|
+
result.push(option);
|
|
82
|
+
}
|
|
83
|
+
if (!selectedCountryCode) {
|
|
84
|
+
return result;
|
|
85
|
+
}
|
|
86
|
+
// Stable-sort the survivors so addresses matching the currently-selected
|
|
87
|
+
// country come first while everything else keeps its original order.
|
|
88
|
+
return result
|
|
89
|
+
.map((option, index) => ({ index, option }))
|
|
90
|
+
.sort((a, b) => {
|
|
91
|
+
const aMatches = a.option.address.country === selectedCountryCode;
|
|
92
|
+
const bMatches = b.option.address.country === selectedCountryCode;
|
|
93
|
+
if (aMatches === bMatches) {
|
|
94
|
+
return a.index - b.index;
|
|
95
|
+
}
|
|
96
|
+
return aMatches ? -1 : 1;
|
|
97
|
+
})
|
|
98
|
+
.map(entry => entry.option);
|
|
99
|
+
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { zonosStore } from "../../../store/zonosStore";
|
|
2
2
|
import { defaultCurrencyConverter } from "./defaultCurrencyConverter";
|
|
3
|
+
import { log } from "../../logging/log";
|
|
3
4
|
import { removeBlurCurrency } from "../../../../utils/performBlurCurrency";
|
|
4
5
|
export const currencyDisplay = () => {
|
|
5
6
|
if (zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
|
|
@@ -7,5 +8,19 @@ export const currencyDisplay = () => {
|
|
|
7
8
|
void removeBlurCurrency();
|
|
8
9
|
return;
|
|
9
10
|
}
|
|
11
|
+
// BigCommerce renders prices server-side using its native currency selector
|
|
12
|
+
// (exposed via `document.body.dataset.currencyCode`). When that currency
|
|
13
|
+
// differs from `zonosStore.sourceCurrency`, the DOM amounts are not in the
|
|
14
|
+
// currency Hello would convert *from* — running conversion would double-
|
|
15
|
+
// convert and produce wrong prices.
|
|
16
|
+
if (window.Zonos.isBigCommerce) {
|
|
17
|
+
const bigcommerceCurrencyCode = document.body.dataset.currencyCode;
|
|
18
|
+
if (bigcommerceCurrencyCode &&
|
|
19
|
+
bigcommerceCurrencyCode !== zonosStore.sourceCurrency) {
|
|
20
|
+
log(`Skipping Hello currency conversion: BigCommerce native currency "${bigcommerceCurrencyCode}" does not match sourceCurrency "${zonosStore.sourceCurrency}".`, 'info');
|
|
21
|
+
void removeBlurCurrency();
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
10
25
|
defaultCurrencyConverter();
|
|
11
26
|
};
|
|
@@ -40,7 +40,7 @@ export const currencyFormat = ({ amount, currency, }) => {
|
|
|
40
40
|
return result;
|
|
41
41
|
}
|
|
42
42
|
const currencyDisplay = (overrideCurrencyFormat === null || overrideCurrencyFormat === void 0 ? void 0 : overrideCurrencyFormat.currencyDisplay) || 'symbol';
|
|
43
|
-
const formattedNumber = new Intl.NumberFormat(window.navigator.language, {
|
|
43
|
+
const formattedNumber = new Intl.NumberFormat(zonosStore.sourceCurrency === 'AUD' ? 'en-AU' : window.navigator.language, {
|
|
44
44
|
currency: targetCurrency,
|
|
45
45
|
currencyDisplay,
|
|
46
46
|
minimumFractionDigits: minimumFractionDigits,
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Default Hello widget diameter in pixels. Matches the legacy size that
|
|
3
|
+
* shipped before `widgetSize` became configurable, so existing merchants
|
|
4
|
+
* continue to render unchanged when they have not set a value.
|
|
5
|
+
*/
|
|
6
|
+
export const HELLO_WIDGET_DEFAULT_SIZE = 18;
|
|
7
|
+
export const HELLO_WIDGET_MIN_SIZE = 18;
|
|
8
|
+
export const HELLO_WIDGET_MAX_SIZE = 64;
|
|
9
|
+
/**
|
|
10
|
+
* Resolve the configured Hello widget size to a safe pixel value. Falls back
|
|
11
|
+
* to the default when the merchant has not configured a size, and clamps
|
|
12
|
+
* out-of-range values so the widget always renders within the supported
|
|
13
|
+
* design bounds.
|
|
14
|
+
*/
|
|
15
|
+
export const getHelloWidgetSize = (configuredSize) => {
|
|
16
|
+
if (configuredSize == null ||
|
|
17
|
+
!Number.isFinite(configuredSize) ||
|
|
18
|
+
configuredSize <= 0) {
|
|
19
|
+
return HELLO_WIDGET_DEFAULT_SIZE;
|
|
20
|
+
}
|
|
21
|
+
return Math.min(HELLO_WIDGET_MAX_SIZE, Math.max(HELLO_WIDGET_MIN_SIZE, configuredSize));
|
|
22
|
+
};
|
|
@@ -121,6 +121,7 @@ export const accountingFeeType = {
|
|
|
121
121
|
GeneralAdjustment: 'GENERAL_ADJUSTMENT',
|
|
122
122
|
GhanaRemittanceFee: 'GHANA_REMITTANCE_FEE',
|
|
123
123
|
GuaranteeOrder: 'GUARANTEE_ORDER',
|
|
124
|
+
GuaranteeOrderDutyExempt: 'GUARANTEE_ORDER_DUTY_EXEMPT',
|
|
124
125
|
GuaranteePercent: 'GUARANTEE_PERCENT',
|
|
125
126
|
HaypostDisbursementFee: 'HAYPOST_DISBURSEMENT_FEE',
|
|
126
127
|
HaypostRemittanceFee: 'HAYPOST_REMITTANCE_FEE',
|
|
@@ -360,6 +361,9 @@ export const adjustmentType = {
|
|
|
360
361
|
Charge: 'CHARGE',
|
|
361
362
|
Credit: 'CREDIT',
|
|
362
363
|
};
|
|
364
|
+
export const agency = {
|
|
365
|
+
Cpsc: 'CPSC',
|
|
366
|
+
};
|
|
363
367
|
export const aiModel = {
|
|
364
368
|
ClaudeHaiku_3_5: 'CLAUDE_HAIKU_3_5',
|
|
365
369
|
ClaudeOpus_4: 'CLAUDE_OPUS_4',
|
|
@@ -528,6 +532,28 @@ export const brokerageNatureOfTransaction = {
|
|
|
528
532
|
NotForResale: 'NOT_FOR_RESALE',
|
|
529
533
|
Return: 'RETURN',
|
|
530
534
|
};
|
|
535
|
+
export const brokeragePgaAgency = {
|
|
536
|
+
Other: 'OTHER',
|
|
537
|
+
UsAtf: 'US_ATF',
|
|
538
|
+
UsCdc: 'US_CDC',
|
|
539
|
+
UsCpsc: 'US_CPSC',
|
|
540
|
+
UsDea: 'US_DEA',
|
|
541
|
+
UsEpa: 'US_EPA',
|
|
542
|
+
UsEpaTsca: 'US_EPA_TSCA',
|
|
543
|
+
UsFcc: 'US_FCC',
|
|
544
|
+
UsFda: 'US_FDA',
|
|
545
|
+
UsNhtsa: 'US_NHTSA',
|
|
546
|
+
UsOfac: 'US_OFAC',
|
|
547
|
+
UsTtb: 'US_TTB',
|
|
548
|
+
UsUsdaAms: 'US_USDA_AMS',
|
|
549
|
+
UsUsdaAphis: 'US_USDA_APHIS',
|
|
550
|
+
UsUsdaFsis: 'US_USDA_FSIS',
|
|
551
|
+
UsUsfws: 'US_USFWS',
|
|
552
|
+
};
|
|
553
|
+
export const brokeragePgaRequirementStrictness = {
|
|
554
|
+
Conditional: 'CONDITIONAL',
|
|
555
|
+
Required: 'REQUIRED',
|
|
556
|
+
};
|
|
531
557
|
export const brokerageTransportationMode = {
|
|
532
558
|
AirContainer: 'AIR_CONTAINER',
|
|
533
559
|
AirNonContainer: 'AIR_NON_CONTAINER',
|
|
@@ -962,7 +988,9 @@ export const consignmentStatus = {
|
|
|
962
988
|
Accepted: 'ACCEPTED',
|
|
963
989
|
Archived: 'ARCHIVED',
|
|
964
990
|
Candidate: 'CANDIDATE',
|
|
991
|
+
Draft: 'DRAFT',
|
|
965
992
|
Filed: 'FILED',
|
|
993
|
+
Filing: 'FILING',
|
|
966
994
|
Ready: 'READY',
|
|
967
995
|
Rejected: 'REJECTED',
|
|
968
996
|
};
|
|
@@ -1880,6 +1908,10 @@ export const dimensionalUnitCode = {
|
|
|
1880
1908
|
Millimeter: 'MILLIMETER',
|
|
1881
1909
|
Yard: 'YARD',
|
|
1882
1910
|
};
|
|
1911
|
+
export const disclaimType = {
|
|
1912
|
+
A: 'A',
|
|
1913
|
+
B: 'B',
|
|
1914
|
+
};
|
|
1883
1915
|
export const displayCurrency = {
|
|
1884
1916
|
DestinationCountry: 'DESTINATION_COUNTRY',
|
|
1885
1917
|
StoreNative: 'STORE_NATIVE',
|
|
@@ -2136,7 +2168,6 @@ export const fieldStatus = {
|
|
|
2136
2168
|
export const frontConversationStatus = {
|
|
2137
2169
|
Archived: 'ARCHIVED',
|
|
2138
2170
|
Assigned: 'ASSIGNED',
|
|
2139
|
-
Open: 'OPEN',
|
|
2140
2171
|
Trashed: 'TRASHED',
|
|
2141
2172
|
Unassigned: 'UNASSIGNED',
|
|
2142
2173
|
};
|
|
@@ -2149,6 +2180,14 @@ export const generalAdjustmentRecordCreateType = {
|
|
|
2149
2180
|
ConnectAccountAdjustment: 'CONNECT_ACCOUNT_ADJUSTMENT',
|
|
2150
2181
|
InvoiceLineRecord: 'INVOICE_LINE_RECORD',
|
|
2151
2182
|
};
|
|
2183
|
+
export const greenLightCheck = {
|
|
2184
|
+
CountryOfOriginValidation: 'COUNTRY_OF_ORIGIN_VALIDATION',
|
|
2185
|
+
DeniedPartyScreening: 'DENIED_PARTY_SCREENING',
|
|
2186
|
+
HsCodeCoherence: 'HS_CODE_COHERENCE',
|
|
2187
|
+
RegulationCheck: 'REGULATION_CHECK',
|
|
2188
|
+
RestrictionCheck: 'RESTRICTION_CHECK',
|
|
2189
|
+
ValueValidation: 'VALUE_VALIDATION',
|
|
2190
|
+
};
|
|
2152
2191
|
export const helloCountryDisplayBehavior = {
|
|
2153
2192
|
All: 'ALL',
|
|
2154
2193
|
OnlyShippable: 'ONLY_SHIPPABLE',
|
|
@@ -2322,14 +2361,23 @@ export const integrationStatus = {
|
|
|
2322
2361
|
Error: 'ERROR',
|
|
2323
2362
|
Inactive: 'INACTIVE',
|
|
2324
2363
|
};
|
|
2364
|
+
export const intendedAudience = {
|
|
2365
|
+
Adult: 'ADULT',
|
|
2366
|
+
Child: 'CHILD',
|
|
2367
|
+
};
|
|
2325
2368
|
export const invoiceAmountSubtotalType = {
|
|
2369
|
+
Adjustment: 'ADJUSTMENT',
|
|
2326
2370
|
Discount: 'DISCOUNT',
|
|
2327
2371
|
Duty: 'DUTY',
|
|
2328
2372
|
Fee: 'FEE',
|
|
2329
2373
|
Item: 'ITEM',
|
|
2330
2374
|
Other: 'OTHER',
|
|
2375
|
+
SetupFee: 'SETUP_FEE',
|
|
2331
2376
|
Shipping: 'SHIPPING',
|
|
2377
|
+
Subscription: 'SUBSCRIPTION',
|
|
2332
2378
|
Tax: 'TAX',
|
|
2379
|
+
TaxDutyCarrierCountry: 'TAX_DUTY_CARRIER_COUNTRY',
|
|
2380
|
+
ZonosFees: 'ZONOS_FEES',
|
|
2333
2381
|
};
|
|
2334
2382
|
export const invoiceCarrier = {
|
|
2335
2383
|
Dhl: 'DHL',
|
|
@@ -2487,6 +2535,7 @@ export const invoiceDetailCategoryInputType = {
|
|
|
2487
2535
|
GeneralAdjustment: 'GENERAL_ADJUSTMENT',
|
|
2488
2536
|
GhanaRemittanceFee: 'GHANA_REMITTANCE_FEE',
|
|
2489
2537
|
GuaranteeOrder: 'GUARANTEE_ORDER',
|
|
2538
|
+
GuaranteeOrderDutyExempt: 'GUARANTEE_ORDER_DUTY_EXEMPT',
|
|
2490
2539
|
GuaranteePercent: 'GUARANTEE_PERCENT',
|
|
2491
2540
|
HaypostDisbursementFee: 'HAYPOST_DISBURSEMENT_FEE',
|
|
2492
2541
|
HaypostRemittanceFee: 'HAYPOST_REMITTANCE_FEE',
|
|
@@ -3766,6 +3815,7 @@ export const organizationType = {
|
|
|
3766
3815
|
Broker: 'BROKER',
|
|
3767
3816
|
Consolidator: 'CONSOLIDATOR',
|
|
3768
3817
|
Developer: 'DEVELOPER',
|
|
3818
|
+
EvolveBrokerage: 'EVOLVE_BROKERAGE',
|
|
3769
3819
|
Government: 'GOVERNMENT',
|
|
3770
3820
|
Integrator: 'INTEGRATOR',
|
|
3771
3821
|
Logistics: 'LOGISTICS',
|
|
@@ -3924,6 +3974,10 @@ export const pddpType = {
|
|
|
3924
3974
|
export const personTaxIdentifierType = {
|
|
3925
3975
|
Other: 'OTHER',
|
|
3926
3976
|
};
|
|
3977
|
+
export const pgaRequirementStrictness = {
|
|
3978
|
+
Conditional: 'CONDITIONAL',
|
|
3979
|
+
Required: 'REQUIRED',
|
|
3980
|
+
};
|
|
3927
3981
|
export const pickupBuildingType = {
|
|
3928
3982
|
Apartment: 'APARTMENT',
|
|
3929
3983
|
Building: 'BUILDING',
|
|
@@ -4864,6 +4918,7 @@ export const storeFeeRuleDetailCategoryIdCreateType = {
|
|
|
4864
4918
|
EtsyGuaranteePercent: 'ETSY_GUARANTEE_PERCENT',
|
|
4865
4919
|
EtsyMerchantFeePercent: 'ETSY_MERCHANT_FEE_PERCENT',
|
|
4866
4920
|
FranceCustomsTax: 'FRANCE_CUSTOMS_TAX',
|
|
4921
|
+
GuaranteeOrderDutyExempt: 'GUARANTEE_ORDER_DUTY_EXEMPT',
|
|
4867
4922
|
LandedCostGuaranteeBuffer: 'LANDED_COST_GUARANTEE_BUFFER',
|
|
4868
4923
|
LandedCostGuaranteeSubsidy: 'LANDED_COST_GUARANTEE_SUBSIDY',
|
|
4869
4924
|
MagentoCrossDockingBuffer: 'MAGENTO_CROSS_DOCKING_BUFFER',
|
|
@@ -5314,6 +5369,13 @@ export const zonosInvoiceFeatureFlagKey = {
|
|
|
5314
5369
|
RedisInvoiceFeesEnabled: 'REDIS_INVOICE_FEES_ENABLED',
|
|
5315
5370
|
RedisZonosInvoiceProcessorEnabled: 'REDIS_ZONOS_INVOICE_PROCESSOR_ENABLED',
|
|
5316
5371
|
};
|
|
5372
|
+
export const zonosInvoiceFinalizeAndChargeOutcome = {
|
|
5373
|
+
AlreadyProcessed: 'ALREADY_PROCESSED',
|
|
5374
|
+
Charged: 'CHARGED',
|
|
5375
|
+
Failed: 'FAILED',
|
|
5376
|
+
InvoiceSent: 'INVOICE_SENT',
|
|
5377
|
+
VoidedZeroAmount: 'VOIDED_ZERO_AMOUNT',
|
|
5378
|
+
};
|
|
5317
5379
|
export const zonosInvoiceInternalExclusionType = {
|
|
5318
5380
|
ZeroAmount: 'ZERO_AMOUNT',
|
|
5319
5381
|
};
|
|
@@ -5336,6 +5398,10 @@ export const zonosInvoiceReprocessAction = {
|
|
|
5336
5398
|
Combine: 'COMBINE',
|
|
5337
5399
|
KeepSeparate: 'KEEP_SEPARATE',
|
|
5338
5400
|
};
|
|
5401
|
+
export const zonosInvoiceReprocessProcessingMode = {
|
|
5402
|
+
Process: 'PROCESS',
|
|
5403
|
+
Skip: 'SKIP',
|
|
5404
|
+
};
|
|
5339
5405
|
export const zonosInvoiceStatusUpdateInputType = {
|
|
5340
5406
|
Created: 'CREATED',
|
|
5341
5407
|
Dispute: 'DISPUTE',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { c as createStore, z as zonosStore } from './zonosStore-
|
|
2
|
-
import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-
|
|
1
|
+
import { c as createStore, z as zonosStore } from './zonosStore-9662b071.js';
|
|
2
|
+
import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-ee06df70.js';
|
|
3
3
|
import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
|
|
4
4
|
import { h as handleFetch, l as logError, f as fallbackApiList, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, j as jsonParse } from './handleFetch-a844cac1.js';
|
|
5
|
-
import { i as isDarkColor } from './isDarkColor-
|
|
6
|
-
import { g as getBorderRadius } from './getBorderRadius-
|
|
5
|
+
import { i as isDarkColor } from './isDarkColor-0a8453e7.js';
|
|
6
|
+
import { g as getBorderRadius } from './getBorderRadius-98c64be8.js';
|
|
7
7
|
|
|
8
8
|
const getCheckoutSession = async () => {
|
|
9
9
|
if (!storageStore.checkoutSessionId) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as isDarkColor, t as tinycolor } from './isDarkColor-
|
|
2
|
-
import { i as isContrastColor } from './isContrastColor-
|
|
1
|
+
import { i as isDarkColor, t as tinycolor } from './isDarkColor-0a8453e7.js';
|
|
2
|
+
import { i as isContrastColor } from './isContrastColor-6bad285e.js';
|
|
3
3
|
|
|
4
4
|
const getContrastColor = ({ backgroundColor, color, }) => {
|
|
5
5
|
if (backgroundColor === color) {
|
package/dist/esm/index.js
CHANGED
|
@@ -131,7 +131,7 @@ const getZonosQaUrl = () => {
|
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
133
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
134
|
-
const cdnUrl = "https://v1.3.
|
|
134
|
+
const cdnUrl = "https://v1.3.264.js.zonos.com";
|
|
135
135
|
// when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
|
|
136
136
|
if (!qaUrl &&
|
|
137
137
|
(cdnUrl.includes('test.') ||
|
|
@@ -379,10 +379,10 @@ const zonosLoadUrl = (() => {
|
|
|
379
379
|
return null;
|
|
380
380
|
})();
|
|
381
381
|
const startLoadTime = Date.now();
|
|
382
|
-
const ZONOS_URL = "https://v1.3.
|
|
383
|
-
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.
|
|
384
|
-
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.
|
|
385
|
-
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.
|
|
382
|
+
const ZONOS_URL = "https://v1.3.264.js.zonos.com";
|
|
383
|
+
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.264";
|
|
384
|
+
const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.264";
|
|
385
|
+
const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.264";
|
|
386
386
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
387
387
|
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
388
388
|
class Zonos {
|
|
@@ -400,7 +400,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
|
|
|
400
400
|
? new URLSearchParams(window.location.search).get('iframeLogType')
|
|
401
401
|
: null;
|
|
402
402
|
Zonos.isBigCommerce = false;
|
|
403
|
-
Zonos.releaseDate = "
|
|
403
|
+
Zonos.releaseDate = "1779124061433";
|
|
404
404
|
Zonos.isLegacyCheckout = false;
|
|
405
405
|
Zonos.googleAnalyticId = null;
|
|
406
406
|
Zonos.googleAnalyticReady = false;
|
|
@@ -425,7 +425,7 @@ Zonos.isNpm = true;
|
|
|
425
425
|
Zonos.zonosQaUrl = null;
|
|
426
426
|
Zonos.zonosQaUrlApi = null;
|
|
427
427
|
Zonos.trackEventLogs = [];
|
|
428
|
-
Zonos.version = `v${"1.3.
|
|
428
|
+
Zonos.version = `v${"1.3.264"}`;
|
|
429
429
|
Zonos.modeAlerted = false;
|
|
430
430
|
Zonos.cartData = null;
|
|
431
431
|
Zonos.paypal = null;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createStore, z as zonosStore } from './zonosStore-
|
|
2
|
-
import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-
|
|
3
|
-
import { s as storageStore } from './localization-
|
|
1
|
+
import { c as createStore, z as zonosStore } from './zonosStore-9662b071.js';
|
|
2
|
+
import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-41f41429.js';
|
|
3
|
+
import { s as storageStore } from './localization-ee06df70.js';
|
|
4
4
|
import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { b as allLogs } from './VarianceTest-572cecf5.js';
|
|
6
6
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as createStore, z as zonosStore } from './zonosStore-
|
|
2
|
-
import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-
|
|
3
|
-
import { s as storageStore } from './localization-
|
|
1
|
+
import { c as createStore, z as zonosStore } from './zonosStore-9662b071.js';
|
|
2
|
+
import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-41f41429.js';
|
|
3
|
+
import { s as storageStore } from './localization-ee06df70.js';
|
|
4
4
|
import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
|
|
5
5
|
import { b as allLogs } from './VarianceTest-572cecf5.js';
|
|
6
6
|
|