@zonos/elements 1.3.8-alpha.0 → 1.3.8-alpha.1

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 (202) hide show
  1. package/dist/cjs/{cart-eee85bda.js → cart-c22d66c8.js} +98 -21
  2. package/dist/cjs/{getBorderRadius-d8f18958.js → getBorderRadius-d9a954a3.js} +1 -1
  3. package/dist/cjs/{isDarkColor-57860b44.js → isDarkColor-c01f24df.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{submitGtag-a2e1f652.js → submitGtag-9c0a8038.js} +2 -2
  6. package/dist/cjs/zonos-address_4.cjs.entry.js +60 -7
  7. package/dist/cjs/zonos-badge_2.cjs.entry.js +1 -1
  8. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  9. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  10. package/dist/cjs/zonos-card_2.cjs.entry.js +4 -4
  11. package/dist/cjs/zonos-cart-items_9.cjs.entry.js +32 -17
  12. package/dist/cjs/zonos-checkout.cjs.entry.js +5 -5
  13. package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
  14. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  15. package/dist/cjs/zonos-country-select_3.cjs.entry.js +4 -4
  16. package/dist/cjs/zonos-elements.cjs.js +1 -1
  17. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  20. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  21. package/dist/cjs/zonos-payment.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  24. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  25. package/dist/cjs/{zonosStore-138c5555.js → zonosStore-2a8612a4.js} +1 -0
  26. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +3 -3
  27. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +27 -10
  28. package/dist/collection/components/store/checkout/stripe.js +3 -3
  29. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
  30. package/dist/collection/components/store/translationStore/strings.base.js +3 -0
  31. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
  32. package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
  33. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
  34. package/dist/collection/components/store/translationStore/strings.french.js +3 -0
  35. package/dist/collection/components/store/translationStore/strings.german.js +3 -0
  36. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
  37. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
  38. package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
  39. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
  40. package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
  41. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
  42. package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
  43. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
  44. package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
  45. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
  46. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
  47. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
  48. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
  49. package/dist/collection/components/store/zonosStore.js +1 -0
  50. package/dist/collection/components/stripe/zonos-address/zonos-address.css +3 -0
  51. package/dist/collection/components/stripe/zonos-address/zonos-address.js +63 -4
  52. package/dist/collection/components/utils/containsNonLatinChars.js +13 -0
  53. package/dist/collection/styles/stripe/addressRuleStyle.js +32 -15
  54. package/dist/collection/types/generated/graphql.customer.types.js +37 -0
  55. package/dist/collection/types/generated/graphql.frontend.types.js +19 -0
  56. package/dist/components/stripe.js +95 -18
  57. package/dist/components/zonos-address2.js +67 -6
  58. package/dist/components/zonos-checkout-finish2.js +3 -3
  59. package/dist/components/zonos-customer-info2.js +35 -12
  60. package/dist/components/zonosStore.js +1 -0
  61. package/dist/esm/{cart-e261efc1.js → cart-f70b9be6.js} +98 -21
  62. package/dist/esm/{getBorderRadius-19787feb.js → getBorderRadius-0d133844.js} +1 -1
  63. package/dist/esm/{isDarkColor-2344e7a5.js → isDarkColor-8eeda28e.js} +1 -1
  64. package/dist/esm/loader.js +1 -1
  65. package/dist/esm/{submitGtag-dfc6f1dc.js → submitGtag-1d7ee6b8.js} +2 -2
  66. package/dist/esm/zonos-address_4.entry.js +61 -8
  67. package/dist/esm/zonos-badge_2.entry.js +1 -1
  68. package/dist/esm/zonos-banner.entry.js +1 -1
  69. package/dist/esm/zonos-button_3.entry.js +3 -3
  70. package/dist/esm/zonos-card_2.entry.js +4 -4
  71. package/dist/esm/zonos-cart-items_9.entry.js +32 -17
  72. package/dist/esm/zonos-checkout.entry.js +5 -5
  73. package/dist/esm/zonos-controller.entry.js +4 -4
  74. package/dist/esm/zonos-country-flag.entry.js +4 -4
  75. package/dist/esm/zonos-country-select_3.entry.js +4 -4
  76. package/dist/esm/zonos-elements.js +1 -1
  77. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  78. package/dist/esm/zonos-hello.entry.js +4 -4
  79. package/dist/esm/zonos-logo.entry.js +1 -1
  80. package/dist/esm/zonos-notification.entry.js +1 -1
  81. package/dist/esm/zonos-payment.entry.js +4 -4
  82. package/dist/esm/zonos-select-dialog-header_2.entry.js +1 -1
  83. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  84. package/dist/esm/zonos-text.entry.js +1 -1
  85. package/dist/esm/{zonosStore-00bce01b.js → zonosStore-807f931f.js} +1 -0
  86. package/dist/esm-es5/cart-f70b9be6.js +1 -0
  87. package/dist/esm-es5/{getBorderRadius-19787feb.js → getBorderRadius-0d133844.js} +1 -1
  88. package/dist/esm-es5/{isDarkColor-2344e7a5.js → isDarkColor-8eeda28e.js} +1 -1
  89. package/dist/esm-es5/loader.js +1 -1
  90. package/dist/esm-es5/{submitGtag-dfc6f1dc.js → submitGtag-1d7ee6b8.js} +1 -1
  91. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  92. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  93. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  94. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  95. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  96. package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -1
  97. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  98. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  99. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  100. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  101. package/dist/esm-es5/zonos-elements.js +1 -1
  102. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  103. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  104. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  105. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  106. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  107. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  108. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  109. package/dist/esm-es5/zonos-text.entry.js +1 -1
  110. package/dist/esm-es5/{zonosStore-00bce01b.js → zonosStore-807f931f.js} +1 -1
  111. package/dist/scripts/loadZonos.js +1 -1
  112. package/dist/scripts/zonos.js +1 -1
  113. package/dist/scripts/zonosBase.js +1 -1
  114. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +9 -0
  115. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
  116. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
  117. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
  118. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
  119. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
  120. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
  121. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
  122. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
  123. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
  124. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
  125. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
  126. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
  127. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
  128. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
  129. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
  130. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
  131. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
  132. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
  133. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
  134. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
  135. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +7 -0
  136. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  137. package/dist/types/components/utils/containsNonLatinChars.d.ts +16 -0
  138. package/dist/types/components.d.ts +19 -0
  139. package/dist/types/types/checkout/CheckoutConfig.d.ts +5 -0
  140. package/dist/types/types/generated/graphql.customer.types.d.ts +53 -0
  141. package/dist/types/types/generated/graphql.customer.types.ts +71 -0
  142. package/dist/types/types/generated/graphql.frontend.types.d.ts +20 -1
  143. package/dist/types/types/generated/graphql.frontend.types.ts +23 -1
  144. package/dist/zonos-elements/p-039803aa.system.js +1 -0
  145. package/dist/zonos-elements/{p-0c91720b.entry.js → p-04acf5ef.entry.js} +1 -1
  146. package/dist/zonos-elements/p-066c5893.system.js +1 -1
  147. package/dist/zonos-elements/{p-14c3ef38.entry.js → p-0ed00121.entry.js} +1 -1
  148. package/dist/zonos-elements/{p-143dc0d9.system.entry.js → p-121c551d.system.entry.js} +1 -1
  149. package/dist/zonos-elements/{p-f6eaef7b.system.entry.js → p-166ec0c2.system.entry.js} +1 -1
  150. package/dist/zonos-elements/{p-1e0dd491.entry.js → p-1691b167.entry.js} +1 -1
  151. package/dist/zonos-elements/{p-07966463.entry.js → p-25de098d.entry.js} +1 -1
  152. package/dist/zonos-elements/{p-c2e58ee1.system.entry.js → p-2eb62b45.system.entry.js} +1 -1
  153. package/dist/zonos-elements/{p-3a1e685f.entry.js → p-32f43296.entry.js} +1 -1
  154. package/dist/zonos-elements/{p-14d27ce1.system.entry.js → p-35e878eb.system.entry.js} +1 -1
  155. package/dist/zonos-elements/p-373e579c.entry.js +1 -0
  156. package/dist/zonos-elements/{p-354603b3.system.entry.js → p-3a406969.system.entry.js} +1 -1
  157. package/dist/zonos-elements/p-3d4fc5aa.js +1 -0
  158. package/dist/zonos-elements/{p-c060d475.js → p-4679840f.js} +1 -1
  159. package/dist/zonos-elements/{p-78ba2928.system.js → p-4c4ccf82.system.js} +1 -1
  160. package/dist/zonos-elements/{p-4fb77a38.system.entry.js → p-4da6d5bb.system.entry.js} +1 -1
  161. package/dist/zonos-elements/{p-328b7f6f.system.entry.js → p-50460bf4.system.entry.js} +1 -1
  162. package/dist/zonos-elements/{p-a3cc0f84.entry.js → p-55cbb4cd.entry.js} +1 -1
  163. package/dist/zonos-elements/{p-745cd869.system.entry.js → p-56318a1f.system.entry.js} +1 -1
  164. package/dist/zonos-elements/{p-f7c36fcc.entry.js → p-58a25a6a.entry.js} +1 -1
  165. package/dist/zonos-elements/{p-389599d3.system.entry.js → p-5d73cde0.system.entry.js} +1 -1
  166. package/dist/zonos-elements/{p-857cfe35.entry.js → p-6d2ba24a.entry.js} +1 -1
  167. package/dist/zonos-elements/p-6dc7222d.js +1 -0
  168. package/dist/zonos-elements/{p-ac0a7b8f.entry.js → p-701d0fef.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-49f6a985.system.js → p-75490d7c.system.js} +1 -1
  170. package/dist/zonos-elements/{p-165d469e.system.entry.js → p-7736198d.system.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-69e2c59e.entry.js → p-780ab968.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-7f4f45b3.entry.js → p-7da1d7da.entry.js} +1 -1
  173. package/dist/zonos-elements/{p-1119dddf.system.entry.js → p-824882ce.system.entry.js} +1 -1
  174. package/dist/zonos-elements/p-86fe18ea.system.entry.js +1 -0
  175. package/dist/zonos-elements/{p-91797d4e.system.js → p-95dee6f4.system.js} +1 -1
  176. package/dist/zonos-elements/{p-279d1c5f.entry.js → p-96e2cde7.entry.js} +1 -1
  177. package/dist/zonos-elements/p-9a9902ca.entry.js +1 -0
  178. package/dist/zonos-elements/p-9cdc6b5f.js +1 -0
  179. package/dist/zonos-elements/{p-61e5cf29.system.entry.js → p-af946fb3.system.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-b4725505.system.js → p-c476a347.system.js} +1 -1
  181. package/dist/zonos-elements/p-c97cb066.system.entry.js +1 -0
  182. package/dist/zonos-elements/p-cbc7edb4.entry.js +1 -0
  183. package/dist/zonos-elements/{p-17e87be1.entry.js → p-d427adf2.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-5c176b23.system.entry.js → p-d93d74c1.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-9e6b489d.system.entry.js → p-d9ba11cf.system.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-dd9e8589.entry.js → p-e043e830.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-7c45ce37.system.entry.js → p-e28d648c.system.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-95e0fc06.js → p-e71fbec9.js} +1 -1
  189. package/dist/zonos-elements/{p-799d8a17.system.entry.js → p-e76069cc.system.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-5f4ba44c.entry.js → p-fc0a051b.entry.js} +1 -1
  191. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  192. package/package.json +1 -1
  193. package/dist/esm-es5/cart-e261efc1.js +0 -1
  194. package/dist/zonos-elements/p-0c0aa552.js +0 -1
  195. package/dist/zonos-elements/p-3b23e462.entry.js +0 -1
  196. package/dist/zonos-elements/p-5496951a.system.js +0 -1
  197. package/dist/zonos-elements/p-5d9a000a.system.entry.js +0 -1
  198. package/dist/zonos-elements/p-79b24786.system.entry.js +0 -1
  199. package/dist/zonos-elements/p-7b87b82f.js +0 -1
  200. package/dist/zonos-elements/p-9f4e02a1.entry.js +0 -1
  201. package/dist/zonos-elements/p-da767f8b.js +0 -1
  202. package/dist/zonos-elements/p-f11a3d9e.entry.js +0 -1
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-138c5555.js');
4
- const isDarkColor = require('./isDarkColor-57860b44.js');
5
- const getBorderRadius = require('./getBorderRadius-d8f18958.js');
3
+ const zonosStore = require('./zonosStore-2a8612a4.js');
4
+ const isDarkColor = require('./isDarkColor-c01f24df.js');
5
+ const getBorderRadius = require('./getBorderRadius-d9a954a3.js');
6
6
 
7
7
  const stringsArabic = {
8
8
  'Above de minimis threshold for': {
@@ -89,6 +89,9 @@ const stringsArabic = {
89
89
  "Payment processing. We'll update you when payment is received.": {
90
90
  value: 'جارٍ معالجة الدفع. سنحدثك عند استلام الدفعة.',
91
91
  },
92
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
93
+ value: 'يرجى التأكد من أن نصك يستخدم الأبجدية اللاتينية فقط (A-Z, a-z).',
94
+ },
92
95
  'Powered by': {
93
96
  value: 'مشغل بواسطة',
94
97
  },
@@ -257,6 +260,9 @@ const stringsBase = {
257
260
  "Payment processing. We'll update you when payment is received.": {
258
261
  value: "Payment processing. We'll update you when payment is received.",
259
262
  },
263
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
264
+ value: 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).',
265
+ },
260
266
  'Powered by': {
261
267
  value: 'Powered by',
262
268
  },
@@ -425,6 +431,9 @@ const stringsChinese = {
425
431
  "Payment processing. We'll update you when payment is received.": {
426
432
  value: '付款处理中。付款收到后,我们将通知您。',
427
433
  },
434
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
435
+ value: '请确保您的文本仅使用拉丁字母表(A-Z, a-z)。',
436
+ },
428
437
  'Powered by': {
429
438
  value: '由...提供支持',
430
439
  },
@@ -593,6 +602,9 @@ const stringsDanish = {
593
602
  "Payment processing. We'll update you when payment is received.": {
594
603
  value: 'Behandler betaling. Vi opdaterer dig, når betalingen er modtaget.',
595
604
  },
605
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
606
+ value: 'Sørg venligst for, at din tekst kun bruger det latinske alfabet (A-Z, a-z).',
607
+ },
596
608
  'Powered by': {
597
609
  value: 'Drevet af',
598
610
  },
@@ -761,6 +773,9 @@ const stringsDutch = {
761
773
  "Payment processing. We'll update you when payment is received.": {
762
774
  value: 'Betaling verwerken. We brengen je op de hoogte wanneer de betaling is ontvangen.',
763
775
  },
776
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
777
+ value: 'Zorg ervoor dat uw tekst alleen het Latijnse alfabet gebruikt (A-Z, a-z).',
778
+ },
764
779
  'Powered by': {
765
780
  value: 'Aangedreven door',
766
781
  },
@@ -929,6 +944,9 @@ const stringsFrench = {
929
944
  "Payment processing. We'll update you when payment is received.": {
930
945
  value: 'Traitement du paiement en cours. Nous vous tiendrons informé dès réception du paiement.',
931
946
  },
947
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
948
+ value: "Veuillez vous assurer que votre texte utilise uniquement l'alphabet latin (A-Z, a-z).",
949
+ },
932
950
  'Powered by': {
933
951
  value: 'Propulsé par',
934
952
  },
@@ -1097,6 +1115,9 @@ const stringsGerman = {
1097
1115
  "Payment processing. We'll update you when payment is received.": {
1098
1116
  value: 'Zahlung wird verarbeitet. Wir informieren Sie, sobald die Zahlung eingegangen ist.',
1099
1117
  },
1118
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
1119
+ value: 'Bitte stellen Sie sicher, dass Ihr Text nur das lateinische Alphabet verwendet (A-Z, a-z).',
1120
+ },
1100
1121
  'Powered by': {
1101
1122
  value: 'Angetrieben von',
1102
1123
  },
@@ -1265,6 +1286,9 @@ const stringsHebrew = {
1265
1286
  "Payment processing. We'll update you when payment is received.": {
1266
1287
  value: 'התשלום מעובד. נעדכן אותך כשהתשלום יתקבל.',
1267
1288
  },
1289
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
1290
+ value: 'אנא ודא שהטקסט שלך משתמש באלפבית הלטיני בלבד (A-Z, a-z).',
1291
+ },
1268
1292
  'Powered by': {
1269
1293
  value: 'מופעל על ידי',
1270
1294
  },
@@ -1433,6 +1457,9 @@ const stringsIndonesian = {
1433
1457
  "Payment processing. We'll update you when payment is received.": {
1434
1458
  value: 'Pemrosesan pembayaran. Kami akan memberi Anda pembaruan ketika pembayaran diterima.',
1435
1459
  },
1460
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
1461
+ value: 'Harap pastikan teks Anda hanya menggunakan alfabet Latin (A-Z, a-z).',
1462
+ },
1436
1463
  'Powered by': {
1437
1464
  value: 'Dipersembahkan oleh',
1438
1465
  },
@@ -1601,6 +1628,9 @@ const stringsItalian = {
1601
1628
  "Payment processing. We'll update you when payment is received.": {
1602
1629
  value: 'Elaborazione pagamento in corso. Ti aggiorneremo quando il pagamento sarà ricevuto.',
1603
1630
  },
1631
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
1632
+ value: "Si prega di assicurarsi che il testo utilizzi solo l'alfabeto latino (A-Z, a-z).",
1633
+ },
1604
1634
  'Powered by': {
1605
1635
  value: 'Offerto da',
1606
1636
  },
@@ -1769,6 +1799,9 @@ const stringsJapanese = {
1769
1799
  "Payment processing. We'll update you when payment is received.": {
1770
1800
  value: '支払処理中です。入金が確認された際に更新いたします。',
1771
1801
  },
1802
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
1803
+ value: 'テキストがラテンアルファベットのみを使用していることを確認してください(A-Z、a-z)。',
1804
+ },
1772
1805
  'Powered by': {
1773
1806
  value: 'Powered by',
1774
1807
  },
@@ -1937,6 +1970,9 @@ const stringsKorean = {
1937
1970
  "Payment processing. We'll update you when payment is received.": {
1938
1971
  value: '결제 처리 중. 결제가 접수되면 알려드리겠습니다.',
1939
1972
  },
1973
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
1974
+ value: '텍스트가 라틴 알파벳만 사용하는지 확인해 주세요 (A-Z, a-z).',
1975
+ },
1940
1976
  'Powered by': {
1941
1977
  value: '제공됨',
1942
1978
  },
@@ -2105,6 +2141,9 @@ const stringsNorwegian = {
2105
2141
  "Payment processing. We'll update you when payment is received.": {
2106
2142
  value: 'Bearbeider betalingen. Vi gir deg beskjed når betalingen er mottatt.',
2107
2143
  },
2144
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
2145
+ value: 'Vennligst sørg for at teksten din kun bruker det latinske alfabetet (A-Z, a-z).',
2146
+ },
2108
2147
  'Powered by': {
2109
2148
  value: 'Drevet av',
2110
2149
  },
@@ -2273,6 +2312,9 @@ const stringsPolish = {
2273
2312
  "Payment processing. We'll update you when payment is received.": {
2274
2313
  value: 'Trwa przetwarzanie płatności. Poinformujemy gdy płatność zostanie otrzymana.',
2275
2314
  },
2315
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
2316
+ value: 'Proszę upewnić się, że tekst używa tylko alfabetu łacińskiego (A-Z, a-z).',
2317
+ },
2276
2318
  'Powered by': {
2277
2319
  value: 'Dostarczone przez',
2278
2320
  },
@@ -2441,6 +2483,9 @@ const stringsPortuguese = {
2441
2483
  "Payment processing. We'll update you when payment is received.": {
2442
2484
  value: 'Processando pagamento. Informaremos quando o pagamento for recebido.',
2443
2485
  },
2486
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
2487
+ value: 'Por favor, certifique-se de que seu texto utilize apenas o alfabeto latino (A-Z, a-z).',
2488
+ },
2444
2489
  'Powered by': {
2445
2490
  value: 'Desenvolvido por',
2446
2491
  },
@@ -2609,6 +2654,9 @@ const stringsRussian = {
2609
2654
  "Payment processing. We'll update you when payment is received.": {
2610
2655
  value: 'Обрабатываем платеж. Сообщим вам, когда платеж будет получен.',
2611
2656
  },
2657
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
2658
+ value: 'Пожалуйста, убедитесь, что ваш текст использует только латинский алфавит (A-Z, a-z).',
2659
+ },
2612
2660
  'Powered by': {
2613
2661
  value: 'Работает на',
2614
2662
  },
@@ -2777,6 +2825,9 @@ const stringsSpanish = {
2777
2825
  "Payment processing. We'll update you when payment is received.": {
2778
2826
  value: 'Procesando pago. Le informaremos cuando se reciba el pago.',
2779
2827
  },
2828
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
2829
+ value: 'Por favor, asegúrese de que su texto use solo el alfabeto latino (A-Z, a-z).',
2830
+ },
2780
2831
  'Powered by': {
2781
2832
  value: 'Desarrollado por',
2782
2833
  },
@@ -2945,6 +2996,9 @@ const stringsSwedish = {
2945
2996
  "Payment processing. We'll update you when payment is received.": {
2946
2997
  value: 'Betalningsbehandling. Vi kommer att uppdatera dig när betalningen har mottagits.',
2947
2998
  },
2999
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
3000
+ value: 'Vänligen se till att din text endast använder det latinska alfabetet (A-Z, a-z).',
3001
+ },
2948
3002
  'Powered by': {
2949
3003
  value: 'Drivs av',
2950
3004
  },
@@ -3113,6 +3167,9 @@ const stringsTurkish = {
3113
3167
  "Payment processing. We'll update you when payment is received.": {
3114
3168
  value: 'Ödeme işleniyor. Ödeme alındığında sizi bilgilendireceğiz.',
3115
3169
  },
3170
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
3171
+ value: 'Lütfen metninizin sadece Latin alfabesini kullandığından emin olun (A-Z, a-z).',
3172
+ },
3116
3173
  'Powered by': {
3117
3174
  value: 'Tarafından desteklenmektedir',
3118
3175
  },
@@ -3281,6 +3338,9 @@ const stringsVietnamese = {
3281
3338
  "Payment processing. We'll update you when payment is received.": {
3282
3339
  value: 'Đang xử lý thanh toán. Chúng tôi sẽ thông báo khi nhận được thanh toán.',
3283
3340
  },
3341
+ 'Please ensure your text uses the Latin alphabet only (A-Z, a-z).': {
3342
+ value: 'Vui lòng đảm bảo rằng văn bản của bạn chỉ sử dụng bảng chữ cái Latinh (A-Z, a-z).',
3343
+ },
3284
3344
  'Powered by': {
3285
3345
  value: 'Nền tảng cung cấp bởi',
3286
3346
  },
@@ -4157,23 +4217,40 @@ const jsonParse = (_data) => {
4157
4217
  };
4158
4218
 
4159
4219
  const addressRuleStyle = ({ theme, }) => {
4220
+ const defaultStyle = {
4221
+ '.Action': {
4222
+ color: 'var(--colorText)',
4223
+ },
4224
+ '.Input': {
4225
+ boxShadow: 'none',
4226
+ // need to reset everything and the paddingTop to default, otherwise the paddingTop will not be updated.
4227
+ padding: '0',
4228
+ paddingBottom: '8px',
4229
+ paddingLeft: '16px',
4230
+ paddingRight: '8px',
4231
+ // any value here will be add up to the default paddingTop (20px).
4232
+ paddingTop: '6px',
4233
+ },
4234
+ '.Input:focus': {
4235
+ boxShadow: 'none',
4236
+ },
4237
+ '.PickerItem--highlight': {
4238
+ boxShadow: '0 0 0 2px var(--colorBackground)',
4239
+ },
4240
+ '.PickerItem--highlight:hover': {
4241
+ backgroundColor: 'var(--colorBackground)',
4242
+ boxShadow: 'none',
4243
+ },
4244
+ '.PickerItem--new': {
4245
+ color: 'var(--colorText)',
4246
+ },
4247
+ };
4160
4248
  switch (theme) {
4249
+ case 'DARK': {
4250
+ return Object.assign(Object.assign({}, defaultStyle), { '.Action': Object.assign(Object.assign({}, defaultStyle['.Action']), { color: 'white' }), '.PickerItem--new': Object.assign(Object.assign({}, defaultStyle['.PickerItem--new']), { color: 'white' }) });
4251
+ }
4161
4252
  default:
4162
- return {
4163
- '.Input': {
4164
- boxShadow: 'none',
4165
- // need to reset everything and the paddingTop to default, otherwise the paddingTop will not be updated.
4166
- padding: '0',
4167
- paddingBottom: '8px',
4168
- paddingLeft: '16px',
4169
- paddingRight: '8px',
4170
- // any value here will be add up to the default paddingTop (20px).
4171
- paddingTop: '6px',
4172
- },
4173
- '.Input:focus': {
4174
- boxShadow: 'none',
4175
- },
4176
- };
4253
+ return defaultStyle;
4177
4254
  }
4178
4255
  };
4179
4256
 
@@ -4225,7 +4302,7 @@ const getStripeOptions = ({ clientSecret, overrideBorderRaidus, overridePrimaryC
4225
4302
  return {
4226
4303
  appearance: {
4227
4304
  labels: 'floating',
4228
- rules: Object.assign({}, addressRuleStyle({ theme: 'LIGHT' })),
4305
+ rules: Object.assign({}, addressRuleStyle({ theme: overrideTheme || 'LIGHT' })),
4229
4306
  // get contrast theme color base on primary color
4230
4307
  theme: overrideTheme ? theme : themeBasedColor,
4231
4308
  variables: Object.assign(Object.assign({}, defaultVariable({
@@ -4362,9 +4439,9 @@ const stripeStorePrefetchLandedCost = async () => {
4362
4439
  return null;
4363
4440
  }
4364
4441
  return Object.assign(Object.assign({}, checkoutSession), { landedCost: foundLandedCost });
4365
- }).filter(Boolean)) || null;
4442
+ }).filter(Boolean)) || [];
4366
4443
  cartStore.shippingData =
4367
- (shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || null;
4444
+ (shipmentRatingCalculateWorkflow === null || shipmentRatingCalculateWorkflow === void 0 ? void 0 : shipmentRatingCalculateWorkflow.filter(Boolean)) || [];
4368
4445
  // apply new subtotal and total, this is mainly to show items in the presentment currency
4369
4446
  const firstLandedCostData = (_f = cartStore.landedCostData) === null || _f === void 0 ? void 0 : _f.find(Boolean);
4370
4447
  const subtotals = !!firstLandedCostData
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-138c5555.js');
3
+ const zonosStore = require('./zonosStore-2a8612a4.js');
4
4
 
5
5
  /**
6
6
  * Get the border radius for the elements based on the style
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const zonosStore = require('./zonosStore-138c5555.js');
3
+ const zonosStore = require('./zonosStore-2a8612a4.js');
4
4
 
5
5
  var tinycolor$1 = {exports: {}};
6
6
 
@@ -8,7 +8,7 @@ const appGlobals = require('./app-globals-3a1e7e63.js');
8
8
  const defineCustomElements = async (win, options) => {
9
9
  if (typeof window === 'undefined') return undefined;
10
10
  await appGlobals.globalScripts();
11
- return index.bootstrapLazy([["zonos-checkout.cjs",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged"],"mobile":["handleMobileChange"]}]]],["zonos-hello.cjs",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]]]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link.cjs",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo.cjs",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text.cjs",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification.cjs",[[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-payment.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"selectedItem":[32]}]]],["zonos-badge_2.cjs",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-country-flag.cjs",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-button_3.cjs",[[1,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}]]],["zonos-select-dialog-header_2.cjs",[[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}],[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-card_2.cjs",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-card",{"actions":[16],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-country-select_3.cjs",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-address_4.cjs",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_9.cjs",[[1,"zonos-checkout-footer",{"showDialog":[32]},[[4,"click","handleGlobalClick"]]],[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"defaultAddress":[16],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"footerRightAction":[16],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}]]]], options);
11
+ return index.bootstrapLazy([["zonos-checkout.cjs",[[2,"zonos-checkout",{"appearanceSettingsOverride":[16],"preview":[4],"mobile":[4],"defaultAddress":[16],"forceDialogOpen":[4,"force-dialog-open"],"open":[32],"stripe":[32],"submitLoading":[32],"paymentError":[32],"collapseReviewMobile":[32],"isAttachError":[32],"isMobile":[32],"zonosReviewRef":[32],"storybookPaymentStatusOverride":[32],"domesticRedirectedBtnSelector":[32],"closeDialogHandler":[64],"init":[64],"setToFinishStep":[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{"appearanceSettingsOverride":["appearanceSettingsOverrideChanged"],"mobile":["handleMobileChange"]}]]],["zonos-hello.cjs",[[1,"zonos-hello",{"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettingsOverride":[16],"showPeekMessage":[32],"zonosStoreHelloSettings":[32],"showDialog":[32],"peekMessage":[32],"initialUrl":[32],"allRestrictedItems":[32],"allFoundProducts":[32],"productsOnPage":[32],"displayCurrency":[64],"convertAndFormat":[64],"convert":[64],"format":[64],"openHelloDialog":[64]},[[9,"resize","handleResize"]]]]],["zonos-controller.cjs",[[1,"zonos-controller",{"config":[16],"zonosApiKey":[1,"zonos-api-key"],"initCheckoutElement":[64],"setupGoogleFont":[64],"showNotification":[64],"overrideConfig":[64],"overrideCountry":[64],"getAppearanceSetting":[64],"updateOrganizationName":[64]}]]],["zonos-component.cjs",[[1,"zonos-component",{"first":[1],"middle":[1],"last":[1]}]]],["zonos-link.cjs",[[1,"zonos-link",{"href":[1],"rel":[1],"target":[1],"linkTitle":[1,"link-title"]}]]],["zonos-logo.cjs",[[1,"zonos-logo",{"theme":[1],"width":[1]}]]],["zonos-text.cjs",[[1,"zonos-text",{"textColor":[1,"text-color"],"size":[1],"type":[1],"weight":[2],"content":[1],"ready":[32]}]]],["zonos-hello-dialog.cjs",[[1,"zonos-hello-dialog",{"isOpen":[4,"is-open"],"setIsOpen":[16],"mobileLocationOverride":[1,"mobile-location-override"],"animateFromLeftOverride":[4,"animate-from-left-override"],"appearanceSettings":[16],"restrictedItems":[16],"welcomeMessage":[32],"showCountrySelect":[32],"showLanguageSelect":[32]},[[4,"click","globalClickHandler"]],{"isOpen":["isOpenHandler"]}]]],["zonos-notification.cjs",[[1,"zonos-notification",{"notificationArray":[32],"showNotification":[64]}]]],["zonos-payment.cjs",[[2,"zonos-payment",{"titleText":[1,"title-text"],"stripe":[32],"stripeElements":[32]},null,{"stripeElements":["watchInitStripe"],"stripe":["watchInitStripe"]}]]],["zonos-shipping-rich-radio.cjs",[[1,"zonos-shipping-rich-radio",{"items":[16],"borderColor":[1,"border-color"],"borderStyle":[1,"border-style"],"theme":[1],"selectedItem":[32]}]]],["zonos-badge_2.cjs",[[1,"zonos-badge",{"bold":[4],"badgeColor":[1,"badge-color"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"rounded":[4]}],[1,"zonos-tooltip",{"label":[1],"subtitle":[1],"showTooltip":[32]}]]],["zonos-country-flag.cjs",[[1,"zonos-country-flag",{"countryCode":[1,"country-code"],"size":[2]}]]],["zonos-banner.cjs",[[1,"zonos-banner",{"bannerTitle":[1,"banner-title"],"intent":[1],"hasContent":[32]}]]],["zonos-button_3.cjs",[[1,"zonos-button",{"buttonColor":[1,"button-color"],"backgroundColor":[1,"background-color"],"borderStyle":[1,"border-style"],"isDisabled":[4,"is-disabled"],"icon":[16],"iconRight":[4,"icon-right"],"size":[1],"variant":[1],"noBackground":[4,"no-background"],"noPaddingLeft":[4,"no-padding-left"],"noPaddingRight":[4,"no-padding-right"],"loading":[4],"theme":[1],"hasIcon":[32],"hasContent":[32]},[[2,"click","clickHandler"]],{"icon":["iconChangeHandler"]}],[1,"zonos-icon",{"autoHeight":[4,"auto-height"],"iconColor":[1,"icon-color"],"content":[1],"size":[2]}],[1,"zonos-spinner",{"size":[2],"spinnerColor":[1,"spinner-color"]}]]],["zonos-select-dialog-header_2.cjs",[[1,"zonos-select-dialog-header",{"handleOnClose":[16],"label":[1]}],[1,"zonos-v-stack",{"spacing":[2]}]]],["zonos-card_2.cjs",[[1,"zonos-language-select",{"handleOnClose":[16]}],[1,"zonos-card",{"actions":[16],"footerActions":[16],"footerContent":[16],"footerHeight":[2,"footer-height"],"label":[16],"spacing":[1]}]]],["zonos-country-select_3.cjs",[[1,"zonos-country-select",{"handleOnClose":[16],"inputValue":[32]}],[1,"zonos-hello-dialog-footer",{"appearanceSettings":[16],"setShowCountrySelect":[16],"setShowLanguageSelect":[16]}],[1,"zonos-custom-message",{"icon":[1],"message":[1]}]]],["zonos-address_4.cjs",[[2,"zonos-address",{"type":[1],"titleText":[1,"title-text"],"defaultAddress":[16],"stripe":[32],"hasInvalidCharacters":[32],"isDirtyAddress":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-checkbox",{"backgroundColor":[1,"background-color"],"label":[1],"isChecked":[4,"is-checked"],"isDisabled":[4,"is-disabled"],"size":[2],"fontSize":[1,"font-size"],"borderStyle":[1,"border-style"]}],[2,"zonos-link-authentication",{"titleText":[1,"title-text"],"stripe":[32]},null,{"stripe":["watchInitStripe"]}],[1,"zonos-collapse",{"collapsed":[4],"collapseSize":[2,"collapse-size"],"height":[32],"iframe":[32]}]]],["zonos-cart-items_9.cjs",[[2,"zonos-customer-info",{"continueLoading":[4,"continue-loading"],"submitBtnType":[1,"submit-btn-type"],"submitBtnColor":[1,"submit-btn-color"],"defaultAddress":[16],"disabled":[32],"hasInvalidShippingCharacters":[32],"hasInvalidBillingCharacters":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-checkout-footer",{"showDialog":[32]},[[4,"click","handleGlobalClick"]]],[2,"zonos-checkout-payment",{"paymentError":[4,"payment-error"],"submitBtnType":[1,"submit-btn-type"],"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[2,"zonos-shipping",{"continueLoading":[4,"continue-loading"],"submitBtnColor":[1,"submit-btn-color"],"submitBtnType":[1,"submit-btn-type"],"selectedShippingMethod":[32],"disabled":[32]},null,{"disabled":["watchFormComplete"]}],[1,"zonos-cart-subtotal"],[1,"zonos-checkout-finish",{"borderRadius":[1,"border-radius"],"storybookForceStatus":[1,"storybook-force-status"],"overrideNotification":[16],"isLoading":[32],"notificationType":[32],"notificationTitle":[32],"notificationMessages":[32],"order":[32]}],[1,"zonos-dialog",{"open":[4],"headerText":[1,"header-text"],"width":[1],"height":[1],"noHeader":[4,"no-header"],"noBodyPadding":[4,"no-body-padding"],"noBorder":[4,"no-border"],"footerRightAction":[16],"borderStyle":[1,"border-style"],"noCloseButton":[4,"no-close-button"],"noClickOutside":[4,"no-click-outside"],"mobile":[4],"isLoading":[4,"is-loading"],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-review",{"mobile":[4],"collapsed":[4],"isMobile":[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{"errorImages":[32]}]]]], options);
12
12
  };
13
13
 
14
14
  exports.setNonce = index.setNonce;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-eee85bda.js');
4
- const zonosStore = require('./zonosStore-138c5555.js');
3
+ const cart = require('./cart-c22d66c8.js');
4
+ const zonosStore = require('./zonosStore-2a8612a4.js');
5
5
 
6
6
  const trackConversionEvent = async (eventName, metadata) => {
7
7
  // If a Zonos domain, we don't want analytics to be tracked
@@ -3,23 +3,39 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const cart = require('./cart-eee85bda.js');
6
+ const cart = require('./cart-c22d66c8.js');
7
+ const zonosStore = require('./zonosStore-2a8612a4.js');
7
8
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
- const zonosStore = require('./zonosStore-138c5555.js');
9
9
  const classes = require('./classes-b7918f56.js');
10
- const getBorderRadius = require('./getBorderRadius-d8f18958.js');
11
- const isDarkColor = require('./isDarkColor-57860b44.js');
10
+ const getBorderRadius = require('./getBorderRadius-d9a954a3.js');
11
+ const isDarkColor = require('./isDarkColor-c01f24df.js');
12
12
 
13
- const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}";
13
+ /**
14
+ * Check if the given address object contains non-latin characters
15
+ * @returns an object with the same keys as the input object, and a boolean value indicating if the value contains non-latin characters
16
+ */
17
+ const containsNonLatinChars = (params) => {
18
+ /**
19
+ * This regex matches any character that is not a latin character, punctuation, symbol, number, separator, control, or mark
20
+ * I limited the character found to 1 in the regex, so that we can return early if we find any non-latin character
21
+ **/
22
+ const nonLatinRegex = /[^\p{Script=Latin}\p{P}\p{S}\p{N}\p{Z}\p{C}\p{M}]{1}/u;
23
+ const nonLatinValueList = Object.entries(params).reduce((prev, [key, value]) => nonLatinRegex.test(value) ? Object.assign(Object.assign({}, prev), { [key]: true }) : prev, {});
24
+ return nonLatinValueList;
25
+ };
26
+
27
+ const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:var(--amino-space-8)}";
14
28
  const ZonosAddressStyle0 = zonosAddressCss;
15
29
 
16
30
  const ZonosAddress = class {
17
31
  constructor(hostRef) {
18
32
  index.registerInstance(this, hostRef);
33
+ this.invalidCharacters = index.createEvent(this, "invalidCharacters", 7);
19
34
  this.type = undefined;
20
35
  this.titleText = undefined;
21
36
  this.defaultAddress = null;
22
37
  this.stripe = window.Zonos.stripe;
38
+ this.hasInvalidCharacters = false;
23
39
  this.isDirtyAddress = false;
24
40
  }
25
41
  getStripeAddressInstance() {
@@ -45,6 +61,13 @@ const ZonosAddress = class {
45
61
  cart.stripeStore.stripeAddressEventData = event;
46
62
  break;
47
63
  }
64
+ const hasInvalidCharacters = this.checkInvalidCharacters(event);
65
+ this.invalidCharacters.emit(hasInvalidCharacters);
66
+ this.hasInvalidCharacters = hasInvalidCharacters;
67
+ if (hasInvalidCharacters) {
68
+ // no need to prefetch landed cost if the address contains invalid characters
69
+ return;
70
+ }
48
71
  // only prefetch if the address type is shipping
49
72
  void cart.stripeStorePrefetchLandedCost();
50
73
  }
@@ -55,6 +78,29 @@ const ZonosAddress = class {
55
78
  }
56
79
  cart.stripeStore.stripeBillingAddressElement = stripeAddressElement;
57
80
  }
81
+ checkInvalidCharacters(address) {
82
+ // Do nothing if the allowed character sets is ALL or the address is incomplete
83
+ if (!address.complete ||
84
+ zonosStore.zonosStore.checkoutSettings.allowedCharacterSets === 'ALL') {
85
+ return false;
86
+ }
87
+ const { address: addressValue, firstName, lastName, name } = address.value;
88
+ const { city, country, line1, line2, postal_code, state } = addressValue;
89
+ const invalidList = containsNonLatinChars({
90
+ city,
91
+ country,
92
+ line1,
93
+ line2: line2 || '',
94
+ name: name || `${firstName} ${lastName}`,
95
+ postal_code,
96
+ state,
97
+ });
98
+ // emit event if the address contains invalid characters
99
+ if (Object.keys(invalidList).length) {
100
+ return true;
101
+ }
102
+ return false;
103
+ }
58
104
  async watchInitStripe() {
59
105
  var _a, _b;
60
106
  this.stripe = window.Zonos.stripe;
@@ -118,7 +164,7 @@ const ZonosAddress = class {
118
164
  }, 600);
119
165
  }
120
166
  this.updateAddressEventData({
121
- event: Object.assign(Object.assign({}, event), { elementMode: this.type, elementType: 'address', empty: false, value: Object.assign(Object.assign({}, eventValue), { firstName: eventValue.firstName || eventValue.name.split(' ')[0], lastName: eventValue.lastName || eventValue.name.split(' ').pop() }) }),
167
+ event: Object.assign(Object.assign({}, event), { elementMode: this.type, elementType: 'address', value: Object.assign(Object.assign({}, eventValue), { firstName: eventValue.firstName || eventValue.name.split(' ')[0], lastName: eventValue.lastName || eventValue.name.split(' ')[1] }) }),
122
168
  type: this.type,
123
169
  });
124
170
  });
@@ -139,10 +185,17 @@ const ZonosAddress = class {
139
185
  stripeAddressEventData.value.address.line1.length > 0;
140
186
  // @Watch doesn't get trigger on initial load
141
187
  void this.watchInitStripe();
188
+ setTimeout(() => {
189
+ // check if the address contains invalid characters after address is loaded
190
+ const newStripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
191
+ if (newStripeAddressEventData) {
192
+ this.checkInvalidCharacters(newStripeAddressEventData);
193
+ }
194
+ }, 500);
142
195
  }
143
196
  render() {
144
197
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
145
- return (index.h(index.Host, { key: '8d762300d8f599a277806d861d13d2beb6a0a5a6', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: 'c355eece2f193cb0595ede434238f062b2c07c7c', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: '59c3bd68cd67c8d733fd2ca5d9f4b4114c84db4a', class: "zonos--address-component" })));
198
+ return (index.h(index.Host, { key: '2656f94224ff0385b4ae2594284257add19f82c3', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: '48b5ac45621d6d0f79f62227c71d70bb284c60da', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: '2f11c7983fd310afa01fa5100ce25ce49cfcc3da', class: "zonos--address-component" }), this.hasInvalidCharacters && (index.h("zonos-banner", { bannerTitle: cart.translate('Please ensure your text uses the Latin alphabet only (A-Z, a-z).'), intent: "error" }))));
146
199
  }
