@zonos/elements 1.3.15-alpha.2 → 1.3.15
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/RemoveIcon-6c79a2a1.js +5 -0
- package/dist/cjs/{cart-1b1d39af.js → cart-db549f04.js} +976 -138
- package/dist/cjs/containsNonLatinChars-2be5129b.js +24 -0
- package/dist/cjs/{getBorderRadius-c8cc2bb3.js → getBorderRadius-44b3eca1.js} +4 -6
- package/dist/cjs/index-654a6001.js +1361 -0
- package/dist/cjs/isCheckoutMobile-f491ca7c.js +8 -0
- package/dist/cjs/{isDarkColor-f5473002.js → isDarkColor-01f45d3f.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/{submitGtag-ab287a34.js → submitGtag-fd8acad5.js} +21 -2
- package/dist/cjs/zonos-address_8.cjs.entry.js +642 -0
- package/dist/cjs/zonos-badge_2.cjs.entry.js +9 -9
- package/dist/cjs/zonos-banner.cjs.entry.js +3 -3
- package/dist/cjs/zonos-button_3.cjs.entry.js +192 -0
- package/dist/cjs/zonos-card_2.cjs.entry.js +12 -12
- package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_9.cjs.entry.js} +144 -118
- package/dist/cjs/zonos-checkout.cjs.entry.js +19 -18
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +14 -14
- package/dist/cjs/zonos-elements.cjs.js +10 -10
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
- package/dist/cjs/zonos-hello.cjs.entry.js +6 -6
- package/dist/cjs/zonos-input.cjs.entry.js +57 -0
- package/dist/cjs/zonos-link.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/zonos-notification.cjs.entry.js +5 -5
- package/dist/cjs/zonos-payment.cjs.entry.js +7 -7
- package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +7 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +8 -6
- package/dist/cjs/zonos-text.cjs.entry.js +3 -2
- package/dist/cjs/{zonosStore-aee974e0.js → zonosStore-d8bb0bda.js} +1 -1
- package/dist/collection/collection-manifest.json +5 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.css +62 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +80 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.css +59 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +148 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +115 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +429 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.css +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +9 -9
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +5 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +16 -16
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +6 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +8 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +135 -20
- package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +5 -5
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +7 -7
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +1 -1
- package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.css +1 -1
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-banner/zonos-banner.css +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.css +10 -9
- package/dist/collection/components/common/zonos-button/zonos-button.js +17 -8
- package/dist/collection/components/common/zonos-card/zonos-card.css +9 -9
- package/dist/collection/components/common/zonos-card/zonos-card.js +3 -3
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.css +2 -1
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +22 -4
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.css +1 -1
- 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-country-select/zonos-country-select.css +5 -5
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.css +1 -1
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +6 -6
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +6 -4
- package/dist/collection/components/common/zonos-input/zonos-input.css +176 -0
- package/dist/collection/components/common/zonos-input/zonos-input.js +193 -0
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.css +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-notification/zonos-notification.css +3 -3
- package/dist/collection/components/common/zonos-notification/zonos-notification.js +2 -2
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.css +1 -1
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +2 -2
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +4 -2
- package/dist/collection/components/common/zonos-text/zonos-text.js +1 -0
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.css +1 -1
- 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/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.css +18 -18
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +10 -52
- 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.css +4 -4
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
- package/dist/collection/components/main/zonos-controller.js +2 -2
- package/dist/collection/components/store/checkout/stripe.js +153 -14
- package/dist/collection/components/store/translationStore/strings.arabic.js +36 -6
- package/dist/collection/components/store/translationStore/strings.base.js +36 -6
- package/dist/collection/components/store/translationStore/strings.chinese.js +36 -6
- package/dist/collection/components/store/translationStore/strings.danish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.dutch.js +36 -6
- package/dist/collection/components/store/translationStore/strings.french.js +36 -6
- package/dist/collection/components/store/translationStore/strings.german.js +36 -6
- package/dist/collection/components/store/translationStore/strings.hebrew.js +36 -6
- package/dist/collection/components/store/translationStore/strings.indonesian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.italian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.japanese.js +36 -6
- package/dist/collection/components/store/translationStore/strings.korean.js +36 -6
- package/dist/collection/components/store/translationStore/strings.norwegian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.polish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.portuguese.js +36 -6
- package/dist/collection/components/store/translationStore/strings.russian.js +36 -6
- package/dist/collection/components/store/translationStore/strings.spanish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.swedish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.turkish.js +36 -6
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +36 -6
- package/dist/collection/components/stripe/zonos-address/zonos-address.css +2 -2
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +3 -71
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.css +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +29 -5
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.css +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/buildTranslateRequestBody.js +98 -0
- package/dist/collection/components/utils/containsNonLatinChars.js +10 -8
- package/dist/collection/components/utils/getBorderRadius.js +3 -5
- package/dist/collection/styles/stripe/defaultVariable.js +2 -2
- package/dist/collection/types/checkout/TranslatedText.js +1 -0
- package/dist/collection/types/checkout/api/ValidateAddressRequest.js +1 -0
- package/dist/components/containsNonLatinChars.js +21 -0
- package/dist/components/getBorderRadius.js +3 -5
- package/dist/components/stripe.js +255 -4545
- package/dist/components/trackConversionEvent.js +1 -1
- package/dist/components/translationStore.js +5131 -0
- package/dist/components/zonos-address-display.d.ts +11 -0
- package/dist/components/zonos-address-display.js +6 -0
- package/dist/components/zonos-address-display2.js +64 -0
- package/dist/components/zonos-address-form.d.ts +11 -0
- package/dist/components/zonos-address-form.js +6 -0
- package/dist/components/zonos-address-form2.js +84 -0
- package/dist/components/zonos-address-update-dialog.d.ts +11 -0
- package/dist/components/zonos-address-update-dialog.js +6 -0
- package/dist/components/zonos-address-update-dialog2.js +264 -0
- package/dist/components/zonos-address2.js +4 -94
- package/dist/components/zonos-badge2.js +4 -4
- package/dist/components/zonos-banner2.js +1 -1
- package/dist/components/zonos-button2.js +18 -9
- package/dist/components/zonos-card2.js +4 -4
- package/dist/components/zonos-cart-items2.js +2 -2
- package/dist/components/zonos-cart-subtotal2.js +3 -2
- package/dist/components/zonos-checkbox2.js +15 -6
- package/dist/components/zonos-checkout-finish2.js +27 -7
- package/dist/components/zonos-checkout-footer2.js +3 -3
- package/dist/components/zonos-checkout-payment2.js +3 -2
- package/dist/components/zonos-checkout-progress-tabs2.js +6 -5
- package/dist/components/zonos-checkout.js +72 -42
- package/dist/components/zonos-collapse2.js +2 -2
- package/dist/components/zonos-component.js +1 -1
- package/dist/components/zonos-controller.js +2 -2
- package/dist/components/zonos-country-select2.js +3 -3
- package/dist/components/zonos-custom-message2.js +3 -3
- package/dist/components/zonos-customer-info2.js +171 -30
- package/dist/components/zonos-dialog2.js +7 -5
- package/dist/components/zonos-hello-dialog-footer2.js +3 -3
- package/dist/components/zonos-hello-dialog2.js +6 -5
- package/dist/components/zonos-hello.js +3 -2
- package/dist/components/zonos-input.d.ts +11 -0
- package/dist/components/zonos-input.js +6 -0
- package/dist/components/zonos-input2.js +78 -0
- package/dist/components/zonos-language-select2.js +5 -4
- package/dist/components/zonos-link-authentication2.js +13 -6
- package/dist/components/zonos-link.js +1 -1
- package/dist/components/zonos-logo.js +2 -2
- package/dist/components/zonos-notification2.js +3 -3
- package/dist/components/zonos-payment2.js +2 -2
- package/dist/components/zonos-review2.js +3 -2
- package/dist/components/zonos-select-dialog-header2.js +3 -3
- package/dist/components/zonos-shipping-rich-radio2.js +5 -3
- package/dist/components/zonos-shipping2.js +4 -3
- package/dist/components/zonos-text2.js +1 -0
- package/dist/components/zonos-tooltip2.js +3 -3
- package/dist/components/zonos-v-stack2.js +2 -2
- package/dist/esm/RemoveIcon-f6715b36.js +3 -0
- package/dist/esm/{cart-10bcd2e0.js → cart-462e89a6.js} +976 -139
- package/dist/esm/containsNonLatinChars-2d8810c3.js +21 -0
- package/dist/esm/{getBorderRadius-8129b0cb.js → getBorderRadius-567f1786.js} +4 -6
- package/dist/esm/index-e063389c.js +1328 -0
- package/dist/esm/isCheckoutMobile-8846dccb.js +6 -0
- package/dist/esm/{isDarkColor-7a6d2d14.js → isDarkColor-7f62035a.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{submitGtag-84886899.js → submitGtag-ac7c3c89.js} +21 -3
- package/dist/esm/zonos-address_8.entry.js +631 -0
- package/dist/esm/zonos-badge_2.entry.js +9 -9
- package/dist/esm/zonos-banner.entry.js +3 -3
- package/dist/esm/zonos-button_3.entry.js +186 -0
- package/dist/esm/zonos-card_2.entry.js +12 -12
- package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_9.entry.js} +140 -113
- package/dist/esm/zonos-checkout.entry.js +14 -13
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +6 -6
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/zonos-country-select_3.entry.js +14 -14
- package/dist/esm/zonos-elements.js +11 -11
- package/dist/esm/zonos-hello-dialog.entry.js +9 -9
- package/dist/esm/zonos-hello.entry.js +6 -6
- package/dist/esm/zonos-input.entry.js +53 -0
- package/dist/esm/zonos-link.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/zonos-notification.entry.js +5 -5
- package/dist/esm/zonos-payment.entry.js +7 -7
- package/dist/esm/zonos-select-dialog-header_2.entry.js +7 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +8 -6
- package/dist/esm/zonos-text.entry.js +3 -2
- package/dist/esm/{zonosStore-f3eef64b.js → zonosStore-33ff08ff.js} +1 -1
- package/dist/esm-es5/RemoveIcon-f6715b36.js +1 -0
- package/dist/esm-es5/cart-462e89a6.js +1 -0
- package/dist/esm-es5/containsNonLatinChars-2d8810c3.js +1 -0
- package/dist/esm-es5/getBorderRadius-567f1786.js +1 -0
- package/dist/esm-es5/index-e063389c.js +2 -0
- package/dist/esm-es5/isCheckoutMobile-8846dccb.js +1 -0
- package/dist/esm-es5/{isDarkColor-7a6d2d14.js → isDarkColor-7f62035a.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/submitGtag-ac7c3c89.js +1 -0
- package/dist/esm-es5/zonos-address_8.entry.js +1 -0
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -0
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.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_3.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 -0
- 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-notification.entry.js +1 -1
- package/dist/esm-es5/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-f3eef64b.js → zonosStore-33ff08ff.js} +1 -1
- package/dist/scripts/loadStripe.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/stripe.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.d.ts +12 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.d.ts +28 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.d.ts +96 -0
- package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +22 -2
- package/dist/types/components/common/zonos-checkbox/zonos-checkbox.d.ts +1 -0
- package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +0 -3
- package/dist/types/components/common/zonos-input/zonos-input.d.ts +35 -0
- package/dist/types/components/store/checkout/stripe.d.ts +25 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.base.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.danish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.french.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.german.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.italian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.korean.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.polish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.russian.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +35 -5
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +35 -5
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +2 -10
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +4 -0
- package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
- package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
- package/dist/types/components/utils/checkout/buildTranslateRequestBody.d.ts +26 -0
- package/dist/types/components/utils/containsNonLatinChars.d.ts +1 -0
- package/dist/types/components/utils/getBorderRadius.d.ts +7 -1
- package/dist/types/components.d.ts +308 -6
- package/dist/types/types/checkout/TranslatedText.d.ts +23 -0
- package/dist/types/types/checkout/api/ValidateAddressRequest.d.ts +20 -0
- package/dist/types/types/generated/graphql.customer.types.d.ts +2 -0
- package/dist/types/types/generated/graphql.customer.types.ts +2 -0
- package/dist/zonos-elements/p-029f11dd.system.entry.js +1 -0
- package/dist/zonos-elements/{p-2ee0d779.entry.js → p-094c0ee8.entry.js} +1 -1
- package/dist/zonos-elements/p-0c64dbbb.js +1 -0
- package/dist/zonos-elements/p-11504442.entry.js +1 -0
- package/dist/zonos-elements/p-11bef836.system.entry.js +1 -0
- package/dist/zonos-elements/{p-bc3a0f7c.entry.js → p-11f1b78c.entry.js} +1 -1
- package/dist/zonos-elements/p-13ddaf31.js +2 -0
- package/dist/zonos-elements/p-154aaf95.system.js +1 -0
- package/dist/zonos-elements/p-163ff5b5.system.js +2 -0
- package/dist/zonos-elements/{p-32b4e9c3.entry.js → p-1e934274.entry.js} +1 -1
- package/dist/zonos-elements/p-20582e58.system.entry.js +1 -0
- package/dist/zonos-elements/p-2439c82f.system.entry.js +1 -0
- package/dist/zonos-elements/p-2670438c.system.js +1 -0
- package/dist/zonos-elements/p-321226b0.entry.js +1 -0
- package/dist/zonos-elements/p-3221530d.system.entry.js +1 -0
- package/dist/zonos-elements/{p-97534044.entry.js → p-32d27535.entry.js} +1 -1
- package/dist/zonos-elements/p-3d10866d.entry.js +1 -0
- package/dist/zonos-elements/{p-1a5f8df7.entry.js → p-3d8667a7.entry.js} +1 -1
- package/dist/zonos-elements/p-3f05d130.system.entry.js +1 -0
- package/dist/zonos-elements/p-430eefd4.entry.js +1 -0
- package/dist/zonos-elements/p-49825866.system.entry.js +1 -0
- package/dist/zonos-elements/p-5525b740.entry.js +1 -0
- package/dist/zonos-elements/p-578f0aad.system.js +1 -0
- package/dist/zonos-elements/p-58a8ef6c.entry.js +1 -0
- package/dist/zonos-elements/p-5d993965.js +1 -0
- package/dist/zonos-elements/{p-262b8e1e.system.entry.js → p-5f9c066d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-60e262f0.system.entry.js +1 -0
- package/dist/zonos-elements/p-64b594f4.js +1 -0
- package/dist/zonos-elements/p-66471df6.entry.js +1 -0
- package/dist/zonos-elements/{p-95c864ca.system.entry.js → p-679877b1.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-fc4da55c.system.js → p-771fbeb3.system.js} +1 -1
- package/dist/zonos-elements/p-79f3c4f5.system.js +1 -0
- package/dist/zonos-elements/{p-e1ac5b2a.system.entry.js → p-80d78980.system.entry.js} +1 -1
- package/dist/zonos-elements/p-81a54668.js +1 -0
- package/dist/zonos-elements/p-83cc2936.js +1 -0
- package/dist/zonos-elements/{p-520e8e63.system.js → p-87badea9.system.js} +1 -1
- package/dist/zonos-elements/p-8a61a04f.system.entry.js +1 -0
- package/dist/zonos-elements/p-8b32f560.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d01576d7.js → p-909a331c.js} +1 -1
- package/dist/zonos-elements/p-94b15a5e.system.entry.js +1 -0
- package/dist/zonos-elements/p-9a45fae5.system.entry.js +1 -0
- package/dist/zonos-elements/{p-24fee841.entry.js → p-9ec93319.entry.js} +1 -1
- package/dist/zonos-elements/p-a6d7ac46.js +1 -0
- package/dist/zonos-elements/p-a6eeb4bd.system.entry.js +1 -0
- package/dist/zonos-elements/p-a93f2e84.entry.js +1 -0
- package/dist/zonos-elements/p-aed0098c.system.js +1 -0
- package/dist/zonos-elements/p-b19d51e0.entry.js +1 -0
- package/dist/zonos-elements/{p-46f9c93e.system.entry.js → p-b9652402.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-13b55282.entry.js → p-baee62a4.entry.js} +1 -1
- package/dist/zonos-elements/{p-eff12c31.system.entry.js → p-bf32179a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-cd1cc224.entry.js +1 -0
- package/dist/zonos-elements/p-d1b63cec.system.entry.js +1 -0
- package/dist/zonos-elements/p-d6b103d5.system.js +1 -0
- package/dist/zonos-elements/{p-376bdf70.entry.js → p-da6767d8.entry.js} +1 -1
- package/dist/zonos-elements/p-dde1383b.entry.js +1 -0
- package/dist/zonos-elements/p-df192668.system.js +1 -0
- package/dist/zonos-elements/{p-70ede197.system.entry.js → p-df24d548.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6743734f.entry.js → p-e7b4b756.entry.js} +1 -1
- package/dist/zonos-elements/{p-d41b5762.js → p-f1962041.js} +1 -1
- package/dist/zonos-elements/p-f3d3c754.system.entry.js +1 -0
- package/dist/zonos-elements/p-f79682b5.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.css +3 -3
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/package.json +3 -2
- package/dist/cjs/index-3b4816ef.js +0 -2088
- package/dist/cjs/sendErrorLog-29e50f7e.js +0 -29
- package/dist/cjs/zonos-address_4.cjs.entry.js +0 -388
- package/dist/cjs/zonos-button_2.cjs.entry.js +0 -152
- package/dist/cjs/zonos-icon.cjs.entry.js +0 -39
- package/dist/components/sendErrorLog.js +0 -21
- package/dist/esm/index-0e31d804.js +0 -2055
- package/dist/esm/sendErrorLog-8642e94a.js +0 -26
- package/dist/esm/zonos-address_4.entry.js +0 -381
- package/dist/esm/zonos-button_2.entry.js +0 -147
- package/dist/esm/zonos-icon.entry.js +0 -35
- package/dist/esm-es5/cart-10bcd2e0.js +0 -1
- package/dist/esm-es5/getBorderRadius-8129b0cb.js +0 -1
- package/dist/esm-es5/index-0e31d804.js +0 -2
- package/dist/esm-es5/sendErrorLog-8642e94a.js +0 -1
- package/dist/esm-es5/submitGtag-84886899.js +0 -1
- package/dist/esm-es5/zonos-address_4.entry.js +0 -1
- package/dist/esm-es5/zonos-button_2.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
- package/dist/esm-es5/zonos-icon.entry.js +0 -1
- package/dist/scripts/insertTranslations.js +0 -1
- package/dist/zonos-elements/p-066b5ca3.entry.js +0 -1
- package/dist/zonos-elements/p-0a0d45e9.system.entry.js +0 -1
- package/dist/zonos-elements/p-2244534c.js +0 -2
- package/dist/zonos-elements/p-2693da50.system.entry.js +0 -1
- package/dist/zonos-elements/p-2825570c.system.js +0 -2
- package/dist/zonos-elements/p-33abdb30.js +0 -1
- package/dist/zonos-elements/p-450942a3.system.js +0 -1
- package/dist/zonos-elements/p-46b4010c.entry.js +0 -1
- package/dist/zonos-elements/p-509717bc.system.entry.js +0 -1
- package/dist/zonos-elements/p-5ca09163.entry.js +0 -1
- package/dist/zonos-elements/p-5ff27485.js +0 -1
- package/dist/zonos-elements/p-6f5761e8.js +0 -1
- package/dist/zonos-elements/p-6fb15797.system.entry.js +0 -1
- package/dist/zonos-elements/p-73acb3eb.system.entry.js +0 -1
- package/dist/zonos-elements/p-7432179a.system.entry.js +0 -1
- package/dist/zonos-elements/p-8126011d.entry.js +0 -1
- package/dist/zonos-elements/p-8b44e558.system.js +0 -1
- package/dist/zonos-elements/p-8c568b87.entry.js +0 -1
- package/dist/zonos-elements/p-92d85125.system.entry.js +0 -1
- package/dist/zonos-elements/p-9b385237.entry.js +0 -1
- package/dist/zonos-elements/p-9fc92940.entry.js +0 -1
- package/dist/zonos-elements/p-a6bbf6de.system.entry.js +0 -1
- package/dist/zonos-elements/p-ad0a2581.entry.js +0 -1
- package/dist/zonos-elements/p-b4c3dcda.entry.js +0 -1
- package/dist/zonos-elements/p-b8e8330b.system.js +0 -1
- package/dist/zonos-elements/p-be022d8e.entry.js +0 -1
- package/dist/zonos-elements/p-c6170bec.system.js +0 -1
- package/dist/zonos-elements/p-c9e137e1.system.entry.js +0 -1
- package/dist/zonos-elements/p-d0d78094.system.entry.js +0 -1
- package/dist/zonos-elements/p-d1ba7e52.system.entry.js +0 -1
- package/dist/zonos-elements/p-d29895ed.system.entry.js +0 -1
- package/dist/zonos-elements/p-dac861bb.entry.js +0 -1
- package/dist/zonos-elements/p-e010f227.system.entry.js +0 -1
- package/dist/zonos-elements/p-e703c902.entry.js +0 -1
- package/dist/zonos-elements/p-e8a41797.system.entry.js +0 -1
- package/dist/zonos-elements/p-ed2e94d2.js +0 -1
- package/dist/zonos-elements/p-f2b60329.system.entry.js +0 -1
- package/dist/zonos-elements/p-f4c38bfc.system.js +0 -1
|
@@ -157,17 +157,17 @@ export class ZonosHelloDialog {
|
|
|
157
157
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
158
158
|
const currentPage = this.getCurrentPageEnum();
|
|
159
159
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
160
|
-
return (h(Host, { key: '
|
|
160
|
+
return (h(Host, { key: '7e8de73755369d6e94a502ad580f051fa6c8da6d', class: "zonos--elements" }, h("div", { key: '1680bee2115bd6b9c21cf7288aac99343a106fc6', "aria-hidden": "true", class: classes([
|
|
161
161
|
'zonos--hello-dialog',
|
|
162
162
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
163
163
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
164
164
|
!!this.mobileLocationOverride &&
|
|
165
165
|
'zonos--hello-dialog-mobile-override',
|
|
166
166
|
this.isOpen && 'zonos--hello-dialog-open',
|
|
167
|
-
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '
|
|
167
|
+
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", { key: '878dfde3a7df3cb257a3344a7d45b5d09f06abdd' }, h("div", { key: '167f9ad860c1d8acf36bde0ebf718d3e7e37a1e5', class: "zonos--hello-dialog-content" }, h("zonos-button", { key: '5aa8eeb4b01fb2282b881377ba4bf11cd7caa623', 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: 'aee8f07760b9f68abd57476683cf2b450a20e09e', spacing: 24 }, h("zonos-country-flag", { key: 'd71c48fb777ef4a7e15d419e4902ba1b0f4ca212', class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { key: 'a00c00aaf92c76c1e7e207fb301c3e5002a83407', class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { key: '77c763fa74510d3a182a4f6f1b4f48eab6498573', type: "boldSubheader" }, welcomeMessage), h("zonos-text", { key: '3d3a634aee3b4277460de8f977a901ae29f5baac', innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { key: '85237fae85ab07206bcdfff86de4cfae928fb730', spacing: 8 }, this.restrictedItems.map(item => {
|
|
168
168
|
var _a;
|
|
169
169
|
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)))));
|
|
170
|
-
}), h("zonos-card", { key: '
|
|
170
|
+
}), h("zonos-card", { key: '7538d03f14fe518406f2a16afff5e08460fbbc37', spacing: "12px" }, h("zonos-v-stack", { key: 'e8e7d5dd2765b70b38e22028a0cd084a826bafbd', spacing: 12 }, h("div", { key: '0822cd8d0023b2dbf2f99e957d0cd7c0ddab5d30', class: "zonos--flex-message" }, h("zonos-icon", { key: '098699a08612c6bccd07a32597f4cb69b111ddbd', "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", { key: '28e26206a7a4eb7604030f3612265e0b623f17a5' }, dutyDeMinimisMessage)), h("div", { key: '2128d439fa2bdf1304979b8f4a1c4e438d11cced', class: "zonos--flex-message" }, h("zonos-icon", { key: 'd1fa307f787d7f8f36b31e13208761fd841603fe', "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", { key: 'b29a178d243d8b0300adef157a03e8f80e8d6590' }, taxDeMinimisMessage)), additionalInformation && (h("div", { key: '2c764bc1c8eb74f6ea036c6bab4ac7ba12753531', class: "zonos--flex-message" }, h("zonos-icon", { key: '91277f65b642b8e79a04839f7fbf3f1886d3585b', "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", { key: 'cabce597179bdf0a92334e0e72297661c9d6cd67' }, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { key: '6582cdaa19e7252b4c6401c1a69bd9df7b690b3c', appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", { key: 'f10d4c707e32dd77888292cbfec2bf4fe71f4467' }, h("zonos-country-select", { key: '5f09ef49c781096248104eb77845b783aa3d6d56', handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", { key: '8985543a50da7be63ddfbf40a01e5a6af3e9d7b9' }, h("zonos-language-select", { key: '9b2197ea5b765a5d15a02522a14e959100254669', handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
171
171
|
}
|
|
172
172
|
static get is() { return "zonos-hello-dialog"; }
|
|
173
173
|
static get encapsulation() { return "shadow"; }
|
|
@@ -152,7 +152,7 @@ export class ZonosController {
|
|
|
152
152
|
zonosStore.organizationName = organizationName;
|
|
153
153
|
}
|
|
154
154
|
render() {
|
|
155
|
-
return h(Host, { key: '
|
|
155
|
+
return h(Host, { key: 'c607814c97ec998ef3e56ccdb28ef0369daf9ff3', class: "zonos--elements" });
|
|
156
156
|
}
|
|
157
157
|
static get is() { return "zonos-controller"; }
|
|
158
158
|
static get encapsulation() { return "shadow"; }
|
|
@@ -335,7 +335,7 @@ export class ZonosController {
|
|
|
335
335
|
"signature": "(countryCode: CountryCode) => Promise<void>",
|
|
336
336
|
"parameters": [{
|
|
337
337
|
"name": "countryCode",
|
|
338
|
-
"type": "\"
|
|
338
|
+
"type": "\"AD\" | \"AE\" | \"AF\" | \"AG\" | \"AI\" | \"AL\" | \"AM\" | \"AO\" | \"AQ\" | \"AR\" | \"AS\" | \"AT\" | \"AU\" | \"AW\" | \"AX\" | \"AZ\" | \"BA\" | \"BB\" | \"BD\" | \"BE\" | \"BF\" | \"BG\" | \"BH\" | \"BI\" | \"BJ\" | \"BL\" | \"BM\" | \"BN\" | \"BO\" | \"BQ\" | \"BR\" | \"BS\" | \"BT\" | \"BV\" | \"BW\" | \"BY\" | \"BZ\" | \"CA\" | \"CC\" | \"CD\" | \"CF\" | \"CG\" | \"CH\" | \"CI\" | \"CK\" | \"CL\" | \"CM\" | \"CN\" | \"CO\" | \"CR\" | \"CU\" | \"CV\" | \"CW\" | \"CX\" | \"CY\" | \"CZ\" | \"DE\" | \"DJ\" | \"DK\" | \"DM\" | \"DO\" | \"DZ\" | \"EC\" | \"EE\" | \"EG\" | \"EH\" | \"ER\" | \"ES\" | \"ET\" | \"FI\" | \"FJ\" | \"FK\" | \"FM\" | \"FO\" | \"FR\" | \"GA\" | \"GB\" | \"GD\" | \"GE\" | \"GF\" | \"GG\" | \"GH\" | \"GI\" | \"GL\" | \"GM\" | \"GN\" | \"GP\" | \"GQ\" | \"GR\" | \"GS\" | \"GT\" | \"GU\" | \"GW\" | \"GY\" | \"HK\" | \"HM\" | \"HN\" | \"HR\" | \"HT\" | \"HU\" | \"IC\" | \"ID\" | \"IE\" | \"IL\" | \"IM\" | \"IN\" | \"IO\" | \"IQ\" | \"IR\" | \"IS\" | \"IT\" | \"JE\" | \"JM\" | \"JO\" | \"JP\" | \"KE\" | \"KG\" | \"KH\" | \"KI\" | \"KM\" | \"KN\" | \"KP\" | \"KR\" | \"KW\" | \"KY\" | \"KZ\" | \"LA\" | \"LB\" | \"LC\" | \"LI\" | \"LK\" | \"LR\" | \"LS\" | \"LT\" | \"LU\" | \"LV\" | \"LY\" | \"MA\" | \"MC\" | \"MD\" | \"ME\" | \"MF\" | \"MG\" | \"MH\" | \"MK\" | \"ML\" | \"MM\" | \"MN\" | \"MO\" | \"MP\" | \"MQ\" | \"MR\" | \"MS\" | \"MT\" | \"MU\" | \"MV\" | \"MW\" | \"MX\" | \"MY\" | \"MZ\" | \"NA\" | \"NC\" | \"NE\" | \"NF\" | \"NG\" | \"NI\" | \"NL\" | \"NO\" | \"NP\" | \"NR\" | \"NU\" | \"NZ\" | \"OM\" | \"PA\" | \"PE\" | \"PF\" | \"PG\" | \"PH\" | \"PK\" | \"PL\" | \"PM\" | \"PN\" | \"PR\" | \"PS\" | \"PT\" | \"PW\" | \"PY\" | \"QA\" | \"RE\" | \"RO\" | \"RS\" | \"RU\" | \"RW\" | \"SA\" | \"SB\" | \"SC\" | \"SD\" | \"SE\" | \"SG\" | \"SH\" | \"SI\" | \"SJ\" | \"SK\" | \"SL\" | \"SM\" | \"SN\" | \"SO\" | \"SR\" | \"SS\" | \"ST\" | \"SV\" | \"SX\" | \"SY\" | \"SZ\" | \"TC\" | \"TD\" | \"TF\" | \"TG\" | \"TH\" | \"TJ\" | \"TK\" | \"TL\" | \"TM\" | \"TN\" | \"TO\" | \"TR\" | \"TT\" | \"TV\" | \"TW\" | \"TZ\" | \"UA\" | \"UG\" | \"UM\" | \"US\" | \"UY\" | \"UZ\" | \"VA\" | \"VC\" | \"VE\" | \"VG\" | \"VI\" | \"VN\" | \"VU\" | \"WF\" | \"WS\" | \"YE\" | \"YT\" | \"ZA\" | \"ZM\" | \"ZW\"",
|
|
339
339
|
"docs": ""
|
|
340
340
|
}],
|
|
341
341
|
"references": {
|
|
@@ -4,6 +4,7 @@ import { localizationStore } from "../hello/localization";
|
|
|
4
4
|
import { translate } from "../translationStore";
|
|
5
5
|
import { zonosStore } from "../zonosStore";
|
|
6
6
|
import { calculateLandedCost } from "../../utils/api/calculateLandedCost";
|
|
7
|
+
import { buildTranslateRequestBody } from "../../utils/checkout/buildTranslateRequestBody";
|
|
7
8
|
import { handleFetch } from "../../utils/handleFetch";
|
|
8
9
|
import { isDarkColor } from "../../utils/isDarkColor";
|
|
9
10
|
import { jsonParse } from "../../utils/jsonParse";
|
|
@@ -20,9 +21,11 @@ const { onChange, reset, state: stripeStore, } = createStore(() => ({
|
|
|
20
21
|
stripeAddressElement: null,
|
|
21
22
|
stripeAddressEventData: null,
|
|
22
23
|
stripeAddressUsedWhenFetchingLC: null,
|
|
24
|
+
stripeAddressUsedWhenValidatingAddress: null,
|
|
23
25
|
stripeBillingAddressElement: null,
|
|
24
26
|
stripeBillingAddressEventData: null,
|
|
25
27
|
stripeBillingAddressUsedWhenFetchingLC: null,
|
|
28
|
+
stripeBillingAddressUsedWhenValidatingAddress: null,
|
|
26
29
|
stripeElements: null,
|
|
27
30
|
stripeElementsForBillingAddress: null,
|
|
28
31
|
stripeElementsOptions: null,
|
|
@@ -32,6 +35,13 @@ const { onChange, reset, state: stripeStore, } = createStore(() => ({
|
|
|
32
35
|
stripePaymentElement: null,
|
|
33
36
|
stripePaymentEventData: null,
|
|
34
37
|
stripeShippingSameAsBilling: true,
|
|
38
|
+
translatedAddress: {
|
|
39
|
+
address: {},
|
|
40
|
+
billingAddress: {},
|
|
41
|
+
firstName: {},
|
|
42
|
+
lastName: {},
|
|
43
|
+
name: {},
|
|
44
|
+
},
|
|
35
45
|
}));
|
|
36
46
|
const getStripeOptions = ({ clientSecret, overrideBorderRaidus, overridePrimaryColor, overrideSecondaryColor, overrideTheme, }) => {
|
|
37
47
|
const primaryColor = overridePrimaryColor || zonosStore.appearance.colorPrimary;
|
|
@@ -118,30 +128,39 @@ const stripeStoreReset = () => {
|
|
|
118
128
|
// set stripe back to window.Zonos.stripe
|
|
119
129
|
stripeStore.stripe = window.Zonos.stripe;
|
|
120
130
|
};
|
|
131
|
+
const checkIsAddressOutdatedForValidation = () => {
|
|
132
|
+
var _a, _b, _c, _d;
|
|
133
|
+
const isAddressDataDirty = JSON.stringify((_a = stripeStore.stripeAddressUsedWhenValidatingAddress) === null || _a === void 0 ? void 0 : _a.value) !== JSON.stringify((_b = stripeStore.stripeAddressEventData) === null || _b === void 0 ? void 0 : _b.value);
|
|
134
|
+
const isBillingAddressDataDirty = !stripeStore.stripeShippingSameAsBilling &&
|
|
135
|
+
JSON.stringify((_c = stripeStore.stripeBillingAddressEventData) === null || _c === void 0 ? void 0 : _c.value) !==
|
|
136
|
+
JSON.stringify((_d = stripeStore.stripeBillingAddressUsedWhenValidatingAddress) === null || _d === void 0 ? void 0 : _d.value);
|
|
137
|
+
return isAddressDataDirty || isBillingAddressDataDirty;
|
|
138
|
+
};
|
|
139
|
+
const checkIsAddressOutdatedForLCPrefetch = () => {
|
|
140
|
+
var _a, _b, _c, _d, _e, _f;
|
|
141
|
+
const isLinkDataDirty = JSON.stringify((_a = stripeStore.stripeLinkUsedWhenFetchingLC) === null || _a === void 0 ? void 0 : _a.value) !==
|
|
142
|
+
JSON.stringify((_b = stripeStore.stripeLinkEventData) === null || _b === void 0 ? void 0 : _b.value);
|
|
143
|
+
const isAddressDataDirty = JSON.stringify((_c = stripeStore.stripeAddressUsedWhenFetchingLC) === null || _c === void 0 ? void 0 : _c.value) !==
|
|
144
|
+
JSON.stringify((_d = stripeStore.stripeAddressEventData) === null || _d === void 0 ? void 0 : _d.value);
|
|
145
|
+
const isBillingAddressDataDirty = !stripeStore.stripeShippingSameAsBilling &&
|
|
146
|
+
JSON.stringify((_e = stripeStore.stripeBillingAddressEventData) === null || _e === void 0 ? void 0 : _e.value) !==
|
|
147
|
+
JSON.stringify((_f = stripeStore.stripeBillingAddressUsedWhenFetchingLC) === null || _f === void 0 ? void 0 : _f.value);
|
|
148
|
+
return isLinkDataDirty || isAddressDataDirty || isBillingAddressDataDirty;
|
|
149
|
+
};
|
|
121
150
|
/**
|
|
122
151
|
* Check if the address and email info used when fetching landed cost with the current email and address info are different
|
|
123
152
|
* Purpose is to resend the request if the info used when fetching landed cost is different from the current info
|
|
124
153
|
*/
|
|
125
154
|
const isPrefetchInfoOutdated = () => {
|
|
126
|
-
var _a
|
|
155
|
+
var _a;
|
|
127
156
|
// Mark the landed cost is outdated since the item total amount has changed (items total didn't match with the cart subtotal)
|
|
128
157
|
const isTotalAmountChanged = cartStore.landedCostData &&
|
|
129
158
|
((_a = cartStore.landedCostData.find(Boolean)) === null || _a === void 0 ? void 0 : _a.subtotals.items) !==
|
|
130
159
|
cartStore.subtotal;
|
|
131
|
-
const
|
|
132
|
-
JSON.stringify((_c = stripeStore.stripeLinkEventData) === null || _c === void 0 ? void 0 : _c.value);
|
|
133
|
-
const isAddressDataDirty = JSON.stringify((_d = stripeStore.stripeAddressUsedWhenFetchingLC) === null || _d === void 0 ? void 0 : _d.value) !==
|
|
134
|
-
JSON.stringify((_e = stripeStore.stripeAddressEventData) === null || _e === void 0 ? void 0 : _e.value);
|
|
135
|
-
const isBillingAddressDataDirty = !stripeStore.stripeShippingSameAsBilling &&
|
|
136
|
-
JSON.stringify((_f = stripeStore.stripeBillingAddressEventData) === null || _f === void 0 ? void 0 : _f.value) !==
|
|
137
|
-
JSON.stringify((_g = stripeStore.stripeBillingAddressUsedWhenFetchingLC) === null || _g === void 0 ? void 0 : _g.value);
|
|
160
|
+
const isAddressOutdated = checkIsAddressOutdatedForLCPrefetch();
|
|
138
161
|
return (
|
|
139
162
|
// if landed cost data is not available, we need to fetch it
|
|
140
|
-
!cartStore.landedCostData ||
|
|
141
|
-
isLinkDataDirty ||
|
|
142
|
-
isAddressDataDirty ||
|
|
143
|
-
isBillingAddressDataDirty ||
|
|
144
|
-
isTotalAmountChanged);
|
|
163
|
+
!cartStore.landedCostData || isAddressOutdated || isTotalAmountChanged);
|
|
145
164
|
};
|
|
146
165
|
const stripeStorePrefetchLandedCost = async () => {
|
|
147
166
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -371,6 +390,126 @@ const stripeStoreUpdateCheckoutSession = async ({ currency, id, itemsAmount, lan
|
|
|
371
390
|
}
|
|
372
391
|
return { errors: [], json };
|
|
373
392
|
};
|
|
393
|
+
/**
|
|
394
|
+
* This function builds a translated address object from the current address and the translated address result.
|
|
395
|
+
* It checks each field in the current address and if it exists in the translated address result, it adds it to the translated address object.
|
|
396
|
+
* The key of each field in the translated address object is the current address's field value and the value is the corresponding translated address's field value.
|
|
397
|
+
*
|
|
398
|
+
* @param {Object} params - The parameters for the function.
|
|
399
|
+
* @param {Address} params.currentAddress - The current address information.
|
|
400
|
+
* @param {Address} params.translatedAddressResult - The translated address result.
|
|
401
|
+
*
|
|
402
|
+
* @returns {TranslatedAddress} - An object containing the translated address. Each field is an object with the current address's field value as the key and the translated address's field value as the value.
|
|
403
|
+
*/
|
|
404
|
+
const buildTranslatedAddress = ({ currentAddress, translatedAddressResult, }) => {
|
|
405
|
+
const translatedAddress = {};
|
|
406
|
+
if (!translatedAddressResult) {
|
|
407
|
+
return translatedAddress;
|
|
408
|
+
}
|
|
409
|
+
const { city, line1, line2, name, postal_code, state } = translatedAddressResult;
|
|
410
|
+
// If we have translated address, add it to the translated address object
|
|
411
|
+
if (currentAddress.city && city) {
|
|
412
|
+
translatedAddress.city = {
|
|
413
|
+
[currentAddress.city]: city,
|
|
414
|
+
};
|
|
415
|
+
}
|
|
416
|
+
if (currentAddress.line1 && line1) {
|
|
417
|
+
translatedAddress.line1 = {
|
|
418
|
+
[currentAddress.line1]: line1,
|
|
419
|
+
};
|
|
420
|
+
}
|
|
421
|
+
if (currentAddress.line2 && line2) {
|
|
422
|
+
translatedAddress.line2 = {
|
|
423
|
+
[currentAddress.line2]: line2,
|
|
424
|
+
};
|
|
425
|
+
}
|
|
426
|
+
if (currentAddress.postal_code && postal_code) {
|
|
427
|
+
translatedAddress.postal_code = {
|
|
428
|
+
[currentAddress.postal_code]: postal_code,
|
|
429
|
+
};
|
|
430
|
+
}
|
|
431
|
+
if (currentAddress.state && state) {
|
|
432
|
+
translatedAddress.state = {
|
|
433
|
+
[currentAddress.state]: state,
|
|
434
|
+
};
|
|
435
|
+
}
|
|
436
|
+
if (currentAddress.name && name) {
|
|
437
|
+
translatedAddress.name = {
|
|
438
|
+
[currentAddress.name]: name,
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
return translatedAddress;
|
|
442
|
+
};
|
|
443
|
+
/**
|
|
444
|
+
* This function translates an address to Latin characters using the Zonos API.
|
|
445
|
+
* It first builds the request body for the API call. If there's no request body, it resets the translated address in the store and returns.
|
|
446
|
+
* If the address is not outdated, it returns without making the API call.
|
|
447
|
+
* It then makes a POST request to the Zonos API to validate and translate the address. If the API call fails, it resets the translated address in the store and returns.
|
|
448
|
+
* If the API call is successful, it sets the current address and billing address in the store and builds the translated address and billing address from the API response.
|
|
449
|
+
*
|
|
450
|
+
* @param {Object} params - The parameters for the function.
|
|
451
|
+
* @param {ReturnType<typeof containsNonLatinChars> | null} params.addressInvalidCharactersList - The list of address fields that contain invalid characters.
|
|
452
|
+
* @param {ReturnType<typeof containsNonLatinChars> | null} params.billingAddressInvalidCharactersList - The list of billing address fields that contain invalid characters.
|
|
453
|
+
*/
|
|
454
|
+
const stripeStoreTranslateAddressToLatin = async ({ addressInvalidCharactersList, billingAddressInvalidCharactersList, }) => {
|
|
455
|
+
var _a, _b, _c, _d;
|
|
456
|
+
const requestBody = buildTranslateRequestBody({
|
|
457
|
+
addressInvalidCharactersList,
|
|
458
|
+
billingAddressInvalidCharactersList,
|
|
459
|
+
stripeAddressEventData: stripeStore.stripeAddressEventData,
|
|
460
|
+
stripeBillingAddressEventData: stripeStore.stripeBillingAddressEventData,
|
|
461
|
+
stripeShippingSameAsBilling: stripeStore.stripeShippingSameAsBilling,
|
|
462
|
+
});
|
|
463
|
+
if (!requestBody) {
|
|
464
|
+
// reset translated address if we don't have any address to translate
|
|
465
|
+
stripeStore.translatedAddress = {
|
|
466
|
+
address: {},
|
|
467
|
+
billingAddress: {},
|
|
468
|
+
};
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
// only translate address if the address is out of date
|
|
472
|
+
const isAddressOutdated = checkIsAddressOutdatedForValidation();
|
|
473
|
+
if (!isAddressOutdated) {
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
const routeUrl = process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL;
|
|
477
|
+
const { errors, json } = await handleFetch(`${routeUrl}/api/zonos-elements/validate-address`, {
|
|
478
|
+
body: requestBody,
|
|
479
|
+
method: 'POST',
|
|
480
|
+
});
|
|
481
|
+
if (errors.length || !json) {
|
|
482
|
+
logError('Error occurs when translating address to latin', JSON.stringify(errors, null, 2));
|
|
483
|
+
// reset translated address if we fail to translate and let user manually fix it
|
|
484
|
+
stripeStore.translatedAddress = {
|
|
485
|
+
address: {},
|
|
486
|
+
billingAddress: {},
|
|
487
|
+
};
|
|
488
|
+
return;
|
|
489
|
+
}
|
|
490
|
+
// Set current address to the store so we can compare it later to determine if we need to re-translate the address
|
|
491
|
+
stripeStore.stripeAddressUsedWhenValidatingAddress =
|
|
492
|
+
stripeStore.stripeAddressEventData;
|
|
493
|
+
stripeStore.stripeBillingAddressUsedWhenValidatingAddress =
|
|
494
|
+
stripeStore.stripeBillingAddressEventData;
|
|
495
|
+
const address = (_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address;
|
|
496
|
+
const billingAddress = (_b = stripeStore.stripeBillingAddressEventData) === null || _b === void 0 ? void 0 : _b.value.address;
|
|
497
|
+
// Set the translated address to the store so we can populate it to the address element for user to update
|
|
498
|
+
stripeStore.translatedAddress = {
|
|
499
|
+
address: address
|
|
500
|
+
? buildTranslatedAddress({
|
|
501
|
+
currentAddress: Object.assign(Object.assign({}, address), { name: (_c = stripeStore.stripeAddressEventData) === null || _c === void 0 ? void 0 : _c.value.name }),
|
|
502
|
+
translatedAddressResult: json.address || null,
|
|
503
|
+
})
|
|
504
|
+
: {},
|
|
505
|
+
billingAddress: !stripeStore.stripeShippingSameAsBilling
|
|
506
|
+
? buildTranslatedAddress({
|
|
507
|
+
currentAddress: Object.assign(Object.assign({}, billingAddress), { name: (_d = stripeStore.stripeBillingAddressEventData) === null || _d === void 0 ? void 0 : _d.value.name }) || {},
|
|
508
|
+
translatedAddressResult: json.billingAddress || null,
|
|
509
|
+
})
|
|
510
|
+
: {},
|
|
511
|
+
};
|
|
512
|
+
};
|
|
374
513
|
onChange('clientSecret', clientSecret => {
|
|
375
514
|
// update stripe elements when client secret changes
|
|
376
515
|
if (clientSecret && stripeStore.stripe) {
|
|
@@ -380,4 +519,4 @@ onChange('clientSecret', clientSecret => {
|
|
|
380
519
|
sessionStorage.removeItem('zonos--client-secret');
|
|
381
520
|
}
|
|
382
521
|
});
|
|
383
|
-
export { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreUpdateCheckoutSession, };
|
|
522
|
+
export { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, };
|
|
@@ -20,9 +20,15 @@ export const stringsArabic = {
|
|
|
20
20
|
Back: {
|
|
21
21
|
value: 'رجوع',
|
|
22
22
|
},
|
|
23
|
+
Billing: {
|
|
24
|
+
value: 'الفوترة',
|
|
25
|
+
},
|
|
23
26
|
'Billing address': {
|
|
24
27
|
value: 'عنوان الفوترة',
|
|
25
28
|
},
|
|
29
|
+
Cancel: {
|
|
30
|
+
value: 'إلغاء',
|
|
31
|
+
},
|
|
26
32
|
'Cart subtotal': {
|
|
27
33
|
value: 'المجموع الفرعي للسلة',
|
|
28
34
|
},
|
|
@@ -59,6 +65,9 @@ export const stringsArabic = {
|
|
|
59
65
|
'Duties, taxes, and fees': {
|
|
60
66
|
value: 'الرسوم والضرائب والرسوم',
|
|
61
67
|
},
|
|
68
|
+
Email: {
|
|
69
|
+
value: 'البريد الإلكتروني',
|
|
70
|
+
},
|
|
62
71
|
'Error creating Checkout': {
|
|
63
72
|
value: 'خطأ في إنشاء جلسة الخروج',
|
|
64
73
|
},
|
|
@@ -68,6 +77,9 @@ export const stringsArabic = {
|
|
|
68
77
|
'Expected delivery': {
|
|
69
78
|
value: 'التوصيل المتوقع',
|
|
70
79
|
},
|
|
80
|
+
'First name': {
|
|
81
|
+
value: 'الاسم الأول',
|
|
82
|
+
},
|
|
71
83
|
'Go to payment': {
|
|
72
84
|
value: 'الذهاب إلى الدفع',
|
|
73
85
|
},
|
|
@@ -80,6 +92,9 @@ export const stringsArabic = {
|
|
|
80
92
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
81
93
|
value: 'تعرف على الرسوم والضرائب قبل الشراء. اشترِ بثقة!',
|
|
82
94
|
},
|
|
95
|
+
'Last name': {
|
|
96
|
+
value: 'الاسم الأخير',
|
|
97
|
+
},
|
|
83
98
|
'Missing required fields. Make sure all fields are completed.': {
|
|
84
99
|
value: 'الحقول المطلوبة مفقودة. تأكد من إكمال جميع الحقول.',
|
|
85
100
|
},
|
|
@@ -125,12 +140,12 @@ export const stringsArabic = {
|
|
|
125
140
|
"Payment processing. We'll update you when payment is received.": {
|
|
126
141
|
value: 'جارٍ معالجة الدفع. سنحدثك عند استلام الدفعة.',
|
|
127
142
|
},
|
|
143
|
+
'Phone number': {
|
|
144
|
+
value: 'رقم الهاتف',
|
|
145
|
+
},
|
|
128
146
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
129
147
|
value: 'يرجى التأكد من أن نصك يستخدم الأبجدية اللاتينية فقط (A-Z, a-z).',
|
|
130
148
|
},
|
|
131
|
-
'Please resolve the following errors:': {
|
|
132
|
-
value: 'الرجاء حل الأخطاء التالية:',
|
|
133
|
-
},
|
|
134
149
|
'Postal code': {
|
|
135
150
|
value: 'الرمز البريدي',
|
|
136
151
|
},
|
|
@@ -176,6 +191,9 @@ export const stringsArabic = {
|
|
|
176
191
|
State: {
|
|
177
192
|
value: 'ولاية',
|
|
178
193
|
},
|
|
194
|
+
'State/Province': {
|
|
195
|
+
value: 'الولاية/المقاطعة',
|
|
196
|
+
},
|
|
179
197
|
'Taxes will apply to all orders': {
|
|
180
198
|
value: 'ستنطبق الضرائب على جميع الطلبات',
|
|
181
199
|
},
|
|
@@ -185,6 +203,18 @@ export const stringsArabic = {
|
|
|
185
203
|
"There's been an error updating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
186
204
|
value: 'حدث خطأ في تحديث جلسة الخروج الخاصة بك. يرجى إعادة التحميل والمحاولة مرة أخرى أو الاتصال بالدعم إذا استمر الخطأ',
|
|
187
205
|
},
|
|
206
|
+
'To ensure delivery all address details must be in Latin characters.': {
|
|
207
|
+
value: 'لضمان التوصيل، يجب أن تكون جميع تفاصيل العنوان بأحرف لاتينية.',
|
|
208
|
+
},
|
|
209
|
+
'Translated address': {
|
|
210
|
+
value: 'العنوان المترجم',
|
|
211
|
+
},
|
|
212
|
+
'Update address': {
|
|
213
|
+
value: 'تحديث العنوان',
|
|
214
|
+
},
|
|
215
|
+
'Update your address': {
|
|
216
|
+
value: 'قم بتحديث عنوانك',
|
|
217
|
+
},
|
|
188
218
|
"We couldn't complete your payment. Please verify the payment details and try again.": {
|
|
189
219
|
value: 'تعذر علينا اكمال الدفع. يرجى التحقق من تفاصيل الدفع وإعادة المحاولة.',
|
|
190
220
|
},
|
|
@@ -197,6 +227,9 @@ export const stringsArabic = {
|
|
|
197
227
|
'Welcome!': {
|
|
198
228
|
value: 'أهلا بك!',
|
|
199
229
|
},
|
|
230
|
+
'What you entered': {
|
|
231
|
+
value: 'ما أدخلته',
|
|
232
|
+
},
|
|
200
233
|
"You're all set!": {
|
|
201
234
|
value: 'أنت جاهز!',
|
|
202
235
|
},
|
|
@@ -212,9 +245,6 @@ export const stringsArabic = {
|
|
|
212
245
|
'duty free': {
|
|
213
246
|
value: 'معفى من الرسوم',
|
|
214
247
|
},
|
|
215
|
-
'only supports Latin characters (A-Z, a-z)': {
|
|
216
|
-
value: 'يدعم فقط الأحرف اللاتينية (A-Z, a-z)',
|
|
217
|
-
},
|
|
218
248
|
'tax free': {
|
|
219
249
|
value: 'معفى من الضرائب',
|
|
220
250
|
},
|
|
@@ -20,9 +20,15 @@ export const stringsBase = {
|
|
|
20
20
|
Back: {
|
|
21
21
|
value: 'Back',
|
|
22
22
|
},
|
|
23
|
+
Billing: {
|
|
24
|
+
value: 'Billing',
|
|
25
|
+
},
|
|
23
26
|
'Billing address': {
|
|
24
27
|
value: 'Billing address',
|
|
25
28
|
},
|
|
29
|
+
Cancel: {
|
|
30
|
+
value: 'Cancel',
|
|
31
|
+
},
|
|
26
32
|
'Cart subtotal': {
|
|
27
33
|
value: 'Cart subtotal',
|
|
28
34
|
},
|
|
@@ -59,6 +65,9 @@ export const stringsBase = {
|
|
|
59
65
|
'Duties, taxes, and fees': {
|
|
60
66
|
value: 'Duties, taxes, and fees',
|
|
61
67
|
},
|
|
68
|
+
Email: {
|
|
69
|
+
value: 'Email',
|
|
70
|
+
},
|
|
62
71
|
'Error creating Checkout': {
|
|
63
72
|
value: 'Error creating Checkout',
|
|
64
73
|
},
|
|
@@ -68,6 +77,9 @@ export const stringsBase = {
|
|
|
68
77
|
'Expected delivery': {
|
|
69
78
|
value: 'Expected delivery',
|
|
70
79
|
},
|
|
80
|
+
'First name': {
|
|
81
|
+
value: 'First name',
|
|
82
|
+
},
|
|
71
83
|
'Go to payment': {
|
|
72
84
|
value: 'Go to payment',
|
|
73
85
|
},
|
|
@@ -80,6 +92,9 @@ export const stringsBase = {
|
|
|
80
92
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
81
93
|
value: 'Know about duties and taxes before you buy. Shop with confidence!',
|
|
82
94
|
},
|
|
95
|
+
'Last name': {
|
|
96
|
+
value: 'Last name',
|
|
97
|
+
},
|
|
83
98
|
'Missing required fields. Make sure all fields are completed.': {
|
|
84
99
|
value: 'Missing required fields. Make sure all fields are completed.',
|
|
85
100
|
},
|
|
@@ -125,12 +140,12 @@ export const stringsBase = {
|
|
|
125
140
|
"Payment processing. We'll update you when payment is received.": {
|
|
126
141
|
value: "Payment processing. We'll update you when payment is received.",
|
|
127
142
|
},
|
|
143
|
+
'Phone number': {
|
|
144
|
+
value: 'Phone number',
|
|
145
|
+
},
|
|
128
146
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
129
147
|
value: 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).',
|
|
130
148
|
},
|
|
131
|
-
'Please resolve the following errors:': {
|
|
132
|
-
value: 'Please resolve the following errors:',
|
|
133
|
-
},
|
|
134
149
|
'Postal code': {
|
|
135
150
|
value: 'Postal code',
|
|
136
151
|
},
|
|
@@ -176,6 +191,9 @@ export const stringsBase = {
|
|
|
176
191
|
State: {
|
|
177
192
|
value: 'State',
|
|
178
193
|
},
|
|
194
|
+
'State/Province': {
|
|
195
|
+
value: 'State/Province',
|
|
196
|
+
},
|
|
179
197
|
'Taxes will apply to all orders': {
|
|
180
198
|
value: 'Taxes will apply to all orders',
|
|
181
199
|
},
|
|
@@ -185,6 +203,18 @@ export const stringsBase = {
|
|
|
185
203
|
"There's been an error updating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
186
204
|
value: "There's been an error updating your checkout session. Please reload and try again or contact support if the error persists",
|
|
187
205
|
},
|
|
206
|
+
'To ensure delivery all address details must be in Latin characters.': {
|
|
207
|
+
value: 'To ensure delivery all address details must be in Latin characters.',
|
|
208
|
+
},
|
|
209
|
+
'Translated address': {
|
|
210
|
+
value: 'Translated address',
|
|
211
|
+
},
|
|
212
|
+
'Update address': {
|
|
213
|
+
value: 'Update address',
|
|
214
|
+
},
|
|
215
|
+
'Update your address': {
|
|
216
|
+
value: 'Update your address',
|
|
217
|
+
},
|
|
188
218
|
"We couldn't complete your payment. Please verify the payment details and try again.": {
|
|
189
219
|
value: "We couldn't complete your payment. Please verify the payment details and try again.",
|
|
190
220
|
},
|
|
@@ -197,6 +227,9 @@ export const stringsBase = {
|
|
|
197
227
|
'Welcome!': {
|
|
198
228
|
value: 'Welcome!',
|
|
199
229
|
},
|
|
230
|
+
'What you entered': {
|
|
231
|
+
value: 'What you entered',
|
|
232
|
+
},
|
|
200
233
|
"You're all set!": {
|
|
201
234
|
value: "You're all set!",
|
|
202
235
|
},
|
|
@@ -212,9 +245,6 @@ export const stringsBase = {
|
|
|
212
245
|
'duty free': {
|
|
213
246
|
value: 'duty free',
|
|
214
247
|
},
|
|
215
|
-
'only supports Latin characters (A-Z, a-z)': {
|
|
216
|
-
value: 'only supports Latin characters (A-Z, a-z)',
|
|
217
|
-
},
|
|
218
248
|
'tax free': {
|
|
219
249
|
value: 'tax free',
|
|
220
250
|
},
|
|
@@ -20,9 +20,15 @@ export const stringsChinese = {
|
|
|
20
20
|
Back: {
|
|
21
21
|
value: '返回',
|
|
22
22
|
},
|
|
23
|
+
Billing: {
|
|
24
|
+
value: '账单',
|
|
25
|
+
},
|
|
23
26
|
'Billing address': {
|
|
24
27
|
value: '账单地址',
|
|
25
28
|
},
|
|
29
|
+
Cancel: {
|
|
30
|
+
value: '取消',
|
|
31
|
+
},
|
|
26
32
|
'Cart subtotal': {
|
|
27
33
|
value: '购物车小计',
|
|
28
34
|
},
|
|
@@ -59,6 +65,9 @@ export const stringsChinese = {
|
|
|
59
65
|
'Duties, taxes, and fees': {
|
|
60
66
|
value: '关税、税款和费用',
|
|
61
67
|
},
|
|
68
|
+
Email: {
|
|
69
|
+
value: '电子邮件',
|
|
70
|
+
},
|
|
62
71
|
'Error creating Checkout': {
|
|
63
72
|
value: '创建结账时出错',
|
|
64
73
|
},
|
|
@@ -68,6 +77,9 @@ export const stringsChinese = {
|
|
|
68
77
|
'Expected delivery': {
|
|
69
78
|
value: '预计送达',
|
|
70
79
|
},
|
|
80
|
+
'First name': {
|
|
81
|
+
value: '名字',
|
|
82
|
+
},
|
|
71
83
|
'Go to payment': {
|
|
72
84
|
value: '前往付款',
|
|
73
85
|
},
|
|
@@ -80,6 +92,9 @@ export const stringsChinese = {
|
|
|
80
92
|
'Know about duties and taxes before you buy. Shop with confidence!': {
|
|
81
93
|
value: '在购买之前了解关税和税款。放心购物!',
|
|
82
94
|
},
|
|
95
|
+
'Last name': {
|
|
96
|
+
value: '姓',
|
|
97
|
+
},
|
|
83
98
|
'Missing required fields. Make sure all fields are completed.': {
|
|
84
99
|
value: '缺少必填字段。确保所有字段均已填写完整。',
|
|
85
100
|
},
|
|
@@ -125,12 +140,12 @@ export const stringsChinese = {
|
|
|
125
140
|
"Payment processing. We'll update you when payment is received.": {
|
|
126
141
|
value: '付款处理中。付款收到后,我们将通知您。',
|
|
127
142
|
},
|
|
143
|
+
'Phone number': {
|
|
144
|
+
value: '电话号码',
|
|
145
|
+
},
|
|
128
146
|
'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
|
|
129
147
|
value: '请确保您的文本仅使用拉丁字母表(A-Z, a-z)。',
|
|
130
148
|
},
|
|
131
|
-
'Please resolve the following errors:': {
|
|
132
|
-
value: '请解决以下错误:',
|
|
133
|
-
},
|
|
134
149
|
'Postal code': {
|
|
135
150
|
value: '邮政编码',
|
|
136
151
|
},
|
|
@@ -176,6 +191,9 @@ export const stringsChinese = {
|
|
|
176
191
|
State: {
|
|
177
192
|
value: '州',
|
|
178
193
|
},
|
|
194
|
+
'State/Province': {
|
|
195
|
+
value: '州/省',
|
|
196
|
+
},
|
|
179
197
|
'Taxes will apply to all orders': {
|
|
180
198
|
value: '税款将适用于所有订单',
|
|
181
199
|
},
|
|
@@ -185,6 +203,18 @@ export const stringsChinese = {
|
|
|
185
203
|
"There's been an error updating your checkout session. Please reload and try again or contact support if the error persists": {
|
|
186
204
|
value: '更新您的结账会话时出现错误。如果错误仍然存在,请重新加载页面并重试,或联系支持',
|
|
187
205
|
},
|
|
206
|
+
'To ensure delivery all address details must be in Latin characters.': {
|
|
207
|
+
value: '为确保送达,所有地址详情必须使用拉丁字符。',
|
|
208
|
+
},
|
|
209
|
+
'Translated address': {
|
|
210
|
+
value: '翻译地址',
|
|
211
|
+
},
|
|
212
|
+
'Update address': {
|
|
213
|
+
value: '更新地址',
|
|
214
|
+
},
|
|
215
|
+
'Update your address': {
|
|
216
|
+
value: '更新您的地址',
|
|
217
|
+
},
|
|
188
218
|
"We couldn't complete your payment. Please verify the payment details and try again.": {
|
|
189
219
|
value: '我们无法完成您的付款。请验证付款详情并重试。',
|
|
190
220
|
},
|
|
@@ -197,6 +227,9 @@ export const stringsChinese = {
|
|
|
197
227
|
'Welcome!': {
|
|
198
228
|
value: '欢迎!',
|
|
199
229
|
},
|
|
230
|
+
'What you entered': {
|
|
231
|
+
value: '您输入的内容',
|
|
232
|
+
},
|
|
200
233
|
"You're all set!": {
|
|
201
234
|
value: '您已完成设置!',
|
|
202
235
|
},
|
|
@@ -212,9 +245,6 @@ export const stringsChinese = {
|
|
|
212
245
|
'duty free': {
|
|
213
246
|
value: '免征关税',
|
|
214
247
|
},
|
|
215
|
-
'only supports Latin characters (A-Z, a-z)': {
|
|
216
|
-
value: '仅支持拉丁字符 (A-Z, a-z)',
|
|
217
|
-
},
|
|
218
248
|
'tax free': {
|
|
219
249
|
value: '免税',
|
|
220
250
|
},
|