@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.
Files changed (149) hide show
  1. package/dist/cjs/{cart-8a585d9b.js → cart-11d066b2.js} +165 -56
  2. package/dist/cjs/{createCustomEvent-1ad96183.js → createCustomEvent-68af46cb.js} +1 -1
  3. package/dist/cjs/index.cjs.js +8 -8
  4. package/dist/cjs/{paypal-81274880.js → paypal-aa0570f4.js} +1 -1
  5. package/dist/cjs/zonos-address_8.cjs.entry.js +1 -1
  6. package/dist/cjs/zonos-badge_13.cjs.entry.js +14 -16
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +14 -10
  8. package/dist/cjs/zonos-controller.cjs.entry.js +5 -1
  9. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  13. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-notification_3.cjs.entry.js +2 -2
  15. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +1 -1
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -1
  17. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +11 -7
  18. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +10 -12
  19. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
  20. package/dist/collection/components/store/checkout/cart.js +31 -29
  21. package/dist/collection/components/store/checkout/stripe.js +9 -9
  22. package/dist/collection/components/store/translationStore/strings.arabic.js +6 -0
  23. package/dist/collection/components/store/translationStore/strings.base.js +6 -0
  24. package/dist/collection/components/store/translationStore/strings.chinese.js +6 -0
  25. package/dist/collection/components/store/translationStore/strings.danish.js +6 -0
  26. package/dist/collection/components/store/translationStore/strings.dutch.js +6 -0
  27. package/dist/collection/components/store/translationStore/strings.french.js +6 -0
  28. package/dist/collection/components/store/translationStore/strings.german.js +6 -0
  29. package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -0
  30. package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -0
  31. package/dist/collection/components/store/translationStore/strings.italian.js +6 -0
  32. package/dist/collection/components/store/translationStore/strings.japanese.js +6 -0
  33. package/dist/collection/components/store/translationStore/strings.korean.js +6 -0
  34. package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -0
  35. package/dist/collection/components/store/translationStore/strings.polish.js +6 -0
  36. package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -0
  37. package/dist/collection/components/store/translationStore/strings.russian.js +6 -0
  38. package/dist/collection/components/store/translationStore/strings.spanish.js +6 -0
  39. package/dist/collection/components/store/translationStore/strings.swedish.js +6 -0
  40. package/dist/collection/components/store/translationStore/strings.turkish.js +6 -0
  41. package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -0
  42. package/dist/collection/components/store/translationStore.js +3 -3
  43. package/dist/collection/components/utils/hello/currencyConversion/currencyDisplay.js +2 -1
  44. package/dist/collection/components/utils/hello/currencyConversion/currencyFormat.js +3 -3
  45. package/dist/collection/components/utils/hello/initHello.js +4 -0
  46. package/dist/collection/scripts/_zonosBase.js +1 -1
  47. package/dist/collection/types/generated/graphql.customer.types.js +13 -0
  48. package/dist/esm/{cart-53bd48de.js → cart-7f82d6bf.js} +165 -56
  49. package/dist/esm/{createCustomEvent-0376082a.js → createCustomEvent-3a894453.js} +1 -1
  50. package/dist/esm/index.js +8 -8
  51. package/dist/esm/{paypal-09ebeb63.js → paypal-91a34d75.js} +1 -1
  52. package/dist/esm/zonos-address_8.entry.js +1 -1
  53. package/dist/esm/zonos-badge_13.entry.js +14 -16
  54. package/dist/esm/zonos-checkout.entry.js +14 -10
  55. package/dist/esm/zonos-controller.entry.js +5 -1
  56. package/dist/esm/zonos-country-flag.entry.js +1 -1
  57. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  58. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  59. package/dist/esm/zonos-hello.entry.js +1 -1
  60. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  61. package/dist/esm/zonos-notification_3.entry.js +2 -2
  62. package/dist/esm/zonos-shipping-rich-radio.entry.js +1 -1
  63. package/dist/esm-es5/cart-7f82d6bf.js +1 -0
  64. package/dist/esm-es5/{createCustomEvent-0376082a.js → createCustomEvent-3a894453.js} +1 -1
  65. package/dist/esm-es5/index.js +1 -1
  66. package/dist/esm-es5/{paypal-09ebeb63.js → paypal-91a34d75.js} +1 -1
  67. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  68. package/dist/esm-es5/zonos-badge_13.entry.js +1 -1
  69. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  70. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  71. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  72. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  73. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  74. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  75. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  76. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  77. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  78. package/dist/scripts/index.d.ts +14 -10
  79. package/dist/scripts/index.js +1 -1
  80. package/dist/scripts/loadZonos.js +1 -1
  81. package/dist/scripts/zonos.js +1 -1
  82. package/dist/types/components/store/checkout/cart.d.ts +4 -5
  83. package/dist/types/components/store/checkout/stripe.d.ts +2 -2
  84. package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -0
  85. package/dist/types/components/store/translationStore/strings.base.d.ts +6 -0
  86. package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -0
  87. package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -0
  88. package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -0
  89. package/dist/types/components/store/translationStore/strings.french.d.ts +6 -0
  90. package/dist/types/components/store/translationStore/strings.german.d.ts +6 -0
  91. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -0
  92. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -0
  93. package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -0
  94. package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -0
  95. package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -0
  96. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -0
  97. package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -0
  98. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -0
  99. package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -0
  100. package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -0
  101. package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -0
  102. package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -0
  103. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -0
  104. package/dist/types/components/store/translationStore.d.ts +4 -3
  105. package/dist/types/types/generated/graphql.customer.types.d.ts +47 -37
  106. package/dist/types/types/generated/graphql.customer.types.ts +57 -40
  107. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  108. package/dist/zonos-elements/index.esm.js +1 -1
  109. package/dist/zonos-elements/{p-f3d02a32.js → p-11c9a75c.js} +1 -1
  110. package/dist/zonos-elements/{p-9a868fb6.entry.js → p-12fa5286.entry.js} +1 -1
  111. package/dist/zonos-elements/{p-a58cb682.system.entry.js → p-2264efbe.system.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-05478b55.js → p-229f7399.js} +1 -1
  113. package/dist/zonos-elements/{p-d9c86ca5.system.entry.js → p-351f3207.system.entry.js} +1 -1
  114. package/dist/zonos-elements/p-3b904bf5.js +1 -0
  115. package/dist/zonos-elements/{p-bf8ae6bb.entry.js → p-3f0eb9df.entry.js} +1 -1
  116. package/dist/zonos-elements/p-43a5653e.system.entry.js +1 -0
  117. package/dist/zonos-elements/p-45dcfef2.system.js +1 -0
  118. package/dist/zonos-elements/{p-54bacb24.system.js → p-52c9d64e.system.js} +1 -1
  119. package/dist/zonos-elements/{p-3b1a5f38.entry.js → p-68e27f6d.entry.js} +1 -1
  120. package/dist/zonos-elements/{p-917aced6.system.entry.js → p-70794698.system.entry.js} +1 -1
  121. package/dist/zonos-elements/{p-b3eed5e5.system.js → p-7348fcb1.system.js} +1 -1
  122. package/dist/zonos-elements/{p-e2e28c07.system.entry.js → p-76faa16f.system.entry.js} +1 -1
  123. package/dist/zonos-elements/p-77b8c1b6.entry.js +1 -0
  124. package/dist/zonos-elements/p-7a4fc640.entry.js +1 -0
  125. package/dist/zonos-elements/{p-12ade4bb.system.entry.js → p-88a79bdb.system.entry.js} +1 -1
  126. package/dist/zonos-elements/{p-9a5a403b.system.entry.js → p-96702555.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-0f90a98b.entry.js → p-a048ee0a.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-ef0913d2.system.entry.js → p-b2b52158.system.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-4a4ce63c.entry.js → p-c71c9fbd.entry.js} +1 -1
  130. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  131. package/dist/zonos-elements/{p-f8acfefd.system.entry.js → p-c93473ba.system.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-11bcfa61.system.entry.js → p-cc779ac1.system.entry.js} +1 -1
  133. package/dist/zonos-elements/p-d491eab9.system.entry.js +1 -0
  134. package/dist/zonos-elements/{p-6f087aaf.entry.js → p-d559e191.entry.js} +1 -1
  135. package/dist/zonos-elements/p-da400c8f.entry.js +1 -0
  136. package/dist/zonos-elements/{p-e7347556.entry.js → p-ddd3099b.entry.js} +1 -1
  137. package/dist/zonos-elements/p-fce17550.entry.js +1 -0
  138. package/dist/zonos-elements/{p-1d4b6884.system.js → p-fff15925.system.js} +1 -1
  139. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  140. package/package.json +1 -1
  141. package/dist/esm-es5/cart-53bd48de.js +0 -1
  142. package/dist/zonos-elements/p-12e3af70.system.entry.js +0 -1
  143. package/dist/zonos-elements/p-4baa8211.entry.js +0 -1
  144. package/dist/zonos-elements/p-5b0470ad.entry.js +0 -1
  145. package/dist/zonos-elements/p-aaa4693a.system.js +0 -1
  146. package/dist/zonos-elements/p-cfe17508.js +0 -1
  147. package/dist/zonos-elements/p-e3b0a988.entry.js +0 -1
  148. package/dist/zonos-elements/p-f4a27b43.entry.js +0 -1
  149. package/dist/zonos-elements/p-ff905aef.system.entry.js +0 -1
