@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
|
@@ -11,6 +11,9 @@ export const stringsItalian = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Indirizzo linea 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: "Si è verificato un errore imprevisto durante l'elaborazione dell'ordine PayPal.",
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Sei sicuro?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsItalian = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Consegna prevista',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: "Impossibile creare l'ordine PayPal. Per favore, riprova o considera l'uso di un metodo alternativo.",
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Fallimento',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsItalian = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Nome',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Nessun paese trovato',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Nessun metodo di spedizione selezionato',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsItalian = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'clicca per saperne di più',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'o',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'articoli limitati',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsJapanese = {
|
|
|
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 stringsJapanese = {
|
|
|
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 stringsJapanese = {
|
|
|
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 stringsJapanese = {
|
|
|
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 stringsKorean = {
|
|
|
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 stringsKorean = {
|
|
|
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 stringsKorean = {
|
|
|
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 stringsKorean = {
|
|
|
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 stringsNorwegian = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Adresselinje 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'En uventet feil oppstod ved behandling av PayPal-bestillingen.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Er du sikker?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsNorwegian = {
|
|
|
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 opprette PayPal-bestilling. Vennligst prøv igjen, eller vurder å bruke en alternativ metode.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Feil',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsNorwegian = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Navn',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Ingen land funnet',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Ingen fraktmetode valgt',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsNorwegian = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'klikk for å lære mer',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'eller',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'begrensede elementer',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsPolish = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Linia adresowa 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Wystąpił nieoczekiwany błąd podczas przetwarzania zamówienia PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Jesteś pewien?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsPolish = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Przewidywana dostawa',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Nie udało się utworzyć zamówienia PayPal. Proszę spróbować ponownie lub rozważyć użycie innej metody.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Niepowodzenie',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsPolish = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Nazwa',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Nie znaleziono krajów',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Nie wybrano metody wysyłki',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsPolish = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'kliknij, aby dowiedzieć się więcej',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'lub',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'przedmioty ograniczone',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsPortuguese = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Endereço linha 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Ocorreu um erro inesperado ao processar o pedido do PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Você tem certeza?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsPortuguese = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Entrega prevista',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Falha ao criar o pedido do PayPal. Por favor, tente novamente ou considere usar um método alternativo.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Falha',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsPortuguese = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Nome',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Nenhum país encontrado',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Nenhum método de envio selecionado',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsPortuguese = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'clique para saber mais',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'ou',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'itens restritos',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsRussian = {
|
|
|
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 stringsRussian = {
|
|
|
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 stringsRussian = {
|
|
|
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 stringsRussian = {
|
|
|
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 stringsSpanish = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Línea de dirección 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Se produjo un error inesperado al procesar el pedido de PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: '¿Estás seguro?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsSpanish = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Entrega esperada',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'No se pudo crear el pedido de PayPal. Por favor, inténtelo de nuevo o considere usar un método alternativo.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Fracaso',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsSpanish = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Nombre',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'No se encontraron países',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'No se ha seleccionado un método de envío',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsSpanish = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'haga clic para obtener más información',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'o',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'artículos restringidos',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsSwedish = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Adressrad 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Ett oväntat fel inträffade vid bearbetning av PayPal-beställningen.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Är du säker?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsSwedish = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Beräknad leverans',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Misslyckades med att skapa PayPal-beställning. Försök igen, eller överväg att använda en alternativ metod.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Misslyckande',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsSwedish = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Namn',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Inga länder hittades',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Ingen fraktmetod vald',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsSwedish = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'klicka för att lära dig mer',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'eller',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'begränsade föremål',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsTurkish = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Adres satırı 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'PayPal siparişi işlenirken beklenmedik bir hata oluştu.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Emin misiniz?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsTurkish = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Beklenen teslimat',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'PayPal siparişi oluşturulamadı. Lütfen tekrar deneyin veya alternatif bir yöntem kullanmayı düşünün.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Başarısızlık',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsTurkish = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Ad',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Ülke bulunamadı',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Kargo yöntemi seçilmedi',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsTurkish = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'daha fazla bilgi için tıklayın',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'veya',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'kısıtlı öğeler',
|
|
322
334
|
},
|
|
@@ -11,6 +11,9 @@ export const stringsVietnamese = {
|
|
|
11
11
|
'Address line 2': {
|
|
12
12
|
value: 'Dòng địa chỉ 2',
|
|
13
13
|
},
|
|
14
|
+
'An unexpected error occurred when processing PayPal order.': {
|
|
15
|
+
value: 'Đã xảy ra lỗi bất ngờ khi xử lý đơn hàng PayPal.',
|
|
16
|
+
},
|
|
14
17
|
'Are you sure?': {
|
|
15
18
|
value: 'Bạn có chắc không?',
|
|
16
19
|
},
|
|
@@ -92,6 +95,9 @@ export const stringsVietnamese = {
|
|
|
92
95
|
'Expected delivery': {
|
|
93
96
|
value: 'Dự kiến giao hàng',
|
|
94
97
|
},
|
|
98
|
+
'Failed to create PayPal order. Please try again, or consider using an alternative method.': {
|
|
99
|
+
value: 'Không thể tạo đơn hàng PayPal. Vui lòng thử lại hoặc cân nhắc sử dụng phương pháp thay thế.',
|
|
100
|
+
},
|
|
95
101
|
Failure: {
|
|
96
102
|
value: 'Thất bại',
|
|
97
103
|
},
|
|
@@ -125,6 +131,9 @@ export const stringsVietnamese = {
|
|
|
125
131
|
Name: {
|
|
126
132
|
value: 'Tên',
|
|
127
133
|
},
|
|
134
|
+
'No countries found': {
|
|
135
|
+
value: 'Không tìm thấy quốc gia nào',
|
|
136
|
+
},
|
|
128
137
|
'No shipping method selected': {
|
|
129
138
|
value: 'Chưa chọn phương thức vận chuyển',
|
|
130
139
|
},
|
|
@@ -317,6 +326,9 @@ export const stringsVietnamese = {
|
|
|
317
326
|
'click to learn more': {
|
|
318
327
|
value: 'nhấp để tìm hiểu thêm',
|
|
319
328
|
},
|
|
329
|
+
or: {
|
|
330
|
+
value: 'hoặc',
|
|
331
|
+
},
|
|
320
332
|
'restricted items': {
|
|
321
333
|
value: 'mặt hàng bị hạn chế',
|
|
322
334
|
},
|
|
@@ -12,6 +12,9 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
12
12
|
checkoutSettings: {
|
|
13
13
|
allowedCharacterSets: 'ALL',
|
|
14
14
|
analyticsProviders: [],
|
|
15
|
+
externalPaymentMethods: [],
|
|
16
|
+
externalServiceTokens: [],
|
|
17
|
+
mode: 'TEST',
|
|
15
18
|
orderNotifications: {
|
|
16
19
|
abandonedCart: {
|
|
17
20
|
delay: 0,
|
|
@@ -75,6 +78,7 @@ const { dispose: zonosStoreDispose, reset, state: zonosStore, } = createStore(()
|
|
|
75
78
|
// toggle to know if the config has been loaded with graphql
|
|
76
79
|
stripeApiKey: '',
|
|
77
80
|
zonosApiKey: '',
|
|
81
|
+
zonosMode: null,
|
|
78
82
|
}));
|
|
79
83
|
let savedZonosSettings = null;
|
|
80
84
|
/**
|
|
@@ -135,7 +135,7 @@ export class ZonosAddress {
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
138
|
-
return (h(Host, { key: '
|
|
138
|
+
return (h(Host, { key: '2cecb49ed22bd0d5ce22c4f2110b37ecf7935cca', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '101635210ab6cb3b9a44b47eec101187d1c3a4ac', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '049f2b86986471d45bd413813307ec489d9f1993', class: "zonos--address-component" })));
|
|
139
139
|
}
|
|
140
140
|
static get is() { return "zonos-address"; }
|
|
141
141
|
static get encapsulation() { return "scoped"; }
|
|
@@ -195,7 +195,7 @@ export class ZonosAddress {
|
|
|
195
195
|
"ContactOption": {
|
|
196
196
|
"location": "import",
|
|
197
197
|
"path": "@stripe/stripe-js",
|
|
198
|
-
"id": ""
|
|
198
|
+
"id": "node_modules::ContactOption"
|
|
199
199
|
}
|
|
200
200
|
}
|
|
201
201
|
},
|
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js
CHANGED
|
@@ -42,7 +42,7 @@ export class ZonosLinkAuthentication {
|
|
|
42
42
|
}
|
|
43
43
|
render() {
|
|
44
44
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
45
|
-
return (h(Host, { key: '
|
|
45
|
+
return (h(Host, { key: 'f0b26abf99ef99c6665dabdddebc9ff086b6816c', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '898dbdffac06fe2a68af90610a22044bb72391ce', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'e2ec9abb0cf76a39a1262e1366e375dd898450cd', class: "zonos--link-authentication-component" })));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "zonos-link-authentication"; }
|
|
48
48
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2
1
|
import { h, Host } from "@stencil/core";
|
|
3
2
|
import { stripeStore } from "../../store/checkout/stripe";
|
|
4
3
|
import { logError } from "../../utils/logging/logError";
|
|
@@ -18,7 +17,7 @@ export class ZonosPayment {
|
|
|
18
17
|
// Create and mount the Authentication Element in ${type} mode
|
|
19
18
|
const paymentElement = stripeStore.stripePaymentElement ||
|
|
20
19
|
this.stripeElements.create('payment', {
|
|
21
|
-
layout: '
|
|
20
|
+
layout: 'accordion',
|
|
22
21
|
});
|
|
23
22
|
const paymentElementContainer = this.el.querySelector('.zonos--payment-component');
|
|
24
23
|
if (!paymentElementContainer) {
|
|
@@ -37,7 +36,7 @@ export class ZonosPayment {
|
|
|
37
36
|
}
|
|
38
37
|
render() {
|
|
39
38
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
40
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'ab601d9a0cc6fe2fee19f45d6321dcc81b418cff', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '27857c99c59e4913fa403ef5b23b5b7d7f32bd45', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '329b5a5617f0c5942b209df1ccf3bfcb4ddabb0c', class: "zonos--payment-component" }), h("div", { key: '7abb08922e9f607314713fc9fa762a3bb8a35b13', class: "zonos--payment-paypal-container" })));
|
|
41
40
|
}
|
|
42
41
|
static get is() { return "zonos-payment"; }
|
|
43
42
|
static get encapsulation() { return "scoped"; }
|
|
@@ -2,10 +2,10 @@ import { handleFetch } from "../handleFetch";
|
|
|
2
2
|
import { logError } from "../logging/logError";
|
|
3
3
|
export const getZonosSettings = async () => {
|
|
4
4
|
const url = `${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/zonos-settings`;
|
|
5
|
-
const { errors, json } = await handleFetch(url);
|
|
5
|
+
const { errors, json, zonosMode } = await handleFetch(url);
|
|
6
6
|
if (errors.length) {
|
|
7
7
|
logError(`Error occurred when getting zonos settings. If this is not an unauthorized error, it will use user settings or default settings`);
|
|
8
|
-
return { errors, json: null };
|
|
8
|
+
return { errors, json: null, zonosMode };
|
|
9
9
|
}
|
|
10
|
-
return { errors: [], json };
|
|
10
|
+
return { errors: [], json, zonosMode };
|
|
11
11
|
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { handleFetch } from "../handleFetch";
|
|
2
|
+
export const paypalCaptureOrder = async ({ checkoutSessionId, paypalMockResponse, }) => {
|
|
3
|
+
const { errors, json } = await handleFetch(`${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/capture-paypal-order`, {
|
|
4
|
+
body: { checkoutSessionId, paypalMockResponse },
|
|
5
|
+
method: 'POST',
|
|
6
|
+
});
|
|
7
|
+
return { errors, json };
|
|
8
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { handleFetch } from "../handleFetch";
|
|
2
|
+
export const paypalCreateOrder = async ({ checkoutSessionId, }) => {
|
|
3
|
+
const { errors, json } = await handleFetch(`${process.env.NEXT_PUBLIC_ZONOS_ROUTE_URL}/api/zonos-elements/create-paypal-order`, {
|
|
4
|
+
body: { checkoutSessionId },
|
|
5
|
+
method: 'POST',
|
|
6
|
+
});
|
|
7
|
+
return { errors, json };
|
|
8
|
+
};
|
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import tinycolor from "tinycolor2";
|
|
2
|
+
import { isContrastColor } from "./isContrastColor";
|
|
2
3
|
import { isDarkColor } from "./isDarkColor";
|
|
3
4
|
export const getContrastColor = ({ backgroundColor, color, }) => {
|
|
4
5
|
// get readibility of the color
|
|
5
|
-
const
|
|
6
|
-
|
|
6
|
+
const isContrastEnough = isContrastColor({
|
|
7
|
+
backgroundColor1: backgroundColor,
|
|
8
|
+
backgroundColor2: color,
|
|
9
|
+
});
|
|
10
|
+
if (isContrastEnough) {
|
|
7
11
|
// no need to change the color if it's already contrast enough
|
|
8
12
|
return color;
|
|
9
13
|
}
|
|
@@ -37,6 +37,7 @@ const handleRequest = async (url, options) => {
|
|
|
37
37
|
errors: [{ message: e.message, type: 'unknown' }],
|
|
38
38
|
json: null,
|
|
39
39
|
response: null,
|
|
40
|
+
zonosMode: null,
|
|
40
41
|
};
|
|
41
42
|
}
|
|
42
43
|
const message = 'Fail to fetch';
|
|
@@ -44,6 +45,7 @@ const handleRequest = async (url, options) => {
|
|
|
44
45
|
errors: [{ message, type: 'unknown' }],
|
|
45
46
|
json: null,
|
|
46
47
|
response: null,
|
|
48
|
+
zonosMode: null,
|
|
47
49
|
};
|
|
48
50
|
}
|
|
49
51
|
const zonosMode = response.headers.get('Zonos-Mode');
|
|
@@ -64,6 +66,7 @@ const handleRequest = async (url, options) => {
|
|
|
64
66
|
errors: [],
|
|
65
67
|
json: data,
|
|
66
68
|
response,
|
|
69
|
+
zonosMode,
|
|
67
70
|
};
|
|
68
71
|
}
|
|
69
72
|
const status = response.status.toString();
|
|
@@ -74,9 +77,10 @@ const handleRequest = async (url, options) => {
|
|
|
74
77
|
});
|
|
75
78
|
const message = JSON.stringify(data);
|
|
76
79
|
return {
|
|
77
|
-
errors: [{ message
|
|
80
|
+
errors: [{ message, type: status }],
|
|
78
81
|
json: null,
|
|
79
82
|
response,
|
|
83
|
+
zonosMode,
|
|
80
84
|
};
|
|
81
85
|
}
|
|
82
86
|
catch (e) {
|
|
@@ -85,6 +89,7 @@ const handleRequest = async (url, options) => {
|
|
|
85
89
|
errors: [{ message: `${status}: ${message}`, type: status }],
|
|
86
90
|
json: null,
|
|
87
91
|
response: null,
|
|
92
|
+
zonosMode,
|
|
88
93
|
};
|
|
89
94
|
}
|
|
90
95
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import tinycolor from "tinycolor2";
|
|
2
|
+
export const isContrastColor = ({ backgroundColor1, backgroundColor2, }) => {
|
|
3
|
+
// get readibility of the color
|
|
4
|
+
const colorReadibilityValue = tinycolor.readability(backgroundColor1, backgroundColor2);
|
|
5
|
+
// If the readibility is less than 2.5, then we need to use different color
|
|
6
|
+
return colorReadibilityValue > 2.5;
|
|
7
|
+
};
|
|
@@ -33,16 +33,12 @@ export const formattedUrl = ({ branchName, inCI: _inCI, inVercel: _inVercel, isV
|
|
|
33
33
|
// local host environment, no need to format url
|
|
34
34
|
return `https://${domainOnlyUrl}`;
|
|
35
35
|
}
|
|
36
|
-
const isProdBranch = branchName && ['main'
|
|
36
|
+
const isProdBranch = branchName && ['main'].includes(branchName);
|
|
37
37
|
const isServerless =
|
|
38
38
|
// url: route.js.zonos.com
|
|
39
39
|
domainOnlyUrl.includes('route.js') ||
|
|
40
40
|
// url: zonos-elements-serverless-git-something
|
|
41
41
|
domainOnlyUrl.includes('serverless-git');
|
|
42
|
-
if (branchName === 'qa' && isServerless) {
|
|
43
|
-
// qa branch for the API is not versioned, should always has alpha prefix
|
|
44
|
-
return `https://alpha.${domainOnlyUrl}`;
|
|
45
|
-
}
|
|
46
42
|
const isTest =
|
|
47
43
|
// url: test.js.zonos.com
|
|
48
44
|
domainOnlyUrl.includes('test.') ||
|
|
@@ -50,6 +46,9 @@ export const formattedUrl = ({ branchName, inCI: _inCI, inVercel: _inVercel, isV
|
|
|
50
46
|
domainOnlyUrl.includes('test-git') ||
|
|
51
47
|
// url: something.preview.js.zonos.com (this is only applicable on preview deployment of `zonos-elements` and `zonos-elements-test`)
|
|
52
48
|
domainOnlyUrl.includes('preview.js.zonos.com');
|
|
49
|
+
if (isTest && isProdBranch) {
|
|
50
|
+
return `https://${domainOnlyUrl}`;
|
|
51
|
+
}
|
|
53
52
|
// always use vercel url if in vercel env, non-production branch (not qa or main branch) or the domain using is a test url
|
|
54
53
|
if ((_isVercelPreview && !isProdBranch) ||
|
|
55
54
|
isTest ||
|
|
@@ -8,6 +8,10 @@ export const getZonosQaUrl = () => {
|
|
|
8
8
|
return null;
|
|
9
9
|
}
|
|
10
10
|
const qaUrl = extractZonosQaUrl(window.location.href);
|
|
11
|
+
// when local demo app is running, it needs to use the local dev script unless the qaUrl is set
|
|
12
|
+
if (!qaUrl && window.location.hostname === 'dev.demo.elements.zonos.com') {
|
|
13
|
+
return 'https://dev.elements.zonos.com';
|
|
14
|
+
}
|
|
11
15
|
if (!qaUrl) {
|
|
12
16
|
return null;
|
|
13
17
|
}
|