@zonos/elements 1.3.217 → 1.3.219
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/buildCartItemsByTempCart-309fcebf.js +28 -0
- package/dist/cjs/{cart-54ff39d6.js → cart-9a2b32e4.js} +91 -48
- package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
- package/dist/cjs/{handleFetch-0313ebba.js → handleFetch-45f35cac.js} +2 -1
- package/dist/cjs/index.cjs.js +20 -10
- package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/localization-b12edb2a.js +738 -0
- package/dist/cjs/{paypal-e7504122.js → paypal-e80871d0.js} +13 -9
- package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
- package/dist/cjs/{localization-721a5ec3.js → translationStore-20a6d8bf.js} +963 -734
- package/dist/cjs/{updateCheckoutSessionAttributes-8db49644.js → updateCheckoutSessionAttributes-c0853fdd.js} +1 -1
- package/dist/cjs/zonos-address_11.cjs.entry.js +103 -73
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +75 -1294
- package/dist/cjs/zonos-checkout.cjs.entry.js +27 -50
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
- package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +810 -0
- package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
- package/dist/cjs/zonos-controller.cjs.entry.js +85 -29
- package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +12 -11
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +16 -6
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +35 -34
- package/dist/cjs/zonos-hello.cjs.entry.js +9 -8
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +7 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
- package/dist/cjs/zonos-text.cjs.entry.js +1 -1
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/collection-manifest.json +10 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
- package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +84 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +68 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
- package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
- package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
- package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.css +38 -0
- package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
- package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
- package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
- package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
- package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
- package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
- package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
- package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
- package/dist/collection/components/common/zonos-skeleton/assets/RemoveLineIcon.svg +3 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
- package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
- package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
- package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
- package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
- package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
- package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +91 -25
- package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
- package/dist/collection/components/store/checkout/cart.js +36 -15
- package/dist/collection/components/store/checkout/collect.js +157 -0
- package/dist/collection/components/store/checkout/paypal.js +4 -2
- package/dist/collection/components/store/checkout/stripe.js +31 -12
- package/dist/collection/components/store/translationStore/strings.arabic.js +48 -0
- package/dist/collection/components/store/translationStore/strings.base.js +48 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
- package/dist/collection/components/store/translationStore/strings.french.js +48 -0
- package/dist/collection/components/store/translationStore/strings.german.js +48 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -0
- package/dist/collection/components/store/translationStore.js +2 -1
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
- package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
- package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +15 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/checkout/initCollect.js +15 -0
- package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
- package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
- package/dist/collection/components/utils/getNextFallbackApi.js +1 -1
- package/dist/collection/components/utils/handleFetch.js +1 -0
- package/dist/collection/components/utils/renderFallback.js +7 -0
- package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
- package/dist/collection/scripts/_zonosBase.js +7 -1
- package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
- package/dist/collection/types/generated/graphql.internal.types.js +103 -0
- package/dist/collection/types/index.js +1 -0
- package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
- package/dist/esm/{cart-010402f9.js → cart-acf4ebf5.js} +69 -28
- package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
- package/dist/esm/{handleFetch-fa90f7f6.js → handleFetch-99218189.js} +2 -1
- package/dist/esm/index.js +20 -10
- package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/localization-8646f526.js +719 -0
- package/dist/esm/{paypal-70b140d9.js → paypal-2fa930eb.js} +8 -5
- package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
- package/dist/esm/{localization-9db8b6e9.js → translationStore-c9743292.js} +963 -718
- package/dist/esm/{updateCheckoutSessionAttributes-691cdc6d.js → updateCheckoutSessionAttributes-92f42882.js} +1 -1
- package/dist/esm/zonos-address_11.entry.js +72 -42
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +24 -1241
- package/dist/esm/zonos-checkout.entry.js +8 -31
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
- package/dist/esm/zonos-collect-finish_6.entry.js +801 -0
- package/dist/esm/zonos-collect.entry.js +464 -0
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
- package/dist/esm/zonos-controller.entry.js +85 -29
- package/dist/esm/zonos-country-flag.entry.js +3 -2
- package/dist/esm/zonos-country-select_4.entry.js +12 -11
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-empty-state-payment_4.entry.js +16 -6
- package/dist/esm/zonos-hello-dialog.entry.js +7 -6
- package/dist/esm/zonos-hello.entry.js +3 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +7 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-stripe-input.entry.js +9 -6
- package/dist/esm/zonos-text.entry.js +1 -1
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
- package/dist/esm-es5/cart-acf4ebf5.js +1 -0
- package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
- package/dist/esm-es5/{handleFetch-fa90f7f6.js → handleFetch-99218189.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/localization-8646f526.js +1 -0
- package/dist/esm-es5/paypal-2fa930eb.js +17 -0
- package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
- package/dist/esm-es5/translationStore-c9743292.js +1 -0
- package/dist/esm-es5/{updateCheckoutSessionAttributes-691cdc6d.js → updateCheckoutSessionAttributes-92f42882.js} +1 -1
- package/dist/esm-es5/zonos-address_11.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -1
- package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
- package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
- package/dist/esm-es5/zonos-collect.entry.js +1 -0
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-empty-state-payment_4.entry.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-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-link.entry.js +1 -1
- package/dist/esm-es5/zonos-logo.entry.js +1 -1
- package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +471 -4
- 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-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +49 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
- package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
- package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
- package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
- package/dist/types/components/main/zonos-controller.d.ts +5 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
- package/dist/types/components/store/checkout/cart.d.ts +23 -3
- package/dist/types/components/store/checkout/collect.d.ts +21 -0
- package/dist/types/components/store/checkout/paypal.d.ts +4 -3
- package/dist/types/components/store/checkout/stripe.d.ts +6 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -0
- package/dist/types/components/store/translationStore.d.ts +2 -1
- package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
- package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +2 -0
- package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
- package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
- package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
- package/dist/types/components/utils/getNextFallbackApi.d.ts +2 -2
- package/dist/types/components/utils/renderFallback.d.ts +6 -0
- package/dist/types/components.d.ts +401 -2
- package/dist/types/scripts/_zonosBase.d.ts +5 -0
- package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
- package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
- package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
- package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
- package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +431 -9
- package/dist/types/types/generated/graphql.internal.types.ts +428 -10
- package/dist/types/types/index.d.ts +1 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
- package/dist/zonos-elements/{p-c1d86f32.system.js → p-062430f9.system.js} +1 -1
- package/dist/zonos-elements/p-07bea979.system.js +1 -0
- package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
- package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
- package/dist/zonos-elements/p-0e28207a.js +1 -0
- package/dist/zonos-elements/{p-1efc348b.system.js → p-0ed63ce0.system.js} +1 -1
- package/dist/zonos-elements/p-0ef2a242.js +1 -0
- package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
- package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
- package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
- package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
- package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
- package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
- package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
- package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
- package/dist/zonos-elements/p-29c80a34.js +1 -0
- package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
- package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
- package/dist/zonos-elements/p-2cc031b3.js +17 -0
- package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
- package/dist/zonos-elements/p-485416ec.js +1 -0
- package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
- package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
- package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
- package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
- package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
- package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
- package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
- package/dist/zonos-elements/p-6761091e.entry.js +1 -0
- package/dist/zonos-elements/p-6761286d.js +1 -0
- package/dist/zonos-elements/p-69451a50.system.js +1 -0
- package/dist/zonos-elements/p-69fd1b88.js +1 -0
- package/dist/zonos-elements/p-6dd63754.system.js +1 -0
- package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
- package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
- package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
- package/dist/zonos-elements/p-772ac0b7.js +1 -0
- package/dist/zonos-elements/p-81b357f7.system.js +1 -1
- package/dist/zonos-elements/p-81e23f30.system.js +1 -0
- package/dist/zonos-elements/p-873b698a.entry.js +1 -0
- package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
- package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
- package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
- package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
- package/dist/zonos-elements/p-986ebccc.js +1 -0
- package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
- package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
- package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
- package/dist/zonos-elements/{p-d93ecc57.js → p-a8a312b2.js} +1 -1
- package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
- package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
- package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
- package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
- package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
- package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
- package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
- package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
- package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
- package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
- package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d63696ac.system.js +17 -0
- package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
- package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
- package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
- package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
- package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
- package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
- package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
- package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
- package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/cjs/zonos-card.cjs.entry.js +0 -49
- package/dist/esm/zonos-card.entry.js +0 -45
- package/dist/esm-es5/cart-010402f9.js +0 -1
- package/dist/esm-es5/localization-9db8b6e9.js +0 -1
- package/dist/esm-es5/paypal-70b140d9.js +0 -17
- package/dist/esm-es5/zonos-banner.entry.js +0 -1
- package/dist/esm-es5/zonos-card.entry.js +0 -1
- package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
- package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
- package/dist/zonos-elements/p-0a7ef032.entry.js +0 -1
- package/dist/zonos-elements/p-0e8bdf5c.js +0 -1
- package/dist/zonos-elements/p-164ba7ae.system.entry.js +0 -1
- package/dist/zonos-elements/p-242dd7ca.system.entry.js +0 -1
- package/dist/zonos-elements/p-300e0d47.system.entry.js +0 -1
- package/dist/zonos-elements/p-37aa481c.system.entry.js +0 -1
- package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
- package/dist/zonos-elements/p-425096c9.js +0 -1
- package/dist/zonos-elements/p-4cd33d08.entry.js +0 -1
- package/dist/zonos-elements/p-57f391e6.system.entry.js +0 -1
- package/dist/zonos-elements/p-58b3a0fc.entry.js +0 -1
- package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
- package/dist/zonos-elements/p-608f965f.system.js +0 -1
- package/dist/zonos-elements/p-65c68531.js +0 -1
- package/dist/zonos-elements/p-680149ed.entry.js +0 -1
- package/dist/zonos-elements/p-6d44f441.system.js +0 -1
- package/dist/zonos-elements/p-7c88d2ac.entry.js +0 -1
- package/dist/zonos-elements/p-9ddb4533.system.entry.js +0 -1
- package/dist/zonos-elements/p-a91024b6.system.entry.js +0 -1
- package/dist/zonos-elements/p-a9d41e7c.system.entry.js +0 -1
- package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
- package/dist/zonos-elements/p-ad8b1fe8.entry.js +0 -1
- package/dist/zonos-elements/p-afa4b4f0.js +0 -17
- package/dist/zonos-elements/p-b83b382e.system.js +0 -1
- package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
- package/dist/zonos-elements/p-d55aec11.system.entry.js +0 -1
- package/dist/zonos-elements/p-dcedcdda.entry.js +0 -1
- package/dist/zonos-elements/p-e11c61a5.entry.js +0 -1
- package/dist/zonos-elements/p-e17ac0d1.system.js +0 -17
- package/dist/zonos-elements/p-e1a7a85f.system.entry.js +0 -1
- package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
- package/dist/zonos-elements/p-ef34e1ce.entry.js +0 -1
- package/dist/zonos-elements/p-f54123b5.entry.js +0 -1
- package/dist/zonos-elements/p-f7300f5b.system.entry.js +0 -1
|
@@ -5,6 +5,9 @@ export const stringsTurkish = {
|
|
|
5
5
|
' (Duties prepaid)': {
|
|
6
6
|
value: ' (Gümrük vergileri önceden ödenmiş)',
|
|
7
7
|
},
|
|
8
|
+
'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.': {
|
|
9
|
+
value: 'Ödeme detaylarınızla birlikte bir onay e-postası kayıtlarınız için gönderildi. Herhangi bir sorunuz veya desteğe ihtiyacınız varsa, ekibimiz size yardımcı olmaya hazır.',
|
|
10
|
+
},
|
|
8
11
|
'Above de minimis threshold for': {
|
|
9
12
|
value: 'Minimum sınırın üzerinde',
|
|
10
13
|
},
|
|
@@ -59,6 +62,9 @@ export const stringsTurkish = {
|
|
|
59
62
|
'Billing address': {
|
|
60
63
|
value: 'Fatura Adresi',
|
|
61
64
|
},
|
|
65
|
+
'Billing info': {
|
|
66
|
+
value: 'Fatura bilgileri',
|
|
67
|
+
},
|
|
62
68
|
'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
|
|
63
69
|
value: 'USD ile ödeme yaparak, kartınız doğrudan para birimi dönüştürmesi olmadan ücretlendirilir. Ancak, USD bazlı olmayan bir kart kullanmak, banka düzeyinde ek para birimi dönüştürme ücretlerine neden olabilir.',
|
|
64
70
|
},
|
|
@@ -101,6 +107,9 @@ export const stringsTurkish = {
|
|
|
101
107
|
'Company name (optional)': {
|
|
102
108
|
value: 'Şirket adı (isteğe bağlı)',
|
|
103
109
|
},
|
|
110
|
+
'Confirmation #:[confirmationId]': {
|
|
111
|
+
value: 'Onay #:[confirmationId]',
|
|
112
|
+
},
|
|
104
113
|
Contact: {
|
|
105
114
|
value: 'İletişim',
|
|
106
115
|
},
|
|
@@ -125,6 +134,12 @@ export const stringsTurkish = {
|
|
|
125
134
|
'Customer information': {
|
|
126
135
|
value: 'Müşteri bilgileri',
|
|
127
136
|
},
|
|
137
|
+
'Customs fees for your recent purchase from [companyName] are ready for payment': {
|
|
138
|
+
value: '[companyName] şirketinden yaptığınız son satın alma için gümrük ücretleri ödemeye hazır',
|
|
139
|
+
},
|
|
140
|
+
'Customs fees total': {
|
|
141
|
+
value: 'Gümrük ücretleri toplamı',
|
|
142
|
+
},
|
|
128
143
|
Delivery: {
|
|
129
144
|
value: 'Teslimat',
|
|
130
145
|
},
|
|
@@ -170,6 +185,9 @@ export const stringsTurkish = {
|
|
|
170
185
|
'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
171
186
|
value: 'VOEC vergi yasası nedeniyle, tüm siparişler sipariş toplamına bakılmaksızın [percentage] KDV ile değerlendirilecektir.',
|
|
172
187
|
},
|
|
188
|
+
Duties: {
|
|
189
|
+
value: 'Görevler',
|
|
190
|
+
},
|
|
173
191
|
'Duties and taxes will be applied to items and shipping.': {
|
|
174
192
|
value: 'Ürünlere ve kargoya vergi ve gümrük vergisi uygulanacak.',
|
|
175
193
|
},
|
|
@@ -209,6 +227,9 @@ export const stringsTurkish = {
|
|
|
209
227
|
Failure: {
|
|
210
228
|
value: 'Başarısızlık',
|
|
211
229
|
},
|
|
230
|
+
Fees: {
|
|
231
|
+
value: 'Ücretler',
|
|
232
|
+
},
|
|
212
233
|
'First name': {
|
|
213
234
|
value: 'Ad',
|
|
214
235
|
},
|
|
@@ -236,6 +257,9 @@ export const stringsTurkish = {
|
|
|
236
257
|
'Invalid promo code': {
|
|
237
258
|
value: 'Geçersiz promosyon kodu',
|
|
238
259
|
},
|
|
260
|
+
'Invalid session': {
|
|
261
|
+
value: 'Geçersiz oturum',
|
|
262
|
+
},
|
|
239
263
|
Island: {
|
|
240
264
|
value: 'Ada',
|
|
241
265
|
},
|
|
@@ -308,9 +332,15 @@ export const stringsTurkish = {
|
|
|
308
332
|
'Order complete!': {
|
|
309
333
|
value: 'Sipariş tamamlandı!',
|
|
310
334
|
},
|
|
335
|
+
'Order details': {
|
|
336
|
+
value: 'Sipariş detayları',
|
|
337
|
+
},
|
|
311
338
|
'Order total': {
|
|
312
339
|
value: 'Sipariş toplamı',
|
|
313
340
|
},
|
|
341
|
+
'Ordered from': {
|
|
342
|
+
value: 'Sipariş edilen',
|
|
343
|
+
},
|
|
314
344
|
'Orders to [countryName] must be over [threshold] to ship.': {
|
|
315
345
|
value: '[countryName] ülkesine yapılacak siparişlerin [threshold] üzerinde olması gerekir.',
|
|
316
346
|
},
|
|
@@ -332,6 +362,9 @@ export const stringsTurkish = {
|
|
|
332
362
|
'Payment failed': {
|
|
333
363
|
value: 'Ödeme başarısız',
|
|
334
364
|
},
|
|
365
|
+
'Payment failed. Please reload the page and try another payment method.': {
|
|
366
|
+
value: 'Ödeme başarısız oldu. Lütfen sayfayı yeniden yükleyin ve başka bir ödeme yöntemi deneyin.',
|
|
367
|
+
},
|
|
335
368
|
'Payment failed. Please try another payment method.': {
|
|
336
369
|
value: 'Ödeme başarısız. Lütfen başka bir ödeme yöntemi deneyin.',
|
|
337
370
|
},
|
|
@@ -452,6 +485,9 @@ export const stringsTurkish = {
|
|
|
452
485
|
'Select a language': {
|
|
453
486
|
value: 'Bir dil seçin',
|
|
454
487
|
},
|
|
488
|
+
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
489
|
+
value: 'Oturumun geçerli bir iniş maliyeti yok. Yardım için lütfen [organizationName] ile iletişime geçin.',
|
|
490
|
+
},
|
|
455
491
|
'Session timed out': {
|
|
456
492
|
value: 'Oturum zaman aşımına uğradı',
|
|
457
493
|
},
|
|
@@ -512,12 +548,18 @@ export const stringsTurkish = {
|
|
|
512
548
|
'Street or avenue': {
|
|
513
549
|
value: 'Cadde veya bulvar',
|
|
514
550
|
},
|
|
551
|
+
Subtotal: {
|
|
552
|
+
value: 'Ara toplam',
|
|
553
|
+
},
|
|
515
554
|
Success: {
|
|
516
555
|
value: 'Başarı',
|
|
517
556
|
},
|
|
518
557
|
'Tax id is required': {
|
|
519
558
|
value: 'Vergi kimliği gereklidir',
|
|
520
559
|
},
|
|
560
|
+
Taxes: {
|
|
561
|
+
value: 'Vergiler',
|
|
562
|
+
},
|
|
521
563
|
'Taxes and fees': {
|
|
522
564
|
value: 'Vergiler ve ücretler',
|
|
523
565
|
},
|
|
@@ -530,6 +572,9 @@ export const stringsTurkish = {
|
|
|
530
572
|
'Test mode': {
|
|
531
573
|
value: 'Test modu',
|
|
532
574
|
},
|
|
575
|
+
'Thank you for submitting your payment. We appreciate your prompt attention.': {
|
|
576
|
+
value: 'Ödemenizi gönderdiğiniz için teşekkür ederiz. Hızlı dikkatiniz için minnettarız.',
|
|
577
|
+
},
|
|
533
578
|
'The field is incomplete': {
|
|
534
579
|
value: 'Alan eksik',
|
|
535
580
|
},
|
|
@@ -551,6 +596,9 @@ export const stringsTurkish = {
|
|
|
551
596
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
552
597
|
value: 'Teslimatı sağlamak için tüm adres detaylarının Latin karakterleriyle olması gerekir.',
|
|
553
598
|
},
|
|
599
|
+
'Total paid': {
|
|
600
|
+
value: 'Toplam ödenen',
|
|
601
|
+
},
|
|
554
602
|
Town: {
|
|
555
603
|
value: 'Kasaba',
|
|
556
604
|
},
|
|
@@ -5,6 +5,9 @@ export const stringsVietnamese = {
|
|
|
5
5
|
' (Duties prepaid)': {
|
|
6
6
|
value: ' (Thuế đã trả trước)',
|
|
7
7
|
},
|
|
8
|
+
'A confirmation email with your payment details has been sent for your records. If you have any questions or need support, our team is here to help.': {
|
|
9
|
+
value: 'Một email xác nhận với chi tiết thanh toán của bạn đã được gửi để lưu trữ. Nếu bạn có bất kỳ câu hỏi nào hoặc cần hỗ trợ, đội ngũ của chúng tôi luôn sẵn sàng giúp đỡ.',
|
|
10
|
+
},
|
|
8
11
|
'Above de minimis threshold for': {
|
|
9
12
|
value: 'Vượt ngưỡng miễn thuế đối với',
|
|
10
13
|
},
|
|
@@ -59,6 +62,9 @@ export const stringsVietnamese = {
|
|
|
59
62
|
'Billing address': {
|
|
60
63
|
value: 'Địa chỉ thanh toán',
|
|
61
64
|
},
|
|
65
|
+
'Billing info': {
|
|
66
|
+
value: 'Thông tin thanh toán',
|
|
67
|
+
},
|
|
62
68
|
'By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level.': {
|
|
63
69
|
value: 'Bằng cách thanh toán bằng USD, thẻ của bạn sẽ bị tính phí trực tiếp mà không cần chuyển đổi tiền tệ. Tuy nhiên, sử dụng thẻ không dựa trên USD có thể dẫn đến phí chuyển đổi tiền tệ bổ sung ở cấp ngân hàng.',
|
|
64
70
|
},
|
|
@@ -101,6 +107,9 @@ export const stringsVietnamese = {
|
|
|
101
107
|
'Company name (optional)': {
|
|
102
108
|
value: 'Tên công ty (tùy chọn)',
|
|
103
109
|
},
|
|
110
|
+
'Confirmation #:[confirmationId]': {
|
|
111
|
+
value: 'Xác nhận #:[confirmationId]',
|
|
112
|
+
},
|
|
104
113
|
Contact: {
|
|
105
114
|
value: 'Liên hệ',
|
|
106
115
|
},
|
|
@@ -125,6 +134,12 @@ export const stringsVietnamese = {
|
|
|
125
134
|
'Customer information': {
|
|
126
135
|
value: 'Thông tin khách hàng',
|
|
127
136
|
},
|
|
137
|
+
'Customs fees for your recent purchase from [companyName] are ready for payment': {
|
|
138
|
+
value: 'Phí hải quan cho lần mua gần đây của bạn từ [companyName] đã sẵn sàng để thanh toán',
|
|
139
|
+
},
|
|
140
|
+
'Customs fees total': {
|
|
141
|
+
value: 'Tổng phí hải quan',
|
|
142
|
+
},
|
|
128
143
|
Delivery: {
|
|
129
144
|
value: 'Giao hàng',
|
|
130
145
|
},
|
|
@@ -170,6 +185,9 @@ export const stringsVietnamese = {
|
|
|
170
185
|
'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
|
|
171
186
|
value: 'Do luật thuế VOEC, tất cả các đơn hàng sẽ được đánh giá với [percentage] VAT bất kể tổng đơn hàng.',
|
|
172
187
|
},
|
|
188
|
+
Duties: {
|
|
189
|
+
value: 'Nhiệm vụ',
|
|
190
|
+
},
|
|
173
191
|
'Duties and taxes will be applied to items and shipping.': {
|
|
174
192
|
value: 'Thuế và phí sẽ được áp dụng cho hàng hóa và vận chuyển.',
|
|
175
193
|
},
|
|
@@ -209,6 +227,9 @@ export const stringsVietnamese = {
|
|
|
209
227
|
Failure: {
|
|
210
228
|
value: 'Thất bại',
|
|
211
229
|
},
|
|
230
|
+
Fees: {
|
|
231
|
+
value: 'Phí',
|
|
232
|
+
},
|
|
212
233
|
'First name': {
|
|
213
234
|
value: 'Tên',
|
|
214
235
|
},
|
|
@@ -236,6 +257,9 @@ export const stringsVietnamese = {
|
|
|
236
257
|
'Invalid promo code': {
|
|
237
258
|
value: 'Mã khuyến mãi không hợp lệ',
|
|
238
259
|
},
|
|
260
|
+
'Invalid session': {
|
|
261
|
+
value: 'Phiên không hợp lệ',
|
|
262
|
+
},
|
|
239
263
|
Island: {
|
|
240
264
|
value: 'Đảo',
|
|
241
265
|
},
|
|
@@ -308,9 +332,15 @@ export const stringsVietnamese = {
|
|
|
308
332
|
'Order complete!': {
|
|
309
333
|
value: 'Đơn hàng đã hoàn thành!',
|
|
310
334
|
},
|
|
335
|
+
'Order details': {
|
|
336
|
+
value: 'Chi tiết đơn hàng',
|
|
337
|
+
},
|
|
311
338
|
'Order total': {
|
|
312
339
|
value: 'Tổng đơn hàng',
|
|
313
340
|
},
|
|
341
|
+
'Ordered from': {
|
|
342
|
+
value: 'Đặt hàng từ',
|
|
343
|
+
},
|
|
314
344
|
'Orders to [countryName] must be over [threshold] to ship.': {
|
|
315
345
|
value: 'Đơn hàng đến [countryName] phải trên [threshold] mới được gửi.',
|
|
316
346
|
},
|
|
@@ -332,6 +362,9 @@ export const stringsVietnamese = {
|
|
|
332
362
|
'Payment failed': {
|
|
333
363
|
value: 'Thanh toán thất bại',
|
|
334
364
|
},
|
|
365
|
+
'Payment failed. Please reload the page and try another payment method.': {
|
|
366
|
+
value: 'Thanh toán thất bại. Vui lòng tải lại trang và thử phương thức thanh toán khác.',
|
|
367
|
+
},
|
|
335
368
|
'Payment failed. Please try another payment method.': {
|
|
336
369
|
value: 'Thanh toán thất bại. Vui lòng thử phương thức thanh toán khác.',
|
|
337
370
|
},
|
|
@@ -452,6 +485,9 @@ export const stringsVietnamese = {
|
|
|
452
485
|
'Select a language': {
|
|
453
486
|
value: 'Chọn một ngôn ngữ',
|
|
454
487
|
},
|
|
488
|
+
'Session does not have valid landed cost. Please contact [organizationName] for assistance.': {
|
|
489
|
+
value: 'Phiên không có chi phí hạ cánh hợp lệ. Vui lòng liên hệ [organizationName] để được hỗ trợ.',
|
|
490
|
+
},
|
|
455
491
|
'Session timed out': {
|
|
456
492
|
value: 'Phiên đã hết hạn',
|
|
457
493
|
},
|
|
@@ -512,12 +548,18 @@ export const stringsVietnamese = {
|
|
|
512
548
|
'Street or avenue': {
|
|
513
549
|
value: 'Đường phố hoặc đại lộ',
|
|
514
550
|
},
|
|
551
|
+
Subtotal: {
|
|
552
|
+
value: 'Tổng phụ',
|
|
553
|
+
},
|
|
515
554
|
Success: {
|
|
516
555
|
value: 'Thành công',
|
|
517
556
|
},
|
|
518
557
|
'Tax id is required': {
|
|
519
558
|
value: 'Yêu cầu mã số thuế',
|
|
520
559
|
},
|
|
560
|
+
Taxes: {
|
|
561
|
+
value: 'Thuế',
|
|
562
|
+
},
|
|
521
563
|
'Taxes and fees': {
|
|
522
564
|
value: 'Thuế và phí',
|
|
523
565
|
},
|
|
@@ -530,6 +572,9 @@ export const stringsVietnamese = {
|
|
|
530
572
|
'Test mode': {
|
|
531
573
|
value: 'Chế độ kiểm tra',
|
|
532
574
|
},
|
|
575
|
+
'Thank you for submitting your payment. We appreciate your prompt attention.': {
|
|
576
|
+
value: 'Cảm ơn bạn đã gửi thanh toán của mình. Chúng tôi đánh giá cao sự chú ý kịp thời của bạn.',
|
|
577
|
+
},
|
|
533
578
|
'The field is incomplete': {
|
|
534
579
|
value: 'Trường chưa hoàn thành',
|
|
535
580
|
},
|
|
@@ -551,6 +596,9 @@ export const stringsVietnamese = {
|
|
|
551
596
|
'To ensure delivery all address details must be in Latin characters.': {
|
|
552
597
|
value: 'Để đảm bảo giao hàng, tất cả chi tiết địa chỉ phải bằng ký tự Latinh.',
|
|
553
598
|
},
|
|
599
|
+
'Total paid': {
|
|
600
|
+
value: 'Tổng số đã trả',
|
|
601
|
+
},
|
|
554
602
|
Town: {
|
|
555
603
|
value: 'Thị trấn',
|
|
556
604
|
},
|
|
@@ -19,7 +19,7 @@ import { stringsSpanish } from "./translationStore/strings.spanish";
|
|
|
19
19
|
import { stringsSwedish } from "./translationStore/strings.swedish";
|
|
20
20
|
import { stringsTurkish } from "./translationStore/strings.turkish";
|
|
21
21
|
import { stringsVietnamese } from "./translationStore/strings.vietnamese";
|
|
22
|
-
const { state: translationStore } = createStore(() => ({
|
|
22
|
+
const { onChange: translationStoreOnChange, state: translationStore } = createStore(() => ({
|
|
23
23
|
translatedChunks: stringsBase,
|
|
24
24
|
}));
|
|
25
25
|
export { translationStore };
|
|
@@ -107,3 +107,4 @@ export const translate = (...[key, replacement]) => {
|
|
|
107
107
|
}
|
|
108
108
|
return ((_b = translationStore.translatedChunks[key]) === null || _b === void 0 ? void 0 : _b.value) || key;
|
|
109
109
|
};
|
|
110
|
+
export { translationStoreOnChange };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, Host, } from "@stencil/core";
|
|
2
2
|
import throttle from "lodash/throttle";
|
|
3
|
-
import { stripeStore, stripeStorePrefetchLandedCost, } from "../../store/checkout/stripe";
|
|
3
|
+
import { stripeStore, stripeStoreOnChange, stripeStorePrefetchLandedCost, } from "../../store/checkout/stripe";
|
|
4
4
|
import { getFallbackDefaultCountryCode, localizationStore, } from "../../store/hello/localization";
|
|
5
5
|
import { storageStore, storageStoreOnChange, } from "../../store/storageStore";
|
|
6
6
|
import { translate } from "../../store/translationStore";
|
|
@@ -8,6 +8,7 @@ import { zonosStore } from "../../store/zonosStore";
|
|
|
8
8
|
import { trackConversionEvent } from "../../utils/api/trackConversionEvent";
|
|
9
9
|
import { isCheckoutMobile } from "../../utils/checkout/isCheckoutMobile";
|
|
10
10
|
import { shouldRenderTaxIdInput } from "../../utils/checkout/shouldRenderTaxIdInput";
|
|
11
|
+
import { classes } from "../../utils/classes";
|
|
11
12
|
import { extractName } from "../../utils/extractName";
|
|
12
13
|
import { log } from "../../utils/logging/log";
|
|
13
14
|
import { logError } from "../../utils/logging/logError";
|
|
@@ -17,7 +18,7 @@ import { countryRequireTaxId, shipToTaxIdLabels, } from "../../../types/checkout
|
|
|
17
18
|
*/
|
|
18
19
|
export class ZonosAddress {
|
|
19
20
|
constructor() {
|
|
20
|
-
this.
|
|
21
|
+
this.storeUnsubscribeList = [];
|
|
21
22
|
/**
|
|
22
23
|
* Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
|
|
23
24
|
*/
|
|
@@ -53,14 +54,6 @@ export class ZonosAddress {
|
|
|
53
54
|
*/
|
|
54
55
|
this.trackingSent = false;
|
|
55
56
|
this.prefetchLandedCost = throttle(stripeStorePrefetchLandedCost, 1000);
|
|
56
|
-
this.onStoreCheckoutSessionIdChanged = () => {
|
|
57
|
-
const onCheckoutSessionIdChange = () => {
|
|
58
|
-
this.checkoutSessionId = storageStore.checkoutSessionId;
|
|
59
|
-
};
|
|
60
|
-
// Trigger it once on init because onChange doesn't get triggered on initial load
|
|
61
|
-
onCheckoutSessionIdChange();
|
|
62
|
-
this.onStoreCheckoutSessionIdChangedSubscription = storageStoreOnChange('checkoutSessionId', onCheckoutSessionIdChange);
|
|
63
|
-
};
|
|
64
57
|
}
|
|
65
58
|
getStripeAddressInstance() {
|
|
66
59
|
if (this.type === 'billing') {
|
|
@@ -270,12 +263,14 @@ export class ZonosAddress {
|
|
|
270
263
|
} }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
|
|
271
264
|
}
|
|
272
265
|
renderCompanyNameInput() {
|
|
273
|
-
// No need to render company name for billing address
|
|
274
|
-
if (this.type === 'billing') {
|
|
266
|
+
// No need to render company name for billing address (only allow for Collect)
|
|
267
|
+
if (this.type === 'billing' && !window.Zonos.isCollect) {
|
|
275
268
|
return null;
|
|
276
269
|
}
|
|
277
|
-
// only render the company input if the setting is enabled
|
|
278
|
-
const isCompanyNameEnabled = zonosStore.checkoutSettings.companyFieldsStatus === 'ENABLED'
|
|
270
|
+
// only render the company input if the setting is enabled or the cart is collect
|
|
271
|
+
const isCompanyNameEnabled = zonosStore.checkoutSettings.companyFieldsStatus === 'ENABLED' ||
|
|
272
|
+
!!window.Zonos.isCollect;
|
|
273
|
+
// No need to render company name for billing address (only allow for Collect)
|
|
279
274
|
if (!isCompanyNameEnabled) {
|
|
280
275
|
return null;
|
|
281
276
|
}
|
|
@@ -287,8 +282,11 @@ export class ZonosAddress {
|
|
|
287
282
|
// destroy the stripe element when this component is removed from the DOM, so that we can re-create the new one with previous value
|
|
288
283
|
const stripeElement = this.getStripeAddressInstance().stripeAddressElement;
|
|
289
284
|
stripeElement === null || stripeElement === void 0 ? void 0 : stripeElement.destroy();
|
|
290
|
-
//
|
|
291
|
-
|
|
285
|
+
// unsubscribe from store subscriptions
|
|
286
|
+
try {
|
|
287
|
+
this.storeUnsubscribeList.forEach(subscription => subscription());
|
|
288
|
+
}
|
|
289
|
+
catch (_a) { }
|
|
292
290
|
}
|
|
293
291
|
componentDidLoad() {
|
|
294
292
|
const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
|
|
@@ -297,7 +295,22 @@ export class ZonosAddress {
|
|
|
297
295
|
stripeAddressEventData.value.address.line1.length > 0;
|
|
298
296
|
// @Watch doesn't get trigger on initial load
|
|
299
297
|
void this.watchInitStripe();
|
|
300
|
-
this.
|
|
298
|
+
this.checkoutSessionId = storageStore.checkoutSessionId;
|
|
299
|
+
this.storeUnsubscribeList = [
|
|
300
|
+
storageStoreOnChange('checkoutSessionId', () => {
|
|
301
|
+
this.checkoutSessionId = storageStore.checkoutSessionId;
|
|
302
|
+
}),
|
|
303
|
+
stripeStoreOnChange('stripeElements', () => {
|
|
304
|
+
if (this.type === 'shipping') {
|
|
305
|
+
void this.watchInitStripe();
|
|
306
|
+
}
|
|
307
|
+
}),
|
|
308
|
+
stripeStoreOnChange('stripeElementsForBillingAddress', () => {
|
|
309
|
+
if (this.type === 'billing') {
|
|
310
|
+
void this.watchInitStripe();
|
|
311
|
+
}
|
|
312
|
+
}),
|
|
313
|
+
];
|
|
301
314
|
}
|
|
302
315
|
render() {
|
|
303
316
|
var _a;
|
|
@@ -306,7 +319,11 @@ export class ZonosAddress {
|
|
|
306
319
|
this.isAddressFilled = true;
|
|
307
320
|
}
|
|
308
321
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
309
|
-
return (h(Host, { key: '
|
|
322
|
+
return (h(Host, { key: 'ef89e6e083ce9c9bed0bed4653cbc40d451456c0', class: classes([
|
|
323
|
+
'zonos--address',
|
|
324
|
+
'zonos--elements',
|
|
325
|
+
`zonos--${this.type}-address`,
|
|
326
|
+
]) }, this.titleText && (h("zonos-text", { key: '62e73e9284617c5e4f78f25f7160bb4e23246554', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: 'b268422f6e4aa09e74ebac9d3a4c0d7a6594e95e', class: "zonos--address-component" })));
|
|
310
327
|
}
|
|
311
328
|
static get is() { return "zonos-address"; }
|
|
312
329
|
static get encapsulation() { return "scoped"; }
|
|
@@ -78,9 +78,9 @@ export class ZonosAddressSuggestions {
|
|
|
78
78
|
return segments;
|
|
79
79
|
}
|
|
80
80
|
render() {
|
|
81
|
-
return (h(Host, { key: '
|
|
81
|
+
return (h(Host, { key: '3f22f5bcf968d02e34fe46101b8ea4cf4e89051f', class: "zonos--address-suggestions", role: "group", style: {
|
|
82
82
|
'--zonos--border-radius': getBorderRadius(),
|
|
83
|
-
} }, h("ul", { key: '
|
|
83
|
+
} }, h("ul", { key: 'fc77bda0480b2b2ef0d2b89cc36413d56f84f90b', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: '0981dd0c7e522605417fb72c61d88bde629fada4', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: 'c307293f2d06cb7ea0e9c8d6ee0dd9b017ff2e5e', class: "powered-by-container" }, h("zonos-text", { key: 'a0776ea17615339f10ea7d623a40d9de90fcdbb4', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '6ffdc7d0475a8718372c760b51f2128b0b81e78e', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '6c168c20f1906ba4658998c7bd1e0b0eba860da1', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon }), noBackground: true, onClick: () => {
|
|
84
84
|
this.localSuggestions = [];
|
|
85
85
|
} }))), this.localSuggestions.map(suggestion => (
|
|
86
86
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events
|
|
@@ -894,10 +894,10 @@ export class ZonosAddress {
|
|
|
894
894
|
this.country = localizationStore.selectedCountryCode;
|
|
895
895
|
}
|
|
896
896
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
897
|
-
return (h(Host, { key: '
|
|
897
|
+
return (h(Host, { key: '29e26b9b269ea277ae508671f0c63483910ad50b', class: classes([
|
|
898
898
|
'zonos--address zonos--elements',
|
|
899
899
|
`zonos--${this.type}-address`,
|
|
900
|
-
]) }, h("zonos-text", { key: '
|
|
900
|
+
]) }, h("zonos-text", { key: 'db6f6cb94da02e5f2c9aca8112ab20e11148281e', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
|
|
901
901
|
}
|
|
902
902
|
static get is() { return "zonos-custom-address"; }
|
|
903
903
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
2
|
import { h, Host, } from "@stencil/core";
|
|
3
3
|
import { cartStore } from "../../store/checkout/cart";
|
|
4
|
-
import { stripeStore } from "../../store/checkout/stripe";
|
|
4
|
+
import { stripeStore, stripeStoreOnChange, } from "../../store/checkout/stripe";
|
|
5
5
|
import { translate } from "../../store/translationStore";
|
|
6
6
|
import { getBorderRadius } from "../../utils/getBorderRadius";
|
|
7
7
|
import { log } from "../../utils/logging/log";
|
|
@@ -12,6 +12,7 @@ import { validateEmailValue } from "../../utils/validateEmailValue";
|
|
|
12
12
|
*/
|
|
13
13
|
export class ZonosLinkAuthentication {
|
|
14
14
|
constructor() {
|
|
15
|
+
this.storeUnsubscribeList = [];
|
|
15
16
|
/**
|
|
16
17
|
* Default email for stripe
|
|
17
18
|
*/
|
|
@@ -108,7 +109,19 @@ export class ZonosLinkAuthentication {
|
|
|
108
109
|
void this.watchInitStripe();
|
|
109
110
|
}, 5);
|
|
110
111
|
}
|
|
112
|
+
disconnectedCallback() {
|
|
113
|
+
// unsubscribe from store subscriptions
|
|
114
|
+
try {
|
|
115
|
+
this.storeUnsubscribeList.forEach(subscription => subscription());
|
|
116
|
+
}
|
|
117
|
+
catch (_a) { }
|
|
118
|
+
}
|
|
111
119
|
componentDidLoad() {
|
|
120
|
+
this.storeUnsubscribeList = [
|
|
121
|
+
stripeStoreOnChange('stripeElements', () => {
|
|
122
|
+
void this.watchInitStripe();
|
|
123
|
+
}),
|
|
124
|
+
];
|
|
112
125
|
// @Watch doesn't get trigger on initial load
|
|
113
126
|
this.watchInitStripe();
|
|
114
127
|
if (!this.defaultEmail) {
|
|
@@ -141,7 +154,7 @@ export class ZonosLinkAuthentication {
|
|
|
141
154
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
142
155
|
return (h(Host, { class: "zonos--link-authentication zonos--elements", style: {
|
|
143
156
|
'--zonos--border-radius': getBorderRadius(),
|
|
144
|
-
} }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText), renderEmailAddress(), this.isEmailError && (h("zonos-text", { textColor: "red-600" }, translate('Please enter a valid email address.')))));
|
|
157
|
+
} }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), renderEmailAddress(), this.isEmailError && (h("zonos-text", { textColor: "red-600" }, translate('Please enter a valid email address.')))));
|
|
145
158
|
}
|
|
146
159
|
static get is() { return "zonos-link-authentication"; }
|
|
147
160
|
static get encapsulation() { return "scoped"; }
|
|
@@ -57,7 +57,7 @@ export class ZonosPayment {
|
|
|
57
57
|
}
|
|
58
58
|
render() {
|
|
59
59
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
60
|
-
return (h(Host, { key: '
|
|
60
|
+
return (h(Host, { key: '1828cd97531009303635ded8725233c07e45fba3', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '899f8ef9f1e008a8d613e54fd1196c1bab7cefdc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '9e9b67bd29a4caf71a6f34fba03c67cbff03b0c7', class: "zonos--payment-component" }), h("div", { key: '1aeb4114ca6eac6541e0bafe72077093bdfb777e', class: "zonos--payment-paypal-container" })));
|
|
61
61
|
}
|
|
62
62
|
static get is() { return "zonos-payment"; }
|
|
63
63
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const injectCheckoutElement = () => {
|
|
2
|
+
// append checkout component if doesn't exist
|
|
3
|
+
const collectElement = document.querySelector('zonos-collect');
|
|
4
|
+
if (!collectElement) {
|
|
5
|
+
const newCollectElement = document.createElement('zonos-collect');
|
|
6
|
+
document.body.appendChild(newCollectElement);
|
|
7
|
+
}
|
|
8
|
+
};
|
|
9
|
+
export const initCollect = () => {
|
|
10
|
+
// allow to load checkout if cartData is ready (Checkout can be loaded right away if tempCartUUID is in the URL)
|
|
11
|
+
if (!window.Zonos.cartData) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
injectCheckoutElement();
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const collectTabletBreakpoint = 1024;
|
|
2
|
+
export const collectMobileBreakpoint = 768;
|
|
3
|
+
export const isCollectTablet = (isTablet) => {
|
|
4
|
+
return (isTablet ||
|
|
5
|
+
(window.innerWidth < collectTabletBreakpoint &&
|
|
6
|
+
window.innerWidth >= collectMobileBreakpoint));
|
|
7
|
+
};
|
|
8
|
+
export const isCollectMobile = (isMobile) => {
|
|
9
|
+
return isMobile || window.innerWidth < collectMobileBreakpoint;
|
|
10
|
+
};
|
|
@@ -6,8 +6,17 @@ import { currencyFormat } from "../hello/currencyConversion/currencyFormat";
|
|
|
6
6
|
* @note This is only to display, not for calculations.
|
|
7
7
|
*/
|
|
8
8
|
export const renderCheckoutCurrency = ({ amount, isForeign }) => {
|
|
9
|
-
var _a;
|
|
9
|
+
var _a, _b;
|
|
10
10
|
const targetRate = ((_a = cartStore.exchangeRate) === null || _a === void 0 ? void 0 : _a.rate) || 1;
|
|
11
|
+
const presentmentCurrency = cartStore.currency;
|
|
12
|
+
const itemCurrency = (_b = cartStore.items[0]) === null || _b === void 0 ? void 0 : _b.currencyCode;
|
|
13
|
+
// If the item currency is the same as the presentment currency, we can just return the amount in the presentment currency in the same format
|
|
14
|
+
if (itemCurrency === presentmentCurrency) {
|
|
15
|
+
return currencyFormat({
|
|
16
|
+
amount,
|
|
17
|
+
currency: presentmentCurrency,
|
|
18
|
+
});
|
|
19
|
+
}
|
|
11
20
|
const shouldDisplayBaseCurrency = cartStore.displayBaseCurrency;
|
|
12
21
|
const displayCurrency = getDisplayCurrency();
|
|
13
22
|
if (isForeign) {
|
|
@@ -194,6 +194,7 @@ const handleRequestWithFallback = async ({ basePathType: _basePathType, options,
|
|
|
194
194
|
nextFallbackApiType,
|
|
195
195
|
requestHeaders: options === null || options === void 0 ? void 0 : options.headers,
|
|
196
196
|
requestPayload: jsonParse((_a = options === null || options === void 0 ? void 0 : options.body) === null || _a === void 0 ? void 0 : _a.toString()) || ((_b = options === null || options === void 0 ? void 0 : options.body) === null || _b === void 0 ? void 0 : _b.toString()),
|
|
197
|
+
shouldCallFallback,
|
|
197
198
|
status: response === null || response === void 0 ? void 0 : response.status,
|
|
198
199
|
statusText: response === null || response === void 0 ? void 0 : response.statusText,
|
|
199
200
|
},
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { h } from "@stencil/core";
|
|
2
|
+
export const renderFallback = ({ content, isLoading, skeletonHeight, skeletonWidth, }) => {
|
|
3
|
+
if (isLoading) {
|
|
4
|
+
return (h("zonos-skeleton", { skeletonHeight: skeletonHeight, skeletonWidth: skeletonWidth }));
|
|
5
|
+
}
|
|
6
|
+
return content;
|
|
7
|
+
};
|
|
@@ -24,7 +24,11 @@ export const getZonosQaUrl = () => {
|
|
|
24
24
|
}
|
|
25
25
|
// when local demo app is running, it needs to use the local dev script unless the qaUrl is set
|
|
26
26
|
if (!qaUrl &&
|
|
27
|
-
[
|
|
27
|
+
[
|
|
28
|
+
'dev.demo.elements.zonos.com',
|
|
29
|
+
'dev.checkout.elements.zonos.com',
|
|
30
|
+
'dev.storybook.elements.zonos.com',
|
|
31
|
+
].includes(window.location.hostname)) {
|
|
28
32
|
return 'https://dev.elements.zonos.com';
|
|
29
33
|
}
|
|
30
34
|
if (!qaUrl) {
|
|
@@ -59,6 +59,7 @@ Zonos.domain = typeof window !== 'undefined'
|
|
|
59
59
|
Zonos.showBaseForeign = typeof window !== 'undefined' &&
|
|
60
60
|
window.location.search.includes('zonosShowBaseForeign');
|
|
61
61
|
Zonos.overrideUseCustomAddressForm = false;
|
|
62
|
+
Zonos.isCollect = false;
|
|
62
63
|
/**
|
|
63
64
|
* By default, the package will load from npm
|
|
64
65
|
*/
|
|
@@ -386,7 +387,12 @@ Zonos.injectController = ({ config, }) => {
|
|
|
386
387
|
return;
|
|
387
388
|
}
|
|
388
389
|
window.Zonos.stripe = stripe;
|
|
389
|
-
|
|
390
|
+
if (window.Zonos.isCollect) {
|
|
391
|
+
void zonosController.initCollectElement(stripe);
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
void zonosController.initCheckoutElement(stripe);
|
|
395
|
+
}
|
|
390
396
|
});
|
|
391
397
|
document.body.appendChild(zonosController);
|
|
392
398
|
// set zonos controller to be global
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|