147
200
  get el() { return index.getElement(this); }
148
201
  static get watchers() { return {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const zonosStore = require('./zonosStore-138c5555.js');
6
+ const zonosStore = require('./zonosStore-2a8612a4.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosBadgeCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const zonosStore = require('./zonosStore-138c5555.js');
6
+ const zonosStore = require('./zonosStore-2a8612a4.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const zonosBannerCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const zonosStore = require('./zonosStore-138c5555.js');
6
+ const zonosStore = require('./zonosStore-2a8612a4.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-d8f18958.js');
8
+ const getBorderRadius = require('./getBorderRadius-d9a954a3.js');
9
9
  const isColorVariable = require('./isColorVariable-41cacd82.js');
10
- const isDarkColor = require('./isDarkColor-57860b44.js');
10
+ const isDarkColor = require('./isDarkColor-c01f24df.js');
11
11
 
12
12
  /**
13
13
  * Get theme for button text based on background color
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-72767498.js');
6
- const zonosStore = require('./zonosStore-138c5555.js');
6
+ const zonosStore = require('./zonosStore-2a8612a4.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const cart = require('./cart-eee85bda.js');
8
+ const cart = require('./cart-c22d66c8.js');
9
9
  const ILanguage = require('./ILanguage-d247b45b.js');
10
- require('./isDarkColor-57860b44.js');
11
- require('./getBorderRadius-d8f18958.js');
10
+ require('./isDarkColor-c01f24df.js');
11
+ require('./getBorderRadius-d9a954a3.js');
12
12
 
13
13
  const zonosCardCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";
14
14
  const ZonosCardStyle0 = zonosCardCss;