@@ -349,12 +349,18 @@ const stringsArabic = {
349
349
  'click to learn more': {
350
350
  value: 'انقر لمعرفة المزيد',
351
351
  },
352
+ days: {
353
+ value: 'أيام',
354
+ },
352
355
  or: {
353
356
  value: 'أو',
354
357
  },
355
358
  'restricted items': {
356
359
  value: 'عناصر مقيدة',
357
360
  },
361
+ weeks: {
362
+ value: 'أسابيع',
363
+ },
358
364
  };
359
365
 
360
366
  const stringsBase = {
@@ -703,12 +709,18 @@ const stringsBase = {
703
709
  'click to learn more': {
704
710
  value: 'click to learn more',
705
711
  },
712
+ days: {
713
+ value: 'days',
714
+ },
706
715
  or: {
707
716
  value: 'or',
708
717
  },
709
718
  'restricted items': {
710
719
  value: 'restricted items',
711
720
  },
721
+ weeks: {
722
+ value: 'weeks',
723
+ },
712
724
  };
713
725
 
714
726
  const stringsChinese = {
@@ -1057,12 +1069,18 @@ const stringsChinese = {
1057
1069
  'click to learn more': {
1058
1070
  value: '点击了解更多',
1059
1071
  },
1072
+ days: {
1073
+ value: '天',
1074
+ },
1060
1075
  or: {
1061
1076
  value: '或',
1062
1077
  },
1063
1078
  'restricted items': {
1064
1079
  value: '限制物品',
1065
1080
  },
1081
+ weeks: {
1082
+ value: '周',
1083
+ },
1066
1084
  };
1067
1085
 
1068
1086
  const stringsDanish = {
@@ -1411,12 +1429,18 @@ const stringsDanish = {
1411
1429
  'click to learn more': {
1412
1430
  value: 'klik for at lære mere',
1413
1431
  },
1432
+ days: {
1433
+ value: 'dage',
1434
+ },
1414
1435
  or: {
1415
1436
  value: 'eller',
1416
1437
  },
1417
1438
  'restricted items': {
1418
1439
  value: 'begrænsede genstande',
1419
1440
  },
1441
+ weeks: {
1442
+ value: 'uger',
1443
+ },
1420
1444
  };
1421
1445
 
1422
1446
  const stringsDutch = {
@@ -1765,12 +1789,18 @@ const stringsDutch = {
1765
1789
  'click to learn more': {
1766
1790
  value: 'klik om meer te leren',
1767
1791
  },
1792
+ days: {
1793
+ value: 'dagen',
1794
+ },
1768
1795
  or: {
1769
1796
  value: 'of',
1770
1797
  },
1771
1798
  'restricted items': {
1772
1799
  value: 'beperkte items',
1773
1800
  },
1801
+ weeks: {
1802
+ value: 'weken',
1803
+ },
1774
1804
  };
1775
1805
 
1776
1806
  const stringsFrench = {
@@ -2119,12 +2149,18 @@ const stringsFrench = {
2119
2149
  'click to learn more': {
2120
2150
  value: 'cliquez pour en savoir plus',
2121
2151
  },
2152
+ days: {
2153
+ value: 'jours',
2154
+ },
2122
2155
  or: {
2123
2156
  value: 'ou',
2124
2157
  },
2125
2158
  'restricted items': {
2126
2159
  value: 'articles restreints',
2127
2160
  },
2161
+ weeks: {
2162
+ value: 'semaines',
2163
+ },
2128
2164
  };
2129
2165
 
2130
2166
  const stringsGerman = {
@@ -2473,12 +2509,18 @@ const stringsGerman = {
2473
2509
  'click to learn more': {
2474
2510
  value: 'Klicken, um mehr zu erfahren',
2475
2511
  },
2512
+ days: {
2513
+ value: 'Tage',
2514
+ },
2476
2515
  or: {
2477
2516
  value: 'oder',
2478
2517
  },
2479
2518
  'restricted items': {
2480
2519
  value: 'eingeschränkte Artikel',
2481
2520
  },
2521
+ weeks: {
2522
+ value: 'Wochen',
2523
+ },
2482
2524
  };
2483
2525
 
2484
2526
  const stringsHebrew = {
@@ -2827,12 +2869,18 @@ const stringsHebrew = {
2827
2869
  'click to learn more': {
2828
2870
  value: 'לחץ למידע נוסף',
2829
2871
  },
2872
+ days: {
2873
+ value: 'ימים',
2874
+ },
2830
2875
  or: {
2831
2876
  value: 'או',
2832
2877
  },
2833
2878
  'restricted items': {
2834
2879
  value: 'פריטים מוגבלים',
2835
2880
  },
2881
+ weeks: {
2882
+ value: 'שבועות',
2883
+ },
2836
2884
  };
2837
2885
 
2838
2886
  const stringsIndonesian = {
@@ -3181,12 +3229,18 @@ const stringsIndonesian = {
3181
3229
  'click to learn more': {
3182
3230
  value: 'klik untuk belajar lebih lanjut',
3183
3231
  },
3232
+ days: {
3233
+ value: 'hari',
3234
+ },
3184
3235
  or: {
3185
3236
  value: 'atau',
3186
3237
  },
3187
3238
  'restricted items': {
3188
3239
  value: 'barang terbatas',
3189
3240
  },
3241
+ weeks: {
3242
+ value: 'minggu',
3243
+ },
3190
3244
  };
3191
3245
 
3192
3246
  const stringsItalian = {
@@ -3535,12 +3589,18 @@ const stringsItalian = {
3535
3589
  'click to learn more': {
3536
3590
  value: 'clicca per saperne di più',
3537
3591
  },
3592
+ days: {
3593
+ value: 'giorni',
3594
+ },
3538
3595
  or: {
3539
3596
  value: 'o',
3540
3597
  },
3541
3598
  'restricted items': {
3542
3599
  value: 'articoli limitati',
3543
3600
  },
3601
+ weeks: {
3602
+ value: 'settimane',
3603
+ },
3544
3604
  };
3545
3605
 
3546
3606
  const stringsJapanese = {
@@ -3889,12 +3949,18 @@ const stringsJapanese = {
3889
3949
  'click to learn more': {
3890
3950
  value: '詳細を知るにはクリック',
3891
3951
  },
3952
+ days: {
3953
+ value: '日々',
3954
+ },
3892
3955
  or: {
3893
3956
  value: 'または',
3894
3957
  },
3895
3958
  'restricted items': {
3896
3959
  value: '制限された項目',
3897
3960
  },
3961
+ weeks: {
3962
+ value: '週間',
3963
+ },
3898
3964
  };
3899
3965
 
3900
3966
  const stringsKorean = {
@@ -4243,12 +4309,18 @@ const stringsKorean = {
4243
4309
  'click to learn more': {
4244
4310
  value: '자세히 알아보려면 클릭',
4245
4311
  },
4312
+ days: {
4313
+ value: '일',
4314
+ },
4246
4315
  or: {
4247
4316
  value: '또는',
4248
4317
  },
4249
4318
  'restricted items': {
4250
4319
  value: '제한된 항목',
4251
4320
  },
4321
+ weeks: {
4322
+ value: '주',
4323
+ },
4252
4324
  };
4253
4325
 
4254
4326
  const stringsNorwegian = {
@@ -4597,12 +4669,18 @@ const stringsNorwegian = {
4597
4669
  'click to learn more': {
4598
4670
  value: 'klikk for å lære mer',
4599
4671
  },
4672
+ days: {
4673
+ value: 'dager',
4674
+ },
4600
4675
  or: {
4601
4676
  value: 'eller',
4602
4677
  },
4603
4678
  'restricted items': {
4604
4679
  value: 'begrensede elementer',
4605
4680
  },
4681
+ weeks: {
4682
+ value: 'uker',
4683
+ },
4606
4684
  };
4607
4685
 
4608
4686
  const stringsPolish = {
@@ -4951,12 +5029,18 @@ const stringsPolish = {
4951
5029
  'click to learn more': {
4952
5030
  value: 'kliknij, aby dowiedzieć się więcej',
4953
5031
  },
5032
+ days: {
5033
+ value: 'dni',
5034
+ },
4954
5035
  or: {
4955
5036
  value: 'lub',
4956
5037
  },
4957
5038
  'restricted items': {
4958
5039
  value: 'przedmioty ograniczone',
4959
5040
  },
5041
+ weeks: {
5042
+ value: 'tygodnie',
5043
+ },
4960
5044
  };
4961
5045
 
4962
5046
  const stringsPortuguese = {
@@ -5305,12 +5389,18 @@ const stringsPortuguese = {
5305
5389
  'click to learn more': {
5306
5390
  value: 'clique para saber mais',
5307
5391
  },
5392
+ days: {
5393
+ value: 'dias',
5394
+ },
5308
5395
  or: {
5309
5396
  value: 'ou',
5310
5397
  },
5311
5398
  'restricted items': {
5312
5399
  value: 'itens restritos',
5313
5400
  },
5401
+ weeks: {
5402
+ value: 'semanas',
5403
+ },
5314
5404
  };
5315
5405
 
5316
5406
  const stringsRussian = {
@@ -5659,12 +5749,18 @@ const stringsRussian = {
5659
5749
  'click to learn more': {
5660
5750
  value: 'нажмите, чтобы узнать больше',
5661
5751
  },
5752
+ days: {
5753
+ value: 'дни',
5754
+ },
5662
5755
  or: {
5663
5756
  value: 'или',
5664
5757
  },
5665
5758
  'restricted items': {
5666
5759
  value: 'ограниченные предметы',
5667
5760
  },
5761
+ weeks: {
5762
+ value: 'недели',
5763
+ },
5668
5764
  };
5669
5765
 
5670
5766
  const stringsSpanish = {
@@ -6013,12 +6109,18 @@ const stringsSpanish = {
6013
6109
  'click to learn more': {
6014
6110
  value: 'haga clic para obtener más información',
6015
6111
  },
6112
+ days: {
6113
+ value: 'días',
6114
+ },
6016
6115
  or: {
6017
6116
  value: 'o',
6018
6117
  },
6019
6118
  'restricted items': {
6020
6119
  value: 'artículos restringidos',
6021
6120
  },
6121
+ weeks: {
6122
+ value: 'semanas',
6123
+ },
6022
6124
  };
6023
6125
 
6024
6126
  const stringsSwedish = {
@@ -6367,12 +6469,18 @@ const stringsSwedish = {
6367
6469
  'click to learn more': {
6368
6470
  value: 'klicka för att lära dig mer',
6369
6471
  },
6472
+ days: {
6473
+ value: 'dagar',
6474
+ },
6370
6475
  or: {
6371
6476
  value: 'eller',
6372
6477
  },
6373
6478
  'restricted items': {
6374
6479
  value: 'begränsade föremål',
6375
6480
  },
6481
+ weeks: {
6482
+ value: 'veckor',
6483
+ },
6376
6484
  };
6377
6485
 
6378
6486
  const stringsTurkish = {
@@ -6721,12 +6829,18 @@ const stringsTurkish = {
6721
6829
  'click to learn more': {
6722
6830
  value: 'daha fazla bilgi için tıklayın',
6723
6831
  },
6832
+ days: {
6833
+ value: 'günler',
6834
+ },
6724
6835
  or: {
6725
6836
  value: 'veya',
6726
6837
  },
6727
6838
  'restricted items': {
6728
6839
  value: 'kısıtlı öğeler',
6729
6840
  },
6841
+ weeks: {
6842
+ value: 'haftalar',
6843
+ },
6730
6844
  };
6731
6845
 
6732
6846
  const stringsVietnamese = {
@@ -7075,12 +7189,18 @@ const stringsVietnamese = {
7075
7189
  'click to learn more': {
7076
7190
  value: 'nhấp để tìm hiểu thêm',
7077
7191
  },
7192
+ days: {
7193
+ value: 'ngày',
7194
+ },
7078
7195
  or: {
7079
7196
  value: 'hoặc',
7080
7197
  },
7081
7198
  'restricted items': {
7082
7199
  value: 'mặt hàng bị hạn chế',
7083
7200
  },
7201
+ weeks: {
7202
+ value: 'tuần',
7203
+ },
7084
7204
  };
7085
7205
 
7086
7206
  const { state: translationStore } = createStore(() => ({
@@ -7389,7 +7509,7 @@ const currencyFormat = ({ amount, currency, }) => {
7389
7509
  return result;
7390
7510
  }
7391
7511
  const currencyDisplay = (overrideCurrencyFormat === null || overrideCurrencyFormat === void 0 ? void 0 : overrideCurrencyFormat.currencyDisplay) || 'symbol';
7392
- const formatedNumber = new Intl.NumberFormat(window.navigator.language, {
7512
+ const formattedNumber = new Intl.NumberFormat(window.navigator.language, {
7393
7513
  currency: targetCurrency,
7394
7514
  currencyDisplay,
7395
7515
  minimumFractionDigits: minimumFractionDigits,
@@ -7397,8 +7517,8 @@ const currencyFormat = ({ amount, currency, }) => {
7397
7517
  }).format(amount);
7398
7518
  // Move currency code to the end of the string if currencyDisplay is 'code'
7399
7519
  const result = currencyDisplay === 'code'
7400
- ? `${formatedNumber.replace(new RegExp(`${targetCurrency}\\s+`), '')} ${targetCurrency}`
7401
- : formatedNumber;
7520
+ ? `${formattedNumber.replace(new RegExp(`${targetCurrency}\\s+`), '')} ${targetCurrency}`
7521
+ : formattedNumber;
7402
7522
  return result;
7403
7523
  };
7404
7524
 
@@ -7521,7 +7641,8 @@ const defaultCurrencyConverter = () => {
7521
7641
  };
7522
7642
 
7523
7643
  const currencyDisplay = () => {
7524
- if (zonosStore.helloSettings.currencyBehavior === 'DISABLED') {
7644
+ if (zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
7645
+ window.Zonos.isLegacyCheckout) {
7525
7646
  return;
7526
7647
  }
7527
7648
  defaultCurrencyConverter();
@@ -8167,7 +8288,7 @@ const defaultVariable = ({ borderStyle, theme, }) => {
8167
8288
 
8168
8289
  const { onChange: onChange$1, reset: reset$1, state: stripeStore, } = createStore(() => ({
8169
8290
  clientSecret: sessionStorage.getItem('zonos--client-secret') || null,
8170
- fetchingLandedCostAbordController: null,
8291
+ fetchingLandedCostAbortController: null,
8171
8292
  hasPaymentError: false,
8172
8293
  isFetchingLandedCost: false,
8173
8294
  isFetchingSession: false,
@@ -8197,7 +8318,7 @@ const { onChange: onChange$1, reset: reset$1, state: stripeStore, } = createStor
8197
8318
  name: {},
8198
8319
  },
8199
8320
  }));
8200
- const getStripeOptions = ({ clientSecret, overrideBorderRaidus, overridePrimaryColor, overrideSecondaryColor, overrideTheme, }) => {
8321
+ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryColor, overrideSecondaryColor, overrideTheme, }) => {
8201
8322
  const primaryColor = overridePrimaryColor || zonosStore.appearance.colorPrimary;
8202
8323
  const secondaryColor = overrideSecondaryColor || zonosStore.appearance.colorSecondary;
8203
8324
  const themeBasedColor = primaryColor && isDarkColor(primaryColor) ? 'night' : 'flat';
@@ -8210,7 +8331,7 @@ const getStripeOptions = ({ clientSecret, overrideBorderRaidus, overridePrimaryC
8210
8331
  // get contrast theme color base on primary color
8211
8332
  theme: overrideTheme ? theme : themeBasedColor,
8212
8333
  variables: Object.assign(Object.assign({}, defaultVariable({
8213
- borderStyle: overrideBorderRaidus,
8334
+ borderStyle: overrideBorderRadius,
8214
8335
  theme: 'LIGHT',
8215
8336
  })), {
8216
8337
  // use the button background color for input glow color
@@ -8241,7 +8362,7 @@ const initStripeElements = async (props) => {
8241
8362
  if (clientSecret) {
8242
8363
  const stripeOptions = getStripeOptions({
8243
8364
  clientSecret,
8244
- overrideBorderRaidus: props === null || props === void 0 ? void 0 : props.overrideBorderRaidus,
8365
+ overrideBorderRadius: props === null || props === void 0 ? void 0 : props.overrideBorderRadius,
8245
8366
  overridePrimaryColor: props === null || props === void 0 ? void 0 : props.overridePrimaryColor,
8246
8367
  overrideSecondaryColor: props === null || props === void 0 ? void 0 : props.overrideSecondaryColor,
8247
8368
  overrideTheme: props === null || props === void 0 ? void 0 : props.overrideTheme,
@@ -8325,8 +8446,8 @@ const stripeStorePrefetchLandedCost = async () => {
8325
8446
  const shouldRefetch = isPrefetchInfoOutdated();
8326
8447
  if (shouldRefetch) {
8327
8448
  // if the info used when fetching landed cost is different from the current info, abort the previous request
8328
- (_e = stripeStore.fetchingLandedCostAbordController) === null || _e === void 0 ? void 0 : _e.abort();
8329
- stripeStore.fetchingLandedCostAbordController = null;
8449
+ (_e = stripeStore.fetchingLandedCostAbortController) === null || _e === void 0 ? void 0 : _e.abort();
8450
+ stripeStore.fetchingLandedCostAbortController = null;
8330
8451
  }
8331
8452
  // only fetch if we are not fetching or we need to refetch
8332
8453
  if (stripeAddressReady &&
@@ -8345,12 +8466,12 @@ const stripeStorePrefetchLandedCost = async () => {
8345
8466
  }
8346
8467
  try {
8347
8468
  const abortController = new AbortController();
8348
- stripeStore.fetchingLandedCostAbordController = abortController;
8469
+ stripeStore.fetchingLandedCostAbortController = abortController;
8349
8470
  // Reset cart items to non-restricted state and restricted item list
8350
8471
  cartStoreResetCartItems();
8351
8472
  const { checkoutSessionWorkflow, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
8352
8473
  // reset abort controller after we are done
8353
- stripeStore.fetchingLandedCostAbordController = null;
8474
+ stripeStore.fetchingLandedCostAbortController = null;
8354
8475
  // update cart store with landed cost info
8355
8476
  cartStore.landedCostData =
8356
8477
  (checkoutSessionWorkflow === null || checkoutSessionWorkflow === void 0 ? void 0 : checkoutSessionWorkflow.map(checkoutSession => {
@@ -8473,7 +8594,7 @@ const stripeStoreConfirmPayment = async () => {
8473
8594
  const stripe = stripeStore.stripe;
8474
8595
  const stripeClientSecret = stripeStore.clientSecret;
8475
8596
  if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id)) {
8476
- throw new Error('Attemped to confirm the payment when no landed cost is found in store');
8597
+ throw new Error('Attempted to confirm the payment when no landed cost is found in store');
8477
8598
  }
8478
8599
  if (stripe && stripeElements && stripePaymentReady && stripeClientSecret) {
8479
8600
  const { error } = await stripe.confirmPayment({
@@ -8689,22 +8810,6 @@ onChange$1('clientSecret', clientSecret => {
8689
8810
  }
8690
8811
  });
8691
8812
 
8692
- const formatDate = ({ date,
8693
- // eslint-disable-next-line sort-keys/sort-keys-fix
8694
- formatOptions = {
8695
- dateStyle: 'full',
8696
- }, }) => {
8697
- // format date to 'Wednesday, May 15, 2024'
8698
- return new Intl.DateTimeFormat('en-US', formatOptions).format(date);
8699
- };
8700
-
8701
- const getDaysDifference = (targetDate) => {
8702
- const currentDate = new Date();
8703
- const timeDifference = targetDate.getTime() - currentDate.getTime();
8704
- const daysDifference = Math.floor(timeDifference / (1000 * 60 * 60 * 24)); // Convert milliseconds to days
8705
- return daysDifference;
8706
- };
8707
-
8708
8813
  const { onChange, reset, state: cartStore, } = createStore(() => ({
8709
8814
  adjustmentTotal: 0,
8710
8815
  adjustments: [],
@@ -8755,6 +8860,17 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
8755
8860
  },
8756
8861
  total: 0,
8757
8862
  }));
8863
+ const getTransitUnit = (type) => {
8864
+ switch (type) {
8865
+ case 'DAYS':
8866
+ return translate('days');
8867
+ case 'WEEKS':
8868
+ return translate('weeks');
8869
+ case 'BUSINESS_DAYS':
8870
+ default:
8871
+ return translate('business days');
8872
+ }
8873
+ };
8758
8874
  /**
8759
8875
  * Format shipping transit info to be displayed on UI
8760
8876
  * @returns
@@ -8763,21 +8879,16 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
8763
8879
  * - minTransit: 3
8764
8880
  */
8765
8881
  const cartStoreGetShippingTransitInfo = (item) => {
8766
- const minTransit = item.minTransitAt
8767
- ? getDaysDifference(new Date(item.minTransitAt))
8768
- : '';
8769
- const maxTransit = item.maxTransitAt
8770
- ? getDaysDifference(new Date(item.maxTransitAt))
8771
- : '';
8772
- const expectedDate = item.minTransitAt
8773
- ? formatDate({
8774
- date: new Date(item.minTransitAt),
8775
- })
8776
- : '';
8882
+ var _a;
8883
+ const transitTime = (_a = item.shippingProfile) === null || _a === void 0 ? void 0 : _a.transitTime;
8884
+ // Don't care about falsy 0 values because this is international shipping and 0 days is not feasible
8885
+ if (!(transitTime === null || transitTime === void 0 ? void 0 : transitTime.min) || !(transitTime === null || transitTime === void 0 ? void 0 : transitTime.max) || !(transitTime === null || transitTime === void 0 ? void 0 : transitTime.type)) {
8886
+ return null;
8887
+ }
8777
8888
  return {
8778
- expectedDate,
8779
- maxTransit,
8780
- minTransit,
8889
+ maxTransit: transitTime.max,
8890
+ minTransit: transitTime.min,
8891
+ unit: getTransitUnit(transitTime.type),
8781
8892
  };
8782
8893
  };
8783
8894
  const getMatchItem = ({ item1, item2, }) => {
@@ -8890,7 +9001,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, i
8890
9001
  return false;
8891
9002
  }
8892
9003
  if (!landedCostId) {
8893
- // This is when first open the checkout modal and we just want to get info from the old cart session.
9004
+ // This is when we first open the checkout modal and we just want to get info from the old cart session.
8894
9005
  // use subtotals from checkout session to update cart total
8895
9006
  cartStoreApplySubtotals(json.checkoutSessionUpdate.subtotals);
8896
9007
  log('Exchange rate updated for cart items (checkout session update)', 'info', cartStore.exchangeRate);
@@ -8902,12 +9013,11 @@ const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption) =>
8902
9013
  var _a, _b, _c, _d, _e;
8903
9014
  cartStore.selectedShippingOption = selectedShippingOption;
8904
9015
  // update shipping transit info
8905
- const { expectedDate, maxTransit, minTransit } = cartStoreGetShippingTransitInfo(cartStore.selectedShippingOption);
8906
- cartStore.selectedShippingOptionExpectedDate = expectedDate;
8907
- cartStore.selectedShippingOptionTransitTime =
8908
- minTransit && maxTransit
8909
- ? `${minTransit}-${maxTransit}`
8910
- : `${minTransit || maxTransit}`;
9016
+ const transitData = cartStoreGetShippingTransitInfo(cartStore.selectedShippingOption);
9017
+ if (transitData) {
9018
+ const { maxTransit, minTransit, unit } = transitData;
9019
+ cartStore.selectedShippingOptionTransitTime = `${minTransit}-${maxTransit} ${unit}`;
9020
+ }
8911
9021
  const selectedLandedCost = (_a = cartStore.landedCostData) === null || _a === void 0 ? void 0 : _a.find(checkoutSessionPresentment => {
8912
9022
  var _a, _b, _c;
8913
9023
  return ((_b = (_a = checkoutSessionPresentment.landedCost) === null || _a === void 0 ? void 0 : _a.shipmentRating) === null || _b === void 0 ? void 0 : _b.id) ===
@@ -8928,12 +9038,12 @@ const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption) =>
8928
9038
  cartStore.isSelectedShippingAboveDeminimis = isAboveDeminimis;
8929
9039
  cartStore.isSelectedShippingGuarantee = isGuarantee;
8930
9040
  // update session with selected landed cost
8931
- const updateCalulateStatus = await cartStoreReCalculateTotal({
9041
+ const updateCalculateStatus = await cartStoreReCalculateTotal({
8932
9042
  adjustmentAmount: cartStore.adjustmentTotal,
8933
9043
  cartId: window.Zonos.cartId,
8934
9044
  landedCostId: (_e = selectedLandedCost.landedCost) === null || _e === void 0 ? void 0 : _e.id,
8935
9045
  });
8936
- return updateCalulateStatus;
9046
+ return updateCalculateStatus;
8937
9047
  };
8938
9048
  onChange('checkoutSessionId', () => {
8939
9049
  if (!cartStore.checkoutSessionId) {
@@ -8979,16 +9089,16 @@ const cartStoreUpdateItems = async ({ adjustments, cartItems, }) => {
8979
9089
  const total = cartItems.reduce((amt, item) => {
8980
9090
  return amt + item.amount * item.quantity;
8981
9091
  }, 0);
8982
- const adjustmenTotal = adjustments.reduce((amt, adjustment) => amt + adjustment.amount, 0);
9092
+ const adjustmentTotal = adjustments.reduce((amt, adjustment) => amt + adjustment.amount, 0);
8983
9093
  if (!currency || !total) {
8984
9094
  // do nothing if we can't get currency or total
8985
9095
  return;
8986
9096
  }
8987
9097
  cartStore.currency = currency;
8988
- // set loading state here because this is first load checkout session when we already have checkout session id stored
9098
+ // set loading state here because this is the first load checkout session when we already have checkout session id stored
8989
9099
  stripeStore.isFetchingSession = true;
8990
9100
  await cartStoreReCalculateTotal({
8991
- adjustmentAmount: adjustmenTotal,
9101
+ adjustmentAmount: adjustmentTotal,
8992
9102
  cartId: window.Zonos.cartId,
8993
9103
  currency: currency,
8994
9104
  itemsAmount: total,
@@ -8999,7 +9109,6 @@ const cartStoreResetSelectedShippingOption = () => {
8999
9109
  cartStore.selectedShippingOption = null;
9000
9110
  cartStore.isSelectedShippingAboveDeminimis = false;
9001
9111
  cartStore.isSelectedShippingGuarantee = false;
9002
- cartStore.selectedShippingOptionExpectedDate = '';
9003
9112
  cartStore.selectedShippingOptionTransitTime = '';
9004
9113
  cartStore.dutiesTaxFees = 0;
9005
9114
  cartStore.shipping = 0;
@@ -1,4 +1,4 @@
1
- import { d as cartStore, l as localizationStore } from './cart-53bd48de.js';
1
+ import { d as cartStore, l as localizationStore } from './cart-7f82d6bf.js';
2
2
  import { z as zonosStore } from './zonosStore-0dc7a947.js';
3
3
  import { h as handleFetch } from './handleFetch-80ecfb91.js';
4
4
 
package/dist/esm/index.js CHANGED
@@ -94,7 +94,7 @@ const getZonosQaUrl = () => {
94
94
  return null;
95
95
  }
96
96
  const qaUrl = extractZonosQaUrl(window.location.href);
97
- const cdnUrl = "https://v1.3.68.js.zonos.com";
97
+ const cdnUrl = "https://v1.3.70.js.zonos.com";
98
98
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
99
99
  if (!qaUrl &&
100
100
  (cdnUrl.includes('test.') ||
@@ -278,10 +278,10 @@ const zonosLoadUrl = (() => {
278
278
  }
279
279
  return null;
280
280
  })();
281
- const ZONOS_URL = "https://v1.3.68.js.zonos.com";
282
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.68";
283
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.68";
284
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.68";
281
+ const ZONOS_URL = "https://v1.3.70.js.zonos.com";
282
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.70";
283
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.70";
284
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.70";
285
285
  const INTER_FONT_URL = 'https://rsms.me';
286
286
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
287
287
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -296,7 +296,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
296
296
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
297
297
  Zonos._paypalMockResponse = null;
298
298
  Zonos.isBigCommerce = false;
299
- Zonos.releaseDate = "1728149831448";
299
+ Zonos.releaseDate = "1728333183863";
300
300
  Zonos.isLegacyCheckout = false;
301
301
  /**
302
302
  * By default, the package will load from npm
@@ -304,7 +304,7 @@ Zonos.isLegacyCheckout = false;
304
304
  Zonos.isNpm = true;
305
305
  Zonos.zonosQaUrl = null;
306
306
  Zonos.zonosQaUrlApi = null;
307
- Zonos.version = `v${"1.3.68"}`;
307
+ Zonos.version = `v${"1.3.70"}`;
308
308
  Zonos.modeAlerted = false;
309
309
  Zonos.cartData = null;
310
310
  Zonos.paypal = null;
@@ -313,7 +313,7 @@ Zonos.zonosController = null;
313
313
  Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, overrideCurrencyFormat, storeId, zonosApiKey, }) => {
314
314
  _a.cartId = getCartIdFromQueryParam();
315
315
  if (_a.doneInit) {
316
- // do nothing if zonos is already initializeds
316
+ // do nothing if zonos is already initialized
317
317
  return;
318
318
  }
319
319
  log(`====== ZONOS DEBUG MODE: on (${_a.version}) ======`);
@@ -1,5 +1,5 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-0dc7a947.js';
2
- import { d as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-53bd48de.js';
2
+ import { d as cartStore, r as stripeStoreHandleInventoryCheck, t as translate, q as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-7f82d6bf.js';
3
3
  import { h as handleFetch, l as log, a as logError, j as jsonParse } from './handleFetch-80ecfb91.js';
4
4
  import { t as tinycolor } from './isDarkColor-b3afa948.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { j as stripeStore, l as localizationStore, t as translate } from './cart-53bd48de.js';
2
+ import { j as stripeStore, l as localizationStore, t as translate } from './cart-7f82d6bf.js';
3
3
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
4
4
  import { a as logError } from './handleFetch-80ecfb91.js';
5
5
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';