@zonos/elements 1.3.280 → 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/{TaxId-12acedde.js → TaxId-cd9d490e.js} +1 -1
- package/dist/cjs/{cart-0fa312a5.js → cart-dc31b242.js} +3 -2
- package/dist/cjs/{collect-f9c4ca7c.js → collect-463ab3d7.js} +2 -2
- package/dist/cjs/getMissingRequiredShippingFields-7cd21100.js +50 -0
- package/dist/cjs/{hasInclusivePrice-95431bca.js → hasInclusivePrice-d14b9d71.js} +1 -1
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/{invoice-ce757565.js → invoice-8c995041.js} +2 -2
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-7fded969.js → localization-491121ad.js} +320 -80
- package/dist/cjs/{paypal-57ab3ab6.js → paypal-2a4c374c.js} +2 -2
- package/dist/cjs/{placeTestOrder-35e0d3bd.js → placeTestOrder-a940a2e9.js} +2 -2
- package/dist/cjs/{renderCheckoutCurrency-41d48407.js → renderCheckoutCurrency-ab39875a.js} +2 -2
- package/dist/cjs/{shouldRenderTaxIdInput-b8abf6de.js → shouldRenderTaxIdInput-7d19556c.js} +1 -1
- package/dist/cjs/{zonos-address-display_8.cjs.entry.js → zonos-address-completion-dialog_7.cjs.entry.js} +143 -151
- package/dist/cjs/zonos-address-display_2.cjs.entry.js +150 -0
- package/dist/cjs/zonos-address_4.cjs.entry.js +75 -14
- package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +4 -4
- 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 +10 -10
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +97 -25
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
- package/dist/cjs/zonos-checkout.cjs.entry.js +4 -4
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -7
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +20 -20
- package/dist/cjs/zonos-collect.cjs.entry.js +5 -5
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
- 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 +7 -7
- 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 +9 -9
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +15 -15
- package/dist/cjs/zonos-invoice.cjs.entry.js +5 -5
- 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 +4 -4
- 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 +16 -4
- package/dist/collection/components/store/translationStore/strings.base.js +16 -4
- package/dist/collection/components/store/translationStore/strings.chinese.js +16 -4
- package/dist/collection/components/store/translationStore/strings.danish.js +16 -4
- package/dist/collection/components/store/translationStore/strings.dutch.js +16 -4
- package/dist/collection/components/store/translationStore/strings.french.js +16 -4
- package/dist/collection/components/store/translationStore/strings.german.js +16 -4
- package/dist/collection/components/store/translationStore/strings.hebrew.js +16 -4
- package/dist/collection/components/store/translationStore/strings.indonesian.js +16 -4
- package/dist/collection/components/store/translationStore/strings.italian.js +16 -4
- package/dist/collection/components/store/translationStore/strings.japanese.js +16 -4
- package/dist/collection/components/store/translationStore/strings.korean.js +16 -4
- package/dist/collection/components/store/translationStore/strings.norwegian.js +16 -4
- package/dist/collection/components/store/translationStore/strings.polish.js +16 -4
- package/dist/collection/components/store/translationStore/strings.portuguese.js +16 -4
- package/dist/collection/components/store/translationStore/strings.russian.js +16 -4
- package/dist/collection/components/store/translationStore/strings.spanish.js +16 -4
- package/dist/collection/components/store/translationStore/strings.swedish.js +16 -4
- package/dist/collection/components/store/translationStore/strings.turkish.js +16 -4
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +16 -4
- 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/collection/components/utils/taxIdValidationResult.js +6 -3
- package/dist/collection/types/checkout/TaxId.js +1 -1
- package/dist/esm/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
- package/dist/esm/{cart-4699e6ab.js → cart-5282f6c1.js} +3 -3
- package/dist/esm/{collect-24cc2e12.js → collect-fdbab973.js} +2 -2
- package/dist/esm/getMissingRequiredShippingFields-bdeecbff.js +47 -0
- package/dist/esm/{hasInclusivePrice-f81ddcd6.js → hasInclusivePrice-161e203f.js} +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/{invoice-575dc93d.js → invoice-cf6ad79e.js} +2 -2
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-da2f407f.js → localization-0953a048.js} +320 -80
- package/dist/esm/{paypal-d4436abd.js → paypal-7c82eac4.js} +2 -2
- package/dist/esm/{placeTestOrder-d87b2c6a.js → placeTestOrder-6a746207.js} +2 -2
- package/dist/esm/{renderCheckoutCurrency-08526996.js → renderCheckoutCurrency-44f897a1.js} +2 -2
- package/dist/esm/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
- package/dist/esm/{zonos-address-display_8.entry.js → zonos-address-completion-dialog_7.entry.js} +144 -151
- package/dist/esm/zonos-address-display_2.entry.js +145 -0
- package/dist/esm/zonos-address_4.entry.js +75 -14
- package/dist/esm/zonos-airwallex-payment.entry.js +4 -4
- 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 +10 -10
- package/dist/esm/zonos-cart-items_12.entry.js +98 -26
- package/dist/esm/zonos-checkbox_2.entry.js +5 -5
- package/dist/esm/zonos-checkout.entry.js +4 -4
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -7
- package/dist/esm/zonos-collect-finish_6.entry.js +20 -20
- package/dist/esm/zonos-collect.entry.js +5 -5
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +4 -4
- 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 +7 -7
- 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 +9 -9
- package/dist/esm/zonos-invoice-finish_5.entry.js +15 -15
- package/dist/esm/zonos-invoice.entry.js +5 -5
- 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 +4 -4
- 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/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
- package/dist/esm-es5/{cart-4699e6ab.js → cart-5282f6c1.js} +1 -1
- package/dist/esm-es5/{collect-24cc2e12.js → collect-fdbab973.js} +1 -1
- package/dist/esm-es5/getMissingRequiredShippingFields-bdeecbff.js +1 -0
- package/dist/esm-es5/{hasInclusivePrice-f81ddcd6.js → hasInclusivePrice-161e203f.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{invoice-575dc93d.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-d4436abd.js → paypal-7c82eac4.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-d87b2c6a.js → placeTestOrder-6a746207.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-08526996.js → renderCheckoutCurrency-44f897a1.js} +1 -1
- package/dist/esm-es5/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.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 +125 -2
- 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 +14 -2
- package/dist/types/components/store/translationStore/strings.base.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.danish.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.french.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.german.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.italian.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.korean.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.polish.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.russian.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +14 -2
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +14 -2
- 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/utils/taxIdValidationResult.d.ts +1 -1
- package/dist/types/components.d.ts +97 -0
- package/dist/types/types/checkout/TaxId.d.ts +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-b330e451.system.js → p-0287f9cd.system.js} +1 -1
- package/dist/zonos-elements/{p-5aee5de5.system.entry.js → p-05cb0a0d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f90cb36.entry.js → p-0fb4e032.entry.js} +1 -1
- package/dist/zonos-elements/{p-dbd5be5d.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-b8c019b9.system.js → p-2394b186.system.js} +1 -1
- package/dist/zonos-elements/{p-5b54f10c.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-40a0c1d3.system.js → p-28ee0860.system.js} +1 -1
- package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
- package/dist/zonos-elements/{p-6bea1787.entry.js → p-30cfc9f4.entry.js} +1 -1
- package/dist/zonos-elements/{p-aff7112b.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-fc2d5dd9.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-72c1bd64.entry.js → p-56e9a29e.entry.js} +1 -1
- package/dist/zonos-elements/p-59518657.entry.js +1 -0
- 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-b05da593.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-81c4f04a.system.entry.js → p-68631285.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-12452213.entry.js → p-6f874ed9.entry.js} +1 -1
- package/dist/zonos-elements/p-71fc8a22.js +1 -0
- package/dist/zonos-elements/{p-c4a479ad.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-275fa2da.js → p-7ab15d20.js} +1 -1
- package/dist/zonos-elements/{p-48d55793.system.js → p-7ac8846c.system.js} +1 -1
- package/dist/zonos-elements/{p-96e7b465.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-944148db.system.entry.js → p-8fb15a6b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6451537c.entry.js → p-95042e71.entry.js} +1 -1
- package/dist/zonos-elements/p-987b5d8f.js +1 -0
- package/dist/zonos-elements/{p-2b8345d8.system.js → p-989cb22b.system.js} +1 -1
- package/dist/zonos-elements/{p-2dbdf883.system.js → p-a4eddf6c.system.js} +1 -1
- package/dist/zonos-elements/p-a553e132.js +1 -0
- package/dist/zonos-elements/{p-6197aa73.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-788a16bb.system.js → p-ab61ef19.system.js} +1 -1
- package/dist/zonos-elements/{p-362215b6.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-6b361d2b.js → p-bcf5cffb.js} +1 -1
- package/dist/zonos-elements/{p-807e7ebc.entry.js → p-c121b2b8.entry.js} +1 -1
- package/dist/zonos-elements/{p-66223935.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-f3759c70.js → p-c8bc4ede.js} +1 -1
- package/dist/zonos-elements/{p-a7f0e824.system.entry.js → p-c8df5eee.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-43a14674.system.entry.js → p-c9e44c77.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cf0c8c77.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-016b5bde.system.js → p-cd3f7fd7.system.js} +1 -1
- package/dist/zonos-elements/{p-b6cd6e62.system.entry.js → p-d06486ba.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-db9cb522.entry.js → p-d0767f88.entry.js} +1 -1
- package/dist/zonos-elements/{p-46f88c11.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-85796e67.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-b6049eef.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-a30f03d6.system.js → p-e57f862d.system.js} +1 -1
- package/dist/zonos-elements/{p-1bb85ff1.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-564c7bb5.system.entry.js → p-f1298203.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0adab1d5.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-3068247c.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-da2f407f.js +0 -1
- package/dist/esm-es5/zonos-address-display_8.entry.js +0 -1
- package/dist/zonos-elements/p-19f4e77a.entry.js +0 -1
- package/dist/zonos-elements/p-28b1c189.entry.js +0 -1
- package/dist/zonos-elements/p-39e2642f.js +0 -1
- package/dist/zonos-elements/p-3f8f4c78.js +0 -1
- package/dist/zonos-elements/p-63a383f4.js +0 -1
- package/dist/zonos-elements/p-65fe75e1.entry.js +0 -1
- package/dist/zonos-elements/p-67b2e46c.js +0 -1
- package/dist/zonos-elements/p-7237ec6f.system.entry.js +0 -1
- package/dist/zonos-elements/p-75da4ba0.entry.js +0 -1
- package/dist/zonos-elements/p-79b6070a.js +0 -1
- package/dist/zonos-elements/p-94329e56.js +0 -1
- package/dist/zonos-elements/p-a5afcea1.system.entry.js +0 -1
- package/dist/zonos-elements/p-c2014d57.system.entry.js +0 -1
- package/dist/zonos-elements/p-dff1d3be.entry.js +0 -1
- package/dist/zonos-elements/p-ec53c436.system.entry.js +0 -1
- package/dist/zonos-elements/p-f55a2352.system.js +0 -1
- package/dist/zonos-elements/p-fd2d4d04.system.js +0 -1
|
@@ -119,6 +119,9 @@ export const stringsNorwegian = {
|
|
|
119
119
|
'Company name (optional)': {
|
|
120
120
|
value: 'Firmanavn (valgfritt)',
|
|
121
121
|
},
|
|
122
|
+
'Complete your shipping address': {
|
|
123
|
+
value: 'Fullfør leveringsadressen din',
|
|
124
|
+
},
|
|
122
125
|
Confirm: {
|
|
123
126
|
value: 'Bekreft',
|
|
124
127
|
},
|
|
@@ -308,8 +311,8 @@ export const stringsNorwegian = {
|
|
|
308
311
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
309
312
|
value: 'Ugyldig CUIT/CUIL-format. Må inneholde 11 sifre, med eller uten bindestreker (XX-XXXXXXXX-X).',
|
|
310
313
|
},
|
|
311
|
-
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
312
|
-
value: 'Ugyldig RFC-format. Må
|
|
314
|
+
'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
|
|
315
|
+
value: 'Ugyldig RFC- eller CURP-format. Må være en RFC på 12–13 tegn eller en CURP på 18 tegn, kun store bokstaver og tall.',
|
|
313
316
|
},
|
|
314
317
|
'Invalid promo code': {
|
|
315
318
|
value: 'Ugyldig kampanjekode',
|
|
@@ -512,8 +515,8 @@ export const stringsNorwegian = {
|
|
|
512
515
|
Quantity: {
|
|
513
516
|
value: 'Mengde',
|
|
514
517
|
},
|
|
515
|
-
'RFC number': {
|
|
516
|
-
value: 'RFC-nummer',
|
|
518
|
+
'RFC or CURP number': {
|
|
519
|
+
value: 'RFC- eller CURP-nummer',
|
|
517
520
|
},
|
|
518
521
|
'Refund policy': {
|
|
519
522
|
value: 'Refusjonspolicy',
|
|
@@ -536,6 +539,9 @@ export const stringsNorwegian = {
|
|
|
536
539
|
'Return to merchant site': {
|
|
537
540
|
value: 'Gå tilbake til forhandlersiden',
|
|
538
541
|
},
|
|
542
|
+
'Save and continue': {
|
|
543
|
+
value: 'Lagre og fortsett',
|
|
544
|
+
},
|
|
539
545
|
'Search countries': {
|
|
540
546
|
value: 'Søk land',
|
|
541
547
|
},
|
|
@@ -554,6 +560,9 @@ export const stringsNorwegian = {
|
|
|
554
560
|
'Select a language': {
|
|
555
561
|
value: 'Velg et språk',
|
|
556
562
|
},
|
|
563
|
+
'Selected address': {
|
|
564
|
+
value: 'Valgt adresse',
|
|
565
|
+
},
|
|
557
566
|
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
558
567
|
value: 'Økten har ikke gyldige landingskostnader. Vennligst kontakt [organizationName] for assistanse.',
|
|
559
568
|
},
|
|
@@ -698,6 +707,9 @@ export const stringsNorwegian = {
|
|
|
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: 'Det har oppstått en feil under oppdatering av utsjekkingssesjonen din. Vennligst last inn siden på nytt og prøv igjen, eller kontakt støtte hvis feilen vedvarer',
|
|
700
709
|
},
|
|
710
|
+
'This saved address is missing information required to ship internationally. Please add the details below.': {
|
|
711
|
+
value: 'Denne lagrede adressen mangler informasjon som kreves for internasjonal frakt. Vennligst legg til detaljene nedenfor.',
|
|
712
|
+
},
|
|
701
713
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
702
714
|
value: 'For å sikre levering må alle adresseopplysninger være på latinske tegn.',
|
|
703
715
|
},
|
|
@@ -119,6 +119,9 @@ export const stringsPolish = {
|
|
|
119
119
|
'Company name (optional)': {
|
|
120
120
|
value: 'Nazwa firmy (opcjonalnie)',
|
|
121
121
|
},
|
|
122
|
+
'Complete your shipping address': {
|
|
123
|
+
value: 'Uzupełnij swój adres dostawy',
|
|
124
|
+
},
|
|
122
125
|
Confirm: {
|
|
123
126
|
value: 'Potwierdź',
|
|
124
127
|
},
|
|
@@ -308,8 +311,8 @@ export const stringsPolish = {
|
|
|
308
311
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
309
312
|
value: 'Nieprawidłowy format CUIT/CUIL. Musi zawierać 11 cyfr, z myślnikami lub bez (XX-XXXXXXXX-X).',
|
|
310
313
|
},
|
|
311
|
-
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
312
|
-
value: 'Nieprawidłowy format RFC. Musi
|
|
314
|
+
'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
|
|
315
|
+
value: 'Nieprawidłowy format RFC lub CURP. Musi to być RFC o długości 12–13 znaków lub CURP o długości 18 znaków, tylko wielkie litery i cyfry.',
|
|
313
316
|
},
|
|
314
317
|
'Invalid promo code': {
|
|
315
318
|
value: 'Nieprawidłowy kod promocyjny',
|
|
@@ -512,8 +515,8 @@ export const stringsPolish = {
|
|
|
512
515
|
Quantity: {
|
|
513
516
|
value: 'Ilość',
|
|
514
517
|
},
|
|
515
|
-
'RFC number': {
|
|
516
|
-
value: 'Numer RFC',
|
|
518
|
+
'RFC or CURP number': {
|
|
519
|
+
value: 'Numer RFC lub CURP',
|
|
517
520
|
},
|
|
518
521
|
'Refund policy': {
|
|
519
522
|
value: 'Polityka zwrotów',
|
|
@@ -536,6 +539,9 @@ export const stringsPolish = {
|
|
|
536
539
|
'Return to merchant site': {
|
|
537
540
|
value: 'Powrót do strony sprzedawcy',
|
|
538
541
|
},
|
|
542
|
+
'Save and continue': {
|
|
543
|
+
value: 'Zapisz i kontynuuj',
|
|
544
|
+
},
|
|
539
545
|
'Search countries': {
|
|
540
546
|
value: 'Szukaj krajów',
|
|
541
547
|
},
|
|
@@ -554,6 +560,9 @@ export const stringsPolish = {
|
|
|
554
560
|
'Select a language': {
|
|
555
561
|
value: 'Wybierz język',
|
|
556
562
|
},
|
|
563
|
+
'Selected address': {
|
|
564
|
+
value: 'Wybrany adres',
|
|
565
|
+
},
|
|
557
566
|
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
558
567
|
value: 'Sesja nie ma prawidłowego kosztu lądowania. Proszę skontaktować się z [organizationName] po pomoc.',
|
|
559
568
|
},
|
|
@@ -698,6 +707,9 @@ export const stringsPolish = {
|
|
|
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: 'Podczas aktualizacji Twojej sesji płatności wystąpił błąd. Proszę odświeżyć stronę i spróbować ponownie lub skontaktować się z obsługą, jeśli błąd będzie się utrzymywał',
|
|
700
709
|
},
|
|
710
|
+
'This saved address is missing information required to ship internationally. Please add the details below.': {
|
|
711
|
+
value: 'W tym zapisanym adresie brakuje informacji wymaganych do wysyłki międzynarodowej. Dodaj szczegóły poniżej.',
|
|
712
|
+
},
|
|
701
713
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
702
714
|
value: 'Aby zapewnić dostawę, wszystkie szczegóły adresu muszą być w znakach łacińskich.',
|
|
703
715
|
},
|
|
@@ -119,6 +119,9 @@ export const stringsPortuguese = {
|
|
|
119
119
|
'Company name (optional)': {
|
|
120
120
|
value: 'Nome da empresa (opcional)',
|
|
121
121
|
},
|
|
122
|
+
'Complete your shipping address': {
|
|
123
|
+
value: 'Complete o seu endereço de entrega',
|
|
124
|
+
},
|
|
122
125
|
Confirm: {
|
|
123
126
|
value: 'Confirmar',
|
|
124
127
|
},
|
|
@@ -308,8 +311,8 @@ export const stringsPortuguese = {
|
|
|
308
311
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
309
312
|
value: 'Formato de CUIT/CUIL inválido. Deve conter 11 dígitos, com ou sem traços (XX-XXXXXXXX-X).',
|
|
310
313
|
},
|
|
311
|
-
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
312
|
-
value: 'Formato de RFC inválido. Deve
|
|
314
|
+
'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
|
|
315
|
+
value: 'Formato de RFC ou CURP inválido. Deve ser um RFC de 12–13 caracteres ou um CURP de 18 caracteres, apenas letras maiúsculas e números.',
|
|
313
316
|
},
|
|
314
317
|
'Invalid promo code': {
|
|
315
318
|
value: 'Código promocional inválido',
|
|
@@ -512,8 +515,8 @@ export const stringsPortuguese = {
|
|
|
512
515
|
Quantity: {
|
|
513
516
|
value: 'Quantidade',
|
|
514
517
|
},
|
|
515
|
-
'RFC number': {
|
|
516
|
-
value: 'Número RFC',
|
|
518
|
+
'RFC or CURP number': {
|
|
519
|
+
value: 'Número RFC ou CURP',
|
|
517
520
|
},
|
|
518
521
|
'Refund policy': {
|
|
519
522
|
value: 'Política de reembolso',
|
|
@@ -536,6 +539,9 @@ export const stringsPortuguese = {
|
|
|
536
539
|
'Return to merchant site': {
|
|
537
540
|
value: 'Retornar ao site do comerciante',
|
|
538
541
|
},
|
|
542
|
+
'Save and continue': {
|
|
543
|
+
value: 'Salvar e continuar',
|
|
544
|
+
},
|
|
539
545
|
'Search countries': {
|
|
540
546
|
value: 'Buscar países',
|
|
541
547
|
},
|
|
@@ -554,6 +560,9 @@ export const stringsPortuguese = {
|
|
|
554
560
|
'Select a language': {
|
|
555
561
|
value: 'Selecionar um idioma',
|
|
556
562
|
},
|
|
563
|
+
'Selected address': {
|
|
564
|
+
value: 'Endereço selecionado',
|
|
565
|
+
},
|
|
557
566
|
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
558
567
|
value: 'A sessão não possui custo de desembarque válido. Por favor, entre em contato com [organizationName] para assistência.',
|
|
559
568
|
},
|
|
@@ -698,6 +707,9 @@ export const stringsPortuguese = {
|
|
|
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: 'Ocorreu um erro ao atualizar a sua sessão de checkout. Por favor, recarregue a página e tente novamente ou entre em contato com o suporte se o erro persistir',
|
|
700
709
|
},
|
|
710
|
+
'This saved address is missing information required to ship internationally. Please add the details below.': {
|
|
711
|
+
value: 'Este endereço salvo está sem informações necessárias para o envio internacional. Adicione os detalhes abaixo.',
|
|
712
|
+
},
|
|
701
713
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
702
714
|
value: 'Para garantir a entrega, todos os detalhes do endereço devem estar em caracteres latinos.',
|
|
703
715
|
},
|
|
@@ -119,6 +119,9 @@ export const stringsRussian = {
|
|
|
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
|
},
|
|
@@ -308,8 +311,8 @@ export const stringsRussian = {
|
|
|
308
311
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
309
312
|
value: 'Неверный формат CUIT/CUIL. Должен содержать 11 цифр, с дефисами или без (XX-XXXXXXXX-X).',
|
|
310
313
|
},
|
|
311
|
-
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
312
|
-
value: 'Неверный формат RFC.
|
|
314
|
+
'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
|
|
315
|
+
value: 'Неверный формат RFC или CURP. Должен быть RFC из 12–13 символов или CURP из 18 символов, только заглавные буквы и цифры.',
|
|
313
316
|
},
|
|
314
317
|
'Invalid promo code': {
|
|
315
318
|
value: 'Недействительный промо-код',
|
|
@@ -512,8 +515,8 @@ export const stringsRussian = {
|
|
|
512
515
|
Quantity: {
|
|
513
516
|
value: 'Количество',
|
|
514
517
|
},
|
|
515
|
-
'RFC number': {
|
|
516
|
-
value: 'Номер RFC',
|
|
518
|
+
'RFC or CURP number': {
|
|
519
|
+
value: 'Номер RFC или CURP',
|
|
517
520
|
},
|
|
518
521
|
'Refund policy': {
|
|
519
522
|
value: 'Политика возврата',
|
|
@@ -536,6 +539,9 @@ export const stringsRussian = {
|
|
|
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 stringsRussian = {
|
|
|
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 stringsRussian = {
|
|
|
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
|
},
|
|
@@ -119,6 +119,9 @@ export const stringsSpanish = {
|
|
|
119
119
|
'Company name (optional)': {
|
|
120
120
|
value: 'Nombre de la empresa (opcional)',
|
|
121
121
|
},
|
|
122
|
+
'Complete your shipping address': {
|
|
123
|
+
value: 'Complete su dirección de envío',
|
|
124
|
+
},
|
|
122
125
|
Confirm: {
|
|
123
126
|
value: 'Confirmar',
|
|
124
127
|
},
|
|
@@ -308,8 +311,8 @@ export const stringsSpanish = {
|
|
|
308
311
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
309
312
|
value: 'Formato de CUIT/CUIL inválido. Debe contener 11 dígitos, con o sin guiones (XX-XXXXXXXX-X).',
|
|
310
313
|
},
|
|
311
|
-
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
312
|
-
value: 'Formato de RFC
|
|
314
|
+
'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
|
|
315
|
+
value: 'Formato de RFC o CURP inválido. Debe ser un RFC de 12–13 caracteres o una CURP de 18 caracteres, solo letras mayúsculas y números.',
|
|
313
316
|
},
|
|
314
317
|
'Invalid promo code': {
|
|
315
318
|
value: 'Código promocional no válido',
|
|
@@ -512,8 +515,8 @@ export const stringsSpanish = {
|
|
|
512
515
|
Quantity: {
|
|
513
516
|
value: 'Cantidad',
|
|
514
517
|
},
|
|
515
|
-
'RFC number': {
|
|
516
|
-
value: 'Número RFC',
|
|
518
|
+
'RFC or CURP number': {
|
|
519
|
+
value: 'Número RFC o CURP',
|
|
517
520
|
},
|
|
518
521
|
'Refund policy': {
|
|
519
522
|
value: 'Política de reembolso',
|
|
@@ -536,6 +539,9 @@ export const stringsSpanish = {
|
|
|
536
539
|
'Return to merchant site': {
|
|
537
540
|
value: 'Regresar al sitio del comerciante',
|
|
538
541
|
},
|
|
542
|
+
'Save and continue': {
|
|
543
|
+
value: 'Guardar y continuar',
|
|
544
|
+
},
|
|
539
545
|
'Search countries': {
|
|
540
546
|
value: 'Buscar países',
|
|
541
547
|
},
|
|
@@ -554,6 +560,9 @@ export const stringsSpanish = {
|
|
|
554
560
|
'Select a language': {
|
|
555
561
|
value: 'Seleccionar un idioma',
|
|
556
562
|
},
|
|
563
|
+
'Selected address': {
|
|
564
|
+
value: 'Dirección seleccionada',
|
|
565
|
+
},
|
|
557
566
|
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
558
567
|
value: 'La sesión no tiene un costo de aterrizaje válido. Por favor, contacte a [organizationName] para obtener ayuda.',
|
|
559
568
|
},
|
|
@@ -698,6 +707,9 @@ export const stringsSpanish = {
|
|
|
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: 'Se ha producido un error al actualizar su sesión de pago. Vuelva a cargar la página e inténtelo de nuevo o póngase en contacto con el soporte si el error persiste',
|
|
700
709
|
},
|
|
710
|
+
'This saved address is missing information required to ship internationally. Please add the details below.': {
|
|
711
|
+
value: 'A esta dirección guardada le falta información necesaria para el envío internacional. Agregue los detalles a continuación.',
|
|
712
|
+
},
|
|
701
713
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
702
714
|
value: 'Para asegurar la entrega, todos los detalles de la dirección deben estar en caracteres latinos.',
|
|
703
715
|
},
|
|
@@ -119,6 +119,9 @@ export const stringsSwedish = {
|
|
|
119
119
|
'Company name (optional)': {
|
|
120
120
|
value: 'Företagsnamn (valfritt)',
|
|
121
121
|
},
|
|
122
|
+
'Complete your shipping address': {
|
|
123
|
+
value: 'Fyll i din leveransadress',
|
|
124
|
+
},
|
|
122
125
|
Confirm: {
|
|
123
126
|
value: 'Bekräfta',
|
|
124
127
|
},
|
|
@@ -308,8 +311,8 @@ export const stringsSwedish = {
|
|
|
308
311
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
309
312
|
value: 'Ogiltigt CUIT/CUIL-format. Måste innehålla 11 siffror, med eller utan bindestreck (XX-XXXXXXXX-X).',
|
|
310
313
|
},
|
|
311
|
-
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
312
|
-
value: 'Ogiltigt RFC-format. Måste
|
|
314
|
+
'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
|
|
315
|
+
value: 'Ogiltigt RFC- eller CURP-format. Måste vara ett RFC på 12–13 tecken eller ett CURP på 18 tecken, endast versaler och siffror.',
|
|
313
316
|
},
|
|
314
317
|
'Invalid promo code': {
|
|
315
318
|
value: 'Ogiltig kampanjkod',
|
|
@@ -512,8 +515,8 @@ export const stringsSwedish = {
|
|
|
512
515
|
Quantity: {
|
|
513
516
|
value: 'Kvantitet',
|
|
514
517
|
},
|
|
515
|
-
'RFC number': {
|
|
516
|
-
value: 'RFC-nummer',
|
|
518
|
+
'RFC or CURP number': {
|
|
519
|
+
value: 'RFC- eller CURP-nummer',
|
|
517
520
|
},
|
|
518
521
|
'Refund policy': {
|
|
519
522
|
value: 'Återbetalningspolicy',
|
|
@@ -536,6 +539,9 @@ export const stringsSwedish = {
|
|
|
536
539
|
'Return to merchant site': {
|
|
537
540
|
value: 'Återgå till handlarens webbplats',
|
|
538
541
|
},
|
|
542
|
+
'Save and continue': {
|
|
543
|
+
value: 'Spara och fortsätt',
|
|
544
|
+
},
|
|
539
545
|
'Search countries': {
|
|
540
546
|
value: 'Sök länder',
|
|
541
547
|
},
|
|
@@ -554,6 +560,9 @@ export const stringsSwedish = {
|
|
|
554
560
|
'Select a language': {
|
|
555
561
|
value: 'Välj ett språk',
|
|
556
562
|
},
|
|
563
|
+
'Selected address': {
|
|
564
|
+
value: 'Vald adress',
|
|
565
|
+
},
|
|
557
566
|
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
558
567
|
value: 'Sessionen har inte giltig landningskostnad. Vänligen kontakta [organizationName] för hjälp.',
|
|
559
568
|
},
|
|
@@ -698,6 +707,9 @@ export const stringsSwedish = {
|
|
|
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: 'Det har uppstått ett fel när din utcheckningssession uppdaterades. Vänligen ladda om sidan och försök igen eller kontakta supporten om felet kvarstår',
|
|
700
709
|
},
|
|
710
|
+
'This saved address is missing information required to ship internationally. Please add the details below.': {
|
|
711
|
+
value: 'Den här sparade adressen saknar information som krävs för internationell frakt. Lägg till uppgifterna nedan.',
|
|
712
|
+
},
|
|
701
713
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
702
714
|
value: 'För att säkerställa leveransen måste alla adressuppgifter vara på latinska tecken.',
|
|
703
715
|
},
|
|
@@ -119,6 +119,9 @@ export const stringsTurkish = {
|
|
|
119
119
|
'Company name (optional)': {
|
|
120
120
|
value: 'Şirket adı (isteğe bağlı)',
|
|
121
121
|
},
|
|
122
|
+
'Complete your shipping address': {
|
|
123
|
+
value: 'Teslimat adresinizi tamamlayın',
|
|
124
|
+
},
|
|
122
125
|
Confirm: {
|
|
123
126
|
value: 'Onayla',
|
|
124
127
|
},
|
|
@@ -308,8 +311,8 @@ export const stringsTurkish = {
|
|
|
308
311
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
309
312
|
value: 'Geçersiz CUIT/CUIL formatı. Tireli veya tiresiz 11 rakam içermelidir (XX-XXXXXXXX-X).',
|
|
310
313
|
},
|
|
311
|
-
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
312
|
-
value: 'Geçersiz RFC formatı.
|
|
314
|
+
'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
|
|
315
|
+
value: 'Geçersiz RFC veya CURP formatı. 12–13 karakterlik bir RFC veya 18 karakterlik bir CURP olmalı, yalnızca büyük harf ve rakam.',
|
|
313
316
|
},
|
|
314
317
|
'Invalid promo code': {
|
|
315
318
|
value: 'Geçersiz promosyon kodu',
|
|
@@ -512,8 +515,8 @@ export const stringsTurkish = {
|
|
|
512
515
|
Quantity: {
|
|
513
516
|
value: 'Miktar',
|
|
514
517
|
},
|
|
515
|
-
'RFC number': {
|
|
516
|
-
value: 'RFC numarası',
|
|
518
|
+
'RFC or CURP number': {
|
|
519
|
+
value: 'RFC veya CURP numarası',
|
|
517
520
|
},
|
|
518
521
|
'Refund policy': {
|
|
519
522
|
value: 'İade politikası',
|
|
@@ -536,6 +539,9 @@ export const stringsTurkish = {
|
|
|
536
539
|
'Return to merchant site': {
|
|
537
540
|
value: 'Satıcı sitesine dön',
|
|
538
541
|
},
|
|
542
|
+
'Save and continue': {
|
|
543
|
+
value: 'Kaydet ve devam et',
|
|
544
|
+
},
|
|
539
545
|
'Search countries': {
|
|
540
546
|
value: 'Ülkeleri ara',
|
|
541
547
|
},
|
|
@@ -554,6 +560,9 @@ export const stringsTurkish = {
|
|
|
554
560
|
'Select a language': {
|
|
555
561
|
value: 'Bir dil seçin',
|
|
556
562
|
},
|
|
563
|
+
'Selected address': {
|
|
564
|
+
value: 'Seçilen adres',
|
|
565
|
+
},
|
|
557
566
|
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
558
567
|
value: 'Oturumun geçerli bir iniş maliyeti yok. Yardım için lütfen [organizationName] ile iletişime geçin.',
|
|
559
568
|
},
|
|
@@ -698,6 +707,9 @@ export const stringsTurkish = {
|
|
|
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: 'Ödeme oturumunuzu güncelleme sırasında bir hata oluştu. Lütfen hata devam ederse sayfayı yeniden yükleyin ve tekrar deneyin veya destekle iletişime geçin',
|
|
700
709
|
},
|
|
710
|
+
'This saved address is missing information required to ship internationally. Please add the details below.': {
|
|
711
|
+
value: 'Bu kayıtlı adreste uluslararası gönderim için gerekli bilgiler eksik. Lütfen ayrıntıları aşağıya ekleyin.',
|
|
712
|
+
},
|
|
701
713
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
702
714
|
value: 'Teslimatı sağlamak için tüm adres detaylarının Latin karakterleriyle olması gerekir.',
|
|
703
715
|
},
|
|
@@ -119,6 +119,9 @@ export const stringsVietnamese = {
|
|
|
119
119
|
'Company name (optional)': {
|
|
120
120
|
value: 'Tên công ty (tùy chọn)',
|
|
121
121
|
},
|
|
122
|
+
'Complete your shipping address': {
|
|
123
|
+
value: 'Hoàn tất địa chỉ giao hàng của bạn',
|
|
124
|
+
},
|
|
122
125
|
Confirm: {
|
|
123
126
|
value: 'Xác nhận',
|
|
124
127
|
},
|
|
@@ -308,8 +311,8 @@ export const stringsVietnamese = {
|
|
|
308
311
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
309
312
|
value: 'Định dạng CUIT/CUIL không hợp lệ. Phải chứa 11 chữ số, có hoặc không có dấu gạch ngang (XX-XXXXXXXX-X).',
|
|
310
313
|
},
|
|
311
|
-
'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
|
|
312
|
-
value: 'Định dạng RFC không hợp lệ. Phải
|
|
314
|
+
'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.': {
|
|
315
|
+
value: 'Định dạng RFC hoặc CURP không hợp lệ. Phải là RFC gồm 12–13 ký tự hoặc CURP gồm 18 ký tự, chỉ gồm chữ in hoa và số.',
|
|
313
316
|
},
|
|
314
317
|
'Invalid promo code': {
|
|
315
318
|
value: 'Mã khuyến mãi không hợp lệ',
|
|
@@ -512,8 +515,8 @@ export const stringsVietnamese = {
|
|
|
512
515
|
Quantity: {
|
|
513
516
|
value: 'Số lượng',
|
|
514
517
|
},
|
|
515
|
-
'RFC number': {
|
|
516
|
-
value: 'Số RFC',
|
|
518
|
+
'RFC or CURP number': {
|
|
519
|
+
value: 'Số RFC hoặc CURP',
|
|
517
520
|
},
|
|
518
521
|
'Refund policy': {
|
|
519
522
|
value: 'Chính sách hoàn tiền',
|
|
@@ -536,6 +539,9 @@ export const stringsVietnamese = {
|
|
|
536
539
|
'Return to merchant site': {
|
|
537
540
|
value: 'Quay lại trang web của người bán',
|
|
538
541
|
},
|
|
542
|
+
'Save and continue': {
|
|
543
|
+
value: 'Lưu và tiếp tục',
|
|
544
|
+
},
|
|
539
545
|
'Search countries': {
|
|
540
546
|
value: 'Tìm kiếm quốc gia',
|
|
541
547
|
},
|
|
@@ -554,6 +560,9 @@ export const stringsVietnamese = {
|
|
|
554
560
|
'Select a language': {
|
|
555
561
|
value: 'Chọn một ngôn ngữ',
|
|
556
562
|
},
|
|
563
|
+
'Selected address': {
|
|
564
|
+
value: 'Địa chỉ đã chọn',
|
|
565
|
+
},
|
|
557
566
|
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
558
567
|
value: 'Phiên không có chi phí hạ cánh hợp lệ. Vui lòng liên hệ [organizationName] để được hỗ trợ.',
|
|
559
568
|
},
|
|
@@ -698,6 +707,9 @@ export const stringsVietnamese = {
|
|
|
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: 'Đã xảy ra lỗi khi cập nhật phiên thanh toán của bạn. Vui lòng tải lại và thử lại hoặc liên hệ với hỗ trợ nếu lỗi vẫn tiếp tục',
|
|
700
709
|
},
|
|
710
|
+
'This saved address is missing information required to ship internationally. Please add the details below.': {
|
|
711
|
+
value: 'Địa chỉ đã lưu này thiếu thông tin cần thiết để giao hàng quốc tế. Vui lòng thêm chi tiết bên dưới.',
|
|
712
|
+
},
|
|
701
713
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
702
714
|
value: 'Để đảm bảo giao hàng, tất cả chi tiết địa chỉ phải bằng ký tự Latinh.',
|
|
703
715
|
},
|
|
@@ -6,6 +6,7 @@ import { storageStore, storageStoreOnChange, } from "../../store/storageStore";
|
|
|
6
6
|
import { translate } from "../../store/translationStore";
|
|
7
7
|
import { zonosStore } from "../../store/zonosStore";
|
|
8
8
|
import { trackConversionEvent } from "../../utils/api/trackConversionEvent";
|
|
9
|
+
import { buildAddressContacts } from "../../utils/checkout/buildAddressContacts";
|
|
9
10
|
import { isCheckoutMobile } from "../../utils/checkout/isCheckoutMobile";
|
|
10
11
|
import { shouldRenderShortAddressCodeInput } from "../../utils/checkout/shouldRenderShortAddressCodeInput";
|
|
11
12
|
import { shouldRenderTaxIdInput } from "../../utils/checkout/shouldRenderTaxIdInput";
|
|
@@ -138,10 +139,14 @@ export class ZonosAddress {
|
|
|
138
139
|
log(`Stripe country code: ${defaultAddressCountry}`, 'info');
|
|
139
140
|
const addressElement = stripeElements.create('address', {
|
|
140
141
|
allowedCountries: checkoutAllCountries ? [] : allowedCountries,
|
|
141
|
-
//
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
142
|
+
// Prepend the currently selected address so it stays selected across remounts
|
|
143
|
+
// (customer <-> shipping step navigation), de-duped against the default addresses.
|
|
144
|
+
// Contacts are computed once here at create() time and never mutated afterwards—
|
|
145
|
+
// mutating the contacts value after a remount breaks the element's onChange events.
|
|
146
|
+
contacts: buildAddressContacts({
|
|
147
|
+
currentEvent: stripeAddressEventData,
|
|
148
|
+
defaultAddress,
|
|
149
|
+
}),
|
|
145
150
|
defaultValues: {
|
|
146
151
|
address: Object.assign(Object.assign({}, stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address), { country: defaultAddressCountry }),
|
|
147
152
|
firstName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.firstName,
|
|
@@ -352,11 +357,11 @@ export class ZonosAddress {
|
|
|
352
357
|
this.isAddressFilled = true;
|
|
353
358
|
}
|
|
354
359
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
355
|
-
return (h(Host, { key: '
|
|
360
|
+
return (h(Host, { key: '195940efdd29696d99b1ab6524a53e6a03776c6a', class: classes([
|
|
356
361
|
'zonos--address',
|
|
357
362
|
'zonos--elements',
|
|
358
363
|
`zonos--${this.type}-address`,
|
|
359
|
-
]) }, this.titleText && (h("zonos-text", { key: '
|
|
364
|
+
]) }, this.titleText && (h("zonos-text", { key: '968d5990fce9c1eb22cd10b58744e6d00f2e622d', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: 'ae6dd70dcaa5ecd3465c065736e0f31fb40e72d3', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), h("div", { key: '0bf3075670d3fcd945f9ddcbe096399e2dc213ed', class: "zonos--address-component" })));
|
|
360
365
|
}
|
|
361
366
|
static get is() { return "zonos-address"; }
|
|
362
367
|
static get encapsulation() { return "scoped"; }
|
|
@@ -78,9 +78,9 @@ export class ZonosAddressSuggestions {
|
|
|
78
78
|
return segments;
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '20e095515d18016bd1f538bd345ed58aafe8518f', class: "zonos--address-suggestions", role: "group", style: {
|
|
82
82
|
'--zonos--border-radius': getBorderRadius(),
|
|
83
|
-
} }, h("ul", { key: '
|
|
83
|
+
} }, h("ul", { key: 'f43e0820d29fc5ef96ab42402e370dc6ce381e66', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: 'd8ff4f7b53ea5fac8f42f1c13b2255ca2ea5d5e8', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '2431de3e4e5241e5d74f552051a5d3d4954624a5', class: "powered-by-container" }, h("zonos-text", { key: '48de6d435ffef45f60ebb4ef6c4b2eaf5bdee821', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: 'b0e8f2986d4f85daa2fd53b7ea812d296d28a164', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: 'e62245b99bcdc192a4ee98511c8a4a0efad6ea92', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
|
|
84
84
|
this.localSuggestions = [];
|
|
85
85
|
} }))), this.localSuggestions.map(suggestion => (
|
|
86
86
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -924,10 +924,10 @@ export class ZonosAddress {
|
|
|
924
924
|
this.country = localizationStore.selectedCountryCode;
|
|
925
925
|
}
|
|
926
926
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
927
|
-
return (h(Host, { key: '
|
|
927
|
+
return (h(Host, { key: '1e90973654268e1af1e98bf606f71d55c63f5656', class: classes([
|
|
928
928
|
'zonos--address zonos--elements',
|
|
929
929
|
`zonos--${this.type}-address`,
|
|
930
|
-
]) }, h("zonos-text", { key: '
|
|
930
|
+
]) }, h("zonos-text", { key: 'f986a00640502fb262cc424e57f5edb1f4cdbb9c', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: '57ae4b8393e350b99112e6a7800a97d6a524d57c', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), this.renderCustomAddressForm()));
|
|
931
931
|
}
|
|
932
932
|
static get is() { return "zonos-custom-address"; }
|
|
933
933
|
static get encapsulation() { return "scoped"; }
|
|
@@ -67,7 +67,7 @@ export class ZonosPayment {
|
|
|
67
67
|
}
|
|
68
68
|
render() {
|
|
69
69
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
70
|
-
return (h(Host, { key: '
|
|
70
|
+
return (h(Host, { key: '8ccf61c2c78fac6b3d981b18dedae1e32921eb14', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '5ae4d0452d284b793ac179254b1891c183d63f03', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '251e74ccefed8ee31135cc29cdd71497f7cb1a8a', class: "zonos--payment-component" }), h("div", { key: 'b32c007382c63482f3e7f9af7c60afaaf8b4dbb9', class: "zonos--payment-paypal-container" })));
|
|
71
71
|
}
|
|
72
72
|
static get is() { return "zonos-payment"; }
|
|
73
73
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { extractName } from "../extractName";
|
|
2
|
+
/**
|
|
3
|
+
* Merge the fields captured in the completion dialog back into a Stripe shipping address event,
|
|
4
|
+
* rebuilding the full name from the extracted first name and the provided/known last name and
|
|
5
|
+
* marking the address complete. Fields the customer wasn't asked for are left untouched.
|
|
6
|
+
*
|
|
7
|
+
* Pure: returns a new event object rather than mutating the input, so it can be unit-tested and
|
|
8
|
+
* assigned straight to the store.
|
|
9
|
+
*/
|
|
10
|
+
export const applyAddressCompletion = ({ data, event, }) => {
|
|
11
|
+
var _a, _b, _c, _d;
|
|
12
|
+
// Use the same name extraction as the detection step so the two stay in agreement even when
|
|
13
|
+
// the surname is only available via the combined `name` field.
|
|
14
|
+
const { firstName: extractedFirstName, lastName: extractedLastName } = extractName({
|
|
15
|
+
firstName: event.value.firstName,
|
|
16
|
+
lastName: event.value.lastName,
|
|
17
|
+
name: event.value.name,
|
|
18
|
+
});
|
|
19
|
+
const firstName = (_a = data.firstName) !== null && _a !== void 0 ? _a : extractedFirstName;
|
|
20
|
+
const lastName = (_b = data.lastName) !== null && _b !== void 0 ? _b : extractedLastName;
|
|
21
|
+
return Object.assign(Object.assign({}, event), { complete: true, value: Object.assign(Object.assign({}, event.value), { address: Object.assign(Object.assign({}, event.value.address), { postal_code: (_c = data.postal_code) !== null && _c !== void 0 ? _c : event.value.address.postal_code, state: (_d = data.state) !== null && _d !== void 0 ? _d : event.value.address.state }), firstName,
|
|
22
|
+
lastName, name: `${firstName} ${lastName}`.trim() }) });
|
|
23
|
+
};
|