@zonos/elements 1.3.281 → 1.3.283
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-a1c00090.js} +2 -1
- package/dist/cjs/{collect-2659c5af.js → collect-e61eafca.js} +2 -2
- package/dist/cjs/getMissingRequiredShippingFields-a6c4f625.js +50 -0
- package/dist/cjs/{hasInclusivePrice-d132daaa.js → hasInclusivePrice-e7b57e02.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{invoice-26f52c07.js → invoice-ead45797.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-6189080f.js → localization-783849c8.js} +242 -0
- package/dist/cjs/{paypal-f6a256b5.js → paypal-e1548f40.js} +2 -2
- package/dist/cjs/{placeTestOrder-695f2b32.js → placeTestOrder-d99b1fe2.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-fe56094f.js → renderCheckoutCurrency-c942fcba.js} +2 -2
- package/dist/cjs/{zonos-address-display_8.cjs.entry.js → zonos-address-completion-dialog_7.cjs.entry.js} +225 -192
- package/dist/cjs/zonos-address-display_2.cjs.entry.js +157 -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-display/zonos-address-display.js +11 -4
- 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 +17 -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/hello/localization.js +2 -0
- 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 +52 -48
- 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/getAddressCountryOptions.js +23 -0
- package/dist/collection/components/utils/checkout/getMissingRequiredShippingFields.js +44 -0
- package/dist/esm/{cart-c66ec17e.js → cart-93c36159.js} +2 -2
- package/dist/esm/{collect-915fd59d.js → collect-42d4757a.js} +2 -2
- package/dist/esm/getMissingRequiredShippingFields-ebdccdcf.js +47 -0
- package/dist/esm/{hasInclusivePrice-6fd935f3.js → hasInclusivePrice-4c12548f.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{invoice-2a17c93c.js → invoice-71471339.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-6d36209f.js → localization-754e7e8b.js} +242 -0
- package/dist/esm/{paypal-cae1d404.js → paypal-b1410e02.js} +2 -2
- package/dist/esm/{placeTestOrder-955269d2.js → placeTestOrder-4267cafd.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-951386a5.js → renderCheckoutCurrency-9a81e41c.js} +2 -2
- package/dist/esm/{zonos-address-display_8.entry.js → zonos-address-completion-dialog_7.entry.js} +226 -192
- package/dist/esm/zonos-address-display_2.entry.js +152 -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-93c36159.js} +1 -1
- package/dist/esm-es5/{collect-915fd59d.js → collect-42d4757a.js} +1 -1
- package/dist/esm-es5/getMissingRequiredShippingFields-ebdccdcf.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-6fd935f3.js → hasInclusivePrice-4c12548f.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-2a17c93c.js → invoice-71471339.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-754e7e8b.js +1 -0
- package/dist/esm-es5/{paypal-cae1d404.js → paypal-b1410e02.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-955269d2.js → placeTestOrder-4267cafd.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-951386a5.js → renderCheckoutCurrency-9a81e41c.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/common/zonos-stripe-phone-input/zonos-stripe-phone-input.d.ts +1 -0
- package/dist/types/components/store/checkout/stripe.d.ts +4 -0
- package/dist/types/components/store/hello/localization.d.ts +7 -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/stripe/zonos-custom-address/zonos-custom-address.d.ts +9 -13
- 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/getAddressCountryOptions.d.ts +29 -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-09da3c76.entry.js → p-007ff76a.entry.js} +1 -1
- package/dist/zonos-elements/{p-5aee5de5.system.entry.js → p-05cb0a0d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-065f3f66.system.entry.js +1 -0
- package/dist/zonos-elements/p-07c21940.entry.js +1 -0
- package/dist/zonos-elements/p-0d183f19.system.js +1 -0
- package/dist/zonos-elements/p-1180a97c.system.entry.js +1 -0
- package/dist/zonos-elements/p-19bbf4b3.js +1 -0
- package/dist/zonos-elements/{p-ee3c7b11.system.entry.js → p-1af510ea.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1cff471a.system.entry.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-22f7120a.system.js +1 -0
- package/dist/zonos-elements/{p-b5f67807.entry.js → p-26bf0c31.entry.js} +1 -1
- package/dist/zonos-elements/p-2837bfd2.js +1 -0
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-86d6961c.system.entry.js → p-29ca1415.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2aebcfa8.system.entry.js +1 -0
- 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-33dd7dab.entry.js +1 -0
- package/dist/zonos-elements/{p-060c521b.system.entry.js → p-342b062d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-a5f8dc19.js → p-38881097.js} +1 -1
- package/dist/zonos-elements/{p-38879af9.entry.js → p-39399f67.entry.js} +1 -1
- package/dist/zonos-elements/{p-683ec0bf.entry.js → p-3d902845.entry.js} +1 -1
- package/dist/zonos-elements/{p-a6773627.entry.js → p-3dcb3794.entry.js} +1 -1
- package/dist/zonos-elements/p-4a5fa892.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a34269b1.system.entry.js → p-4a73906a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5677d31f.entry.js → p-4b9c7803.entry.js} +1 -1
- package/dist/zonos-elements/{p-54a8d4cf.system.entry.js → p-4dba0e9b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1992fd91.entry.js → p-55c5977b.entry.js} +1 -1
- package/dist/zonos-elements/{p-179caaea.system.entry.js → p-58da55e6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-59824ac6.entry.js +1 -0
- package/dist/zonos-elements/{p-f156e2e5.system.entry.js → p-59e4e0b6.system.entry.js} +1 -1
- 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-717cbe90.system.js → p-5fceef56.system.js} +1 -1
- package/dist/zonos-elements/{p-8005e102.system.js → p-602de72d.system.js} +1 -1
- package/dist/zonos-elements/{p-39695a8b.system.js → p-6325ee77.system.js} +1 -1
- package/dist/zonos-elements/p-67251274.system.js +1 -0
- package/dist/zonos-elements/{p-4441c451.entry.js → p-69871ab6.entry.js} +1 -1
- package/dist/zonos-elements/p-6be4c473.entry.js +1 -0
- package/dist/zonos-elements/p-72280783.system.js +1 -0
- package/dist/zonos-elements/{p-746bdebe.entry.js → p-73d1a554.entry.js} +1 -1
- package/dist/zonos-elements/{p-e0ec0aa3.system.entry.js → p-76a75da9.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-26ca8ce7.js → p-76cdf517.js} +1 -1
- package/dist/zonos-elements/{p-a3d3ce5d.system.entry.js → p-781b3345.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1577a739.js → p-8eaf1316.js} +1 -1
- package/dist/zonos-elements/{p-99e8743e.system.entry.js → p-8fa3a8f8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b406bb39.entry.js → p-944282af.entry.js} +1 -1
- package/dist/zonos-elements/{p-3e6bbf0b.system.entry.js → p-97f15546.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-727387ed.entry.js → p-9ceb3d1c.entry.js} +1 -1
- package/dist/zonos-elements/{p-3246d120.js → p-a2fe995b.js} +1 -1
- package/dist/zonos-elements/{p-4c3f5fda.system.entry.js → p-aa7589de.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b0482924.entry.js +1 -0
- package/dist/zonos-elements/{p-ddf68916.system.js → p-b567448d.system.js} +1 -1
- package/dist/zonos-elements/{p-edf613ea.entry.js → p-b7a03b08.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-3f6fe80a.system.entry.js → p-c43130a7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c515bc23.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-6df6cb8a.entry.js → p-c8a48cce.entry.js} +1 -1
- package/dist/zonos-elements/{p-3e058b4e.entry.js → p-cb376f03.entry.js} +1 -1
- package/dist/zonos-elements/{p-8308f7d6.system.entry.js → p-cc35d5f8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f314217a.system.js → p-cd5638b2.system.js} +2 -2
- package/dist/zonos-elements/{p-56fc3210.js → p-d68425ad.js} +1 -1
- package/dist/zonos-elements/{p-03fda4a8.entry.js → p-d74eda59.entry.js} +1 -1
- package/dist/zonos-elements/{p-30067eed.entry.js → p-d93f4837.entry.js} +1 -1
- package/dist/zonos-elements/{p-e7a45f6c.entry.js → p-dcf8ab79.entry.js} +1 -1
- package/dist/zonos-elements/{p-4efd7178.entry.js → p-e0cbc7c7.entry.js} +1 -1
- package/dist/zonos-elements/{p-40b96482.system.entry.js → p-e2057ab0.system.entry.js} +1 -1
- package/dist/zonos-elements/p-e2b8936a.js +1 -0
- package/dist/zonos-elements/{p-dd6da3de.entry.js → p-e3d0d8ff.entry.js} +1 -1
- package/dist/zonos-elements/{p-5a61c301.system.entry.js → p-e8159288.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5e1aad7d.entry.js → p-e8bb4f3b.entry.js} +1 -1
- package/dist/zonos-elements/{p-a23d3b3f.system.entry.js → p-e99654c1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5d4201d5.entry.js → p-ef2c264c.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-156891c5.js → p-f9f3155b.js} +1 -1
- package/dist/zonos-elements/{p-08e78d79.entry.js → p-fa80a973.entry.js} +1 -1
- package/dist/zonos-elements/{p-f59514e9.entry.js → p-fc45b3a5.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-1ee5f392.entry.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
|
@@ -51,13 +51,13 @@ export class ZonosCountrySelect {
|
|
|
51
51
|
? fuseObject.map(country => country.item)
|
|
52
52
|
: countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
|
|
53
53
|
const isEmpty = !filteredCountries.length;
|
|
54
|
-
return (h(Host, { key: '
|
|
54
|
+
return (h(Host, { key: '3581b885b6d8d220d4c38769658b25ccf473b012', class: "zonos--elements", style: {
|
|
55
55
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
56
|
-
} }, h("div", { key: '
|
|
56
|
+
} }, h("div", { key: '231cd93711e1e379d196944140c44c0e77332e30', class: "zonos--country-select" }, h("zonos-v-stack", { key: '8a3768ee37ad892960104c6f04e54ed977f5ba2e', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '4535301af6a7fa62b101ee5913842c4d1dbec6a2', handleOnClose: () => this.handleOnClose(), label: translate('Select a country') }, h("input", { key: '9a15c15c77c7a193934a4d656f613120266e3f38', autoComplete: "off", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translate('Search countries'), ref: el => {
|
|
57
57
|
if (el) {
|
|
58
58
|
this.inputRef = el;
|
|
59
59
|
}
|
|
60
|
-
}, type: "text", value: this.inputValue }))), h("div", { key: '
|
|
60
|
+
}, type: "text", value: this.inputValue }))), h("div", { key: '14e511287916d98676083c3f3118223073ce6a19', class: "zonos--country-select-content" }, isEmpty && (h("zonos-text", { key: 'd5f14c5e652938fbf9ee18a31b421f406599db7f', class: "no-country", textColor: "gray-800" }, translate('No countries found'))), h("zonos-virtual-scroll", { key: 'ee2b4d3a2feefda0be007b174b85e368292dc868', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index => {
|
|
61
61
|
const country = filteredCountries[index];
|
|
62
62
|
if (!country) {
|
|
63
63
|
return null;
|
|
@@ -14,9 +14,9 @@ export class ZonosCustomMessage {
|
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
const messageWithLinks = formatStringWithLinks(this.message);
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '5e87669fad207a56da569c72c5b6b1e86fed0d29', class: "zonos--elements", style: {
|
|
18
18
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
19
|
-
} }, this.message && (h("zonos-card", { key: '
|
|
19
|
+
} }, this.message && (h("zonos-card", { key: '4c9216e22dd3ceb35e647a6e43fc8f1b7c9a4da1', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '36dc67b55580fbdcf668a6b16a4a1b9fa5f477b6', class: "zonos--flex-message" }, h("zonos-icon", { key: 'b4f26b0b8fd35d7593e84d9abfe69a0dacfa5c20', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: '74a9b55e87a0e244dc02481112abf26851e6722d', innerHTML: messageWithLinks }))))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "zonos-custom-message"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -86,7 +86,7 @@ export class ZonosDialog {
|
|
|
86
86
|
const borderStyle = getBorderRadius({
|
|
87
87
|
overrideBorderStyle: this.borderStyle,
|
|
88
88
|
});
|
|
89
|
-
return (h(Host, { key: '
|
|
89
|
+
return (h(Host, { key: '93de5ea91ebef1927a2d7dc91a00f87277755ac7', class: classes([
|
|
90
90
|
'zonos--elements',
|
|
91
91
|
this.open && 'open',
|
|
92
92
|
this.isLoading && 'is-loading',
|
|
@@ -98,10 +98,10 @@ export class ZonosDialog {
|
|
|
98
98
|
'--zonos--height': this.height || 'initial',
|
|
99
99
|
'--zonos--min-height': this.minHeight || '500px',
|
|
100
100
|
'--zonos--width': this.width,
|
|
101
|
-
} }, h("div", { key: '
|
|
101
|
+
} }, h("div", { key: '86330a3de751f262a3f0f80fbeb436bb6e2b206f', class: "zonos--backdrop" }), h("div", { key: 'a6702c9a9b5bba9f3523503cd85ba6e6ae77fc9d', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: '2c4d6e9170fbe80a2ea249d3f40cbc72e5df05d3', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'e83dcb53e9cd7504d588b124c6468535e81ce71d', class: "zonos--loading" }, h("zonos-spinner", { key: '5e8b3451b5358c76c2fdf47a0ad5eecc8394d012', size: 30 }), this.loadingTitle && (h("zonos-text", { key: '671203125d8fd7e8cb811b61b7190f826221507a', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (h("zonos-text", { key: '791a95ed2bdad0c3bfb136c9e42d7d8e920110d9', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (h("div", { key: '8d4f7a2e12cd56d6341cf5aa17be1a7f151ca45b', class: "zonos--header" }, this.headerText && (h("h3", { key: '4bdd26b40a2209ccf44d85440cfbf173724f9aaa', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: 'c8f5d7eaff8c9ba94d60d587b5601472e80ea79a', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: 'e5d91fb3bb3546e559566f8782aa9d939d0f1d04', class: classes([
|
|
102
102
|
'zonos--body',
|
|
103
103
|
this.noBodyPadding && 'zonos--no-body-padding',
|
|
104
|
-
]) }, h("slot", { key: '
|
|
104
|
+
]) }, h("slot", { key: '2da7a3c7a978bb520c255a0043f96bf15b2dd006' })), h("slot", { key: '38ec2165a11c9cc2b121122124482590f9cd31e9', name: "dialog-footer" })))));
|
|
105
105
|
}
|
|
106
106
|
static get is() { return "zonos-dialog"; }
|
|
107
107
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,10 +10,10 @@ export class HStack {
|
|
|
10
10
|
this.spacing = 24;
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
|
-
return (h(Host, { key: '
|
|
13
|
+
return (h(Host, { key: '029e16a802574614fb1d7cf1c7142425bf5a8dd2', style: {
|
|
14
14
|
'--spacing': `${this.spacing}px`,
|
|
15
15
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
16
|
-
} }, h("slot", { key: '
|
|
16
|
+
} }, h("slot", { key: '9894338cb38887b8757182f8ed2a4ce1bcff0eaf' })));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "zonos-h-stack"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -31,17 +31,17 @@ export class ZonosInput {
|
|
|
31
31
|
this.inputChange.emit(newValue);
|
|
32
32
|
}
|
|
33
33
|
render() {
|
|
34
|
-
return (h(Host, { key: '
|
|
34
|
+
return (h(Host, { key: 'f61a69708e8d3734111690389fce1acf14fbece8', class: classes([
|
|
35
35
|
'zonos--input zonos--elements',
|
|
36
36
|
this.inputSize,
|
|
37
37
|
this.isError && 'has-error',
|
|
38
38
|
]), style: {
|
|
39
39
|
'--zonos--border-radius': getBorderRadius(),
|
|
40
40
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
41
|
-
} }, h("div", { key: '
|
|
41
|
+
} }, h("div", { key: '94fb3f77fe0eb3c67a2319cd27d3ce17f4d8684b', class: classes([
|
|
42
42
|
'zonos--label-wrapper',
|
|
43
43
|
this.isDisabled && 'disabled',
|
|
44
|
-
]) }, h("input", { key: '
|
|
44
|
+
]) }, h("input", { key: 'fd878fb73ed33c6054dd9d6a75e3980c9d670877', class: classes([
|
|
45
45
|
'zonos--floated-input',
|
|
46
46
|
!!this.inputLabel && 'has-label',
|
|
47
47
|
this.inputValue && 'has-content',
|
|
@@ -49,7 +49,7 @@ export class ZonosInput {
|
|
|
49
49
|
]), disabled: this.isDisabled, onInput: e => {
|
|
50
50
|
const input = e.target;
|
|
51
51
|
this.inputChange.emit(input.value);
|
|
52
|
-
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: '
|
|
52
|
+
}, placeholder: this.inputPlaceholder, type: "text", value: this.value }), h("label", { key: 'b59b852113bcb005acd9fd31de527cf693e162a7', class: "zonos--floated-label", "data-label": this.inputLabel }))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "zonos-input"; }
|
|
55
55
|
static get encapsulation() { return "shadow"; }
|
|
@@ -20,9 +20,9 @@ export class ZonosLanguageSelect {
|
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
22
|
const { selectedLocale } = localizationStore;
|
|
23
|
-
return (h(Host, { key: '
|
|
23
|
+
return (h(Host, { key: 'b2f1fc3b2bf928d9ab96d0dee0f77a184e842bcb', class: "zonos--elements", style: {
|
|
24
24
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
25
|
-
} }, h("div", { key: '
|
|
25
|
+
} }, h("div", { key: 'a2c5e0ec32aef9ba6f9523777a4c75f441dcae39', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: '93cf877ed11fd1e1af04e8269f5c264f69f52762', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: '30865ea0b3d8f31d900c616b8b05882fcd083ac3', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
|
|
26
26
|
}
|
|
27
27
|
static get is() { return "zonos-language-select"; }
|
|
28
28
|
static get encapsulation() { return "shadow"; }
|
|
@@ -7,7 +7,7 @@ export class ZonosLink {
|
|
|
7
7
|
this.href = '';
|
|
8
8
|
}
|
|
9
9
|
render() {
|
|
10
|
-
return (h(Host, { key: '
|
|
10
|
+
return (h(Host, { key: 'c3f532019c96bed8a9ecae34364f127e177c38f9', class: "zonos--elements" }, h("a", { key: '40a5c745b8e7e0dc497269cc7f6b55b0414aa33b', href: this.href, rel: this.rel, target: this.target, title: this.linkTitle }, h("slot", { key: '94a7470c679fd445635d39de30ffd28d498b7211' }))));
|
|
11
11
|
}
|
|
12
12
|
static get is() { return "zonos-link"; }
|
|
13
13
|
static get encapsulation() { return "shadow"; }
|
|
@@ -13,7 +13,7 @@ export class ZonosLoadingOverlay {
|
|
|
13
13
|
this.size = 40;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: 'e284a5ada0945f1895dbd9b40039e9d2ef600111', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: 'fb68155fe133ba8cd1d923a0fbb37a382ecabc34', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: '50dc3d4b1f53173240d23ffeac966f7463546fde', size: this.size, spinnerColor: this.spinnerColor }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "zonos-loading-overlay"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -16,11 +16,11 @@ export class ZonosLogo {
|
|
|
16
16
|
const filterColor = this.theme === 'DARK'
|
|
17
17
|
? 'invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)'
|
|
18
18
|
: 'whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)';
|
|
19
|
-
return (h(Host, { key: '
|
|
19
|
+
return (h(Host, { key: 'b698963f9d2d0ce2a3165d484cd8dda026e86350', class: classes(['zonos--elements zonos--logo']), style: {
|
|
20
20
|
'--zonos--filter-color': filterColor,
|
|
21
21
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
22
22
|
'--zonos--width': this.width,
|
|
23
|
-
} }, h("img", { key: '
|
|
23
|
+
} }, h("img", { key: 'cc8163dc55b4d0a34bfc83eaaa618add56fb0c9a', alt: "Zonos Logo", src: getAssetPath('./assets/ZonosLogo.png') })));
|
|
24
24
|
}
|
|
25
25
|
static get is() { return "zonos-logo"; }
|
|
26
26
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,11 +14,11 @@ export class ZonosRestState {
|
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
16
|
const imageUrl = this.getImageRestState();
|
|
17
|
-
return (h(Host, { key: '
|
|
17
|
+
return (h(Host, { key: '709006622bdc4ba41d622c57562d98e90d6bfbbd', class: classes(['zonos--elements zonos--restState']), style: {
|
|
18
18
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
19
|
-
} }, h("div", { key: '
|
|
19
|
+
} }, h("div", { key: 'ecd47662e89cdd64c19e56f33fff5ebe929609fd', class: "zonos--restState-image" }, h("img", { key: 'c11941895f62fb7cd2dfcb34d8b5409ecbe23a3a', alt: this.restStateType, onError: () => {
|
|
20
20
|
this.isErrorImageLoad = true;
|
|
21
|
-
}, src: imageUrl })), h("div", { key: '
|
|
21
|
+
}, src: imageUrl })), h("div", { key: '40a66ae6959222fedcfd69de6f0236ac078903c3', class: "content" }, h("zonos-text", { key: 'ca7f67de9b084e16e1a5e5635a4917680fcbdfd6', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '9e6f22d9fb87b1462044a2395c32b03d9b4b59d3', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: 'f93aa94983a14e5a4bc03cd339c1d53954da0f30', class: "action" }, h("slot", { key: 'b893fc9c907a97f241d6b7148636b01381f26813' }))));
|
|
22
22
|
}
|
|
23
23
|
static get is() { return "zonos-rest-state"; }
|
|
24
24
|
static get encapsulation() { return "shadow"; }
|
package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js
CHANGED
|
@@ -15,9 +15,9 @@ export class ZonosSelectDialogHeader {
|
|
|
15
15
|
this.label = '';
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'de9b5deb0f4cee2fe4646e37ddf36f3ccfd0696c', class: "zonos--elements", style: {
|
|
19
19
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
20
|
-
} }, h("zonos-v-stack", { key: '
|
|
20
|
+
} }, h("zonos-v-stack", { key: '8f64fbb4f6596d335d6799b3beb27deadc280017', class: "zonos--select-dialog-header-wrapper", spacing: 8 }, h("div", { key: '58ea82f407f0a9833196f91a5f7f7c1074b537d9', class: "zonos--select-dialog-header" }, h("zonos-text", { key: '78b6f980f1136910e1761a1f99facf355f892c52', type: "boldLabel" }, this.label), h("zonos-button", { key: '2ce0171ef775d275aacb3b661e0ad62d429c338e', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close select dialog", content: RemoveIcon, size: 20 }), noBackground: true, onClick: () => this.handleOnClose() })), h("slot", { key: '1686924ae0153dc76a03852f08796c29e41013e3' }))));
|
|
21
21
|
}
|
|
22
22
|
static get is() { return "zonos-select-dialog-header"; }
|
|
23
23
|
static get encapsulation() { return "shadow"; }
|
|
@@ -15,7 +15,7 @@ export class ZonosSkeleton {
|
|
|
15
15
|
this.skeletonHeight = '14px';
|
|
16
16
|
}
|
|
17
17
|
render() {
|
|
18
|
-
return (h(Host, { key: '
|
|
18
|
+
return (h(Host, { key: 'b5450df7f385c16cc93b492ba8e3369f131db069', class: classes(['zonos--elements zonos--skeleton']), style: styles({
|
|
19
19
|
'--zonos--skeleton-height': this.skeletonHeight,
|
|
20
20
|
'--zonos--skeleton-width': this.skeletonWidth,
|
|
21
21
|
}) }));
|
|
@@ -69,7 +69,7 @@ export class ZonosStripeInput {
|
|
|
69
69
|
? zonosStore.appearance.theme === 'DARK'
|
|
70
70
|
: primaryColor && isDarkColor(primaryColor);
|
|
71
71
|
const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
|
|
72
|
-
return (h(Host, { key: '
|
|
72
|
+
return (h(Host, { key: 'e7559e04aafad07699bd6bebfd4cf191d0cd1b4f', class: classes([
|
|
73
73
|
'zonos--input zonos--elements',
|
|
74
74
|
isDark && 'dark',
|
|
75
75
|
(this.isError || !!this.error) && 'has-error',
|
|
@@ -78,10 +78,10 @@ export class ZonosStripeInput {
|
|
|
78
78
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
79
79
|
'--zonos--font-size': `${fontSize}px`,
|
|
80
80
|
'--zonos--primary-color': secondaryColor,
|
|
81
|
-
} }, h("div", { key: '
|
|
81
|
+
} }, h("div", { key: 'e7bce60978e071136b5a82bc4db8a0cf681273fc', class: classes([
|
|
82
82
|
'zonos--label-wrapper',
|
|
83
83
|
this.isDisabled && 'disabled',
|
|
84
|
-
]) }, h("input", Object.assign({ key: '
|
|
84
|
+
]) }, h("input", Object.assign({ key: '6bfb929ad025d1a28860002561e8ae2abbc38e40' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
|
|
85
85
|
'zonos--floated-input',
|
|
86
86
|
!!this.inputLabel && 'has-label',
|
|
87
87
|
this.internalValue && 'has-content',
|
|
@@ -91,7 +91,7 @@ export class ZonosStripeInput {
|
|
|
91
91
|
this.inputChange.emit(input.value);
|
|
92
92
|
this.el.inputValue = input.value;
|
|
93
93
|
this.el.dispatchEvent(new Event('change'));
|
|
94
|
-
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), h("div", { key: '
|
|
94
|
+
}, placeholder: this.inputPlaceholder || '', required: this.required, type: "text", value: this.internalValue })), h("div", { key: '0904c241ee73055982c7cd0ee5f9ee8559e6fa8b', class: "zonos--floated-label" }, h("label", { key: '581ac49d26e58bf0e61d1c21d13232dbc01557ee', htmlFor: this.inputId }, this.inputLabel))), this.error && (h("zonos-text", { key: '5cd20b5de0552c5a37dc22decdf9d54330d75028', textColor: "red-600", type: "caption" }, this.error))));
|
|
95
95
|
}
|
|
96
96
|
static get is() { return "zonos-stripe-input"; }
|
|
97
97
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js
CHANGED
|
@@ -122,6 +122,15 @@ export class ZonosStripePhoneInput {
|
|
|
122
122
|
this.updatePhoneFormatter();
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
+
onCountryCodeChange() {
|
|
126
|
+
/**
|
|
127
|
+
* Re-derive the dial code when the address country changes, otherwise a
|
|
128
|
+
* shopper who changes country keeps the previous country's dial code — for
|
|
129
|
+
* example a US billing address on a Mexico shipment would send a US phone
|
|
130
|
+
* number prefixed with +52 (05CHECK-915).
|
|
131
|
+
*/
|
|
132
|
+
this.initPhoneNumberValue();
|
|
133
|
+
}
|
|
125
134
|
onCountryOptionsChange() {
|
|
126
135
|
// Re-initialize the phone number value when the country options change
|
|
127
136
|
this.initPhoneNumberValue();
|
|
@@ -201,24 +210,24 @@ export class ZonosStripePhoneInput {
|
|
|
201
210
|
.filter(Boolean)
|
|
202
211
|
.sort((a, b) => a.displayName.localeCompare(b.displayName))
|
|
203
212
|
: [];
|
|
204
|
-
return (h(Host, { key: '
|
|
213
|
+
return (h(Host, { key: '14478c1db0acc4651d9433f71fefa8bd18b28a61', class: classes([
|
|
205
214
|
'zonos--phone-input zonos--elements',
|
|
206
215
|
isDark && 'dark',
|
|
207
|
-
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '
|
|
216
|
+
]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: 'cdc9f75fa9a8fd81ab565614729d33b3b54b1ba9', class: classes([
|
|
208
217
|
'zonos--label-wrapper',
|
|
209
218
|
this.disabled && 'disabled',
|
|
210
219
|
this.isFocused && 'focused',
|
|
211
220
|
hasContent && 'has-content',
|
|
212
221
|
this.error && 'has-error',
|
|
213
222
|
this.inputLabel && 'has-label',
|
|
214
|
-
]) }, h("select", { key: '
|
|
223
|
+
]) }, h("select", { key: 'a34d728be2b100874a2fb2a91e12b77988602b3a', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
|
|
215
224
|
var _a;
|
|
216
225
|
return (h("option", { key: option.countryCode, selected: option.countryCode === ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode), value: option.countryCode }, option.displayName, " (+", option.phoneCode, ")"));
|
|
217
|
-
})), h("div", { key: '
|
|
226
|
+
})), h("div", { key: 'c8d76a0a1e9ca245f03a853440a691e1bb478093', class: "zonos--input-group" }, h("div", { key: '51ccfb533bb4560061c63aaed368fb6488cf9d87', class: "zonos--select-wrapper" }, h("div", { key: 'cd50bc9c8f2fd407f47e5bfd3eba18a3f8fe721f', class: "zonos--country-select" }, h("div", { key: '05581057f31568b3d50b054e9c7fbbad5be7c27a', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: '04c5abdc6fdf7e71585896b426ec1ab00dc11f66', class: "zonos--country-select-selected" }, h("div", { key: '6750556068dbad185fadfba36268417974a43865', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: 'a611a41490d68f2763ae43ad0fd5c0c498d16bfe', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: 'eab8a6353cd865cffb1576f14fee6edd5dbd3383', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: 'b3b4b8c407ed68305b467590921bc57925077acd', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '7bc52fdcaf76bf6416d33442e844057b8d6e8121', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))))), h("div", { key: 'd0ad07b902ef0ff675a515c07ec6597c0d0b0aa2', class: classes([
|
|
218
227
|
'zonos--input-container',
|
|
219
228
|
this.inputLabel && 'has-label',
|
|
220
229
|
hasContent && 'has-content',
|
|
221
|
-
]) }, h("input", Object.assign({ key: '
|
|
230
|
+
]) }, h("input", Object.assign({ key: '5b12c7a228bf9736856c9ebf8ff7898cf0fc1889' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (h("div", { key: '04482f4bc210fb7ee6047972043f6b1942b25142', class: "zonos--floated-label" }, h("label", { key: '345c8e9d7ebc4aa8891c86a77a51f9bbd0088044', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: 'cd8805f31cc6b2c9d6052f4c11190dba1f242945', textColor: "red-600" }, this.error))));
|
|
222
231
|
}
|
|
223
232
|
static get is() { return "zonos-stripe-phone-input"; }
|
|
224
233
|
static get encapsulation() { return "scoped"; }
|
|
@@ -475,6 +484,9 @@ export class ZonosStripePhoneInput {
|
|
|
475
484
|
static get elementRef() { return "el"; }
|
|
476
485
|
static get watchers() {
|
|
477
486
|
return [{
|
|
487
|
+
"propName": "countryCode",
|
|
488
|
+
"methodName": "onCountryCodeChange"
|
|
489
|
+
}, {
|
|
478
490
|
"propName": "countryOptions",
|
|
479
491
|
"methodName": "onCountryOptionsChange"
|
|
480
492
|
}, {
|
|
@@ -9,9 +9,9 @@ export class ZonosToggle {
|
|
|
9
9
|
this.options = [];
|
|
10
10
|
}
|
|
11
11
|
render() {
|
|
12
|
-
return (h(Host, { key: '
|
|
12
|
+
return (h(Host, { key: 'e4177068eca8831790db346088acde5c24a1cb52', class: classes(['zonos--elements zonos--toggle']), style: {
|
|
13
13
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
14
|
-
} }, h("div", { key: '
|
|
14
|
+
} }, h("div", { key: '89c8561a03f2e9c11c858b406fd8dd5cbc92a9b7', class: "wrapper" }, this.options.map(option => {
|
|
15
15
|
const selected = option.value === this.value;
|
|
16
16
|
return (h("button", { class: classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
|
|
17
17
|
this.toggleChanged.emit(option.value);
|
|
@@ -13,10 +13,10 @@ export class ZonosTooltip {
|
|
|
13
13
|
this.showTooltip = false;
|
|
14
14
|
}
|
|
15
15
|
render() {
|
|
16
|
-
return (h(Host, { key: '
|
|
16
|
+
return (h(Host, { key: '4ecaaf78a0ee54dccd5efd6ec60d201a8946f9e9', class: "zonos--elements" }, h("div", { key: '5dc14bbe9d21712a29fe62cb6ade2a1e1a1c6385', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '2eb58e776a1d925eff1fc8e48ce337b915dbb515' }), h("div", { key: '9975d37625398918d5a9ddf2f645a4c0a496ed2a', class: classes([
|
|
17
17
|
this.showTooltip && 'zonos--show-tooltip',
|
|
18
18
|
'zonos--tooltip-content',
|
|
19
|
-
]) }, h("zonos-text", { key: '
|
|
19
|
+
]) }, h("zonos-text", { key: '9f4c3070b5cc96793d18950decb2f77e608b8708', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '2273a609eb5fd33a661c88f35e7fc6777ea75ccf', size: "xs", textColor: "gray-0" }, this.subtitle)))));
|
|
20
20
|
}
|
|
21
21
|
static get is() { return "zonos-tooltip"; }
|
|
22
22
|
static get encapsulation() { return "shadow"; }
|
|
@@ -11,9 +11,9 @@ export class VStack {
|
|
|
11
11
|
this.spacing = 24;
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h(Host, { key: '
|
|
14
|
+
return (h(Host, { key: '55d608e49a9d0a95c23902c68f555d3d17e34675', style: {
|
|
15
15
|
'--zonos--font-family': zonosStoreFontFamily(),
|
|
16
|
-
} }, h("div", { key: '
|
|
16
|
+
} }, h("div", { key: '529887c92438dd3793d2c4737ff2ae52abe560cb', class: classes(['vstack']), style: { 'grid-row-gap': `${this.spacing}px` } }, h("slot", { key: '2a3c3c193aa74b9829dca73bddfdbd3dbed4c6c6' }))));
|
|
17
17
|
}
|
|
18
18
|
static get is() { return "zonos-v-stack"; }
|
|
19
19
|
static get encapsulation() { return "shadow"; }
|
|
@@ -106,10 +106,10 @@ export class ZonosVirtualScroll {
|
|
|
106
106
|
render() {
|
|
107
107
|
const { width: containerWidth } = this.containerDimensions;
|
|
108
108
|
const visibleItems = this.getVisibleItems();
|
|
109
|
-
return (h(Host, { key: '
|
|
109
|
+
return (h(Host, { key: 'e979610a7ed0e4bb1dd98b50043b65282aac26bf', class: classes(['zonos--virtual-scroll']) }, h("div", { key: 'ca73da524a4289cd4142a05d81bf3de691215690', class: classes(['scroller']), style: {
|
|
110
110
|
height: `${this.totalHeight}px`,
|
|
111
111
|
width: `${containerWidth}px`,
|
|
112
|
-
} }), h("div", { key: '
|
|
112
|
+
} }), h("div", { key: 'dd70c5ae1d9f9481de5fc08569933932413bdde4', class: classes(['item-container']), style: {
|
|
113
113
|
height: `${this.totalHeight}px`,
|
|
114
114
|
} }, visibleItems.map(({ element }) => element))));
|
|
115
115
|
}
|
|
@@ -19,7 +19,7 @@ export class ZonosComponent {
|
|
|
19
19
|
return format(this.first, this.middle, this.last);
|
|
20
20
|
}
|
|
21
21
|
render() {
|
|
22
|
-
return h("div", { key: '
|
|
22
|
+
return h("div", { key: '4e29ec8d8aeafa6d194925220355d6a8a785e838' }, "Hello, World! I'm ", this.getText());
|
|
23
23
|
}
|
|
24
24
|
static get is() { return "zonos-component"; }
|
|
25
25
|
static get encapsulation() { return "shadow"; }
|
|
@@ -29,9 +29,9 @@ export class ZonosHelloDialogFooter {
|
|
|
29
29
|
const language = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.translatedLabel;
|
|
30
30
|
// Only use gray-0 (white) when the background color is dark (apply inverted color if the element is using dark theme variable)
|
|
31
31
|
const mainColor = primaryColor && isDarkColor(primaryColor) ? 'white' : 'black';
|
|
32
|
-
return (h(Host, { key: '
|
|
32
|
+
return (h(Host, { key: '350a056fbc8cb1caf686857a1ef9d2915d9aa746', class: "zonos--elements" }, h("div", { key: 'bd98b0bb2cae37470b7640df4337173fcec9ebe5', class: "zonos--hello-dialog-footer", style: {
|
|
33
33
|
'--zonos--primary-color': primaryColor,
|
|
34
|
-
} }, h("a", { key: '
|
|
34
|
+
} }, h("a", { key: '1aee2bb2f699d0368921bec9a2adb4a8b2a2b9ab', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'e5c683a859f72c3c831d41be2198214c9046093c', "aria-label": "Zonos Logo", autoHeight: true, content: mainColor === 'black' ? ZonosIconLight : ZonosIconDark, iconColor: mainColor, size: 108 })), h("div", { key: '904549591a920cfc44634b6fdb4859acf3ba8fe5', class: "zonos--hello-locale-wrapper" }, h("zonos-button", { key: '0fcfbfe2dd4e5305dbc77ff380e20f1738f5ff93', buttonColor: mainColor, icon: h("zonos-icon", { "aria-label": "Open language select", content: Globe, iconColor: mainColor }), onClick: () => this.setShowLanguageSelect(true), variant: "subtle" }, h("span", { key: 'bf2185444d946075044172c5aaf99ba3ef913839', class: "zonos--hello-locale-label" }, language, h("zonos-icon", { key: '668341e3b7a5e4c8673fc282efc4128ffbe27bf2', "aria-hidden": "true", class: "zonos--hello-locale-chevron", content: ChevronDownIcon, iconColor: mainColor, size: 18 }))), h("zonos-button", { key: '5d613310cadf679a264c6ea809474454318966af', buttonColor: mainColor, icon: h("zonos-country-flag", { "aria-label": "Open country select", class: "zonos--footer-country-flag", countryCode: localizationStore.selectedCountryCode }), onClick: () => this.setShowCountrySelect(true), variant: "subtle" }, h("span", { key: 'f258553c637ec7d7bab678500aa9062d2b3524ac', class: "zonos--hello-locale-label" }, localizationStore.selectedCountryCode, h("zonos-icon", { key: 'ebb04e7e952a7cd6c166ff3752b731d7a8b2346e', "aria-hidden": "true", class: "zonos--hello-locale-chevron", content: ChevronDownIcon, iconColor: mainColor, size: 18 })))))));
|
|
35
35
|
}
|
|
36
36
|
static get is() { return "zonos-hello-dialog-footer"; }
|
|
37
37
|
static get encapsulation() { return "shadow"; }
|
|
@@ -347,25 +347,25 @@ export class ZonosHelloDialog {
|
|
|
347
347
|
// If deminimis is undefined or null, assume it's $0
|
|
348
348
|
const taxDeMinimisMessage = this.getTaxMessage();
|
|
349
349
|
const inclusivePriceMessage = this.getInclusivePriceMessage();
|
|
350
|
-
return (h(Host, { key: '
|
|
350
|
+
return (h(Host, { key: 'd24794b42581ff92ea7ff4fed8a7feeadd68ec87', class: "zonos--elements" }, h("div", { key: '84e539b7e7eb384ec9de8c60f26f33b7de8b4c2c', class: classes([
|
|
351
351
|
'zonos--hello-dialog',
|
|
352
352
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
353
353
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
354
354
|
!!this.mobileLocationOverride &&
|
|
355
355
|
'zonos--hello-dialog-mobile-override',
|
|
356
356
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
357
|
-
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
357
|
+
]), inert: !this.isOpen, ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '50d05d3fdb5f5b2769a368c69d307f93ca162725' }, h("div", { key: 'd08c9c79fd69e1e5ab43a53bfd3d1ca5050fc336', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '7a6e76b1d891ee255b4fff4589714b67eea25dc5', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { key: 'fb3c7ad6df4608f470d3126a2791040cc6a2912c', spacing: 24 }, h("zonos-country-flag", { key: '98e8aedda730cf55a11031ef34191d7a0e92ebfa', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'eb073f09379cf41486da6a355535775e3022ff57', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '23d0aed3f10ea1d5d46f841f34ae240a393fe582', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: 'eda291fcc35c2d874ae16d35218e7d61414e0d48', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '14c81958db7911bca665c13e95249d8886524190', spacing: 8 }, this.restrictedItems.map(item => {
|
|
358
358
|
var _a;
|
|
359
359
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
360
360
|
}), (dutyDeMinimisMessage ||
|
|
361
361
|
taxDeMinimisMessage ||
|
|
362
362
|
inclusivePriceMessage ||
|
|
363
|
-
!!(additionalInformation === null || additionalInformation === void 0 ? void 0 : additionalInformation.length)) && (h("zonos-card", { key: '
|
|
363
|
+
!!(additionalInformation === null || additionalInformation === void 0 ? void 0 : additionalInformation.length)) && (h("zonos-card", { key: 'debf6a45b077b636d568a63abc1e6e628b117556', spacing: "12px" }, h("zonos-v-stack", { key: '7077e41a083eee4cd34604fa20c97f6e6e6e5ea4', spacing: 12 }, this.renderHelloMessage({
|
|
364
364
|
dutyDeMinimisMessage,
|
|
365
365
|
inclusivePriceMessage,
|
|
366
366
|
taxDeMinimisMessage,
|
|
367
367
|
}), additionalInformation === null || additionalInformation === void 0 ? void 0 :
|
|
368
|
-
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info }))))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '
|
|
368
|
+
additionalInformation.map(info => (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Additional information for buying goods from selected country icon", content: BagIcon }), h("zonos-text", { "aria-label": `Additional information for buying goods from selected country message`, innerHTML: info }))))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '6a545ced019871fb0b6254b6ad8d61d21d855127', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'e951aa4125477220462fab0332d9badd05901875' }, h("zonos-country-select", { key: 'e949e265136e827272db29d7d09af5ea2da0a415', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: 'eaebd5ba3bdaf0f3d335b99f807ae432d9330db3' }, h("zonos-language-select", { key: '2900f41ecd69c84d59505b2f2771eef709e419e3', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
369
369
|
}
|
|
370
370
|
static get is() { return "zonos-hello-dialog"; }
|
|
371
371
|
static get encapsulation() { return "shadow"; }
|
|
@@ -348,7 +348,7 @@ export class ZonosController {
|
|
|
348
348
|
zonosStore.organizationName = organizationName;
|
|
349
349
|
}
|
|
350
350
|
render() {
|
|
351
|
-
return h(Host, { key: '
|
|
351
|
+
return h(Host, { key: '4fde0983cf8a248635f7e1d8c54c712142e9363d', class: "zonos--elements" });
|
|
352
352
|
}
|
|
353
353
|
static get is() { return "zonos-controller"; }
|
|
354
354
|
static get encapsulation() { return "shadow"; }
|
|
@@ -52,7 +52,7 @@ export class ZonosPaypalPayment {
|
|
|
52
52
|
this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
|
|
53
53
|
}
|
|
54
54
|
render() {
|
|
55
|
-
return (h(Host, { key: '
|
|
55
|
+
return (h(Host, { key: 'd652adf83bc2620a8c21a7b2e6d8c0c419be8a1b', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: 'd6fdb79be6b31b5a2fb5ad6cc11c6001d4ac31e9', class: "zonos--payment-paypal-container" })));
|
|
56
56
|
}
|
|
57
57
|
static get is() { return "zonos-paypal-payment"; }
|
|
58
58
|
static get encapsulation() { return "scoped"; }
|
|
@@ -422,7 +422,7 @@ const isPrefetchInfoOutdated = () => {
|
|
|
422
422
|
isAddressOutdated ||
|
|
423
423
|
isTotalAmountChanged);
|
|
424
424
|
};
|
|
425
|
-
const getCountryField = (country) => {
|
|
425
|
+
export const getCountryField = (country) => {
|
|
426
426
|
var _a, _b;
|
|
427
427
|
const countryFieldLabels = (_a = zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.countryFields;
|
|
428
428
|
const stripeCountryFieldLabels = (_b = zonosStore.genericSettings) === null || _b === void 0 ? void 0 : _b.stripeCountryFieldLabels;
|
|
@@ -19,6 +19,7 @@ import { logError } from "../../utils/logging/logError";
|
|
|
19
19
|
import { performBlurCurrency, removeBlurCurrency, } from "../../../utils/performBlurCurrency";
|
|
20
20
|
import { toggleBigcommerceNativeCurrencySelector } from "../../../utils/toggleBigcommerceNativeCurrencySelector";
|
|
21
21
|
const { dispose: localizationDispose, onChange: localizationStoreOnChange, state: localizationStore, } = createStore({
|
|
22
|
+
allCountries: null,
|
|
22
23
|
countryLandedCost: null,
|
|
23
24
|
customMessages: [],
|
|
24
25
|
exchangeRate: null,
|
|
@@ -335,6 +336,7 @@ const initLocalizationStore = async () => {
|
|
|
335
336
|
return countryInfo
|
|
336
337
|
? Object.assign(Object.assign({}, acc), { [countryCode]: countryInfo }) : acc;
|
|
337
338
|
}, {});
|
|
339
|
+
localizationStore.allCountries = allCountries;
|
|
338
340
|
localizationStore.shippingZoneCountries = filteredCountries || null;
|
|
339
341
|
localizationStore.inclusivePricingConfigurations =
|
|
340
342
|
((_a = window.Zonos.cartSettings) === null || _a === void 0 ? void 0 : _a.inclusivePriceConfigurations) || [];
|
|
@@ -119,6 +119,9 @@ export const stringsArabic = {
|
|
|
119
119
|
'Company name (optional)': {
|
|
120
120
|
value: 'اسم الشركة (اختياري)',
|
|
121
121
|
},
|
|
122
|
+
'Complete your shipping address': {
|
|
123
|
+
value: 'أكمل عنوان الشحن الخاص بك',
|
|
124
|
+
},
|
|
122
125
|
Confirm: {
|
|
123
126
|
value: 'تأكيد',
|
|
124
127
|
},
|
|
@@ -536,6 +539,9 @@ export const stringsArabic = {
|
|
|
536
539
|
'Return to merchant site': {
|
|
537
540
|
value: 'العودة إلى موقع التاجر',
|
|
538
541
|
},
|
|
542
|
+
'Save and continue': {
|
|
543
|
+
value: 'حفظ ومتابعة',
|
|
544
|
+
},
|
|
539
545
|
'Search countries': {
|
|
540
546
|
value: 'ابحث عن الدول',
|
|
541
547
|
},
|
|
@@ -554,6 +560,9 @@ export const stringsArabic = {
|
|
|
554
560
|
'Select a language': {
|
|
555
561
|
value: 'اختر لغة',
|
|
556
562
|
},
|
|
563
|
+
'Selected address': {
|
|
564
|
+
value: 'العنوان المحدد',
|
|
565
|
+
},
|
|
557
566
|
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
558
567
|
value: 'الجلسة لا تحتوي على تكلفة هبوط صالحة. يرجى الاتصال بـ [organizationName] للحصول على المساعدة.',
|
|
559
568
|
},
|
|
@@ -698,6 +707,9 @@ export const stringsArabic = {
|
|
|
698
707
|
"There's been an error updating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
699
708
|
value: 'حدث خطأ في تحديث جلسة الخروج الخاصة بك. يرجى إعادة التحميل والمحاولة مرة أخرى أو الاتصال بالدعم إذا استمر الخطأ',
|
|
700
709
|
},
|
|
710
|
+
'This saved address is missing information required to ship internationally. Please add the details below.': {
|
|
711
|
+
value: 'هذا العنوان المحفوظ يفتقد معلومات مطلوبة للشحن الدولي. يُرجى إضافة التفاصيل أدناه.',
|
|
712
|
+
},
|
|
701
713
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
702
714
|
value: 'لضمان التوصيل، يجب أن تكون جميع تفاصيل العنوان بأحرف لاتينية.',
|
|
703
715
|
},
|
|
@@ -120,6 +120,9 @@ export const stringsBase = {
|
|
|
120
120
|
'Company name (optional)': {
|
|
121
121
|
value: 'Company name (optional)',
|
|
122
122
|
},
|
|
123
|
+
'Complete your shipping address': {
|
|
124
|
+
value: 'Complete your shipping address',
|
|
125
|
+
},
|
|
123
126
|
Confirm: {
|
|
124
127
|
value: 'Confirm',
|
|
125
128
|
},
|
|
@@ -537,6 +540,9 @@ export const stringsBase = {
|
|
|
537
540
|
'Return to merchant site': {
|
|
538
541
|
value: 'Return to merchant site',
|
|
539
542
|
},
|
|
543
|
+
'Save and continue': {
|
|
544
|
+
value: 'Save and continue',
|
|
545
|
+
},
|
|
540
546
|
'Search countries': {
|
|
541
547
|
value: 'Search countries',
|
|
542
548
|
},
|
|
@@ -555,6 +561,9 @@ export const stringsBase = {
|
|
|
555
561
|
'Select a language': {
|
|
556
562
|
value: 'Select a language',
|
|
557
563
|
},
|
|
564
|
+
'Selected address': {
|
|
565
|
+
value: 'Selected address',
|
|
566
|
+
},
|
|
558
567
|
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
559
568
|
value: 'Session does not have valid landed cost. Please contact [organizationName] for assistance.',
|
|
560
569
|
},
|
|
@@ -699,6 +708,9 @@ export const stringsBase = {
|
|
|
699
708
|
"There's been an error updating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
700
709
|
value: "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists",
|
|
701
710
|
},
|
|
711
|
+
'This saved address is missing information required to ship internationally. Please add the details below.': {
|
|
712
|
+
value: 'This saved address is missing information required to ship internationally. Please add the details below.',
|
|
713
|
+
},
|
|
702
714
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
703
715
|
value: 'To ensure delivery all address details must be in Latin characters.',
|
|
704
716
|
},
|