@zonos/elements 1.3.281 → 1.3.282
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-3313cb0c.js → cart-dc31b242.js} +2 -1
- package/dist/cjs/{collect-2659c5af.js → collect-463ab3d7.js} +2 -2
- package/dist/cjs/getMissingRequiredShippingFields-7cd21100.js +50 -0
- package/dist/cjs/{hasInclusivePrice-d132daaa.js → hasInclusivePrice-d14b9d71.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-26f52c07.js → invoice-8c995041.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-6189080f.js → localization-491121ad.js} +240 -0
- package/dist/cjs/{paypal-f6a256b5.js → paypal-2a4c374c.js} +2 -2
- package/dist/cjs/{placeTestOrder-695f2b32.js → placeTestOrder-a940a2e9.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-fe56094f.js → renderCheckoutCurrency-ab39875a.js} +2 -2
- package/dist/cjs/{zonos-address-display_8.cjs.entry.js → zonos-address-completion-dialog_7.cjs.entry.js} +141 -149
- package/dist/cjs/zonos-address-display_2.cjs.entry.js +150 -0
- package/dist/cjs/zonos-address_4.cjs.entry.js +73 -12
- package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +3 -3
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +89 -20
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
- 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 +19 -19
- package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -14
- package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.css +105 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.js +341 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +5 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +3 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +52 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
- package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-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/stripe.js +1 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
- package/dist/collection/components/store/translationStore/strings.base.js +12 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
- package/dist/collection/components/store/translationStore/strings.french.js +12 -0
- package/dist/collection/components/store/translationStore/strings.german.js +12 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +11 -6
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/applyAddressCompletion.js +23 -0
- package/dist/collection/components/utils/checkout/buildAddressContacts.js +57 -0
- package/dist/collection/components/utils/checkout/getMissingRequiredShippingFields.js +44 -0
- package/dist/esm/{cart-c66ec17e.js → cart-5282f6c1.js} +2 -2
- package/dist/esm/{collect-915fd59d.js → collect-fdbab973.js} +2 -2
- package/dist/esm/getMissingRequiredShippingFields-bdeecbff.js +47 -0
- package/dist/esm/{hasInclusivePrice-6fd935f3.js → hasInclusivePrice-161e203f.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-2a17c93c.js → invoice-cf6ad79e.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-6d36209f.js → localization-0953a048.js} +240 -0
- package/dist/esm/{paypal-cae1d404.js → paypal-7c82eac4.js} +2 -2
- package/dist/esm/{placeTestOrder-955269d2.js → placeTestOrder-6a746207.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-951386a5.js → renderCheckoutCurrency-44f897a1.js} +2 -2
- package/dist/esm/{zonos-address-display_8.entry.js → zonos-address-completion-dialog_7.entry.js} +142 -149
- package/dist/esm/zonos-address-display_2.entry.js +145 -0
- package/dist/esm/zonos-address_4.entry.js +73 -12
- package/dist/esm/zonos-airwallex-payment.entry.js +3 -3
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card_5.entry.js +9 -9
- package/dist/esm/zonos-cart-items_12.entry.js +90 -21
- package/dist/esm/zonos-checkbox_2.entry.js +5 -5
- package/dist/esm/zonos-checkout.entry.js +3 -3
- 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 +19 -19
- package/dist/esm/zonos-collect.entry.js +4 -4
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +3 -3
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +10 -10
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +6 -6
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
- package/dist/esm/zonos-invoice-finish_5.entry.js +14 -14
- package/dist/esm/zonos-invoice.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-policy-consent_2.entry.js +3 -3
- package/dist/esm/zonos-stripe-input.entry.js +4 -4
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/{cart-c66ec17e.js → cart-5282f6c1.js} +1 -1
- package/dist/esm-es5/{collect-915fd59d.js → collect-fdbab973.js} +1 -1
- package/dist/esm-es5/getMissingRequiredShippingFields-bdeecbff.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-6fd935f3.js → hasInclusivePrice-161e203f.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-2a17c93c.js → invoice-cf6ad79e.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-0953a048.js +1 -0
- package/dist/esm-es5/{paypal-cae1d404.js → paypal-7c82eac4.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-955269d2.js → placeTestOrder-6a746207.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-951386a5.js → renderCheckoutCurrency-44f897a1.js} +1 -1
- package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -0
- package/dist/esm-es5/zonos-address-display_2.entry.js +1 -0
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
- package/dist/esm-es5/zonos-collect.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.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 +123 -0
- package/dist/scripts/index.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.d.ts +75 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +16 -0
- package/dist/types/components/store/checkout/stripe.d.ts +4 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
- package/dist/types/components/utils/checkout/applyAddressCompletion.d.ts +25 -0
- package/dist/types/components/utils/checkout/buildAddressContacts.d.ts +21 -0
- package/dist/types/components/utils/checkout/getMissingRequiredShippingFields.d.ts +35 -0
- package/dist/types/components.d.ts +97 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-0287f9cd.system.js +1 -0
- package/dist/zonos-elements/{p-5aee5de5.system.entry.js → p-05cb0a0d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-03fda4a8.entry.js → p-0fb4e032.entry.js} +1 -1
- package/dist/zonos-elements/{p-727387ed.entry.js → p-10584546.entry.js} +1 -1
- package/dist/zonos-elements/p-193fc2da.entry.js +1 -0
- package/dist/zonos-elements/p-1977f4b5.js +1 -0
- package/dist/zonos-elements/p-1cf5e2ce.system.entry.js +1 -0
- package/dist/zonos-elements/p-1cf76dd3.entry.js +1 -0
- package/dist/zonos-elements/p-1d31b966.system.js +1 -0
- package/dist/zonos-elements/{p-0ad6a92b.system.entry.js → p-21489ff1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-734d646b.entry.js → p-21f7d57b.entry.js} +1 -1
- package/dist/zonos-elements/p-2394b186.system.js +1 -0
- package/dist/zonos-elements/{p-edf613ea.entry.js → p-23eee868.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5f67807.entry.js → p-26bf0c31.entry.js} +1 -1
- package/dist/zonos-elements/{p-ddf68916.system.js → p-28ee0860.system.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-6df6cb8a.entry.js → p-30cfc9f4.entry.js} +1 -1
- package/dist/zonos-elements/{p-5677d31f.entry.js → p-323279b8.entry.js} +1 -1
- package/dist/zonos-elements/{p-8c54aaec.entry.js → p-32b53999.entry.js} +1 -1
- package/dist/zonos-elements/{p-c15476a1.system.entry.js → p-333f6018.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3642dd99.entry.js +1 -0
- package/dist/zonos-elements/p-3c62acbd.js +1 -0
- package/dist/zonos-elements/{p-4441c451.entry.js → p-4417475f.entry.js} +1 -1
- package/dist/zonos-elements/p-543b25f9.entry.js +1 -0
- package/dist/zonos-elements/{p-1992fd91.entry.js → p-55c5977b.entry.js} +1 -1
- package/dist/zonos-elements/{p-b406bb39.entry.js → p-56e9a29e.entry.js} +1 -1
- package/dist/zonos-elements/{p-5e1aad7d.entry.js → p-59518657.entry.js} +1 -1
- package/dist/zonos-elements/p-5953208b.js +1 -0
- package/dist/zonos-elements/p-5987dea1.js +1 -0
- package/dist/zonos-elements/{p-a44591f6.system.entry.js → p-5a37683b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-36b311f9.system.entry.js → p-5b11bbca.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a34269b1.system.entry.js → p-5d6b018c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-63b462dd.system.entry.js +1 -0
- package/dist/zonos-elements/p-646e6b47.system.entry.js +1 -0
- package/dist/zonos-elements/{p-060c521b.system.entry.js → p-68631285.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-683ec0bf.entry.js → p-6f874ed9.entry.js} +1 -1
- package/dist/zonos-elements/p-71fc8a22.js +1 -0
- package/dist/zonos-elements/{p-a6773627.entry.js → p-76e36d6d.entry.js} +1 -1
- package/dist/zonos-elements/{p-a3d3ce5d.system.entry.js → p-781b3345.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-156891c5.js → p-7ab15d20.js} +1 -1
- package/dist/zonos-elements/{p-3246d120.js → p-7c70e0c7.js} +1 -1
- package/dist/zonos-elements/p-8418aa07.entry.js +1 -0
- package/dist/zonos-elements/{p-99e8743e.system.entry.js → p-8fa3a8f8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5a61c301.system.entry.js → p-8fb15a6b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-30067eed.entry.js → p-95042e71.entry.js} +1 -1
- package/dist/zonos-elements/p-987b5d8f.js +1 -0
- package/dist/zonos-elements/{p-39695a8b.system.js → p-a4eddf6c.system.js} +1 -1
- package/dist/zonos-elements/{p-3e6bbf0b.system.entry.js → p-aa1f3060.system.entry.js} +1 -1
- package/dist/zonos-elements/p-aa37f436.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f314217a.system.js → p-ab61ef19.system.js} +1 -1
- package/dist/zonos-elements/{p-4c3f5fda.system.entry.js → p-b91a8f31.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-15097876.system.entry.js → p-b93013f7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-746bdebe.entry.js → p-c121b2b8.entry.js} +1 -1
- package/dist/zonos-elements/{p-54a8d4cf.system.entry.js → p-c12ca8fe.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c5bfe522.system.js +1 -0
- package/dist/zonos-elements/{p-732e7373.system.entry.js → p-c634546a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a5f8dc19.js → p-c8bc4ede.js} +1 -1
- package/dist/zonos-elements/{p-f156e2e5.system.entry.js → p-c8df5eee.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e0ec0aa3.system.entry.js → p-c9e44c77.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-179caaea.system.entry.js → p-ca9231a0.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3e058b4e.entry.js → p-cb376f03.entry.js} +1 -1
- package/dist/zonos-elements/{p-717cbe90.system.js → p-cd3f7fd7.system.js} +1 -1
- package/dist/zonos-elements/{p-ee3c7b11.system.entry.js → p-d06486ba.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-e7a45f6c.entry.js → p-d0767f88.entry.js} +1 -1
- package/dist/zonos-elements/{p-8308f7d6.system.entry.js → p-d2cb99ee.system.entry.js} +1 -1
- package/dist/zonos-elements/p-ddd0e703.system.entry.js +1 -0
- package/dist/zonos-elements/{p-09da3c76.entry.js → p-dfd83cff.entry.js} +1 -1
- package/dist/zonos-elements/{p-4efd7178.entry.js → p-e0cbc7c7.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f6fe80a.system.entry.js → p-e101b0de.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-dd6da3de.entry.js → p-e3d0d8ff.entry.js} +1 -1
- package/dist/zonos-elements/{p-8005e102.system.js → p-e57f862d.system.js} +1 -1
- package/dist/zonos-elements/{p-38879af9.entry.js → p-e6e3a303.entry.js} +1 -1
- package/dist/zonos-elements/{p-5d4201d5.entry.js → p-ef2c264c.entry.js} +1 -1
- package/dist/zonos-elements/{p-40b96482.system.entry.js → p-f1298203.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-86d6961c.system.entry.js → p-f1aa60fd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-429ab545.system.entry.js → p-f1dbeb85.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2825431d.entry.js → p-f2431e47.entry.js} +1 -1
- package/dist/zonos-elements/{p-29c1703c.system.entry.js → p-f2511b86.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-08e78d79.entry.js → p-fa80a973.entry.js} +1 -1
- package/dist/zonos-elements/p-fb8dc23f.system.js +1 -0
- package/dist/zonos-elements/{p-f59514e9.entry.js → p-fc45b3a5.entry.js} +1 -1
- package/dist/zonos-elements/{p-a23d3b3f.system.entry.js → p-fdd7ec44.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/localization-6d36209f.js +0 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +0 -1
- package/dist/zonos-elements/p-0ac1aa87.system.js +0 -1
- package/dist/zonos-elements/p-1577a739.js +0 -1
- package/dist/zonos-elements/p-1ee5f392.entry.js +0 -1
- package/dist/zonos-elements/p-26ca8ce7.js +0 -1
- package/dist/zonos-elements/p-56fc3210.js +0 -1
- package/dist/zonos-elements/p-6df034d6.entry.js +0 -1
- package/dist/zonos-elements/p-71cb16da.system.entry.js +0 -1
- package/dist/zonos-elements/p-8051403a.js +0 -1
- package/dist/zonos-elements/p-9448d960.js +0 -1
- package/dist/zonos-elements/p-a6535773.system.entry.js +0 -1
- package/dist/zonos-elements/p-ae30e6c0.system.entry.js +0 -1
- package/dist/zonos-elements/p-bf942ef0.system.js +0 -1
- package/dist/zonos-elements/p-c345d1f5.system.js +0 -1
- package/dist/zonos-elements/p-d4337686.entry.js +0 -1
- package/dist/zonos-elements/p-df8b8827.entry.js +0 -1
- package/dist/zonos-elements/p-e210edd9.system.js +0 -1
- package/dist/zonos-elements/p-f3e1a6a7.system.entry.js +0 -1
|
@@ -77,7 +77,7 @@ const ZonosStripeInput = class {
|
|
|
77
77
|
? zonosStore.zonosStore.appearance.theme === 'DARK'
|
|
78
78
|
: primaryColor && isDarkColor.isDarkColor(primaryColor);
|
|
79
79
|
const fontSize = zonosStore.zonosStore.appearance.fontSizeInputValue || 16;
|
|
80
|
-
return (index.h(index.Host, { key: '
|
|
80
|
+
return (index.h(index.Host, { key: 'e7559e04aafad07699bd6bebfd4cf191d0cd1b4f', class: classes.classes([
|
|
81
81
|
'zonos--input zonos--elements',
|
|
82
82
|
isDark && 'dark',
|
|
83
83
|
(this.isError || !!this.error) && 'has-error',
|
|
@@ -86,10 +86,10 @@ const ZonosStripeInput = class {
|
|
|
86
86
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
87
87
|
'--zonos--font-size': `${fontSize}px`,
|
|
88
88
|
'--zonos--primary-color': secondaryColor,
|
|
89
|
-
} }, index.h("div", { key: '
|
|
89
|
+
} }, index.h("div", { key: 'e7bce60978e071136b5a82bc4db8a0cf681273fc', class: classes.classes([
|
|
90
90
|
'zonos--label-wrapper',
|
|
91
91
|
this.isDisabled && 'disabled',
|
|
92
|
-
]) }, index.h("input", Object.assign({ key: '
|
|
92
|
+
]) }, index.h("input", Object.assign({ key: '6bfb929ad025d1a28860002561e8ae2abbc38e40' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes.classes([
|
|
93
93
|
'zonos--floated-input',
|
|
94
94
|
!!this.inputLabel && 'has-label',
|
|
95
95
|
this.internalValue && 'has-content',
|
|
@@ -99,7 +99,7 @@ const ZonosStripeInput = class {
|
|
|
99
99
|
this.inputChange.emit(input.value);
|
|
100
100
|
this.el.inputValue = input.value;
|
|
101
101
|
this.el.dispatchEvent(new Event('change'));
|
|
102
|
-
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), index.h("div", { key: '
|
|
102
|
+
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), index.h("div", { key: '0904c241ee73055982c7cd0ee5f9ee8559e6fa8b', class: "zonos--floated-label" }, index.h("label", { key: '581ac49d26e58bf0e61d1c21d13232dbc01557ee', htmlFor: this.inputId }, this.inputLabel))), this.error && (index.h("zonos-text", { key: '5cd20b5de0552c5a37dc22decdf9d54330d75028', textColor: "red-600", type: "caption" }, this.error))));
|
|
103
103
|
}
|
|
104
104
|
get el() { return index.getElement(this); }
|
|
105
105
|
static get watchers() { return {
|
|
@@ -22,10 +22,10 @@ const ZonosTooltip = class {
|
|
|
22
22
|
this.showTooltip = false;
|
|
23
23
|
}
|
|
24
24
|
render() {
|
|
25
|
-
return (index.h(index.Host, { key: '
|
|
25
|
+
return (index.h(index.Host, { key: '4ecaaf78a0ee54dccd5efd6ec60d201a8946f9e9', class: "zonos--elements" }, index.h("div", { key: '5dc14bbe9d21712a29fe62cb6ade2a1e1a1c6385', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, index.h("slot", { key: '2eb58e776a1d925eff1fc8e48ce337b915dbb515' }), index.h("div", { key: '9975d37625398918d5a9ddf2f645a4c0a496ed2a', class: classes.classes([
|
|
26
26
|
this.showTooltip && 'zonos--show-tooltip',
|
|
27
27
|
'zonos--tooltip-content',
|
|
28
|
-
]) }, index.h("zonos-text", { key: '
|
|
28
|
+
]) }, index.h("zonos-text", { key: '9f4c3070b5cc96793d18950decb2f77e608b8708', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), index.h("zonos-text", { key: '2273a609eb5fd33a661c88f35e7fc6777ea75ccf', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
ZonosTooltip.style = ZonosTooltipStyle0;
|
|
@@ -20,9 +20,9 @@ const VStack = class {
|
|
|
20
20
|
this.spacing = 24;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return (index.h(index.Host, { key: '
|
|
23
|
+
return (index.h(index.Host, { key: '55d608e49a9d0a95c23902c68f555d3d17e34675', style: {
|
|
24
24
|
'--zonos--font-family': zonosStore.zonosStoreFontFamily(),
|
|
25
|
-
} }, index.h("div", { key: '
|
|
25
|
+
} }, index.h("div", { key: '529887c92438dd3793d2c4737ff2ae52abe560cb', class: classes.classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, index.h("slot", { key: '2a3c3c193aa74b9829dca73bddfdbd3dbed4c6c6' }))));
|
|
26
26
|
}
|
|
27
27
|
};
|
|
28
28
|
VStack.style = ZonosVStackStyle0;
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"components/common/zonos-stripe-select/zonos-stripe-select.js",
|
|
9
9
|
"components/airwallex/zonos-airwallex-payment/zonos-airwallex-payment.js",
|
|
10
10
|
"components/checkout/zonos-checkout/zonos-checkout.js",
|
|
11
|
+
"components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.js",
|
|
11
12
|
"components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js",
|
|
12
13
|
"components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js",
|
|
13
14
|
"components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js",
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
3
|
+
display: block;
|
|
4
|
+
white-space: normal;
|
|
5
|
+
}
|
|
6
|
+
:host * {
|
|
7
|
+
font-family: var(--zonos--font-family, Inter), Inter;
|
|
8
|
+
}
|
|
9
|
+
:host img {
|
|
10
|
+
max-width: 100%;
|
|
11
|
+
}
|
|
12
|
+
:host dl,
|
|
13
|
+
:host dd,
|
|
14
|
+
:host h1,
|
|
15
|
+
:host h2,
|
|
16
|
+
:host h3,
|
|
17
|
+
:host h4,
|
|
18
|
+
:host h5,
|
|
19
|
+
:host h6,
|
|
20
|
+
:host hr,
|
|
21
|
+
:host figure,
|
|
22
|
+
:host p,
|
|
23
|
+
:host pre {
|
|
24
|
+
margin: 0;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
/* All sets of variable are here */
|
|
28
|
+
/* smooth font rendering */
|
|
29
|
+
:host {
|
|
30
|
+
-moz-osx-font-smoothing: grayscale;
|
|
31
|
+
-webkit-font-smoothing: antialiased;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
:host .zonos--body {
|
|
35
|
+
padding: 0 24px;
|
|
36
|
+
position: relative;
|
|
37
|
+
}
|
|
38
|
+
:host .zonos--dialog-header {
|
|
39
|
+
margin-bottom: 24px;
|
|
40
|
+
position: sticky;
|
|
41
|
+
padding-top: 24px;
|
|
42
|
+
top: 0;
|
|
43
|
+
z-index: 11;
|
|
44
|
+
background: var(--zonos-elements-gray-0);
|
|
45
|
+
}
|
|
46
|
+
:host .zonos--dialog-title {
|
|
47
|
+
display: flex;
|
|
48
|
+
justify-content: space-between;
|
|
49
|
+
align-items: center;
|
|
50
|
+
margin-bottom: 12px;
|
|
51
|
+
}
|
|
52
|
+
:host .zonos--group {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex-direction: column;
|
|
55
|
+
padding-bottom: 5px;
|
|
56
|
+
gap: 20px;
|
|
57
|
+
overscroll-behavior: auto;
|
|
58
|
+
}
|
|
59
|
+
:host .zonos--selected-address {
|
|
60
|
+
display: flex;
|
|
61
|
+
flex-direction: column;
|
|
62
|
+
gap: 8px;
|
|
63
|
+
}
|
|
64
|
+
:host .zonos--completion-fields {
|
|
65
|
+
display: flex;
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
gap: 16px;
|
|
68
|
+
}
|
|
69
|
+
:host .zonos--completion-name-row {
|
|
70
|
+
display: flex;
|
|
71
|
+
gap: 8px;
|
|
72
|
+
}
|
|
73
|
+
:host .zonos--completion-name-row zonos-input {
|
|
74
|
+
flex: 1;
|
|
75
|
+
}
|
|
76
|
+
:host .zonos--group-btn {
|
|
77
|
+
position: sticky;
|
|
78
|
+
padding: 24px 0;
|
|
79
|
+
bottom: 0;
|
|
80
|
+
display: flex;
|
|
81
|
+
justify-content: end;
|
|
82
|
+
background: var(--zonos-elements-gray-0);
|
|
83
|
+
z-index: 11;
|
|
84
|
+
}
|
|
85
|
+
:host .zonos--group-btn .zonos--button-wrapper {
|
|
86
|
+
display: flex;
|
|
87
|
+
gap: 8px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
:host(.mobile) .zonos--completion-name-row {
|
|
91
|
+
flex-direction: column;
|
|
92
|
+
}
|
|
93
|
+
:host(.mobile) .zonos--button-wrapper {
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
width: 100%;
|
|
96
|
+
}
|
|
97
|
+
:host(.mobile) .zonos--button-wrapper zonos-button {
|
|
98
|
+
width: 100%;
|
|
99
|
+
}
|
|
100
|
+
:host(.mobile) .zonos--button-wrapper .zonos--cancel-btn {
|
|
101
|
+
order: 2;
|
|
102
|
+
}
|
|
103
|
+
:host(.mobile) .zonos--button-wrapper .zonos--submit-btn {
|
|
104
|
+
order: 1;
|
|
105
|
+
}
|
|
@@ -0,0 +1,341 @@
|
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { translate } from "../../../store/translationStore";
|
|
3
|
+
import { zonosStore } from "../../../store/zonosStore";
|
|
4
|
+
import { MIN_POSTAL_CODE_LENGTH } from "../../../utils/checkout/getMissingRequiredShippingFields";
|
|
5
|
+
import { classes } from "../../../utils/classes";
|
|
6
|
+
import { extractName } from "../../../utils/extractName";
|
|
7
|
+
// eslint-disable-next-line no-relative-import-paths/no-relative-import-paths
|
|
8
|
+
import RemoveIcon from "./../assets/RemoveIcon.svg";
|
|
9
|
+
export class ZonosAddressCompletionDialog {
|
|
10
|
+
constructor() {
|
|
11
|
+
/**
|
|
12
|
+
* Whether or not the continue button is loading
|
|
13
|
+
*/
|
|
14
|
+
this.continueLoading = false;
|
|
15
|
+
/**
|
|
16
|
+
* Whether or not the dialog is open
|
|
17
|
+
*/
|
|
18
|
+
this.dialogOpen = false;
|
|
19
|
+
/**
|
|
20
|
+
* Whether or not the dialog is rendered in mobile mode
|
|
21
|
+
*/
|
|
22
|
+
this.isMobile = false;
|
|
23
|
+
/**
|
|
24
|
+
* The Zonos-required fields still missing from the selected address
|
|
25
|
+
*/
|
|
26
|
+
this.missingFields = [];
|
|
27
|
+
/**
|
|
28
|
+
* Local values for the captured fields, keyed by the missing field key
|
|
29
|
+
*/
|
|
30
|
+
this.values = {};
|
|
31
|
+
/**
|
|
32
|
+
* Whether to show validation errors (after a submit attempt with empty fields)
|
|
33
|
+
*/
|
|
34
|
+
this.showError = false;
|
|
35
|
+
this.isFieldMissing = (key) => this.missingFields.some(field => field.key === key);
|
|
36
|
+
/**
|
|
37
|
+
* A captured field is valid when it has a value. Postal code additionally enforces the same
|
|
38
|
+
* minimum length as the landed-cost readiness / detection check, so the dialog can't emit a
|
|
39
|
+
* too-short postal code that would still be considered "missing" downstream.
|
|
40
|
+
*/
|
|
41
|
+
this.isFieldValid = (key) => {
|
|
42
|
+
var _a, _b, _c;
|
|
43
|
+
if (key === 'postal_code') {
|
|
44
|
+
return (((_b = (_a = this.values.postal_code) === null || _a === void 0 ? void 0 : _a.trim().length) !== null && _b !== void 0 ? _b : 0) >= MIN_POSTAL_CODE_LENGTH);
|
|
45
|
+
}
|
|
46
|
+
return !!((_c = this.values[key]) === null || _c === void 0 ? void 0 : _c.trim());
|
|
47
|
+
};
|
|
48
|
+
this.getFieldError = (key) => this.showError && !this.isFieldValid(key);
|
|
49
|
+
this.updateValue = (key, value) => {
|
|
50
|
+
this.values = Object.assign(Object.assign({}, this.values), { [key]: value });
|
|
51
|
+
// Once the customer starts fixing the fields, re-evaluate whether errors remain
|
|
52
|
+
if (this.showError) {
|
|
53
|
+
this.showError = !this.isComplete();
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
this.isComplete = () => this.missingFields.every(field => {
|
|
57
|
+
// A missing last name also requires a first name (both are edited together).
|
|
58
|
+
if (field.key === 'lastName') {
|
|
59
|
+
return this.isFieldValid('firstName') && this.isFieldValid('lastName');
|
|
60
|
+
}
|
|
61
|
+
return this.isFieldValid(field.key);
|
|
62
|
+
});
|
|
63
|
+
this.submitHandler = () => {
|
|
64
|
+
if (!this.isComplete()) {
|
|
65
|
+
this.showError = true;
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
this.completionSubmit.emit(this.values);
|
|
69
|
+
};
|
|
70
|
+
this.renderInput = ({ key, label, }) => (h("zonos-input", { class: `zonos--completion-input zonos--completion-${key}`, inputLabel: label, inputValue: this.values[key] || '', isError: this.getFieldError(key), onInputChange: (event) => this.updateValue(key, event.detail) }));
|
|
71
|
+
this.renderField = (key, label) => {
|
|
72
|
+
if (!this.isFieldMissing(key)) {
|
|
73
|
+
return null;
|
|
74
|
+
}
|
|
75
|
+
return this.renderInput({ key, label });
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* When the last name is missing, render both first and last name inputs so the customer can
|
|
79
|
+
* correct the full name together (Link's single name input often yields only a first name).
|
|
80
|
+
*/
|
|
81
|
+
this.renderNameFields = () => {
|
|
82
|
+
if (!this.isFieldMissing('lastName')) {
|
|
83
|
+
return null;
|
|
84
|
+
}
|
|
85
|
+
return (h("div", { class: "zonos--completion-name-row" }, this.renderInput({
|
|
86
|
+
key: 'firstName',
|
|
87
|
+
label: translate('First name'),
|
|
88
|
+
}), this.renderInput({
|
|
89
|
+
key: 'lastName',
|
|
90
|
+
label: translate('Last name'),
|
|
91
|
+
})));
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* The dialog stays mounted, so clear any previously-entered values whenever it opens.
|
|
96
|
+
* Without this, values typed for one address could be reapplied to a different address
|
|
97
|
+
* the next time the dialog opens.
|
|
98
|
+
*/
|
|
99
|
+
// Only reset on open, not on `shippingAddress`: the parent rebuilds that prop object on
|
|
100
|
+
// every render, and watching it would wipe in-progress input while the dialog is open.
|
|
101
|
+
async watchDialogOpen(isOpen) {
|
|
102
|
+
var _a;
|
|
103
|
+
if (isOpen) {
|
|
104
|
+
// Wait for shippingAddress prop to be updated before resetting the values
|
|
105
|
+
await new Promise(resolve => setTimeout(resolve, 100));
|
|
106
|
+
// When the last name is missing we also let the customer edit the first name, so prefill
|
|
107
|
+
// it from the current (often first-name-only) address value.
|
|
108
|
+
const { firstName } = extractName({ name: (_a = this.shippingAddress) === null || _a === void 0 ? void 0 : _a.name });
|
|
109
|
+
this.values = this.isFieldMissing('lastName') ? { firstName } : {};
|
|
110
|
+
this.showError = false;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
render() {
|
|
114
|
+
const submitBtnColor = this.submitBtnColor || zonosStore.appearance.colorSecondary;
|
|
115
|
+
// dialog background is white, so a white button needs an outline to stay visible
|
|
116
|
+
const submitBtnType = submitBtnColor === '#ffffff'
|
|
117
|
+
? 'outline'
|
|
118
|
+
: this.submitBtnType || 'standard';
|
|
119
|
+
return (h(Host, { key: '9a89376022ebd8f5793882fb13a3502deca001f8', class: classes([
|
|
120
|
+
'zonos--address-completion-dialog zonos--elements',
|
|
121
|
+
this.isMobile && 'mobile',
|
|
122
|
+
]) }, h("zonos-dialog", { key: '00ff3912a7bf8d021441440f0de2825b49f7b78e', isLoading: false, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeCompletionDialog.emit(), open: this.dialogOpen, width: "568px" }, h("div", { key: '1ba1cd333bd1f362a77f1f114ac50c309ed5ccd6', class: "zonos--body" }, h("div", { key: 'ccf9f54ff4b26e5443ff5c8276e5c5d36aac332b', class: "zonos--dialog-header" }, h("div", { key: '01e073aa559c4040a6599aefb3bf8cb967928929', class: "zonos--dialog-title" }, h("zonos-text", { key: '8472a72f6274646bb87d150c82722f93c861ae72', type: "title" }, translate('Complete your shipping address')), h("zonos-button", { key: 'e9a6c2cbc3d64bf87e94850c1126119687f75e7d', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close checkout dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.closeCompletionDialog.emit(), title: "Close checkout dialog" })), h("zonos-text", { key: 'c9ff785b746810f0c266071ee9a3f433ad645a2b' }, translate('This saved address is missing information required to ship internationally. Please add the details below.'))), h("div", { key: '86e2b0da7dbcd1370b80fc8c53e8a7de4c11ed74', class: "zonos--group" }, h("div", { key: '1542bb7f0b9df16f5ce36d38dc9408a1b3e836a7', class: "zonos--selected-address" }, h("zonos-text", { key: '2572e3e44a9c81f6694e4939de39951ec659c8fa', class: "zonos--selected-label", type: "semiBoldLabel" }, translate('Selected address')), h("zonos-address-display", { key: '8781622b3d057cfbdba59e13d5fabf76f3a7a7dd', addressType: "shipping", currentAddress: this.shippingAddress })), h("div", { key: 'ac3a5f6566c2179045a784b661b7e82c7b371a3f', class: "zonos--completion-fields" }, this.renderNameFields(), this.renderField('state', translate('State/Province')), this.renderField('postal_code', translate('Postal code')))), h("div", { key: '1007d7f6c671fbd94dd3027332d2d7ac1edeef6e', class: "zonos--group-btn" }, h("div", { key: '22fe2c8d03d7b3c680eea2b4afebf1868b5b6c0b', class: "zonos--button-wrapper" }, h("zonos-button", { key: 'dbcf1aa175992bff762ecc36108bf94090b7df0e', class: "zonos--cancel-btn", onClick: () => this.closeCompletionDialog.emit(), variant: "subtle" }, translate('Cancel')), h("zonos-button", { key: '63b0f966565e86ea9bac640b2fa690287c94b11f', backgroundColor: this.submitBtnColor, class: "zonos--submit-btn", loading: this.continueLoading, onClick: () => this.submitHandler(), size: "sm", variant: submitBtnType }, translate('Save and continue'))))))));
|
|
123
|
+
}
|
|
124
|
+
static get is() { return "zonos-address-completion-dialog"; }
|
|
125
|
+
static get encapsulation() { return "shadow"; }
|
|
126
|
+
static get originalStyleUrls() {
|
|
127
|
+
return {
|
|
128
|
+
"$": ["zonos-address-completion-dialog.scss"]
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
static get styleUrls() {
|
|
132
|
+
return {
|
|
133
|
+
"$": ["zonos-address-completion-dialog.css"]
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
static get properties() {
|
|
137
|
+
return {
|
|
138
|
+
"continueLoading": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"mutable": false,
|
|
141
|
+
"complexType": {
|
|
142
|
+
"original": "boolean",
|
|
143
|
+
"resolved": "boolean",
|
|
144
|
+
"references": {}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": false,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": "Whether or not the continue button is loading"
|
|
151
|
+
},
|
|
152
|
+
"getter": false,
|
|
153
|
+
"setter": false,
|
|
154
|
+
"attribute": "continue-loading",
|
|
155
|
+
"reflect": false,
|
|
156
|
+
"defaultValue": "false"
|
|
157
|
+
},
|
|
158
|
+
"dialogOpen": {
|
|
159
|
+
"type": "boolean",
|
|
160
|
+
"mutable": false,
|
|
161
|
+
"complexType": {
|
|
162
|
+
"original": "boolean",
|
|
163
|
+
"resolved": "boolean",
|
|
164
|
+
"references": {}
|
|
165
|
+
},
|
|
166
|
+
"required": false,
|
|
167
|
+
"optional": false,
|
|
168
|
+
"docs": {
|
|
169
|
+
"tags": [],
|
|
170
|
+
"text": "Whether or not the dialog is open"
|
|
171
|
+
},
|
|
172
|
+
"getter": false,
|
|
173
|
+
"setter": false,
|
|
174
|
+
"attribute": "dialog-open",
|
|
175
|
+
"reflect": false,
|
|
176
|
+
"defaultValue": "false"
|
|
177
|
+
},
|
|
178
|
+
"isMobile": {
|
|
179
|
+
"type": "boolean",
|
|
180
|
+
"mutable": false,
|
|
181
|
+
"complexType": {
|
|
182
|
+
"original": "boolean",
|
|
183
|
+
"resolved": "boolean",
|
|
184
|
+
"references": {}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": "Whether or not the dialog is rendered in mobile mode"
|
|
191
|
+
},
|
|
192
|
+
"getter": false,
|
|
193
|
+
"setter": false,
|
|
194
|
+
"attribute": "is-mobile",
|
|
195
|
+
"reflect": false,
|
|
196
|
+
"defaultValue": "false"
|
|
197
|
+
},
|
|
198
|
+
"missingFields": {
|
|
199
|
+
"type": "unknown",
|
|
200
|
+
"mutable": false,
|
|
201
|
+
"complexType": {
|
|
202
|
+
"original": "MissingShippingField[]",
|
|
203
|
+
"resolved": "MissingShippingField[]",
|
|
204
|
+
"references": {
|
|
205
|
+
"MissingShippingField": {
|
|
206
|
+
"location": "import",
|
|
207
|
+
"path": "src/components/utils/checkout/getMissingRequiredShippingFields",
|
|
208
|
+
"id": "src/components/utils/checkout/getMissingRequiredShippingFields.ts::MissingShippingField"
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
},
|
|
212
|
+
"required": false,
|
|
213
|
+
"optional": false,
|
|
214
|
+
"docs": {
|
|
215
|
+
"tags": [],
|
|
216
|
+
"text": "The Zonos-required fields still missing from the selected address"
|
|
217
|
+
},
|
|
218
|
+
"getter": false,
|
|
219
|
+
"setter": false,
|
|
220
|
+
"defaultValue": "[]"
|
|
221
|
+
},
|
|
222
|
+
"shippingAddress": {
|
|
223
|
+
"type": "unknown",
|
|
224
|
+
"mutable": false,
|
|
225
|
+
"complexType": {
|
|
226
|
+
"original": "EnteredInfo",
|
|
227
|
+
"resolved": "{ city: string; country: CountryCode; email: string; line1: string; line2: string; name: string; phone: string; postal_code: string; state: string; }",
|
|
228
|
+
"references": {
|
|
229
|
+
"EnteredInfo": {
|
|
230
|
+
"location": "import",
|
|
231
|
+
"path": "src/types/checkout/TranslatedText",
|
|
232
|
+
"id": "src/types/checkout/TranslatedText.ts::EnteredInfo"
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
"required": true,
|
|
237
|
+
"optional": false,
|
|
238
|
+
"docs": {
|
|
239
|
+
"tags": [],
|
|
240
|
+
"text": "The shipping address selected from Stripe, shown read-only for context"
|
|
241
|
+
},
|
|
242
|
+
"getter": false,
|
|
243
|
+
"setter": false
|
|
244
|
+
},
|
|
245
|
+
"submitBtnColor": {
|
|
246
|
+
"type": "string",
|
|
247
|
+
"mutable": false,
|
|
248
|
+
"complexType": {
|
|
249
|
+
"original": "string",
|
|
250
|
+
"resolved": "string | undefined",
|
|
251
|
+
"references": {}
|
|
252
|
+
},
|
|
253
|
+
"required": false,
|
|
254
|
+
"optional": true,
|
|
255
|
+
"docs": {
|
|
256
|
+
"tags": [],
|
|
257
|
+
"text": "Button color of the submit button"
|
|
258
|
+
},
|
|
259
|
+
"getter": false,
|
|
260
|
+
"setter": false,
|
|
261
|
+
"attribute": "submit-btn-color",
|
|
262
|
+
"reflect": false
|
|
263
|
+
},
|
|
264
|
+
"submitBtnType": {
|
|
265
|
+
"type": "string",
|
|
266
|
+
"mutable": false,
|
|
267
|
+
"complexType": {
|
|
268
|
+
"original": "HTMLZonosButtonElement['variant']",
|
|
269
|
+
"resolved": "\"danger\" | \"outline\" | \"primary\" | \"standard\" | \"subtle\" | \"success\" | \"warning\" | undefined",
|
|
270
|
+
"references": {
|
|
271
|
+
"HTMLZonosButtonElement": {
|
|
272
|
+
"location": "global",
|
|
273
|
+
"id": "global::HTMLZonosButtonElement"
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"required": false,
|
|
278
|
+
"optional": true,
|
|
279
|
+
"docs": {
|
|
280
|
+
"tags": [],
|
|
281
|
+
"text": "Button type of the submit button"
|
|
282
|
+
},
|
|
283
|
+
"getter": false,
|
|
284
|
+
"setter": false,
|
|
285
|
+
"attribute": "submit-btn-type",
|
|
286
|
+
"reflect": false
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
static get states() {
|
|
291
|
+
return {
|
|
292
|
+
"values": {},
|
|
293
|
+
"showError": {}
|
|
294
|
+
};
|
|
295
|
+
}
|
|
296
|
+
static get events() {
|
|
297
|
+
return [{
|
|
298
|
+
"method": "closeCompletionDialog",
|
|
299
|
+
"name": "closeCompletionDialog",
|
|
300
|
+
"bubbles": true,
|
|
301
|
+
"cancelable": true,
|
|
302
|
+
"composed": true,
|
|
303
|
+
"docs": {
|
|
304
|
+
"tags": [],
|
|
305
|
+
"text": "Close dialog button click"
|
|
306
|
+
},
|
|
307
|
+
"complexType": {
|
|
308
|
+
"original": "void",
|
|
309
|
+
"resolved": "void",
|
|
310
|
+
"references": {}
|
|
311
|
+
}
|
|
312
|
+
}, {
|
|
313
|
+
"method": "completionSubmit",
|
|
314
|
+
"name": "completionSubmit",
|
|
315
|
+
"bubbles": true,
|
|
316
|
+
"cancelable": true,
|
|
317
|
+
"composed": true,
|
|
318
|
+
"docs": {
|
|
319
|
+
"tags": [],
|
|
320
|
+
"text": "Emitted with the captured values when the customer completes the missing fields"
|
|
321
|
+
},
|
|
322
|
+
"complexType": {
|
|
323
|
+
"original": "AddressCompletionSubmit",
|
|
324
|
+
"resolved": "{ firstName?: string | undefined; lastName?: string | undefined; postal_code?: string | undefined; state?: string | undefined; }",
|
|
325
|
+
"references": {
|
|
326
|
+
"AddressCompletionSubmit": {
|
|
327
|
+
"location": "import",
|
|
328
|
+
"path": "src/components/utils/checkout/applyAddressCompletion",
|
|
329
|
+
"id": "src/components/utils/checkout/applyAddressCompletion.ts::AddressCompletionSubmit"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}];
|
|
334
|
+
}
|
|
335
|
+
static get watchers() {
|
|
336
|
+
return [{
|
|
337
|
+
"propName": "dialogOpen",
|
|
338
|
+
"methodName": "watchDialogOpen"
|
|
339
|
+
}];
|
|
340
|
+
}
|
|
341
|
+
}
|
|
@@ -27,15 +27,15 @@ export class ZonosAddressForm {
|
|
|
27
27
|
const { firstName, lastName } = extractName({
|
|
28
28
|
name,
|
|
29
29
|
});
|
|
30
|
-
return (h(Host, { key: '
|
|
30
|
+
return (h(Host, { key: '44edb799473e427b08e17d6d20f08a028a3cc688', class: "zonos--address-form zonos--elements" }, h("div", { key: '99c2d5b58464bebd7bb3e5c2a4ac3aa04d80b47f', class: "zonos--title" }, h("zonos-text", { key: '5a86048c7d768b795db1416182e2b22458924601', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
|
|
31
31
|
? translate('Shipping')
|
|
32
|
-
: translate('Billing'))), h("div", { key: '
|
|
32
|
+
: translate('Billing'))), h("div", { key: 'a907058d970cb6674b403f79c0946e36a0e61f69', class: "zonos--address-group" }, h("div", { key: 'fad2f71614c6963015f95e74e297c58a4adee95b', class: "zonos--contact" }, h("zonos-text", { key: '0c661050b1b95da56af1046fac39c7fa6de18685', type: "label" }, translate('Contact')), h("zonos-input", { key: '3e35a5f9d4bca373ef9403da0de53ea895aca61f', class: "zonos--form-email", inputLabel: translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), h("div", { key: '093cdcc771b4ade381a392a1023d9d037d4e3e35', class: "zonos--name zonos--address-row" }, h("zonos-input", { key: 'e9d957551070a855179b78da655beaf3b4e731e2', class: "zonos--form-first-name", inputLabel: translate('First name'), inputValue: firstName, isError: isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
|
|
33
33
|
key: 'name',
|
|
34
34
|
value: `${e.detail} ${lastName}`,
|
|
35
|
-
}) }), h("zonos-input", { key: '
|
|
35
|
+
}) }), h("zonos-input", { key: '0b86805e872607d367446f5e6ef074974f9840c2', class: "zonos--form-last-name", inputLabel: translate('Last name'), inputValue: lastName, isError: isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
|
|
36
36
|
key: 'name',
|
|
37
37
|
value: `${firstName} ${e.detail}`,
|
|
38
|
-
}) }))), h("div", { key: '
|
|
38
|
+
}) }))), h("div", { key: '6447f55e8d173d18cd46cba829527c4d487631a2', class: "zonos--address" }, h("zonos-text", { key: '18ef146cc44f658524c6535e851281b62249fa26', type: "label" }, translate('Address')), h("zonos-input", { key: '95cfb115c4304e8a142ab2e952fc8c4bfbe39e43', class: "zonos--form-country", inputLabel: translate('Country'), inputValue: country, isDisabled: true }), h("zonos-input", { key: 'e3774713ec0b0e861981aa9f2c62f6749125e174', class: "zonos--form-line1", inputLabel: translate('Address line 1'), inputValue: line1, isError: isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), h("zonos-input", { key: '0d1fce85ad42e42b266ad411d4e3a96e4b8b8bf3', class: "zonos--form-line2", inputLabel: translate('Address line 2'), inputValue: line2, isError: isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), h("div", { key: '5d5e740b711ff65a0366a6c4891f22684f32c74b', class: "zonos--address-row" }, h("zonos-input", { key: '8f124a91865c59096ba5c624ec229a3d1545c985', class: "zonos--form-city", inputLabel: translate('City'), inputValue: city, isError: isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (h("zonos-input", { key: '50e852953ba88573929a200bce4c67fab2146245', class: "zonos--form-state", inputLabel: translate('State/Province'), inputValue: state, isError: isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), h("zonos-input", { key: '74c17f1d1a77af3f90100a6832b2c8fe7bdca24e', class: "zonos--form-postal-code", inputLabel: translate('Postal code'), inputValue: postal_code, isError: isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), h("zonos-input", { key: '20775c4a944fe9305446898109637e5b38229a1d', class: "zonos--form-phone", inputLabel: translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
|
|
39
39
|
}
|
|
40
40
|
static get is() { return "zonos-address-form"; }
|
|
41
41
|
static get encapsulation() { return "shadow"; }
|
|
@@ -79,7 +79,7 @@ export class ZonosAddressForm {
|
|
|
79
79
|
"mutable": false,
|
|
80
80
|
"complexType": {
|
|
81
81
|
"original": "TranslatedAddressObject",
|
|
82
|
-
"resolved": "{
|
|
82
|
+
"resolved": "{ postal_code?: TranslatedText | undefined; state?: TranslatedText | undefined; line1?: TranslatedText | undefined; line2?: TranslatedText | undefined; city?: TranslatedText | undefined; name?: TranslatedText | undefined; }",
|
|
83
83
|
"references": {
|
|
84
84
|
"TranslatedAddressObject": {
|
|
85
85
|
"location": "import",
|
|
@@ -358,7 +358,7 @@ export class ZonosAddressUpdateDialog {
|
|
|
358
358
|
"mutable": false,
|
|
359
359
|
"complexType": {
|
|
360
360
|
"original": "TranslatedAddressObject",
|
|
361
|
-
"resolved": "{
|
|
361
|
+
"resolved": "{ postal_code?: TranslatedText | undefined; state?: TranslatedText | undefined; line1?: TranslatedText | undefined; line2?: TranslatedText | undefined; city?: TranslatedText | undefined; name?: TranslatedText | undefined; }",
|
|
362
362
|
"references": {
|
|
363
363
|
"TranslatedAddressObject": {
|
|
364
364
|
"location": "import",
|
|
@@ -381,7 +381,7 @@ export class ZonosAddressUpdateDialog {
|
|
|
381
381
|
"mutable": false,
|
|
382
382
|
"complexType": {
|
|
383
383
|
"original": "TranslatedAddressObject",
|
|
384
|
-
"resolved": "{
|
|
384
|
+
"resolved": "{ postal_code?: TranslatedText | undefined; state?: TranslatedText | undefined; line1?: TranslatedText | undefined; line2?: TranslatedText | undefined; city?: TranslatedText | undefined; name?: TranslatedText | undefined; }",
|
|
385
385
|
"references": {
|
|
386
386
|
"TranslatedAddressObject": {
|
|
387
387
|
"location": "import",
|
|
@@ -436,7 +436,7 @@ export class ZonosAddressUpdateDialog {
|
|
|
436
436
|
},
|
|
437
437
|
"complexType": {
|
|
438
438
|
"original": "SubmitEventData",
|
|
439
|
-
"resolved": "{ billingAddress: Record<\"
|
|
439
|
+
"resolved": "{ billingAddress: Record<\"name\" | \"postal_code\" | \"state\" | \"line1\" | \"line2\" | \"city\", string> | null; shippingAddress: Record<\"name\" | \"postal_code\" | \"state\" | \"line1\" | \"line2\" | \"city\", string>; }",
|
|
440
440
|
"references": {
|
|
441
441
|
"SubmitEventData": {
|
|
442
442
|
"location": "local",
|
package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js
CHANGED
|
@@ -10,7 +10,7 @@ export class ZonosCartItems {
|
|
|
10
10
|
render() {
|
|
11
11
|
const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
|
|
12
12
|
const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '2f81af1b6315853352a29bacaa230d782e76115a', class: "zonos--cart-items zonos--elements" }, h("table", { key: '7fe64f09729e0791605cdd8e66d7230ab162c7cf', class: "zonos--cart-table" }, h("tbody", { key: '49c17b5c7c68bfd41b2d8fabbbf4c3c764faba33' }, nonRestrictedItems.map(item => {
|
|
14
14
|
const itemImg = item.imageUrl;
|
|
15
15
|
const cleanedItemNames = cleanHtmlMarkdown(item.name);
|
|
16
16
|
const amount = item.amount * item.quantity;
|
|
@@ -583,11 +583,11 @@ export class ZonosCheckoutFinish {
|
|
|
583
583
|
}
|
|
584
584
|
render() {
|
|
585
585
|
const isTestMode = getIsTestMode();
|
|
586
|
-
return (h(Host, { key: '
|
|
586
|
+
return (h(Host, { key: '76a3503d5c41cf3138e71b071fdb5e341fad1781', class: "zonos--checkout-finish zonos--elements", style: {
|
|
587
587
|
'--zonos--border-radius': getBorderRadius({
|
|
588
588
|
overrideBorderStyle: this.borderRadius,
|
|
589
589
|
}),
|
|
590
|
-
} }, this.isImmediateRedirecting && (h("div", { key: '
|
|
590
|
+
} }, this.isImmediateRedirecting && (h("div", { key: 'aab29e86b7d17dde74d873fe97f342e419e1b5cb', class: "loading-wrapper" }, h("zonos-spinner", { key: '29526f5d056c117ccd65bd1ed303761c04fdbdf3', size: 48 }))), !this.isLoading && !this.isImmediateRedirecting && (h("div", { key: '438b210be5c4c78c74d37e5fde8de994e379afa0', class: "zonos--finish-details" }, h("div", { key: '1cb133c14660035ea6395adb74d30790b69715f3', 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: '4e5a66524f7833916829c9dd7172225e872bb329', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '773a548cd7757af62b26bbe119e7dd078ab4df5b', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: 'ea8c30af05aa57c05155f68b416668db16cfcd1c',
|
|
591
591
|
// Only show loading spinner if it's not an error notification
|
|
592
592
|
loading: this.isWaitingToRedirect &&
|
|
593
593
|
this.notificationType !== 'error', onClick: () => {
|
|
@@ -599,9 +599,9 @@ export class ZonosCheckoutFinish {
|
|
|
599
599
|
}
|
|
600
600
|
this.closeClickHandler();
|
|
601
601
|
}, size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
|
|
602
|
-
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '
|
|
602
|
+
this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '50120bf3a405a2b6e5433fe1bb744f0b836ac49f', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
|
|
603
603
|
cartStore.step === 'finish' &&
|
|
604
|
-
this.notificationType === 'success' && (h("div", { key: '
|
|
604
|
+
this.notificationType === 'success' && (h("div", { key: '2794f9deea56b65de81ad92285270388a7089a73', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '2ba2ef7a26f78cf484d1625428d866cdfadd1b2f', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'fc689ad6192fb0cc86a9fcaf164660a056df8bc5', onClick: () => {
|
|
605
605
|
const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
|
|
606
606
|
this.redirectToUrl(isZonosDashboard
|
|
607
607
|
? '/orders/all'
|