@zonos/elements 1.3.138 → 1.3.140
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-efd80d55.js → cart-e1b59d03.js} +280 -41
- package/dist/cjs/index.cjs.js +12 -13
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{paypal-50e03778.js → paypal-86cc51e4.js} +13 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +10 -10
- package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
- 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-cart-items_13.cjs.entry.js +94 -26
- package/dist/cjs/zonos-checkout.cjs.entry.js +5 -3
- package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
- package/dist/cjs/zonos-component.cjs.entry.js +1 -1
- package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +9 -9
- package/dist/cjs/zonos-elements.cjs.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
- package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
- package/dist/cjs/zonos-input.cjs.entry.js +4 -4
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
- 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 +4 -4
- package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
- package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
- package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +19 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +24 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +4 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +23 -11
- package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
- package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
- package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
- package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
- package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +11 -4
- 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-toggle/zonos-toggle.js +2 -2
- package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
- package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
- package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
- package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
- package/dist/collection/components/hello/zonos-hello/zonos-hello.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/paypal.js +14 -1
- package/dist/collection/components/store/checkout/stripe.js +9 -0
- package/dist/collection/components/store/hello/localization.js +3 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +11 -2
- package/dist/collection/components/store/translationStore/strings.base.js +11 -2
- package/dist/collection/components/store/translationStore/strings.chinese.js +11 -2
- package/dist/collection/components/store/translationStore/strings.danish.js +11 -2
- package/dist/collection/components/store/translationStore/strings.dutch.js +11 -2
- package/dist/collection/components/store/translationStore/strings.french.js +11 -2
- package/dist/collection/components/store/translationStore/strings.german.js +11 -2
- package/dist/collection/components/store/translationStore/strings.hebrew.js +11 -2
- package/dist/collection/components/store/translationStore/strings.indonesian.js +11 -2
- package/dist/collection/components/store/translationStore/strings.italian.js +11 -2
- package/dist/collection/components/store/translationStore/strings.japanese.js +11 -2
- package/dist/collection/components/store/translationStore/strings.korean.js +11 -2
- package/dist/collection/components/store/translationStore/strings.norwegian.js +11 -2
- package/dist/collection/components/store/translationStore/strings.polish.js +11 -2
- package/dist/collection/components/store/translationStore/strings.portuguese.js +11 -2
- package/dist/collection/components/store/translationStore/strings.russian.js +11 -2
- package/dist/collection/components/store/translationStore/strings.spanish.js +11 -2
- package/dist/collection/components/store/translationStore/strings.swedish.js +11 -2
- package/dist/collection/components/store/translationStore/strings.turkish.js +11 -2
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +11 -2
- package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
- package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +2 -2
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
- package/dist/collection/components/utils/api/getCheckoutSession.js +14 -0
- package/dist/collection/components/utils/resetToSelectedTab.js +17 -0
- package/dist/collection/components/utils/validateCheckoutSession.js +39 -0
- package/dist/collection/scripts/_zonosBase.js +5 -6
- package/dist/esm/{cart-f0bf7202.js → cart-709f053f.js} +281 -43
- package/dist/esm/index.js +12 -13
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{paypal-65d40ba3.js → paypal-77a60c44.js} +13 -1
- package/dist/esm/zonos-address_7.entry.js +10 -10
- package/dist/esm/zonos-badge.entry.js +3 -3
- package/dist/esm/zonos-button_3.entry.js +3 -3
- package/dist/esm/zonos-card.entry.js +4 -4
- package/dist/esm/zonos-cart-items_13.entry.js +94 -26
- package/dist/esm/zonos-checkout.entry.js +5 -3
- package/dist/esm/zonos-collapse.entry.js +2 -2
- package/dist/esm/zonos-component.entry.js +1 -1
- package/dist/esm/zonos-controller.entry.js +2 -2
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +9 -9
- package/dist/esm/zonos-elements.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +5 -5
- package/dist/esm/zonos-hello.entry.js +2 -2
- package/dist/esm/zonos-input.entry.js +4 -4
- package/dist/esm/zonos-language-select_2.entry.js +5 -5
- 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 +4 -4
- package/dist/esm/zonos-toggle.entry.js +2 -2
- package/dist/esm/zonos-tooltip.entry.js +2 -2
- package/dist/esm/zonos-v-stack.entry.js +2 -2
- package/dist/esm-es5/cart-709f053f.js +1 -0
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/paypal-77a60c44.js +17 -0
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-badge.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_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-collapse.entry.js +1 -1
- package/dist/esm-es5/zonos-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-toggle.entry.js +1 -1
- package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
- package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
- package/dist/scripts/index.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-payment/zonos-checkout-payment.d.ts +6 -0
- package/dist/types/components/store/checkout/stripe.d.ts +4 -0
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.base.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.danish.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.french.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.german.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.italian.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.korean.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.polish.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.russian.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +10 -1
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +10 -1
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/components/utils/api/getCheckoutSession.d.ts +9 -0
- package/dist/types/components/utils/resetToSelectedTab.d.ts +12 -0
- package/dist/types/components/utils/validateCheckoutSession.d.ts +9 -0
- package/dist/types/types/checkout/api/CheckoutSession.d.ts +5 -1
- package/dist/types/types/generated/graphql.internal.types.d.ts +112 -0
- package/dist/types/types/generated/graphql.internal.types.ts +102 -1
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-bbd5119f.entry.js → p-00d4bff1.entry.js} +1 -1
- package/dist/zonos-elements/p-010f5797.system.entry.js +1 -0
- package/dist/zonos-elements/{p-7b34be6e.system.entry.js → p-01ad5be8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-856bf7a4.entry.js → p-04a6a167.entry.js} +1 -1
- package/dist/zonos-elements/{p-b500f0d1.system.entry.js → p-0aee2e4c.system.entry.js} +1 -1
- package/dist/zonos-elements/p-0c027d2e.entry.js +1 -0
- package/dist/zonos-elements/{p-59d0f69b.system.entry.js → p-1c4ff7b2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1af0a800.system.entry.js → p-22d69480.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d2a77699.system.entry.js → p-25c7e4fa.system.entry.js} +1 -1
- package/dist/zonos-elements/p-26b24d0b.system.js +1 -0
- package/dist/zonos-elements/{p-ba26fc96.system.entry.js → p-289ded20.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c9c4e557.entry.js → p-35b8dcde.entry.js} +1 -1
- package/dist/zonos-elements/{p-acae88db.entry.js → p-3a26cae5.entry.js} +1 -1
- package/dist/zonos-elements/{p-1360c4b5.system.entry.js → p-3dd503fd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-24488838.system.entry.js → p-4319600a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1393d259.system.entry.js → p-461624ce.system.entry.js} +1 -1
- package/dist/zonos-elements/p-49e4ca08.system.entry.js +1 -0
- package/dist/zonos-elements/{p-e44ab8b8.entry.js → p-5c32689e.entry.js} +1 -1
- package/dist/zonos-elements/{p-47efac28.system.entry.js → p-64a04391.system.entry.js} +1 -1
- package/dist/zonos-elements/p-6b0aa1bb.system.js +17 -0
- package/dist/zonos-elements/{p-22d099fb.system.entry.js → p-7a60deef.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-84df573a.entry.js → p-7acf6802.entry.js} +1 -1
- package/dist/zonos-elements/{p-f9f48476.entry.js → p-7ef573f0.entry.js} +1 -1
- package/dist/zonos-elements/{p-37a127fc.entry.js → p-8368a79e.entry.js} +1 -1
- package/dist/zonos-elements/{p-5775cd68.system.entry.js → p-87ed2e17.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1ac0f941.system.entry.js → p-896ab1ed.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-c48e735d.system.entry.js → p-896d62a4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-8f9affb3.system.entry.js +1 -0
- package/dist/zonos-elements/{p-234b3f74.entry.js → p-9589bd08.entry.js} +1 -1
- package/dist/zonos-elements/{p-22e2f162.entry.js → p-9b59704a.entry.js} +1 -1
- package/dist/zonos-elements/p-a58731ec.system.js +1 -0
- package/dist/zonos-elements/{p-bad5200e.entry.js → p-ad1d6ea2.entry.js} +1 -1
- package/dist/zonos-elements/{p-b9e4e410.entry.js → p-ad4bc6a2.entry.js} +1 -1
- package/dist/zonos-elements/p-afffdfc2.js +1 -0
- package/dist/zonos-elements/{p-4ab4ba81.entry.js → p-b832ec52.entry.js} +1 -1
- package/dist/zonos-elements/{p-f0ce4d90.entry.js → p-b9efc660.entry.js} +1 -1
- package/dist/zonos-elements/p-be2feba6.entry.js +1 -0
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-a0cc4dd2.entry.js → p-cd1fd09e.entry.js} +1 -1
- package/dist/zonos-elements/{p-52a5bd4c.system.entry.js → p-cf72603f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d35376d3.js +17 -0
- package/dist/zonos-elements/{p-95f26bc3.entry.js → p-d633ced9.entry.js} +1 -1
- package/dist/zonos-elements/p-e6c31531.entry.js +1 -0
- package/dist/zonos-elements/{p-de020c11.system.entry.js → p-ee1e1d94.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-be468605.system.entry.js → p-f07c01c5.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-8880d648.entry.js → p-f2867195.entry.js} +1 -1
- package/dist/zonos-elements/{p-b088f65a.entry.js → p-f8ca3e71.entry.js} +1 -1
- package/dist/zonos-elements/{p-c0719959.system.entry.js → p-ffe4a999.system.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +2 -1
- package/dist/esm-es5/cart-f0bf7202.js +0 -1
- package/dist/esm-es5/paypal-65d40ba3.js +0 -17
- package/dist/zonos-elements/p-09636917.js +0 -1
- package/dist/zonos-elements/p-128b1b70.system.entry.js +0 -1
- package/dist/zonos-elements/p-31a776aa.system.entry.js +0 -1
- package/dist/zonos-elements/p-4628832d.system.js +0 -1
- package/dist/zonos-elements/p-58983c97.entry.js +0 -1
- package/dist/zonos-elements/p-6e24b0cf.system.js +0 -17
- package/dist/zonos-elements/p-845ad2b8.js +0 -17
- package/dist/zonos-elements/p-8e25910c.entry.js +0 -1
- package/dist/zonos-elements/p-b6005449.system.entry.js +0 -1
- package/dist/zonos-elements/p-c5bff157.entry.js +0 -1
- package/dist/zonos-elements/p-e309e4a3.system.js +0 -1
|
@@ -113,8 +113,8 @@ export const stringsPolish = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Błąd podczas aktualizowania płatności',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Szacowany',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Szacowany [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Przewidywana dostawa',
|
|
@@ -170,6 +170,9 @@ export const stringsPolish = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Nie znaleziono krajów',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Nie wybrano oceny przesyłki. Proszę wrócić do kroku "Wysyłka" i wybrać ocenę przesyłki, aby kontynuować.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Nie wybrano metody wysyłki',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsPolish = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Sukces',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Podatki i opłaty',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Podatki będą miały zastosowanie do wszystkich zamówień.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsPolish = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Nie można sprawdzić stanu magazynu. Spróbuj ponownie.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Nie można pobrać sesji kasy w tej chwili. Proszę spróbować ponownie lub skontaktować się z naszym zespołem wsparcia.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Zaktualizuj adres',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsPortuguese = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Erro ao atualizar Checkout',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Estimado',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Estimado [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Entrega prevista',
|
|
@@ -170,6 +170,9 @@ export const stringsPortuguese = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Nenhum país encontrado',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Nenhuma classificação de envio selecionada. Por favor, volte para a etapa de "Envio" e selecione uma classificação de envio para prosseguir.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Nenhum método de envio selecionado',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsPortuguese = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Sucesso',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Impostos e taxas',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Impostos serão aplicados a todos os pedidos.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsPortuguese = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Não foi possível verificar o inventário. Por favor, tente novamente.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Não é possível recuperar a sessão de checkout no momento. Por favor, tente novamente ou entre em contato com nossa equipe de suporte.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Atualizar endereço',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsRussian = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Ошибка при обновлении оформления',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: '
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Оценка [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Ожидаемая доставка',
|
|
@@ -170,6 +170,9 @@ export const stringsRussian = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Страны не найдены',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Не выбран рейтинг доставки. Пожалуйста, вернитесь к шагу "Доставка" и выберите рейтинг доставки, чтобы продолжить.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Метод доставки не выбран',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsRussian = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Успех',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Налоги и сборы',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Налоги будут применяться ко всем заказам.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsRussian = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Не удалось проверить наличие на складе. Пожалуйста, попробуйте снова.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Не удается получить сеанс оформления заказа в данный момент. Пожалуйста, попробуйте еще раз или свяжитесь с нашей службой поддержки.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Обновить адрес',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsSpanish = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Error al actualizar el pago',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Estimado',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Estimado [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Entrega esperada',
|
|
@@ -170,6 +170,9 @@ export const stringsSpanish = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'No se encontraron países',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'No se ha seleccionado una calificación de envío. Por favor, regrese al paso de "Envío" y seleccione una calificación de envío para continuar.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'No se ha seleccionado un método de envío',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsSpanish = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Éxito',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Impuestos y tarifas',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Se aplicarán impuestos a todos los pedidos.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsSpanish = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'No se pudo verificar el inventario. Por favor, inténtelo de nuevo.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'No se puede recuperar la sesión de pago en este momento. Por favor, inténtelo de nuevo o contacte a nuestro equipo de soporte.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Actualizar dirección',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsSwedish = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Fel vid uppdatering av utcheckning',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Uppskattad',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Uppskattad [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Beräknad leverans',
|
|
@@ -170,6 +170,9 @@ export const stringsSwedish = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Inga länder hittades',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Ingen fraktbedömning vald. Gå tillbaka till steget "Frakt" och välj en fraktbedömning för att fortsätta.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Ingen fraktmetod vald',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsSwedish = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Framgång',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Skatter och avgifter',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Skatter kommer att tillämpas på alla beställningar.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsSwedish = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Det gick inte att kontrollera lagret. Försök igen.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Kan inte hämta betalningssessionen just nu. Försök igen eller kontakta vårt supportteam.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Uppdatera adress',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsTurkish = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Ödeme güncelleme hatası',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Tahmini',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Tahmini [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Beklenen teslimat',
|
|
@@ -170,6 +170,9 @@ export const stringsTurkish = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Ülke bulunamadı',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Gönderi derecelendirmesi seçilmedi. Lütfen "Kargo" adımına geri dönün ve devam etmek için bir gönderi derecelendirmesi seçin.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Kargo yöntemi seçilmedi',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsTurkish = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Başarı',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Vergiler ve ücretler',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Tüm siparişlere vergi uygulanacaktır.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsTurkish = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Envanter kontrol edilemedi. Lütfen tekrar deneyin.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Şu anda ödeme oturumunu alamıyoruz. Lütfen tekrar deneyin veya destek ekibimizle iletişime geçin.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Adresi güncelle',
|
|
367
376
|
},
|
|
@@ -113,8 +113,8 @@ export const stringsVietnamese = {
|
|
|
113
113
|
'Error updating Checkout': {
|
|
114
114
|
value: 'Lỗi khi cập nhật phiên thanh toán',
|
|
115
115
|
},
|
|
116
|
-
Estimated: {
|
|
117
|
-
value: 'Ước tính',
|
|
116
|
+
'Estimated [amount]': {
|
|
117
|
+
value: 'Ước tính [amount]',
|
|
118
118
|
},
|
|
119
119
|
'Expected delivery': {
|
|
120
120
|
value: 'Dự kiến giao hàng',
|
|
@@ -170,6 +170,9 @@ export const stringsVietnamese = {
|
|
|
170
170
|
'No countries found': {
|
|
171
171
|
value: 'Không tìm thấy quốc gia nào',
|
|
172
172
|
},
|
|
173
|
+
'No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.': {
|
|
174
|
+
value: 'Chưa chọn đánh giá vận chuyển. Vui lòng quay lại bước "Vận chuyển" và chọn đánh giá vận chuyển để tiếp tục.',
|
|
175
|
+
},
|
|
173
176
|
'No shipping method selected': {
|
|
174
177
|
value: 'Chưa chọn phương thức vận chuyển',
|
|
175
178
|
},
|
|
@@ -329,6 +332,9 @@ export const stringsVietnamese = {
|
|
|
329
332
|
Success: {
|
|
330
333
|
value: 'Thành công',
|
|
331
334
|
},
|
|
335
|
+
'Taxes and fees': {
|
|
336
|
+
value: 'Thuế và phí',
|
|
337
|
+
},
|
|
332
338
|
'Taxes will apply to all orders.': {
|
|
333
339
|
value: 'Thuế sẽ áp dụng cho tất cả các đơn hàng.',
|
|
334
340
|
},
|
|
@@ -362,6 +368,9 @@ export const stringsVietnamese = {
|
|
|
362
368
|
'Unable to check inventory. Please try again.': {
|
|
363
369
|
value: 'Không thể kiểm tra hàng tồn kho. Vui lòng thử lại.',
|
|
364
370
|
},
|
|
371
|
+
'Unable to retrieve the checkout session at the moment. Please try again or contact our support team.': {
|
|
372
|
+
value: 'Không thể truy xuất phiên thanh toán vào lúc này. Vui lòng thử lại hoặc liên hệ với đội ngũ hỗ trợ của chúng tôi.',
|
|
373
|
+
},
|
|
365
374
|
'Update address': {
|
|
366
375
|
value: 'Cập nhật địa chỉ',
|
|
367
376
|
},
|
|
@@ -138,7 +138,7 @@ export class ZonosAddress {
|
|
|
138
138
|
}
|
|
139
139
|
render() {
|
|
140
140
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
141
|
-
return (h(Host, { key: '
|
|
141
|
+
return (h(Host, { key: '4c2371b6111fac3e7b9e73c83fb858db844e800a', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'a0a1f0c4a247a044f541083257edf8dc7b62f903', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'e610eecbbd4c57dcb539af8d539da3db60bb45e7', class: "zonos--address-component" })));
|
|
142
142
|
}
|
|
143
143
|
static get is() { return "zonos-address"; }
|
|
144
144
|
static get encapsulation() { return "scoped"; }
|
package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js
CHANGED
|
@@ -47,9 +47,9 @@ export class ZonosLinkAuthentication {
|
|
|
47
47
|
}
|
|
48
48
|
render() {
|
|
49
49
|
// this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
|
|
50
|
-
return (h(Host, { key: '
|
|
50
|
+
return (h(Host, { key: '2e0db99db09b2e6f055db2851e03f39819a6821e', class: "zonos--link-authentication zonos--elements", style: {
|
|
51
51
|
'--zonos--border-radius': getBorderRadius(),
|
|
52
|
-
} }, h("zonos-text", { key: '
|
|
52
|
+
} }, h("zonos-text", { key: 'fa4516128da2fafa81b070f4d525602edd11203e', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '4b9afcb4bb2be87157923f136b517d3dc44a4c47', class: `zonos--link-authentication-component ${this.isEmailError && 'zonos--input-invalid'}` }), this.isEmailError && (h("zonos-text", { key: 'e6a20eedb5d0a2e5ccb58fa240d664812749801d', textColor: "red-600" }, translate('Please enter a valid email address.')))));
|
|
53
53
|
}
|
|
54
54
|
static get is() { return "zonos-link-authentication"; }
|
|
55
55
|
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: 'ee5ea97f737cce6dd2ad3d90797545e38a979820', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '5473d3bce1d842cba3a3e2c156fc31a70ee6b7f6', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '087268368f53116ce125b337eb2f99bf4cc7fa94', class: "zonos--payment-component" }), h("div", { key: '5987aa638084ac3635c522d3067b451b8a96a6e7', class: "zonos--payment-paypal-container" })));
|
|
40
40
|
}
|
|
41
41
|
static get is() { return "zonos-payment"; }
|
|
42
42
|
static get encapsulation() { return "scoped"; }
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { cartStore } from "../../store/checkout/cart";
|
|
2
|
+
import { handleFetch } from "../handleFetch";
|
|
3
|
+
export const getCheckoutSession = async () => {
|
|
4
|
+
if (!cartStore.checkoutSessionId) {
|
|
5
|
+
return {
|
|
6
|
+
errors: [{ message: 'No checkout session id found' }],
|
|
7
|
+
json: null,
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
const searchParams = new URLSearchParams(window.location.search);
|
|
11
|
+
searchParams.set('checkoutSessionId', cartStore.checkoutSessionId);
|
|
12
|
+
const { errors, json } = await handleFetch(`/api/zonos-elements/get-checkout-session?${searchParams.toString()}`);
|
|
13
|
+
return { errors, json };
|
|
14
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reset any done tabs after selected tab to undone. This is to force user to go through all tabs again
|
|
3
|
+
*/
|
|
4
|
+
export const resetToSelectedTab = ({ selectedTab, tabList, }) => {
|
|
5
|
+
const selectedTabIndex = tabList[selectedTab].index;
|
|
6
|
+
// Any tab after the selected tab should be reset
|
|
7
|
+
const tabsToReset = Object.values(tabList)
|
|
8
|
+
.slice(selectedTabIndex - 1, Object.keys(tabList).length)
|
|
9
|
+
.map(tab => tab.value);
|
|
10
|
+
const newTabList = Object.assign({}, tabList);
|
|
11
|
+
Object.values(newTabList).forEach(tab => {
|
|
12
|
+
if (tabsToReset.includes(tab.value)) {
|
|
13
|
+
tab.isDone = false;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
return newTabList;
|
|
17
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { translate } from "../store/translationStore";
|
|
2
|
+
import { getCheckoutSession } from "./api/getCheckoutSession";
|
|
3
|
+
import { allLogs } from "./logging/log";
|
|
4
|
+
import { logError } from "./logging/logError";
|
|
5
|
+
import { sendErrorLog } from "./logging/sendErrorLog";
|
|
6
|
+
/**
|
|
7
|
+
* Validate checkout session before confirming payment
|
|
8
|
+
*/
|
|
9
|
+
export const validateCheckoutSession = async () => {
|
|
10
|
+
var _a;
|
|
11
|
+
// get checkout session info
|
|
12
|
+
const { errors, json } = await getCheckoutSession();
|
|
13
|
+
if (errors.length || !json) {
|
|
14
|
+
logError('Failed to retrieve checkout session info before confirming payment ', errors);
|
|
15
|
+
void sendErrorLog({
|
|
16
|
+
endpoint: 'validateCheckoutSession',
|
|
17
|
+
errors: errors.map(error => error.message),
|
|
18
|
+
metadata: { allLogs },
|
|
19
|
+
});
|
|
20
|
+
return {
|
|
21
|
+
errorMessage: translate('Unable to retrieve the checkout session at the moment. Please try again or contact our support team.'),
|
|
22
|
+
valid: false,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
// Make sure landed cost is found in the checkout session
|
|
26
|
+
if (!((_a = json.checkoutSession.landedCost) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
27
|
+
logError('Landed cost is not found in the checkout session before confirming payment.');
|
|
28
|
+
void sendErrorLog({
|
|
29
|
+
endpoint: 'validateCheckoutSession',
|
|
30
|
+
errors: ['No landed cost found before confirming payment'],
|
|
31
|
+
metadata: { allLogs },
|
|
32
|
+
});
|
|
33
|
+
return {
|
|
34
|
+
errorMessage: translate('No shipment rating selected. Please go back to the "Shipping" step and select a shipment rating to proceed.'),
|
|
35
|
+
valid: false,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
return { errorMessage: '', valid: true };
|
|
39
|
+
};
|
|
@@ -29,9 +29,8 @@ const ZONOS_URL = process.env.NEXT_PUBLIC_ZONOS_CDN_URL;
|
|
|
29
29
|
const JS_DELIVR_ZONOS_URL = zonosLoadUrl || process.env.NEXT_PUBLIC_ZONOS_JS_DELIVR_CDN_URL;
|
|
30
30
|
const UNPKG_ZONOS_URL = process.env.NEXT_PUBLIC_ZONOS_UNPKG_CDN_URL;
|
|
31
31
|
const CDNJS_ZONOS_URL = process.env.NEXT_PUBLIC_ZONOS_CDNJS_CDN_URL;
|
|
32
|
-
const INTER_FONT_URL = 'https://rsms.me';
|
|
33
32
|
const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
|
|
34
|
-
const
|
|
33
|
+
const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
|
|
35
34
|
export class Zonos {
|
|
36
35
|
}
|
|
37
36
|
_a = Zonos;
|
|
@@ -389,13 +388,13 @@ Zonos.injectZonosCss = () => {
|
|
|
389
388
|
};
|
|
390
389
|
Zonos.injectFonts = () => {
|
|
391
390
|
const findFont = () => {
|
|
392
|
-
const links = document.querySelectorAll(`link[rel="stylesheet"][href^="${
|
|
391
|
+
const links = document.querySelectorAll(`link[rel="stylesheet"][href^="${GOOGLE_FONT_URL}"]`);
|
|
393
392
|
for (let i = 0; i < links.length; i++) {
|
|
394
393
|
const link = links[i];
|
|
395
394
|
if (!link) {
|
|
396
395
|
continue;
|
|
397
396
|
}
|
|
398
|
-
if (
|
|
397
|
+
if (GOOGLE_FONT_REGEX.test(link.href)) {
|
|
399
398
|
continue;
|
|
400
399
|
}
|
|
401
400
|
return link;
|
|
@@ -410,12 +409,12 @@ Zonos.injectFonts = () => {
|
|
|
410
409
|
// inject font css for zonos elements
|
|
411
410
|
const fontPreconnect = document.createElement('link');
|
|
412
411
|
fontPreconnect.rel = 'preconnect';
|
|
413
|
-
fontPreconnect.href =
|
|
412
|
+
fontPreconnect.href = GOOGLE_FONT_URL;
|
|
414
413
|
headOrBody.appendChild(fontPreconnect);
|
|
415
414
|
// inject font css for zonos elements
|
|
416
415
|
const font = document.createElement('link');
|
|
417
416
|
font.rel = 'stylesheet';
|
|
418
|
-
font.href = `${
|
|
417
|
+
font.href = `${GOOGLE_FONT_URL}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`;
|
|
419
418
|
headOrBody.appendChild(font);
|
|
420
419
|
log('Zonos font injected!');
|
|
421
420
|
};
|