@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
@@ -351,12 +351,18 @@ const stringsArabic = {
351
351
  'click to learn more': {
352
352
  value: 'انقر لمعرفة المزيد',
353
353
  },
354
+ days: {
355
+ value: 'أيام',
356
+ },
354
357
  or: {
355
358
  value: 'أو',
356
359
  },
357
360
  'restricted items': {
358
361
  value: 'عناصر مقيدة',
359
362
  },
363
+ weeks: {
364
+ value: 'أسابيع',
365
+ },
360
366
  };
361
367
 
362
368
  const stringsBase = {
@@ -705,12 +711,18 @@ const stringsBase = {
705
711
  'click to learn more': {
706
712
  value: 'click to learn more',
707
713
  },
714
+ days: {
715
+ value: 'days',
716
+ },
708
717
  or: {
709
718
  value: 'or',
710
719
  },
711
720
  'restricted items': {
712
721
  value: 'restricted items',
713
722
  },
723
+ weeks: {
724
+ value: 'weeks',
725
+ },
714
726
  };
715
727
 
716
728
  const stringsChinese = {
@@ -1059,12 +1071,18 @@ const stringsChinese = {
1059
1071
  'click to learn more': {
1060
1072
  value: '点击了解更多',
1061
1073
  },
1074
+ days: {
1075
+ value: '天',
1076
+ },
1062
1077
  or: {
1063
1078
  value: '或',
1064
1079
  },
1065
1080
  'restricted items': {
1066
1081
  value: '限制物品',
1067
1082
  },
1083
+ weeks: {
1084
+ value: '周',
1085
+ },
1068
1086
  };
1069
1087
 
1070
1088
  const stringsDanish = {
@@ -1413,12 +1431,18 @@ const stringsDanish = {
1413
1431
  'click to learn more': {
1414
1432
  value: 'klik for at lære mere',
1415
1433
  },
1434
+ days: {
1435
+ value: 'dage',
1436
+ },
1416
1437
  or: {
1417
1438
  value: 'eller',
1418
1439
  },
1419
1440
  'restricted items': {
1420
1441
  value: 'begrænsede genstande',
1421
1442
  },
1443
+ weeks: {
1444
+ value: 'uger',
1445
+ },
1422
1446
  };
1423
1447
 
1424
1448
  const stringsDutch = {
@@ -1767,12 +1791,18 @@ const stringsDutch = {
1767
1791
  'click to learn more': {
1768
1792
  value: 'klik om meer te leren',
1769
1793
  },
1794
+ days: {
1795
+ value: 'dagen',
1796
+ },
1770
1797
  or: {
1771
1798
  value: 'of',
1772
1799
  },
1773
1800
  'restricted items': {
1774
1801
  value: 'beperkte items',
1775
1802
  },
1803
+ weeks: {
1804
+ value: 'weken',
1805
+ },
1776
1806
  };
1777
1807
 
1778
1808
  const stringsFrench = {
@@ -2121,12 +2151,18 @@ const stringsFrench = {
2121
2151
  'click to learn more': {
2122
2152
  value: 'cliquez pour en savoir plus',
2123
2153
  },
2154
+ days: {
2155
+ value: 'jours',
2156
+ },
2124
2157
  or: {
2125
2158
  value: 'ou',
2126
2159
  },
2127
2160
  'restricted items': {
2128
2161
  value: 'articles restreints',
2129
2162
  },
2163
+ weeks: {
2164
+ value: 'semaines',
2165
+ },
2130
2166
  };
2131
2167
 
2132
2168
  const stringsGerman = {
@@ -2475,12 +2511,18 @@ const stringsGerman = {
2475
2511
  'click to learn more': {
2476
2512
  value: 'Klicken, um mehr zu erfahren',
2477
2513
  },
2514
+ days: {
2515
+ value: 'Tage',
2516
+ },
2478
2517
  or: {
2479
2518
  value: 'oder',
2480
2519
  },
2481
2520
  'restricted items': {
2482
2521
  value: 'eingeschränkte Artikel',
2483
2522
  },
2523
+ weeks: {
2524
+ value: 'Wochen',
2525
+ },
2484
2526
  };
2485
2527
 
2486
2528
  const stringsHebrew = {
@@ -2829,12 +2871,18 @@ const stringsHebrew = {
2829
2871
  'click to learn more': {
2830
2872
  value: 'לחץ למידע נוסף',
2831
2873
  },
2874
+ days: {
2875
+ value: 'ימים',
2876
+ },
2832
2877
  or: {
2833
2878
  value: 'או',
2834
2879
  },
2835
2880
  'restricted items': {
2836
2881
  value: 'פריטים מוגבלים',
2837
2882
  },
2883
+ weeks: {
2884
+ value: 'שבועות',
2885
+ },
2838
2886
  };
2839
2887
 
2840
2888
  const stringsIndonesian = {
@@ -3183,12 +3231,18 @@ const stringsIndonesian = {
3183
3231
  'click to learn more': {
3184
3232
  value: 'klik untuk belajar lebih lanjut',
3185
3233
  },
3234
+ days: {
3235
+ value: 'hari',
3236
+ },
3186
3237
  or: {
3187
3238
  value: 'atau',
3188
3239
  },
3189
3240
  'restricted items': {
3190
3241
  value: 'barang terbatas',
3191
3242
  },
3243
+ weeks: {
3244
+ value: 'minggu',
3245
+ },
3192
3246
  };
3193
3247
 
3194
3248
  const stringsItalian = {
@@ -3537,12 +3591,18 @@ const stringsItalian = {
3537
3591
  'click to learn more': {
3538
3592
  value: 'clicca per saperne di più',
3539
3593
  },
3594
+ days: {
3595
+ value: 'giorni',
3596
+ },
3540
3597
  or: {
3541
3598
  value: 'o',
3542
3599
  },
3543
3600
  'restricted items': {
3544
3601
  value: 'articoli limitati',
3545
3602
  },
3603
+ weeks: {
3604
+ value: 'settimane',
3605
+ },
3546
3606
  };
3547
3607
 
3548
3608
  const stringsJapanese = {
@@ -3891,12 +3951,18 @@ const stringsJapanese = {
3891
3951
  'click to learn more': {
3892
3952
  value: '詳細を知るにはクリック',
3893
3953
  },
3954
+ days: {
3955
+ value: '日々',
3956
+ },
3894
3957
  or: {
3895
3958
  value: 'または',
3896
3959
  },
3897
3960
  'restricted items': {
3898
3961
  value: '制限された項目',
3899
3962
  },
3963
+ weeks: {
3964
+ value: '週間',
3965
+ },
3900
3966
  };
3901
3967
 
3902
3968
  const stringsKorean = {
@@ -4245,12 +4311,18 @@ const stringsKorean = {
4245
4311
  'click to learn more': {
4246
4312
  value: '자세히 알아보려면 클릭',
4247
4313
  },
4314
+ days: {
4315
+ value: '일',
4316
+ },
4248
4317
  or: {
4249
4318
  value: '또는',
4250
4319
  },
4251
4320
  'restricted items': {
4252
4321
  value: '제한된 항목',
4253
4322
  },
4323
+ weeks: {
4324
+ value: '주',
4325
+ },
4254
4326
  };
4255
4327
 
4256
4328
  const stringsNorwegian = {
@@ -4599,12 +4671,18 @@ const stringsNorwegian = {
4599
4671
  'click to learn more': {
4600
4672
  value: 'klikk for å lære mer',
4601
4673
  },
4674
+ days: {
4675
+ value: 'dager',
4676
+ },
4602
4677
  or: {
4603
4678
  value: 'eller',
4604
4679
  },
4605
4680
  'restricted items': {
4606
4681
  value: 'begrensede elementer',
4607
4682
  },
4683
+ weeks: {
4684
+ value: 'uker',
4685
+ },
4608
4686
  };
4609
4687
 
4610
4688
  const stringsPolish = {
@@ -4953,12 +5031,18 @@ const stringsPolish = {
4953
5031
  'click to learn more': {
4954
5032
  value: 'kliknij, aby dowiedzieć się więcej',
4955
5033
  },
5034
+ days: {
5035
+ value: 'dni',
5036
+ },
4956
5037
  or: {
4957
5038
  value: 'lub',
4958
5039
  },
4959
5040
  'restricted items': {
4960
5041
  value: 'przedmioty ograniczone',
4961
5042
  },
5043
+ weeks: {
5044
+ value: 'tygodnie',
5045
+ },
4962
5046
  };
4963
5047
 
4964
5048
  const stringsPortuguese = {
@@ -5307,12 +5391,18 @@ const stringsPortuguese = {
5307
5391
  'click to learn more': {
5308
5392
  value: 'clique para saber mais',
5309
5393
  },
5394
+ days: {
5395
+ value: 'dias',
5396
+ },
5310
5397
  or: {
5311
5398
  value: 'ou',
5312
5399
  },
5313
5400
  'restricted items': {
5314
5401
  value: 'itens restritos',
5315
5402
  },
5403
+ weeks: {
5404
+ value: 'semanas',
5405
+ },
5316
5406
  };
5317
5407
 
5318
5408
  const stringsRussian = {
@@ -5661,12 +5751,18 @@ const stringsRussian = {
5661
5751
  'click to learn more': {
5662
5752
  value: 'нажмите, чтобы узнать больше',
5663
5753
  },
5754
+ days: {
5755
+ value: 'дни',
5756
+ },
5664
5757
  or: {
5665
5758
  value: 'или',
5666
5759
  },
5667
5760
  'restricted items': {
5668
5761
  value: 'ограниченные предметы',
5669
5762
  },
5763
+ weeks: {
5764
+ value: 'недели',
5765
+ },
5670
5766
  };
5671
5767
 
5672
5768
  const stringsSpanish = {
@@ -6015,12 +6111,18 @@ const stringsSpanish = {
6015
6111
  'click to learn more': {
6016
6112
  value: 'haga clic para obtener más información',
6017
6113
  },
6114
+ days: {
6115
+ value: 'días',
6116
+ },
6018
6117
  or: {
6019
6118
  value: 'o',
6020
6119
  },
6021
6120
  'restricted items': {
6022
6121
  value: 'artículos restringidos',
6023
6122
  },
6123
+ weeks: {
6124
+ value: 'semanas',
6125
+ },
6024
6126
  };
6025
6127
 
6026
6128
  const stringsSwedish = {
@@ -6369,12 +6471,18 @@ const stringsSwedish = {
6369
6471
  'click to learn more': {
6370
6472
  value: 'klicka för att lära dig mer',
6371
6473
  },
6474
+ days: {
6475
+ value: 'dagar',
6476
+ },
6372
6477
  or: {
6373
6478
  value: 'eller',
6374
6479
  },
6375
6480
  'restricted items': {
6376
6481
  value: 'begränsade föremål',
6377
6482
  },
6483
+ weeks: {
6484
+ value: 'veckor',
6485
+ },
6378
6486
  };
6379
6487
 
6380
6488
  const stringsTurkish = {
@@ -6723,12 +6831,18 @@ const stringsTurkish = {
6723
6831
  'click to learn more': {
6724
6832
  value: 'daha fazla bilgi için tıklayın',
6725
6833
  },
6834
+ days: {
6835
+ value: 'günler',
6836
+ },
6726
6837
  or: {
6727
6838
  value: 'veya',
6728
6839
  },
6729
6840
  'restricted items': {
6730
6841
  value: 'kısıtlı öğeler',
6731
6842
  },
6843
+ weeks: {
6844
+ value: 'haftalar',
6845
+ },
6732
6846
  };
6733
6847
 
6734
6848
  const stringsVietnamese = {
@@ -7077,12 +7191,18 @@ const stringsVietnamese = {
7077
7191
  'click to learn more': {
7078
7192
  value: 'nhấp để tìm hiểu thêm',
7079
7193
  },
7194
+ days: {
7195
+ value: 'ngày',
7196
+ },
7080
7197
  or: {
7081
7198
  value: 'hoặc',
7082
7199
  },
7083
7200
  'restricted items': {
7084
7201
  value: 'mặt hàng bị hạn chế',
7085
7202
  },
7203
+ weeks: {
7204
+ value: 'tuần',
7205
+ },
7086
7206
  };
7087
7207
 
7088
7208
  const { state: translationStore } = zonosStore.createStore(() => ({
@@ -7391,7 +7511,7 @@ const currencyFormat = ({ amount, currency, }) => {
7391
7511
  return result;
7392
7512
  }
7393
7513
  const currencyDisplay = (overrideCurrencyFormat === null || overrideCurrencyFormat === void 0 ? void 0 : overrideCurrencyFormat.currencyDisplay) || 'symbol';
7394
- const formatedNumber = new Intl.NumberFormat(window.navigator.language, {
7514
+ const formattedNumber = new Intl.NumberFormat(window.navigator.language, {
7395
7515
  currency: targetCurrency,
7396
7516
  currencyDisplay,
7397
7517
  minimumFractionDigits: minimumFractionDigits,
@@ -7399,8 +7519,8 @@ const currencyFormat = ({ amount, currency, }) => {
7399
7519
  }).format(amount);
7400
7520
  // Move currency code to the end of the string if currencyDisplay is 'code'
7401
7521
  const result = currencyDisplay === 'code'
7402
- ? `${formatedNumber.replace(new RegExp(`${targetCurrency}\\s+`), '')} ${targetCurrency}`
7403
- : formatedNumber;
7522
+ ? `${formattedNumber.replace(new RegExp(`${targetCurrency}\\s+`), '')} ${targetCurrency}`
7523
+ : formattedNumber;
7404
7524
  return result;
7405
7525
  };
7406
7526
 
@@ -7523,7 +7643,8 @@ const defaultCurrencyConverter = () => {
7523
7643
  };
7524
7644
 
7525
7645
  const currencyDisplay = () => {
7526
- if (zonosStore.zonosStore.helloSettings.currencyBehavior === 'DISABLED') {
7646
+ if (zonosStore.zonosStore.helloSettings.currencyBehavior === 'DISABLED' ||
7647
+ window.Zonos.isLegacyCheckout) {
7527
7648
  return;
7528
7649
  }
7529
7650
  defaultCurrencyConverter();
@@ -8169,7 +8290,7 @@ const defaultVariable = ({ borderStyle, theme, }) => {
8169
8290
 
8170
8291
  const { onChange: onChange$1, reset: reset$1, state: stripeStore, } = zonosStore.createStore(() => ({
8171
8292
  clientSecret: sessionStorage.getItem('zonos--client-secret') || null,
8172
- fetchingLandedCostAbordController: null,
8293
+ fetchingLandedCostAbortController: null,
8173
8294
  hasPaymentError: false,
8174
8295
  isFetchingLandedCost: false,
8175
8296
  isFetchingSession: false,
@@ -8199,7 +8320,7 @@ const { onChange: onChange$1, reset: reset$1, state: stripeStore, } = zonosStore
8199
8320
  name: {},
8200
8321
  },
8201
8322
  }));
8202
- const getStripeOptions = ({ clientSecret, overrideBorderRaidus, overridePrimaryColor, overrideSecondaryColor, overrideTheme, }) => {
8323
+ const getStripeOptions = ({ clientSecret, overrideBorderRadius, overridePrimaryColor, overrideSecondaryColor, overrideTheme, }) => {
8203
8324
  const primaryColor = overridePrimaryColor || zonosStore.zonosStore.appearance.colorPrimary;
8204
8325
  const secondaryColor = overrideSecondaryColor || zonosStore.zonosStore.appearance.colorSecondary;
8205
8326
  const themeBasedColor = primaryColor && isDarkColor.isDarkColor(primaryColor) ? 'night' : 'flat';
@@ -8212,7 +8333,7 @@ const getStripeOptions = ({ clientSecret, overrideBorderRaidus, overridePrimaryC
8212
8333
  // get contrast theme color base on primary color
8213
8334
  theme: overrideTheme ? theme : themeBasedColor,
8214
8335
  variables: Object.assign(Object.assign({}, defaultVariable({
8215
- borderStyle: overrideBorderRaidus,
8336
+ borderStyle: overrideBorderRadius,
8216
8337
  theme: 'LIGHT',
8217
8338
  })), {
8218
8339
  // use the button background color for input glow color
@@ -8243,7 +8364,7 @@ const initStripeElements = async (props) => {
8243
8364
  if (clientSecret) {
8244
8365
  const stripeOptions = getStripeOptions({
8245
8366
  clientSecret,
8246
- overrideBorderRaidus: props === null || props === void 0 ? void 0 : props.overrideBorderRaidus,
8367
+ overrideBorderRadius: props === null || props === void 0 ? void 0 : props.overrideBorderRadius,
8247
8368
  overridePrimaryColor: props === null || props === void 0 ? void 0 : props.overridePrimaryColor,
8248
8369
  overrideSecondaryColor: props === null || props === void 0 ? void 0 : props.overrideSecondaryColor,
8249
8370
  overrideTheme: props === null || props === void 0 ? void 0 : props.overrideTheme,
@@ -8327,8 +8448,8 @@ const stripeStorePrefetchLandedCost = async () => {
8327
8448
  const shouldRefetch = isPrefetchInfoOutdated();
8328
8449
  if (shouldRefetch) {
8329
8450
  // if the info used when fetching landed cost is different from the current info, abort the previous request
8330
- (_e = stripeStore.fetchingLandedCostAbordController) === null || _e === void 0 ? void 0 : _e.abort();
8331
- stripeStore.fetchingLandedCostAbordController = null;
8451
+ (_e = stripeStore.fetchingLandedCostAbortController) === null || _e === void 0 ? void 0 : _e.abort();
8452
+ stripeStore.fetchingLandedCostAbortController = null;
8332
8453
  }
8333
8454
  // only fetch if we are not fetching or we need to refetch
8334
8455
  if (stripeAddressReady &&
@@ -8347,12 +8468,12 @@ const stripeStorePrefetchLandedCost = async () => {
8347
8468
  }
8348
8469
  try {
8349
8470
  const abortController = new AbortController();
8350
- stripeStore.fetchingLandedCostAbordController = abortController;
8471
+ stripeStore.fetchingLandedCostAbortController = abortController;
8351
8472
  // Reset cart items to non-restricted state and restricted item list
8352
8473
  cartStoreResetCartItems();
8353
8474
  const { checkoutSessionWorkflow, itemCreateWorkflow, landedCostCalculateWorkflow, shipmentRatingCalculateWorkflow, } = await calculateLandedCostNormalized(abortController);
8354
8475
  // reset abort controller after we are done
8355
- stripeStore.fetchingLandedCostAbordController = null;
8476
+ stripeStore.fetchingLandedCostAbortController = null;
8356
8477
  // update cart store with landed cost info
8357
8478
  cartStore.landedCostData =
8358
8479
  (checkoutSessionWorkflow === null || checkoutSessionWorkflow === void 0 ? void 0 : checkoutSessionWorkflow.map(checkoutSession => {
@@ -8475,7 +8596,7 @@ const stripeStoreConfirmPayment = async () => {
8475
8596
  const stripe = stripeStore.stripe;
8476
8597
  const stripeClientSecret = stripeStore.clientSecret;
8477
8598
  if (!((_b = cartStore.selectedLandedCost) === null || _b === void 0 ? void 0 : _b.landedCost.id)) {
8478
- throw new Error('Attemped to confirm the payment when no landed cost is found in store');
8599
+ throw new Error('Attempted to confirm the payment when no landed cost is found in store');
8479
8600
  }
8480
8601
  if (stripe && stripeElements && stripePaymentReady && stripeClientSecret) {
8481
8602
  const { error } = await stripe.confirmPayment({
@@ -8691,22 +8812,6 @@ onChange$1('clientSecret', clientSecret => {
8691
8812
  }
8692
8813
  });
8693
8814
 
8694
- const formatDate = ({ date,
8695
- // eslint-disable-next-line sort-keys/sort-keys-fix
8696
- formatOptions = {
8697
- dateStyle: 'full',
8698
- }, }) => {
8699
- // format date to 'Wednesday, May 15, 2024'
8700
- return new Intl.DateTimeFormat('en-US', formatOptions).format(date);
8701
- };
8702
-
8703
- const getDaysDifference = (targetDate) => {
8704
- const currentDate = new Date();
8705
- const timeDifference = targetDate.getTime() - currentDate.getTime();
8706
- const daysDifference = Math.floor(timeDifference / (1000 * 60 * 60 * 24)); // Convert milliseconds to days
8707
- return daysDifference;
8708
- };
8709
-
8710
8815
  const { onChange, reset, state: cartStore, } = zonosStore.createStore(() => ({
8711
8816
  adjustmentTotal: 0,
8712
8817
  adjustments: [],
@@ -8757,6 +8862,17 @@ const { onChange, reset, state: cartStore, } = zonosStore.createStore(() => ({
8757
8862
  },
8758
8863
  total: 0,
8759
8864
  }));
8865
+ const getTransitUnit = (type) => {
8866
+ switch (type) {
8867
+ case 'DAYS':
8868
+ return translate('days');
8869
+ case 'WEEKS':
8870
+ return translate('weeks');
8871
+ case 'BUSINESS_DAYS':
8872
+ default:
8873
+ return translate('business days');
8874
+ }
8875
+ };
8760
8876
  /**
8761
8877
  * Format shipping transit info to be displayed on UI
8762
8878
  * @returns
@@ -8765,21 +8881,16 @@ const { onChange, reset, state: cartStore, } = zonosStore.createStore(() => ({
8765
8881
  * - minTransit: 3
8766
8882
  */
8767
8883
  const cartStoreGetShippingTransitInfo = (item) => {
8768
- const minTransit = item.minTransitAt
8769
- ? getDaysDifference(new Date(item.minTransitAt))
8770
- : '';
8771
- const maxTransit = item.maxTransitAt
8772
- ? getDaysDifference(new Date(item.maxTransitAt))
8773
- : '';
8774
- const expectedDate = item.minTransitAt
8775
- ? formatDate({
8776
- date: new Date(item.minTransitAt),
8777
- })
8778
- : '';
8884
+ var _a;
8885
+ const transitTime = (_a = item.shippingProfile) === null || _a === void 0 ? void 0 : _a.transitTime;
8886
+ // Don't care about falsy 0 values because this is international shipping and 0 days is not feasible
8887
+ 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)) {
8888
+ return null;
8889
+ }
8779
8890
  return {
8780
- expectedDate,
8781
- maxTransit,
8782
- minTransit,
8891
+ maxTransit: transitTime.max,
8892
+ minTransit: transitTime.min,
8893
+ unit: getTransitUnit(transitTime.type),
8783
8894
  };
8784
8895
  };
8785
8896
  const getMatchItem = ({ item1, item2, }) => {
@@ -8892,7 +9003,7 @@ const cartStoreReCalculateTotal = async ({ adjustmentAmount, cartId, currency, i
8892
9003
  return false;
8893
9004
  }
8894
9005
  if (!landedCostId) {
8895
- // This is when first open the checkout modal and we just want to get info from the old cart session.
9006
+ // This is when we first open the checkout modal and we just want to get info from the old cart session.
8896
9007
  // use subtotals from checkout session to update cart total
8897
9008
  cartStoreApplySubtotals(json.checkoutSessionUpdate.subtotals);
8898
9009
  handleFetch.log('Exchange rate updated for cart items (checkout session update)', 'info', cartStore.exchangeRate);
@@ -8904,12 +9015,11 @@ const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption) =>
8904
9015
  var _a, _b, _c, _d, _e;
8905
9016
  cartStore.selectedShippingOption = selectedShippingOption;
8906
9017
  // update shipping transit info
8907
- const { expectedDate, maxTransit, minTransit } = cartStoreGetShippingTransitInfo(cartStore.selectedShippingOption);
8908
- cartStore.selectedShippingOptionExpectedDate = expectedDate;
8909
- cartStore.selectedShippingOptionTransitTime =
8910
- minTransit && maxTransit
8911
- ? `${minTransit}-${maxTransit}`
8912
- : `${minTransit || maxTransit}`;
9018
+ const transitData = cartStoreGetShippingTransitInfo(cartStore.selectedShippingOption);
9019
+ if (transitData) {
9020
+ const { maxTransit, minTransit, unit } = transitData;
9021
+ cartStore.selectedShippingOptionTransitTime = `${minTransit}-${maxTransit} ${unit}`;
9022
+ }
8913
9023
  const selectedLandedCost = (_a = cartStore.landedCostData) === null || _a === void 0 ? void 0 : _a.find(checkoutSessionPresentment => {
8914
9024
  var _a, _b, _c;
8915
9025
  return ((_b = (_a = checkoutSessionPresentment.landedCost) === null || _a === void 0 ? void 0 : _a.shipmentRating) === null || _b === void 0 ? void 0 : _b.id) ===
@@ -8930,12 +9040,12 @@ const cartStoreUpdateSelectedShippingOption = async (selectedShippingOption) =>
8930
9040
  cartStore.isSelectedShippingAboveDeminimis = isAboveDeminimis;
8931
9041
  cartStore.isSelectedShippingGuarantee = isGuarantee;
8932
9042
  // update session with selected landed cost
8933
- const updateCalulateStatus = await cartStoreReCalculateTotal({
9043
+ const updateCalculateStatus = await cartStoreReCalculateTotal({
8934
9044
  adjustmentAmount: cartStore.adjustmentTotal,
8935
9045
  cartId: window.Zonos.cartId,
8936
9046
  landedCostId: (_e = selectedLandedCost.landedCost) === null || _e === void 0 ? void 0 : _e.id,
8937
9047
  });
8938
- return updateCalulateStatus;
9048
+ return updateCalculateStatus;
8939
9049
  };
8940
9050
  onChange('checkoutSessionId', () => {
8941
9051
  if (!cartStore.checkoutSessionId) {
@@ -8981,16 +9091,16 @@ const cartStoreUpdateItems = async ({ adjustments, cartItems, }) => {
8981
9091
  const total = cartItems.reduce((amt, item) => {
8982
9092
  return amt + item.amount * item.quantity;
8983
9093
  }, 0);
8984
- const adjustmenTotal = adjustments.reduce((amt, adjustment) => amt + adjustment.amount, 0);
9094
+ const adjustmentTotal = adjustments.reduce((amt, adjustment) => amt + adjustment.amount, 0);
8985
9095
  if (!currency || !total) {
8986
9096
  // do nothing if we can't get currency or total
8987
9097
  return;
8988
9098
  }
8989
9099
  cartStore.currency = currency;
8990
- // set loading state here because this is first load checkout session when we already have checkout session id stored
9100
+ // set loading state here because this is the first load checkout session when we already have checkout session id stored
8991
9101
  stripeStore.isFetchingSession = true;
8992
9102
  await cartStoreReCalculateTotal({
8993
- adjustmentAmount: adjustmenTotal,
9103
+ adjustmentAmount: adjustmentTotal,
8994
9104
  cartId: window.Zonos.cartId,
8995
9105
  currency: currency,
8996
9106
  itemsAmount: total,
@@ -9001,7 +9111,6 @@ const cartStoreResetSelectedShippingOption = () => {
9001
9111
  cartStore.selectedShippingOption = null;
9002
9112
  cartStore.isSelectedShippingAboveDeminimis = false;
9003
9113
  cartStore.isSelectedShippingGuarantee = false;
9004
- cartStore.selectedShippingOptionExpectedDate = '';
9005
9114
  cartStore.selectedShippingOptionTransitTime = '';
9006
9115
  cartStore.dutiesTaxFees = 0;
9007
9116
  cartStore.shipping = 0;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-8a585d9b.js');
3
+ const cart = require('./cart-11d066b2.js');
4
4
  const zonosStore = require('./zonosStore-a4395972.js');
5
5
  const handleFetch = require('./handleFetch-661a8225.js');
6
6
 
@@ -97,7 +97,7 @@ const getZonosQaUrl = () => {
97
97
  return null;
98
98
  }
99
99
  const qaUrl = extractZonosQaUrl(window.location.href);
100
- const cdnUrl = "https://v1.3.68.js.zonos.com";
100
+ const cdnUrl = "https://v1.3.70.js.zonos.com";
101
101
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
102
102
  if (!qaUrl &&
103
103
  (cdnUrl.includes('test.') ||
@@ -281,10 +281,10 @@ const zonosLoadUrl = (() => {
281
281
  }
282
282
  return null;
283
283
  })();
284
- const ZONOS_URL = "https://v1.3.68.js.zonos.com";
285
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.68";
286
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.68";
287
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.68";
284
+ const ZONOS_URL = "https://v1.3.70.js.zonos.com";
285
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.70";
286
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.70";
287
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.70";
288
288
  const INTER_FONT_URL = 'https://rsms.me';
289
289
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
290
290
  const INTER_FONT_REGEX = /^https:\/\/rsms\.me\/inter\/inter\.css(.*)$/;
@@ -299,7 +299,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
299
299
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
300
300
  Zonos._paypalMockResponse = null;
301
301
  Zonos.isBigCommerce = false;
302
- Zonos.releaseDate = "1728149831448";
302
+ Zonos.releaseDate = "1728333183863";
303
303
  Zonos.isLegacyCheckout = false;
304
304
  /**
305
305
  * By default, the package will load from npm
@@ -307,7 +307,7 @@ Zonos.isLegacyCheckout = false;
307
307
  Zonos.isNpm = true;
308
308
  Zonos.zonosQaUrl = null;
309
309
  Zonos.zonosQaUrlApi = null;
310
- Zonos.version = `v${"1.3.68"}`;
310
+ Zonos.version = `v${"1.3.70"}`;
311
311
  Zonos.modeAlerted = false;
312
312
  Zonos.cartData = null;
313
313
  Zonos.paypal = null;
@@ -316,7 +316,7 @@ Zonos.zonosController = null;
316
316
  Zonos.init = async ({ appearance, checkoutSettings, currencyConverter, helloSettings, onCountryChange, overrideCurrencyFormat, storeId, zonosApiKey, }) => {
317
317
  _a.cartId = getCartIdFromQueryParam();
318
318
  if (_a.doneInit) {
319
- // do nothing if zonos is already initializeds
319
+ // do nothing if zonos is already initialized
320
320
  return;
321
321
  }
322
322
  handleFetch.log(`====== ZONOS DEBUG MODE: on (${_a.version}) ======`);
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-a4395972.js');
4
- const cart = require('./cart-8a585d9b.js');
4
+ const cart = require('./cart-11d066b2.js');
5
5
  const handleFetch = require('./handleFetch-661a8225.js');
6
6
  const isDarkColor = require('./isDarkColor-5efc8367.js');
7
7
 
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-8a585d9b.js');
6
+ const cart = require('./cart-11d066b2.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
8
  const handleFetch = require('./handleFetch-661a8225.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');