@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
|
@@ -211,13 +211,13 @@ const ZonosButton = class {
|
|
|
211
211
|
const borderStyle = getBorderRadius.getBorderRadius({
|
|
212
212
|
overrideBorderStyle: this.borderStyle,
|
|
213
213
|
});
|
|
214
|
-
return (index.h(index.Host, { key: '
|
|
214
|
+
return (index.h(index.Host, { key: 'd44e5db9b123906c2435285d23d0d05b6c15d8b3', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles.styles({
|
|
215
215
|
'--zonos--background-color': backgroundColor,
|
|
216
216
|
'--zonos--border-radius': borderStyle,
|
|
217
217
|
'--zonos--color': color,
|
|
218
218
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
219
219
|
'--zonos--font-weight': this.bold ? 'bold' : 'normal',
|
|
220
|
-
}) }, index.h("button", Object.assign({ key: '
|
|
220
|
+
}) }, index.h("button", Object.assign({ key: 'a937efb3d014fd8f5501fcde7c3c2f0cb33439aa' }, this.inheritedAttributes, { class: classes.classes([
|
|
221
221
|
this.hasIcon && 'has-icon',
|
|
222
222
|
this.hasContent && 'has-content',
|
|
223
223
|
this.noBackground && 'no-background',
|
|
@@ -232,7 +232,7 @@ const ZonosButton = class {
|
|
|
232
232
|
backgroundColor && variant === 'standard' && 'override-background',
|
|
233
233
|
]), disabled: disabled, style: {
|
|
234
234
|
justifyContent: this.justifyContent,
|
|
235
|
-
} }), this.loading && (index.h("div", { key: '
|
|
235
|
+
} }), this.loading && (index.h("div", { key: '09292867f621fd3e04313494809e59254a353403', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: '250912ac9cc2ba4d9d5db8fdc67fa6009d5ea7ac', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: '0695250725aff37526e6ea4f94456a368b873c59', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
|
|
236
236
|
}
|
|
237
237
|
static get delegatesFocus() { return true; }
|
|
238
238
|
get ele() { return index.getElement(this); }
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const translationStore = require('./translationStore-
|
|
8
|
-
const placeTestOrder = require('./placeTestOrder-
|
|
6
|
+
const cart = require('./cart-9a9ae4b9.js');
|
|
7
|
+
const translationStore = require('./translationStore-0c67178f.js');
|
|
8
|
+
const placeTestOrder = require('./placeTestOrder-0dfff170.js');
|
|
9
9
|
const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-577d0a77.js');
|
|
10
10
|
const classes = require('./classes-b7918f56.js');
|
|
11
11
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
12
|
-
const paypal = require('./paypal-
|
|
13
|
-
const localization = require('./localization-
|
|
12
|
+
const paypal = require('./paypal-9ee374a0.js');
|
|
13
|
+
const localization = require('./localization-0169b27d.js');
|
|
14
14
|
const handleFetch = require('./handleFetch-45f35cac.js');
|
|
15
15
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
16
16
|
const getBorderRadius = require('./getBorderRadius-1b5e33cf.js');
|
|
@@ -841,9 +841,6 @@ const ZonosCheckoutPayment = class {
|
|
|
841
841
|
if (!cart.stripeStore.stripeElements) {
|
|
842
842
|
return null;
|
|
843
843
|
}
|
|
844
|
-
if (!cart.stripeStore.clientSecret && !cart.cartStore.isStagingMode) {
|
|
845
|
-
return null;
|
|
846
|
-
}
|
|
847
844
|
// start validate on typing after error banner is shown, and hide it if the form is complete
|
|
848
845
|
if (this.showErrorBanner) {
|
|
849
846
|
this.showErrorBanner = !this.handleValidate();
|
|
@@ -1025,17 +1022,17 @@ const ZonosCheckoutProgressTabs = class {
|
|
|
1025
1022
|
color: labelSelectedColor,
|
|
1026
1023
|
})
|
|
1027
1024
|
: labelSelectedColor;
|
|
1028
|
-
return (index.h(index.Host, { key: '
|
|
1025
|
+
return (index.h(index.Host, { key: '1db73e8a63f5eef955430c64e6f86d941619b9f6', class: "zonos--elements", style: {
|
|
1029
1026
|
'--zonos--color': contrastLabelColor,
|
|
1030
1027
|
'--zonos--progress-percent': this.getTotalSuccessStep(),
|
|
1031
|
-
} }, index.h("div", { key: '
|
|
1028
|
+
} }, index.h("div", { key: 'a580a08d71465c78699d40f7d65a423366262d6e', class: "zonos--tab-wrapper" }, Object.values(cart.cartStore.tabItems).map((tab, index$1) => {
|
|
1032
1029
|
const isSelected = tab.value === selectedStep;
|
|
1033
1030
|
return (index.h("button", { "aria-label": `Tab ${tab.label}`, class: classes.classes([
|
|
1034
1031
|
'zonos--tab-item',
|
|
1035
1032
|
tab.value === selectedStep && 'selected',
|
|
1036
1033
|
tab.isDone && 'done',
|
|
1037
1034
|
]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => this.setTabSelected(tab.value) }, index.h("div", { class: "zonos--tab-index" }, index.h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index$1 + 1), index.h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), index.h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, translationStore.translate(tab.label))));
|
|
1038
|
-
})), index.h("div", { key: '
|
|
1035
|
+
})), index.h("div", { key: 'f3285aaaeefbb16c79b656576dc49c73483fedd8', class: "zonos--tab-progress" }, index.h("div", { key: '74ee5173069a4269c35724a9121d9c343bd13950', class: "zonos--progress-bar-fill" }))));
|
|
1039
1036
|
}
|
|
1040
1037
|
static get assetsDirs() { return ["assets"]; }
|
|
1041
1038
|
get ele() { return index.getElement(this); }
|
|
@@ -1571,11 +1568,11 @@ const ZonosRestState = class {
|
|
|
1571
1568
|
}
|
|
1572
1569
|
render() {
|
|
1573
1570
|
const imageUrl = this.getImageRestState();
|
|
1574
|
-
return (index.h(index.Host, { key: '
|
|
1571
|
+
return (index.h(index.Host, { key: '4dd1bf92f89b6433673643621d4d2e91c32dc9c0', class: classes.classes(['zonos--elements zonos--restState']), style: {
|
|
1575
1572
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
1576
|
-
} }, index.h("div", { key: '
|
|
1573
|
+
} }, index.h("div", { key: '1635b6b084c26f973405a863c898087f7805af4a', class: "zonos--restState-image" }, index.h("img", { key: '305262852c1bc4df2fae58e9d18fe9ef48108155', alt: this.restStateType, onError: () => {
|
|
1577
1574
|
this.isErrorImageLoad = true;
|
|
1578
|
-
}, src: imageUrl })), index.h("div", { key: '
|
|
1575
|
+
}, src: imageUrl })), index.h("div", { key: 'b25da09d4d56ab01b5bcb1d219337a94208e8272', class: "content" }, index.h("zonos-text", { key: '1d0bfb2cd2473df240fb6f54eb1329a7aa34009f', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '7dd2da6e10a7e07649534673f7a5b630e1e98a91', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: '1ccb01b392f0bca4687a3a1b0fe7a55e6fac69a2', class: "action" }, index.h("slot", { key: 'f8200baab65872d4c4c28e53c791f6fc406199e5' }))));
|
|
1579
1576
|
}
|
|
1580
1577
|
static get assetsDirs() { return ["assets"]; }
|
|
1581
1578
|
};
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const localization = require('./localization-
|
|
9
|
-
const translationStore = require('./translationStore-
|
|
6
|
+
const cart = require('./cart-9a9ae4b9.js');
|
|
7
|
+
const paypal = require('./paypal-9ee374a0.js');
|
|
8
|
+
const localization = require('./localization-0169b27d.js');
|
|
9
|
+
const translationStore = require('./translationStore-0c67178f.js');
|
|
10
10
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
11
11
|
const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-309fcebf.js');
|
|
12
12
|
const handleFetch = require('./handleFetch-45f35cac.js');
|
|
@@ -57,10 +57,10 @@ const ZonosCollapse = class {
|
|
|
57
57
|
// set overflow to hidden to prevent content from showing when collapsed
|
|
58
58
|
this.el.style.overflow = 'hidden';
|
|
59
59
|
}
|
|
60
|
-
return (index.h(index.Host, { key: '
|
|
60
|
+
return (index.h(index.Host, { key: 'c63b825021f8aaf17727e37072c3701e4a55b992', class: 'zonos--elements zonos--collapse', style: {
|
|
61
61
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
62
62
|
height: this.getElementHeight(),
|
|
63
|
-
} }, index.h("div", { key: '
|
|
63
|
+
} }, index.h("div", { key: 'bc51b1a1318b0934c752ae74dfeae8d5f43f1a63' }, index.h("iframe", { key: '0bb69f8aaa5c095bc90f2210fab3770491867754', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: '64fdc09e82d28f57fd081578ebd2a3523760c7c7' }))));
|
|
64
64
|
}
|
|
65
65
|
get el() { return index.getElement(this); }
|
|
66
66
|
};
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const cart = require('./cart-
|
|
6
|
+
const cart = require('./cart-9a9ae4b9.js');
|
|
7
7
|
const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-577d0a77.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
9
9
|
const classes = require('./classes-b7918f56.js');
|
|
10
10
|
const styles = require('./styles-d1e64fb9.js');
|
|
11
|
-
require('./localization-
|
|
11
|
+
require('./localization-0169b27d.js');
|
|
12
12
|
require('./handleFetch-45f35cac.js');
|
|
13
13
|
require('./VarianceTest-0cb1e118.js');
|
|
14
|
-
require('./translationStore-
|
|
14
|
+
require('./translationStore-0c67178f.js');
|
|
15
15
|
require('./isDarkColor-428965f4.js');
|
|
16
16
|
require('./getBorderRadius-1b5e33cf.js');
|
|
17
17
|
|
|
@@ -53,10 +53,10 @@ const HStack = class {
|
|
|
53
53
|
this.spacing = 24;
|
|
54
54
|
}
|
|
55
55
|
render() {
|
|
56
|
-
return (index.h(index.Host, { key: '
|
|
56
|
+
return (index.h(index.Host, { key: '92689fdc45c9e980d61f9b96c378ca52ed37a608', style: {
|
|
57
57
|
'--spacing': `${this.spacing}px`,
|
|
58
58
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
59
|
-
} }, index.h("slot", { key: '
|
|
59
|
+
} }, index.h("slot", { key: 'b94e0bcd372d0194ba2a86b570914fe33af427cd' })));
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
HStack.style = ZonosHStackStyle0;
|
|
@@ -79,7 +79,7 @@ const ZonosSkeleton = class {
|
|
|
79
79
|
this.skeletonHeight = '14px';
|
|
80
80
|
}
|
|
81
81
|
render() {
|
|
82
|
-
return (index.h(index.Host, { key: '
|
|
82
|
+
return (index.h(index.Host, { key: '4ffa2b8c03f0c8d3bd08521d950903cba9685109', class: classes.classes(['zonos--elements zonos--skeleton']), style: styles.styles({
|
|
83
83
|
'--zonos--skeleton-height': this.skeletonHeight,
|
|
84
84
|
'--zonos--skeleton-width': this.skeletonWidth,
|
|
85
85
|
}) }));
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const paypal = require('./paypal-
|
|
8
|
-
const localization = require('./localization-
|
|
9
|
-
const translationStore = require('./translationStore-
|
|
6
|
+
const cart = require('./cart-9a9ae4b9.js');
|
|
7
|
+
const paypal = require('./paypal-9ee374a0.js');
|
|
8
|
+
const localization = require('./localization-0169b27d.js');
|
|
9
|
+
const translationStore = require('./translationStore-0c67178f.js');
|
|
10
10
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
11
|
+
const handleFetch = require('./handleFetch-45f35cac.js');
|
|
11
12
|
const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
|
|
12
13
|
const getBorderRadius = require('./getBorderRadius-1b5e33cf.js');
|
|
13
|
-
const
|
|
14
|
-
const isCollectMobileTablet = require('./isCollectMobileTablet-7e57fd90.js');
|
|
14
|
+
const isCollectMobileTablet = require('./isCollectMobileTablet-7a9413e3.js');
|
|
15
15
|
const classes = require('./classes-b7918f56.js');
|
|
16
16
|
const ILanguage = require('./ILanguage-98b04442.js');
|
|
17
|
-
const placeTestOrder = require('./placeTestOrder-
|
|
17
|
+
const placeTestOrder = require('./placeTestOrder-0dfff170.js');
|
|
18
18
|
require('./isDarkColor-428965f4.js');
|
|
19
19
|
require('./VarianceTest-0cb1e118.js');
|
|
20
20
|
|
|
@@ -22,7 +22,7 @@ const RemoveIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" heigh
|
|
|
22
22
|
|
|
23
23
|
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>`;
|
|
24
24
|
|
|
25
|
-
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}";
|
|
25
|
+
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}";
|
|
26
26
|
const ZonosCollectFinishStyle0 = zonosCollectFinishCss;
|
|
27
27
|
|
|
28
28
|
/**
|
|
@@ -92,26 +92,9 @@ const ZonosCollectFinish = class {
|
|
|
92
92
|
handleFetch.log(`=== Polling order (${attempts} attemps)`, 'info');
|
|
93
93
|
if (
|
|
94
94
|
// Order found, in legacy checkout facade and still haven't found the legacy order number
|
|
95
|
-
order
|
|
96
|
-
attempts >= maxRetries) {
|
|
95
|
+
order) {
|
|
97
96
|
handleFetch.log('=== CollectOrder info found', 'info');
|
|
98
|
-
if (
|
|
99
|
-
// We pushed this one through without the legacy order number, so we should log this
|
|
100
|
-
void handleFetch.sendErrorLog({
|
|
101
|
-
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
|
|
102
|
-
errors: [
|
|
103
|
-
`Collect order found but legacy order number doesn't exist after ${maxRetries} attempts`,
|
|
104
|
-
],
|
|
105
|
-
metadata: {
|
|
106
|
-
allLogs: handleFetch.allLogs,
|
|
107
|
-
checkoutSessionId: localization.storageStore.checkoutSessionId || '',
|
|
108
|
-
orderId: order.id,
|
|
109
|
-
storeId: zonosStore.zonosStore.storeId,
|
|
110
|
-
},
|
|
111
|
-
});
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
else if (attempts > 10) {
|
|
97
|
+
if (attempts > 10) {
|
|
115
98
|
// Log out all the logs if we have tried more than 10 times
|
|
116
99
|
void handleFetch.sendErrorLog({
|
|
117
100
|
endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
|
|
@@ -249,6 +232,21 @@ const ZonosCollectFinish = class {
|
|
|
249
232
|
paypal.paypalStoreReset();
|
|
250
233
|
localization.storageStore.checkoutSessionId = null;
|
|
251
234
|
};
|
|
235
|
+
this.getReceiptUrl = ({ cartId }) => {
|
|
236
|
+
const hostUrl = new URL(`${window.location.origin}/receipt`);
|
|
237
|
+
hostUrl.searchParams.set('referenceId', cartId);
|
|
238
|
+
// is test mode
|
|
239
|
+
const isTestMode = handleFetch.getIsTestMode();
|
|
240
|
+
if (isTestMode) {
|
|
241
|
+
hostUrl.searchParams.set('zonosTestMode', '1');
|
|
242
|
+
}
|
|
243
|
+
// Carry over the zonosQaUrl if it exists
|
|
244
|
+
const zonosQaUrl = new URLSearchParams(window.location.search).get('zonosQaUrl');
|
|
245
|
+
if (zonosQaUrl) {
|
|
246
|
+
hostUrl.searchParams.set('zonosQaUrl', zonosQaUrl);
|
|
247
|
+
}
|
|
248
|
+
return hostUrl.toString();
|
|
249
|
+
};
|
|
252
250
|
}
|
|
253
251
|
componentDidLoad() {
|
|
254
252
|
if (this.overrideNotification) {
|
|
@@ -270,11 +268,14 @@ const ZonosCollectFinish = class {
|
|
|
270
268
|
}
|
|
271
269
|
}
|
|
272
270
|
render() {
|
|
273
|
-
|
|
271
|
+
const cartId = window.Zonos.cartId;
|
|
272
|
+
return (index.h(index.Host, { key: 'e145b7396302157ccb515c54f99e50faa8ba45e6', class: "zonos--checkout-finish zonos--elements", style: {
|
|
274
273
|
'--zonos--border-radius': getBorderRadius.getBorderRadius({
|
|
275
274
|
overrideBorderStyle: this.borderRadius,
|
|
276
275
|
}),
|
|
277
|
-
} }, !this.isLoading && (index.h("div", { key: '
|
|
276
|
+
} }, !this.isLoading && (index.h("div", { key: 'b9df4788f27c935ba7fc47e7c930cd162c8fbebe', class: "zonos--finish-details" }, index.h("div", { key: 'a510c995880c8698dc98390d0504b70333551c86', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '8f84f87bf2365b85acffefe16e8b10cd9227a6e6', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (index.h("zonos-badge", { key: '0e3f3f71cae6262d6394ad2c5a6d656509b484d5', badgeColor: "gray" }, this.confirmationId)), index.h("zonos-text", { key: 'c769f2ada1e6b421e373aeb4393560a21d6fcffc', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.order && cartId && (index.h("div", { key: '9972858fadd4d2d9c4f00e54921002ea04a5cc51', class: "zonos--button-container" }, index.h("zonos-button", { key: 'fe931a552fc1c43b29a1966736379c3c1d0536f6', onClick: () => {
|
|
277
|
+
window.open(this.getReceiptUrl({ cartId }), '_blank');
|
|
278
|
+
}, size: "lg", variant: "primary" }, translationStore.translate('View receipt')))))))));
|
|
278
279
|
}
|
|
279
280
|
static get assetsDirs() { return ["assets"]; }
|
|
280
281
|
};
|
|
@@ -335,15 +336,15 @@ const ZonosCollectFooter = class {
|
|
|
335
336
|
const languageLabel = (_a = ILanguage.languages.find(x => x.code === localization.localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
|
|
336
337
|
// reverse color when on desktop. With the coversheet backdrop, the color should be white
|
|
337
338
|
const colorDesktop = 'gray-1000';
|
|
338
|
-
return (index.h(index.Host, { key: '
|
|
339
|
+
return (index.h(index.Host, { key: '9509e7325ad0153d2f5c9ba3b5689fdb3ad6313e', class: classes.classes([
|
|
339
340
|
'zonos--elements',
|
|
340
341
|
this.isMobile && 'mobile',
|
|
341
342
|
this.isTablet && 'tablet',
|
|
342
|
-
]) }, index.h("div", { key: '
|
|
343
|
+
]) }, index.h("div", { key: '250716798bf30901678b16e1ac159810f1d7a6ad', class: "zonos--collect-footer" }, index.h("div", { key: 'ab61803d4b5348b8978e7dfcb16a5733cca5dd29', class: "zonos--collect-locale-wrapper" }, index.h("zonos-button", { key: '6c5dcd25d5ef73b2098269d840e291343d30cb81', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), index.h("div", { key: 'd1a367cd19b36f1a0f49ccfe78e750218b50a03e', class: classes.classes([
|
|
343
344
|
'zonos--collect-language-dialog',
|
|
344
345
|
this.showLanguageDialog &&
|
|
345
346
|
'zonos--collect-language-dialog-open',
|
|
346
|
-
]) }, index.h("zonos-language-select", { key: '
|
|
347
|
+
]) }, index.h("zonos-language-select", { key: '02f446b8f4e3dc875f78d5ac2f0b9aa6dd071f1c', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: 'b713a78cbd3d3f131c6c473bb1d979899d40b13b', class: "zonos--collect-footer-icon-wrapper" }, index.h("div", { key: '97eab5909d556f13fa2acc0628d583d49f13d3a2', class: "zonos--collect-footer-logo" }, index.h("zonos-text", { key: 'a6488e084f153305eed8d6f65341d7ab00297adb', textColor: colorDesktop }, "Powered by"), index.h("a", { key: 'c63a6e1064dbd733add1cc3b1df1456484e2f103', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: '081cae2c34e58478a8c20f0f9a9f20dc0b47c9b7', autoHeight: true, content: ZonosWordmark, size: 42 }))), index.h("div", { key: '0862a11838e62f425d38066230b01f445999d751', class: "dot" }), index.h("a", { key: 'b13f3af014b5d970e45f88cbb0ef669a0f9aa2ac', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: 'a675218a36da83427c2ce517a15b1ed5ea5910d6', textColor: colorDesktop }, "Privacy policy"))))));
|
|
347
348
|
}
|
|
348
349
|
get el() { return index.getElement(this); }
|
|
349
350
|
static get watchers() { return {
|
|
@@ -647,7 +648,7 @@ const renderFallback = ({ content, isLoading, skeletonHeight, skeletonWidth, })
|
|
|
647
648
|
return content;
|
|
648
649
|
};
|
|
649
650
|
|
|
650
|
-
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}";
|
|
651
|
+
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}";
|
|
651
652
|
const ZonosCollectReviewStyle0 = zonosCollectReviewCss;
|
|
652
653
|
|
|
653
654
|
const ZonosCollectReview = class {
|
|
@@ -684,13 +685,13 @@ const ZonosCollectReview = class {
|
|
|
684
685
|
}
|
|
685
686
|
render() {
|
|
686
687
|
const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
|
|
687
|
-
return (index.h(index.Host, { key: '
|
|
688
|
+
return (index.h(index.Host, { key: '6432c5dd5afd628e33ba26385ecfecb470f1757e', class: classes.classes([
|
|
688
689
|
'zonos--collect-review zonos--elements',
|
|
689
690
|
this.isMobile && 'mobile',
|
|
690
691
|
this.isTablet && 'tablet',
|
|
691
|
-
]) }, index.h("div", { key: '
|
|
692
|
+
]) }, index.h("div", { key: 'e4d113ff1268c36119e1f80164b6cfd702c67f75', class: "zonos--title" }, index.h("zonos-text", { key: 'aad9ad9b526ac65d97a88df516e8e7b34fc3d2b1', textColor: titleTextColor, type: 'semiBoldLabel' }, translationStore.translate('Pay [organizationName]', {
|
|
692
693
|
organizationName: zonosStore.zonosStore.organizationName,
|
|
693
|
-
}))), index.h("div", { key: '
|
|
694
|
+
}))), index.h("div", { key: 'fcdaebc734a270742fbe21ff932550994e522ea6', class: "zonos--total-pay" }, renderFallback({
|
|
694
695
|
content: (index.h("zonos-text", { type: 'secondaryPageHeader' }, placeTestOrder.renderCheckoutCurrency({
|
|
695
696
|
amount: isCollectMobileTablet.collectStore.amountDutyTaxFeeTotal || 0,
|
|
696
697
|
isForeign: false,
|
|
@@ -713,8 +714,8 @@ const ZonosCollectSubtotal = class {
|
|
|
713
714
|
this.storeUnsubscribeList = [];
|
|
714
715
|
this.subtotals = {};
|
|
715
716
|
this.initSubtotalData = () => {
|
|
716
|
-
var _a
|
|
717
|
-
const cartLandedCostSubtotal = (
|
|
717
|
+
var _a;
|
|
718
|
+
const cartLandedCostSubtotal = (_a = cart.cartStore.checkoutSession) === null || _a === void 0 ? void 0 : _a.subtotals;
|
|
718
719
|
if (!cartLandedCostSubtotal) {
|
|
719
720
|
return;
|
|
720
721
|
}
|
|
@@ -756,7 +757,7 @@ const ZonosCollectSubtotal = class {
|
|
|
756
757
|
}
|
|
757
758
|
render() {
|
|
758
759
|
this.initSubtotalData();
|
|
759
|
-
return (index.h(index.Host, { key: '
|
|
760
|
+
return (index.h(index.Host, { key: 'ab687a6e1ec67f6609081036a75e9905ff34c6b1', class: "zonos--collect-subtotal zonos--elements" }, index.h("table", { key: '303b8c49983e9f7aea4d31400fed53d858eb078d', class: "zonos--collect-table" }, !!this.subtotals[translationStore.translate('Duties')] && (index.h("tr", { key: 'a60fa4f1f1afacef0144b86c054f44572576f7af', class: "zonos--row zonos--collect-duty" }, index.h("td", { key: 'aeaf798e26bbd482196d7208eb05657a1d15dad8', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: '835d817709ae3b7e2d888d618e0856fb2e637e4d', type: "semiBoldLabel" }, translationStore.translate('Duties'))), index.h("td", { key: '5bb47a115ea61fa897a3f48bbd10c5f78af3703e', class: "zonos--column" }), index.h("td", { key: '32632c4beb855ca687c615f5e6c63c82e2e05c80', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
760
761
|
content: (index.h("zonos-text", { type: "label" }, placeTestOrder.renderCheckoutCurrency({
|
|
761
762
|
amount: this.subtotals[translationStore.translate('Duties')] || 0,
|
|
762
763
|
isForeign: true,
|
|
@@ -764,7 +765,7 @@ const ZonosCollectSubtotal = class {
|
|
|
764
765
|
isLoading: isCollectMobileTablet.collectStore.isFetchingShippingInfo,
|
|
765
766
|
skeletonHeight: '14px',
|
|
766
767
|
skeletonWidth: '150px',
|
|
767
|
-
})))), !!this.subtotals[translationStore.translate('Taxes')] && (index.h("tr", { key: '
|
|
768
|
+
})))), !!this.subtotals[translationStore.translate('Taxes')] && (index.h("tr", { key: '055bb237dafaea8de18b127641c8fd7e1ece563b', class: "zonos--row zonos--collect-tax" }, index.h("td", { key: '1e73b140c2c9090ccfb91ce4efca483e8fb56e9e', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: 'a3375ecd77460c78c7c5f59bf7b9b8612cd53e41', type: "semiBoldLabel" }, translationStore.translate('Taxes'))), index.h("td", { key: '20685646be29873967c2f335c775046068248ad3', class: "zonos--column" }), index.h("td", { key: '2e2c6af2c1a7840df03351178ddf3107fcc36494', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
768
769
|
content: (index.h("zonos-text", { type: "label" }, placeTestOrder.renderCheckoutCurrency({
|
|
769
770
|
amount: this.subtotals[translationStore.translate('Taxes')] || 0,
|
|
770
771
|
isForeign: true,
|
|
@@ -772,7 +773,7 @@ const ZonosCollectSubtotal = class {
|
|
|
772
773
|
isLoading: isCollectMobileTablet.collectStore.isFetchingShippingInfo,
|
|
773
774
|
skeletonHeight: '14px',
|
|
774
775
|
skeletonWidth: '150px',
|
|
775
|
-
})))), !!this.subtotals[translationStore.translate('Fees')] && (index.h("tr", { key: '
|
|
776
|
+
})))), !!this.subtotals[translationStore.translate('Fees')] && (index.h("tr", { key: '8157aba5c6a23680b0bc681adc127747f01a2973', class: "zonos--row zonos--collect-fee" }, index.h("td", { key: '8266654f9e65003f297222bb935013a8b9b3b430', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: '8399000a5f61e4737764b68b89799b409dce6034', type: "semiBoldLabel" }, translationStore.translate('Fees'))), index.h("td", { key: '2a9763f2401967ea1bdfa2c17514d18e2a4e0db6', class: "zonos--column" }), index.h("td", { key: 'ac2f275312c2ba69888e6e57dde8b4b451839b86', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
776
777
|
content: (index.h("zonos-text", { type: "label" }, placeTestOrder.renderCheckoutCurrency({
|
|
777
778
|
amount: this.subtotals[translationStore.translate('Fees')] || 0,
|
|
778
779
|
isForeign: true,
|
|
@@ -780,7 +781,7 @@ const ZonosCollectSubtotal = class {
|
|
|
780
781
|
isLoading: isCollectMobileTablet.collectStore.isFetchingShippingInfo,
|
|
781
782
|
skeletonHeight: '14px',
|
|
782
783
|
skeletonWidth: '150px',
|
|
783
|
-
})))), index.h("tr", { key: '
|
|
784
|
+
})))), index.h("tr", { key: 'a293d1b9342251f7326c1ac68e2bab83eae2ed80', class: "zonos--row zonos--collect-spacing" }, index.h("td", { key: 'c136b1b807f32dc21c131326d70500d2e2c64efe', class: "zonos--column", colSpan: 3 })), index.h("tr", { key: '59747101f1a9ef7c8fad60e90ea5b8c31015438c', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, index.h("td", { key: '96d201ba6f3e571adac265127229c94cdc96be2a', class: "zonos--column" }), index.h("td", { key: 'f2f4cb751e35fc0ebaa803659f26a2314d8bf639', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: 'b4f89ea1e523af8a5aead4ef007a6f0dc7e7f441', type: "label" }, translationStore.translate('Subtotal'))), index.h("td", { key: '28b6aea6363b2bef1d072ad77f409ae77976305c', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
784
785
|
content: (index.h("zonos-text", { type: "label" }, placeTestOrder.renderCheckoutCurrency({
|
|
785
786
|
amount: isCollectMobileTablet.collectStore.amountDutyTaxFeeTotal || 0,
|
|
786
787
|
isForeign: true,
|
|
@@ -788,7 +789,7 @@ const ZonosCollectSubtotal = class {
|
|
|
788
789
|
isLoading: isCollectMobileTablet.collectStore.isFetchingShippingInfo,
|
|
789
790
|
skeletonHeight: '14px',
|
|
790
791
|
skeletonWidth: '150px',
|
|
791
|
-
}))), index.h("tr", { key: '
|
|
792
|
+
}))), index.h("tr", { key: 'f0072cdd200e8483421265af39a90fb655fb2ef0', class: "zonos--row zonos--collect-total" }, index.h("td", { key: '88a007048d33c919a6c5f87cf7cd071f83e7448b', class: "zonos--column" }), index.h("td", { key: '24bba9e9b81ff443dd5ca4832c3169e3605a93b8', class: "zonos--column zonos--collect-subtotal-title" }, index.h("zonos-text", { key: '594d4e96bec3a2153f6622c6842970ebee5bb463', type: "semiBoldLabel" }, translationStore.translate('Customs fees total'))), index.h("td", { key: 'b3ffd6dcae747dd2ed68ae16fb60d9655f7669dc', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
|
|
792
793
|
content: (index.h("zonos-text", { type: "semiBoldLabel" }, placeTestOrder.renderCheckoutCurrency({
|
|
793
794
|
amount: isCollectMobileTablet.collectStore.amountDutyTaxFeeTotal || 0,
|
|
794
795
|
isForeign: true,
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const isCollectMobileTablet = require('./isCollectMobileTablet-
|
|
8
|
-
const paypal = require('./paypal-
|
|
9
|
-
const localization = require('./localization-
|
|
10
|
-
const translationStore = require('./translationStore-
|
|
6
|
+
const cart = require('./cart-9a9ae4b9.js');
|
|
7
|
+
const isCollectMobileTablet = require('./isCollectMobileTablet-7a9413e3.js');
|
|
8
|
+
const paypal = require('./paypal-9ee374a0.js');
|
|
9
|
+
const localization = require('./localization-0169b27d.js');
|
|
10
|
+
const translationStore = require('./translationStore-0c67178f.js');
|
|
11
11
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
12
12
|
const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-309fcebf.js');
|
|
13
13
|
const handleFetch = require('./handleFetch-45f35cac.js');
|
|
@@ -31,7 +31,7 @@ const ZonosComponent = class {
|
|
|
31
31
|
return format(this.first, this.middle, this.last);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return index.h("div", { key: '
|
|
34
|
+
return index.h("div", { key: 'ce1a6a656f02ba26460066561b08f449e9e042bc' }, "Hello, World! I'm ", this.getText());
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
ZonosComponent.style = ZonosComponentStyle0;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const translationStore = require('./translationStore-
|
|
6
|
+
const translationStore = require('./translationStore-0c67178f.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
const getBorderRadius = require('./getBorderRadius-1b5e33cf.js');
|
|
@@ -129,13 +129,13 @@ const ZonosConfirmDialog = class {
|
|
|
129
129
|
const borderStyle = getBorderRadius.getBorderRadius();
|
|
130
130
|
// Get theme for the update dialog, inherit from the theme, no from this component theme
|
|
131
131
|
const theme = zonosStore.getZonosStoreTheme(zonosStore.zonosStore.appearance.theme);
|
|
132
|
-
return (index.h(index.Host, { key: '
|
|
132
|
+
return (index.h(index.Host, { key: 'c9eabf497f7e23ae201e6310e5ecb9f0d7068294', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
|
|
133
133
|
'--zonos--border-radius': borderStyle,
|
|
134
134
|
'--zonos--dialog-width': `${this.dialogWidth}px`,
|
|
135
135
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
136
|
-
} }, index.h("div", { key: '
|
|
136
|
+
} }, index.h("div", { key: 'a9a525bfe764bf93e8725d9a00c069455de72ed6', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: '072ab68e501618b640ffce6c6e8e96096966e09d', class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: '3ab415f1cbc2bc36af01d67b279e732480de8685', class: "zonos--confirm-dialog", onBlur: () => {
|
|
137
137
|
this.focusDialog();
|
|
138
|
-
} }, index.h("div", { key: '
|
|
138
|
+
} }, index.h("div", { key: 'a1d99558318371c0e5ee95a9578a6de31a6fc27a', class: "wrapper" }, index.h("div", { key: '3fd7fbc90c430a3e1496e5b0347947c1929aa6ed', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: '5584080e0f0a5a756b0cc2ac761e0e18c864afcd', class: "content" }, index.h("div", { key: '4a2070c137636193d05ded090fea26f05aada887', class: "title" }, index.h("zonos-text", { key: 'ab4c773f4af1271f5615a28f6a6193460330f16b', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: '05a445dc37e754c99ea6727ae2bf861d42d5c2c4', class: "subtitle" }, index.h("zonos-text", { key: 'a7563f9fd3b405653487542e1b7a1f6aeab01893', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: '812e9e43fdb6d10ed62da8138e344b0243ca5c34', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: '07d7dc9d1a4bca9cb1ee420a4fed82e9fc513bd9', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translationStore.translate('Cancel'))), index.h("zonos-button", { key: 'b607a5244dc39869b6d40cd361d9dee4686858a7', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
|
|
139
139
|
}
|
|
140
140
|
static get assetsDirs() { return ["assets"]; }
|
|
141
141
|
get el() { return index.getElement(this); }
|
|
@@ -159,7 +159,7 @@ const ZonosLoadingOverlay = class {
|
|
|
159
159
|
this.size = 40;
|
|
160
160
|
}
|
|
161
161
|
render() {
|
|
162
|
-
return (index.h(index.Host, { key: '
|
|
162
|
+
return (index.h(index.Host, { key: '1eb7313add29219032d8301abaf55ace726a3309', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: 'df9960e78817a9a98006fed7e87c5441f220f496', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: '32795fe2c626add5d2f53032ea9b5b8d528bef38', size: this.size, spinnerColor: this.spinnerColor }))));
|
|
163
163
|
}
|
|
164
164
|
};
|
|
165
165
|
ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const cart = require('./cart-
|
|
7
|
-
const localization = require('./localization-
|
|
6
|
+
const cart = require('./cart-9a9ae4b9.js');
|
|
7
|
+
const localization = require('./localization-0169b27d.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
9
9
|
const getGenericSettingsOverride = require('./getGenericSettingsOverride-c0ca32b9.js');
|
|
10
10
|
const handleFetch = require('./handleFetch-45f35cac.js');
|
|
11
|
-
require('./translationStore-
|
|
11
|
+
require('./translationStore-0c67178f.js');
|
|
12
12
|
require('./isDarkColor-428965f4.js');
|
|
13
13
|
require('./getBorderRadius-1b5e33cf.js');
|
|
14
14
|
require('./VarianceTest-0cb1e118.js');
|
|
@@ -690,7 +690,7 @@ const ZonosController = class {
|
|
|
690
690
|
zonosStore.zonosStore.organizationName = organizationName;
|
|
691
691
|
}
|
|
692
692
|
render() {
|
|
693
|
-
return index.h(index.Host, { key: '
|
|
693
|
+
return index.h(index.Host, { key: 'ca4c02bf0aa73d19ea58cdf6a76c8424276b69cd', class: "zonos--elements" });
|
|
694
694
|
}
|
|
695
695
|
};
|
|
696
696
|
ZonosController.style = ZonosControllerStyle0;
|
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const localization = require('./localization-
|
|
6
|
+
const localization = require('./localization-0169b27d.js');
|
|
7
7
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
8
8
|
const classes = require('./classes-b7918f56.js');
|
|
9
9
|
require('./handleFetch-45f35cac.js');
|
|
10
10
|
require('./VarianceTest-0cb1e118.js');
|
|
11
|
-
require('./translationStore-
|
|
11
|
+
require('./translationStore-0c67178f.js');
|
|
12
12
|
|
|
13
13
|
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}";
|
|
14
14
|
const ZonosCountryFlagStyle0 = zonosCountryFlagCss;
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1c710d00.js');
|
|
6
|
-
const localization = require('./localization-
|
|
7
|
-
const translationStore = require('./translationStore-
|
|
6
|
+
const localization = require('./localization-0169b27d.js');
|
|
7
|
+
const translationStore = require('./translationStore-0c67178f.js');
|
|
8
8
|
const zonosStore = require('./zonosStore-f8ee56aa.js');
|
|
9
9
|
const formatStringWithLinks = require('./formatStringWithLinks-52341fc7.js');
|
|
10
10
|
const isDarkColor = require('./isDarkColor-428965f4.js');
|
|
@@ -1859,13 +1859,13 @@ const ZonosCountrySelect = class {
|
|
|
1859
1859
|
? fuseObject.map(country => country.item)
|
|
1860
1860
|
: countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
1861
1861
|
const isEmpty = !filteredCountries.length;
|
|
1862
|
-
return (index.h(index.Host, { key: '
|
|
1862
|
+
return (index.h(index.Host, { key: '87e346925730bb4ce7a5a0da35bbffe9fa209e79', class: "zonos--elements", style: {
|
|
1863
1863
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
1864
|
-
} }, index.h("div", { key: '
|
|
1864
|
+
} }, index.h("div", { key: '557543582175b50bcd5e9e0e9362ecc85f0b0ec0', class: "zonos--country-select" }, index.h("zonos-v-stack", { key: '3e03b4624abfc1b2239560a62dd33659c30c7d26', class: "zonos--country-select-header", spacing: 8 }, index.h("zonos-select-dialog-header", { key: '9664de32cbfb119eb0b3658b71f31039f4d0e064', handleOnClose: () => this.handleOnClose(), label: translationStore.translate('Select a country') }, index.h("input", { key: 'c5f28d334194471298bacc218f36dd7d56f57c1e', autoComplete: "off", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translationStore.translate('Search countries'), ref: el => {
|
|
1865
1865
|
if (el) {
|
|
1866
1866
|
this.inputRef = el;
|
|
1867
1867
|
}
|
|
1868
|
-
}, type: "text", value: this.inputValue }))), index.h("div", { key: '
|
|
1868
|
+
}, type: "text", value: this.inputValue }))), index.h("div", { key: '9f623511c7a1576961e527071c10672f3b800359', class: "zonos--country-select-content" }, isEmpty && (index.h("zonos-text", { key: '3c37b29f38ce48ea953df2faf0ab9e349a8e538c', class: "no-country", textColor: "gray-800" }, translationStore.translate('No countries found'))), index.h("zonos-virtual-scroll", { key: 'ebab93c3379e93fcbde6cd634174f981c06bff42', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index$1 => {
|
|
1869
1869
|
const country = filteredCountries[index$1];
|
|
1870
1870
|
if (!country) {
|
|
1871
1871
|
return null;
|
|
@@ -1894,9 +1894,9 @@ const ZonosCustomMessage = class {
|
|
|
1894
1894
|
}
|
|
1895
1895
|
render() {
|
|
1896
1896
|
const messageWithLinks = formatStringWithLinks.formatStringWithLinks(this.message);
|
|
1897
|
-
return (index.h(index.Host, { key: '
|
|
1897
|
+
return (index.h(index.Host, { key: '77dcb275cd99e2c1618a58e35d7b6aba07cff289', class: "zonos--elements", style: {
|
|
1898
1898
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
1899
|
-
} }, this.message && (index.h("zonos-card", { key: '
|
|
1899
|
+
} }, this.message && (index.h("zonos-card", { key: '61f205819558dd9eb5c9181b8510da6b5304f3e5', class: "zonos--custom-message", spacing: "12px" }, index.h("div", { key: 'adc9891709eade8a8f8baf7cc3a840a0340dc834', class: "zonos--flex-message" }, index.h("zonos-icon", { key: 'f94f9d8e2717c36a12a5bd4bd3b1eb98b4c1d6a8', "aria-label": "Custom message icon", content: this.icon }), index.h("zonos-text", { key: 'e1defbb16081a5873f98f6f251e6acf57ea5ec25', innerHTML: messageWithLinks }))))));
|
|
1900
1900
|
}
|
|
1901
1901
|
};
|
|
1902
1902
|
ZonosCustomMessage.style = ZonosCustomMessageStyle0;
|
|
@@ -1953,9 +1953,9 @@ const ZonosHelloDialogFooter = class {
|
|
|
1953
1953
|
const language = (_b = ILanguage.languages.find(x => x.code === localization.localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
|
|
1954
1954
|
// Only use gray-0 (white) when the background color is dark (apply inverted color if the element is using dark theme variable)
|
|
1955
1955
|
const mainColor = primaryColor && isDarkColor.isDarkColor(primaryColor) ? 'white' : 'black';
|
|
1956
|
-
return (index.h(index.Host, { key: '
|
|
1956
|
+
return (index.h(index.Host, { key: 'ff7ca3834fbd8febed2ad016add7832c84b3d067', class: "zonos--elements" }, index.h("div", { key: 'f3c28cb5afe06a98789e61ed233317402eb7deca', class: "zonos--hello-dialog-footer", style: {
|
|
1957
1957
|
'--zonos--primary-color': primaryColor,
|
|
1958
|
-
} }, index.h("a", { key: '
|
|
1958
|
+
} }, index.h("a", { key: 'e229fcdcc64734e9ed762f5324c7c35ae88a8e17', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: '7eb45e7359e7c5d411801d29f06d7c700633c7f3', "aria-label": "Zonos Logo", autoHeight: true, content: mainColor === 'black' ? ZonosIconLight : ZonosIconDark, iconColor: mainColor, size: 108 })), index.h("div", { key: '9dba0c118f8d7cac5c9aaae36d8270f2a8cb8360', class: "zonos--hello-locale-wrapper" }, index.h("zonos-button", { key: 'd40f08f0e1437290ed4fbbd6ad4dd6e61878804c', buttonColor: mainColor, icon: index.h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, language), index.h("zonos-button", { key: '6312ac59bc58142aee85702b3f4538949255cbb9', buttonColor: mainColor, icon: index.h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localization.localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, localization.localizationStore.selectedCountryCode)))));
|
|
1959
1959
|
}
|
|
1960
1960
|
get ele() { return index.getElement(this); }
|
|
1961
1961
|
};
|
|
@@ -2064,10 +2064,10 @@ const ZonosVirtualScroll = class {
|
|
|
2064
2064
|
render() {
|
|
2065
2065
|
const { width: containerWidth } = this.containerDimensions;
|
|
2066
2066
|
const visibleItems = this.getVisibleItems();
|
|
2067
|
-
return (index.h(index.Host, { key: '
|
|
2067
|
+
return (index.h(index.Host, { key: '931ec0dfcbb239d4e3f6f127acfffd22b4b9316f', class: classes.classes(['zonos--virtual-scroll']) }, index.h("div", { key: '65b5823473b15304317e7a3ec51efd807b3215fa', class: classes.classes(['scroller']), style: {
|
|
2068
2068
|
height: `${this.totalHeight}px`,
|
|
2069
2069
|
width: `${containerWidth}px`,
|
|
2070
|
-
} }), index.h("div", { key: '
|
|
2070
|
+
} }), index.h("div", { key: 'ac8fae50951a3a03ff76ebcef744d739c03bbad8', class: classes.classes(['item-container']), style: {
|
|
2071
2071
|
height: `${this.totalHeight}px`,
|
|
2072
2072
|
} }, visibleItems.map(({ element }) => element))));
|
|
2073
2073
|
}
|