@zonos/elements 1.3.39 → 1.3.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{cart-c7212410.js → cart-497bb434.js} +300 -7
- package/dist/cjs/{getBorderRadius-074b46ef.js → getBorderRadius-4413e191.js} +1 -1
- package/dist/cjs/{index-b071017b.js → index-d56e0a8b.js} +242 -169
- package/dist/cjs/index.cjs.js +10 -4
- package/dist/cjs/{isDarkColor-371a3b1a.js → isDarkColor-4eb96a1e.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/paypal-e65a287a.js +461 -0
- package/dist/cjs/{submitGtag-7a679d92.js → sendErrorLog-c3c315a9.js} +2 -19
- package/dist/cjs/zonos-address_8.cjs.entry.js +11 -11
- package/dist/cjs/zonos-badge_2.cjs.entry.js +4 -4
- package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
- package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
- package/dist/cjs/zonos-card.cjs.entry.js +3 -3
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +76 -38
- package/dist/cjs/zonos-checkout.cjs.entry.js +43 -70
- package/dist/cjs/zonos-component.cjs.entry.js +2 -2
- package/dist/cjs/zonos-controller.cjs.entry.js +15 -15
- package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
- package/dist/cjs/{zonos-country-select_3.cjs.entry.js → zonos-country-select_4.cjs.entry.js} +100 -14
- package/dist/cjs/zonos-elements.cjs.js +3 -3
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -9
- package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
- package/dist/cjs/zonos-input.cjs.entry.js +7 -7
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +9 -9
- package/dist/cjs/zonos-link.cjs.entry.js +2 -2
- package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
- package/dist/cjs/{zonos-notification_2.cjs.entry.js → zonos-notification_3.cjs.entry.js} +59 -7
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
- package/dist/cjs/zonos-text.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -4
- package/dist/cjs/{zonosStore-4c6c85da.js → zonosStore-56401fdb.js} +5 -1
- package/dist/collection/__tests__/build-utils/urlCheckOne.js +3 -1
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +39 -8
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +37 -22
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +3 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +30 -60
- package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +1 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +8 -0
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +14 -4
- 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-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-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-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.css +46 -0
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +177 -0
- 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 +22 -8
- package/dist/collection/components/paypal/zonos-paypal-payment.css +37 -0
- package/dist/collection/components/paypal/zonos-paypal-payment.js +92 -0
- package/dist/collection/components/store/checkout/cart.js +26 -1
- package/dist/collection/components/store/checkout/paypal.js +219 -0
- package/dist/collection/components/store/checkout/stripe.js +16 -4
- package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
- package/dist/collection/components/store/translationStore/strings.base.js +12 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
- package/dist/collection/components/store/translationStore/strings.french.js +12 -0
- package/dist/collection/components/store/translationStore/strings.german.js +12 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
- package/dist/collection/components/store/zonosStore.js +4 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -3
- package/dist/collection/components/utils/api/getZonosSettings.js +3 -3
- package/dist/collection/components/utils/api/paypalCaptureOrder.js +8 -0
- package/dist/collection/components/utils/api/paypalCreateOrder.js +8 -0
- package/dist/collection/components/utils/getContrastColor.js +6 -2
- package/dist/collection/components/utils/handleFetch.js +6 -1
- package/dist/collection/components/utils/isContrastColor.js +7 -0
- package/dist/collection/environment.js +4 -5
- package/dist/collection/scripts/_getZonosQaUrl.js +4 -0
- package/dist/collection/scripts/_zonosBase.js +2 -0
- package/dist/collection/styles/stripe/addressRuleStyle.js +6 -0
- package/dist/collection/types/generated/graphql.customer.types.js +35 -0
- package/dist/esm/{cart-eb75b113.js → cart-f53c9f90.js} +296 -8
- package/dist/esm/{getBorderRadius-947c24de.js → getBorderRadius-3ba98361.js} +1 -1
- package/dist/esm/{index-3b46f3c3.js → index-86b8247e.js} +242 -169
- package/dist/esm/index.js +10 -4
- package/dist/esm/{isDarkColor-f8324c10.js → isDarkColor-3119e351.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/paypal-72296ae6.js +453 -0
- package/dist/esm/{submitGtag-0bc0baa0.js → sendErrorLog-f8d3ec4b.js} +3 -19
- package/dist/esm/zonos-address_8.entry.js +11 -11
- package/dist/esm/zonos-badge_2.entry.js +4 -4
- package/dist/esm/zonos-banner.entry.js +2 -2
- package/dist/esm/zonos-button_3.entry.js +4 -4
- package/dist/esm/zonos-card.entry.js +3 -3
- package/dist/esm/zonos-cart-items_12.entry.js +63 -25
- package/dist/esm/zonos-checkout.entry.js +34 -61
- package/dist/esm/zonos-component.entry.js +2 -2
- package/dist/esm/zonos-controller.entry.js +15 -15
- package/dist/esm/zonos-country-flag.entry.js +5 -5
- package/dist/esm/{zonos-country-select_3.entry.js → zonos-country-select_4.entry.js} +100 -15
- package/dist/esm/zonos-elements.js +4 -4
- package/dist/esm/zonos-hello-dialog.entry.js +9 -9
- package/dist/esm/zonos-hello.entry.js +5 -5
- package/dist/esm/zonos-input.entry.js +7 -7
- package/dist/esm/zonos-language-select_2.entry.js +9 -9
- package/dist/esm/zonos-link.entry.js +2 -2
- package/dist/esm/zonos-logo.entry.js +4 -4
- package/dist/esm/{zonos-notification_2.entry.js → zonos-notification_3.entry.js} +60 -9
- package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
- package/dist/esm/zonos-text.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +4 -4
- package/dist/esm/{zonosStore-ba9e541e.js → zonosStore-8fc9ceb2.js} +5 -1
- package/dist/esm-es5/cart-f53c9f90.js +1 -0
- package/dist/esm-es5/{getBorderRadius-947c24de.js → getBorderRadius-3ba98361.js} +1 -1
- package/dist/esm-es5/index-86b8247e.js +2 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{isDarkColor-f8324c10.js → isDarkColor-3119e351.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/paypal-72296ae6.js +17 -0
- package/dist/esm-es5/sendErrorLog-f8d3ec4b.js +1 -0
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
- package/dist/esm-es5/zonos-banner.entry.js +1 -1
- package/dist/esm-es5/zonos-button_3.entry.js +1 -1
- package/dist/esm-es5/zonos-card.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -0
- 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-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-notification_3.entry.js +1 -0
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/zonos-text.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/esm-es5/{zonosStore-ba9e541e.js → zonosStore-8fc9ceb2.js} +1 -1
- package/dist/scripts/index.d.ts +170 -6
- 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-checkout-finish/zonos-checkout-finish.d.ts +2 -1
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.d.ts +8 -4
- package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -20
- package/dist/types/components/common/zonos-virtual-scroll/zonos-virtual-scroll.d.ts +32 -0
- package/dist/types/components/main/zonos-controller.d.ts +6 -0
- package/dist/types/components/paypal/zonos-paypal-payment.d.ts +17 -0
- package/dist/types/components/store/checkout/cart.d.ts +19 -1
- package/dist/types/components/store/checkout/paypal.d.ts +28 -0
- package/dist/types/components/store/checkout/stripe.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/store/zonosStore.d.ts +4 -0
- package/dist/types/components/utils/api/getZonosSettings.d.ts +2 -0
- package/dist/types/components/utils/api/paypalCaptureOrder.d.ts +10 -0
- package/dist/types/components/utils/api/paypalCreateOrder.d.ts +9 -0
- package/dist/types/components/utils/handleFetch.d.ts +4 -0
- package/dist/types/components/utils/isContrastColor.d.ts +4 -0
- package/dist/types/components.d.ts +129 -6
- package/dist/types/scripts/_zonosBase.d.ts +9 -1
- package/dist/types/stencil-public-runtime.d.ts +3 -10
- package/dist/types/types/checkout/CheckoutConfig.d.ts +14 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +71 -11
- package/dist/types/types/generated/graphql.customer.types.ts +103 -11
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-71882ac9.system.entry.js → p-0229282c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-5821856c.js → p-04054425.js} +1 -1
- package/dist/zonos-elements/p-05cdd3b4.js +17 -0
- package/dist/zonos-elements/{p-a8b934c2.entry.js → p-0f9804e3.entry.js} +1 -1
- package/dist/zonos-elements/p-12266c9e.js +1 -0
- package/dist/zonos-elements/{p-01304a58.system.entry.js → p-14067782.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1a89c54a.js +1 -0
- package/dist/zonos-elements/{p-d2992457.system.entry.js → p-1e4f7997.system.entry.js} +1 -1
- package/dist/zonos-elements/p-1ee2fa70.system.entry.js +1 -0
- package/dist/zonos-elements/{p-63a27875.entry.js → p-25633055.entry.js} +1 -1
- package/dist/zonos-elements/{p-e37440ad.system.js → p-40c21634.system.js} +1 -1
- package/dist/zonos-elements/p-4db5be24.system.entry.js +1 -0
- package/dist/zonos-elements/{p-da2e5289.system.entry.js → p-4f454a91.system.entry.js} +1 -1
- package/dist/zonos-elements/p-52947dab.system.entry.js +1 -0
- package/dist/zonos-elements/{p-62ed4236.entry.js → p-52fa9aab.entry.js} +1 -1
- package/dist/zonos-elements/{p-31b3d26b.js → p-52fb6876.js} +1 -1
- package/dist/zonos-elements/p-539974db.system.js +1 -0
- package/dist/zonos-elements/p-5922c099.entry.js +1 -0
- package/dist/zonos-elements/p-5b7da777.js +2 -0
- package/dist/zonos-elements/p-5fe10991.system.entry.js +1 -0
- package/dist/zonos-elements/p-678f1888.entry.js +1 -0
- package/dist/zonos-elements/p-67f22fbf.system.entry.js +1 -0
- package/dist/zonos-elements/{p-9a1c0d02.js → p-6ac72711.js} +1 -1
- package/dist/zonos-elements/{p-ed333de6.system.entry.js → p-6bb0b7d2.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6de1c78a.entry.js +1 -0
- package/dist/zonos-elements/{p-d8c1eb99.entry.js → p-6de38759.entry.js} +1 -1
- package/dist/zonos-elements/{p-a21ec316.system.entry.js → p-6fbb4565.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6c3390b7.entry.js → p-706d2bad.entry.js} +1 -1
- package/dist/zonos-elements/{p-73ba4398.system.entry.js → p-717028a2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8acdf43b.system.entry.js → p-7833fa53.system.entry.js} +1 -1
- package/dist/zonos-elements/p-79fd4f3c.system.js +1 -0
- package/dist/zonos-elements/p-8809964a.system.js +1 -0
- package/dist/zonos-elements/{p-3541e6dd.entry.js → p-8b01aafb.entry.js} +1 -1
- package/dist/zonos-elements/{p-2aa72606.entry.js → p-9220f63d.entry.js} +1 -1
- package/dist/zonos-elements/{p-699a5376.entry.js → p-9420f9db.entry.js} +1 -1
- package/dist/zonos-elements/p-9525cc44.system.js +1 -0
- package/dist/zonos-elements/{p-c21802e9.entry.js → p-9a319774.entry.js} +1 -1
- package/dist/zonos-elements/{p-3523c3b4.entry.js → p-9d1f13c2.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0fcc0fa.system.entry.js → p-9eadd9a7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-966ab4e7.system.entry.js → p-a3e2592b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f06bb776.system.entry.js → p-ab11cca6.system.entry.js} +1 -1
- package/dist/zonos-elements/p-b3e825dc.system.js +17 -0
- package/dist/zonos-elements/{p-9d29f3f4.system.entry.js → p-b689309d.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c460665d.system.js +1 -0
- package/dist/zonos-elements/p-c4617501.entry.js +1 -0
- package/dist/zonos-elements/{p-b903af96.system.entry.js → p-c4bb2949.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c3619b3d.entry.js → p-c7301a88.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -0
- package/dist/zonos-elements/p-d86c89e3.entry.js +1 -0
- package/dist/zonos-elements/{p-e3c014ae.entry.js → p-dc368ad5.entry.js} +1 -1
- package/dist/zonos-elements/{p-18b28104.entry.js → p-de53d9c3.entry.js} +1 -1
- package/dist/zonos-elements/p-df69fa38.system.entry.js +1 -0
- package/dist/zonos-elements/{p-22882fd6.entry.js → p-e07bf9ea.entry.js} +1 -1
- package/dist/zonos-elements/{p-9de374a7.system.entry.js → p-e8f7fb29.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-59f37de3.entry.js → p-f35ee203.entry.js} +1 -1
- package/dist/zonos-elements/p-fd061229.system.js +2 -0
- package/dist/zonos-elements/p-fd54fbb9.system.entry.js +1 -0
- package/dist/zonos-elements/p-fdb4347f.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/dist/zonos-elements/zonos-elements.js +1 -1
- package/loader/cdn.js +1 -2
- package/loader/index.cjs.js +1 -2
- package/loader/index.d.ts +3 -0
- package/loader/index.es2017.js +1 -2
- package/loader/index.js +1 -2
- package/package.json +12 -11
- package/dist/esm-es5/cart-eb75b113.js +0 -1
- package/dist/esm-es5/index-3b46f3c3.js +0 -2
- package/dist/esm-es5/submitGtag-0bc0baa0.js +0 -1
- package/dist/esm-es5/zonos-country-select_3.entry.js +0 -1
- package/dist/esm-es5/zonos-notification_2.entry.js +0 -1
- package/dist/zonos-elements/p-02405211.system.entry.js +0 -1
- package/dist/zonos-elements/p-085548f2.entry.js +0 -1
- package/dist/zonos-elements/p-0b538ed4.system.js +0 -1
- package/dist/zonos-elements/p-2a45c837.system.entry.js +0 -1
- package/dist/zonos-elements/p-357322ea.system.entry.js +0 -1
- package/dist/zonos-elements/p-3f5e2e5c.system.entry.js +0 -1
- package/dist/zonos-elements/p-53acc999.js +0 -1
- package/dist/zonos-elements/p-548ac127.entry.js +0 -1
- package/dist/zonos-elements/p-5609876a.system.entry.js +0 -1
- package/dist/zonos-elements/p-6f9448bb.entry.js +0 -1
- package/dist/zonos-elements/p-70262120.system.js +0 -1
- package/dist/zonos-elements/p-878293fe.js +0 -1
- package/dist/zonos-elements/p-97d74f84.system.js +0 -1
- package/dist/zonos-elements/p-a393c1db.system.entry.js +0 -1
- package/dist/zonos-elements/p-a8cb25de.system.js +0 -1
- package/dist/zonos-elements/p-abe8ea12.system.js +0 -1
- package/dist/zonos-elements/p-ae04d3ff.entry.js +0 -1
- package/dist/zonos-elements/p-b684f8aa.system.entry.js +0 -1
- package/dist/zonos-elements/p-ce347974.js +0 -2
- package/dist/zonos-elements/p-d99232c5.system.js +0 -2
- package/dist/zonos-elements/p-e0bf9666.system.js +0 -1
- package/dist/zonos-elements/p-e1db1bc9.entry.js +0 -1
- package/dist/zonos-elements/p-e74ca4bc.entry.js +0 -1
|
@@ -8,11 +8,14 @@ import { log } from "../../utils/logging/log";
|
|
|
8
8
|
import { logError } from "../../utils/logging/logError";
|
|
9
9
|
const { onChange, reset, state: cartStore, } = createStore(() => ({
|
|
10
10
|
checkoutSessionId: sessionStorage.getItem('zonos--checkout-session-id') || null,
|
|
11
|
+
checkoutSessionTimeoutShow: false,
|
|
12
|
+
checkoutTimeoutInterval: null,
|
|
11
13
|
currency: 'USD',
|
|
12
14
|
doneSteps: [],
|
|
13
15
|
dutiesTaxFees: 0,
|
|
14
16
|
error: null,
|
|
15
17
|
exchangeRate: null,
|
|
18
|
+
inventoryCheckErrorMessage: null,
|
|
16
19
|
isSelectedShippingAboveDeminimis: false,
|
|
17
20
|
isSelectedShippingGuarantee: false,
|
|
18
21
|
items: [],
|
|
@@ -219,6 +222,28 @@ onChange('checkoutSessionId', () => {
|
|
|
219
222
|
}
|
|
220
223
|
sessionStorage.setItem('zonos--checkout-session-id', cartStore.checkoutSessionId);
|
|
221
224
|
});
|
|
225
|
+
const cartStoreStartCheckoutInterval = ({ isPreview, sessionTimeout, }) => {
|
|
226
|
+
// do nothing if in preview mode
|
|
227
|
+
if (isPreview) {
|
|
228
|
+
return;
|
|
229
|
+
}
|
|
230
|
+
const timeoutQuery = new URLSearchParams(window.location.search).get('zonosCheckoutTimeout');
|
|
231
|
+
const timeout =
|
|
232
|
+
// timeout query is mainly for testing purpose
|
|
233
|
+
timeoutQuery && !isNaN(parseInt(timeoutQuery, 10))
|
|
234
|
+
? parseInt(timeoutQuery, 10)
|
|
235
|
+
: sessionTimeout;
|
|
236
|
+
log(`==START CHECKOUT TIMEOUT - ${timeout}==`);
|
|
237
|
+
cartStore.checkoutTimeoutInterval = setTimeout(() => {
|
|
238
|
+
cartStore.checkoutSessionTimeoutShow = true;
|
|
239
|
+
}, timeout);
|
|
240
|
+
};
|
|
241
|
+
const cartStoreClearCheckoutInterval = () => {
|
|
242
|
+
if (cartStore.checkoutTimeoutInterval) {
|
|
243
|
+
clearTimeout(cartStore.checkoutTimeoutInterval);
|
|
244
|
+
cartStore.checkoutTimeoutInterval = null;
|
|
245
|
+
}
|
|
246
|
+
};
|
|
222
247
|
const getCartItemToUse = (items) => items.map(item => (Object.assign(Object.assign({}, item), { isRestricted: false })));
|
|
223
248
|
const cartStoreResetCartItems = () => {
|
|
224
249
|
// mark all items as not restricted
|
|
@@ -276,4 +301,4 @@ const cartStoreResetTabItems = () => {
|
|
|
276
301
|
cartStore.tabItems = Object.assign(Object.assign({}, cartStore.tabItems), { 'customer-info': Object.assign(Object.assign({}, cartStore.tabItems['customer-info']), { isDone: false }), payment: Object.assign(Object.assign({}, cartStore.tabItems.payment), { isDone: false }), shipping: Object.assign(Object.assign({}, cartStore.tabItems.shipping), { isDone: false }) });
|
|
277
302
|
cartStoreResetSelectedShippingOption();
|
|
278
303
|
};
|
|
279
|
-
export { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreGetShippingTransitInfo, cartStoreHasOneEligibleItem, cartStoreNextStep, cartStoreReCalculateTotal, cartStoreReset, cartStoreResetCartItems, cartStoreResetTabItems, cartStoreUpdateItems, cartStoreUpdateSelectedShippingOption, cartStoreUpdateToErrorState, };
|
|
304
|
+
export { cartStore, cartStoreApplySubtotals, cartStoreCheckItemRestrictions, cartStoreClearCheckoutInterval, cartStoreGetShippingTransitInfo, cartStoreHasOneEligibleItem, cartStoreNextStep, cartStoreReCalculateTotal, cartStoreReset, cartStoreResetCartItems, cartStoreResetTabItems, cartStoreStartCheckoutInterval, cartStoreUpdateItems, cartStoreUpdateSelectedShippingOption, cartStoreUpdateToErrorState, };
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
import { loadScript, } from "@paypal/paypal-js";
|
|
2
|
+
import { createStore } from "@stencil/store";
|
|
3
|
+
import { cartStore, cartStoreClearCheckoutInterval, cartStoreNextStep, } from "./cart";
|
|
4
|
+
import { stripeStoreHandleInventoryCheck } from "./stripe";
|
|
5
|
+
import { translate } from "../translationStore";
|
|
6
|
+
import { zonosStore } from "../zonosStore";
|
|
7
|
+
import { paypalCaptureOrder } from "../../utils/api/paypalCaptureOrder";
|
|
8
|
+
import { paypalCreateOrder } from "../../utils/api/paypalCreateOrder";
|
|
9
|
+
import { isContrastColor } from "../../utils/isContrastColor";
|
|
10
|
+
import { jsonParse } from "../../utils/jsonParse";
|
|
11
|
+
import { log } from "../../utils/logging/log";
|
|
12
|
+
import { logError } from "../../utils/logging/logError";
|
|
13
|
+
import { submitGtag } from "../../utils/submitGtag";
|
|
14
|
+
const { reset: paypalStoreReset, state: paypalStore } = createStore(() => ({
|
|
15
|
+
orderIdCreated: null,
|
|
16
|
+
paypalButtons: [],
|
|
17
|
+
paypalClientId: '',
|
|
18
|
+
paypalErrorMessage: null,
|
|
19
|
+
}));
|
|
20
|
+
const paypalStoreCreaterOrder = async ({ checkoutSessionId, }) => {
|
|
21
|
+
var _a, _b;
|
|
22
|
+
const { errors, json } = await paypalCreateOrder({
|
|
23
|
+
checkoutSessionId,
|
|
24
|
+
});
|
|
25
|
+
const paypalOrderId = (_a = json === null || json === void 0 ? void 0 : json.paypalOrderCreate) === null || _a === void 0 ? void 0 : _a.paypalOrderId;
|
|
26
|
+
if (errors.length || !paypalOrderId) {
|
|
27
|
+
throw new Error(((_b = errors.find(Boolean)) === null || _b === void 0 ? void 0 : _b.message) ||
|
|
28
|
+
'An unexpected error occurred when creating paypal order.');
|
|
29
|
+
}
|
|
30
|
+
return paypalOrderId;
|
|
31
|
+
};
|
|
32
|
+
const paypalStoreCaptureOrder = async ({ checkoutSessionId, paypalMockResponse, }) => {
|
|
33
|
+
var _a, _b;
|
|
34
|
+
const {} = new URL(window.location.href);
|
|
35
|
+
const { errors, json } = await paypalCaptureOrder({
|
|
36
|
+
checkoutSessionId,
|
|
37
|
+
paypalMockResponse,
|
|
38
|
+
});
|
|
39
|
+
const zonosOrderId = (_a = json === null || json === void 0 ? void 0 : json.paypalOrderCapture.order) === null || _a === void 0 ? void 0 : _a.id;
|
|
40
|
+
if (errors.length || !zonosOrderId) {
|
|
41
|
+
throw new Error(((_b = errors.find(Boolean)) === null || _b === void 0 ? void 0 : _b.message) ||
|
|
42
|
+
translate('An unexpected error occurred when processing PayPal order.'));
|
|
43
|
+
}
|
|
44
|
+
return zonosOrderId;
|
|
45
|
+
};
|
|
46
|
+
const paypalErrorHandler = ({ error }) => {
|
|
47
|
+
var _a;
|
|
48
|
+
const parsedResult = jsonParse(error.message);
|
|
49
|
+
const paypalErrorMessage = (_a = parsedResult === null || parsedResult === void 0 ? void 0 : parsedResult.errors.find(Boolean)) === null || _a === void 0 ? void 0 : _a.message;
|
|
50
|
+
const parsedErrorMessage = (paypalErrorMessage === null || paypalErrorMessage === void 0 ? void 0 : paypalErrorMessage.match(/\[(.*?)\] (.*)/i)) || [];
|
|
51
|
+
if (!parsedErrorMessage) {
|
|
52
|
+
paypalStore.paypalErrorMessage = translate('An unexpected error occurred when processing PayPal order.');
|
|
53
|
+
}
|
|
54
|
+
const errorMessage = parsedErrorMessage[2] ||
|
|
55
|
+
translate('An unexpected error occurred when processing PayPal order.');
|
|
56
|
+
// show the error message
|
|
57
|
+
paypalStore.paypalErrorMessage = errorMessage;
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* This function generates the options for the PayPal button component.
|
|
61
|
+
* It first retrieves the primary color from the store and checks if it contrasts with PayPal's gold color.
|
|
62
|
+
* It then returns an object with the createOrder function and the style for the PayPal button.
|
|
63
|
+
* The createOrder function makes a call to the PayPal API to create an order and returns the order ID.
|
|
64
|
+
* The style object sets the border radius, color, and shape of the PayPal button.
|
|
65
|
+
*/
|
|
66
|
+
const paypalButtonOptions = ({ checkoutSessionId, onPaypalFail, onPaypalSessionDone, overrideBorderRaidus, overridePrimaryColor, }) => {
|
|
67
|
+
const colorPrimary = overridePrimaryColor || zonosStore.appearance.colorPrimary;
|
|
68
|
+
// Paypal gold color
|
|
69
|
+
const paypalGoldColorHex = '#ffc33a';
|
|
70
|
+
// check if the paypal gold color is contrast to the background
|
|
71
|
+
const isContrast = isContrastColor({
|
|
72
|
+
backgroundColor1: paypalGoldColorHex,
|
|
73
|
+
backgroundColor2: colorPrimary || '',
|
|
74
|
+
});
|
|
75
|
+
return {
|
|
76
|
+
createOrder: async () => {
|
|
77
|
+
try {
|
|
78
|
+
// reset paypal error banner
|
|
79
|
+
paypalStore.paypalErrorMessage = null;
|
|
80
|
+
// reset inventory check error message
|
|
81
|
+
cartStore.inventoryCheckErrorMessage = null;
|
|
82
|
+
try {
|
|
83
|
+
// check inventory before proceeding to payment
|
|
84
|
+
cartStore.inventoryCheckErrorMessage =
|
|
85
|
+
await stripeStoreHandleInventoryCheck();
|
|
86
|
+
}
|
|
87
|
+
catch (err) {
|
|
88
|
+
// If user provide callback and it throw an exception, default to this message and stop the payment.
|
|
89
|
+
cartStore.inventoryCheckErrorMessage = translate('Unable to check inventory. Please try again.');
|
|
90
|
+
}
|
|
91
|
+
// Don't proceed to payment if there's an error message
|
|
92
|
+
if (cartStore.inventoryCheckErrorMessage) {
|
|
93
|
+
return '';
|
|
94
|
+
}
|
|
95
|
+
const paypalOrderId = await paypalStoreCreaterOrder({
|
|
96
|
+
checkoutSessionId,
|
|
97
|
+
});
|
|
98
|
+
return paypalOrderId;
|
|
99
|
+
}
|
|
100
|
+
catch (err) {
|
|
101
|
+
logError('Failed to create paypal order', err);
|
|
102
|
+
paypalStore.paypalErrorMessage = translate('Failed to create PayPal order. Please try again, or consider using an alternative method.');
|
|
103
|
+
// trigger fail event
|
|
104
|
+
onPaypalFail === null || onPaypalFail === void 0 ? void 0 : onPaypalFail();
|
|
105
|
+
return '';
|
|
106
|
+
}
|
|
107
|
+
},
|
|
108
|
+
onApprove: async (_, _actions) => {
|
|
109
|
+
try {
|
|
110
|
+
// reset paypal error banner
|
|
111
|
+
paypalStore.paypalErrorMessage = null;
|
|
112
|
+
// submit google tag when the form is complete
|
|
113
|
+
submitGtag('zonos-checkout-payment-info');
|
|
114
|
+
const orderId = await paypalStoreCaptureOrder({
|
|
115
|
+
checkoutSessionId,
|
|
116
|
+
paypalMockResponse: window.Zonos._paypalMockResponse,
|
|
117
|
+
});
|
|
118
|
+
paypalStore.orderIdCreated = orderId;
|
|
119
|
+
onPaypalSessionDone === null || onPaypalSessionDone === void 0 ? void 0 : onPaypalSessionDone({ orderId });
|
|
120
|
+
cartStoreNextStep();
|
|
121
|
+
// clear the checkout session timeout timer when purchase is complete
|
|
122
|
+
cartStoreClearCheckoutInterval();
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
logError('==== Failed to capture paypal order', error);
|
|
126
|
+
if (error instanceof Error) {
|
|
127
|
+
return paypalErrorHandler({ error });
|
|
128
|
+
}
|
|
129
|
+
onPaypalFail === null || onPaypalFail === void 0 ? void 0 : onPaypalFail();
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
style: {
|
|
133
|
+
// @ts-ignore
|
|
134
|
+
borderRadius: overrideBorderRaidus === 'SHARP' ? 0 : 10,
|
|
135
|
+
color: isContrast ? 'gold' : 'blue',
|
|
136
|
+
shape: 'rect',
|
|
137
|
+
},
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
const paypalStoreResetButtons = () => {
|
|
141
|
+
if (!paypalStore.paypalButtons.length) {
|
|
142
|
+
// Do nothing if the buttons array is already empty
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
// Close all paypal buttons so we can re-init them
|
|
146
|
+
paypalStore.paypalButtons.forEach(async (button) => {
|
|
147
|
+
await button.close();
|
|
148
|
+
});
|
|
149
|
+
// clean up the buttons
|
|
150
|
+
paypalStore.paypalButtons = [];
|
|
151
|
+
};
|
|
152
|
+
const paypalInitScript = async ({ currency }) => {
|
|
153
|
+
var _a;
|
|
154
|
+
//
|
|
155
|
+
const isPaypalEnabled = !!((_a = zonosStore.checkoutSettings.externalPaymentMethods) === null || _a === void 0 ? void 0 : _a.find(item => item.type === 'PAYPAL' && item.status === 'ENABLED'));
|
|
156
|
+
if (!isPaypalEnabled) {
|
|
157
|
+
log('=== Paypal is disabled for this store', 'warn');
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
const paypalClientId = zonosStore.checkoutSettings.externalServiceTokens.find(item => item.type === 'PAYPAL_CLIENT_ID');
|
|
161
|
+
if (!paypalClientId) {
|
|
162
|
+
log('Fail to load paypal -- missing paypal publishable key', 'warn');
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Paypal environment should be 'production' only when the API is in production environment and the checkout mode is not 'TEST' (sandbox mode)
|
|
167
|
+
*/
|
|
168
|
+
const environment = zonosStore.zonosMode === 'production' &&
|
|
169
|
+
zonosStore.checkoutSettings.mode === 'LIVE'
|
|
170
|
+
? 'production'
|
|
171
|
+
: 'sandbox';
|
|
172
|
+
// send paypal publishable key out to load paypal
|
|
173
|
+
window.Zonos.paypal = await loadScript({
|
|
174
|
+
clientId: paypalClientId.token,
|
|
175
|
+
currency,
|
|
176
|
+
environment,
|
|
177
|
+
});
|
|
178
|
+
log('==== Paypal script loaded');
|
|
179
|
+
};
|
|
180
|
+
const paypalStoreInitButtons = (props) => {
|
|
181
|
+
var _a;
|
|
182
|
+
const paypal = window.Zonos.paypal;
|
|
183
|
+
if (!paypal) {
|
|
184
|
+
log('Paypal is not available');
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
const checkoutSessionId = cartStore.checkoutSessionId;
|
|
188
|
+
if (!checkoutSessionId) {
|
|
189
|
+
log('Paypal is not available due to checkoutSessionId is not available');
|
|
190
|
+
return null;
|
|
191
|
+
}
|
|
192
|
+
log('==== Loading Paypal buttons');
|
|
193
|
+
paypalStoreResetButtons();
|
|
194
|
+
const fundingSources = [(_a = paypal.FUNDING) === null || _a === void 0 ? void 0 : _a.PAYPAL].filter(Boolean);
|
|
195
|
+
paypalStore.paypalButtons = fundingSources
|
|
196
|
+
.map(fundingSource => {
|
|
197
|
+
var _a;
|
|
198
|
+
let button = null;
|
|
199
|
+
try {
|
|
200
|
+
button =
|
|
201
|
+
((_a = paypal.Buttons) === null || _a === void 0 ? void 0 : _a.call(paypal, Object.assign(Object.assign({}, paypalButtonOptions(Object.assign({ checkoutSessionId,
|
|
202
|
+
fundingSource }, props))), { fundingSource }))) || null;
|
|
203
|
+
}
|
|
204
|
+
catch (err) {
|
|
205
|
+
log(`===== Fail to load paypal's "${fundingSource}" button`, 'warn', err);
|
|
206
|
+
}
|
|
207
|
+
if (button === null || button === void 0 ? void 0 : button.isEligible()) {
|
|
208
|
+
log(`==== Paypal button ${fundingSource} loaded`);
|
|
209
|
+
return button;
|
|
210
|
+
}
|
|
211
|
+
return null;
|
|
212
|
+
})
|
|
213
|
+
.filter(Boolean);
|
|
214
|
+
return paypalStore.paypalButtons;
|
|
215
|
+
};
|
|
216
|
+
const paypalStoreHasPaypalEnabled = () => {
|
|
217
|
+
return !!paypalStore.paypalButtons.length;
|
|
218
|
+
};
|
|
219
|
+
export { paypalInitScript, paypalStore, paypalStoreCreaterOrder, paypalStoreHasPaypalEnabled, paypalStoreInitButtons, paypalStoreReset, };
|
|
@@ -15,6 +15,7 @@ import { defaultVariable } from "../../../styles/stripe/defaultVariable";
|
|
|
15
15
|
const { onChange, reset, state: stripeStore, } = createStore(() => ({
|
|
16
16
|
clientSecret: sessionStorage.getItem('zonos--client-secret') || null,
|
|
17
17
|
fetchingLandedCostAbordController: null,
|
|
18
|
+
hasPaymentError: false,
|
|
18
19
|
isFetchingLandedCost: false,
|
|
19
20
|
isFetchingSession: false,
|
|
20
21
|
stripe: null,
|
|
@@ -237,7 +238,7 @@ const stripeStorePrefetchLandedCost = async () => {
|
|
|
237
238
|
stripeStore.isFetchingLandedCost = false;
|
|
238
239
|
}
|
|
239
240
|
};
|
|
240
|
-
const
|
|
241
|
+
const stripeStoreMessageBasedOnStatus = (status) => {
|
|
241
242
|
let messages = [];
|
|
242
243
|
let isError = true;
|
|
243
244
|
// Inspect the PaymentIntent `status` to indicate the status of the payment
|
|
@@ -281,10 +282,21 @@ const getStripeMessageBasedOnStatus = (status) => {
|
|
|
281
282
|
messages,
|
|
282
283
|
};
|
|
283
284
|
};
|
|
285
|
+
/**
|
|
286
|
+
* Handle inventory check and returns error message if the callback provided.
|
|
287
|
+
*/
|
|
288
|
+
const stripeStoreHandleInventoryCheck = async () => {
|
|
289
|
+
const { onInventoryCheck } = zonosStore.checkoutSettings;
|
|
290
|
+
if (typeof onInventoryCheck !== 'function') {
|
|
291
|
+
return null;
|
|
292
|
+
}
|
|
293
|
+
const message = await onInventoryCheck({ items: cartStore.items });
|
|
294
|
+
return message;
|
|
295
|
+
};
|
|
284
296
|
const stripeStoreRetrievePayment = async ({ clientSecret: _clientSecret, storybookForceStatus, }) => {
|
|
285
297
|
if (storybookForceStatus) {
|
|
286
298
|
// return status right away if we are in storybook mode
|
|
287
|
-
const { isError, messages } =
|
|
299
|
+
const { isError, messages } = stripeStoreMessageBasedOnStatus(storybookForceStatus);
|
|
288
300
|
return { error: isError, messages };
|
|
289
301
|
}
|
|
290
302
|
const clientSecret = _clientSecret || stripeStore.clientSecret;
|
|
@@ -294,7 +306,7 @@ const stripeStoreRetrievePayment = async ({ clientSecret: _clientSecret, storybo
|
|
|
294
306
|
}
|
|
295
307
|
const { paymentIntent } = await stripeStore.stripe.retrievePaymentIntent(clientSecret);
|
|
296
308
|
const status = paymentIntent === null || paymentIntent === void 0 ? void 0 : paymentIntent.status;
|
|
297
|
-
const { isError, messages } =
|
|
309
|
+
const { isError, messages } = stripeStoreMessageBasedOnStatus(status);
|
|
298
310
|
return {
|
|
299
311
|
error: isError,
|
|
300
312
|
messages,
|
|
@@ -522,4 +534,4 @@ onChange('clientSecret', clientSecret => {
|
|
|
522
534
|
sessionStorage.removeItem('zonos--client-secret');
|
|
523
535
|
}
|
|
524
536
|
});
|
|
525
|
-
export { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreInitCheckoutSession, stripeStorePrefetchLandedCost, stripeStoreReset, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, };
|
|
537
|
+
export { initStripeElements, stripeStore, stripeStoreCleanupDomesticShippingSession, stripeStoreConfirmPayment, stripeStoreGetDomesticShippingSession, stripeStoreHandleInventoryCheck, stripeStoreInitCheckoutSession, stripeStoreMessageBasedOnStatus, stripeStorePrefetchLandedCost, stripeStoreReset, stripeStoreRetrievePayment, stripeStoreSaveDomesticShippingSession, stripeStoreTranslateAddressToLatin, stripeStoreUpdateCheckoutSession, };
|
|
@@ -11,6 +11,9 @@ export const stringsArabic = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'سطر العنوان 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'حدث خطأ غير متوقع عند معالجة طلب PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'هل أنت متأكد؟',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsArabic = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'التوصيل المتوقع',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'فشل في إنشاء طلب PayPal. يرجى المحاولة مرة أخرى، أو النظر في استخدام طريقة بديلة.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'فشل',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsArabic = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'اسم',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'لم يتم العثور على دول',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'لم يتم تحديد طريقة الشحن',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsArabic = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'انقر لمعرفة المزيد',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'أو',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'عناصر مقيدة',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsBase = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Address line 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'An unexpected error occurred when processing PayPal order.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Are you sure?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsBase = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Expected delivery',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Failed to create PayPal order. Please try again, or consider using an alternative method.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Failure',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsBase = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Name',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'No countries found',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'No shipping method selected',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsBase = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'click to learn more',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'or',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'restricted items',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsChinese = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: '地址行2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: '处理PayPal订单时发生意外错误。',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: '你确定吗?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsChinese = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: '预计送达',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: '创建PayPal订单失败。请重试,或考虑使用其他方法。',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: '失败',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsChinese = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: '名称',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: '未找到国家',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: '未选择运输方式',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsChinese = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: '点击了解更多',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: '或',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: '限制物品',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsDanish = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Adresse linje 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Der opstod en uventet fejl ved behandling af PayPal-ordren.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Er du sikker?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsDanish = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Forventet levering',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Kunne ikke oprette PayPal-ordre. Prøv venligst igen, eller overvej at bruge en alternativ metode.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Fiasko',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsDanish = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Navn',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Ingen lande fundet',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Ingen leveringsmetode valgt',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsDanish = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'klik for at lære mere',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'eller',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'begrænsede genstande',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsDutch = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Adreslijn 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Er is een onverwachte fout opgetreden bij het verwerken van de PayPal-bestelling.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Weet je het zeker?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsDutch = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Verwachte levering',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Het aanmaken van de PayPal-bestelling is mislukt. Probeer het opnieuw of overweeg een alternatieve methode te gebruiken.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Mislukking',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsDutch = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Naam',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Geen landen gevonden',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Geen verzendmethode geselecteerd',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsDutch = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'klik om meer te leren',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'of',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'beperkte items',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsFrench = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Adresse ligne 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: "Une erreur inattendue s'est produite lors du traitement de la commande PayPal.",
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Es-tu sûr?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsFrench = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Livraison prévue',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: "Échec de la création de la commande PayPal. Veuillez réessayer ou envisager d'utiliser une méthode alternative.",
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Échec',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsFrench = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Nom',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Aucun pays trouvé',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Aucune méthode de livraison sélectionnée',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsFrench = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'cliquez pour en savoir plus',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'ou',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'articles restreints',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsGerman = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Adresszeile 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Beim Verarbeiten der PayPal-Bestellung ist ein unerwarteter Fehler aufgetreten.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Bist du sicher?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsGerman = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Voraussichtliche Lieferung',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Fehler beim Erstellen der PayPal-Bestellung. Bitte versuchen Sie es erneut oder erwägen Sie die Verwendung einer alternativen Methode.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Misserfolg',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsGerman = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Name',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Keine Länder gefunden',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Keine Versandart ausgewählt',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsGerman = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'Klicken, um mehr zu erfahren',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'oder',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'eingeschränkte Artikel',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsHebrew = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'כתובת שורה 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'אירעה שגיאה בלתי צפויה בעת עיבוד הזמנת PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'אתה בטוח?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsHebrew = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'אספקה צפויה',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'נכשל ביצירת הזמנת PayPal. אנא נסה שוב, או שקול להשתמש בשיטה חלופית.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'כישלון',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsHebrew = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'שם',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'לא נמצאו מדינות',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'לא נבחרה שיטת משלוח',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsHebrew = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'לחץ למידע נוסף',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'או',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'פריטים מוגבלים',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsIndonesian = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Baris alamat 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Terjadi kesalahan tak terduga saat memproses pesanan PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Apakah Anda yakin?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsIndonesian = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Perkiraan pengiriman',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Gagal membuat pesanan PayPal. Silakan coba lagi, atau pertimbangkan menggunakan metode alternatif.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Kegagalan',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsIndonesian = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Nama',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Tidak ada negara yang ditemukan',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Tidak ada metode pengiriman yang dipilih',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsIndonesian = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'klik untuk belajar lebih lanjut',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'atau',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'barang terbatas',
|
|
322
334
|
},
|