@zonos/elements 1.3.68 → 1.3.70
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-8a585d9b.js → cart-11d066b2.js} +165 -56
- package/dist/cjs/{createCustomEvent-1ad96183.js → createCustomEvent-68af46cb.js} +1 -1
- package/dist/cjs/index.cjs.js +8 -8
- package/dist/cjs/{paypal-81274880.js → paypal-aa0570f4.js} +1 -1
- package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
- package/dist/cjs/zonos-badge_13.cjs.entry.js +14 -16
- package/dist/cjs/zonos-checkout.cjs.entry.js +14 -10
- package/dist/cjs/zonos-controller.cjs.entry.js +5 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
- package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +11 -7
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +10 -12
- package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
- package/dist/collection/components/store/checkout/cart.js +31 -29
- package/dist/collection/components/store/checkout/stripe.js +9 -9
- package/dist/collection/components/store/translationStore/strings.arabic.js +6 -0
- package/dist/collection/components/store/translationStore/strings.base.js +6 -0
- package/dist/collection/components/store/translationStore/strings.chinese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.danish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.dutch.js +6 -0
- package/dist/collection/components/store/translationStore/strings.french.js +6 -0
- package/dist/collection/components/store/translationStore/strings.german.js +6 -0
- package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -0
- package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.italian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.japanese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.korean.js +6 -0
- package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.polish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -0
- package/dist/collection/components/store/translationStore/strings.russian.js +6 -0
- package/dist/collection/components/store/translationStore/strings.spanish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.swedish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.turkish.js +6 -0
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -0
- package/dist/collection/components/store/translationStore.js +3 -3
- package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +2 -1
- package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +3 -3
- package/dist/collection/components/utils/hello/initHello.js +4 -0
- package/dist/collection/scripts/_zonosBase.js +1 -1
- package/dist/collection/types/generated/graphql.customer.types.js +13 -0
- package/dist/esm/{cart-53bd48de.js → cart-7f82d6bf.js} +165 -56
- package/dist/esm/{createCustomEvent-0376082a.js → createCustomEvent-3a894453.js} +1 -1
- package/dist/esm/index.js +8 -8
- package/dist/esm/{paypal-09ebeb63.js → paypal-91a34d75.js} +1 -1
- package/dist/esm/zonos-address_8.entry.js +1 -1
- package/dist/esm/zonos-badge_13.entry.js +14 -16
- package/dist/esm/zonos-checkout.entry.js +14 -10
- package/dist/esm/zonos-controller.entry.js +5 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_4.entry.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +1 -1
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-language-select_2.entry.js +1 -1
- package/dist/esm/zonos-notification_3.entry.js +2 -2
- package/dist/esm/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/esm-es5/cart-7f82d6bf.js +1 -0
- package/dist/esm-es5/{createCustomEvent-0376082a.js → createCustomEvent-3a894453.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-09ebeb63.js → paypal-91a34d75.js} +1 -1
- package/dist/esm-es5/zonos-address_8.entry.js +1 -1
- package/dist/esm-es5/zonos-badge_13.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.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-hello-dialog.entry.js +1 -1
- package/dist/esm-es5/zonos-hello.entry.js +1 -1
- package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
- package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
- package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
- package/dist/scripts/index.d.ts +14 -10
- 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/store/checkout/cart.d.ts +4 -5
- package/dist/types/components/store/checkout/stripe.d.ts +2 -2
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.base.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.french.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.german.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -0
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -0
- package/dist/types/components/store/translationStore.d.ts +4 -3
- package/dist/types/types/generated/graphql.customer.types.d.ts +47 -37
- package/dist/types/types/generated/graphql.customer.types.ts +57 -40
- package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-f3d02a32.js → p-11c9a75c.js} +1 -1
- package/dist/zonos-elements/{p-9a868fb6.entry.js → p-12fa5286.entry.js} +1 -1
- package/dist/zonos-elements/{p-a58cb682.system.entry.js → p-2264efbe.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-05478b55.js → p-229f7399.js} +1 -1
- package/dist/zonos-elements/{p-d9c86ca5.system.entry.js → p-351f3207.system.entry.js} +1 -1
- package/dist/zonos-elements/p-3b904bf5.js +1 -0
- package/dist/zonos-elements/{p-bf8ae6bb.entry.js → p-3f0eb9df.entry.js} +1 -1
- package/dist/zonos-elements/p-43a5653e.system.entry.js +1 -0
- package/dist/zonos-elements/p-45dcfef2.system.js +1 -0
- package/dist/zonos-elements/{p-54bacb24.system.js → p-52c9d64e.system.js} +1 -1
- package/dist/zonos-elements/{p-3b1a5f38.entry.js → p-68e27f6d.entry.js} +1 -1
- package/dist/zonos-elements/{p-917aced6.system.entry.js → p-70794698.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b3eed5e5.system.js → p-7348fcb1.system.js} +1 -1
- package/dist/zonos-elements/{p-e2e28c07.system.entry.js → p-76faa16f.system.entry.js} +1 -1
- package/dist/zonos-elements/p-77b8c1b6.entry.js +1 -0
- package/dist/zonos-elements/p-7a4fc640.entry.js +1 -0
- package/dist/zonos-elements/{p-12ade4bb.system.entry.js → p-88a79bdb.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9a5a403b.system.entry.js → p-96702555.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0f90a98b.entry.js → p-a048ee0a.entry.js} +1 -1
- package/dist/zonos-elements/{p-ef0913d2.system.entry.js → p-b2b52158.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-4a4ce63c.entry.js → p-c71c9fbd.entry.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-f8acfefd.system.entry.js → p-c93473ba.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-11bcfa61.system.entry.js → p-cc779ac1.system.entry.js} +1 -1
- package/dist/zonos-elements/p-d491eab9.system.entry.js +1 -0
- package/dist/zonos-elements/{p-6f087aaf.entry.js → p-d559e191.entry.js} +1 -1
- package/dist/zonos-elements/p-da400c8f.entry.js +1 -0
- package/dist/zonos-elements/{p-e7347556.entry.js → p-ddd3099b.entry.js} +1 -1
- package/dist/zonos-elements/p-fce17550.entry.js +1 -0
- package/dist/zonos-elements/{p-1d4b6884.system.js → p-fff15925.system.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-53bd48de.js +0 -1
- package/dist/zonos-elements/p-12e3af70.system.entry.js +0 -1
- package/dist/zonos-elements/p-4baa8211.entry.js +0 -1
- package/dist/zonos-elements/p-5b0470ad.entry.js +0 -1
- package/dist/zonos-elements/p-aaa4693a.system.js +0 -1
- package/dist/zonos-elements/p-cfe17508.js +0 -1
- package/dist/zonos-elements/p-e3b0a988.entry.js +0 -1
- package/dist/zonos-elements/p-f4a27b43.entry.js +0 -1
- package/dist/zonos-elements/p-ff905aef.system.entry.js +0 -1
|
@@ -344,10 +344,16 @@ export const stringsBase = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'click to learn more',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'days',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'or',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'restricted items',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'weeks',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsChinese = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: '点击了解更多',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: '天',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: '或',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: '限制物品',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: '周',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsDanish = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'klik for at lære mere',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'dage',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'eller',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'begrænsede genstande',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'uger',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsDutch = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'klik om meer te leren',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'dagen',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'of',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'beperkte items',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'weken',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsFrench = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'cliquez pour en savoir plus',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'jours',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'ou',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'articles restreints',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'semaines',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsGerman = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'Klicken, um mehr zu erfahren',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'Tage',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'oder',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'eingeschränkte Artikel',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'Wochen',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsHebrew = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'לחץ למידע נוסף',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'ימים',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'או',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'פריטים מוגבלים',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'שבועות',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsIndonesian = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'klik untuk belajar lebih lanjut',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'hari',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'atau',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'barang terbatas',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'minggu',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsItalian = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'clicca per saperne di più',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'giorni',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'o',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'articoli limitati',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'settimane',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsJapanese = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: '詳細を知るにはクリック',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: '日々',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'または',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: '制限された項目',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: '週間',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsKorean = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: '자세히 알아보려면 클릭',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: '일',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: '또는',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: '제한된 항목',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: '주',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsNorwegian = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'klikk for å lære mer',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'dager',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'eller',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'begrensede elementer',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'uker',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsPolish = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'kliknij, aby dowiedzieć się więcej',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'dni',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'lub',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'przedmioty ograniczone',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'tygodnie',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsPortuguese = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'clique para saber mais',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'dias',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'ou',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'itens restritos',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'semanas',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsRussian = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'нажмите, чтобы узнать больше',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'дни',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'или',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'ограниченные предметы',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'недели',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsSpanish = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'haga clic para obtener más información',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'días',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'o',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'artículos restringidos',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'semanas',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsSwedish = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'klicka för att lära dig mer',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'dagar',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'eller',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'begränsade föremål',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'veckor',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsTurkish = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'daha fazla bilgi için tıklayın',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'günler',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'veya',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'kısıtlı öğeler',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'haftalar',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -344,10 +344,16 @@ export const stringsVietnamese = {
|
|
|
344
344
|
'click to learn more': {
|
|
345
345
|
value: 'nhấp để tìm hiểu thêm',
|
|
346
346
|
},
|
|
347
|
+
days: {
|
|
348
|
+
value: 'ngày',
|
|
349
|
+
},
|
|
347
350
|
or: {
|
|
348
351
|
value: 'hoặc',
|
|
349
352
|
},
|
|
350
353
|
'restricted items': {
|
|
351
354
|
value: 'mặt hàng bị hạn chế',
|
|
352
355
|
},
|
|
356
|
+
weeks: {
|
|
357
|
+
value: 'tuần',
|
|
358
|
+
},
|
|
353
359
|
};
|
|
@@ -22,7 +22,8 @@ import { stringsVietnamese } from "./translationStore/strings.vietnamese";
|
|
|
22
22
|
const { state: translationStore } = createStore(() => ({
|
|
23
23
|
translatedChunks: stringsBase,
|
|
24
24
|
}));
|
|
25
|
-
|
|
25
|
+
export { translationStore };
|
|
26
|
+
export const translationStoreUpdateLanguage = (language) => {
|
|
26
27
|
switch (language) {
|
|
27
28
|
case 'vi':
|
|
28
29
|
translationStore.translatedChunks = stringsVietnamese;
|
|
@@ -94,7 +95,7 @@ const translationStoreUpdateLanguage = (language) => {
|
|
|
94
95
|
* // No variables:
|
|
95
96
|
* translate('Above de minimis threshold for')
|
|
96
97
|
*/
|
|
97
|
-
const translate = (...[key, replacement]) => {
|
|
98
|
+
export const translate = (...[key, replacement]) => {
|
|
98
99
|
var _a, _b;
|
|
99
100
|
if (replacement) {
|
|
100
101
|
// replace all variables in the string
|
|
@@ -106,4 +107,3 @@ const translate = (...[key, replacement]) => {
|
|
|
106
107
|
}
|
|
107
108
|
return ((_b = translationStore.translatedChunks[key]) === null || _b === void 0 ? void 0 : _b.value) || key;
|
|
108
109
|
};
|
|
109
|
-
export { translate, translationStore, translationStoreUpdateLanguage };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { zonosStore } from "../../../store/zonosStore";
|
|
2
2
|
import { defaultCurrencyConverter } from "./defaultCurrencyConverter";
|
|
3
3
|
export const currencyDisplay = () => {
|
|
4
|
-
if (zonosStore.helloSettings.currencyBehavior === 'DISABLED'
|
|
4
|
+
if (zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
|
|
5
|
+
window.Zonos.isLegacyCheckout) {
|
|
5
6
|
return;
|
|
6
7
|
}
|
|
7
8
|
defaultCurrencyConverter();
|
|
@@ -39,7 +39,7 @@ export const currencyFormat = ({ amount, currency, }) => {
|
|
|
39
39
|
return result;
|
|
40
40
|
}
|
|
41
41
|
const currencyDisplay = (overrideCurrencyFormat === null || overrideCurrencyFormat === void 0 ? void 0 : overrideCurrencyFormat.currencyDisplay) || 'symbol';
|
|
42
|
-
const
|
|
42
|
+
const formattedNumber = new Intl.NumberFormat(window.navigator.language, {
|
|
43
43
|
currency: targetCurrency,
|
|
44
44
|
currencyDisplay,
|
|
45
45
|
minimumFractionDigits: minimumFractionDigits,
|
|
@@ -47,7 +47,7 @@ export const currencyFormat = ({ amount, currency, }) => {
|
|
|
47
47
|
}).format(amount);
|
|
48
48
|
// Move currency code to the end of the string if currencyDisplay is 'code'
|
|
49
49
|
const result = currencyDisplay === 'code'
|
|
50
|
-
? `${
|
|
51
|
-
:
|
|
50
|
+
? `${formattedNumber.replace(new RegExp(`${targetCurrency}\\s+`), '')} ${targetCurrency}`
|
|
51
|
+
: formattedNumber;
|
|
52
52
|
return result;
|
|
53
53
|
};
|
|
@@ -46,6 +46,10 @@ const injectDefaultWrapper = ({ position = 'bottom-right', }) => {
|
|
|
46
46
|
return mobileAnchorSelector;
|
|
47
47
|
};
|
|
48
48
|
export const initHello = async (helloSettings) => {
|
|
49
|
+
if (window.Zonos.isLegacyCheckout) {
|
|
50
|
+
log('Hello is disabled when isLegacyCheckout', 'info');
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
49
53
|
const { anchorElementSelector } = helloSettings;
|
|
50
54
|
// default to mobile anchor if anchorElementSelector is not provided
|
|
51
55
|
let helloAnchor = anchorElementSelector;
|
|
@@ -59,7 +59,7 @@ Zonos.zonosController = null;
|
|
|
59
59
|
Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, overrideCurrencyFormat, storeId, zonosApiKey, }) => {
|
|
60
60
|
_a.cartId = getCartIdFromQueryParam();
|
|
61
61
|
if (_a.doneInit) {
|
|
62
|
-
// do nothing if zonos is already
|
|
62
|
+
// do nothing if zonos is already initialized
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
65
|
log(`====== ZONOS DEBUG MODE: on (${_a.version}) ======`);
|
|
@@ -19,6 +19,10 @@ export const accountingFeeType = {
|
|
|
19
19
|
Shipping: 'SHIPPING',
|
|
20
20
|
Transaction: 'TRANSACTION',
|
|
21
21
|
};
|
|
22
|
+
export const additionalVerificationStatus = {
|
|
23
|
+
Disabled: 'DISABLED',
|
|
24
|
+
Enabled: 'ENABLED',
|
|
25
|
+
};
|
|
22
26
|
export const addressMatchThreshold = {
|
|
23
27
|
ExactAdministrativeArea: 'EXACT_ADMINISTRATIVE_AREA',
|
|
24
28
|
ExactCountry: 'EXACT_COUNTRY',
|
|
@@ -1043,6 +1047,10 @@ export const currencyCode = {
|
|
|
1043
1047
|
Zmw: 'ZMW',
|
|
1044
1048
|
Zwl: 'ZWL',
|
|
1045
1049
|
};
|
|
1050
|
+
export const currencyDefaultStatus = {
|
|
1051
|
+
Disabled: 'DISABLED',
|
|
1052
|
+
Enabled: 'ENABLED',
|
|
1053
|
+
};
|
|
1046
1054
|
export const currencySymbolLocation = {
|
|
1047
1055
|
After: 'AFTER',
|
|
1048
1056
|
Before: 'BEFORE',
|
|
@@ -1712,6 +1720,10 @@ export const lcgBillingMethod = {
|
|
|
1712
1720
|
BillingDgs: 'BILLING_DGS',
|
|
1713
1721
|
Legacy: 'LEGACY',
|
|
1714
1722
|
};
|
|
1723
|
+
export const linkType = {
|
|
1724
|
+
AccountOnboarding: 'ACCOUNT_ONBOARDING',
|
|
1725
|
+
AccountUpdate: 'ACCOUNT_UPDATE',
|
|
1726
|
+
};
|
|
1715
1727
|
export const manualClassificationBulkJobStatus = {
|
|
1716
1728
|
Cancelled: 'CANCELLED',
|
|
1717
1729
|
Completed: 'COMPLETED',
|
|
@@ -1963,6 +1975,7 @@ export const result = {
|
|
|
1963
1975
|
export const roundingMethod = {
|
|
1964
1976
|
Custom: 'CUSTOM',
|
|
1965
1977
|
Hundredth: 'HUNDREDTH',
|
|
1978
|
+
None: 'NONE',
|
|
1966
1979
|
Tenth: 'TENTH',
|
|
1967
1980
|
Thousandth: 'THOUSANDTH',
|
|
1968
1981
|
Whole: 'WHOLE',
|