@zonos/elements 1.5.0 → 1.5.2
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-Q6aDqqWv.js → TaxId-ChhNwG04.js} +36 -0
- package/dist/cjs/{cart-B6Aty-21.js → cart-BJpqPdFU.js} +100 -64
- package/dist/cjs/{collect-DnrvaXUI.js → collect-CyUttsvB.js} +4 -4
- package/dist/cjs/{debounce-Cd2emZPn.js → debounce-BhgA8_3W.js} +2 -2
- package/dist/cjs/{debounce-vY0QYT6o.js → debounce-DRPMxNew.js} +1 -1
- package/dist/cjs/{getBorderRadius-CyYZw4qq.js → getBorderRadius-CJ_95w3o.js} +1 -1
- package/dist/cjs/{getMissingRequiredShippingFields-D03ICqss.js → getMissingRequiredShippingFields-DEbNbRAZ.js} +1 -1
- package/dist/cjs/{handleFetch-DQLhurnE.js → handleFetch-DVfjFTYO.js} +181 -71
- package/dist/cjs/{hasInclusivePrice-CPCoVeU3.js → hasInclusivePrice-CEPf3_FG.js} +1 -1
- package/dist/cjs/index.cjs.js +116 -13
- package/dist/cjs/{invoice-Cj8W7NW0.js → invoice-DzRkkpLu.js} +4 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{localization-BzNeXeDe.js → localization-BhNVhLZs.js} +725 -89
- package/dist/cjs/{paypal-CuKshRmZ.js → paypal-DCSqbdjW.js} +5 -5
- package/dist/cjs/{placeTestOrder-7czjwkjm.js → placeTestOrder-Bkip4PUT.js} +3 -3
- package/dist/cjs/{renderCheckoutCurrency-BH8t2b2x.js → renderCheckoutCurrency-BDvEZ3Hv.js} +2 -2
- package/dist/cjs/shouldRenderShortAddressCodeInput-gpu_bMfp.js +21 -0
- package/dist/cjs/{shouldShowLanguageSelect-yAbtCmd8.js → shouldShowLanguageSelect-NOVWOU53.js} +1 -1
- package/dist/cjs/{submitGtag-D79e8u6s.js → submitGtag-D4sB7w4z.js} +2 -2
- package/dist/cjs/{throttle-zSVRQLC0.js → taxIdFields-e4OCgr8K.js} +57 -2
- package/dist/cjs/taxIdRules-BBj8kQxJ.js +58 -0
- package/dist/cjs/{updateCheckoutSessionAttributes-jMtfOL2m.js → updateCheckoutSessionAttributes-KxwcsKhM.js} +2 -2
- package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +26 -31
- package/dist/cjs/zonos-address-display_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-address_4.cjs.entry.js +28 -31
- package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +8 -7
- package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
- package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
- package/dist/cjs/zonos-button_3.cjs.entry.js +2 -2
- package/dist/cjs/zonos-card_5.cjs.entry.js +9 -8
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +91 -86
- package/dist/cjs/zonos-checkbox_2.cjs.entry.js +2 -2
- package/dist/cjs/zonos-checkout.cjs.entry.js +15 -14
- package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -6
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +13 -12
- package/dist/cjs/zonos-collect.cjs.entry.js +10 -9
- package/dist/cjs/zonos-controller.cjs.entry.js +10 -9
- package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +9 -8
- package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +13 -12
- package/dist/cjs/zonos-invoice.cjs.entry.js +10 -9
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +3 -3
- package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
- package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +8 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +2 -2
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
- package/dist/cjs/{zonosStore-Bx9jK82G.js → zonosStore-CDV83QyK.js} +2 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +8 -7
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +4 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +12 -4
- package/dist/collection/components/main/zonos-controller.js +3 -2
- package/dist/collection/components/store/checkout/cart.js +3 -2
- package/dist/collection/components/store/checkout/stripe.js +20 -21
- package/dist/collection/components/store/storageStore.js +7 -6
- package/dist/collection/components/store/translationStore/strings.arabic.js +35 -2
- package/dist/collection/components/store/translationStore/strings.base.js +35 -2
- package/dist/collection/components/store/translationStore/strings.chinese.js +35 -2
- package/dist/collection/components/store/translationStore/strings.danish.js +35 -2
- package/dist/collection/components/store/translationStore/strings.dutch.js +35 -2
- package/dist/collection/components/store/translationStore/strings.french.js +35 -2
- package/dist/collection/components/store/translationStore/strings.german.js +35 -2
- package/dist/collection/components/store/translationStore/strings.hebrew.js +35 -2
- package/dist/collection/components/store/translationStore/strings.indonesian.js +35 -2
- package/dist/collection/components/store/translationStore/strings.italian.js +35 -2
- package/dist/collection/components/store/translationStore/strings.japanese.js +35 -2
- package/dist/collection/components/store/translationStore/strings.korean.js +35 -2
- package/dist/collection/components/store/translationStore/strings.norwegian.js +35 -2
- package/dist/collection/components/store/translationStore/strings.polish.js +35 -2
- package/dist/collection/components/store/translationStore/strings.portuguese.js +35 -2
- package/dist/collection/components/store/translationStore/strings.russian.js +35 -2
- package/dist/collection/components/store/translationStore/strings.spanish.js +35 -2
- package/dist/collection/components/store/translationStore/strings.swedish.js +35 -2
- package/dist/collection/components/store/translationStore/strings.turkish.js +35 -2
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +35 -2
- package/dist/collection/components/store/zonosStore.js +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.css +5 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +37 -22
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.css +5 -0
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +34 -21
- package/dist/collection/components/utils/__tests__/helpers/blockStorage.js +24 -0
- package/dist/collection/components/utils/api/getExchangeRate.js +2 -1
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +24 -35
- package/dist/collection/components/utils/checkout/getCheckoutTaxIdPayload.js +16 -0
- package/dist/collection/components/utils/checkout/getTaxIdFieldState.js +26 -0
- package/dist/collection/components/utils/checkout/resolveTaxIdSelection.js +23 -0
- package/dist/collection/components/utils/checkout/shouldRenderTaxIdInput.js +7 -11
- package/dist/collection/components/utils/checkout/taxIdFields.js +29 -0
- package/dist/collection/components/utils/handleFetch.js +19 -9
- package/dist/collection/components/utils/hello/countryOverrideStorage.js +17 -40
- package/dist/collection/components/utils/logging/installConstructorCapture.js +58 -0
- package/dist/collection/components/utils/logging/reportBlockedStorage.js +34 -0
- package/dist/collection/components/utils/logging/sendErrorLog.js +8 -1
- package/dist/collection/components/utils/logging/startZonosInit.js +35 -0
- package/dist/collection/components/utils/logging/thrownMessage.js +16 -0
- package/dist/collection/components/utils/safeStorage.js +39 -0
- package/dist/collection/components/utils/taxId/taxIdRules.js +44 -0
- package/dist/collection/components/utils/taxIdValidationResult.js +57 -58
- package/dist/collection/index.js +1 -0
- package/dist/collection/scripts/_getZonosQaUrl.js +3 -2
- package/dist/collection/scripts/_zonosBase.js +6 -2
- package/dist/collection/types/checkout/TaxId.js +31 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +0 -16
- package/dist/collection/types/generated/graphql.internal.types.js +215 -1
- package/dist/esm/{TaxId-Cye-evFK.js → TaxId-DMIgN_sT.js} +32 -1
- package/dist/esm/{cart-BoQp8Ema.js → cart-BS5mSI8x.js} +100 -65
- package/dist/esm/{collect-Eo4gtyql.js → collect-B9ZxDDl7.js} +4 -4
- package/dist/esm/{debounce-BR3PaG8X.js → debounce-DHj2iHA1.js} +1 -1
- package/dist/esm/{debounce-CrmpwbEE.js → debounce-DWqMT4lo.js} +2 -2
- package/dist/esm/{getBorderRadius-DYfkeXdx.js → getBorderRadius-BiGd45jw.js} +1 -1
- package/dist/esm/{getMissingRequiredShippingFields-Ks6_tpjn.js → getMissingRequiredShippingFields-BkEV865q.js} +1 -1
- package/dist/esm/{handleFetch-D5GYDF-O.js → handleFetch-BFVO7oAR.js} +178 -72
- package/dist/esm/{hasInclusivePrice-CbEfIhI5.js → hasInclusivePrice-zSvDReDb.js} +1 -1
- package/dist/esm/index.js +106 -13
- package/dist/esm/{invoice-S1KahJ_Z.js → invoice-6iTuS6ek.js} +4 -4
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{localization-BIh-4pc_.js → localization-CXHiWcJp.js} +725 -89
- package/dist/esm/{paypal-DNfvnuUU.js → paypal-BE_NVBoy.js} +5 -5
- package/dist/esm/{placeTestOrder-CQaMKFOg.js → placeTestOrder-BXA9K9Iy.js} +3 -3
- package/dist/esm/{renderCheckoutCurrency-C2Tw73uR.js → renderCheckoutCurrency-KMa4HlAf.js} +2 -2
- package/dist/esm/shouldRenderShortAddressCodeInput-Bc8k2vN0.js +19 -0
- package/dist/esm/{shouldShowLanguageSelect-CCD7gpSY.js → shouldShowLanguageSelect-BI_ApEsQ.js} +1 -1
- package/dist/esm/{submitGtag-df9AQ2zL.js → submitGtag-C5xzFHjG.js} +2 -2
- package/dist/esm/taxIdFields-BUKnHMaL.js +139 -0
- package/dist/esm/taxIdRules-xYlx7ZXW.js +47 -0
- package/dist/esm/{updateCheckoutSessionAttributes-4Jq6V4pO.js → updateCheckoutSessionAttributes-C9bMKTjz.js} +2 -2
- package/dist/esm/zonos-address-completion-dialog_7.entry.js +24 -29
- package/dist/esm/zonos-address-display_2.entry.js +4 -4
- package/dist/esm/zonos-address_4.entry.js +26 -29
- package/dist/esm/zonos-airwallex-payment.entry.js +8 -7
- package/dist/esm/zonos-badge.entry.js +1 -1
- package/dist/esm/zonos-banner.entry.js +1 -1
- package/dist/esm/zonos-button_3.entry.js +2 -2
- package/dist/esm/zonos-card_5.entry.js +9 -8
- package/dist/esm/zonos-cart-items_12.entry.js +90 -85
- package/dist/esm/zonos-checkbox_2.entry.js +2 -2
- package/dist/esm/zonos-checkout.entry.js +15 -14
- package/dist/esm/zonos-collapse.entry.js +1 -1
- package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -6
- package/dist/esm/zonos-collect-finish_6.entry.js +13 -12
- package/dist/esm/zonos-collect.entry.js +10 -9
- package/dist/esm/zonos-controller.entry.js +10 -9
- package/dist/esm/zonos-country-flag.entry.js +3 -3
- package/dist/esm/zonos-country-select_4.entry.js +4 -4
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +2 -2
- package/dist/esm/zonos-invoice-cart-items_2.entry.js +9 -8
- package/dist/esm/zonos-invoice-finish_5.entry.js +13 -12
- package/dist/esm/zonos-invoice.entry.js +10 -9
- package/dist/esm/zonos-language-select_2.entry.js +3 -3
- package/dist/esm/zonos-logo.entry.js +1 -1
- package/dist/esm/zonos-policy-consent_2.entry.js +8 -7
- package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +2 -2
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-v-stack.entry.js +1 -1
- package/dist/esm/{zonosStore-msUlqmSD.js → zonosStore-BXP9FvIt.js} +2 -1
- package/dist/esm-es5/{TaxId-Cye-evFK.js → TaxId-DMIgN_sT.js} +2 -1
- package/dist/esm-es5/{cart-BoQp8Ema.js → cart-BS5mSI8x.js} +42 -31
- package/dist/esm-es5/{collect-Eo4gtyql.js → collect-B9ZxDDl7.js} +1 -1
- package/dist/esm-es5/{debounce-BR3PaG8X.js → debounce-DHj2iHA1.js} +7 -7
- package/dist/esm-es5/debounce-DWqMT4lo.js +1 -0
- package/dist/esm-es5/getBorderRadius-BiGd45jw.js +8 -0
- package/dist/esm-es5/{getMissingRequiredShippingFields-Ks6_tpjn.js → getMissingRequiredShippingFields-BkEV865q.js} +3 -3
- package/dist/esm-es5/handleFetch-BFVO7oAR.js +73 -0
- package/dist/esm-es5/{hasInclusivePrice-CbEfIhI5.js → hasInclusivePrice-zSvDReDb.js} +1 -1
- package/dist/esm-es5/index.js +30 -12
- package/dist/esm-es5/{invoice-S1KahJ_Z.js → invoice-6iTuS6ek.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-CXHiWcJp.js +345 -0
- package/dist/esm-es5/{paypal-DNfvnuUU.js → paypal-BE_NVBoy.js} +1 -1
- package/dist/esm-es5/{placeTestOrder-CQaMKFOg.js → placeTestOrder-BXA9K9Iy.js} +1 -1
- package/dist/esm-es5/{renderCheckoutCurrency-C2Tw73uR.js → renderCheckoutCurrency-KMa4HlAf.js} +1 -1
- package/dist/esm-es5/shouldRenderShortAddressCodeInput-Bc8k2vN0.js +8 -0
- package/dist/esm-es5/{shouldShowLanguageSelect-CCD7gpSY.js → shouldShowLanguageSelect-BI_ApEsQ.js} +1 -1
- package/dist/esm-es5/{submitGtag-df9AQ2zL.js → submitGtag-C5xzFHjG.js} +1 -1
- package/dist/esm-es5/taxIdFields-BUKnHMaL.js +46 -0
- package/dist/esm-es5/taxIdRules-xYlx7ZXW.js +6 -0
- package/dist/esm-es5/{updateCheckoutSessionAttributes-4Jq6V4pO.js → updateCheckoutSessionAttributes-C9bMKTjz.js} +1 -1
- package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +253 -254
- package/dist/esm-es5/zonos-address-display_2.entry.js +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +8 -9
- 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-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card_5.entry.js +6 -6
- package/dist/esm-es5/zonos-cart-items_12.entry.js +137 -136
- package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +3 -3
- 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 +6 -6
- package/dist/esm-es5/zonos-controller.entry.js +5 -5
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +2 -2
- 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 +2 -2
- package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
- package/dist/esm-es5/zonos-invoice.entry.js +3 -3
- package/dist/esm-es5/zonos-language-select_2.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-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-msUlqmSD.js → zonosStore-BXP9FvIt.js} +1 -1
- package/dist/scripts/index.d.ts +103 -1
- 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-customer-info/zonos-customer-info.d.ts +4 -0
- package/dist/types/components/store/checkout/stripe.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.base.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.danish.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.french.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.german.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.italian.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.korean.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.polish.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.russian.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +34 -1
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +34 -1
- package/dist/types/components/store/zonosStore.d.ts +2 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +4 -1
- package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +4 -1
- package/dist/types/components/utils/__tests__/helpers/blockStorage.d.ts +3 -0
- package/dist/types/components/utils/checkout/getCheckoutTaxIdPayload.d.ts +6 -0
- package/dist/types/components/utils/checkout/getTaxIdFieldState.d.ts +18 -0
- package/dist/types/components/utils/checkout/resolveTaxIdSelection.d.ts +12 -0
- package/dist/types/components/utils/checkout/shouldRenderTaxIdInput.d.ts +2 -1
- package/dist/types/components/utils/checkout/taxIdFields.d.ts +11 -0
- package/dist/types/components/utils/logging/installConstructorCapture.d.ts +20 -0
- package/dist/types/components/utils/logging/reportBlockedStorage.d.ts +16 -0
- package/dist/types/components/utils/logging/startZonosInit.d.ts +5 -0
- package/dist/types/components/utils/logging/thrownMessage.d.ts +1 -0
- package/dist/types/components/utils/safeStorage.d.ts +4 -0
- package/dist/types/components/utils/taxId/taxIdRules.d.ts +37 -0
- package/dist/types/components/utils/taxIdValidationResult.d.ts +8 -2
- package/dist/types/components.d.ts +22 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
- package/dist/types/types/checkout/TaxId.d.ts +45 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +11 -0
- package/dist/types/types/checkout/api/CreateParty.d.ts +2 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +0 -22
- package/dist/types/types/generated/graphql.frontend.types.ts +0 -51
- package/dist/types/types/generated/graphql.internal.types.d.ts +270 -1
- package/dist/types/types/generated/graphql.internal.types.ts +341 -1
- package/dist/types/types/utils/ZonosSettings.d.ts +5 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/p-08b01c96.entry.js +1 -0
- package/dist/zonos-elements/{p-c961caaf.entry.js → p-0909ef77.entry.js} +1 -1
- package/dist/zonos-elements/{p-23352709.system.entry.js → p-13015d34.system.entry.js} +4 -4
- package/dist/zonos-elements/{p-6c41b00c.entry.js → p-13d5b2f9.entry.js} +1 -1
- package/dist/zonos-elements/{p-5b80aff2.system.entry.js → p-150047b3.system.entry.js} +25 -25
- package/dist/zonos-elements/p-1986cc37.entry.js +1 -0
- package/dist/zonos-elements/{p-CBx5nYet.system.js → p-1OG3IJgY.system.js} +1 -1
- package/dist/zonos-elements/{p-d3d0656a.entry.js → p-1a5acbcd.entry.js} +1 -1
- package/dist/zonos-elements/{p-756d303f.system.entry.js → p-20eb00de.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9c33f7ed.system.entry.js → p-30bf4700.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d168023b.entry.js → p-3466bcba.entry.js} +1 -1
- package/dist/zonos-elements/p-383343c7.entry.js +1 -0
- package/dist/zonos-elements/{p-06030d3b.system.entry.js → p-3a506614.system.entry.js} +54 -54
- package/dist/zonos-elements/p-43c0ebe9.entry.js +1 -0
- package/dist/zonos-elements/{p-acd50b0b.entry.js → p-4612facd.entry.js} +1 -1
- package/dist/zonos-elements/{p-244e0302.system.entry.js → p-4715045c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-4b65f192.entry.js +1 -0
- package/dist/zonos-elements/{p-5967a1c1.system.entry.js → p-573a4e7c.system.entry.js} +6 -6
- package/dist/zonos-elements/p-59fc32af.entry.js +1 -0
- package/dist/zonos-elements/{p-d82fd8a9.system.entry.js → p-5a296dbc.system.entry.js} +117 -116
- package/dist/zonos-elements/{p-193d9722.entry.js → p-61312d5b.entry.js} +1 -1
- package/dist/zonos-elements/{p-6abec43f.system.entry.js → p-68325c5a.system.entry.js} +4 -4
- package/dist/zonos-elements/{p-0b81f8b9.system.entry.js → p-6db7317a.system.entry.js} +6 -6
- package/dist/zonos-elements/{p-51400242.system.entry.js → p-709d1561.system.entry.js} +3 -3
- package/dist/zonos-elements/p-71d29603.entry.js +1 -0
- package/dist/zonos-elements/{p-7bd99479.system.entry.js → p-7214c953.system.entry.js} +21 -21
- package/dist/zonos-elements/p-74659d88.entry.js +1 -0
- package/dist/zonos-elements/{p-55916c90.entry.js → p-7f1bea9b.entry.js} +1 -1
- package/dist/zonos-elements/{p-0fca452b.entry.js → p-7fe83919.entry.js} +1 -1
- package/dist/zonos-elements/{p-1c150f26.entry.js → p-821e413a.entry.js} +1 -1
- package/dist/zonos-elements/{p-c403f004.system.entry.js → p-82e45d0c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1409de3b.system.entry.js → p-88e20e99.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-195f6e38.system.entry.js → p-89a3c4db.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8ac26831.entry.js +1 -0
- package/dist/zonos-elements/{p-a40fd99b.system.entry.js → p-8f9f859f.system.entry.js} +39 -40
- package/dist/zonos-elements/{p-92fe9a1f.system.entry.js → p-902cca23.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0a4a7742.system.entry.js → p-93860183.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b5882fbb.system.entry.js → p-9449b4f4.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-31043c2e.system.entry.js → p-96b250d8.system.entry.js} +298 -299
- package/dist/zonos-elements/p-97729873.entry.js +1 -0
- package/dist/zonos-elements/{p-1bac5ac1.system.entry.js → p-990fcf81.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7f031592.system.entry.js → p-9b3668a4.system.entry.js} +155 -155
- package/dist/zonos-elements/{p-249c1ee1.system.entry.js → p-9df31243.system.entry.js} +3 -3
- package/dist/zonos-elements/p-BD-9rD53.js +1 -0
- package/dist/zonos-elements/p-BI6VAB5B.js +1 -0
- package/dist/zonos-elements/p-BJFa5RwX.js +1 -0
- package/dist/zonos-elements/p-BJ_kE5rM.js +1 -0
- package/dist/zonos-elements/{p-Be3Hpms1.system.js → p-BKUlQxBd.system.js} +1 -1
- package/dist/zonos-elements/p-BUfCTQXY.system.js +528 -0
- package/dist/zonos-elements/{p-CZD8WvyY.system.js → p-BnQyot7Y.system.js} +23 -23
- package/dist/zonos-elements/p-Bu9WCfUC.system.js +2 -2
- package/dist/zonos-elements/{p-0mGRBGcf.js → p-C-zdj7MK.js} +1 -1
- package/dist/zonos-elements/p-C5fs3rIR.js +1 -0
- package/dist/zonos-elements/{p-sz4L-ZnB.js → p-CJmWr75U.js} +1 -1
- package/dist/zonos-elements/{p-XDxdMlQl.system.js → p-CMneHjck.system.js} +15 -15
- package/dist/zonos-elements/p-CP7KnfR3.system.js +245 -0
- package/dist/zonos-elements/p-CVRbGFV3.js +1 -0
- package/dist/zonos-elements/p-CYxMfUL7.system.js +1 -0
- package/dist/zonos-elements/p-Cl5yV0ak.js +1 -0
- package/dist/zonos-elements/{p-kaOxUR9u.system.js → p-Cp1IAJvW.system.js} +5 -5
- package/dist/zonos-elements/{p-W82paT5F.js → p-CqB9AfBf.js} +1 -1
- package/dist/zonos-elements/p-CzKlS3E-.system.js +6 -0
- package/dist/zonos-elements/p-D-Lnf8mS.system.js +345 -0
- package/dist/zonos-elements/p-D0DkOoAw.system.js +73 -0
- package/dist/zonos-elements/{p-c9QtIdJX.js → p-D4xpkSsK.js} +1 -1
- package/dist/zonos-elements/p-DATNIakn.js +1 -0
- package/dist/zonos-elements/{p-D4MevhAL.system.js → p-DC1OPJDq.system.js} +3 -3
- package/dist/zonos-elements/{p-8PPEbm_0.system.js → p-DIab60nK.system.js} +12 -12
- package/dist/zonos-elements/p-DKnphvmJ.js +1 -0
- package/dist/zonos-elements/{p-Cye-evFK.js → p-DMIgN_sT.js} +1 -1
- package/dist/zonos-elements/{p-BuU_p5DP.system.js → p-DTgUqgwV.system.js} +2 -2
- package/dist/zonos-elements/p-DW7I0zOF.js +1 -0
- package/dist/zonos-elements/{p-DoEHepOc.system.js → p-DXlojp_Y.system.js} +1 -1
- package/dist/zonos-elements/p-DqVePqqx.system.js +8 -0
- package/dist/zonos-elements/{p-B4Ufchqh.system.js → p-DrS-0mk7.system.js} +3 -3
- package/dist/zonos-elements/{p-7abqRc9V.js → p-DrbN3rPL.js} +2 -2
- package/dist/zonos-elements/{p-Cby4EkFu.system.js → p-DsBuZ6ob.system.js} +2 -1
- package/dist/zonos-elements/{p-DI2vXnXc.system.js → p-Dv5a-V6w.system.js} +1 -1
- package/dist/zonos-elements/p-Dwg61Ft_.js +1 -0
- package/dist/zonos-elements/{p-474e8a92.system.entry.js → p-a1022808.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-17c7ea4a.system.entry.js → p-a3c147d2.system.entry.js} +3 -3
- package/dist/zonos-elements/p-aK18R41t.js +1 -0
- package/dist/zonos-elements/{p-83aa1c8c.entry.js → p-ad04bba2.entry.js} +1 -1
- package/dist/zonos-elements/p-af4ad54b.entry.js +1 -0
- package/dist/zonos-elements/p-af741506.entry.js +1 -0
- package/dist/zonos-elements/{p-a938c174.entry.js → p-b51010b9.entry.js} +1 -1
- package/dist/zonos-elements/{p-6db7c0b1.system.entry.js → p-b540c636.system.entry.js} +2 -2
- package/dist/zonos-elements/p-bac94956.entry.js +1 -0
- package/dist/zonos-elements/{p-69c3e367.system.entry.js → p-bb1b414a.system.entry.js} +9 -9
- package/dist/zonos-elements/{p-b79036fc.entry.js → p-bfa9e32a.entry.js} +1 -1
- package/dist/zonos-elements/{p-dfc87b10.system.entry.js → p-c33b8f6a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-cf6bf7a4.entry.js +1 -0
- package/dist/zonos-elements/{p-CEK_Wk6v.system.js → p-dJcbnNlE.system.js} +1 -1
- package/dist/zonos-elements/p-db40b9c3.entry.js +1 -0
- package/dist/zonos-elements/p-dd003161.entry.js +1 -0
- package/dist/zonos-elements/{p-2603dce0.entry.js → p-e216cc8c.entry.js} +1 -1
- package/dist/zonos-elements/p-e374aaa4.entry.js +1 -0
- package/dist/zonos-elements/{p-155ed3d3.system.entry.js → p-e43470f7.system.entry.js} +21 -21
- package/dist/zonos-elements/p-ebc7ea54.system.entry.js +13 -0
- package/dist/zonos-elements/{p-11defdca.system.entry.js → p-f2ed52bc.system.entry.js} +8 -8
- package/dist/zonos-elements/{p-d4d2b39e.entry.js → p-fddf3556.entry.js} +1 -1
- package/dist/zonos-elements/p-gEViRqvf.js +1 -0
- package/dist/zonos-elements/{p-BpDCLBwW.js → p-n5PZKz1k.js} +1 -1
- package/dist/zonos-elements/{p-C_z9WL8a.js → p-r-YGHhLa.js} +1 -1
- package/dist/zonos-elements/{p-XqkqjeNV.system.js → p-yv7ekcdG.system.js} +2 -2
- package/dist/zonos-elements/{p-DQZncB2d.system.js → p-zsTASoh2.system.js} +3 -3
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/shouldRenderTaxIdInput-TxekHCp7.js +0 -43
- package/dist/esm/shouldRenderTaxIdInput-CKyZ6Zni.js +0 -40
- package/dist/esm/throttle-Cvlvb-dm.js +0 -85
- package/dist/esm-es5/debounce-CrmpwbEE.js +0 -1
- package/dist/esm-es5/getBorderRadius-DYfkeXdx.js +0 -8
- package/dist/esm-es5/handleFetch-D5GYDF-O.js +0 -60
- package/dist/esm-es5/localization-BIh-4pc_.js +0 -348
- package/dist/esm-es5/shouldRenderTaxIdInput-CKyZ6Zni.js +0 -17
- package/dist/esm-es5/throttle-Cvlvb-dm.js +0 -46
- package/dist/zonos-elements/p-06fe2939.entry.js +0 -1
- package/dist/zonos-elements/p-24f3c547.entry.js +0 -1
- package/dist/zonos-elements/p-30b3c9d3.entry.js +0 -1
- package/dist/zonos-elements/p-39ee1558.entry.js +0 -1
- package/dist/zonos-elements/p-3a2da031.entry.js +0 -1
- package/dist/zonos-elements/p-4679f0ec.entry.js +0 -1
- package/dist/zonos-elements/p-4806b264.system.entry.js +0 -13
- package/dist/zonos-elements/p-5873ab8e.entry.js +0 -1
- package/dist/zonos-elements/p-725e29bb.entry.js +0 -1
- package/dist/zonos-elements/p-BGktDPwA.system.js +0 -1
- package/dist/zonos-elements/p-Bi-s0fp_.system.js +0 -17
- package/dist/zonos-elements/p-CFbfEmjN.js +0 -1
- package/dist/zonos-elements/p-CUaf1cEg.js +0 -1
- package/dist/zonos-elements/p-CXxvn4GX.system.js +0 -227
- package/dist/zonos-elements/p-CcJF6xhQ.js +0 -1
- package/dist/zonos-elements/p-Cxuiqv1I.js +0 -1
- package/dist/zonos-elements/p-D-bZg-Pc.js +0 -1
- package/dist/zonos-elements/p-DE4a-QD5.js +0 -1
- package/dist/zonos-elements/p-DOD2I44l.system.js +0 -348
- package/dist/zonos-elements/p-DS-qw_qc.system.js +0 -517
- package/dist/zonos-elements/p-DZ2mevDK.js +0 -1
- package/dist/zonos-elements/p-DnjGkbEy.js +0 -1
- package/dist/zonos-elements/p-FRWZayxL.js +0 -1
- package/dist/zonos-elements/p-Mrz_lnC1.js +0 -1
- package/dist/zonos-elements/p-ad9ff14c.entry.js +0 -1
- package/dist/zonos-elements/p-bb3546c0.entry.js +0 -1
- package/dist/zonos-elements/p-c1cbfdba.entry.js +0 -1
- package/dist/zonos-elements/p-c47ce656.entry.js +0 -1
- package/dist/zonos-elements/p-c9d5d8f1.entry.js +0 -1
- package/dist/zonos-elements/p-clDfq9AL.js +0 -1
- package/dist/zonos-elements/p-d74bc3e8.entry.js +0 -1
- package/dist/zonos-elements/p-d8b312e5.entry.js +0 -1
- package/dist/zonos-elements/p-db87b0dd.entry.js +0 -1
- package/dist/zonos-elements/p-defc2d18.entry.js +0 -1
- package/dist/zonos-elements/p-rVp8hgWw.js +0 -1
- package/dist/zonos-elements/p-zVLAvre1.system.js +0 -60
|
@@ -13,6 +13,7 @@ import { initHello } from "../utils/hello/initHello";
|
|
|
13
13
|
import { CheckoutAddressService } from "../utils/iframe/CheckoutAddressService";
|
|
14
14
|
import { iframeServices, injectPrivateIframe, } from "../utils/iframe/IframeHelpers";
|
|
15
15
|
import { log } from "../utils/logging/log";
|
|
16
|
+
import { safeGetItem } from "../utils/safeStorage";
|
|
16
17
|
import { ensureAnalyticsRelayPing } from "../utils/submitGtag";
|
|
17
18
|
export class ZonosController {
|
|
18
19
|
/**
|
|
@@ -283,7 +284,7 @@ export class ZonosController {
|
|
|
283
284
|
// Checkout also runs without merchant cart callbacks when a cart is
|
|
284
285
|
// prefetched (e.g. `tempCartUUID` -> `cartData`) or when resuming a
|
|
285
286
|
// payment via the Stripe client secret. Stripe must still load for those.
|
|
286
|
-
const clientSecret = new URL(window.location.href).searchParams.get('payment_intent_client_secret') ||
|
|
287
|
+
const clientSecret = new URL(window.location.href).searchParams.get('payment_intent_client_secret') || safeGetItem('session', 'zonos--client-secret');
|
|
287
288
|
const hasPrefetchedCheckoutContext = !!(window.Zonos.cartId && window.Zonos.cartData) || !!clientSecret;
|
|
288
289
|
if (!hasCartCallback && !hasPrefetchedCheckoutContext) {
|
|
289
290
|
log(`Skip loading Stripe because no cart callback (buildCartDetail/createCartId), prefetched cart, or payment client secret is present`, 'warn');
|
|
@@ -348,7 +349,7 @@ export class ZonosController {
|
|
|
348
349
|
zonosStore.organizationName = organizationName;
|
|
349
350
|
}
|
|
350
351
|
render() {
|
|
351
|
-
return h(Host, { key: '
|
|
352
|
+
return h(Host, { key: 'a72ab4fb14df090eb24520fd5821746caa61e318', class: "zonos--elements" });
|
|
352
353
|
}
|
|
353
354
|
static get is() { return "zonos-controller"; }
|
|
354
355
|
static get encapsulation() { return "shadow"; }
|
|
@@ -10,6 +10,7 @@ import { isEuDapRemittance } from "../../utils/checkout/isEuDapRemittance";
|
|
|
10
10
|
import { allLogs, log } from "../../utils/logging/log";
|
|
11
11
|
import { logError } from "../../utils/logging/logError";
|
|
12
12
|
import { sendErrorLog } from "../../utils/logging/sendErrorLog";
|
|
13
|
+
import { safeGetItem } from "../../utils/safeStorage";
|
|
13
14
|
import { filterValidTests } from "../../utils/varianceTest/filterValidTests";
|
|
14
15
|
const { onChange: cartStoreOnChange, reset, state: cartStore, } = createStore(() => ({
|
|
15
16
|
addressFormRenderType: 'stripe',
|
|
@@ -36,9 +37,9 @@ const { onChange: cartStoreOnChange, reset, state: cartStore, } = createStore(()
|
|
|
36
37
|
landedCostData: null,
|
|
37
38
|
landedCostMethod: 'DDP',
|
|
38
39
|
partiesData: [],
|
|
39
|
-
promoCode:
|
|
40
|
+
promoCode: safeGetItem('session', 'zonos--promo-code') || '',
|
|
40
41
|
// When user clicked applied button, save promocode into session storage for later use. So if session has promocode, applied button is clicked
|
|
41
|
-
promoCodeApplied: !!
|
|
42
|
+
promoCodeApplied: !!safeGetItem('session', 'zonos--promo-code'),
|
|
42
43
|
promoCodeError: false,
|
|
43
44
|
restrictedItems: [],
|
|
44
45
|
selectedLandedCost: null,
|
|
@@ -8,6 +8,7 @@ import { zonosStore } from "../zonosStore";
|
|
|
8
8
|
import { calculateLandedCostNormalized } from "../../utils/api/calculateLandedCostNormalized";
|
|
9
9
|
import { trackConversionEvent } from "../../utils/api/trackConversionEvent";
|
|
10
10
|
import { buildTranslateRequest } from "../../utils/checkout/buildTranslateRequest";
|
|
11
|
+
import { getCheckoutTaxIdPayload } from "../../utils/checkout/getCheckoutTaxIdPayload";
|
|
11
12
|
import { sortServiceLevelOptionsByAmount } from "../../utils/checkout/sortServiceLevelOptionsByAmount";
|
|
12
13
|
import { extractName } from "../../utils/extractName";
|
|
13
14
|
import { fallbackApiList } from "../../utils/getNextFallbackApi";
|
|
@@ -17,13 +18,14 @@ import { jsonParse } from "../../utils/jsonParse";
|
|
|
17
18
|
import { allLogs, log } from "../../utils/logging/log";
|
|
18
19
|
import { logError } from "../../utils/logging/logError";
|
|
19
20
|
import { sendErrorLog } from "../../utils/logging/sendErrorLog";
|
|
21
|
+
import { safeGetItem, safeRemoveItem, safeSetItem, } from "../../utils/safeStorage";
|
|
20
22
|
import { validateCheckoutSession } from "../../utils/validateCheckoutSession";
|
|
21
23
|
import { addressRuleStyle } from "../../../styles/stripe/addressRuleStyle";
|
|
22
24
|
import { defaultVariable } from "../../../styles/stripe/defaultVariable";
|
|
23
25
|
import { checkoutPaymentProcessorType, } from "../../../types/generated/graphql.internal.types";
|
|
24
26
|
const { onChange: stripeStoreOnChange, reset, state: stripeStore, } = createStore(() => ({
|
|
25
27
|
checkoutSettlementCurrency: 'USD',
|
|
26
|
-
clientSecret:
|
|
28
|
+
clientSecret: safeGetItem('session', 'zonos--client-secret') || '',
|
|
27
29
|
companyName: '',
|
|
28
30
|
companyNameUsedWhenAsyncAddressUpdate: '',
|
|
29
31
|
customAddressErrors: {
|
|
@@ -86,6 +88,8 @@ const { onChange: stripeStoreOnChange, reset, state: stripeStore, } = createStor
|
|
|
86
88
|
stripePaymentEventData: null,
|
|
87
89
|
stripeShippingSameAsBilling: true,
|
|
88
90
|
taxId: '',
|
|
91
|
+
taxIdType: '',
|
|
92
|
+
taxIdTypeUsedWhenAsyncAddressUpdate: '',
|
|
89
93
|
taxIdUsedWhenAsyncAddressUpdate: '',
|
|
90
94
|
translatedAddress: {
|
|
91
95
|
address: {},
|
|
@@ -131,14 +135,14 @@ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryC
|
|
|
131
135
|
};
|
|
132
136
|
};
|
|
133
137
|
const stripeStoreCleanupDomesticShippingSession = () => {
|
|
134
|
-
|
|
138
|
+
safeRemoveItem('session', 'zonos--bigcommerce-domestic-checkout-shipping');
|
|
135
139
|
};
|
|
136
140
|
// Save shipping address to session storage
|
|
137
141
|
const stripeStoreSaveDomesticShippingSession = (props) => {
|
|
138
|
-
|
|
142
|
+
safeSetItem('session', 'zonos--bigcommerce-domestic-checkout-shipping', JSON.stringify(props));
|
|
139
143
|
};
|
|
140
144
|
const stripeStoreGetDomesticShippingSession = () => {
|
|
141
|
-
const session =
|
|
145
|
+
const session = safeGetItem('session', 'zonos--bigcommerce-domestic-checkout-shipping');
|
|
142
146
|
return jsonParse(session);
|
|
143
147
|
};
|
|
144
148
|
const initStripeElements = async (props) => {
|
|
@@ -185,7 +189,7 @@ const initStripeElements = async (props) => {
|
|
|
185
189
|
};
|
|
186
190
|
const stripeStoreReset = () => {
|
|
187
191
|
// clean clientSecret so that we can start the new one.
|
|
188
|
-
|
|
192
|
+
safeRemoveItem('session', 'zonos--client-secret');
|
|
189
193
|
// cleanup stripe elements
|
|
190
194
|
reset();
|
|
191
195
|
// set stripe back to window.Zonos.stripe
|
|
@@ -221,7 +225,8 @@ const checkIsAddressOutdatedForAsyncAddressUpdate = () => {
|
|
|
221
225
|
const isAddressDataDirty = JSON.stringify((_e = stripeStore.stripeAddressUsedWhenAsyncAddressUpdate) === null || _e === void 0 ? void 0 : _e.value) !== JSON.stringify((_f = stripeStore.stripeAddressEventData) === null || _f === void 0 ? void 0 : _f.value);
|
|
222
226
|
const isBillingAddressDataDirty = !stripeStore.stripeShippingSameAsBilling &&
|
|
223
227
|
JSON.stringify((_g = stripeStore.stripeBillingAddressUsedWhenAsyncAddressUpdate) === null || _g === void 0 ? void 0 : _g.value) !== JSON.stringify((_h = stripeStore.stripeBillingAddressEventData) === null || _h === void 0 ? void 0 : _h.value);
|
|
224
|
-
const isTaxIdDirty = stripeStore.taxIdUsedWhenAsyncAddressUpdate !== stripeStore.taxId
|
|
228
|
+
const isTaxIdDirty = stripeStore.taxIdUsedWhenAsyncAddressUpdate !== stripeStore.taxId ||
|
|
229
|
+
stripeStore.taxIdTypeUsedWhenAsyncAddressUpdate !== stripeStore.taxIdType;
|
|
225
230
|
const isCompanyNameDirty = stripeStore.companyNameUsedWhenAsyncAddressUpdate !==
|
|
226
231
|
stripeStore.companyName;
|
|
227
232
|
return (isLinkDataDirty ||
|
|
@@ -275,7 +280,7 @@ const stripeStoreBuildAddressForPartyCreate = ({ address, firstName, lastName, n
|
|
|
275
280
|
};
|
|
276
281
|
};
|
|
277
282
|
const stripeStoreAsyncAddressUpdate = async () => {
|
|
278
|
-
var _a, _b, _c, _d;
|
|
283
|
+
var _a, _b, _c, _d, _e;
|
|
279
284
|
if (!((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete) ||
|
|
280
285
|
(!stripeStore.stripeShippingSameAsBilling &&
|
|
281
286
|
!((_b = stripeStore.stripeBillingAddressEventData) === null || _b === void 0 ? void 0 : _b.complete)) ||
|
|
@@ -329,17 +334,10 @@ const stripeStoreAsyncAddressUpdate = async () => {
|
|
|
329
334
|
phone: stripeStore.stripeBillingAddressEventData.value.phone,
|
|
330
335
|
});
|
|
331
336
|
const isE2ETest = new URLSearchParams(window.location.search).get('zonosE2ETest') === '1';
|
|
337
|
+
const taxIdPayload = getCheckoutTaxIdPayload(address.country);
|
|
332
338
|
const { errors, json } = await handleFetch('/api/zonos-elements/create-parties', {
|
|
333
|
-
body: {
|
|
334
|
-
|
|
335
|
-
billingAddress,
|
|
336
|
-
companyName: stripeStore.companyName,
|
|
337
|
-
email: ((_d = stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.value.email) || '',
|
|
338
|
-
isTest: isE2ETest,
|
|
339
|
-
rootId: firstLandedCostRootId,
|
|
340
|
-
shortAddressCode: stripeStore.shortAddressCode,
|
|
341
|
-
taxId: stripeStore.taxId,
|
|
342
|
-
},
|
|
339
|
+
body: Object.assign({ address,
|
|
340
|
+
billingAddress, companyName: stripeStore.companyName, email: ((_d = stripeStore.stripeLinkEventData) === null || _d === void 0 ? void 0 : _d.value.email) || '', isTest: isE2ETest, rootId: firstLandedCostRootId, shortAddressCode: stripeStore.shortAddressCode, taxId: (_e = taxIdPayload === null || taxIdPayload === void 0 ? void 0 : taxIdPayload.taxId) !== null && _e !== void 0 ? _e : '' }, ((taxIdPayload === null || taxIdPayload === void 0 ? void 0 : taxIdPayload.taxIdType) ? { taxIdType: taxIdPayload.taxIdType } : {})),
|
|
343
341
|
method: 'POST',
|
|
344
342
|
});
|
|
345
343
|
if (errors.length || !json) {
|
|
@@ -364,6 +362,7 @@ const stripeStoreAsyncAddressUpdate = async () => {
|
|
|
364
362
|
stripeStore.stripeAddressEventData;
|
|
365
363
|
stripeStore.stripeBillingAddressUsedWhenAsyncAddressUpdate =
|
|
366
364
|
stripeStore.stripeBillingAddressEventData;
|
|
365
|
+
stripeStore.taxIdTypeUsedWhenAsyncAddressUpdate = stripeStore.taxIdType;
|
|
367
366
|
stripeStore.taxIdUsedWhenAsyncAddressUpdate = stripeStore.taxId;
|
|
368
367
|
stripeStore.partyBillingId = json.billToPartyId;
|
|
369
368
|
stripeStore.partyShippingId = json.shipToPartyId;
|
|
@@ -523,7 +522,7 @@ const stripeCalculateLandedCost = async () => {
|
|
|
523
522
|
cartStore.promoCodeError = isInvalidPromoCode;
|
|
524
523
|
// When promocode is valid, set promoCode to session storage so if user close the modal, we can still reapply for them
|
|
525
524
|
if (!isInvalidPromoCode) {
|
|
526
|
-
|
|
525
|
+
safeSetItem('session', 'zonos--promo-code', cartStore.promoCode);
|
|
527
526
|
}
|
|
528
527
|
};
|
|
529
528
|
const stripeStorePrefetchLandedCost = async (params) => {
|
|
@@ -655,7 +654,7 @@ const stripeStoreApplyPromoCode = async () => {
|
|
|
655
654
|
};
|
|
656
655
|
const stripeStoreResetPromoCode = () => {
|
|
657
656
|
cartStore.promoCode = '';
|
|
658
|
-
|
|
657
|
+
safeRemoveItem('session', 'zonos--promo-code');
|
|
659
658
|
// reset promocode error state
|
|
660
659
|
cartStore.promoCodeError = false;
|
|
661
660
|
cartStore.promoCodeApplied = false;
|
|
@@ -1277,10 +1276,10 @@ const stripeStoreTranslateAddressToLatin = async ({ addressInvalidCharactersList
|
|
|
1277
1276
|
stripeStoreOnChange('clientSecret', clientSecret => {
|
|
1278
1277
|
// update stripe elements when client secret changes
|
|
1279
1278
|
if (clientSecret && stripeStore.stripe) {
|
|
1280
|
-
|
|
1279
|
+
safeSetItem('session', 'zonos--client-secret', clientSecret);
|
|
1281
1280
|
}
|
|
1282
1281
|
if (!clientSecret) {
|
|
1283
|
-
|
|
1282
|
+
safeRemoveItem('session', 'zonos--client-secret');
|
|
1284
1283
|
}
|
|
1285
1284
|
});
|
|
1286
1285
|
export { initStripeElements, stripeCalculateLandedCost, stripeStore, stripeStoreApplyPromoCode, stripeStoreAsyncAddressUpdate, stripeStoreBuildAddressForPartyCreate, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreGetPaymentIntent, stripeStoreHandleInventoryCheck, stripeStoreHandleInventoryRefund, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStoreOnChange, stripeStorePrefetchLandedCost, stripeStoreRemovePromoCode, stripeStoreReset, stripeStoreResetPromoCode, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, stripeStoreUpdateCheckoutSessionBaseCurrency, };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { createStore } from "@stencil/store";
|
|
2
2
|
import { jsonParse } from "../utils/jsonParse";
|
|
3
|
+
import { safeGetItem, safeRemoveItem, safeSetItem, } from "../utils/safeStorage";
|
|
3
4
|
import { filterValidTests } from "../utils/varianceTest/filterValidTests";
|
|
4
5
|
/**
|
|
5
6
|
* Expiration time for variant test keys in milliseconds
|
|
@@ -7,24 +8,24 @@ import { filterValidTests } from "../utils/varianceTest/filterValidTests";
|
|
|
7
8
|
*/
|
|
8
9
|
export const VARIANT_TEST_KEY_EXPIRATION = 60 * 60 * 24 * 1000;
|
|
9
10
|
const { onChange: storageStoreOnChange, state: storageStore } = createStore({
|
|
10
|
-
checkoutSessionId:
|
|
11
|
-
enabledVariantTestKeys: jsonParse(
|
|
11
|
+
checkoutSessionId: safeGetItem('session', 'zonos--checkout-session-id'),
|
|
12
|
+
enabledVariantTestKeys: jsonParse(safeGetItem('local', 'zonos--enabled-variant-test-keys')),
|
|
12
13
|
});
|
|
13
14
|
storageStoreOnChange('enabledVariantTestKeys', () => {
|
|
14
15
|
var _a;
|
|
15
16
|
// This should be set in localStorage so we don't have multiple tests for the same user in short period of time
|
|
16
17
|
if (!((_a = storageStore.enabledVariantTestKeys) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
17
|
-
|
|
18
|
+
safeRemoveItem('local', 'zonos--enabled-variant-test-keys');
|
|
18
19
|
return;
|
|
19
20
|
}
|
|
20
|
-
|
|
21
|
+
safeSetItem('local', 'zonos--enabled-variant-test-keys', JSON.stringify(storageStore.enabledVariantTestKeys));
|
|
21
22
|
});
|
|
22
23
|
storageStoreOnChange('checkoutSessionId', () => {
|
|
23
24
|
if (!storageStore.checkoutSessionId) {
|
|
24
|
-
|
|
25
|
+
safeRemoveItem('session', 'zonos--checkout-session-id');
|
|
25
26
|
return;
|
|
26
27
|
}
|
|
27
|
-
|
|
28
|
+
safeSetItem('session', 'zonos--checkout-session-id', storageStore.checkoutSessionId);
|
|
28
29
|
});
|
|
29
30
|
const storageStoreSetEnabledVariantTestKeys = (testKeys) => {
|
|
30
31
|
storageStore.enabledVariantTestKeys = filterValidTests(testKeys);
|
|
@@ -86,12 +86,21 @@ export const stringsArabic = {
|
|
|
86
86
|
'CPF/CNPJ number': {
|
|
87
87
|
value: 'رقم CPF/CNPJ',
|
|
88
88
|
},
|
|
89
|
+
CURP: {
|
|
90
|
+
value: 'CURP',
|
|
91
|
+
},
|
|
89
92
|
Cancel: {
|
|
90
93
|
value: 'إلغاء',
|
|
91
94
|
},
|
|
92
95
|
'Card number copied to clipboard': {
|
|
93
96
|
value: 'تم نسخ رقم البطاقة إلى الحافظة',
|
|
94
97
|
},
|
|
98
|
+
'Carné de extranjería': {
|
|
99
|
+
value: 'Carné de extranjería',
|
|
100
|
+
},
|
|
101
|
+
'Carné de extranjería must be 9 digits.': {
|
|
102
|
+
value: 'يجب أن يتكون carné de extranjería من 9 أرقام.',
|
|
103
|
+
},
|
|
95
104
|
'Cart subtotal': {
|
|
96
105
|
value: 'المجموع الفرعي للسلة',
|
|
97
106
|
},
|
|
@@ -164,6 +173,12 @@ export const stringsArabic = {
|
|
|
164
173
|
'Customs fees total': {
|
|
165
174
|
value: 'إجمالي رسوم الجمارك',
|
|
166
175
|
},
|
|
176
|
+
DNI: {
|
|
177
|
+
value: 'DNI',
|
|
178
|
+
},
|
|
179
|
+
'DNI must be 8 digits.': {
|
|
180
|
+
value: 'يجب أن يتكون DNI من 8 أرقام.',
|
|
181
|
+
},
|
|
167
182
|
Delivery: {
|
|
168
183
|
value: 'التوصيل',
|
|
169
184
|
},
|
|
@@ -311,8 +326,11 @@ export const stringsArabic = {
|
|
|
311
326
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
312
327
|
value: 'تنسيق CUIT/CUIL غير صالح. يجب أن يحتوي على 11 رقمًا، مع أو بدون شرطات (XX-XXXXXXXX-X).',
|
|
313
328
|
},
|
|
314
|
-
'Invalid
|
|
315
|
-
value: 'تنسيق
|
|
329
|
+
'Invalid CURP format. Must be 18 uppercase letters and numbers.': {
|
|
330
|
+
value: 'تنسيق CURP غير صالح. يجب أن يكون CURP من 18 حرفًا، بأحرف كبيرة وأرقام فقط.',
|
|
331
|
+
},
|
|
332
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers.': {
|
|
333
|
+
value: 'تنسيق RFC غير صالح. يجب أن يكون RFC من 12–13 حرفًا، بأحرف كبيرة وأرقام فقط.',
|
|
316
334
|
},
|
|
317
335
|
'Invalid promo code': {
|
|
318
336
|
value: 'رمز ترويجي غير صالح',
|
|
@@ -515,9 +533,18 @@ export const stringsArabic = {
|
|
|
515
533
|
Quantity: {
|
|
516
534
|
value: 'الكمية',
|
|
517
535
|
},
|
|
536
|
+
RFC: {
|
|
537
|
+
value: 'RFC',
|
|
538
|
+
},
|
|
518
539
|
'RFC or CURP number': {
|
|
519
540
|
value: 'رقم RFC أو CURP',
|
|
520
541
|
},
|
|
542
|
+
RUC: {
|
|
543
|
+
value: 'RUC',
|
|
544
|
+
},
|
|
545
|
+
'RUC must be 11 digits.': {
|
|
546
|
+
value: 'يجب أن يتكون RUC من 11 رقمًا.',
|
|
547
|
+
},
|
|
521
548
|
'Refund policy': {
|
|
522
549
|
value: 'سياسة الاسترداد',
|
|
523
550
|
},
|
|
@@ -659,6 +686,12 @@ export const stringsArabic = {
|
|
|
659
686
|
'Tax id is required': {
|
|
660
687
|
value: 'مطلوب رقم التعريف الضريبي',
|
|
661
688
|
},
|
|
689
|
+
'Tax id type': {
|
|
690
|
+
value: 'نوع رقم التعريف الضريبي',
|
|
691
|
+
},
|
|
692
|
+
'Tax id type is required': {
|
|
693
|
+
value: 'نوع رقم التعريف الضريبي مطلوب',
|
|
694
|
+
},
|
|
662
695
|
Taxes: {
|
|
663
696
|
value: 'الضرائب',
|
|
664
697
|
},
|
|
@@ -86,12 +86,21 @@ export const stringsBase = {
|
|
|
86
86
|
'CPF/CNPJ number': {
|
|
87
87
|
value: 'CPF/CNPJ number',
|
|
88
88
|
},
|
|
89
|
+
CURP: {
|
|
90
|
+
value: 'CURP',
|
|
91
|
+
},
|
|
89
92
|
Cancel: {
|
|
90
93
|
value: 'Cancel',
|
|
91
94
|
},
|
|
92
95
|
'Card number copied to clipboard': {
|
|
93
96
|
value: 'Card number copied to clipboard',
|
|
94
97
|
},
|
|
98
|
+
'Carné de extranjería': {
|
|
99
|
+
value: 'Carné de extranjería',
|
|
100
|
+
},
|
|
101
|
+
'Carné de extranjería must be 9 digits.': {
|
|
102
|
+
value: 'Carné de extranjería must be 9 digits.',
|
|
103
|
+
},
|
|
95
104
|
'Cart subtotal': {
|
|
96
105
|
value: 'Cart subtotal',
|
|
97
106
|
},
|
|
@@ -165,6 +174,12 @@ export const stringsBase = {
|
|
|
165
174
|
'Customs fees total': {
|
|
166
175
|
value: 'Customs fees total',
|
|
167
176
|
},
|
|
177
|
+
DNI: {
|
|
178
|
+
value: 'DNI',
|
|
179
|
+
},
|
|
180
|
+
'DNI must be 8 digits.': {
|
|
181
|
+
value: 'DNI must be 8 digits.',
|
|
182
|
+
},
|
|
168
183
|
Delivery: {
|
|
169
184
|
value: 'Delivery',
|
|
170
185
|
},
|
|
@@ -312,8 +327,11 @@ export const stringsBase = {
|
|
|
312
327
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
313
328
|
value: 'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).',
|
|
314
329
|
},
|
|
315
|
-
'Invalid
|
|
316
|
-
value: 'Invalid
|
|
330
|
+
'Invalid CURP format. Must be 18 uppercase letters and numbers.': {
|
|
331
|
+
value: 'Invalid CURP format. Must be 18 uppercase letters and numbers.',
|
|
332
|
+
},
|
|
333
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers.': {
|
|
334
|
+
value: 'Invalid RFC format. Must be 12–13 uppercase letters and numbers.',
|
|
317
335
|
},
|
|
318
336
|
'Invalid promo code': {
|
|
319
337
|
value: 'Invalid promo code',
|
|
@@ -516,9 +534,18 @@ export const stringsBase = {
|
|
|
516
534
|
Quantity: {
|
|
517
535
|
value: 'Quantity',
|
|
518
536
|
},
|
|
537
|
+
RFC: {
|
|
538
|
+
value: 'RFC',
|
|
539
|
+
},
|
|
519
540
|
'RFC or CURP number': {
|
|
520
541
|
value: 'RFC or CURP number',
|
|
521
542
|
},
|
|
543
|
+
RUC: {
|
|
544
|
+
value: 'RUC',
|
|
545
|
+
},
|
|
546
|
+
'RUC must be 11 digits.': {
|
|
547
|
+
value: 'RUC must be 11 digits.',
|
|
548
|
+
},
|
|
522
549
|
'Refund policy': {
|
|
523
550
|
value: 'Refund policy',
|
|
524
551
|
},
|
|
@@ -660,6 +687,12 @@ export const stringsBase = {
|
|
|
660
687
|
'Tax id is required': {
|
|
661
688
|
value: 'Tax id is required',
|
|
662
689
|
},
|
|
690
|
+
'Tax id type': {
|
|
691
|
+
value: 'Tax id type',
|
|
692
|
+
},
|
|
693
|
+
'Tax id type is required': {
|
|
694
|
+
value: 'Tax id type is required',
|
|
695
|
+
},
|
|
663
696
|
Taxes: {
|
|
664
697
|
value: 'Taxes',
|
|
665
698
|
},
|
|
@@ -86,12 +86,21 @@ export const stringsChinese = {
|
|
|
86
86
|
'CPF/CNPJ number': {
|
|
87
87
|
value: 'CPF/CNPJ号码',
|
|
88
88
|
},
|
|
89
|
+
CURP: {
|
|
90
|
+
value: 'CURP',
|
|
91
|
+
},
|
|
89
92
|
Cancel: {
|
|
90
93
|
value: '取消',
|
|
91
94
|
},
|
|
92
95
|
'Card number copied to clipboard': {
|
|
93
96
|
value: '卡号已复制到剪贴板',
|
|
94
97
|
},
|
|
98
|
+
'Carné de extranjería': {
|
|
99
|
+
value: 'Carné de extranjería',
|
|
100
|
+
},
|
|
101
|
+
'Carné de extranjería must be 9 digits.': {
|
|
102
|
+
value: 'carné de extranjería 必须为 9 位数字。',
|
|
103
|
+
},
|
|
95
104
|
'Cart subtotal': {
|
|
96
105
|
value: '购物车小计',
|
|
97
106
|
},
|
|
@@ -164,6 +173,12 @@ export const stringsChinese = {
|
|
|
164
173
|
'Customs fees total': {
|
|
165
174
|
value: '关税总额',
|
|
166
175
|
},
|
|
176
|
+
DNI: {
|
|
177
|
+
value: 'DNI',
|
|
178
|
+
},
|
|
179
|
+
'DNI must be 8 digits.': {
|
|
180
|
+
value: 'DNI 必须为 8 位数字。',
|
|
181
|
+
},
|
|
167
182
|
Delivery: {
|
|
168
183
|
value: '送货',
|
|
169
184
|
},
|
|
@@ -311,8 +326,11 @@ export const stringsChinese = {
|
|
|
311
326
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
312
327
|
value: '无效的CUIT/CUIL格式。必须包含11位数字,可以有或没有破折号 (XX-XXXXXXXX-X)。',
|
|
313
328
|
},
|
|
314
|
-
'Invalid
|
|
315
|
-
value: '
|
|
329
|
+
'Invalid CURP format. Must be 18 uppercase letters and numbers.': {
|
|
330
|
+
value: 'CURP 格式无效。必须是 18 个字符的 CURP,仅限大写字母和数字。',
|
|
331
|
+
},
|
|
332
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers.': {
|
|
333
|
+
value: 'RFC 格式无效。必须是 12–13 个字符的 RFC,仅限大写字母和数字。',
|
|
316
334
|
},
|
|
317
335
|
'Invalid promo code': {
|
|
318
336
|
value: '无效的促销代码',
|
|
@@ -515,9 +533,18 @@ export const stringsChinese = {
|
|
|
515
533
|
Quantity: {
|
|
516
534
|
value: '数量',
|
|
517
535
|
},
|
|
536
|
+
RFC: {
|
|
537
|
+
value: 'RFC',
|
|
538
|
+
},
|
|
518
539
|
'RFC or CURP number': {
|
|
519
540
|
value: 'RFC 或 CURP 编号',
|
|
520
541
|
},
|
|
542
|
+
RUC: {
|
|
543
|
+
value: 'RUC',
|
|
544
|
+
},
|
|
545
|
+
'RUC must be 11 digits.': {
|
|
546
|
+
value: 'RUC 必须为 11 位数字。',
|
|
547
|
+
},
|
|
521
548
|
'Refund policy': {
|
|
522
549
|
value: '退款政策',
|
|
523
550
|
},
|
|
@@ -659,6 +686,12 @@ export const stringsChinese = {
|
|
|
659
686
|
'Tax id is required': {
|
|
660
687
|
value: '需要税号',
|
|
661
688
|
},
|
|
689
|
+
'Tax id type': {
|
|
690
|
+
value: '税号类型',
|
|
691
|
+
},
|
|
692
|
+
'Tax id type is required': {
|
|
693
|
+
value: '需要税号类型',
|
|
694
|
+
},
|
|
662
695
|
Taxes: {
|
|
663
696
|
value: '税',
|
|
664
697
|
},
|
|
@@ -86,12 +86,21 @@ export const stringsDanish = {
|
|
|
86
86
|
'CPF/CNPJ number': {
|
|
87
87
|
value: 'CPF/CNPJ-nummer',
|
|
88
88
|
},
|
|
89
|
+
CURP: {
|
|
90
|
+
value: 'CURP',
|
|
91
|
+
},
|
|
89
92
|
Cancel: {
|
|
90
93
|
value: 'Annuller',
|
|
91
94
|
},
|
|
92
95
|
'Card number copied to clipboard': {
|
|
93
96
|
value: 'Kortnummer kopieret til udklipsholderen',
|
|
94
97
|
},
|
|
98
|
+
'Carné de extranjería': {
|
|
99
|
+
value: 'Carné de extranjería',
|
|
100
|
+
},
|
|
101
|
+
'Carné de extranjería must be 9 digits.': {
|
|
102
|
+
value: 'Carné de extranjería skal være på 9 cifre.',
|
|
103
|
+
},
|
|
95
104
|
'Cart subtotal': {
|
|
96
105
|
value: 'Subtotal på kurv',
|
|
97
106
|
},
|
|
@@ -164,6 +173,12 @@ export const stringsDanish = {
|
|
|
164
173
|
'Customs fees total': {
|
|
165
174
|
value: 'Samlede toldgebyrer',
|
|
166
175
|
},
|
|
176
|
+
DNI: {
|
|
177
|
+
value: 'DNI',
|
|
178
|
+
},
|
|
179
|
+
'DNI must be 8 digits.': {
|
|
180
|
+
value: 'DNI skal være på 8 cifre.',
|
|
181
|
+
},
|
|
167
182
|
Delivery: {
|
|
168
183
|
value: 'Levering',
|
|
169
184
|
},
|
|
@@ -311,8 +326,11 @@ export const stringsDanish = {
|
|
|
311
326
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
312
327
|
value: 'Ugyldigt CUIT/CUIL-format. Skal indeholde 11 cifre, med eller uden bindestreger (XX-XXXXXXXX-X).',
|
|
313
328
|
},
|
|
314
|
-
'Invalid
|
|
315
|
-
value: 'Ugyldigt
|
|
329
|
+
'Invalid CURP format. Must be 18 uppercase letters and numbers.': {
|
|
330
|
+
value: 'Ugyldigt CURP-format. Skal være en CURP på 18 tegn, kun store bogstaver og tal.',
|
|
331
|
+
},
|
|
332
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers.': {
|
|
333
|
+
value: 'Ugyldigt RFC-format. Skal være en RFC på 12–13 tegn, kun store bogstaver og tal.',
|
|
316
334
|
},
|
|
317
335
|
'Invalid promo code': {
|
|
318
336
|
value: 'Ugyldig kampagnekode',
|
|
@@ -515,9 +533,18 @@ export const stringsDanish = {
|
|
|
515
533
|
Quantity: {
|
|
516
534
|
value: 'Mængde',
|
|
517
535
|
},
|
|
536
|
+
RFC: {
|
|
537
|
+
value: 'RFC',
|
|
538
|
+
},
|
|
518
539
|
'RFC or CURP number': {
|
|
519
540
|
value: 'RFC- eller CURP-nummer',
|
|
520
541
|
},
|
|
542
|
+
RUC: {
|
|
543
|
+
value: 'RUC',
|
|
544
|
+
},
|
|
545
|
+
'RUC must be 11 digits.': {
|
|
546
|
+
value: 'RUC skal være på 11 cifre.',
|
|
547
|
+
},
|
|
521
548
|
'Refund policy': {
|
|
522
549
|
value: 'Refunderingspolitik',
|
|
523
550
|
},
|
|
@@ -659,6 +686,12 @@ export const stringsDanish = {
|
|
|
659
686
|
'Tax id is required': {
|
|
660
687
|
value: 'Skatte-id er påkrævet',
|
|
661
688
|
},
|
|
689
|
+
'Tax id type': {
|
|
690
|
+
value: 'Type skatte-id',
|
|
691
|
+
},
|
|
692
|
+
'Tax id type is required': {
|
|
693
|
+
value: 'Type skatte-id er påkrævet',
|
|
694
|
+
},
|
|
662
695
|
Taxes: {
|
|
663
696
|
value: 'Skatter',
|
|
664
697
|
},
|
|
@@ -86,12 +86,21 @@ export const stringsDutch = {
|
|
|
86
86
|
'CPF/CNPJ number': {
|
|
87
87
|
value: 'CPF/CNPJ-nummer',
|
|
88
88
|
},
|
|
89
|
+
CURP: {
|
|
90
|
+
value: 'CURP',
|
|
91
|
+
},
|
|
89
92
|
Cancel: {
|
|
90
93
|
value: 'Annuleren',
|
|
91
94
|
},
|
|
92
95
|
'Card number copied to clipboard': {
|
|
93
96
|
value: 'Kaartnummer gekopieerd naar klembord',
|
|
94
97
|
},
|
|
98
|
+
'Carné de extranjería': {
|
|
99
|
+
value: 'Carné de extranjería',
|
|
100
|
+
},
|
|
101
|
+
'Carné de extranjería must be 9 digits.': {
|
|
102
|
+
value: 'Het carné de extranjería moet 9 cijfers bevatten.',
|
|
103
|
+
},
|
|
95
104
|
'Cart subtotal': {
|
|
96
105
|
value: 'Winkelwagen subtotaal',
|
|
97
106
|
},
|
|
@@ -164,6 +173,12 @@ export const stringsDutch = {
|
|
|
164
173
|
'Customs fees total': {
|
|
165
174
|
value: 'Totale douanekosten',
|
|
166
175
|
},
|
|
176
|
+
DNI: {
|
|
177
|
+
value: 'DNI',
|
|
178
|
+
},
|
|
179
|
+
'DNI must be 8 digits.': {
|
|
180
|
+
value: 'Het DNI moet 8 cijfers bevatten.',
|
|
181
|
+
},
|
|
167
182
|
Delivery: {
|
|
168
183
|
value: 'Levering',
|
|
169
184
|
},
|
|
@@ -311,8 +326,11 @@ export const stringsDutch = {
|
|
|
311
326
|
'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).': {
|
|
312
327
|
value: 'Ongeldig CUIT/CUIL-formaat. Moet 11 cijfers bevatten, met of zonder streepjes (XX-XXXXXXXX-X).',
|
|
313
328
|
},
|
|
314
|
-
'Invalid
|
|
315
|
-
value: 'Ongeldig
|
|
329
|
+
'Invalid CURP format. Must be 18 uppercase letters and numbers.': {
|
|
330
|
+
value: 'Ongeldig CURP-formaat. Moet een CURP van 18 tekens zijn, alleen hoofdletters en cijfers.',
|
|
331
|
+
},
|
|
332
|
+
'Invalid RFC format. Must be 12–13 uppercase letters and numbers.': {
|
|
333
|
+
value: 'Ongeldig RFC-formaat. Moet een RFC van 12–13 tekens zijn, alleen hoofdletters en cijfers.',
|
|
316
334
|
},
|
|
317
335
|
'Invalid promo code': {
|
|
318
336
|
value: 'Ongeldige promotiecode',
|
|
@@ -515,9 +533,18 @@ export const stringsDutch = {
|
|
|
515
533
|
Quantity: {
|
|
516
534
|
value: 'Hoeveelheid',
|
|
517
535
|
},
|
|
536
|
+
RFC: {
|
|
537
|
+
value: 'RFC',
|
|
538
|
+
},
|
|
518
539
|
'RFC or CURP number': {
|
|
519
540
|
value: 'RFC- of CURP-nummer',
|
|
520
541
|
},
|
|
542
|
+
RUC: {
|
|
543
|
+
value: 'RUC',
|
|
544
|
+
},
|
|
545
|
+
'RUC must be 11 digits.': {
|
|
546
|
+
value: 'Het RUC moet 11 cijfers bevatten.',
|
|
547
|
+
},
|
|
521
548
|
'Refund policy': {
|
|
522
549
|
value: 'Restitutiebeleid',
|
|
523
550
|
},
|
|
@@ -659,6 +686,12 @@ export const stringsDutch = {
|
|
|
659
686
|
'Tax id is required': {
|
|
660
687
|
value: 'Belasting-ID is vereist',
|
|
661
688
|
},
|
|
689
|
+
'Tax id type': {
|
|
690
|
+
value: 'Type belasting-ID',
|
|
691
|
+
},
|
|
692
|
+
'Tax id type is required': {
|
|
693
|
+
value: 'Type belasting-ID is vereist',
|
|
694
|
+
},
|
|
662
695
|
Taxes: {
|
|
663
696
|
value: 'Belastingen',
|
|
664
697
|
},
|