@zonos/elements 1.3.80 → 1.3.82
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/{CheckoutConfig-2fef694e.js → CheckoutConfig-850071ae.js} +1 -1
- package/dist/cjs/{cart-977c9d4c.js → cart-ba540c8e.js} +353 -69
- package/dist/cjs/{createCustomEvent-2b19361e.js → createCustomEvent-1fd24ad8.js} +2 -4
- package/dist/cjs/{handleFetch-661a8225.js → handleFetch-45e76490.js} +29 -1
- package/dist/cjs/index.cjs.js +9 -9
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-3008c89e.js → paypal-6bbe55a7.js} +2 -2
- package/dist/cjs/zonos-address_8.cjs.entry.js +12 -12
- package/dist/cjs/zonos-badge.cjs.entry.js +44 -0
- package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
- package/dist/cjs/zonos-card.cjs.entry.js +4 -4
- package/dist/cjs/{zonos-badge_13.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +55 -70
- package/dist/cjs/zonos-checkout.cjs.entry.js +18 -6
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
- package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -6
- package/dist/cjs/zonos-link.cjs.entry.js +1 -1
- package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
- package/dist/cjs/zonos-notification_3.cjs.entry.js +5 -5
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +10 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +73 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +5 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +15 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +8 -9
- package/dist/collection/components/common/zonos-badge/assets/RemoveLineIcon.svg +3 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.css +3 -0
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +43 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +8 -7
- package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
- package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
- package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
- 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.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
- package/dist/collection/components/main/zonos-controller.js +1 -1
- package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +17 -1
- package/dist/collection/components/store/checkout/stripe.js +120 -66
- package/dist/collection/components/store/hello/localization.js +2 -3
- package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
- package/dist/collection/components/store/translationStore/strings.base.js +9 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
- package/dist/collection/components/store/translationStore/strings.french.js +9 -0
- package/dist/collection/components/store/translationStore/strings.german.js +9 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/prepCalculateLandedCost.js +22 -0
- package/dist/collection/components/utils/api/trackConversionEvent.js +0 -2
- package/dist/collection/components/utils/api/triggerBuildLandedCost.js +1 -0
- package/dist/collection/components/utils/handleFetch.js +1 -0
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +1 -1
- package/dist/collection/components/utils/logging/log.js +26 -1
- package/dist/collection/components/utils/logging/sendErrorLog.js +2 -0
- package/dist/esm/{CheckoutConfig-c7954c2a.js → CheckoutConfig-c0ec120d.js} +1 -1
- package/dist/esm/{cart-414322dc.js → cart-7df78f9f.js} +351 -70
- package/dist/esm/{createCustomEvent-fcd6d294.js → createCustomEvent-fcec608e.js} +2 -4
- package/dist/esm/{handleFetch-80ecfb91.js → handleFetch-0133265e.js} +29 -2
- package/dist/esm/index.js +10 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-3fecd52f.js → paypal-a27aad03.js} +2 -2
- package/dist/esm/zonos-address_8.entry.js +12 -12
- package/dist/esm/zonos-badge.entry.js +40 -0
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card.entry.js +4 -4
- package/dist/esm/{zonos-badge_13.entry.js → zonos-cart-items_12.entry.js} +57 -71
- package/dist/esm/zonos-checkout.entry.js +18 -6
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +3 -3
- package/dist/esm/zonos-country-flag.entry.js +2 -2
- package/dist/esm/zonos-country-select_4.entry.js +10 -10
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +6 -6
- package/dist/esm/zonos-hello.entry.js +2 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +6 -6
- package/dist/esm/zonos-link.entry.js +1 -1
- package/dist/esm/zonos-logo.entry.js +2 -2
- package/dist/esm/zonos-notification_3.entry.js +5 -5
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/{CheckoutConfig-c7954c2a.js → CheckoutConfig-c0ec120d.js} +1 -1
- package/dist/esm-es5/cart-7df78f9f.js +1 -0
- package/dist/esm-es5/{createCustomEvent-fcd6d294.js → createCustomEvent-fcec608e.js} +1 -1
- package/dist/esm-es5/handleFetch-0133265e.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/{paypal-3fecd52f.js → paypal-a27aad03.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.entry.js +1 -0
- 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 -0
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-component.entry.js +1 -1
- package/dist/esm-es5/zonos-controller.entry.js +1 -1
- package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
- package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
- package/dist/esm-es5/zonos-elements.js +1 -1
- package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-input.entry.js +1 -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 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.d.ts +45 -0
- 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-cart-subtotal/zonos-cart-subtotal.d.ts +12 -0
- package/dist/types/components/common/zonos-badge/zonos-badge.d.ts +9 -0
- package/dist/types/components/store/checkout/cart.d.ts +8 -1
- package/dist/types/components/store/checkout/stripe.d.ts +12 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +1 -0
- package/dist/types/components/utils/checkout/sortServiceLevelOptions.d.ts +3 -2
- package/dist/types/components/utils/logging/log.d.ts +2 -1
- package/dist/types/components.d.ts +34 -0
- package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +2 -0
- package/dist/types/types/generated/graphql.internal.types.d.ts +12 -0
- package/dist/types/types/generated/graphql.internal.types.ts +9 -0
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-0290df9c.entry.js → p-112a969c.entry.js} +1 -1
- package/dist/zonos-elements/{p-5170cefb.system.js → p-15651b06.system.js} +1 -1
- package/dist/zonos-elements/p-197c5707.system.js +1 -0
- package/dist/zonos-elements/p-1a92ff9a.system.entry.js +1 -0
- package/dist/zonos-elements/p-2024313c.js +1 -0
- package/dist/zonos-elements/{p-1e4f7997.system.entry.js → p-22e81fee.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f8dace42.system.entry.js → p-270cc182.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1047233d.entry.js → p-2c5e2163.entry.js} +1 -1
- package/dist/zonos-elements/{p-ced3aa4f.system.entry.js → p-2d2edb5a.system.entry.js} +1 -1
- package/dist/zonos-elements/p-2d2ff962.entry.js +1 -0
- package/dist/zonos-elements/{p-2a47d2cc.system.entry.js → p-38886017.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-cce51fa5.system.entry.js → p-4097a25b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-41f42a5c.entry.js → p-42636c5a.entry.js} +1 -1
- package/dist/zonos-elements/{p-bbabc829.system.entry.js → p-43e2de45.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-2d466263.system.js → p-4683797b.system.js} +1 -1
- package/dist/zonos-elements/{p-86bfda32.system.entry.js → p-4e06a2bb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-25633055.entry.js → p-58832515.entry.js} +1 -1
- package/dist/zonos-elements/{p-e68941ce.system.entry.js → p-59806a8e.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-19fc5e11.system.entry.js → p-5d186fc7.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0a1db77d.system.entry.js → p-5d4bde9c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-f3fc05a8.entry.js → p-6a5d714a.entry.js} +1 -1
- package/dist/zonos-elements/{p-fca6f444.entry.js → p-6a83b682.entry.js} +1 -1
- package/dist/zonos-elements/p-85600e22.system.entry.js +1 -0
- package/dist/zonos-elements/{p-81cdd0d5.system.js → p-8c0ff373.system.js} +1 -1
- package/dist/zonos-elements/p-8dd38974.entry.js +1 -0
- package/dist/zonos-elements/p-8fd6ae63.js +1 -0
- package/dist/zonos-elements/{p-9c02a170.system.js → p-957b1c1b.system.js} +1 -1
- package/dist/zonos-elements/{p-7be7bd28.entry.js → p-997c8f07.entry.js} +1 -1
- package/dist/zonos-elements/{p-982aa677.entry.js → p-a4cdd4f2.entry.js} +1 -1
- package/dist/zonos-elements/p-aa899bf7.entry.js +1 -0
- package/dist/zonos-elements/{p-c2920074.js → p-acabfc47.js} +1 -1
- package/dist/zonos-elements/p-ad7ce197.js +1 -0
- package/dist/zonos-elements/{p-a3e2592b.system.entry.js → p-ae7526a2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-6de38759.entry.js → p-afad2fae.entry.js} +1 -1
- package/dist/zonos-elements/{p-166b3181.entry.js → p-b09c3702.entry.js} +1 -1
- package/dist/zonos-elements/{p-6b3fd741.js → p-b8e85bf5.js} +1 -1
- package/dist/zonos-elements/{p-72f0641d.entry.js → p-bf84416a.entry.js} +1 -1
- package/dist/zonos-elements/{p-a033685e.system.entry.js → p-c2b7b670.system.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-c1400636.entry.js → p-cd17565d.entry.js} +1 -1
- package/dist/zonos-elements/{p-3d01ac9a.entry.js → p-cfd53396.entry.js} +1 -1
- package/dist/zonos-elements/p-cffe7cc8.system.entry.js +1 -0
- package/dist/zonos-elements/{p-f0d6f027.system.entry.js → p-d48f3bd3.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ba05f1d6.system.entry.js → p-d621f462.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4032de50.entry.js → p-df83e30b.entry.js} +1 -1
- package/dist/zonos-elements/p-e7eb0a92.system.js +1 -0
- package/dist/zonos-elements/{p-f4765417.entry.js → p-e93b511f.entry.js} +1 -1
- package/dist/zonos-elements/{p-747eed39.entry.js → p-ea68ee1f.entry.js} +1 -1
- package/dist/zonos-elements/{p-de93cc65.system.entry.js → p-f68c38d8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d56f87ab.system.entry.js → p-f7bbdd0c.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-414322dc.js +0 -1
- package/dist/esm-es5/handleFetch-80ecfb91.js +0 -1
- package/dist/esm-es5/zonos-badge_13.entry.js +0 -1
- package/dist/zonos-elements/p-0f640802.system.js +0 -1
- package/dist/zonos-elements/p-2ec2e9d3.js +0 -1
- package/dist/zonos-elements/p-502d5e52.system.entry.js +0 -1
- package/dist/zonos-elements/p-75fd8895.js +0 -1
- package/dist/zonos-elements/p-a725574a.entry.js +0 -1
- package/dist/zonos-elements/p-acbec292.system.entry.js +0 -1
- package/dist/zonos-elements/p-c4957e35.system.js +0 -1
- package/dist/zonos-elements/p-d5818f0a.js +0 -1
- package/dist/zonos-elements/p-e6ec9f12.entry.js +0 -1
|
@@ -8,6 +8,9 @@ export const stringsPolish = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Powyżej progu minimis dla',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Dodaj kod promocyjny',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Adres',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsPolish = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Wystąpił nieoczekiwany błąd podczas przetwarzania zamówienia PayPal.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Zastosuj',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Jesteś pewien?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsPolish = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Ukryj',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Nieprawidłowy kod promocyjny',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Kontynuuj zakupy',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsPortuguese = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Acima do limite de isenção para',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Adicionar código promocional',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Endereço',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsPortuguese = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Ocorreu um erro inesperado ao processar o pedido do PayPal.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Aplicar',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Você tem certeza?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsPortuguese = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Esconder',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Código promocional inválido',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Continuar comprando',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsRussian = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Выше минимального порога для',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Добавить промокод',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Адрес',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsRussian = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Произошла непредвиденная ошибка при обработке заказа PayPal.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Применить',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Вы уверены?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsRussian = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Скрыть',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Недействительный промокод',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Продолжить покупки',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsSpanish = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Por encima del umbral mínimo para',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Agregar código promocional',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Dirección',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsSpanish = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Se produjo un error inesperado al procesar el pedido de PayPal.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Aplicar',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: '¿Estás seguro?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsSpanish = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Ocultar',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Código promocional no válido',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Seguir comprando',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsSwedish = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Över minimibeloppet för',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Lägg till kampanjkod',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Adress',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsSwedish = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Ett oväntat fel inträffade vid bearbetning av PayPal-beställningen.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Tillämpa',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Är du säker?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsSwedish = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Dölj',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Ogiltig kampanjkod',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Fortsätt handla',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsTurkish = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Minimum sınırın üzerinde',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Promosyon kodu ekle',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Adres',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsTurkish = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'PayPal siparişi işlenirken beklenmedik bir hata oluştu.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Uygula',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Emin misiniz?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsTurkish = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Sakla',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Geçersiz promosyon kodu',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Alışverişe devam et',
|
|
127
136
|
},
|
|
@@ -8,6 +8,9 @@ export const stringsVietnamese = {
|
|
|
8
8
|
'Above de minimis threshold for': {
|
|
9
9
|
value: 'Vượt ngưỡng miễn thuế đối với',
|
|
10
10
|
},
|
|
11
|
+
'Add promotional code': {
|
|
12
|
+
value: 'Thêm mã khuyến mãi',
|
|
13
|
+
},
|
|
11
14
|
Address: {
|
|
12
15
|
value: 'Địa chỉ',
|
|
13
16
|
},
|
|
@@ -20,6 +23,9 @@ export const stringsVietnamese = {
|
|
|
20
23
|
'An unexpected error occurred when processing PayPal order.': {
|
|
21
24
|
value: 'Đã xảy ra lỗi bất ngờ khi xử lý đơn hàng PayPal.',
|
|
22
25
|
},
|
|
26
|
+
Apply: {
|
|
27
|
+
value: 'Áp dụng',
|
|
28
|
+
},
|
|
23
29
|
'Are you sure?': {
|
|
24
30
|
value: 'Bạn có chắc không?',
|
|
25
31
|
},
|
|
@@ -122,6 +128,9 @@ export const stringsVietnamese = {
|
|
|
122
128
|
Hide: {
|
|
123
129
|
value: 'Ẩn',
|
|
124
130
|
},
|
|
131
|
+
'Invalid promo code': {
|
|
132
|
+
value: 'Mã khuyến mãi không hợp lệ',
|
|
133
|
+
},
|
|
125
134
|
'Keep shopping': {
|
|
126
135
|
value: 'Tiếp tục mua sắm',
|
|
127
136
|
},
|
|
@@ -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: 'c8d513bc9890590db622ec8f26d4e9b0694c33e5', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '775b454620360bed4186a23371bc3867a5745155', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '4844b5379a33a3668cae0036c1a952cd42229efb', class: "zonos--address-component" })));
|
|
139
139
|
}
|
|
140
140
|
static get is() { return "zonos-address"; }
|
|
141
141
|
static get encapsulation() { return "scoped"; }
|
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: '7c110f013b4e24c92a4194045dc084fb795d0f91', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: 'dcbbd48a47c696641fbd64cdfff16946824ffc46', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'a77b5cb13e7e15b2a69efaa179abacc52061e9d0', class: "zonos--link-authentication-component" })));
|
|
46
46
|
}
|
|
47
47
|
static get is() { return "zonos-link-authentication"; }
|
|
48
48
|
static get encapsulation() { return "scoped"; }
|
|
@@ -36,7 +36,7 @@ export class ZonosPayment {
|
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
38
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
39
|
-
return (h(Host, { key: '
|
|
39
|
+
return (h(Host, { key: 'c461a967d00b2d96fa70aaaf1651b435cdcd84bd', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '44da1d89ce19f7174cad1214ab9463f0b1174c0d', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'b9e3491b48d9ede19a5cdef639bd47e6bf0ba742', class: "zonos--payment-component" }), h("div", { key: '578516ce1ca1dc01eebb2268bb5449613e14298f', class: "zonos--payment-paypal-container" })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "zonos-payment"; }
|
|
42
42
|
static get encapsulation() { return "scoped"; }
|
|
@@ -74,6 +74,17 @@ export const prepCartCalculateLandedCost = (cartId) => {
|
|
|
74
74
|
lastName: shippingLastName,
|
|
75
75
|
phone: translatedShippingAddress.phone,
|
|
76
76
|
},
|
|
77
|
+
landedCostAdjustments: cartStore.promoCode
|
|
78
|
+
? [
|
|
79
|
+
{
|
|
80
|
+
amount: 0,
|
|
81
|
+
productId: null,
|
|
82
|
+
promoCode: cartStore.promoCode,
|
|
83
|
+
sku: null,
|
|
84
|
+
type: 'PROMO_CODE',
|
|
85
|
+
},
|
|
86
|
+
]
|
|
87
|
+
: [],
|
|
77
88
|
shippingAddress: {
|
|
78
89
|
addressLine1: translatedShippingAddress.line1,
|
|
79
90
|
addressLine2: translatedShippingAddress.line2,
|
|
@@ -133,6 +144,17 @@ export const prepCalculateLandedCost = () => {
|
|
|
133
144
|
phone: translatedShippingAddress.phone,
|
|
134
145
|
},
|
|
135
146
|
items: cartStore.items,
|
|
147
|
+
landedCostAdjustments: cartStore.promoCode
|
|
148
|
+
? [
|
|
149
|
+
{
|
|
150
|
+
amount: 0,
|
|
151
|
+
productId: null,
|
|
152
|
+
promoCode: cartStore.promoCode,
|
|
153
|
+
sku: null,
|
|
154
|
+
type: 'PROMO_CODE',
|
|
155
|
+
},
|
|
156
|
+
]
|
|
157
|
+
: [],
|
|
136
158
|
shippingAddress: {
|
|
137
159
|
addressLine1: translatedShippingAddress.line1,
|
|
138
160
|
addressLine2: translatedShippingAddress.line2,
|
|
@@ -5,8 +5,6 @@ import { handleFetch } from "../handleFetch";
|
|
|
5
5
|
export const trackConversionEvent = async (eventName, metadata) => {
|
|
6
6
|
var _a, _b;
|
|
7
7
|
const isDevelopment = window.location.href.includes('zonos.com') ||
|
|
8
|
-
// legacy mock checkout, no need to track analytics for this
|
|
9
|
-
window.location.href.includes('checkout.iglobalstores.com') ||
|
|
10
8
|
!!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.zonosQaUrl) ||
|
|
11
9
|
!!((_b = window.Zonos) === null || _b === void 0 ? void 0 : _b.debug);
|
|
12
10
|
if (isDevelopment &&
|
|
@@ -9,6 +9,7 @@ export const triggerBuildLandedCost = async (buildLandedCost) => {
|
|
|
9
9
|
billingContact: data.billingContact,
|
|
10
10
|
checkoutSessionId: data.checkoutSessionId,
|
|
11
11
|
contact: data.contact,
|
|
12
|
+
landedCostAdjustments: data.landedCostAdjustments,
|
|
12
13
|
shippingAddress: data.shippingAddress,
|
|
13
14
|
zonosApiRoute: fallbackApiList['vercel'],
|
|
14
15
|
});
|
|
@@ -180,6 +180,7 @@ export const handleFetch = async (path, _opts) => {
|
|
|
180
180
|
method });
|
|
181
181
|
// This is for testing fallback API, set fallback API type to start with
|
|
182
182
|
const useFallbackApi = new URLSearchParams(window.location.search).get('useFallbackApi');
|
|
183
|
+
log(path, 'info');
|
|
183
184
|
return handleRequestWithFallback({
|
|
184
185
|
basePathType: useFallbackApi || MAIN_BASE_API_TYPE,
|
|
185
186
|
options,
|
|
@@ -23,7 +23,7 @@ export const currencyFormat = ({ amount, currency, }) => {
|
|
|
23
23
|
const { targetFormat } = exchangeRate || {};
|
|
24
24
|
if (!targetFormat || !exchangeRate) {
|
|
25
25
|
// Return the amount as a string if no exchange rate is available
|
|
26
|
-
return `${amount.
|
|
26
|
+
return `${amount.toFixed(2)} ${targetCurrency}`;
|
|
27
27
|
}
|
|
28
28
|
const minimumFractionDigits = targetFormat.scale || 2;
|
|
29
29
|
const isIE = window.navigator.userAgent.indexOf('MSIE ') !== -1;
|
|
@@ -1,5 +1,30 @@
|
|
|
1
|
-
|
|
1
|
+
const startTime = performance.now();
|
|
2
|
+
export const allLogs = [];
|
|
3
|
+
const prepInfo = (info) => {
|
|
4
|
+
if (typeof info === 'string') {
|
|
5
|
+
return info;
|
|
6
|
+
}
|
|
7
|
+
try {
|
|
8
|
+
const infoToJson = JSON.stringify(info);
|
|
9
|
+
return infoToJson;
|
|
10
|
+
}
|
|
11
|
+
catch (e1) {
|
|
12
|
+
if (info && typeof info.toString === 'function') {
|
|
13
|
+
const infoToString = info.toString();
|
|
14
|
+
return infoToString;
|
|
15
|
+
}
|
|
16
|
+
return 'Unable to stringify info';
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
export const log = (message, type, ..._additionalInfo) => {
|
|
2
20
|
var _a, _b;
|
|
21
|
+
const time = performance.now() - startTime;
|
|
22
|
+
const elapsedTime =
|
|
23
|
+
// format the time to seconds if over 1 second
|
|
24
|
+
time > 1000 ? `${(time / 1000).toFixed(2)}s` : `${time.toFixed(2)}ms`;
|
|
25
|
+
const additionalInfo = [`(${elapsedTime})`, ..._additionalInfo];
|
|
26
|
+
const preppedInfo = additionalInfo.map(prepInfo).join(' ');
|
|
27
|
+
allLogs.push([type, message, preppedInfo].filter(Boolean).join(' '));
|
|
3
28
|
const isDebug = !!((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.debug) ||
|
|
4
29
|
!!window.location.search.match(/\?.*(&*)zonosDebug=1/);
|
|
5
30
|
// if debug is false, do not log
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { fallbackApiList, getNextFallbackApiType, MAIN_BASE_API, } from "../getNextFallbackApi";
|
|
2
|
+
import { log } from "./log";
|
|
2
3
|
/**
|
|
3
4
|
* This is the time in milliseconds after release time that we will start sending error logs to the new API
|
|
4
5
|
* @default 1 hour
|
|
5
6
|
*/
|
|
6
7
|
const postReleaseReportingDuration = 1 * 3600 * 1000; // 1 hour
|
|
7
8
|
export const sendErrorLog = async ({ endpoint, errors, metadata, shouldPostReleaseErrorReporting, }) => {
|
|
9
|
+
log('sendErrorLog', 'warn', endpoint, metadata, errors);
|
|
8
10
|
if (shouldPostReleaseErrorReporting) {
|
|
9
11
|
// We only want to report errors that happened if current time is less than 2 hours after release time
|
|
10
12
|
const releaseTime = Number(window.Zonos.releaseDate);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as handleFetch, l as log, a as logError } from './handleFetch-
|
|
1
|
+
import { h as handleFetch, l as log, a as logError } from './handleFetch-0133265e.js';
|
|
2
2
|
|
|
3
3
|
const getTempCartById = async (cartId) => {
|
|
4
4
|
const { errors, json } = await handleFetch('/api/zonos-elements/get-temp-cart', {
|