@zonos/elements 1.3.84 → 1.3.86
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-a06f18e2.js → cart-c5152dfc.js} +123 -162
- package/dist/cjs/{createCustomEvent-8d9cf9ac.js → createCustomEvent-557f8120.js} +1 -1
- package/dist/cjs/index.cjs.js +7 -7
- package/dist/cjs/{paypal-078f3cef.js → paypal-922c7e45.js} +1 -1
- package/dist/cjs/zonos-address_7.cjs.entry.js +1 -1
- package/dist/cjs/zonos-cart-items_12.cjs.entry.js +32 -15
- 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_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 +4 -4
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +3 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +2 -2
- package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +12 -3
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +2 -1
- package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +3 -2
- package/dist/collection/components/store/checkout/cart.js +22 -12
- package/dist/collection/components/store/checkout/stripe.js +16 -9
- package/dist/collection/components/store/hello/localization.js +1 -1
- package/dist/collection/components/store/translationStore/strings.arabic.js +4 -7
- package/dist/collection/components/store/translationStore/strings.base.js +4 -7
- package/dist/collection/components/store/translationStore/strings.chinese.js +4 -7
- package/dist/collection/components/store/translationStore/strings.danish.js +4 -7
- package/dist/collection/components/store/translationStore/strings.dutch.js +4 -7
- package/dist/collection/components/store/translationStore/strings.french.js +4 -7
- package/dist/collection/components/store/translationStore/strings.german.js +4 -7
- package/dist/collection/components/store/translationStore/strings.hebrew.js +4 -7
- package/dist/collection/components/store/translationStore/strings.indonesian.js +4 -7
- package/dist/collection/components/store/translationStore/strings.italian.js +4 -7
- package/dist/collection/components/store/translationStore/strings.japanese.js +4 -7
- package/dist/collection/components/store/translationStore/strings.korean.js +4 -7
- package/dist/collection/components/store/translationStore/strings.norwegian.js +4 -7
- package/dist/collection/components/store/translationStore/strings.polish.js +4 -7
- package/dist/collection/components/store/translationStore/strings.portuguese.js +4 -7
- package/dist/collection/components/store/translationStore/strings.russian.js +4 -7
- package/dist/collection/components/store/translationStore/strings.spanish.js +4 -7
- package/dist/collection/components/store/translationStore/strings.swedish.js +4 -7
- package/dist/collection/components/store/translationStore/strings.turkish.js +4 -7
- package/dist/collection/components/store/translationStore/strings.vietnamese.js +4 -7
- package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +2 -2
- package/dist/collection/components/utils/getContrastColor.js +8 -3
- package/dist/collection/styles/stripe/addressRuleStyle.js +4 -0
- package/dist/collection/types/generated/graphql.frontend.types.js +5 -5
- package/dist/esm/{cart-40e0d619.js → cart-9d7e0950.js} +123 -162
- package/dist/esm/{createCustomEvent-1f615c82.js → createCustomEvent-e93c38eb.js} +1 -1
- package/dist/esm/index.js +7 -7
- package/dist/esm/{paypal-a45fb0bb.js → paypal-6c55d504.js} +1 -1
- package/dist/esm/zonos-address_7.entry.js +1 -1
- package/dist/esm/zonos-cart-items_12.entry.js +32 -15
- 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_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 +4 -4
- package/dist/esm-es5/cart-9d7e0950.js +1 -0
- package/dist/esm-es5/{createCustomEvent-1f615c82.js → createCustomEvent-e93c38eb.js} +1 -1
- package/dist/esm-es5/index.js +1 -1
- package/dist/esm-es5/{paypal-a45fb0bb.js → paypal-6c55d504.js} +1 -1
- package/dist/esm-es5/zonos-address_7.entry.js +1 -1
- package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
- package/dist/esm-es5/zonos-checkout.entry.js +1 -1
- package/dist/esm-es5/zonos-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/scripts/index.d.ts +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/store/checkout/cart.d.ts +7 -3
- package/dist/types/components/store/translationStore/strings.arabic.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.base.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.chinese.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.danish.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.dutch.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.french.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.german.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.hebrew.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.indonesian.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.italian.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.japanese.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.korean.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.norwegian.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.polish.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.portuguese.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.russian.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.spanish.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.swedish.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.turkish.d.ts +2 -5
- package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +2 -5
- package/dist/types/components/store/translationStore.d.ts +1 -1
- package/dist/types/types/generated/graphql.frontend.types.d.ts +28 -29
- package/dist/types/types/generated/graphql.frontend.types.ts +43 -44
- package/dist/types/types/generated/graphql.internal.types.d.ts +3 -3
- package/dist/types/types/generated/graphql.internal.types.ts +3 -3
- package/dist/zonos-elements/index.esm.js +1 -1
- package/dist/zonos-elements/{p-181de82e.entry.js → p-04781437.entry.js} +1 -1
- package/dist/zonos-elements/{p-60c543e7.entry.js → p-077a6d1e.entry.js} +1 -1
- package/dist/zonos-elements/{p-5d325c13.system.entry.js → p-0c2c5edf.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-1348c46d.js → p-1161bb85.js} +1 -1
- package/dist/zonos-elements/{p-b1381434.system.entry.js → p-217e862c.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-ac6562c7.system.entry.js → p-21becaac.system.entry.js} +1 -1
- package/dist/zonos-elements/p-28f00b59.js +1 -0
- package/dist/zonos-elements/{p-019b202c.entry.js → p-2ee020dd.entry.js} +1 -1
- package/dist/zonos-elements/{p-9013751a.entry.js → p-3c6503d0.entry.js} +1 -1
- package/dist/zonos-elements/{p-c224f43a.system.entry.js → p-423aa2cd.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-7096814b.system.entry.js → p-5348f8f4.system.entry.js} +1 -1
- package/dist/zonos-elements/p-5bdfdced.system.js +1 -0
- package/dist/zonos-elements/p-5f51136c.entry.js +1 -0
- package/dist/zonos-elements/{p-47d5a081.system.js → p-8161254a.system.js} +1 -1
- package/dist/zonos-elements/{p-b39b794a.js → p-82034a27.js} +1 -1
- package/dist/zonos-elements/{p-c3314b3b.entry.js → p-84adf4cf.entry.js} +1 -1
- package/dist/zonos-elements/{p-e563eb3f.entry.js → p-8e210b51.entry.js} +1 -1
- package/dist/zonos-elements/{p-3d9a0e52.system.js → p-9821d158.system.js} +2 -2
- package/dist/zonos-elements/p-af49128f.entry.js +1 -0
- package/dist/zonos-elements/{p-e2adfe87.system.js → p-baccbe8c.system.js} +1 -1
- package/dist/zonos-elements/p-c78dd680.system.js +1 -1
- package/dist/zonos-elements/{p-ba10b830.entry.js → p-cdbd5532.entry.js} +1 -1
- package/dist/zonos-elements/{p-ec8ff301.system.entry.js → p-de99079d.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-78ca17aa.system.entry.js → p-ed846c78.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-9367aeca.system.entry.js → p-f00bb583.system.entry.js} +1 -1
- package/dist/zonos-elements/{p-0a15de43.entry.js → p-f2860f7d.entry.js} +1 -1
- package/dist/zonos-elements/{p-5ef15d65.system.entry.js → p-f45d19ab.system.entry.js} +1 -1
- package/dist/zonos-elements/p-fa36817b.system.entry.js +1 -0
- package/dist/zonos-elements/zonos-elements.esm.js +1 -1
- package/package.json +1 -1
- package/dist/esm-es5/cart-40e0d619.js +0 -1
- package/dist/zonos-elements/p-189a2cae.entry.js +0 -1
- package/dist/zonos-elements/p-c1fbe220.js +0 -1
- package/dist/zonos-elements/p-d043cf10.system.entry.js +0 -1
- package/dist/zonos-elements/p-d31368f1.entry.js +0 -1
- package/dist/zonos-elements/p-e6f2948c.system.js +0 -1
|
@@ -144,8 +144,8 @@ const stringsArabic = {
|
|
|
144
144
|
Hide: {
|
|
145
145
|
value: 'اخفِ',
|
|
146
146
|
},
|
|
147
|
-
'Hide non
|
|
148
|
-
value: 'إخفاء
|
|
147
|
+
'Hide non-prepaid options': {
|
|
148
|
+
value: 'إخفاء الخيارات غير المدفوعة مسبقًا',
|
|
149
149
|
},
|
|
150
150
|
'Invalid promo code': {
|
|
151
151
|
value: 'رمز ترويجي غير صالح',
|
|
@@ -291,8 +291,8 @@ const stringsArabic = {
|
|
|
291
291
|
Show: {
|
|
292
292
|
value: 'عرض',
|
|
293
293
|
},
|
|
294
|
-
'Show non
|
|
295
|
-
value: 'عرض
|
|
294
|
+
'Show non-prepaid options': {
|
|
295
|
+
value: 'عرض الخيارات غير المدفوعة مسبقًا',
|
|
296
296
|
},
|
|
297
297
|
'Something went wrong.': {
|
|
298
298
|
value: 'حدث خطأ ما.',
|
|
@@ -393,9 +393,6 @@ const stringsArabic = {
|
|
|
393
393
|
days: {
|
|
394
394
|
value: 'أيام',
|
|
395
395
|
},
|
|
396
|
-
or: {
|
|
397
|
-
value: 'أو',
|
|
398
|
-
},
|
|
399
396
|
'restricted items': {
|
|
400
397
|
value: 'عناصر مقيدة',
|
|
401
398
|
},
|
|
@@ -543,8 +540,8 @@ const stringsBase = {
|
|
|
543
540
|
Hide: {
|
|
544
541
|
value: 'Hide',
|
|
545
542
|
},
|
|
546
|
-
'Hide non
|
|
547
|
-
value: 'Hide non
|
|
543
|
+
'Hide non-prepaid options': {
|
|
544
|
+
value: 'Hide non-prepaid options',
|
|
548
545
|
},
|
|
549
546
|
'Invalid promo code': {
|
|
550
547
|
value: 'Invalid promo code',
|
|
@@ -690,8 +687,8 @@ const stringsBase = {
|
|
|
690
687
|
Show: {
|
|
691
688
|
value: 'Show',
|
|
692
689
|
},
|
|
693
|
-
'Show non
|
|
694
|
-
value: 'Show non
|
|
690
|
+
'Show non-prepaid options': {
|
|
691
|
+
value: 'Show non-prepaid options',
|
|
695
692
|
},
|
|
696
693
|
'Something went wrong.': {
|
|
697
694
|
value: 'Something went wrong.',
|
|
@@ -792,9 +789,6 @@ const stringsBase = {
|
|
|
792
789
|
days: {
|
|
793
790
|
value: 'days',
|
|
794
791
|
},
|
|
795
|
-
or: {
|
|
796
|
-
value: 'or',
|
|
797
|
-
},
|
|
798
792
|
'restricted items': {
|
|
799
793
|
value: 'restricted items',
|
|
800
794
|
},
|
|
@@ -942,8 +936,8 @@ const stringsChinese = {
|
|
|
942
936
|
Hide: {
|
|
943
937
|
value: '隐藏',
|
|
944
938
|
},
|
|
945
|
-
'Hide non
|
|
946
|
-
value: '
|
|
939
|
+
'Hide non-prepaid options': {
|
|
940
|
+
value: '隐藏非预付选项',
|
|
947
941
|
},
|
|
948
942
|
'Invalid promo code': {
|
|
949
943
|
value: '无效的促销代码',
|
|
@@ -1089,8 +1083,8 @@ const stringsChinese = {
|
|
|
1089
1083
|
Show: {
|
|
1090
1084
|
value: '显示',
|
|
1091
1085
|
},
|
|
1092
|
-
'Show non
|
|
1093
|
-
value: '
|
|
1086
|
+
'Show non-prepaid options': {
|
|
1087
|
+
value: '显示非预付选项',
|
|
1094
1088
|
},
|
|
1095
1089
|
'Something went wrong.': {
|
|
1096
1090
|
value: '出了些问题。',
|
|
@@ -1191,9 +1185,6 @@ const stringsChinese = {
|
|
|
1191
1185
|
days: {
|
|
1192
1186
|
value: '天',
|
|
1193
1187
|
},
|
|
1194
|
-
or: {
|
|
1195
|
-
value: '或',
|
|
1196
|
-
},
|
|
1197
1188
|
'restricted items': {
|
|
1198
1189
|
value: '限制物品',
|
|
1199
1190
|
},
|
|
@@ -1341,8 +1332,8 @@ const stringsDanish = {
|
|
|
1341
1332
|
Hide: {
|
|
1342
1333
|
value: 'Skjul',
|
|
1343
1334
|
},
|
|
1344
|
-
'Hide non
|
|
1345
|
-
value: 'Skjul ikke-forudbetalte
|
|
1335
|
+
'Hide non-prepaid options': {
|
|
1336
|
+
value: 'Skjul ikke-forudbetalte muligheder',
|
|
1346
1337
|
},
|
|
1347
1338
|
'Invalid promo code': {
|
|
1348
1339
|
value: 'Ugyldig kampagnekode',
|
|
@@ -1488,8 +1479,8 @@ const stringsDanish = {
|
|
|
1488
1479
|
Show: {
|
|
1489
1480
|
value: 'Vis',
|
|
1490
1481
|
},
|
|
1491
|
-
'Show non
|
|
1492
|
-
value: 'Vis ikke
|
|
1482
|
+
'Show non-prepaid options': {
|
|
1483
|
+
value: 'Vis ikke-forudbetalte muligheder',
|
|
1493
1484
|
},
|
|
1494
1485
|
'Something went wrong.': {
|
|
1495
1486
|
value: 'Noget gik galt.',
|
|
@@ -1590,9 +1581,6 @@ const stringsDanish = {
|
|
|
1590
1581
|
days: {
|
|
1591
1582
|
value: 'dage',
|
|
1592
1583
|
},
|
|
1593
|
-
or: {
|
|
1594
|
-
value: 'eller',
|
|
1595
|
-
},
|
|
1596
1584
|
'restricted items': {
|
|
1597
1585
|
value: 'begrænsede genstande',
|
|
1598
1586
|
},
|
|
@@ -1740,8 +1728,8 @@ const stringsDutch = {
|
|
|
1740
1728
|
Hide: {
|
|
1741
1729
|
value: 'Verbergen',
|
|
1742
1730
|
},
|
|
1743
|
-
'Hide non
|
|
1744
|
-
value: 'Verberg niet-
|
|
1731
|
+
'Hide non-prepaid options': {
|
|
1732
|
+
value: 'Verberg niet-vooruitbetaalde opties',
|
|
1745
1733
|
},
|
|
1746
1734
|
'Invalid promo code': {
|
|
1747
1735
|
value: 'Ongeldige promotiecode',
|
|
@@ -1887,8 +1875,8 @@ const stringsDutch = {
|
|
|
1887
1875
|
Show: {
|
|
1888
1876
|
value: 'Tonen',
|
|
1889
1877
|
},
|
|
1890
|
-
'Show non
|
|
1891
|
-
value: 'Toon niet-vooruitbetaalde
|
|
1878
|
+
'Show non-prepaid options': {
|
|
1879
|
+
value: 'Toon niet-vooruitbetaalde opties',
|
|
1892
1880
|
},
|
|
1893
1881
|
'Something went wrong.': {
|
|
1894
1882
|
value: 'Er is iets misgegaan.',
|
|
@@ -1989,9 +1977,6 @@ const stringsDutch = {
|
|
|
1989
1977
|
days: {
|
|
1990
1978
|
value: 'dagen',
|
|
1991
1979
|
},
|
|
1992
|
-
or: {
|
|
1993
|
-
value: 'of',
|
|
1994
|
-
},
|
|
1995
1980
|
'restricted items': {
|
|
1996
1981
|
value: 'beperkte items',
|
|
1997
1982
|
},
|
|
@@ -2139,8 +2124,8 @@ const stringsFrench = {
|
|
|
2139
2124
|
Hide: {
|
|
2140
2125
|
value: 'Cacher',
|
|
2141
2126
|
},
|
|
2142
|
-
'Hide non
|
|
2143
|
-
value: 'Masquer les
|
|
2127
|
+
'Hide non-prepaid options': {
|
|
2128
|
+
value: 'Masquer les options non prépayées',
|
|
2144
2129
|
},
|
|
2145
2130
|
'Invalid promo code': {
|
|
2146
2131
|
value: 'Code promo invalide',
|
|
@@ -2286,8 +2271,8 @@ const stringsFrench = {
|
|
|
2286
2271
|
Show: {
|
|
2287
2272
|
value: 'Montrer',
|
|
2288
2273
|
},
|
|
2289
|
-
'Show non
|
|
2290
|
-
value: 'Afficher les
|
|
2274
|
+
'Show non-prepaid options': {
|
|
2275
|
+
value: 'Afficher les options non prépayées',
|
|
2291
2276
|
},
|
|
2292
2277
|
'Something went wrong.': {
|
|
2293
2278
|
value: "Quelque chose s'est mal passé.",
|
|
@@ -2388,9 +2373,6 @@ const stringsFrench = {
|
|
|
2388
2373
|
days: {
|
|
2389
2374
|
value: 'jours',
|
|
2390
2375
|
},
|
|
2391
|
-
or: {
|
|
2392
|
-
value: 'ou',
|
|
2393
|
-
},
|
|
2394
2376
|
'restricted items': {
|
|
2395
2377
|
value: 'articles restreints',
|
|
2396
2378
|
},
|
|
@@ -2538,8 +2520,8 @@ const stringsGerman = {
|
|
|
2538
2520
|
Hide: {
|
|
2539
2521
|
value: 'Verstecken',
|
|
2540
2522
|
},
|
|
2541
|
-
'Hide non
|
|
2542
|
-
value: 'Nicht vorausbezahlte
|
|
2523
|
+
'Hide non-prepaid options': {
|
|
2524
|
+
value: 'Nicht vorausbezahlte Optionen ausblenden',
|
|
2543
2525
|
},
|
|
2544
2526
|
'Invalid promo code': {
|
|
2545
2527
|
value: 'Ungültiger Aktionscode',
|
|
@@ -2685,8 +2667,8 @@ const stringsGerman = {
|
|
|
2685
2667
|
Show: {
|
|
2686
2668
|
value: 'Zeigen',
|
|
2687
2669
|
},
|
|
2688
|
-
'Show non
|
|
2689
|
-
value: 'Nicht vorausbezahlte
|
|
2670
|
+
'Show non-prepaid options': {
|
|
2671
|
+
value: 'Nicht vorausbezahlte Optionen anzeigen',
|
|
2690
2672
|
},
|
|
2691
2673
|
'Something went wrong.': {
|
|
2692
2674
|
value: 'Etwas ist schief gelaufen.',
|
|
@@ -2787,9 +2769,6 @@ const stringsGerman = {
|
|
|
2787
2769
|
days: {
|
|
2788
2770
|
value: 'Tage',
|
|
2789
2771
|
},
|
|
2790
|
-
or: {
|
|
2791
|
-
value: 'oder',
|
|
2792
|
-
},
|
|
2793
2772
|
'restricted items': {
|
|
2794
2773
|
value: 'eingeschränkte Artikel',
|
|
2795
2774
|
},
|
|
@@ -2937,8 +2916,8 @@ const stringsHebrew = {
|
|
|
2937
2916
|
Hide: {
|
|
2938
2917
|
value: 'הסתר',
|
|
2939
2918
|
},
|
|
2940
|
-
'Hide non
|
|
2941
|
-
value: 'הסתר
|
|
2919
|
+
'Hide non-prepaid options': {
|
|
2920
|
+
value: 'הסתר אפשרויות שאינן בתשלום מראש',
|
|
2942
2921
|
},
|
|
2943
2922
|
'Invalid promo code': {
|
|
2944
2923
|
value: 'קוד קידום מכירות לא חוקי',
|
|
@@ -3084,8 +3063,8 @@ const stringsHebrew = {
|
|
|
3084
3063
|
Show: {
|
|
3085
3064
|
value: 'הצג',
|
|
3086
3065
|
},
|
|
3087
|
-
'Show non
|
|
3088
|
-
value: 'הצג
|
|
3066
|
+
'Show non-prepaid options': {
|
|
3067
|
+
value: 'הצג אפשרויות שאינן בתשלום מראש',
|
|
3089
3068
|
},
|
|
3090
3069
|
'Something went wrong.': {
|
|
3091
3070
|
value: 'משהו השתבש.',
|
|
@@ -3186,9 +3165,6 @@ const stringsHebrew = {
|
|
|
3186
3165
|
days: {
|
|
3187
3166
|
value: 'ימים',
|
|
3188
3167
|
},
|
|
3189
|
-
or: {
|
|
3190
|
-
value: 'או',
|
|
3191
|
-
},
|
|
3192
3168
|
'restricted items': {
|
|
3193
3169
|
value: 'פריטים מוגבלים',
|
|
3194
3170
|
},
|
|
@@ -3336,8 +3312,8 @@ const stringsIndonesian = {
|
|
|
3336
3312
|
Hide: {
|
|
3337
3313
|
value: 'Sembunyikan',
|
|
3338
3314
|
},
|
|
3339
|
-
'Hide non
|
|
3340
|
-
value: 'Sembunyikan
|
|
3315
|
+
'Hide non-prepaid options': {
|
|
3316
|
+
value: 'Sembunyikan opsi yang tidak prabayar',
|
|
3341
3317
|
},
|
|
3342
3318
|
'Invalid promo code': {
|
|
3343
3319
|
value: 'Kode promo tidak valid',
|
|
@@ -3483,8 +3459,8 @@ const stringsIndonesian = {
|
|
|
3483
3459
|
Show: {
|
|
3484
3460
|
value: 'Tampilkan',
|
|
3485
3461
|
},
|
|
3486
|
-
'Show non
|
|
3487
|
-
value: 'Tampilkan
|
|
3462
|
+
'Show non-prepaid options': {
|
|
3463
|
+
value: 'Tampilkan opsi non-prabayar',
|
|
3488
3464
|
},
|
|
3489
3465
|
'Something went wrong.': {
|
|
3490
3466
|
value: 'Ada yang salah.',
|
|
@@ -3585,9 +3561,6 @@ const stringsIndonesian = {
|
|
|
3585
3561
|
days: {
|
|
3586
3562
|
value: 'hari',
|
|
3587
3563
|
},
|
|
3588
|
-
or: {
|
|
3589
|
-
value: 'atau',
|
|
3590
|
-
},
|
|
3591
3564
|
'restricted items': {
|
|
3592
3565
|
value: 'barang terbatas',
|
|
3593
3566
|
},
|
|
@@ -3735,8 +3708,8 @@ const stringsItalian = {
|
|
|
3735
3708
|
Hide: {
|
|
3736
3709
|
value: 'Nascondi',
|
|
3737
3710
|
},
|
|
3738
|
-
'Hide non
|
|
3739
|
-
value: 'Nascondi
|
|
3711
|
+
'Hide non-prepaid options': {
|
|
3712
|
+
value: 'Nascondi opzioni non prepagate',
|
|
3740
3713
|
},
|
|
3741
3714
|
'Invalid promo code': {
|
|
3742
3715
|
value: 'Codice promozionale non valido',
|
|
@@ -3882,8 +3855,8 @@ const stringsItalian = {
|
|
|
3882
3855
|
Show: {
|
|
3883
3856
|
value: 'Mostra',
|
|
3884
3857
|
},
|
|
3885
|
-
'Show non
|
|
3886
|
-
value: 'Mostra
|
|
3858
|
+
'Show non-prepaid options': {
|
|
3859
|
+
value: 'Mostra opzioni non prepagate',
|
|
3887
3860
|
},
|
|
3888
3861
|
'Something went wrong.': {
|
|
3889
3862
|
value: 'Qualcosa è andato storto.',
|
|
@@ -3984,9 +3957,6 @@ const stringsItalian = {
|
|
|
3984
3957
|
days: {
|
|
3985
3958
|
value: 'giorni',
|
|
3986
3959
|
},
|
|
3987
|
-
or: {
|
|
3988
|
-
value: 'o',
|
|
3989
|
-
},
|
|
3990
3960
|
'restricted items': {
|
|
3991
3961
|
value: 'articoli limitati',
|
|
3992
3962
|
},
|
|
@@ -4134,8 +4104,8 @@ const stringsJapanese = {
|
|
|
4134
4104
|
Hide: {
|
|
4135
4105
|
value: '隠す',
|
|
4136
4106
|
},
|
|
4137
|
-
'Hide non
|
|
4138
|
-
value: '
|
|
4107
|
+
'Hide non-prepaid options': {
|
|
4108
|
+
value: '未払いオプションを非表示にする',
|
|
4139
4109
|
},
|
|
4140
4110
|
'Invalid promo code': {
|
|
4141
4111
|
value: '無効なプロモーションコード',
|
|
@@ -4281,8 +4251,8 @@ const stringsJapanese = {
|
|
|
4281
4251
|
Show: {
|
|
4282
4252
|
value: '表示',
|
|
4283
4253
|
},
|
|
4284
|
-
'Show non
|
|
4285
|
-
value: '
|
|
4254
|
+
'Show non-prepaid options': {
|
|
4255
|
+
value: '非プリペイドオプションを表示',
|
|
4286
4256
|
},
|
|
4287
4257
|
'Something went wrong.': {
|
|
4288
4258
|
value: 'エラーが発生しました。',
|
|
@@ -4383,9 +4353,6 @@ const stringsJapanese = {
|
|
|
4383
4353
|
days: {
|
|
4384
4354
|
value: '日々',
|
|
4385
4355
|
},
|
|
4386
|
-
or: {
|
|
4387
|
-
value: 'または',
|
|
4388
|
-
},
|
|
4389
4356
|
'restricted items': {
|
|
4390
4357
|
value: '制限された項目',
|
|
4391
4358
|
},
|
|
@@ -4533,8 +4500,8 @@ const stringsKorean = {
|
|
|
4533
4500
|
Hide: {
|
|
4534
4501
|
value: '숨기다',
|
|
4535
4502
|
},
|
|
4536
|
-
'Hide non
|
|
4537
|
-
value: '
|
|
4503
|
+
'Hide non-prepaid options': {
|
|
4504
|
+
value: '선불이 아닌 옵션 숨기기',
|
|
4538
4505
|
},
|
|
4539
4506
|
'Invalid promo code': {
|
|
4540
4507
|
value: '유효하지 않은 프로모션 코드',
|
|
@@ -4680,8 +4647,8 @@ const stringsKorean = {
|
|
|
4680
4647
|
Show: {
|
|
4681
4648
|
value: '보이다',
|
|
4682
4649
|
},
|
|
4683
|
-
'Show non
|
|
4684
|
-
value: '비선불
|
|
4650
|
+
'Show non-prepaid options': {
|
|
4651
|
+
value: '비선불 옵션 표시',
|
|
4685
4652
|
},
|
|
4686
4653
|
'Something went wrong.': {
|
|
4687
4654
|
value: '문제가 발생했습니다.',
|
|
@@ -4782,9 +4749,6 @@ const stringsKorean = {
|
|
|
4782
4749
|
days: {
|
|
4783
4750
|
value: '일',
|
|
4784
4751
|
},
|
|
4785
|
-
or: {
|
|
4786
|
-
value: '또는',
|
|
4787
|
-
},
|
|
4788
4752
|
'restricted items': {
|
|
4789
4753
|
value: '제한된 항목',
|
|
4790
4754
|
},
|
|
@@ -4932,8 +4896,8 @@ const stringsNorwegian = {
|
|
|
4932
4896
|
Hide: {
|
|
4933
4897
|
value: 'Gjem',
|
|
4934
4898
|
},
|
|
4935
|
-
'Hide non
|
|
4936
|
-
value: 'Skjul ikke-forhåndsbetalte
|
|
4899
|
+
'Hide non-prepaid options': {
|
|
4900
|
+
value: 'Skjul ikke-forhåndsbetalte alternativer',
|
|
4937
4901
|
},
|
|
4938
4902
|
'Invalid promo code': {
|
|
4939
4903
|
value: 'Ugyldig kampanjekode',
|
|
@@ -5079,8 +5043,8 @@ const stringsNorwegian = {
|
|
|
5079
5043
|
Show: {
|
|
5080
5044
|
value: 'Vis',
|
|
5081
5045
|
},
|
|
5082
|
-
'Show non
|
|
5083
|
-
value: 'Vis ikke
|
|
5046
|
+
'Show non-prepaid options': {
|
|
5047
|
+
value: 'Vis ikke-forhåndsbetalte alternativer',
|
|
5084
5048
|
},
|
|
5085
5049
|
'Something went wrong.': {
|
|
5086
5050
|
value: 'Noe gikk galt.',
|
|
@@ -5181,9 +5145,6 @@ const stringsNorwegian = {
|
|
|
5181
5145
|
days: {
|
|
5182
5146
|
value: 'dager',
|
|
5183
5147
|
},
|
|
5184
|
-
or: {
|
|
5185
|
-
value: 'eller',
|
|
5186
|
-
},
|
|
5187
5148
|
'restricted items': {
|
|
5188
5149
|
value: 'begrensede elementer',
|
|
5189
5150
|
},
|
|
@@ -5331,8 +5292,8 @@ const stringsPolish = {
|
|
|
5331
5292
|
Hide: {
|
|
5332
5293
|
value: 'Ukryj',
|
|
5333
5294
|
},
|
|
5334
|
-
'Hide non
|
|
5335
|
-
value: 'Ukryj
|
|
5295
|
+
'Hide non-prepaid options': {
|
|
5296
|
+
value: 'Ukryj opcje nieprzedpłacone',
|
|
5336
5297
|
},
|
|
5337
5298
|
'Invalid promo code': {
|
|
5338
5299
|
value: 'Nieprawidłowy kod promocyjny',
|
|
@@ -5478,8 +5439,8 @@ const stringsPolish = {
|
|
|
5478
5439
|
Show: {
|
|
5479
5440
|
value: 'Pokaż',
|
|
5480
5441
|
},
|
|
5481
|
-
'Show non
|
|
5482
|
-
value: 'Pokaż
|
|
5442
|
+
'Show non-prepaid options': {
|
|
5443
|
+
value: 'Pokaż opcje bez przedpłaty',
|
|
5483
5444
|
},
|
|
5484
5445
|
'Something went wrong.': {
|
|
5485
5446
|
value: 'Coś poszło nie tak.',
|
|
@@ -5580,9 +5541,6 @@ const stringsPolish = {
|
|
|
5580
5541
|
days: {
|
|
5581
5542
|
value: 'dni',
|
|
5582
5543
|
},
|
|
5583
|
-
or: {
|
|
5584
|
-
value: 'lub',
|
|
5585
|
-
},
|
|
5586
5544
|
'restricted items': {
|
|
5587
5545
|
value: 'przedmioty ograniczone',
|
|
5588
5546
|
},
|
|
@@ -5730,8 +5688,8 @@ const stringsPortuguese = {
|
|
|
5730
5688
|
Hide: {
|
|
5731
5689
|
value: 'Esconder',
|
|
5732
5690
|
},
|
|
5733
|
-
'Hide non
|
|
5734
|
-
value: 'Ocultar
|
|
5691
|
+
'Hide non-prepaid options': {
|
|
5692
|
+
value: 'Ocultar opções não pré-pagas',
|
|
5735
5693
|
},
|
|
5736
5694
|
'Invalid promo code': {
|
|
5737
5695
|
value: 'Código promocional inválido',
|
|
@@ -5877,8 +5835,8 @@ const stringsPortuguese = {
|
|
|
5877
5835
|
Show: {
|
|
5878
5836
|
value: 'Mostrar',
|
|
5879
5837
|
},
|
|
5880
|
-
'Show non
|
|
5881
|
-
value: 'Mostrar
|
|
5838
|
+
'Show non-prepaid options': {
|
|
5839
|
+
value: 'Mostrar opções não pré-pagas',
|
|
5882
5840
|
},
|
|
5883
5841
|
'Something went wrong.': {
|
|
5884
5842
|
value: 'Algo deu errado.',
|
|
@@ -5979,9 +5937,6 @@ const stringsPortuguese = {
|
|
|
5979
5937
|
days: {
|
|
5980
5938
|
value: 'dias',
|
|
5981
5939
|
},
|
|
5982
|
-
or: {
|
|
5983
|
-
value: 'ou',
|
|
5984
|
-
},
|
|
5985
5940
|
'restricted items': {
|
|
5986
5941
|
value: 'itens restritos',
|
|
5987
5942
|
},
|
|
@@ -6129,8 +6084,8 @@ const stringsRussian = {
|
|
|
6129
6084
|
Hide: {
|
|
6130
6085
|
value: 'Скрыть',
|
|
6131
6086
|
},
|
|
6132
|
-
'Hide non
|
|
6133
|
-
value: 'Скрыть
|
|
6087
|
+
'Hide non-prepaid options': {
|
|
6088
|
+
value: 'Скрыть неоплаченные варианты',
|
|
6134
6089
|
},
|
|
6135
6090
|
'Invalid promo code': {
|
|
6136
6091
|
value: 'Недействительный промо-код',
|
|
@@ -6276,8 +6231,8 @@ const stringsRussian = {
|
|
|
6276
6231
|
Show: {
|
|
6277
6232
|
value: 'Показать',
|
|
6278
6233
|
},
|
|
6279
|
-
'Show non
|
|
6280
|
-
value: 'Показать
|
|
6234
|
+
'Show non-prepaid options': {
|
|
6235
|
+
value: 'Показать варианты без предоплаты',
|
|
6281
6236
|
},
|
|
6282
6237
|
'Something went wrong.': {
|
|
6283
6238
|
value: 'Что-то пошло не так.',
|
|
@@ -6378,9 +6333,6 @@ const stringsRussian = {
|
|
|
6378
6333
|
days: {
|
|
6379
6334
|
value: 'дни',
|
|
6380
6335
|
},
|
|
6381
|
-
or: {
|
|
6382
|
-
value: 'или',
|
|
6383
|
-
},
|
|
6384
6336
|
'restricted items': {
|
|
6385
6337
|
value: 'ограниченные предметы',
|
|
6386
6338
|
},
|
|
@@ -6528,8 +6480,8 @@ const stringsSpanish = {
|
|
|
6528
6480
|
Hide: {
|
|
6529
6481
|
value: 'Ocultar',
|
|
6530
6482
|
},
|
|
6531
|
-
'Hide non
|
|
6532
|
-
value: 'Ocultar
|
|
6483
|
+
'Hide non-prepaid options': {
|
|
6484
|
+
value: 'Ocultar opciones no prepagadas',
|
|
6533
6485
|
},
|
|
6534
6486
|
'Invalid promo code': {
|
|
6535
6487
|
value: 'Código promocional no válido',
|
|
@@ -6675,8 +6627,8 @@ const stringsSpanish = {
|
|
|
6675
6627
|
Show: {
|
|
6676
6628
|
value: 'Mostrar',
|
|
6677
6629
|
},
|
|
6678
|
-
'Show non
|
|
6679
|
-
value: 'Mostrar
|
|
6630
|
+
'Show non-prepaid options': {
|
|
6631
|
+
value: 'Mostrar opciones no prepagadas',
|
|
6680
6632
|
},
|
|
6681
6633
|
'Something went wrong.': {
|
|
6682
6634
|
value: 'Algo salió mal.',
|
|
@@ -6777,9 +6729,6 @@ const stringsSpanish = {
|
|
|
6777
6729
|
days: {
|
|
6778
6730
|
value: 'días',
|
|
6779
6731
|
},
|
|
6780
|
-
or: {
|
|
6781
|
-
value: 'o',
|
|
6782
|
-
},
|
|
6783
6732
|
'restricted items': {
|
|
6784
6733
|
value: 'artículos restringidos',
|
|
6785
6734
|
},
|
|
@@ -6927,8 +6876,8 @@ const stringsSwedish = {
|
|
|
6927
6876
|
Hide: {
|
|
6928
6877
|
value: 'Dölj',
|
|
6929
6878
|
},
|
|
6930
|
-
'Hide non
|
|
6931
|
-
value: 'Dölj icke-förbetalda
|
|
6879
|
+
'Hide non-prepaid options': {
|
|
6880
|
+
value: 'Dölj icke-förbetalda alternativ',
|
|
6932
6881
|
},
|
|
6933
6882
|
'Invalid promo code': {
|
|
6934
6883
|
value: 'Ogiltig kampanjkod',
|
|
@@ -7074,8 +7023,8 @@ const stringsSwedish = {
|
|
|
7074
7023
|
Show: {
|
|
7075
7024
|
value: 'Visa',
|
|
7076
7025
|
},
|
|
7077
|
-
'Show non
|
|
7078
|
-
value: 'Visa icke
|
|
7026
|
+
'Show non-prepaid options': {
|
|
7027
|
+
value: 'Visa icke-förbetalda alternativ',
|
|
7079
7028
|
},
|
|
7080
7029
|
'Something went wrong.': {
|
|
7081
7030
|
value: 'Något gick fel.',
|
|
@@ -7176,9 +7125,6 @@ const stringsSwedish = {
|
|
|
7176
7125
|
days: {
|
|
7177
7126
|
value: 'dagar',
|
|
7178
7127
|
},
|
|
7179
|
-
or: {
|
|
7180
|
-
value: 'eller',
|
|
7181
|
-
},
|
|
7182
7128
|
'restricted items': {
|
|
7183
7129
|
value: 'begränsade föremål',
|
|
7184
7130
|
},
|
|
@@ -7326,8 +7272,8 @@ const stringsTurkish = {
|
|
|
7326
7272
|
Hide: {
|
|
7327
7273
|
value: 'Sakla',
|
|
7328
7274
|
},
|
|
7329
|
-
'Hide non
|
|
7330
|
-
value: 'Ön ödemesiz
|
|
7275
|
+
'Hide non-prepaid options': {
|
|
7276
|
+
value: 'Ön ödemesiz seçenekleri gizle',
|
|
7331
7277
|
},
|
|
7332
7278
|
'Invalid promo code': {
|
|
7333
7279
|
value: 'Geçersiz promosyon kodu',
|
|
@@ -7473,8 +7419,8 @@ const stringsTurkish = {
|
|
|
7473
7419
|
Show: {
|
|
7474
7420
|
value: 'Göster',
|
|
7475
7421
|
},
|
|
7476
|
-
'Show non
|
|
7477
|
-
value: 'Ön ödemesiz
|
|
7422
|
+
'Show non-prepaid options': {
|
|
7423
|
+
value: 'Ön ödemesiz seçenekleri göster',
|
|
7478
7424
|
},
|
|
7479
7425
|
'Something went wrong.': {
|
|
7480
7426
|
value: 'Bir şeyler yanlış gitti.',
|
|
@@ -7575,9 +7521,6 @@ const stringsTurkish = {
|
|
|
7575
7521
|
days: {
|
|
7576
7522
|
value: 'günler',
|
|
7577
7523
|
},
|
|
7578
|
-
or: {
|
|
7579
|
-
value: 'veya',
|
|
7580
|
-
},
|
|
7581
7524
|
'restricted items': {
|
|
7582
7525
|
value: 'kısıtlı öğeler',
|
|
7583
7526
|
},
|
|
@@ -7725,8 +7668,8 @@ const stringsVietnamese = {
|
|
|
7725
7668
|
Hide: {
|
|
7726
7669
|
value: 'Ẩn',
|
|
7727
7670
|
},
|
|
7728
|
-
'Hide non
|
|
7729
|
-
value: 'Ẩn các
|
|
7671
|
+
'Hide non-prepaid options': {
|
|
7672
|
+
value: 'Ẩn các tùy chọn chưa trả trước',
|
|
7730
7673
|
},
|
|
7731
7674
|
'Invalid promo code': {
|
|
7732
7675
|
value: 'Mã khuyến mãi không hợp lệ',
|
|
@@ -7872,8 +7815,8 @@ const stringsVietnamese = {
|
|
|
7872
7815
|
Show: {
|
|
7873
7816
|
value: 'Hiển thị',
|
|
7874
7817
|
},
|
|
7875
|
-
'Show non
|
|
7876
|
-
value: 'Hiển thị các
|
|
7818
|
+
'Show non-prepaid options': {
|
|
7819
|
+
value: 'Hiển thị các tùy chọn không trả trước',
|
|
7877
7820
|
},
|
|
7878
7821
|
'Something went wrong.': {
|
|
7879
7822
|
value: 'Đã xảy ra lỗi.',
|
|
@@ -7974,9 +7917,6 @@ const stringsVietnamese = {
|
|
|
7974
7917
|
days: {
|
|
7975
7918
|
value: 'ngày',
|
|
7976
7919
|
},
|
|
7977
|
-
or: {
|
|
7978
|
-
value: 'hoặc',
|
|
7979
|
-
},
|
|
7980
7920
|
'restricted items': {
|
|
7981
7921
|
value: 'mặt hàng bị hạn chế',
|
|
7982
7922
|
},
|
|
@@ -8654,7 +8594,7 @@ const initLocalizationStore = async () => {
|
|
|
8654
8594
|
if (!localizationStore.selectedCountryCode &&
|
|
8655
8595
|
devSites.some(site => window.location.origin.includes(site))) {
|
|
8656
8596
|
// update selected country code in store
|
|
8657
|
-
localizationStoreUpdateSelectedCountryCode('
|
|
8597
|
+
localizationStoreUpdateSelectedCountryCode('CA');
|
|
8658
8598
|
}
|
|
8659
8599
|
localizationStore.localizationLoaded = true;
|
|
8660
8600
|
};
|
|
@@ -9097,6 +9037,10 @@ const addressRuleStyle = ({ theme, }) => {
|
|
|
9097
9037
|
'.PickerItem--new': {
|
|
9098
9038
|
color: 'var(--colorText)',
|
|
9099
9039
|
},
|
|
9040
|
+
'.Tab--selected': {
|
|
9041
|
+
borderStyle: 'solid',
|
|
9042
|
+
borderWidth: '1px',
|
|
9043
|
+
},
|
|
9100
9044
|
};
|
|
9101
9045
|
switch (theme) {
|
|
9102
9046
|
case 'DARK': {
|
|
@@ -9176,6 +9120,7 @@ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryC
|
|
|
9176
9120
|
colorPrimary: secondaryColor }),
|
|
9177
9121
|
},
|
|
9178
9122
|
clientSecret,
|
|
9123
|
+
externalPaymentMethodTypes: ['external_paypal'],
|
|
9179
9124
|
locale: localizationStore.selectedLocale,
|
|
9180
9125
|
};
|
|
9181
9126
|
};
|
|
@@ -9352,13 +9297,16 @@ const stripeStorePrefetchLandedCost = async (params) => {
|
|
|
9352
9297
|
if (subtotals) {
|
|
9353
9298
|
// prefetch landed cost will not update shipping and taxes since we haven't selected shipping method yet
|
|
9354
9299
|
cartStoreApplySubtotals({
|
|
9355
|
-
|
|
9356
|
-
|
|
9357
|
-
|
|
9358
|
-
|
|
9359
|
-
|
|
9360
|
-
|
|
9361
|
-
|
|
9300
|
+
method: (matchLandedCost === null || matchLandedCost === void 0 ? void 0 : matchLandedCost.landedCost.method) || 'DDP',
|
|
9301
|
+
subtotals: {
|
|
9302
|
+
adjustments: subtotals.adjustments,
|
|
9303
|
+
exchangeRate: subtotals.exchangeRate,
|
|
9304
|
+
items: subtotals.items,
|
|
9305
|
+
landedCostTotal: subtotals.landedCostTotal,
|
|
9306
|
+
presentmentCurrencyCode: subtotals.presentmentCurrencyCode,
|
|
9307
|
+
shipping: subtotals.shipping,
|
|
9308
|
+
total: subtotals.total,
|
|
9309
|
+
},
|
|
9362
9310
|
});
|
|
9363
9311
|
}
|
|
9364
9312
|
}
|
|
@@ -9516,7 +9464,7 @@ const stripeStoreConfirmPayment = async () => {
|
|
|
9516
9464
|
* @returns {boolean} whether or not the checkout session is successfully created
|
|
9517
9465
|
*/
|
|
9518
9466
|
const stripeStoreInitCheckoutSession = async () => {
|
|
9519
|
-
var _a;
|
|
9467
|
+
var _a, _b;
|
|
9520
9468
|
const total = cartStore.items.reduce((amount, item) => amount + item.amount * item.quantity, 0);
|
|
9521
9469
|
if (!total || !localizationStore.targetCurrency) {
|
|
9522
9470
|
handleFetch.logError('Failed to create checkout session - invalid total or currency');
|
|
@@ -9544,7 +9492,10 @@ const stripeStoreInitCheckoutSession = async () => {
|
|
|
9544
9492
|
// update cart store with updated information
|
|
9545
9493
|
cartStoreSetCheckoutSession(result);
|
|
9546
9494
|
stripeStore.clientSecret = result.clientSecret;
|
|
9547
|
-
cartStoreApplySubtotals(
|
|
9495
|
+
cartStoreApplySubtotals({
|
|
9496
|
+
method: ((_b = result.landedCost) === null || _b === void 0 ? void 0 : _b.method) || 'DDP',
|
|
9497
|
+
subtotals: Object.assign(Object.assign({}, result.subtotals), { landedCostTotal: 0, shipping: 0, total: result.subtotals.items }),
|
|
9498
|
+
});
|
|
9548
9499
|
handleFetch.log('Exchange rate updated for cart items (checkout session create)', 'info', cartStore.exchangeRate);
|
|
9549
9500
|
handleFetch.log('done-init-checkout-session');
|
|
9550
9501
|
return true;
|
|
@@ -9711,8 +9662,8 @@ const { onChange, reset, state: cartStore, } = zonosStore.createStore(() => ({
|
|
|
9711
9662
|
checkoutTimeoutInterval: null,
|
|
9712
9663
|
currency: 'USD',
|
|
9713
9664
|
doneSteps: [],
|
|
9714
|
-
dutiesTaxesFees:
|
|
9715
|
-
dutiesTaxesFeesEstimate:
|
|
9665
|
+
dutiesTaxesFees: null,
|
|
9666
|
+
dutiesTaxesFeesEstimate: null,
|
|
9716
9667
|
error: null,
|
|
9717
9668
|
exchangeRate: null,
|
|
9718
9669
|
externalConfirmationPageURL: null,
|
|
@@ -9836,15 +9787,16 @@ const cartStoreUpdateToErrorState = ({ messages, title, }) => {
|
|
|
9836
9787
|
title,
|
|
9837
9788
|
};
|
|
9838
9789
|
};
|
|
9839
|
-
const cartStoreApplySubtotals = (subtotals,
|
|
9790
|
+
const cartStoreApplySubtotals = ({ dutiesTaxesFeesEstimate, method, subtotals, }) => {
|
|
9840
9791
|
// update exchange rate so we can use it to display cart items
|
|
9841
9792
|
cartStore.exchangeRate = subtotals.exchangeRate;
|
|
9842
9793
|
cartStore.adjustmentTotal = subtotals.adjustments;
|
|
9843
|
-
cartStore.dutiesTaxesFees =
|
|
9794
|
+
cartStore.dutiesTaxesFees =
|
|
9795
|
+
method === 'DAP' ? null : subtotals.landedCostTotal;
|
|
9844
9796
|
cartStore.subtotal = subtotals.items;
|
|
9845
9797
|
cartStore.total = subtotals.total;
|
|
9846
9798
|
cartStore.currency = subtotals.presentmentCurrencyCode;
|
|
9847
|
-
cartStore.dutiesTaxesFeesEstimate = dutiesTaxesFeesEstimate ||
|
|
9799
|
+
cartStore.dutiesTaxesFeesEstimate = dutiesTaxesFeesEstimate || null;
|
|
9848
9800
|
};
|
|
9849
9801
|
/**
|
|
9850
9802
|
* Detect if there are any items in cart that are not restricted and have positive amount, exclude negative amount items
|
|
@@ -9868,10 +9820,15 @@ const cartStoreSetCheckoutSession = (checkoutSession) => {
|
|
|
9868
9820
|
}
|
|
9869
9821
|
};
|
|
9870
9822
|
const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency, dutiesTaxesFeesEstimate, itemsAmount, landedCostId, }) => {
|
|
9823
|
+
var _a;
|
|
9871
9824
|
if (landedCostId && cartStore.selectedLandedCost) {
|
|
9872
9825
|
// update cart total right away if we have landed cost id to avoid order total flickering
|
|
9873
9826
|
const subtotals = cartStore.selectedLandedCost.subtotals;
|
|
9874
|
-
cartStoreApplySubtotals(
|
|
9827
|
+
cartStoreApplySubtotals({
|
|
9828
|
+
dutiesTaxesFeesEstimate,
|
|
9829
|
+
method: cartStore.landedCostMethod,
|
|
9830
|
+
subtotals,
|
|
9831
|
+
});
|
|
9875
9832
|
handleFetch.log('Exchange rate updated for cart items (landed cost subtotal)', 'info', cartStore.exchangeRate);
|
|
9876
9833
|
}
|
|
9877
9834
|
// update checkout session
|
|
@@ -9902,7 +9859,10 @@ const cartStoreReCalculateTotal = async ({ adjustmentsAmount, cartId, currency,
|
|
|
9902
9859
|
if (!landedCostId) {
|
|
9903
9860
|
// This is when we first open the checkout modal and we just want to get info from the old cart session.
|
|
9904
9861
|
// use subtotals from checkout session to update cart total
|
|
9905
|
-
cartStoreApplySubtotals(
|
|
9862
|
+
cartStoreApplySubtotals({
|
|
9863
|
+
method: ((_a = json.checkoutSessionUpdate.landedCost) === null || _a === void 0 ? void 0 : _a.method) || 'DDP',
|
|
9864
|
+
subtotals: json.checkoutSessionUpdate.subtotals,
|
|
9865
|
+
});
|
|
9906
9866
|
handleFetch.log('Exchange rate updated for cart items (checkout session update)', 'info', cartStore.exchangeRate);
|
|
9907
9867
|
}
|
|
9908
9868
|
cartStoreSetCheckoutSession(json.checkoutSessionUpdate);
|
|
@@ -9927,12 +9887,13 @@ const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption, lan
|
|
|
9927
9887
|
// do nothing if we can't find landed cost for selected shipping option
|
|
9928
9888
|
return false;
|
|
9929
9889
|
}
|
|
9930
|
-
// If the quote is DAP,
|
|
9931
|
-
const
|
|
9932
|
-
|
|
9933
|
-
const
|
|
9890
|
+
// If the quote is DAP, then convert manually.
|
|
9891
|
+
const landedCostAmount = ((_b = selectedLandedCost.landedCost.amountSubtotals) === null || _b === void 0 ? void 0 : _b.landedCostTotal) || 0;
|
|
9892
|
+
// Convert using checkout presentment exchange rate
|
|
9893
|
+
const exchangeRate = selectedLandedCost.subtotals.exchangeRate.rate;
|
|
9894
|
+
const dutiesTaxesFeesEstimate = landedCostAmount * exchangeRate;
|
|
9934
9895
|
if (dutiesTaxesFeesEstimate) {
|
|
9935
|
-
handleFetch.log(`DAP quote, using estimate
|
|
9896
|
+
handleFetch.log(`DAP quote, using estimate: ${dutiesTaxesFeesEstimate}`, 'info');
|
|
9936
9897
|
}
|
|
9937
9898
|
cartStore.landedCostMethod = selectedLandedCost.landedCost.method || 'DDP';
|
|
9938
9899
|
// update shipping value and dutiesTaxFees on selectedShippingOption change
|