@zonos/elements 1.3.12-alpha.6 → 1.3.12-alpha.8
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-fe91535c.js → cart-37e23be9.js} +199 -3
- package/dist/cjs/{sendErrorLog-fb356701.js → sendErrorLog-7b3d82e4.js} +1 -1
- package/dist/cjs/{submitGtag-62c97f6b.js → submitGtag-d0718b63.js} +1 -1
- package/dist/cjs/zonos-address_4.cjs.entry.js +2 -2
- package/dist/cjs/zonos-card_2.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_10.cjs.entry.js +3 -3
- package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
- package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
- package/dist/cjs/zonos-country-select_3.cjs.entry.js +1 -1
- package/dist/cjs/zonos-hello-dialog.cjs.entry.js +90 -26
- package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
- package/dist/cjs/zonos-payment.cjs.entry.js +1 -1
- package/dist/collection/components/hello/zonos-hello-dialog/assets/importIcon.svg +4 -0
- package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +85 -25
- 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/store/translationStore.js +19 -3
- package/dist/collection/components/utils/logging/sendLoadScriptLog.js +14 -1
- package/dist/collection/types/generated/graphql.customer.types.js +3 -0
- package/dist/components/stripe.js +199 -3
- package/dist/components/zonos-hello-dialog2.js +89 -25
- package/dist/esm/{cart-53f5c10c.js → cart-7961927b.js} +199 -3
- package/dist/esm/{sendErrorLog-1c2f093d.js → sendErrorLog-4d9581da.js} +1 -1
- package/dist/esm/{submitGtag-d2658ed5.js → submitGtag-4c1f09dc.js} +1 -1
- package/dist/esm/zonos-address_4.entry.js +2 -2
- package/dist/esm/zonos-card_2.entry.js +1 -1
- package/dist/esm/zonos-cart-items_10.entry.js +3 -3
- package/dist/esm/zonos-checkout.entry.js +3 -3
- package/dist/esm/zonos-controller.entry.js +1 -1
- package/dist/esm/zonos-country-flag.entry.js +1 -1
- package/dist/esm/zonos-country-select_3.entry.js +1 -1
- package/dist/esm/zonos-hello-dialog.entry.js +90 -26
- package/dist/esm/zonos-hello.entry.js +1 -1
- package/dist/esm/zonos-payment.entry.js +1 -1
- package/dist/esm-es5/cart-7961927b.js +1 -0
- package/dist/esm-es5/{sendErrorLog-1c2f093d.js → sendErrorLog-4d9581da.js} +1 -1
- package/dist/esm-es5/{submitGtag-d2658ed5.js → submitGtag-4c1f09dc.js} +1 -1
- package/dist/esm-es5/zonos-address_4.entry.js +1 -1
- package/dist/esm-es5/zonos-card_2.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_10.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_3.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-payment.entry.js +1 -1
- package/dist/scripts/loadZonos.js +1 -1
- package/dist/scripts/zonos.js +1 -1
- package/dist/scripts/zonosBase.js +1 -1
- package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +9 -0
- 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 +24 -1
- package/dist/types/components/utils/api/getCountryLandedCost.d.ts +10 -1
- package/dist/types/types/generated/graphql.customer.types.d.ts +16 -0
- package/dist/types/types/generated/graphql.customer.types.ts +28 -0
- package/dist/zonos-elements/assets/importIcon.svg +4 -0
- package/dist/zonos-elements/p-0bdac452.system.js +1 -0
- package/dist/zonos-elements/{p-beb55ff1.js → p-0c5d3595.js} +1 -1
- package/dist/zonos-elements/{p-6f6850aa.entry.js → p-2191b884.entry.js} +1 -1
- package/dist/zonos-elements/{p-c30554b1.system.entry.js → p-2da8e12a.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0cc5cfbd.system.entry.js → p-339c505b.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-969f36b3.entry.js → p-33f5634a.entry.js} +1 -1
- package/dist/zonos-elements/{p-7e6bc603.entry.js → p-3eb402c8.entry.js} +1 -1
- package/dist/zonos-elements/{p-9f4b0222.system.entry.js → p-431648d8.system.entry.js} +1 -1
- package/dist/zonos-elements/p-44842b39.system.entry.js +1 -0
- package/dist/zonos-elements/{p-df6fd81f.entry.js → p-44f4dd4b.entry.js} +1 -1
- package/dist/zonos-elements/{p-09d7a0f8.system.entry.js → p-4b3923d2.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-af17ec7f.entry.js → p-4eba3abe.entry.js} +1 -1
- package/dist/zonos-elements/p-5a3ceb49.entry.js +1 -0
- package/dist/zonos-elements/{p-bc25e1aa.js → p-63775f6d.js} +1 -1
- package/dist/zonos-elements/p-6e81adba.system.js +1 -1
- package/dist/zonos-elements/{p-fd7ab92d.system.entry.js → p-7efb9c12.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ac576bd7.system.entry.js → p-8eb876e8.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-d24296a6.system.js → p-a6c9c505.system.js} +1 -1
- package/dist/zonos-elements/{p-e9732f93.system.entry.js → p-bdb72353.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-b6c83e0b.system.entry.js → p-d6aa3011.system.entry.js} +1 -1
- package/dist/zonos-elements/p-dd4f3724.system.js +1 -0
- package/dist/zonos-elements/{p-bece7adb.entry.js → p-e1796e2a.entry.js} +1 -1
- package/dist/zonos-elements/{p-ff32ea53.entry.js → p-e4919505.entry.js} +1 -1
- package/dist/zonos-elements/p-e4be7bd8.js +1 -0
- package/dist/zonos-elements/{p-ea1afd2d.system.entry.js → p-e5fd850c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-19dbd8c2.entry.js → p-e90e2126.entry.js} +1 -1
- package/dist/zonos-elements/{p-125043b5.entry.js → p-f0b5d2fb.entry.js} +1 -1
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-53f5c10c.js +0 -1
- package/dist/zonos-elements/p-176f65e1.system.entry.js +0 -1
- package/dist/zonos-elements/p-3555ce7c.system.js +0 -1
- package/dist/zonos-elements/p-4cc4aba3.system.js +0 -1
- package/dist/zonos-elements/p-aa46e052.js +0 -1
- package/dist/zonos-elements/p-ecc72526.entry.js +0 -1
|
@@ -3,6 +3,12 @@ import { i as isDarkColor } from './isDarkColor.js';
|
|
|
3
3
|
import { g as getBorderRadius } from './getBorderRadius.js';
|
|
4
4
|
|
|
5
5
|
const stringsArabic = {
|
|
6
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
7
|
+
value: '${percentage} ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز ${threshold} بالإضافة إلى رسوم معاملة إدخال الاستيراد ورسوم MPI.',
|
|
8
|
+
},
|
|
9
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
10
|
+
value: '${percentage} ضريبة القيمة المضافة مستحقة على أي طلب يتجاوز ${threshold}.',
|
|
11
|
+
},
|
|
6
12
|
'Above de minimis threshold for': {
|
|
7
13
|
value: 'أعلى من الحد الأدنى لـ',
|
|
8
14
|
},
|
|
@@ -96,6 +102,9 @@ const stringsArabic = {
|
|
|
96
102
|
'Order total': {
|
|
97
103
|
value: 'إجمالي الطلبية',
|
|
98
104
|
},
|
|
105
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
106
|
+
value: 'يجب أن تتجاوز الطلبيات إلى ${countryName} ${threshold} ليتم شحنها.',
|
|
107
|
+
},
|
|
99
108
|
Pay: {
|
|
100
109
|
value: 'دفع',
|
|
101
110
|
},
|
|
@@ -213,6 +222,12 @@ const stringsArabic = {
|
|
|
213
222
|
};
|
|
214
223
|
|
|
215
224
|
const stringsBase = {
|
|
225
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
226
|
+
value: '${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.',
|
|
227
|
+
},
|
|
228
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
229
|
+
value: '${percentage} GST due on any order above ${threshold}.',
|
|
230
|
+
},
|
|
216
231
|
'Above de minimis threshold for': {
|
|
217
232
|
value: 'Above de minimis threshold for',
|
|
218
233
|
},
|
|
@@ -306,6 +321,9 @@ const stringsBase = {
|
|
|
306
321
|
'Order total': {
|
|
307
322
|
value: 'Order total',
|
|
308
323
|
},
|
|
324
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
325
|
+
value: 'Orders to ${countryName} must be over ${threshold} to ship.',
|
|
326
|
+
},
|
|
309
327
|
Pay: {
|
|
310
328
|
value: 'Pay',
|
|
311
329
|
},
|
|
@@ -423,6 +441,12 @@ const stringsBase = {
|
|
|
423
441
|
};
|
|
424
442
|
|
|
425
443
|
const stringsChinese = {
|
|
444
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
445
|
+
value: '任何订单超过${threshold},除了需缴纳${percentage}的商品及服务税外,还包括进口货物申报费和MPI征费。',
|
|
446
|
+
},
|
|
447
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
448
|
+
value: '任何订单超过${threshold},需缴纳${percentage}的商品及服务税。',
|
|
449
|
+
},
|
|
426
450
|
'Above de minimis threshold for': {
|
|
427
451
|
value: '超过最低征税门槛',
|
|
428
452
|
},
|
|
@@ -516,6 +540,9 @@ const stringsChinese = {
|
|
|
516
540
|
'Order total': {
|
|
517
541
|
value: '订单总计',
|
|
518
542
|
},
|
|
543
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
544
|
+
value: '寄往${countryName}的订单必须超过${threshold}才能发货。',
|
|
545
|
+
},
|
|
519
546
|
Pay: {
|
|
520
547
|
value: '支付',
|
|
521
548
|
},
|
|
@@ -633,6 +660,12 @@ const stringsChinese = {
|
|
|
633
660
|
};
|
|
634
661
|
|
|
635
662
|
const stringsDanish = {
|
|
663
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
664
|
+
value: '${percentage} GST skyldig på enhver ordre over ${threshold}, sammen med et import indgangstransaktionsgebyr og MPI-afgift.',
|
|
665
|
+
},
|
|
666
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
667
|
+
value: '${percentage} GST skyldig på enhver ordre over ${threshold}.',
|
|
668
|
+
},
|
|
636
669
|
'Above de minimis threshold for': {
|
|
637
670
|
value: 'Over de minimis-grænsen for',
|
|
638
671
|
},
|
|
@@ -726,6 +759,9 @@ const stringsDanish = {
|
|
|
726
759
|
'Order total': {
|
|
727
760
|
value: 'Ordresum',
|
|
728
761
|
},
|
|
762
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
763
|
+
value: 'Ordrer til ${countryName} skal være over ${threshold} for at blive sendt.',
|
|
764
|
+
},
|
|
729
765
|
Pay: {
|
|
730
766
|
value: 'Betal',
|
|
731
767
|
},
|
|
@@ -843,6 +879,12 @@ const stringsDanish = {
|
|
|
843
879
|
};
|
|
844
880
|
|
|
845
881
|
const stringsDutch = {
|
|
882
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
883
|
+
value: '${percentage} BTW verschuldigd op elke bestelling boven ${threshold}, inclusief een invoertransactiekosten en MPI-heffing.',
|
|
884
|
+
},
|
|
885
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
886
|
+
value: '${percentage} BTW verschuldigd op elke bestelling boven ${threshold}.',
|
|
887
|
+
},
|
|
846
888
|
'Above de minimis threshold for': {
|
|
847
889
|
value: 'Boven de minimale drempel voor',
|
|
848
890
|
},
|
|
@@ -936,6 +978,9 @@ const stringsDutch = {
|
|
|
936
978
|
'Order total': {
|
|
937
979
|
value: 'Totaal bestelling',
|
|
938
980
|
},
|
|
981
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
982
|
+
value: 'Bestellingen naar ${countryName} moeten meer dan ${threshold} zijn om verzonden te worden.',
|
|
983
|
+
},
|
|
939
984
|
Pay: {
|
|
940
985
|
value: 'Betalen',
|
|
941
986
|
},
|
|
@@ -1053,6 +1098,12 @@ const stringsDutch = {
|
|
|
1053
1098
|
};
|
|
1054
1099
|
|
|
1055
1100
|
const stringsFrench = {
|
|
1101
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
1102
|
+
value: "${percentage} de TVA due sur toute commande supérieure à ${threshold}, ainsi qu'une taxe de transaction d'entrée d'importation et une cotisation MPI.",
|
|
1103
|
+
},
|
|
1104
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
1105
|
+
value: '${percentage} de TVA due sur toute commande supérieure à ${threshold}.',
|
|
1106
|
+
},
|
|
1056
1107
|
'Above de minimis threshold for': {
|
|
1057
1108
|
value: 'Au-dessus du seuil de minimis pour',
|
|
1058
1109
|
},
|
|
@@ -1146,6 +1197,9 @@ const stringsFrench = {
|
|
|
1146
1197
|
'Order total': {
|
|
1147
1198
|
value: 'Total de la commande',
|
|
1148
1199
|
},
|
|
1200
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
1201
|
+
value: 'Les commandes à destination de ${countryName} doivent dépasser ${threshold} pour être expédiées.',
|
|
1202
|
+
},
|
|
1149
1203
|
Pay: {
|
|
1150
1204
|
value: 'Payer',
|
|
1151
1205
|
},
|
|
@@ -1263,6 +1317,12 @@ const stringsFrench = {
|
|
|
1263
1317
|
};
|
|
1264
1318
|
|
|
1265
1319
|
const stringsGerman = {
|
|
1320
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
1321
|
+
value: '${percentage} MwSt. fällig bei jeder Bestellung über ${threshold}, zuzüglich einer Einfuhrabwicklungskosten und MPI-Abgabe.',
|
|
1322
|
+
},
|
|
1323
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
1324
|
+
value: '${percentage} MwSt. fällig bei jeder Bestellung über ${threshold}.',
|
|
1325
|
+
},
|
|
1266
1326
|
'Above de minimis threshold for': {
|
|
1267
1327
|
value: 'Über der Mindestgrenze für',
|
|
1268
1328
|
},
|
|
@@ -1356,6 +1416,9 @@ const stringsGerman = {
|
|
|
1356
1416
|
'Order total': {
|
|
1357
1417
|
value: 'Bestellsumme',
|
|
1358
1418
|
},
|
|
1419
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
1420
|
+
value: 'Bestellungen nach ${countryName} müssen über ${threshold} liegen, um versendet zu werden.',
|
|
1421
|
+
},
|
|
1359
1422
|
Pay: {
|
|
1360
1423
|
value: 'Bezahlen',
|
|
1361
1424
|
},
|
|
@@ -1473,6 +1536,12 @@ const stringsGerman = {
|
|
|
1473
1536
|
};
|
|
1474
1537
|
|
|
1475
1538
|
const stringsHebrew = {
|
|
1539
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
1540
|
+
value: '${percentage} מע"מ חל על כל הזמנה מעל ${threshold}, יחד עם עמלת עסקת כניסת ייבוא ומס MPI.',
|
|
1541
|
+
},
|
|
1542
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
1543
|
+
value: '${percentage} מע"מ חל על כל הזמנה מעל ${threshold}.',
|
|
1544
|
+
},
|
|
1476
1545
|
'Above de minimis threshold for': {
|
|
1477
1546
|
value: 'מעל סף המינימום עבור',
|
|
1478
1547
|
},
|
|
@@ -1566,6 +1635,9 @@ const stringsHebrew = {
|
|
|
1566
1635
|
'Order total': {
|
|
1567
1636
|
value: 'סה"כ ההזמנה',
|
|
1568
1637
|
},
|
|
1638
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
1639
|
+
value: 'הזמנות ל-${countryName} חייבות לעבור את הסכום של ${threshold} כדי להישלח.',
|
|
1640
|
+
},
|
|
1569
1641
|
Pay: {
|
|
1570
1642
|
value: 'לשלם',
|
|
1571
1643
|
},
|
|
@@ -1683,6 +1755,12 @@ const stringsHebrew = {
|
|
|
1683
1755
|
};
|
|
1684
1756
|
|
|
1685
1757
|
const stringsIndonesian = {
|
|
1758
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
1759
|
+
value: '${percentage} PPN yang harus dibayar untuk setiap pesanan di atas ${threshold}, termasuk biaya transaksi masuk impor dan pajak MPI.',
|
|
1760
|
+
},
|
|
1761
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
1762
|
+
value: '${percentage} PPN yang harus dibayar untuk setiap pesanan di atas ${threshold}.',
|
|
1763
|
+
},
|
|
1686
1764
|
'Above de minimis threshold for': {
|
|
1687
1765
|
value: 'Di atas ambang batas de minimis untuk',
|
|
1688
1766
|
},
|
|
@@ -1776,6 +1854,9 @@ const stringsIndonesian = {
|
|
|
1776
1854
|
'Order total': {
|
|
1777
1855
|
value: 'Total pesanan',
|
|
1778
1856
|
},
|
|
1857
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
1858
|
+
value: 'Pesanan ke ${countryName} harus lebih dari ${threshold} untuk dikirim.',
|
|
1859
|
+
},
|
|
1779
1860
|
Pay: {
|
|
1780
1861
|
value: 'Bayar',
|
|
1781
1862
|
},
|
|
@@ -1893,6 +1974,12 @@ const stringsIndonesian = {
|
|
|
1893
1974
|
};
|
|
1894
1975
|
|
|
1895
1976
|
const stringsItalian = {
|
|
1977
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
1978
|
+
value: "${percentage} di IVA dovuta su qualsiasi ordine superiore a ${threshold}, oltre a una tassa di transazione di entrata importazione e un'imposta MPI.",
|
|
1979
|
+
},
|
|
1980
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
1981
|
+
value: '${percentage} di IVA dovuta su qualsiasi ordine superiore a ${threshold}.',
|
|
1982
|
+
},
|
|
1896
1983
|
'Above de minimis threshold for': {
|
|
1897
1984
|
value: 'Sopra la soglia di minimis per',
|
|
1898
1985
|
},
|
|
@@ -1986,6 +2073,9 @@ const stringsItalian = {
|
|
|
1986
2073
|
'Order total': {
|
|
1987
2074
|
value: 'Totale ordine',
|
|
1988
2075
|
},
|
|
2076
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
2077
|
+
value: 'Gli ordini per ${countryName} devono superare ${threshold} per essere spediti.',
|
|
2078
|
+
},
|
|
1989
2079
|
Pay: {
|
|
1990
2080
|
value: 'Paga',
|
|
1991
2081
|
},
|
|
@@ -2103,6 +2193,12 @@ const stringsItalian = {
|
|
|
2103
2193
|
};
|
|
2104
2194
|
|
|
2105
2195
|
const stringsJapanese = {
|
|
2196
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
2197
|
+
value: '${threshold}を超えるすべての注文には、${percentage}の消費税に加えて、輸入エントリー取引手数料とMPI課税が適用されます。',
|
|
2198
|
+
},
|
|
2199
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
2200
|
+
value: 'すべての注文で${threshold}を超えると、${percentage}の消費税が課せられます。',
|
|
2201
|
+
},
|
|
2106
2202
|
'Above de minimis threshold for': {
|
|
2107
2203
|
value: 'デミニマスの閾値を超える',
|
|
2108
2204
|
},
|
|
@@ -2196,6 +2292,9 @@ const stringsJapanese = {
|
|
|
2196
2292
|
'Order total': {
|
|
2197
2293
|
value: 'ご注文合計',
|
|
2198
2294
|
},
|
|
2295
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
2296
|
+
value: '${countryName}への注文は${threshold}を超えなければなりません。',
|
|
2297
|
+
},
|
|
2199
2298
|
Pay: {
|
|
2200
2299
|
value: '支払う',
|
|
2201
2300
|
},
|
|
@@ -2313,6 +2412,12 @@ const stringsJapanese = {
|
|
|
2313
2412
|
};
|
|
2314
2413
|
|
|
2315
2414
|
const stringsKorean = {
|
|
2415
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
2416
|
+
value: '${threshold} 이상의 모든 주문에 대해 ${percentage}의 부가가치세와 함께 수입 통관 수수료 및 MPI 부담금이 부과됩니다.',
|
|
2417
|
+
},
|
|
2418
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
2419
|
+
value: '${threshold} 이상의 모든 주문에 대해 ${percentage}의 부가가치세가 부과됩니다.',
|
|
2420
|
+
},
|
|
2316
2421
|
'Above de minimis threshold for': {
|
|
2317
2422
|
value: '최소 임계값을 초과하여',
|
|
2318
2423
|
},
|
|
@@ -2406,6 +2511,9 @@ const stringsKorean = {
|
|
|
2406
2511
|
'Order total': {
|
|
2407
2512
|
value: '주문 총액',
|
|
2408
2513
|
},
|
|
2514
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
2515
|
+
value: '${countryName}으로의 주문은 ${threshold}을(를) 초과해야 합니다.',
|
|
2516
|
+
},
|
|
2409
2517
|
Pay: {
|
|
2410
2518
|
value: '지불',
|
|
2411
2519
|
},
|
|
@@ -2523,6 +2631,12 @@ const stringsKorean = {
|
|
|
2523
2631
|
};
|
|
2524
2632
|
|
|
2525
2633
|
const stringsNorwegian = {
|
|
2634
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
2635
|
+
value: '${percentage} GST skyldig for enhver ordre over ${threshold}, sammen med et importinngangstransaksjonsgebyr og MPI-avgift.',
|
|
2636
|
+
},
|
|
2637
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
2638
|
+
value: '${percentage} GST skyldig for enhver ordre over ${threshold}.',
|
|
2639
|
+
},
|
|
2526
2640
|
'Above de minimis threshold for': {
|
|
2527
2641
|
value: 'Over minstegrensen for',
|
|
2528
2642
|
},
|
|
@@ -2616,6 +2730,9 @@ const stringsNorwegian = {
|
|
|
2616
2730
|
'Order total': {
|
|
2617
2731
|
value: 'Totalt beløp',
|
|
2618
2732
|
},
|
|
2733
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
2734
|
+
value: 'Bestillinger til ${countryName} må være over ${threshold} for å sendes.',
|
|
2735
|
+
},
|
|
2619
2736
|
Pay: {
|
|
2620
2737
|
value: 'Betal',
|
|
2621
2738
|
},
|
|
@@ -2733,6 +2850,12 @@ const stringsNorwegian = {
|
|
|
2733
2850
|
};
|
|
2734
2851
|
|
|
2735
2852
|
const stringsPolish = {
|
|
2853
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
2854
|
+
value: '${percentage} VAT należny od każdego zamówienia powyżej ${threshold}, wraz z opłatą za transakcję wprowadzania importu i opłatą MPI.',
|
|
2855
|
+
},
|
|
2856
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
2857
|
+
value: '${percentage} VAT należny od każdego zamówienia powyżej ${threshold}.',
|
|
2858
|
+
},
|
|
2736
2859
|
'Above de minimis threshold for': {
|
|
2737
2860
|
value: 'Powyżej progu minimis dla',
|
|
2738
2861
|
},
|
|
@@ -2826,6 +2949,9 @@ const stringsPolish = {
|
|
|
2826
2949
|
'Order total': {
|
|
2827
2950
|
value: 'Łączna kwota zamówienia',
|
|
2828
2951
|
},
|
|
2952
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
2953
|
+
value: 'Zamówienia do ${countryName} muszą przekraczać ${threshold}, aby zostały wysłane.',
|
|
2954
|
+
},
|
|
2829
2955
|
Pay: {
|
|
2830
2956
|
value: 'Zapłać',
|
|
2831
2957
|
},
|
|
@@ -2943,6 +3069,12 @@ const stringsPolish = {
|
|
|
2943
3069
|
};
|
|
2944
3070
|
|
|
2945
3071
|
const stringsPortuguese = {
|
|
3072
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3073
|
+
value: '${percentage} de GST devido em qualquer pedido acima de ${threshold}, juntamente com uma taxa de transação de entrada de importação e cobrança de MPI.',
|
|
3074
|
+
},
|
|
3075
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
3076
|
+
value: '${percentage} de GST devido em qualquer pedido acima de ${threshold}.',
|
|
3077
|
+
},
|
|
2946
3078
|
'Above de minimis threshold for': {
|
|
2947
3079
|
value: 'Acima do limite de isenção para',
|
|
2948
3080
|
},
|
|
@@ -3036,6 +3168,9 @@ const stringsPortuguese = {
|
|
|
3036
3168
|
'Order total': {
|
|
3037
3169
|
value: 'Total do pedido',
|
|
3038
3170
|
},
|
|
3171
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
3172
|
+
value: 'Pedidos para ${countryName} devem ser acima de ${threshold} para serem enviados.',
|
|
3173
|
+
},
|
|
3039
3174
|
Pay: {
|
|
3040
3175
|
value: 'Pagar',
|
|
3041
3176
|
},
|
|
@@ -3153,6 +3288,12 @@ const stringsPortuguese = {
|
|
|
3153
3288
|
};
|
|
3154
3289
|
|
|
3155
3290
|
const stringsRussian = {
|
|
3291
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3292
|
+
value: '${percentage} НДС за любой заказ свыше ${threshold}, включая комиссию за ввозную транзакцию и сбор MPI.',
|
|
3293
|
+
},
|
|
3294
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
3295
|
+
value: '${percentage} НДС за любой заказ свыше ${threshold}.',
|
|
3296
|
+
},
|
|
3156
3297
|
'Above de minimis threshold for': {
|
|
3157
3298
|
value: 'Выше минимального порога для',
|
|
3158
3299
|
},
|
|
@@ -3246,6 +3387,9 @@ const stringsRussian = {
|
|
|
3246
3387
|
'Order total': {
|
|
3247
3388
|
value: 'Итого',
|
|
3248
3389
|
},
|
|
3390
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
3391
|
+
value: 'Заказы в ${countryName} должны превышать ${threshold} для отправки.',
|
|
3392
|
+
},
|
|
3249
3393
|
Pay: {
|
|
3250
3394
|
value: 'Оплатить',
|
|
3251
3395
|
},
|
|
@@ -3363,6 +3507,12 @@ const stringsRussian = {
|
|
|
3363
3507
|
};
|
|
3364
3508
|
|
|
3365
3509
|
const stringsSpanish = {
|
|
3510
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3511
|
+
value: '${percentage} del IVA debido en cualquier pedido superior a ${threshold}, junto con una tarifa de transacción de entrada de importación y un gravamen MPI.',
|
|
3512
|
+
},
|
|
3513
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
3514
|
+
value: 'El ${percentage} del IVA se debe en cualquier pedido superior a ${threshold}.',
|
|
3515
|
+
},
|
|
3366
3516
|
'Above de minimis threshold for': {
|
|
3367
3517
|
value: 'Por encima del umbral mínimo para',
|
|
3368
3518
|
},
|
|
@@ -3456,6 +3606,9 @@ const stringsSpanish = {
|
|
|
3456
3606
|
'Order total': {
|
|
3457
3607
|
value: 'Total del pedido',
|
|
3458
3608
|
},
|
|
3609
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
3610
|
+
value: 'Los pedidos a ${countryName} deben superar los ${threshold} para ser enviados.',
|
|
3611
|
+
},
|
|
3459
3612
|
Pay: {
|
|
3460
3613
|
value: 'Pagar',
|
|
3461
3614
|
},
|
|
@@ -3573,6 +3726,12 @@ const stringsSpanish = {
|
|
|
3573
3726
|
};
|
|
3574
3727
|
|
|
3575
3728
|
const stringsSwedish = {
|
|
3729
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3730
|
+
value: '${percentage} moms på varje beställning över ${threshold}, inklusive en importtransaktionsavgift och MPI-avgift.',
|
|
3731
|
+
},
|
|
3732
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
3733
|
+
value: '${percentage} moms på varje beställning över ${threshold}.',
|
|
3734
|
+
},
|
|
3576
3735
|
'Above de minimis threshold for': {
|
|
3577
3736
|
value: 'Över minimibeloppet för',
|
|
3578
3737
|
},
|
|
@@ -3666,6 +3825,9 @@ const stringsSwedish = {
|
|
|
3666
3825
|
'Order total': {
|
|
3667
3826
|
value: 'Totalt belopp för beställningen',
|
|
3668
3827
|
},
|
|
3828
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
3829
|
+
value: 'Beställningar till ${countryName} måste överstiga ${threshold} för att skickas.',
|
|
3830
|
+
},
|
|
3669
3831
|
Pay: {
|
|
3670
3832
|
value: 'Betala',
|
|
3671
3833
|
},
|
|
@@ -3783,6 +3945,12 @@ const stringsSwedish = {
|
|
|
3783
3945
|
};
|
|
3784
3946
|
|
|
3785
3947
|
const stringsTurkish = {
|
|
3948
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
3949
|
+
value: '${threshold} üzerindeki her sipariş için ${percentage} KDV, ithalat giriş işlem ücreti ve MPI vergisi ile birlikte ödenir.',
|
|
3950
|
+
},
|
|
3951
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
3952
|
+
value: '${threshold} üzerindeki her sipariş için ${percentage} KDV ödenir.',
|
|
3953
|
+
},
|
|
3786
3954
|
'Above de minimis threshold for': {
|
|
3787
3955
|
value: 'Minimum sınırın üzerinde',
|
|
3788
3956
|
},
|
|
@@ -3876,6 +4044,9 @@ const stringsTurkish = {
|
|
|
3876
4044
|
'Order total': {
|
|
3877
4045
|
value: 'Sipariş toplamı',
|
|
3878
4046
|
},
|
|
4047
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
4048
|
+
value: '${countryName} ülkesine yapılacak siparişlerin ${threshold} üzerinde olması gerekir.',
|
|
4049
|
+
},
|
|
3879
4050
|
Pay: {
|
|
3880
4051
|
value: 'Öde',
|
|
3881
4052
|
},
|
|
@@ -3993,6 +4164,12 @@ const stringsTurkish = {
|
|
|
3993
4164
|
};
|
|
3994
4165
|
|
|
3995
4166
|
const stringsVietnamese = {
|
|
4167
|
+
'${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.': {
|
|
4168
|
+
value: '${percentage} GST phải trả cho bất kỳ đơn hàng nào trên ${threshold}, cùng với phí giao dịch nhập khẩu và thuế MPI.',
|
|
4169
|
+
},
|
|
4170
|
+
'${percentage} GST due on any order above ${threshold}.': {
|
|
4171
|
+
value: '${percentage} GST phải trả cho bất kỳ đơn hàng nào trên ${threshold}.',
|
|
4172
|
+
},
|
|
3996
4173
|
'Above de minimis threshold for': {
|
|
3997
4174
|
value: 'Vượt ngưỡng miễn thuế đối với',
|
|
3998
4175
|
},
|
|
@@ -4086,6 +4263,9 @@ const stringsVietnamese = {
|
|
|
4086
4263
|
'Order total': {
|
|
4087
4264
|
value: 'Tổng đơn hàng',
|
|
4088
4265
|
},
|
|
4266
|
+
'Orders to ${countryName} must be over ${threshold} to ship.': {
|
|
4267
|
+
value: 'Đơn hàng đến ${countryName} phải trên ${threshold} mới được gửi.',
|
|
4268
|
+
},
|
|
4089
4269
|
Pay: {
|
|
4090
4270
|
value: 'Thanh toán',
|
|
4091
4271
|
},
|
|
@@ -4269,9 +4449,25 @@ const translationStoreUpdateLanguage = (language) => {
|
|
|
4269
4449
|
break;
|
|
4270
4450
|
}
|
|
4271
4451
|
};
|
|
4272
|
-
|
|
4273
|
-
|
|
4274
|
-
|
|
4452
|
+
/**
|
|
4453
|
+
* Translate a string with variables if variable pattern is present in the string
|
|
4454
|
+
* @example
|
|
4455
|
+
* // Require variables:
|
|
4456
|
+
* translate('${percentage} GST due on any order above ${threshold}.', { percentage: '5%', threshold: '$100' })
|
|
4457
|
+
* // No variables:
|
|
4458
|
+
* translate('Above de minimis threshold for')
|
|
4459
|
+
*/
|
|
4460
|
+
const translate = (...[key, replacement]) => {
|
|
4461
|
+
var _a, _b;
|
|
4462
|
+
if (replacement) {
|
|
4463
|
+
// replace all variables in the string
|
|
4464
|
+
let translatedString = ((_a = translationStore.translatedChunks[key]) === null || _a === void 0 ? void 0 : _a.value) || key;
|
|
4465
|
+
Object.entries(replacement).forEach(([replacementKey, replaceValue]) => {
|
|
4466
|
+
translatedString = translatedString.replace(new RegExp(`\\$\\{${replacementKey}\\}`, 'g'), replaceValue);
|
|
4467
|
+
});
|
|
4468
|
+
return translatedString;
|
|
4469
|
+
}
|
|
4470
|
+
return ((_b = translationStore.translatedChunks[key]) === null || _b === void 0 ? void 0 : _b.value) || key;
|
|
4275
4471
|
};
|
|
4276
4472
|
|
|
4277
4473
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
@@ -35,6 +35,12 @@ const BagIcon = `<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xml
|
|
|
35
35
|
</svg>
|
|
36
36
|
`;
|
|
37
37
|
|
|
38
|
+
const ImportIcon = `<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
39
|
+
<path d="M9.35028 11.5744C9.05738 11.2815 8.58251 11.2815 8.28962 11.5744C7.99672 11.8673 7.99672 12.3422 8.28962 12.635L11.2917 15.6372C11.6823 16.0277 12.3154 16.0277 12.7059 15.6372L15.708 12.6351C16.0009 12.3422 16.0009 11.8674 15.708 11.5745C15.4151 11.2816 14.9402 11.2816 14.6473 11.5745L12.7488 13.4729V4.68005C12.7488 4.26584 12.413 3.93005 11.9988 3.93005C11.5846 3.93005 11.2488 4.26584 11.2488 4.68005L11.2488 13.4729L9.35028 11.5744Z" fill="#4D505A"/>
|
|
40
|
+
<path d="M20 14C20 13.5858 19.6642 13.25 19.25 13.25C18.8358 13.25 18.5 13.5858 18.5 14L18.5 17.25C18.5 17.9404 17.9404 18.5 17.25 18.5L6.75 18.5C6.05964 18.5 5.5 17.9404 5.5 17.25L5.5 14C5.5 13.5858 5.16421 13.25 4.75 13.25C4.33579 13.25 4 13.5858 4 14V17.25C4 18.7688 5.23122 20 6.75 20H17.25C18.7688 20 20 18.7688 20 17.25L20 14Z" fill="#4D505A"/>
|
|
41
|
+
</svg>
|
|
42
|
+
`;
|
|
43
|
+
|
|
38
44
|
const MessageIcon = `<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">
|
|
39
45
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>
|
|
40
46
|
</svg>
|
|
@@ -81,6 +87,81 @@ const ZonosHelloDialog = /*@__PURE__*/ proxyCustomElement(class ZonosHelloDialog
|
|
|
81
87
|
this.setShowLanguageSelect = async (value) => {
|
|
82
88
|
this.showLanguageSelect = value;
|
|
83
89
|
};
|
|
90
|
+
this.getDutyMessage = () => {
|
|
91
|
+
const { countryLandedCost } = localizationStore;
|
|
92
|
+
// Our Robby API spells deminimis wrong here
|
|
93
|
+
const dutyDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.dutyDeminimus)
|
|
94
|
+
? currencyFormat(countryLandedCost.dutyDeminimus)
|
|
95
|
+
: null;
|
|
96
|
+
// If Canada, use 40 CAD (courier duty de minimis)
|
|
97
|
+
const dutyDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
|
|
98
|
+
? currencyFormat(40)
|
|
99
|
+
: dutyDeminimis;
|
|
100
|
+
// If deminimis is undefined or null, assume it's $0
|
|
101
|
+
return dutyDeminimisToUse
|
|
102
|
+
? `${translate('Spend')} ${dutyDeminimisToUse} ${translate('duty free')}`
|
|
103
|
+
: translate('Duties will apply to all orders');
|
|
104
|
+
};
|
|
105
|
+
this.getTaxMessage = () => {
|
|
106
|
+
const { countryLandedCost } = localizationStore;
|
|
107
|
+
// Our Robby API spells deminimis wrong here
|
|
108
|
+
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
109
|
+
? currencyFormat(countryLandedCost.vatTaxDeminimus)
|
|
110
|
+
: null;
|
|
111
|
+
// If Canada, use 150 CAD (courier tax de minimis)
|
|
112
|
+
const taxDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
|
|
113
|
+
? currencyFormat(150)
|
|
114
|
+
: taxDeminimis;
|
|
115
|
+
return taxDeminimisToUse
|
|
116
|
+
? `${translate('Spend')} ${taxDeminimisToUse} ${translate('tax free')}`
|
|
117
|
+
: translate('Taxes will apply to all orders');
|
|
118
|
+
};
|
|
119
|
+
this.getUkDutyTaxMessage = (landedCost) => {
|
|
120
|
+
if (landedCost.allowLowValueOrders) {
|
|
121
|
+
// show nothing if low value orders are allowed
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
const dutyDeminimis = landedCost.dutyDeminimus;
|
|
125
|
+
return translate('Orders to ${countryName} must be over ${threshold} to ship.', {
|
|
126
|
+
countryName: 'United Kingdom',
|
|
127
|
+
threshold: currencyFormat(dutyDeminimis),
|
|
128
|
+
});
|
|
129
|
+
};
|
|
130
|
+
this.getAustraliaDutyTaxMessage = (landedCost) => {
|
|
131
|
+
return translate('${percentage} GST due on any order above ${threshold}.', {
|
|
132
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
133
|
+
threshold: currencyFormat(landedCost.vatTaxDeminimus),
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
this.getNewZealandDutyTaxMessge = (landedCost) => {
|
|
137
|
+
return translate('${percentage} GST due on any order above ${threshold} along with an import entry transaction fee and MPI levy.', {
|
|
138
|
+
percentage: `${landedCost.vatTaxRate * 100}%`,
|
|
139
|
+
threshold: currencyFormat(landedCost.vatTaxDeminimus),
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Get additional duty tax message if selected country has tax id
|
|
144
|
+
*/
|
|
145
|
+
this.getAdditionalDutyTaxMessage = () => {
|
|
146
|
+
if (!localizationStore.countryLandedCost) {
|
|
147
|
+
return null;
|
|
148
|
+
}
|
|
149
|
+
// only show the message if the store has a tax id for selected country
|
|
150
|
+
if (!localizationStore.countryLandedCost.hasTaxId) {
|
|
151
|
+
return null;
|
|
152
|
+
}
|
|
153
|
+
switch (localizationStore.countryLandedCost.countryCode) {
|
|
154
|
+
case 'GB':
|
|
155
|
+
return this.getUkDutyTaxMessage(localizationStore.countryLandedCost);
|
|
156
|
+
case 'AU':
|
|
157
|
+
return this.getAustraliaDutyTaxMessage(localizationStore.countryLandedCost);
|
|
158
|
+
case 'NZ':
|
|
159
|
+
return this.getNewZealandDutyTaxMessge(localizationStore.countryLandedCost);
|
|
160
|
+
default:
|
|
161
|
+
// show nothing
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
};
|
|
84
165
|
this.isOpen = false;
|
|
85
166
|
this.setIsOpen = () => { };
|
|
86
167
|
this.mobileLocationOverride = undefined;
|
|
@@ -102,30 +183,13 @@ const ZonosHelloDialog = /*@__PURE__*/ proxyCustomElement(class ZonosHelloDialog
|
|
|
102
183
|
}
|
|
103
184
|
render() {
|
|
104
185
|
var _a;
|
|
105
|
-
const {
|
|
106
|
-
//
|
|
107
|
-
const
|
|
108
|
-
? currencyFormat(countryLandedCost.dutyDeminimus)
|
|
109
|
-
: null;
|
|
110
|
-
// If Canada, use 40 CAD (courier duty de minimis)
|
|
111
|
-
const dutyDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
|
|
112
|
-
? currencyFormat(40)
|
|
113
|
-
: dutyDeminimis;
|
|
186
|
+
const { selectedCountryCode } = localizationStore;
|
|
187
|
+
// If deminimis is undefined or null, assume it's $0
|
|
188
|
+
const dutyDeMinimisMessage = this.getDutyMessage();
|
|
114
189
|
// If deminimis is undefined or null, assume it's $0
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
// Our Robby API spells deminimis wrong here
|
|
119
|
-
const taxDeminimis = (countryLandedCost === null || countryLandedCost === void 0 ? void 0 : countryLandedCost.vatTaxDeminimus)
|
|
120
|
-
? currencyFormat(countryLandedCost.vatTaxDeminimus)
|
|
121
|
-
: null;
|
|
122
|
-
// If Canada, use 150 CAD (courier tax de minimis)
|
|
123
|
-
const taxDeminimisToUse = localizationStore.selectedCountryCode === 'CA'
|
|
124
|
-
? currencyFormat(150)
|
|
125
|
-
: taxDeminimis;
|
|
126
|
-
const taxDeMinimisMessage = taxDeminimisToUse
|
|
127
|
-
? `${translate('Spend')} ${taxDeminimisToUse} ${translate('tax free')}`
|
|
128
|
-
: translate('Taxes will apply to all orders');
|
|
190
|
+
const taxDeMinimisMessage = this.getTaxMessage();
|
|
191
|
+
// Show additional information if selected country has tax id
|
|
192
|
+
const additionalInformation = this.getAdditionalDutyTaxMessage();
|
|
129
193
|
const animateLeft = this.animateFromLeftOverride ||
|
|
130
194
|
(this.dialogRef && getHasMoreSpaceOnRight(this.dialogRef));
|
|
131
195
|
const animateFromBottom = this.dialogRef && getHasMoreSpaceAbove(this.dialogRef);
|
|
@@ -136,7 +200,7 @@ const ZonosHelloDialog = /*@__PURE__*/ proxyCustomElement(class ZonosHelloDialog
|
|
|
136
200
|
const defaultMessage = formatStringWithLinks(defaultMessageStr);
|
|
137
201
|
const currentPage = this.getCurrentPageEnum();
|
|
138
202
|
const filteredMessages = customMessages.filter(x => x.pageName === currentPage);
|
|
139
|
-
return (h(Host, { key: '
|
|
203
|
+
return (h(Host, { key: 'ccabd686943b009ed6bb9c0ec64a6a4e7cc917f5', class: "zonos--elements" }, h("div", { key: '6bfbae15f5b43413fc76d21b94d0d56a2ce48f4d', "aria-hidden": "true", class: classes([
|
|
140
204
|
'zonos--hello-dialog',
|
|
141
205
|
animateLeft && 'zonos--hello-dialog-animate-from-left',
|
|
142
206
|
animateFromBottom && 'zonos--hello-dialog-animate-from-bottom',
|
|
@@ -146,7 +210,7 @@ const ZonosHelloDialog = /*@__PURE__*/ proxyCustomElement(class ZonosHelloDialog
|
|
|
146
210
|
]), ref: el => el && (this.dialogRef = el) }, !this.showCountrySelect && !this.showLanguageSelect && (h("div", null, h("div", { class: "zonos--hello-dialog-content" }, h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close Zonos Hello dialog", content: RemoveIcon }), noBackground: true, onClick: () => this.setIsOpen(false) }), h("zonos-v-stack", { spacing: 24 }, h("zonos-country-flag", { class: "zonos--hello-country-flag", countryCode: selectedCountryCode }), h("zonos-v-stack", { class: "zonos--hello-dialog-header", spacing: 4 }, h("zonos-text", { type: "boldSubheader" }, welcomeMessage), h("zonos-text", { innerHTML: defaultMessage, textColor: "gray-800" })), h("zonos-v-stack", { spacing: 8 }, this.restrictedItems.map(item => {
|
|
147
211
|
var _a;
|
|
148
212
|
return item && (h("zonos-banner", { bannerTitle: item.name, intent: "error" }, (_a = item.itemRestrictions) === null || _a === void 0 ? void 0 : _a.map(x => (h("zonos-text", { textColor: "red-800" }, x === null || x === void 0 ? void 0 : x.note)))));
|
|
149
|
-
}), h("zonos-card", { spacing: "12px" }, h("zonos-v-stack", { spacing: 12 }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content:
|
|
213
|
+
}), h("zonos-card", { spacing: "12px" }, h("zonos-v-stack", { spacing: 12 }, h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Duty de minimis", content: ImportIcon }), h("zonos-text", null, dutyDeMinimisMessage)), h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Tax de minimis", content: MoneyIcon }), h("zonos-text", null, taxDeMinimisMessage)), additionalInformation && (h("div", { class: "zonos--flex-message" }, h("zonos-icon", { "aria-label": "Low value order shipping restriction", content: BagIcon }), h("zonos-text", null, additionalInformation))))), filteredMessages.map(x => (h("zonos-custom-message", { icon: MessageIcon, message: x.message })))))), h("zonos-hello-dialog-footer", { appearanceSettings: this.appearanceSettings, setShowCountrySelect: value => this.setShowCountrySelect(value), setShowLanguageSelect: value => this.setShowLanguageSelect(value) }))), this.showCountrySelect && (h("div", null, h("zonos-country-select", { handleOnClose: () => this.setShowCountrySelect(false) }))), this.showLanguageSelect && (h("div", null, h("zonos-language-select", { handleOnClose: () => this.setShowLanguageSelect(false) }))))));
|
|
150
214
|
}
|
|
151
215
|
static get assetsDirs() { return ["assets"]; }
|
|
152
216
|
static get watchers() { return {
|