@zonos/elements 1.3.219 → 1.3.221
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-9a2b32e4.js → cart-9a9ae4b9.js} +2 -2
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{isCollectMobileTablet-7e57fd90.js → isCollectMobileTablet-7a9413e3.js} +12 -9
- package/dist/cjs/{localization-b12edb2a.js → localization-0169b27d.js} +1 -1
- package/dist/cjs/{paypal-e80871d0.js → paypal-9ee374a0.js} +3 -3
- package/dist/cjs/{placeTestOrder-8222fe95.js → placeTestOrder-0dfff170.js} +2 -2
- package/dist/cjs/{translationStore-20a6d8bf.js → translationStore-0c67178f.js} +60 -0
- package/dist/cjs/zonos-address_11.cjs.entry.js +38 -32
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/zonos-banner_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +11 -14
- package/dist/cjs/zonos-checkout.cjs.entry.js +4 -4
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +44 -43
- package/dist/cjs/zonos-collect.cjs.entry.js +5 -5
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -11
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +14 -6
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- 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 +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-payment/zonos-checkout-payment.js +0 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +6 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +23 -21
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +3 -0
- 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 +7 -7
- 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-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/checkout/collect.js +10 -7
- package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
- package/dist/collection/components/store/translationStore/strings.base.js +3 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
- package/dist/collection/components/store/translationStore/strings.french.js +3 -0
- package/dist/collection/components/store/translationStore/strings.german.js +3 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -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-link-authentication/zonos-link-authentication.js +13 -7
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +9 -1
- package/dist/collection/types/generated/graphql.internal.types.js +10 -0
- package/dist/esm/{cart-acf4ebf5.js → cart-b2dd578c.js} +2 -2
- package/dist/esm/index.js +7 -7
- package/dist/esm/{isCollectMobileTablet-b72b81c5.js → isCollectMobileTablet-7f9a5e2b.js} +12 -9
- package/dist/esm/{localization-8646f526.js → localization-d7125e4e.js} +1 -1
- package/dist/esm/{paypal-2fa930eb.js → paypal-555bbf1e.js} +3 -3
- package/dist/esm/{placeTestOrder-d1ad9cf6.js → placeTestOrder-2d67c1a9.js} +2 -2
- package/dist/esm/{translationStore-c9743292.js → translationStore-13502f49.js} +60 -0
- package/dist/esm/zonos-address_11.entry.js +38 -32
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/zonos-banner_2.entry.js +4 -4
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-cart-items_12.entry.js +11 -14
- package/dist/esm/zonos-checkout.entry.js +4 -4
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
- package/dist/esm/zonos-collect-finish_6.entry.js +44 -43
- package/dist/esm/zonos-collect.entry.js +5 -5
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-confirm-dialog_2.entry.js +5 -5
- package/dist/esm/zonos-controller.entry.js +4 -4
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +11 -11
- package/dist/esm/zonos-empty-state-payment_4.entry.js +14 -6
- package/dist/esm/zonos-hello-dialog.entry.js +6 -6
- package/dist/esm/zonos-hello.entry.js +2 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- 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 +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-acf4ebf5.js → cart-b2dd578c.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isCollectMobileTablet-7f9a5e2b.js +1 -0
- package/dist/esm-es5/{localization-8646f526.js → localization-d7125e4e.js} +1 -1
- package/dist/esm-es5/{paypal-2fa930eb.js → paypal-555bbf1e.js} +2 -2
- package/dist/esm-es5/{placeTestOrder-d1ad9cf6.js → placeTestOrder-2d67c1a9.js} +1 -1
- package/dist/esm-es5/translationStore-13502f49.js +1 -0
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner_2.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-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 +5 -4
- 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-collect/zonos-collect-finish/zonos-collect-finish.d.ts +1 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +205 -16
- package/dist/types/types/generated/graphql.internal.types.ts +218 -16
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-d045e2e5.entry.js → p-02667a58.entry.js} +1 -1
- package/dist/zonos-elements/{p-c3c9b089.entry.js → p-0e07e1d6.entry.js} +1 -1
- package/dist/zonos-elements/p-126087a2.system.entry.js +1 -0
- package/dist/zonos-elements/{p-03980f76.entry.js → p-14f9bc8c.entry.js} +1 -1
- package/dist/zonos-elements/p-27d9abab.js +1 -0
- package/dist/zonos-elements/p-2813d72e.system.js +1 -0
- package/dist/zonos-elements/{p-10797d2b.system.entry.js → p-295d9c07.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-485416ec.js → p-2a6c964d.js} +1 -1
- package/dist/zonos-elements/{p-b12ec9f2.system.entry.js → p-2b3c7c77.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6696617a.system.entry.js → p-2b8897d1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d351ece6.system.entry.js → p-30432622.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9c0b78bf.system.entry.js → p-3462e9e4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-23293a0b.entry.js → p-372c2fc5.entry.js} +1 -1
- package/dist/zonos-elements/{p-195b33b6.system.entry.js → p-3c1b1be1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-69fd1b88.js → p-40a4266f.js} +1 -1
- package/dist/zonos-elements/{p-f74a6b78.system.entry.js → p-421dfb66.system.entry.js} +1 -1
- package/dist/zonos-elements/p-48356573.entry.js +1 -0
- package/dist/zonos-elements/{p-009c3ac5.system.entry.js → p-4f8563ad.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3c9714a8.system.entry.js → p-52d35358.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d26cffba.entry.js → p-567f7de7.entry.js} +1 -1
- package/dist/zonos-elements/{p-f129a83b.system.entry.js → p-637b22ee.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-61c2c336.entry.js → p-63a42823.entry.js} +1 -1
- package/dist/zonos-elements/{p-8ca25e6c.entry.js → p-6b3a0874.entry.js} +1 -1
- package/dist/zonos-elements/p-73c1e91f.js +1 -0
- package/dist/zonos-elements/{p-909d36bf.entry.js → p-759ef3ca.entry.js} +1 -1
- package/dist/zonos-elements/{p-c8784a01.system.entry.js → p-79d8c3f3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2c9381be.entry.js → p-7c4e7651.entry.js} +1 -1
- package/dist/zonos-elements/{p-70b81bbc.entry.js → p-7d2d2c94.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0a54cf6.system.js → p-7e000a9a.system.js} +1 -1
- package/dist/zonos-elements/{p-e455f060.system.entry.js → p-7e5bd9af.system.entry.js} +1 -1
- package/dist/zonos-elements/p-7ecbb2cb.entry.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/{p-f17fde5f.system.js → p-82e88a33.system.js} +1 -1
- package/dist/zonos-elements/{p-873b698a.entry.js → p-849b47aa.entry.js} +1 -1
- package/dist/zonos-elements/{p-0cec2dd2.system.entry.js → p-8dd47520.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-772ac0b7.js → p-932600b7.js} +1 -1
- package/dist/zonos-elements/{p-b1bd9fe7.system.entry.js → p-960e0ab1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-9c5b8239.system.js +1 -0
- package/dist/zonos-elements/p-9fdd3264.system.entry.js +1 -0
- package/dist/zonos-elements/{p-58afbe2b.entry.js → p-a08a005d.entry.js} +1 -1
- package/dist/zonos-elements/p-a10de7fb.entry.js +1 -0
- package/dist/zonos-elements/{p-23735db6.entry.js → p-a5b0a636.entry.js} +1 -1
- package/dist/zonos-elements/{p-dfb92907.entry.js → p-a77ed1b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-750b7f32.system.entry.js → p-a800965d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-af7b7931.system.entry.js +1 -0
- package/dist/zonos-elements/{p-aca272ea.entry.js → p-b3d5bcf9.entry.js} +1 -1
- package/dist/zonos-elements/{p-2323ff0f.system.entry.js → p-b669050d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-95461a1b.system.entry.js → p-b9e9b82f.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e2a45188.system.entry.js → p-ba18c5f5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-106ae0f1.entry.js → p-bbf48b31.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5406d26.entry.js → p-c4b3c878.entry.js} +1 -1
- package/dist/zonos-elements/{p-2cc031b3.js → p-c7b57886.js} +2 -2
- package/dist/zonos-elements/{p-a7204d41.entry.js → p-c803753e.entry.js} +1 -1
- package/dist/zonos-elements/{p-29499a5f.entry.js → p-cbb01de9.entry.js} +1 -1
- package/dist/zonos-elements/{p-6dd63754.system.js → p-ce15d62d.system.js} +1 -1
- package/dist/zonos-elements/{p-1fe5d4da.system.entry.js → p-d291e964.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-07bea979.system.js → p-d3485a03.system.js} +1 -1
- package/dist/zonos-elements/{p-f0be0ca9.system.entry.js → p-de626806.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-56ee6d4b.system.entry.js → p-e5388438.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0d6c6a38.entry.js → p-e77b6e42.entry.js} +1 -1
- package/dist/zonos-elements/{p-d63696ac.system.js → p-ea8aff21.system.js} +1 -1
- package/dist/zonos-elements/{p-34a37ce7.system.entry.js → p-eb6a35ce.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-60c61982.system.entry.js → p-ee6f8c02.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2a9681b4.entry.js → p-f4fa8720.entry.js} +1 -1
- package/dist/zonos-elements/{p-26573347.entry.js → p-fa90adb8.entry.js} +1 -1
- package/dist/zonos-elements/{p-bfbc081f.entry.js → p-fe7e2dc4.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +0 -1
- package/dist/esm-es5/translationStore-c9743292.js +0 -1
- package/dist/zonos-elements/p-5e372fb9.entry.js +0 -1
- package/dist/zonos-elements/p-5ff4f9df.system.js +0 -1
- package/dist/zonos-elements/p-6761091e.entry.js +0 -1
- package/dist/zonos-elements/p-6761286d.js +0 -1
- package/dist/zonos-elements/p-6e8aae27.system.entry.js +0 -1
- package/dist/zonos-elements/p-81e23f30.system.js +0 -1
- package/dist/zonos-elements/p-87e2a777.entry.js +0 -1
- package/dist/zonos-elements/p-986ebccc.js +0 -1
- package/dist/zonos-elements/p-ddb29c2a.system.entry.js +0 -1
- package/dist/zonos-elements/p-eb54ece4.system.entry.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, d as getAssetPath, h, H as Host } from './index-55a03023.js';
|
|
2
|
-
import { e as cartStore } from './cart-
|
|
2
|
+
import { e as cartStore } from './cart-b2dd578c.js';
|
|
3
3
|
import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-b5b18743.js';
|
|
4
4
|
import { f as zonosStoreFontFamily } from './zonosStore-c456b933.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-d7125e4e.js';
|
|
8
8
|
import './handleFetch-99218189.js';
|
|
9
9
|
import './VarianceTest-fef2d958.js';
|
|
10
|
-
import './translationStore-
|
|
10
|
+
import './translationStore-13502f49.js';
|
|
11
11
|
import './isDarkColor-1f58b6be.js';
|
|
12
12
|
import './getBorderRadius-87593ff4.js';
|
|
13
13
|
|
|
@@ -49,10 +49,10 @@ const HStack = class {
|
|
|
49
49
|
this.spacing = 24;
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
return (h(Host, { key: '
|
|
52
|
+
return (h(Host, { key: '92689fdc45c9e980d61f9b96c378ca52ed37a608', style: {
|
|
53
53
|
'--spacing': `${this.spacing}px`,
|
|
54
54
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
55
|
-
} }, h("slot", { key: '
|
|
55
|
+
} }, h("slot", { key: 'b94e0bcd372d0194ba2a86b570914fe33af427cd' })));
|
|
56
56
|
}
|
|
57
57
|
};
|
|
58
58
|
HStack.style = ZonosHStackStyle0;
|
|
@@ -75,7 +75,7 @@ const ZonosSkeleton = class {
|
|
|
75
75
|
this.skeletonHeight = '14px';
|
|
76
76
|
}
|
|
77
77
|
render() {
|
|
78
|
-
return (h(Host, { key: '
|
|
78
|
+
return (h(Host, { key: '4ffa2b8c03f0c8d3bd08521d950903cba9685109', class: classes(['zonos--elements zonos--skeleton']), style: styles({
|
|
79
79
|
'--zonos--skeleton-height': this.skeletonHeight,
|
|
80
80
|
'--zonos--skeleton-width': this.skeletonWidth,
|
|
81
81
|
}) }));
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host, a as getElement } from './index-55a03023.js';
|
|
2
|
-
import { c as stripeStore, d as stripeStoreRetrievePayment, t as trackConversionEvent, G as stripeStoreResetPromoCode, y as stripeStoreReset, H as stripeStoreMessageBasedOnStatus, e as cartStore, r as cartStoreNextStep, K as cartStoreOnChange } from './cart-
|
|
3
|
-
import { s as submitGtag, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-
|
|
4
|
-
import { s as storageStore, l as localizationStore } from './localization-
|
|
5
|
-
import { t as translate, b as translationStoreOnChange } from './translationStore-
|
|
2
|
+
import { c as stripeStore, d as stripeStoreRetrievePayment, t as trackConversionEvent, G as stripeStoreResetPromoCode, y as stripeStoreReset, H as stripeStoreMessageBasedOnStatus, e as cartStore, r as cartStoreNextStep, K as cartStoreOnChange } from './cart-b2dd578c.js';
|
|
3
|
+
import { s as submitGtag, c as paypalStoreReset, a as paypalStore, b as paypalInitScript } from './paypal-555bbf1e.js';
|
|
4
|
+
import { s as storageStore, l as localizationStore } from './localization-d7125e4e.js';
|
|
5
|
+
import { t as translate, b as translationStoreOnChange } from './translationStore-13502f49.js';
|
|
6
6
|
import { z as zonosStore } from './zonosStore-c456b933.js';
|
|
7
|
+
import { h as handleFetch, l as log, s as sendErrorLog, d as allLogs, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-99218189.js';
|
|
7
8
|
import { c as createCustomEvent } from './createCustomEvent-58159025.js';
|
|
8
9
|
import { g as getBorderRadius } from './getBorderRadius-87593ff4.js';
|
|
9
|
-
import {
|
|
10
|
-
import { i as isCollectMobile, a as isCollectTablet, e as collectStore } from './isCollectMobileTablet-b72b81c5.js';
|
|
10
|
+
import { i as isCollectMobile, a as isCollectTablet, e as collectStore } from './isCollectMobileTablet-7f9a5e2b.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, p as placeTestOrder } from './placeTestOrder-
|
|
13
|
+
import { r as renderCheckoutCurrency, p as placeTestOrder } from './placeTestOrder-2d67c1a9.js';
|
|
14
14
|
import './isDarkColor-1f58b6be.js';
|
|
15
15
|
import './VarianceTest-fef2d958.js';
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ const RemoveIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" heigh
|
|
|
18
18
|
|
|
19
19
|
const SuccessIcon = `<svg color="var(--zonos-elements-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z" data-is-secondary-color="true" fill="var(--zonos-elements-blue-100)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M15.707 9.293a1 1 0 0 1 0 1.414l-3.646 3.647a1.5 1.5 0 0 1-2.122 0l-1.646-1.647a1 1 0 1 1 1.414-1.414L11 12.586l3.293-3.293a1 1 0 0 1 1.414 0Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
|
|
20
20
|
|
|
21
|
-
const zonosCollectFinishCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:24px;border-radius:var(--zonos--border-radius, 10px);gap:24px;margin-top:24px;background-color:var(--zonos-elements-gray-50);padding:48px}:host .zonos--finish-details{max-width:640px;min-width:300px;line-height:24px;width:0 auto;margin:auto}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .zonos--finish-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto;margin-top:48px;max-width:300px}:host .zonos--subtitle{text-align:center}:host .zonos--order-number{background-color:var(--zonos-elements-gray-0);border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800);border-radius:var(--zonos-elements-radius-6);padding:4px 8px}";
|
|
21
|
+
const zonosCollectFinishCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:24px;border-radius:var(--zonos--border-radius, 10px);gap:24px;margin-top:24px;background-color:var(--zonos-elements-gray-50);padding:48px}:host .zonos--finish-details{max-width:640px;min-width:300px;line-height:24px;width:0 auto;margin:auto}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .zonos--finish-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto;margin-top:48px;max-width:300px}:host .zonos--button-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto}:host .zonos--subtitle{text-align:center}:host .zonos--order-number{background-color:var(--zonos-elements-gray-0);border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800);border-radius:var(--zonos-elements-radius-6);padding:4px 8px}";
|
|
22
22
|
const ZonosCollectFinishStyle0 = zonosCollectFinishCss;
|
|
23
23
|
|
|
24
24
|
/**
|
|
@@ -88,26 +88,9 @@ const ZonosCollectFinish = class {
|
|
|
88
88
|
log(`=== Polling order (${attempts} attemps)`, 'info');
|
|
89
89
|
if (
|
|
90
90
|
// Order found, in legacy checkout facade and still haven't found the legacy order number
|
|
91
|
-
order
|
|
92
|
-
attempts >= maxRetries) {
|
|
91
|
+
order) {
|
|
93
92
|
log('=== CollectOrder info found', 'info');
|
|
94
|
-
if (
|
|
95
|
-
// We pushed this one through without the legacy order number, so we should log this
|
|
96
|
-
void sendErrorLog({
|
|
97
|
-
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
|
|
98
|
-
errors: [
|
|
99
|
-
`Collect order found but legacy order number doesn't exist after ${maxRetries} attempts`,
|
|
100
|
-
],
|
|
101
|
-
metadata: {
|
|
102
|
-
allLogs,
|
|
103
|
-
checkoutSessionId: storageStore.checkoutSessionId || '',
|
|
104
|
-
orderId: order.id,
|
|
105
|
-
storeId: zonosStore.storeId,
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
else if (attempts > 10) {
|
|
93
|
+
if (attempts > 10) {
|
|
111
94
|
// Log out all the logs if we have tried more than 10 times
|
|
112
95
|
void sendErrorLog({
|
|
113
96
|
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
|
|
@@ -245,6 +228,21 @@ const ZonosCollectFinish = class {
|
|
|
245
228
|
paypalStoreReset();
|
|
246
229
|
storageStore.checkoutSessionId = null;
|
|
247
230
|
};
|
|
231
|
+
this.getReceiptUrl = ({ cartId }) => {
|
|
232
|
+
const hostUrl = new URL(`${window.location.origin}/receipt`);
|
|
233
|
+
hostUrl.searchParams.set('referenceId', cartId);
|
|
234
|
+
// is test mode
|
|
235
|
+
const isTestMode = getIsTestMode();
|
|
236
|
+
if (isTestMode) {
|
|
237
|
+
hostUrl.searchParams.set('zonosTestMode', '1');
|
|
238
|
+
}
|
|
239
|
+
// Carry over the zonosQaUrl if it exists
|
|
240
|
+
const zonosQaUrl = new URLSearchParams(window.location.search).get('zonosQaUrl');
|
|
241
|
+
if (zonosQaUrl) {
|
|
242
|
+
hostUrl.searchParams.set('zonosQaUrl', zonosQaUrl);
|
|
243
|
+
}
|
|
244
|
+
return hostUrl.toString();
|
|
245
|
+
};
|
|
248
246
|
}
|
|
249
247
|
componentDidLoad() {
|
|
250
248
|
if (this.overrideNotification) {
|
|
@@ -266,11 +264,14 @@ const ZonosCollectFinish = class {
|
|
|
266
264
|
}
|
|
267
265
|
}
|
|
268
266
|
render() {
|
|
269
|
-
|
|
267
|
+
const cartId = window.Zonos.cartId;
|
|
268
|
+
return (h(Host, { key: 'e145b7396302157ccb515c54f99e50faa8ba45e6', class: "zonos--checkout-finish zonos--elements", style: {
|
|
270
269
|
'--zonos--border-radius': getBorderRadius({
|
|
271
270
|
overrideBorderStyle: this.borderRadius,
|
|
272
271
|
}),
|
|
273
|
-
} }, !this.isLoading && (h("div", { key: '
|
|
272
|
+
} }, !this.isLoading && (h("div", { key: 'b9df4788f27c935ba7fc47e7c930cd162c8fbebe', class: "zonos--finish-details" }, h("div", { key: 'a510c995880c8698dc98390d0504b70333551c86', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '8f84f87bf2365b85acffefe16e8b10cd9227a6e6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: '0e3f3f71cae6262d6394ad2c5a6d656509b484d5', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'c769f2ada1e6b421e373aeb4393560a21d6fcffc', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '9972858fadd4d2d9c4f00e54921002ea04a5cc51', class: "zonos--button-container" }, h("zonos-button", { key: 'fe931a552fc1c43b29a1966736379c3c1d0536f6', onClick: () => {
|
|
273
|
+
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
274
|
+
}, size: "lg", variant: "primary" }, translate('View receipt')))))))));
|
|
274
275
|
}
|
|
275
276
|
static get assetsDirs() { return ["assets"]; }
|
|
276
277
|
};
|
|
@@ -331,15 +332,15 @@ const ZonosCollectFooter = class {
|
|
|
331
332
|
const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
332
333
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
333
334
|
const colorDesktop = 'gray-1000';
|
|
334
|
-
return (h(Host, { key: '
|
|
335
|
+
return (h(Host, { key: '9509e7325ad0153d2f5c9ba3b5689fdb3ad6313e', class: classes([
|
|
335
336
|
'zonos--elements',
|
|
336
337
|
this.isMobile && 'mobile',
|
|
337
338
|
this.isTablet && 'tablet',
|
|
338
|
-
]) }, h("div", { key: '
|
|
339
|
+
]) }, h("div", { key: '250716798bf30901678b16e1ac159810f1d7a6ad', class: "zonos--collect-footer" }, h("div", { key: 'ab61803d4b5348b8978e7dfcb16a5733cca5dd29', class: "zonos--collect-locale-wrapper" }, h("zonos-button", { key: '6c5dcd25d5ef73b2098269d840e291343d30cb81', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: 'd1a367cd19b36f1a0f49ccfe78e750218b50a03e', class: classes([
|
|
339
340
|
'zonos--collect-language-dialog',
|
|
340
341
|
this.showLanguageDialog &&
|
|
341
342
|
'zonos--collect-language-dialog-open',
|
|
342
|
-
]) }, h("zonos-language-select", { key: '
|
|
343
|
+
]) }, h("zonos-language-select", { key: '02f446b8f4e3dc875f78d5ac2f0b9aa6dd071f1c', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: 'b713a78cbd3d3f131c6c473bb1d979899d40b13b', class: "zonos--collect-footer-icon-wrapper" }, h("div", { key: '97eab5909d556f13fa2acc0628d583d49f13d3a2', class: "zonos--collect-footer-logo" }, h("zonos-text", { key: 'a6488e084f153305eed8d6f65341d7ab00297adb', textColor: colorDesktop }, "Powered by"), h("a", { key: 'c63a6e1064dbd733add1cc3b1df1456484e2f103', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '081cae2c34e58478a8c20f0f9a9f20dc0b47c9b7', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: '0862a11838e62f425d38066230b01f445999d751', class: "dot" }), h("a", { key: 'b13f3af014b5d970e45f88cbb0ef669a0f9aa2ac', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'a675218a36da83427c2ce517a15b1ed5ea5910d6', textColor: colorDesktop }, "Privacy policy"))))));
|
|
343
344
|
}
|
|
344
345
|
get el() { return getElement(this); }
|
|
345
346
|
static get watchers() { return {
|
|
@@ -643,7 +644,7 @@ const renderFallback = ({ content, isLoading, skeletonHeight, skeletonWidth, })
|
|
|
643
644
|
return content;
|
|
644
645
|
};
|
|
645
646
|
|
|
646
|
-
const zonosCollectReviewCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:-webkit-sticky;position:sticky;top:0;background-color:var(--zonos-elements-gray-0);z-index:1}:host .zonos--total-pay{margin:8px 0 24px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;gap:48px}:host .zonos--total-pay::after{content:\"\";position:relative;height:1px;width:100%;background:var(--zonos-elements-gray-200)}:host(.mobile),:host(.tablet){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;padding:4px 0;background-color:transparent;position:relative}:host(.mobile) .zonos--total-pay,:host(.tablet) .zonos--total-pay{margin:0}";
|
|
647
|
+
const zonosCollectReviewCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{position:-webkit-sticky;position:sticky;top:0;background-color:var(--zonos-elements-gray-0);z-index:1}:host .zonos--total-pay{margin:8px 0 24px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;gap:48px}:host .zonos--total-pay zonos-text{-ms-flex-negative:0;flex-shrink:0}:host .zonos--total-pay::after{content:\"\";position:relative;height:1px;width:100%;background:var(--zonos-elements-gray-200)}:host(.mobile),:host(.tablet){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;padding:4px 0;background-color:transparent;position:relative}:host(.mobile) .zonos--total-pay,:host(.tablet) .zonos--total-pay{margin:0}";
|
|
647
648
|
const ZonosCollectReviewStyle0 = zonosCollectReviewCss;
|
|
648
649
|
|
|
649
650
|
const ZonosCollectReview = class {
|
|
@@ -680,13 +681,13 @@ const ZonosCollectReview = class {
|
|
|
680
681
|
}
|
|
681
682
|
render() {
|
|
682
683
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
683
|
-
return (h(Host, { key: '
|
|
684
|
+
return (h(Host, { key: '6432c5dd5afd628e33ba26385ecfecb470f1757e', class: classes([
|
|
684
685
|
'zonos--collect-review zonos--elements',
|
|
685
686
|
this.isMobile && 'mobile',
|
|
686
687
|
this.isTablet && 'tablet',
|
|
687
|
-
]) }, h("div", { key: '
|
|
688
|
+
]) }, h("div", { key: 'e4d113ff1268c36119e1f80164b6cfd702c67f75', class: "zonos--title" }, h("zonos-text", { key: 'aad9ad9b526ac65d97a88df516e8e7b34fc3d2b1', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
|
|
688
689
|
organizationName: zonosStore.organizationName,
|
|
689
|
-
}))), h("div", { key: '
|
|
690
|
+
}))), h("div", { key: 'fcdaebc734a270742fbe21ff932550994e522ea6', class: "zonos--total-pay" }, renderFallback({
|
|
690
691
|
content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
|
|
691
692
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
692
693
|
isForeign: false,
|
|
@@ -709,8 +710,8 @@ const ZonosCollectSubtotal = class {
|
|
|
709
710
|
this.storeUnsubscribeList = [];
|
|
710
711
|
this.subtotals = {};
|
|
711
712
|
this.initSubtotalData = () => {
|
|
712
|
-
var _a
|
|
713
|
-
const cartLandedCostSubtotal = (
|
|
713
|
+
var _a;
|
|
714
|
+
const cartLandedCostSubtotal = (_a = cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.subtotals;
|
|
714
715
|
if (!cartLandedCostSubtotal) {
|
|
715
716
|
return;
|
|
716
717
|
}
|
|
@@ -752,7 +753,7 @@ const ZonosCollectSubtotal = class {
|
|
|
752
753
|
}
|
|
753
754
|
render() {
|
|
754
755
|
this.initSubtotalData();
|
|
755
|
-
return (h(Host, { key: '
|
|
756
|
+
return (h(Host, { key: 'ab687a6e1ec67f6609081036a75e9905ff34c6b1', class: "zonos--collect-subtotal zonos--elements" }, h("table", { key: '303b8c49983e9f7aea4d31400fed53d858eb078d', class: "zonos--collect-table" }, !!this.subtotals[translate('Duties')] && (h("tr", { key: 'a60fa4f1f1afacef0144b86c054f44572576f7af', class: "zonos--row zonos--collect-duty" }, h("td", { key: 'aeaf798e26bbd482196d7208eb05657a1d15dad8', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '835d817709ae3b7e2d888d618e0856fb2e637e4d', type: "semiBoldLabel" }, translate('Duties'))), h("td", { key: '5bb47a115ea61fa897a3f48bbd10c5f78af3703e', class: "zonos--column" }), h("td", { key: '32632c4beb855ca687c615f5e6c63c82e2e05c80', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
756
757
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
757
758
|
amount: this.subtotals[translate('Duties')] || 0,
|
|
758
759
|
isForeign: true,
|
|
@@ -760,7 +761,7 @@ const ZonosCollectSubtotal = class {
|
|
|
760
761
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
761
762
|
skeletonHeight: '14px',
|
|
762
763
|
skeletonWidth: '150px',
|
|
763
|
-
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: '
|
|
764
|
+
})))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: '055bb237dafaea8de18b127641c8fd7e1ece563b', class: "zonos--row zonos--collect-tax" }, h("td", { key: '1e73b140c2c9090ccfb91ce4efca483e8fb56e9e', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'a3375ecd77460c78c7c5f59bf7b9b8612cd53e41', type: "semiBoldLabel" }, translate('Taxes'))), h("td", { key: '20685646be29873967c2f335c775046068248ad3', class: "zonos--column" }), h("td", { key: '2e2c6af2c1a7840df03351178ddf3107fcc36494', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
764
765
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
765
766
|
amount: this.subtotals[translate('Taxes')] || 0,
|
|
766
767
|
isForeign: true,
|
|
@@ -768,7 +769,7 @@ const ZonosCollectSubtotal = class {
|
|
|
768
769
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
769
770
|
skeletonHeight: '14px',
|
|
770
771
|
skeletonWidth: '150px',
|
|
771
|
-
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '
|
|
772
|
+
})))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '8157aba5c6a23680b0bc681adc127747f01a2973', class: "zonos--row zonos--collect-fee" }, h("td", { key: '8266654f9e65003f297222bb935013a8b9b3b430', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '8399000a5f61e4737764b68b89799b409dce6034', type: "semiBoldLabel" }, translate('Fees'))), h("td", { key: '2a9763f2401967ea1bdfa2c17514d18e2a4e0db6', class: "zonos--column" }), h("td", { key: 'ac2f275312c2ba69888e6e57dde8b4b451839b86', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
772
773
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
773
774
|
amount: this.subtotals[translate('Fees')] || 0,
|
|
774
775
|
isForeign: true,
|
|
@@ -776,7 +777,7 @@ const ZonosCollectSubtotal = class {
|
|
|
776
777
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
777
778
|
skeletonHeight: '14px',
|
|
778
779
|
skeletonWidth: '150px',
|
|
779
|
-
})))), h("tr", { key: '
|
|
780
|
+
})))), h("tr", { key: 'a293d1b9342251f7326c1ac68e2bab83eae2ed80', class: "zonos--row zonos--collect-spacing" }, h("td", { key: 'c136b1b807f32dc21c131326d70500d2e2c64efe', class: "zonos--column", colSpan: 3 })), h("tr", { key: '59747101f1a9ef7c8fad60e90ea5b8c31015438c', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, h("td", { key: '96d201ba6f3e571adac265127229c94cdc96be2a', class: "zonos--column" }), h("td", { key: 'f2f4cb751e35fc0ebaa803659f26a2314d8bf639', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'b4f89ea1e523af8a5aead4ef007a6f0dc7e7f441', type: "label" }, translate('Subtotal'))), h("td", { key: '28b6aea6363b2bef1d072ad77f409ae77976305c', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
780
781
|
content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
|
|
781
782
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
782
783
|
isForeign: true,
|
|
@@ -784,7 +785,7 @@ const ZonosCollectSubtotal = class {
|
|
|
784
785
|
isLoading: collectStore.isFetchingShippingInfo,
|
|
785
786
|
skeletonHeight: '14px',
|
|
786
787
|
skeletonWidth: '150px',
|
|
787
|
-
}))), h("tr", { key: '
|
|
788
|
+
}))), h("tr", { key: 'f0072cdd200e8483421265af39a90fb655fb2ef0', class: "zonos--row zonos--collect-total" }, h("td", { key: '88a007048d33c919a6c5f87cf7cd071f83e7448b', class: "zonos--column" }), h("td", { key: '24bba9e9b81ff443dd5ca4832c3169e3605a93b8', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '594d4e96bec3a2153f6622c6842970ebee5bb463', type: "semiBoldLabel" }, translate('Customs fees total'))), h("td", { key: 'b3ffd6dcae747dd2ed68ae16fb60d9655f7669dc', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
788
789
|
content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
|
|
789
790
|
amount: collectStore.amountDutyTaxFeeTotal || 0,
|
|
790
791
|
isForeign: true,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, F as Fragment } from './index-55a03023.js';
|
|
2
|
-
import { c as stripeStore, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, o as cartStoreUpdateToErrorState, f as cartStoreUpdateItems, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, u as stripeStoreUpdateCheckoutSessionBaseCurrency, w as stripeStoreConfirmPayment, A as stripeStoreOnChange, y as stripeStoreReset, g as cartStoreReset } from './cart-
|
|
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, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-
|
|
6
|
-
import { t as translate } from './translationStore-
|
|
2
|
+
import { c as stripeStore, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, o as cartStoreUpdateToErrorState, f as cartStoreUpdateItems, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, u as stripeStoreUpdateCheckoutSessionBaseCurrency, w as stripeStoreConfirmPayment, A as stripeStoreOnChange, y as stripeStoreReset, g as cartStoreReset } from './cart-b2dd578c.js';
|
|
3
|
+
import { i as isCollectMobile, a as isCollectTablet, c as collectStoreUpdateSelectedShippingOption, b as collectStoreInitShippingInfo, d as collectStoreAsyncAddressUpdate, e as collectStore } from './isCollectMobileTablet-7f9a5e2b.js';
|
|
4
|
+
import { p as paypalStoreHasPaypalEnabled, a as paypalStore } from './paypal-555bbf1e.js';
|
|
5
|
+
import { s as storageStore, c as localizationStoreOnChange, d as currencyFormat, l as localizationStore } from './localization-d7125e4e.js';
|
|
6
|
+
import { t as translate } from './translationStore-13502f49.js';
|
|
7
7
|
import { z as zonosStore } from './zonosStore-c456b933.js';
|
|
8
8
|
import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-c4488f73.js';
|
|
9
9
|
import { h as handleFetch, l as log, s as sendErrorLog, b as logError, g as getIsTestMode } from './handleFetch-99218189.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: 'ce1a6a656f02ba26460066561b08f449e9e042bc' }, "Hello, World! I'm ", this.getText());
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
ZonosComponent.style = ZonosComponentStyle0;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-55a03023.js';
|
|
2
|
-
import { t as translate } from './translationStore-
|
|
2
|
+
import { t as translate } from './translationStore-13502f49.js';
|
|
3
3
|
import { g as getZonosStoreTheme, f as zonosStoreFontFamily, z as zonosStore } from './zonosStore-c456b933.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import { g as getBorderRadius } from './getBorderRadius-87593ff4.js';
|
|
@@ -125,13 +125,13 @@ const ZonosConfirmDialog = class {
|
|
|
125
125
|
const borderStyle = getBorderRadius();
|
|
126
126
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
127
127
|
const theme = getZonosStoreTheme(zonosStore.appearance.theme);
|
|
128
|
-
return (h(Host, { key: '
|
|
128
|
+
return (h(Host, { key: 'c9eabf497f7e23ae201e6310e5ecb9f0d7068294', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
|
|
129
129
|
'--zonos--border-radius': borderStyle,
|
|
130
130
|
'--zonos--dialog-width': `${this.dialogWidth}px`,
|
|
131
131
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
132
|
-
} }, h("div", { key: '
|
|
132
|
+
} }, h("div", { key: 'a9a525bfe764bf93e8725d9a00c069455de72ed6', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '072ab68e501618b640ffce6c6e8e96096966e09d', class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '3ab415f1cbc2bc36af01d67b279e732480de8685', class: "zonos--confirm-dialog", onBlur: () => {
|
|
133
133
|
this.focusDialog();
|
|
134
|
-
} }, h("div", { key: '
|
|
134
|
+
} }, h("div", { key: 'a1d99558318371c0e5ee95a9578a6de31a6fc27a', class: "wrapper" }, h("div", { key: '3fd7fbc90c430a3e1496e5b0347947c1929aa6ed', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '5584080e0f0a5a756b0cc2ac761e0e18c864afcd', class: "content" }, h("div", { key: '4a2070c137636193d05ded090fea26f05aada887', class: "title" }, h("zonos-text", { key: 'ab4c773f4af1271f5615a28f6a6193460330f16b', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '05a445dc37e754c99ea6727ae2bf861d42d5c2c4', class: "subtitle" }, h("zonos-text", { key: 'a7563f9fd3b405653487542e1b7a1f6aeab01893', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '812e9e43fdb6d10ed62da8138e344b0243ca5c34', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: '07d7dc9d1a4bca9cb1ee420a4fed82e9fc513bd9', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: 'b607a5244dc39869b6d40cd361d9dee4686858a7', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
|
|
135
135
|
}
|
|
136
136
|
static get assetsDirs() { return ["assets"]; }
|
|
137
137
|
get el() { return getElement(this); }
|
|
@@ -155,7 +155,7 @@ const ZonosLoadingOverlay = class {
|
|
|
155
155
|
this.size = 40;
|
|
156
156
|
}
|
|
157
157
|
render() {
|
|
158
|
-
return (h(Host, { key: '
|
|
158
|
+
return (h(Host, { key: '1eb7313add29219032d8301abaf55ace726a3309', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: 'df9960e78817a9a98006fed7e87c5441f220f496', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: '32795fe2c626add5d2f53032ea9b5b8d528bef38', size: this.size, spinnerColor: this.spinnerColor }))));
|
|
159
159
|
}
|
|
160
160
|
};
|
|
161
161
|
ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host } from './index-55a03023.js';
|
|
2
|
-
import { c as stripeStore } from './cart-
|
|
3
|
-
import { i as isValidSelector, e as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-
|
|
2
|
+
import { c as stripeStore } from './cart-b2dd578c.js';
|
|
3
|
+
import { i as isValidSelector, e as initLocalizationStore, s as storageStore, a as localizationStoreUpdateSelectedCountryCode } from './localization-d7125e4e.js';
|
|
4
4
|
import { z as zonosStore, e as zonosStoreInitSetting, f as zonosStoreFontFamily } from './zonosStore-c456b933.js';
|
|
5
5
|
import { g as getGenericSettingsOverride, i as iframeServices, a as injectPrivateIframe } from './getGenericSettingsOverride-0bc3e118.js';
|
|
6
6
|
import { h as handleFetch, b as logError, l as log } from './handleFetch-99218189.js';
|
|
7
|
-
import './translationStore-
|
|
7
|
+
import './translationStore-13502f49.js';
|
|
8
8
|
import './isDarkColor-1f58b6be.js';
|
|
9
9
|
import './getBorderRadius-87593ff4.js';
|
|
10
10
|
import './VarianceTest-fef2d958.js';
|
|
@@ -686,7 +686,7 @@ const ZonosController = class {
|
|
|
686
686
|
zonosStore.organizationName = organizationName;
|
|
687
687
|
}
|
|
688
688
|
render() {
|
|
689
|
-
return h(Host, { key: '
|
|
689
|
+
return h(Host, { key: 'ca4c02bf0aa73d19ea58cdf6a76c8424276b69cd', class: "zonos--elements" });
|
|
690
690
|
}
|
|
691
691
|
};
|
|
692
692
|
ZonosController.style = ZonosControllerStyle0;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement } from './index-55a03023.js';
|
|
2
|
-
import { l as localizationStore } from './localization-
|
|
2
|
+
import { l as localizationStore } from './localization-d7125e4e.js';
|
|
3
3
|
import { f as zonosStoreFontFamily } from './zonosStore-c456b933.js';
|
|
4
4
|
import { c as classes } from './classes-0d95c529.js';
|
|
5
5
|
import './handleFetch-99218189.js';
|
|
6
6
|
import './VarianceTest-fef2d958.js';
|
|
7
|
-
import './translationStore-
|
|
7
|
+
import './translationStore-13502f49.js';
|
|
8
8
|
|
|
9
9
|
const zonosCountryFlagCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
|
|
10
10
|
const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement } from './index-55a03023.js';
|
|
2
|
-
import { a as localizationStoreUpdateSelectedCountryCode, l as localizationStore } from './localization-
|
|
3
|
-
import { t as translate } from './translationStore-
|
|
2
|
+
import { a as localizationStoreUpdateSelectedCountryCode, l as localizationStore } from './localization-d7125e4e.js';
|
|
3
|
+
import { t as translate } from './translationStore-13502f49.js';
|
|
4
4
|
import { f as zonosStoreFontFamily } from './zonosStore-c456b933.js';
|
|
5
5
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
6
6
|
import { i as isDarkColor } from './isDarkColor-1f58b6be.js';
|
|
@@ -1855,13 +1855,13 @@ const ZonosCountrySelect = class {
|
|
|
1855
1855
|
? fuseObject.map(country => country.item)
|
|
1856
1856
|
: countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
1857
1857
|
const isEmpty = !filteredCountries.length;
|
|
1858
|
-
return (h(Host, { key: '
|
|
1858
|
+
return (h(Host, { key: '87e346925730bb4ce7a5a0da35bbffe9fa209e79', class: "zonos--elements", style: {
|
|
1859
1859
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
1860
|
-
} }, h("div", { key: '
|
|
1860
|
+
} }, h("div", { key: '557543582175b50bcd5e9e0e9362ecc85f0b0ec0', class: "zonos--country-select" }, h("zonos-v-stack", { key: '3e03b4624abfc1b2239560a62dd33659c30c7d26', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '9664de32cbfb119eb0b3658b71f31039f4d0e064', handleOnClose: () => this.handleOnClose(), label: translate('Select a country') }, h("input", { key: 'c5f28d334194471298bacc218f36dd7d56f57c1e', autoComplete: "off", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translate('Search countries'), ref: el => {
|
|
1861
1861
|
if (el) {
|
|
1862
1862
|
this.inputRef = el;
|
|
1863
1863
|
}
|
|
1864
|
-
}, type: "text", value: this.inputValue }))), h("div", { key: '
|
|
1864
|
+
}, type: "text", value: this.inputValue }))), h("div", { key: '9f623511c7a1576961e527071c10672f3b800359', class: "zonos--country-select-content" }, isEmpty && (h("zonos-text", { key: '3c37b29f38ce48ea953df2faf0ab9e349a8e538c', class: "no-country", textColor: "gray-800" }, translate('No countries found'))), h("zonos-virtual-scroll", { key: 'ebab93c3379e93fcbde6cd634174f981c06bff42', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index => {
|
|
1865
1865
|
const country = filteredCountries[index];
|
|
1866
1866
|
if (!country) {
|
|
1867
1867
|
return null;
|
|
@@ -1890,9 +1890,9 @@ const ZonosCustomMessage = class {
|
|
|
1890
1890
|
}
|
|
1891
1891
|
render() {
|
|
1892
1892
|
const messageWithLinks = formatStringWithLinks(this.message);
|
|
1893
|
-
return (h(Host, { key: '
|
|
1893
|
+
return (h(Host, { key: '77dcb275cd99e2c1618a58e35d7b6aba07cff289', class: "zonos--elements", style: {
|
|
1894
1894
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
1895
|
-
} }, this.message && (h("zonos-card", { key: '
|
|
1895
|
+
} }, this.message && (h("zonos-card", { key: '61f205819558dd9eb5c9181b8510da6b5304f3e5', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: 'adc9891709eade8a8f8baf7cc3a840a0340dc834', class: "zonos--flex-message" }, h("zonos-icon", { key: 'f94f9d8e2717c36a12a5bd4bd3b1eb98b4c1d6a8', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'e1defbb16081a5873f98f6f251e6acf57ea5ec25', innerHTML: messageWithLinks }))))));
|
|
1896
1896
|
}
|
|
1897
1897
|
};
|
|
1898
1898
|
ZonosCustomMessage.style = ZonosCustomMessageStyle0;
|
|
@@ -1949,9 +1949,9 @@ const ZonosHelloDialogFooter = class {
|
|
|
1949
1949
|
const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
|
|
1950
1950
|
// Only use gray-0 (white) when the background color is dark (apply inverted color if the element is using dark theme variable)
|
|
1951
1951
|
const mainColor = primaryColor && isDarkColor(primaryColor) ? 'white' : 'black';
|
|
1952
|
-
return (h(Host, { key: '
|
|
1952
|
+
return (h(Host, { key: 'ff7ca3834fbd8febed2ad016add7832c84b3d067', class: "zonos--elements" }, h("div", { key: 'f3c28cb5afe06a98789e61ed233317402eb7deca', class: "zonos--hello-dialog-footer", style: {
|
|
1953
1953
|
'--zonos--primary-color': primaryColor,
|
|
1954
|
-
} }, h("a", { key: '
|
|
1954
|
+
} }, h("a", { key: 'e229fcdcc64734e9ed762f5324c7c35ae88a8e17', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '7eb45e7359e7c5d411801d29f06d7c700633c7f3', "aria-label": "Zonos Logo", autoHeight: true, content: mainColor === 'black' ? ZonosIconLight : ZonosIconDark, iconColor: mainColor, size: 108 })), h("div", { key: '9dba0c118f8d7cac5c9aaae36d8270f2a8cb8360', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: 'd40f08f0e1437290ed4fbbd6ad4dd6e61878804c', 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: '6312ac59bc58142aee85702b3f4538949255cbb9', 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)))));
|
|
1955
1955
|
}
|
|
1956
1956
|
get ele() { return getElement(this); }
|
|
1957
1957
|
};
|
|
@@ -2060,10 +2060,10 @@ const ZonosVirtualScroll = class {
|
|
|
2060
2060
|
render() {
|
|
2061
2061
|
const { width: containerWidth } = this.containerDimensions;
|
|
2062
2062
|
const visibleItems = this.getVisibleItems();
|
|
2063
|
-
return (h(Host, { key: '
|
|
2063
|
+
return (h(Host, { key: '931ec0dfcbb239d4e3f6f127acfffd22b4b9316f', class: classes(['zonos--virtual-scroll']) }, h("div", { key: '65b5823473b15304317e7a3ec51efd807b3215fa', class: classes(['scroller']), style: {
|
|
2064
2064
|
height: `${this.totalHeight}px`,
|
|
2065
2065
|
width: `${containerWidth}px`,
|
|
2066
|
-
} }), h("div", { key: '
|
|
2066
|
+
} }), h("div", { key: 'ac8fae50951a3a03ff76ebcef744d739c03bbad8', class: classes(['item-container']), style: {
|
|
2067
2067
|
height: `${this.totalHeight}px`,
|
|
2068
2068
|
} }, visibleItems.map(({ element }) => element))));
|
|
2069
2069
|
}
|
|
@@ -2,12 +2,12 @@ import { r as registerInstance, h, H as Host, a as getElement, c as createEvent
|
|
|
2
2
|
import { f as zonosStoreFontFamily } from './zonosStore-c456b933.js';
|
|
3
3
|
import { c as classes } from './classes-0d95c529.js';
|
|
4
4
|
import { g as getBorderRadius } from './getBorderRadius-87593ff4.js';
|
|
5
|
-
import { c as stripeStore, t as trackConversionEvent } from './cart-
|
|
6
|
-
import { s as storageStore } from './localization-
|
|
5
|
+
import { c as stripeStore, t as trackConversionEvent } from './cart-b2dd578c.js';
|
|
6
|
+
import { s as storageStore } from './localization-d7125e4e.js';
|
|
7
7
|
import { b as logError, l as log } from './handleFetch-99218189.js';
|
|
8
|
-
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-
|
|
8
|
+
import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-555bbf1e.js';
|
|
9
9
|
import './VarianceTest-fef2d958.js';
|
|
10
|
-
import './translationStore-
|
|
10
|
+
import './translationStore-13502f49.js';
|
|
11
11
|
import './isDarkColor-1f58b6be.js';
|
|
12
12
|
|
|
13
13
|
const PaymentEmptyStateDarkIcon = `<svg width="536" height="200" viewBox="0 0 536 200" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -180,12 +180,20 @@ const ZonosPayment = class {
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
watchInitStripe() {
|
|
183
|
+
var _a;
|
|
183
184
|
if (!this.stripeElements) {
|
|
184
185
|
return;
|
|
185
186
|
}
|
|
186
187
|
// Create and mount the Authentication Element in ${type} mode
|
|
187
188
|
const paymentElement = stripeStore.stripePaymentElement ||
|
|
188
189
|
this.stripeElements.create('payment', {
|
|
190
|
+
defaultValues: {
|
|
191
|
+
billingDetails: {
|
|
192
|
+
address: {
|
|
193
|
+
country: (_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country,
|
|
194
|
+
},
|
|
195
|
+
},
|
|
196
|
+
},
|
|
189
197
|
layout: 'tabs',
|
|
190
198
|
});
|
|
191
199
|
const paymentElementContainer = this.el.querySelector('.zonos--payment-component');
|
|
@@ -208,7 +216,7 @@ const ZonosPayment = class {
|
|
|
208
216
|
}
|
|
209
217
|
render() {
|
|
210
218
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
211
|
-
return (h(Host, { key: '
|
|
219
|
+
return (h(Host, { key: 'c0b27f25785a9f6de2705e16d97f1bf5f7bcb0a4', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '1cfdb16f94a5219882da9da013a6e2de6a6b3c3f', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'bb5ac07b4c32f2469f4825426160542d9729d332', class: "zonos--payment-component" }), h("div", { key: '34f805b56fa151e8a3102361df9fb8b3e636dc75', class: "zonos--payment-paypal-container" })));
|
|
212
220
|
}
|
|
213
221
|
get el() { return getElement(this); }
|
|
214
222
|
static get watchers() { return {
|
|
@@ -272,7 +280,7 @@ const ZonosPaypalPayment = class {
|
|
|
272
280
|
this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
|
|
273
281
|
}
|
|
274
282
|
render() {
|
|
275
|
-
return (h(Host, { key: '
|
|
283
|
+
return (h(Host, { key: 'bcf11ef0ceab1d847c237ec26ec604440983c16f', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: 'ce5033f39b2e9644e30fc1e0e35f64e5d9b9730d', class: "zonos--payment-paypal-container" })));
|
|
276
284
|
}
|
|
277
285
|
get el() { return getElement(this); }
|
|
278
286
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-55a03023.js';
|
|
2
|
-
import { l as localizationStore, d as currencyFormat } from './localization-
|
|
3
|
-
import { t as translate } from './translationStore-
|
|
2
|
+
import { l as localizationStore, d as currencyFormat } from './localization-d7125e4e.js';
|
|
3
|
+
import { t as translate } from './translationStore-13502f49.js';
|
|
4
4
|
import { z as zonosStore } from './zonosStore-c456b933.js';
|
|
5
5
|
import { c as classes } from './classes-0d95c529.js';
|
|
6
6
|
import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
|
|
@@ -344,18 +344,18 @@ const ZonosHelloDialog = class {
|
|
|
344
344
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
345
345
|
const currentPage = this.getCurrentPageEnum();
|
|
346
346
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
347
|
-
return (h(Host, { key: '
|
|
347
|
+
return (h(Host, { key: '178654e9b701bb68a4d47495897445cf87806c37', class: "zonos--elements" }, h("div", { key: 'eb0f3ced0226513df3911e0664aff10d523fdac7', class: classes([
|
|
348
348
|
'zonos--hello-dialog',
|
|
349
349
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
350
350
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
351
351
|
!!this.mobileLocationOverride &&
|
|
352
352
|
'zonos--hello-dialog-mobile-override',
|
|
353
353
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
354
|
-
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
354
|
+
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: 'f185f2d707a3b9628896a7e15f2a0ad20da112ec' }, h("div", { key: '80c53ad6728b221bedbfaec2ec77fee96029e12b', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '31b71832bee5e4515dbf060746f022d9c91502af', 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: '5f11c3b0355ba0c85cf134522b6e21fd28dfe16c', spacing: 24 }, h("zonos-country-flag", { key: '6d6dcad7e3700f67c4261995d867aacb42715404', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: '7a325a9b94e58dc5f8dba5baba9a00f835466ee2', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '24e2407475b740b50ca07fe9278363fdefc27d01', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '6b38dee6ec6fcf39e02c5225155e2af69c367a39', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '567d126d05f236fa0aab764d78b1692ebfe82f8b', spacing: 8 }, this.restrictedItems.map(item => {
|
|
355
355
|
var _a;
|
|
356
356
|
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)))));
|
|
357
|
-
}), h("zonos-card", { key: '
|
|
358
|
-
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: '
|
|
357
|
+
}), h("zonos-card", { key: 'e96943bc58d47531f748217858939ddf2a586441', spacing: "12px" }, h("zonos-v-stack", { key: '3e1850a86542ad66c224e4b81f1c5442e7716f6d', spacing: 12 }, hasInclusivePrices ? (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: InclusivePricingIcon }), h("zonos-text", null, inclusivePriceMessage))) : (h(Fragment, null, dutyDeMinimisMessage && (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis icon", content: ImportIcon }), h("zonos-text", { "aria-label": "Duty de minimis message" }, dutyDeMinimisMessage))), taxDeMinimisMessage && (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis icon", content: MoneyIcon }), h("zonos-text", { "aria-label": "Tax de minimis message" }, taxDeMinimisMessage))))), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
358
|
+
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: '33e41b69e4a5b00623f3e412609e7162cb560c38', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'fa17c20b3d893ed9f2249bbceca5237fa48bc64e' }, h("zonos-country-select", { key: '15a5924f176c4a805405684c3eda90f47979cf0b', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: 'ab1d061a3c9c68b43c4203fa14af2ffcf7d33e82' }, h("zonos-language-select", { key: '97f4c760e65d7af39160a1ff978d8a7b0864a763', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
359
359
|
}
|
|
360
360
|
static get assetsDirs() { return ["assets"]; }
|
|
361
361
|
static get watchers() { return {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, a as getElement } from './index-55a03023.js';
|
|
2
2
|
import { d as debounce_1 } from './debounce-c34d1270.js';
|
|
3
|
-
import { l as localizationStore, i as isValidSelector, g as getZCountryUrlParam, h as setZCountryUrlParam, j as currencyDisplay, k as currencyConvertAndFormat, m as currencyConvert, d as currencyFormat } from './localization-
|
|
4
|
-
import { t as translate } from './translationStore-
|
|
3
|
+
import { l as localizationStore, i as isValidSelector, g as getZCountryUrlParam, h as setZCountryUrlParam, j as currencyDisplay, k as currencyConvertAndFormat, m as currencyConvert, d as currencyFormat } from './localization-d7125e4e.js';
|
|
4
|
+
import { t as translate } from './translationStore-13502f49.js';
|
|
5
5
|
import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-c456b933.js';
|
|
6
6
|
import { c as classes } from './classes-0d95c529.js';
|
|
7
7
|
import { h as handleFetch, b as logError, l as log } from './handleFetch-99218189.js';
|