@zonos/elements 1.3.181 → 1.3.183

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 (131) hide show
  1. package/dist/cjs/{cart-dcd068d1.js → cart-3d0c0f0b.js} +60 -0
  2. package/dist/cjs/index.cjs.js +7 -7
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/{paypal-4bbc4779.js → paypal-9eaa9196.js} +1 -1
  5. package/dist/cjs/zonos-address_7.cjs.entry.js +13 -4
  6. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +50 -22
  7. package/dist/cjs/zonos-checkout.cjs.entry.js +9 -2
  8. package/dist/cjs/zonos-controller.cjs.entry.js +1 -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-elements.cjs.js +1 -1
  12. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  16. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +7 -0
  17. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +11 -24
  18. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
  19. package/dist/collection/components/store/translationStore/strings.base.js +3 -0
  20. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
  21. package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
  22. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
  23. package/dist/collection/components/store/translationStore/strings.french.js +3 -0
  24. package/dist/collection/components/store/translationStore/strings.german.js +3 -0
  25. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
  26. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
  27. package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
  28. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
  29. package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
  30. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
  31. package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
  32. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
  33. package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
  34. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
  35. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
  36. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
  37. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
  38. package/dist/collection/components/stripe/zonos-address/zonos-address.js +16 -4
  39. package/dist/collection/components/utils/taxIdValidationResult.js +38 -0
  40. package/dist/esm/{cart-d2c86d90.js → cart-3fb04f1f.js} +60 -0
  41. package/dist/esm/index.js +7 -7
  42. package/dist/esm/loader.js +1 -1
  43. package/dist/esm/{paypal-5c0d6407.js → paypal-1f2e863c.js} +1 -1
  44. package/dist/esm/zonos-address_7.entry.js +13 -4
  45. package/dist/esm/zonos-cart-items_13.entry.js +50 -22
  46. package/dist/esm/zonos-checkout.entry.js +9 -2
  47. package/dist/esm/zonos-controller.entry.js +1 -1
  48. package/dist/esm/zonos-country-flag.entry.js +1 -1
  49. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  50. package/dist/esm/zonos-elements.js +1 -1
  51. package/dist/esm/zonos-empty-state-payment_4.entry.js +2 -2
  52. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  53. package/dist/esm/zonos-hello.entry.js +1 -1
  54. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  55. package/dist/esm-es5/cart-3fb04f1f.js +1 -0
  56. package/dist/esm-es5/index.js +1 -1
  57. package/dist/esm-es5/loader.js +1 -1
  58. package/dist/esm-es5/{paypal-5c0d6407.js → paypal-1f2e863c.js} +1 -1
  59. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  60. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  61. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  62. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  63. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  64. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  65. package/dist/esm-es5/zonos-elements.js +1 -1
  66. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  67. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  68. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  69. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  70. package/dist/scripts/index.js +1 -1
  71. package/dist/scripts/loadZonos.js +1 -1
  72. package/dist/scripts/zonos.js +1 -1
  73. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +1 -2
  74. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
  75. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
  76. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
  77. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
  78. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
  79. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
  80. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
  81. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
  82. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
  83. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
  84. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
  85. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
  86. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
  87. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
  88. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
  89. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
  90. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
  91. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
  92. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
  93. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
  94. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +5 -1
  95. package/dist/types/components/utils/taxIdValidationResult.d.ts +12 -0
  96. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  97. package/dist/zonos-elements/index.esm.js +1 -1
  98. package/dist/zonos-elements/{p-5c695748.entry.js → p-107b08c1.entry.js} +1 -1
  99. package/dist/zonos-elements/{p-a43fba41.js → p-112aecac.js} +1 -1
  100. package/dist/zonos-elements/{p-4661c29c.system.entry.js → p-29e8c9e8.system.entry.js} +1 -1
  101. package/dist/zonos-elements/{p-a2368c1c.system.entry.js → p-358043a2.system.entry.js} +1 -1
  102. package/dist/zonos-elements/{p-09fbafe4.entry.js → p-43feb95e.entry.js} +1 -1
  103. package/dist/zonos-elements/{p-e42e0cdb.entry.js → p-4622cca6.entry.js} +1 -1
  104. package/dist/zonos-elements/p-46f6e5e9.system.js +1 -1
  105. package/dist/zonos-elements/{p-29d9bc4a.system.entry.js → p-4aca92c5.system.entry.js} +1 -1
  106. package/dist/zonos-elements/{p-9d014d94.system.entry.js → p-4ca666ea.system.entry.js} +1 -1
  107. package/dist/zonos-elements/{p-753811b7.system.entry.js → p-4eff2f8a.system.entry.js} +1 -1
  108. package/dist/zonos-elements/{p-5a71d418.entry.js → p-587568b5.entry.js} +1 -1
  109. package/dist/zonos-elements/{p-c4d519cf.system.js → p-59e31080.system.js} +1 -1
  110. package/dist/zonos-elements/{p-99f50bf3.system.js → p-5bebcfc2.system.js} +1 -1
  111. package/dist/zonos-elements/{p-1cebd67c.entry.js → p-64dbc282.entry.js} +1 -1
  112. package/dist/zonos-elements/{p-5be6b837.system.entry.js → p-7cb87ea7.system.entry.js} +1 -1
  113. package/dist/zonos-elements/p-7decb19b.entry.js +1 -0
  114. package/dist/zonos-elements/{p-99f17671.entry.js → p-8f640b28.entry.js} +1 -1
  115. package/dist/zonos-elements/p-a69dbe14.js +1 -0
  116. package/dist/zonos-elements/{p-ff8d9f3a.entry.js → p-ac889f52.entry.js} +1 -1
  117. package/dist/zonos-elements/p-b998494a.entry.js +1 -0
  118. package/dist/zonos-elements/p-bc0f885e.system.entry.js +1 -0
  119. package/dist/zonos-elements/{p-5e1a782a.system.entry.js → p-c5c8f803.system.entry.js} +1 -1
  120. package/dist/zonos-elements/p-c6d96a42.system.js +1 -0
  121. package/dist/zonos-elements/{p-33de55b8.system.entry.js → p-d367c9ae.system.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-42abd4dd.system.entry.js → p-f66a5c7c.system.entry.js} +1 -1
  123. package/dist/zonos-elements/{p-27ce063e.entry.js → p-fa65b53d.entry.js} +1 -1
  124. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  125. package/package.json +1 -1
  126. package/dist/esm-es5/cart-d2c86d90.js +0 -1
  127. package/dist/zonos-elements/p-18ec705b.js +0 -1
  128. package/dist/zonos-elements/p-1ea1376e.system.entry.js +0 -1
  129. package/dist/zonos-elements/p-2ad5692f.entry.js +0 -1
  130. package/dist/zonos-elements/p-91bc2187.system.js +0 -1
  131. package/dist/zonos-elements/p-95921a43.entry.js +0 -1
@@ -157,6 +157,9 @@ const stringsArabic = {
157
157
  'Hide non-prepaid options': {
158
158
  value: 'إخفاء الخيارات غير المدفوعة مسبقًا',
159
159
  },
160
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
161
+ value: 'تنسيق RFC غير صالح. يجب أن يكون 12-13 حرفًا كبيرًا وأرقامًا فقط.',
162
+ },
160
163
  'Invalid promo code': {
161
164
  value: 'رمز ترويجي غير صالح',
162
165
  },
@@ -640,6 +643,9 @@ const stringsBase = {
640
643
  'Hide non-prepaid options': {
641
644
  value: 'Hide non-prepaid options',
642
645
  },
646
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
647
+ value: 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.',
648
+ },
643
649
  'Invalid promo code': {
644
650
  value: 'Invalid promo code',
645
651
  },
@@ -1123,6 +1129,9 @@ const stringsChinese = {
1123
1129
  'Hide non-prepaid options': {
1124
1130
  value: '隐藏非预付选项',
1125
1131
  },
1132
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
1133
+ value: '无效的RFC格式。必须仅包含12-13个大写字母和数字。',
1134
+ },
1126
1135
  'Invalid promo code': {
1127
1136
  value: '无效的促销代码',
1128
1137
  },
@@ -1606,6 +1615,9 @@ const stringsDanish = {
1606
1615
  'Hide non-prepaid options': {
1607
1616
  value: 'Skjul ikke-forudbetalte muligheder',
1608
1617
  },
1618
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
1619
+ value: 'Ugyldigt RFC-format. Skal kun indeholde 12-13 store bogstaver og tal.',
1620
+ },
1609
1621
  'Invalid promo code': {
1610
1622
  value: 'Ugyldig kampagnekode',
1611
1623
  },
@@ -2089,6 +2101,9 @@ const stringsDutch = {
2089
2101
  'Hide non-prepaid options': {
2090
2102
  value: 'Verberg niet-vooruitbetaalde opties',
2091
2103
  },
2104
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
2105
+ value: 'Ongeldig RFC-formaat. Moet alleen 12-13 hoofdletters en cijfers bevatten.',
2106
+ },
2092
2107
  'Invalid promo code': {
2093
2108
  value: 'Ongeldige promotiecode',
2094
2109
  },
@@ -2572,6 +2587,9 @@ const stringsFrench = {
2572
2587
  'Hide non-prepaid options': {
2573
2588
  value: 'Masquer les options non prépayées',
2574
2589
  },
2590
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
2591
+ value: 'Format RFC invalide. Doit contenir uniquement 12 à 13 lettres majuscules et chiffres.',
2592
+ },
2575
2593
  'Invalid promo code': {
2576
2594
  value: 'Code promo invalide',
2577
2595
  },
@@ -3055,6 +3073,9 @@ const stringsGerman = {
3055
3073
  'Hide non-prepaid options': {
3056
3074
  value: 'Nicht vorausbezahlte Optionen ausblenden',
3057
3075
  },
3076
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
3077
+ value: 'Ungültiges RFC-Format. Muss nur 12–13 Großbuchstaben und Zahlen enthalten.',
3078
+ },
3058
3079
  'Invalid promo code': {
3059
3080
  value: 'Ungültiger Aktionscode',
3060
3081
  },
@@ -3538,6 +3559,9 @@ const stringsHebrew = {
3538
3559
  'Hide non-prepaid options': {
3539
3560
  value: 'הסתר אפשרויות שאינן בתשלום מראש',
3540
3561
  },
3562
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
3563
+ value: 'פורמט RFC לא חוקי. חייב להיות 12–13 אותיות גדולות ומספרים בלבד.',
3564
+ },
3541
3565
  'Invalid promo code': {
3542
3566
  value: 'קוד קידום מכירות לא חוקי',
3543
3567
  },
@@ -4021,6 +4045,9 @@ const stringsIndonesian = {
4021
4045
  'Hide non-prepaid options': {
4022
4046
  value: 'Sembunyikan opsi yang tidak prabayar',
4023
4047
  },
4048
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
4049
+ value: 'Format RFC tidak valid. Harus hanya terdiri dari 12-13 huruf besar dan angka.',
4050
+ },
4024
4051
  'Invalid promo code': {
4025
4052
  value: 'Kode promo tidak valid',
4026
4053
  },
@@ -4504,6 +4531,9 @@ const stringsItalian = {
4504
4531
  'Hide non-prepaid options': {
4505
4532
  value: 'Nascondi opzioni non prepagate',
4506
4533
  },
4534
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
4535
+ value: 'Formato RFC non valido. Deve contenere solo 12-13 lettere maiuscole e numeri.',
4536
+ },
4507
4537
  'Invalid promo code': {
4508
4538
  value: 'Codice promozionale non valido',
4509
4539
  },
@@ -4987,6 +5017,9 @@ const stringsJapanese = {
4987
5017
  'Hide non-prepaid options': {
4988
5018
  value: '未払いオプションを非表示にする',
4989
5019
  },
5020
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
5021
+ value: '無効なRFC形式です。12〜13の大文字と数字のみである必要があります。',
5022
+ },
4990
5023
  'Invalid promo code': {
4991
5024
  value: '無効なプロモーションコード',
4992
5025
  },
@@ -5470,6 +5503,9 @@ const stringsKorean = {
5470
5503
  'Hide non-prepaid options': {
5471
5504
  value: '선불이 아닌 옵션 숨기기',
5472
5505
  },
5506
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
5507
+ value: '잘못된 RFC 형식입니다. 12~13개의 대문자와 숫자만 포함해야 합니다.',
5508
+ },
5473
5509
  'Invalid promo code': {
5474
5510
  value: '유효하지 않은 프로모션 코드',
5475
5511
  },
@@ -5953,6 +5989,9 @@ const stringsNorwegian = {
5953
5989
  'Hide non-prepaid options': {
5954
5990
  value: 'Skjul ikke-forhåndsbetalte alternativer',
5955
5991
  },
5992
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
5993
+ value: 'Ugyldig RFC-format. Må kun inneholde 12–13 store bokstaver og tall.',
5994
+ },
5956
5995
  'Invalid promo code': {
5957
5996
  value: 'Ugyldig kampanjekode',
5958
5997
  },
@@ -6436,6 +6475,9 @@ const stringsPolish = {
6436
6475
  'Hide non-prepaid options': {
6437
6476
  value: 'Ukryj opcje nieprzedpłacone',
6438
6477
  },
6478
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
6479
+ value: 'Nieprawidłowy format RFC. Musi zawierać tylko 12-13 wielkich liter i cyfr.',
6480
+ },
6439
6481
  'Invalid promo code': {
6440
6482
  value: 'Nieprawidłowy kod promocyjny',
6441
6483
  },
@@ -6919,6 +6961,9 @@ const stringsPortuguese = {
6919
6961
  'Hide non-prepaid options': {
6920
6962
  value: 'Ocultar opções não pré-pagas',
6921
6963
  },
6964
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
6965
+ value: 'Formato de RFC inválido. Deve ter apenas 12-13 letras maiúsculas e números.',
6966
+ },
6922
6967
  'Invalid promo code': {
6923
6968
  value: 'Código promocional inválido',
6924
6969
  },
@@ -7402,6 +7447,9 @@ const stringsRussian = {
7402
7447
  'Hide non-prepaid options': {
7403
7448
  value: 'Скрыть неоплаченные варианты',
7404
7449
  },
7450
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
7451
+ value: 'Неверный формат RFC. Должно быть 12–13 заглавных букв и цифр.',
7452
+ },
7405
7453
  'Invalid promo code': {
7406
7454
  value: 'Недействительный промо-код',
7407
7455
  },
@@ -7885,6 +7933,9 @@ const stringsSpanish = {
7885
7933
  'Hide non-prepaid options': {
7886
7934
  value: 'Ocultar opciones no prepagadas',
7887
7935
  },
7936
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
7937
+ value: 'Formato de RFC no válido. Debe tener solo 12-13 letras mayúsculas y números.',
7938
+ },
7888
7939
  'Invalid promo code': {
7889
7940
  value: 'Código promocional no válido',
7890
7941
  },
@@ -8368,6 +8419,9 @@ const stringsSwedish = {
8368
8419
  'Hide non-prepaid options': {
8369
8420
  value: 'Dölj icke-förbetalda alternativ',
8370
8421
  },
8422
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
8423
+ value: 'Ogiltigt RFC-format. Måste endast innehålla 12–13 versaler och siffror.',
8424
+ },
8371
8425
  'Invalid promo code': {
8372
8426
  value: 'Ogiltig kampanjkod',
8373
8427
  },
@@ -8851,6 +8905,9 @@ const stringsTurkish = {
8851
8905
  'Hide non-prepaid options': {
8852
8906
  value: 'Ön ödemesiz seçenekleri gizle',
8853
8907
  },
8908
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
8909
+ value: 'Geçersiz RFC formatı. Yalnızca 12-13 büyük harf ve rakam olmalıdır.',
8910
+ },
8854
8911
  'Invalid promo code': {
8855
8912
  value: 'Geçersiz promosyon kodu',
8856
8913
  },
@@ -9334,6 +9391,9 @@ const stringsVietnamese = {
9334
9391
  'Hide non-prepaid options': {
9335
9392
  value: 'Ẩn các tùy chọn chưa trả trước',
9336
9393
  },
9394
+ 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.': {
9395
+ value: 'Định dạng RFC không hợp lệ. Phải chỉ có 12–13 chữ cái viết hoa và số.',
9396
+ },
9337
9397
  'Invalid promo code': {
9338
9398
  value: 'Mã khuyến mãi không hợp lệ',
9339
9399
  },
package/dist/esm/index.js CHANGED
@@ -126,7 +126,7 @@ const getZonosQaUrl = () => {
126
126
  return null;
127
127
  }
128
128
  const qaUrl = extractZonosQaUrl(window.location.href);
129
- const cdnUrl = "https://v1.3.181.js.zonos.com";
129
+ const cdnUrl = "https://v1.3.183.js.zonos.com";
130
130
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
131
131
  if (!qaUrl &&
132
132
  (cdnUrl.includes('test.') ||
@@ -362,10 +362,10 @@ const zonosLoadUrl = (() => {
362
362
  }
363
363
  return null;
364
364
  })();
365
- const ZONOS_URL = "https://v1.3.181.js.zonos.com";
366
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.181";
367
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.181";
368
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.181";
365
+ const ZONOS_URL = "https://v1.3.183.js.zonos.com";
366
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.183";
367
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.183";
368
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.183";
369
369
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
370
370
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
371
371
  class Zonos {
@@ -380,7 +380,7 @@ Zonos.zonosConversionTest = typeof window !== 'undefined' &&
380
380
  !!window.location.search.match(/\?.*(&*)zonosConversionTest/);
381
381
  Zonos._paypalMockResponse = null;
382
382
  Zonos.isBigCommerce = false;
383
- Zonos.releaseDate = "1744037880044";
383
+ Zonos.releaseDate = "1744403359888";
384
384
  Zonos.isLegacyCheckout = false;
385
385
  Zonos.domain = typeof window !== 'undefined'
386
386
  ? // domain that embeds the iframe
@@ -397,7 +397,7 @@ Zonos.isNpm = true;
397
397
  Zonos.zonosQaUrl = null;
398
398
  Zonos.zonosQaUrlApi = null;
399
399
  Zonos.trackEventLogs = [];
400
- Zonos.version = `v${"1.3.181"}`;
400
+ Zonos.version = `v${"1.3.183"}`;
401
401
  Zonos.modeAlerted = false;
402
402
  Zonos.cartData = null;
403
403
  Zonos.paypal = null;
@@ -5,7 +5,7 @@ import { g as globalScripts } from './app-globals-0f993ce5.js';
5
5
  const defineCustomElements = async (win, options) => {
6
6
  if (typeof window === 'undefined') return undefined;
7
7
  await globalScripts();
8
- return bootstrapLazy(JSON.parse("[[\"zonos-checkout\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"defaultCustomerProfileAddress\":[32],\"customerProfile\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"payInUsdConfirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"stripeCustomerSessionClientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"customerProfile\":[\"handleCustomerProfileChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"stripeCustomerSessionClientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello\",[[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],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog\",[[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-badge\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-stripe-input\",[[1,\"zonos-stripe-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-card\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32],\"isPaymentInfoFilled\":[32]},null,{\"isPaymentInfoFilled\":[\"watchIsPaymentInfoFilled\"],\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-button_3\",[[17,\"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\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"bold\":[4],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4\",[[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]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_7\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32]},null,{\"isAddressFilled\":[\"isAddressFilledChanged\"],\"stripe\":[\"watchInitStripe\"],\"defaultAddress\":[\"defaultAddressChanged\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[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\"]},[[1,\"click\",\"onClick\"]]],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"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\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}]]],[\"zonos-cart-items_13\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"isTaxIdError\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"isWaitingToRedirect\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
8
+ return bootstrapLazy(JSON.parse("[[\"zonos-checkout\",[[2,\"zonos-checkout\",{\"appearanceSettingsOverride\":[16],\"preview\":[4],\"mobile\":[4],\"overrideStagingMode\":[4,\"override-staging-mode\"],\"defaultAddress\":[16],\"forceDialogOpen\":[4,\"force-dialog-open\"],\"defaultAddressParams\":[32],\"defaultCustomerProfileAddress\":[32],\"customerProfile\":[32],\"open\":[32],\"stripe\":[32],\"submitLoading\":[32],\"collapseReviewMobile\":[32],\"isAttachError\":[32],\"isMobile\":[32],\"isIframed\":[32],\"zonosReviewRef\":[32],\"storybookPaymentStatusOverride\":[32],\"isLegacyCheckout\":[32],\"confirmDialogOpen\":[32],\"isCartExpired\":[32],\"payInUsdConfirmDialogOpen\":[32],\"inventoryCheckErrorMessage\":[32],\"placedOrderInfo\":[32],\"clientSecret\":[32],\"stripeCustomerSessionClientSecret\":[32],\"closeDialogHandler\":[64],\"init\":[64],\"setToFinishStep\":[64],\"mockCheckoutSession\":[64]},[[16,\"zonos--init-cart-info\",\"initCartInfoHandler\"],[4,\"keydown\",\"handleKeyPress\"],[9,\"resize\",\"handleWindowResize\"]],{\"appearanceSettingsOverride\":[\"appearanceSettingsOverrideChanged\",\"handleAppearanceSettingsOverrideChange\"],\"overrideStagingMode\":[\"overrideStagingModeChanged\"],\"mobile\":[\"handleMobileChange\"],\"defaultAddress\":[\"handleAddressChange\"],\"customerProfile\":[\"handleCustomerProfileChange\"],\"clientSecret\":[\"handleClientSecretChange\"],\"stripeCustomerSessionClientSecret\":[\"handleClientSecretChange\"],\"open\":[\"handleOpenChange\"]}]]],[\"zonos-hello\",[[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],\"isHelloWidgetRendered\":[32],\"isMobile\":[32],\"getCountryList\":[64],\"displayCurrency\":[64],\"convertAndFormat\":[64],\"convert\":[64],\"format\":[64],\"openHelloDialog\":[64]},[[9,\"resize\",\"handleResize\"]],{\"appearanceSettingsOverride\":[\"handleAppearanceSettingsOverrideChange\"]}]]],[\"zonos-controller\",[[1,\"zonos-controller\",{\"config\":[16],\"zonosApiKey\":[1,\"zonos-api-key\"],\"initCheckoutElement\":[64],\"setupGoogleFont\":[64],\"showNotification\":[64],\"reset\":[64],\"overrideConfig\":[64],\"overrideCountry\":[64],\"getAppearanceSetting\":[64],\"updateOrganizationName\":[64]},[[8,\"locationchange\",\"handleLocationChange\"]]]]],[\"zonos-tooltip\",[[1,\"zonos-tooltip\",{\"label\":[1],\"subtitle\":[1],\"showTooltip\":[32]}]]],[\"zonos-component\",[[1,\"zonos-component\",{\"first\":[1],\"middle\":[1],\"last\":[1]}]]],[\"zonos-link\",[[1,\"zonos-link\",{\"href\":[1],\"rel\":[1],\"target\":[1],\"linkTitle\":[1,\"link-title\"]}]]],[\"zonos-logo\",[[1,\"zonos-logo\",{\"theme\":[1],\"width\":[1]}]]],[\"zonos-hello-dialog\",[[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-badge\",[[1,\"zonos-badge\",{\"bold\":[4],\"badgeColor\":[1,\"badge-color\"],\"icon\":[16],\"iconRight\":[4,\"icon-right\"],\"size\":[1],\"rounded\":[4],\"loading\":[4],\"dismissHandler\":[16]}]]],[\"zonos-shipping-rich-radio\",[[1,\"zonos-shipping-rich-radio\",{\"items\":[16],\"borderColor\":[1,\"border-color\"],\"borderStyle\":[1,\"border-style\"],\"theme\":[1],\"selectedItem\":[16]}]]],[\"zonos-toggle\",[[1,\"zonos-toggle\",{\"options\":[16],\"value\":[1]}]]],[\"zonos-collapse\",[[1,\"zonos-collapse\",{\"collapsed\":[4],\"collapseSize\":[2,\"collapse-size\"],\"height\":[32],\"iframe\":[32]}]]],[\"zonos-stripe-input\",[[1,\"zonos-stripe-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"zonos-card\",[[1,\"zonos-card\",{\"actions\":[16],\"backgroundColor\":[1,\"background-color\"],\"borderRadius\":[2,\"border-radius\"],\"footerActions\":[16],\"footerContent\":[16],\"footerHeight\":[2,\"footer-height\"],\"label\":[16],\"spacing\":[1]}]]],[\"zonos-input\",[[1,\"zonos-input\",{\"inputValue\":[1,\"input-value\"],\"inputLabel\":[1,\"input-label\"],\"inputSize\":[1,\"input-size\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[32]},null,{\"inputValue\":[\"onInputValueChange\"]}]]],[\"zonos-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"zonos-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"zonos-v-stack\",[[1,\"zonos-v-stack\",{\"spacing\":[2]}]]],[\"zonos-empty-state-payment_4\",[[1,\"zonos-empty-state-payment\",{\"emptyStateText\":[1,\"empty-state-text\"],\"theme\":[1]}],[2,\"zonos-payment\",{\"titleText\":[1,\"title-text\"],\"stripe\":[32],\"stripeElements\":[32],\"isPaymentInfoFilled\":[32]},null,{\"isPaymentInfoFilled\":[\"watchIsPaymentInfoFilled\"],\"stripeElements\":[\"watchInitStripe\"],\"stripe\":[\"watchInitStripe\"]}],[2,\"zonos-paypal-payment\"],[1,\"zonos-notification\",{\"notificationArray\":[32],\"showNotification\":[64]}]]],[\"zonos-button_3\",[[17,\"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\"],\"withBoxShadow\":[4,\"with-box-shadow\"],\"noPaddingLeft\":[4,\"no-padding-left\"],\"noPaddingRight\":[4,\"no-padding-right\"],\"loading\":[4],\"justifyContent\":[1,\"justify-content\"],\"bold\":[4],\"theme\":[1],\"hasIcon\":[32],\"hasContent\":[32]},[[2,\"click\",\"clickHandler\"]],{\"icon\":[\"iconChangeHandler\"]}],[1,\"zonos-spinner\",{\"size\":[2],\"spinnerColor\":[1,\"spinner-color\"]}],[1,\"zonos-icon\",{\"autoHeight\":[4,\"auto-height\"],\"iconColor\":[1,\"icon-color\"],\"content\":[1],\"size\":[2]}]]],[\"zonos-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-select_4\",[[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]}],[2,\"zonos-virtual-scroll\",{\"renderItem\":[16],\"itemWidth\":[2,\"item-width\"],\"fallbackItemHeight\":[2,\"fallback-item-height\"],\"itemHeights\":[16],\"container\":[32],\"scrollTop\":[32],\"totalHeight\":[32]},null,{\"itemHeights\":[\"updateTotalHeight\"],\"fallbackItemHeight\":[\"updateTotalHeight\"]}]]],[\"zonos-address_7\",[[1,\"zonos-address-update-dialog\",{\"continueLoading\":[4,\"continue-loading\"],\"dialogLoading\":[4,\"dialog-loading\"],\"dialogOpen\":[4,\"dialog-open\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"shippingAddress\":[16],\"billingAddress\":[16],\"translatedShippingAddress\":[16],\"translatedBillingAddress\":[16],\"showErrorBanner\":[32],\"translatedShippingAddressState\":[32],\"translatedBillingAddressState\":[32]},null,{\"translatedShippingAddress\":[\"watchTranslatedShippingAddress\"],\"translatedBillingAddress\":[\"watchTranslatedBillingAddress\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32],\"checkoutSessionId\":[32]},null,{\"checkoutSessionId\":[\"isAddressFilledChanged\"],\"isAddressFilled\":[\"isAddressFilledChanged\"],\"stripe\":[\"watchInitStripe\"],\"defaultAddress\":[\"defaultAddressChanged\"]}],[2,\"zonos-link-authentication\",{\"titleText\":[1,\"title-text\"],\"defaultEmail\":[1,\"default-email\"],\"isEmailError\":[4,\"is-email-error\"],\"stripe\":[32],\"isStagingMode\":[32],\"clientSecret\":[32]},null,{\"isStagingMode\":[\"watchIsStagingMode\"],\"stripe\":[\"watchInitStripe\"],\"clientSecret\":[\"watchInitStripe\"],\"defaultEmail\":[\"watchDefaultEmail\"]}],[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\"]},[[1,\"click\",\"onClick\"]]],[1,\"zonos-dialog\",{\"open\":[4],\"headerText\":[1,\"header-text\"],\"width\":[1],\"height\":[1],\"minHeight\":[1,\"min-height\"],\"noHeader\":[4,\"no-header\"],\"noBodyPadding\":[4,\"no-body-padding\"],\"noBorder\":[4,\"no-border\"],\"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\"],[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-address-display\",{\"currentAddress\":[16],\"addressType\":[1,\"address-type\"]}],[1,\"zonos-address-form\",{\"currentAddress\":[16],\"translatedAddress\":[16],\"addressType\":[1,\"address-type\"],\"localAddress\":[32]},null,{\"translatedAddress\":[\"watchCurrentAddress\"]}]]],[\"zonos-cart-items_13\",[[2,\"zonos-customer-info\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"defaultAddress\":[16],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"taxIdErrorMessage\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"isEmailError\":[32]}],[2,\"zonos-checkout-payment\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"isMobile\":[4,\"is-mobile\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"showErrorBanner\":[32],\"hasStripePaymentError\":[32],\"stagingOrderCreateErrorMessage\":[32],\"internalContinueLoading\":[32]},null,{\"continueLoading\":[\"continueLoadingWatcher\"],\"hasStripePaymentError\":[\"stripePaymentErrorWatcher\"]}],[1,\"zonos-checkout-footer\",{\"mobile\":[4],\"dataTheme\":[1,\"data-theme\"],\"showLanguageDialog\":[32],\"isMobile\":[32]},[[4,\"click\",\"handleGlobalClick\"]],{\"mobile\":[\"handleMobileChange\"]}],[2,\"zonos-shipping\",{\"continueLoading\":[4,\"continue-loading\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"submitBtnType\":[1,\"submit-btn-type\"],\"selectedShippingMethod\":[32],\"collapsedDAPOptions\":[32],\"isSelecting\":[32],\"showErrorBanner\":[32],\"serviceLevelsDDP\":[32],\"serviceLevelsDAP\":[32],\"serviceLevelsOther\":[32],\"serviceLevelsAll\":[32],\"displayBaseCurrency\":[32]}],[1,\"zonos-cart-subtotal\",{\"submitBtnType\":[1,\"submit-btn-type\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"loading\":[32]}],[1,\"zonos-cart-restricted-items\",{\"hide\":[4],\"errorImages\":[32],\"internalCollapsed\":[32],\"firstRender\":[32]}],[1,\"zonos-checkout-finish\",{\"borderRadius\":[1,\"border-radius\"],\"storybookForceStatus\":[1,\"storybook-force-status\"],\"overrideNotification\":[16],\"isLoading\":[32],\"notificationType\":[32],\"notificationTitle\":[32],\"notificationMessages\":[32],\"notificationActionText\":[32],\"order\":[32],\"isWaitingToRedirect\":[32]}],[1,\"zonos-confirm-dialog\",{\"dialogTitle\":[1,\"dialog-title\"],\"dialogIntent\":[1,\"dialog-intent\"],\"dialogSubtitle\":[1,\"dialog-subtitle\"],\"submitBtnColor\":[1,\"submit-btn-color\"],\"dialogConfirmBtnText\":[1,\"dialog-confirm-btn-text\"],\"dialogWidth\":[2,\"dialog-width\"],\"dialogCancelBtnText\":[1,\"dialog-cancel-btn-text\"],\"dialogType\":[1,\"dialog-type\"],\"isMobile\":[4,\"is-mobile\"],\"dialogOpen\":[4,\"dialog-open\"],\"noClickOutside\":[4,\"no-click-outside\"]},[[4,\"keydown\",\"handleKeyDown\"]]],[1,\"zonos-checkout-progress-tabs\",{\"tabColor\":[1,\"tab-color\"],\"backgroundColor\":[1,\"background-color\"],\"setTabItems\":[64],\"setTabSelected\":[64]}],[1,\"zonos-review\",{\"mobile\":[4],\"collapsed\":[4],\"isMobile\":[32]},[[9,\"resize\",\"handleWindowResize\"]]],[1,\"zonos-cart-items\",{\"errorImages\":[32]}],[1,\"zonos-currency-toggle\",{\"errorImages\":[32]}],[1,\"zonos-rest-state\",{\"restStateSubtitle\":[1,\"rest-state-subtitle\"],\"restStateTitle\":[1,\"rest-state-title\"],\"restStateType\":[1,\"rest-state-type\"],\"isErrorImageLoad\":[32]}]]]]"), options);
9
9
  };
10
10
 
11
11
  export { defineCustomElements };
@@ -1,5 +1,5 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-d3c5a0a5.js';
2
- import { t as trackConversionEvent, F as validateCheckoutSession, f as stripeStore, e as cartStore, z as stripeStoreHandleInventoryCheck, r as translate, x as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-d2c86d90.js';
2
+ import { t as trackConversionEvent, F as validateCheckoutSession, f as stripeStore, e as cartStore, z as stripeStoreHandleInventoryCheck, r as translate, x as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-3fb04f1f.js';
3
3
  import { h as handleFetch, l as log, b as logError, j as jsonParse } from './handleFetch-621e45bc.js';
4
4
  import { t as tinycolor } from './isDarkColor-446fccb7.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-d82f06f2.js';
2
- import { f as stripeStore, t as trackConversionEvent, V as getFallbackDefaultCountryCode, r as translate, l as localizationStore, e as cartStore } from './cart-d2c86d90.js';
2
+ import { e as cartStore, f as stripeStore, t as trackConversionEvent, V as getFallbackDefaultCountryCode, r as translate, l as localizationStore } from './cart-3fb04f1f.js';
3
3
  import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-d3c5a0a5.js';
4
4
  import { b as logError, l as log, i as isCheckoutMobile } from './handleFetch-621e45bc.js';
5
5
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
@@ -29,6 +29,7 @@ const ZonosAddress = class {
29
29
  this.stripe = window.Zonos.stripe;
30
30
  this.isDirtyAddress = false;
31
31
  this.isAddressFilled = false;
32
+ this.checkoutSessionId = cartStore.checkoutSessionId;
32
33
  }
33
34
  getStripeAddressInstance() {
34
35
  if (this.type === 'billing') {
@@ -55,9 +56,15 @@ const ZonosAddress = class {
55
56
  }
56
57
  }
57
58
  }
58
- isAddressFilledChanged(newIsAddressFilled) {
59
+ isAddressFilledChanged() {
60
+ // Sometimes address elements is loaded with prefilled data before checkout is loaded, need to not send the event if checkout session id is not available, and send the event after checkout is loaded
61
+ if (!cartStore.checkoutSessionId) {
62
+ return;
63
+ }
59
64
  // Only need to track the event if the shipping address is filled
60
- if (newIsAddressFilled && !this.trackingSent && this.type === 'shipping') {
65
+ if (this.isAddressFilled &&
66
+ !this.trackingSent &&
67
+ this.type === 'shipping') {
61
68
  this.trackingSent = true;
62
69
  const checkoutSessionId = cartStore.checkoutSessionId;
63
70
  void trackConversionEvent({
@@ -209,14 +216,16 @@ const ZonosAddress = class {
209
216
  }
210
217
  render() {
211
218
  var _a;
219
+ this.checkoutSessionId = cartStore.checkoutSessionId;
212
220
  if ((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete) {
213
221
  this.isAddressFilled = true;
214
222
  }
215
223
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
216
- return (h(Host, { key: 'b20ecdc4dcb204acf336a0b65dac129c791a40c4', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'f35bfc501fbea097228c46973bce9c0a0d8fe5f9', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), h("div", { key: 'beba8d515a75a9ff31f74c124b6eaa69415ed2b8', class: "zonos--address-component" })));
224
+ return (h(Host, { key: 'f31fc745e5c024dd2b594a26a0a81ebe3a5f8060', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '7b51df49edb4d7abbff9733b1e220771caca7f12', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), h("div", { key: '781cd2076d8319979bb5ed2ea3bb24dfa97f7010', class: "zonos--address-component" })));
217
225
  }
218
226
  get el() { return getElement(this); }
219
227
  static get watchers() { return {
228
+ "checkoutSessionId": ["isAddressFilledChanged"],
220
229
  "isAddressFilled": ["isAddressFilledChanged"],
221
230
  "stripe": ["watchInitStripe"],
222
231
  "defaultAddress": ["defaultAddressChanged"]
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-d82f06f2.js';
2
- import { e as cartStore, E as currencyFormat, r as translate, M as cartStoreHasOneEligibleItem, N as stripeStoreApplyPromoCode, O as stripeStoreRemovePromoCode, f as stripeStore, C as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, Q as stripeStoreMessageBasedOnStatus, l as localizationStore, x as cartStoreNextStep, R as stripeStoreTranslateAddressToLatin, S as cartStoreUpdateSelectedShippingOption, T as cartStoreGetShippingTransitInfo, U as sortServiceLevelOptionsByAmount } from './cart-d2c86d90.js';
2
+ import { e as cartStore, E as currencyFormat, r as translate, M as cartStoreHasOneEligibleItem, N as stripeStoreApplyPromoCode, O as stripeStoreRemovePromoCode, f as stripeStore, C as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, Q as stripeStoreMessageBasedOnStatus, l as localizationStore, x as cartStoreNextStep, R as stripeStoreTranslateAddressToLatin, S as cartStoreUpdateSelectedShippingOption, T as cartStoreGetShippingTransitInfo, U as sortServiceLevelOptionsByAmount } from './cart-3fb04f1f.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-5c0d6407.js';
4
+ import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-1f2e863c.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-d3c5a0a5.js';
6
6
  import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, g as getIsTestMode, d as allLogs, i as isCheckoutMobile, b as logError, a as getIsStagingMode } from './handleFetch-621e45bc.js';
7
7
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
@@ -2198,6 +2198,45 @@ const ZonosCurrencyToggle = class {
2198
2198
  static get assetsDirs() { return ["assets"]; }
2199
2199
  };
2200
2200
 
2201
+ const isTaxIdRequired = (shippingCountry) => {
2202
+ const requireTaxIdCountry = ['MX'];
2203
+ return requireTaxIdCountry.includes(shippingCountry);
2204
+ };
2205
+ const taxIdValidationResult = ({ shippingCountry, taxId, }) => {
2206
+ const taxRequired = isTaxIdRequired(shippingCountry);
2207
+ if (!taxRequired) {
2208
+ return {
2209
+ error: null,
2210
+ valid: true,
2211
+ };
2212
+ }
2213
+ if (!taxId) {
2214
+ return {
2215
+ error: 'Tax id is required',
2216
+ valid: false,
2217
+ };
2218
+ }
2219
+ // validate tax id for mexico;
2220
+ if (shippingCountry === 'MX') {
2221
+ const isValid = /^[A-ZÑ]{3,4}[0-9]{6}[A-Z0-9]{3}$/.test(taxId);
2222
+ if (!isValid) {
2223
+ return {
2224
+ error: 'Invalid RFC format. Must be 12–13 uppercase letters and numbers only.',
2225
+ valid: false,
2226
+ };
2227
+ }
2228
+ return {
2229
+ error: null,
2230
+ valid: true,
2231
+ };
2232
+ }
2233
+ // Other countries doesn't need to validate tax id in the right format
2234
+ return {
2235
+ error: null,
2236
+ valid: true,
2237
+ };
2238
+ };
2239
+
2201
2240
  const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:1}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
2202
2241
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
2203
2242
 
@@ -2280,19 +2319,8 @@ const ZonosCustomerInfo = class {
2280
2319
  if (hasInvalidCharacters) {
2281
2320
  return;
2282
2321
  }
2283
- // submit google tag when the form is complete
2284
- submitGtag('zonos-checkout-customer-info');
2285
- const checkoutSessionId = cartStore.checkoutSessionId;
2286
- void trackConversionEvent({
2287
- checkoutSessionId,
2288
- eventName: 'checkout_customerInfoCompleted',
2289
- });
2290
2322
  this.continueClicked.emit();
2291
2323
  };
2292
- this.isTaxIdRequired = () => {
2293
- const requireTaxIdCountry = ['MX'];
2294
- return requireTaxIdCountry.includes(this.shippingCountry);
2295
- };
2296
2324
  this.handleValidate = () => {
2297
2325
  var _a, _b;
2298
2326
  const stripeShippingAddressEventData = stripeStore.stripeAddressEventData;
@@ -2311,12 +2339,12 @@ const ZonosCustomerInfo = class {
2311
2339
  this.isEmailError = true;
2312
2340
  }
2313
2341
  // validate tax id input if it's required for specific countries, optional otherwise
2314
- const isValidTaxIdInput = !this.isTaxIdRequired() || !!stripeStore.taxId;
2315
- this.isTaxIdError = !isValidTaxIdInput;
2316
- if (!isValidBilling ||
2317
- !isValidShipping ||
2318
- !isValidLink ||
2319
- !isValidTaxIdInput) {
2342
+ const { error, valid } = taxIdValidationResult({
2343
+ shippingCountry: this.shippingCountry,
2344
+ taxId: stripeStore.taxId,
2345
+ });
2346
+ this.taxIdErrorMessage = !valid ? translate(error) : '';
2347
+ if (!isValidBilling || !isValidShipping || !isValidLink || !valid) {
2320
2348
  return false;
2321
2349
  }
2322
2350
  return true;
@@ -2354,7 +2382,7 @@ const ZonosCustomerInfo = class {
2354
2382
  this.shippingCountry = '';
2355
2383
  this.isCheckingForRestrictedItems = false;
2356
2384
  this.isValidatingAddress = false;
2357
- this.isTaxIdError = false;
2385
+ this.taxIdErrorMessage = '';
2358
2386
  this.invalidShippingCharacterList = null;
2359
2387
  this.invalidBillingCharacterList = null;
2360
2388
  this.openAddressValidationDialog = false;
@@ -2401,9 +2429,9 @@ const ZonosCustomerInfo = class {
2401
2429
  return null;
2402
2430
  }
2403
2431
  const taxIdInputInfo = shipToTaxIdLabels[countryCode];
2404
- return (h("div", { class: "zonos--tax-id-input" }, h("zonos-stripe-input", { inputLabel: translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: stripeStore.taxId || '', isError: this.isTaxIdError, onInputChange: (event) => {
2432
+ return (h("div", { class: "zonos--tax-id-input" }, h("zonos-stripe-input", { inputLabel: translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: stripeStore.taxId || '', isError: !!this.taxIdErrorMessage, onInputChange: (event) => {
2405
2433
  stripeStore.taxId = event.detail;
2406
- } }), this.isTaxIdError && (h("zonos-text", { textColor: 'red-600', type: "caption" }, translate('Tax id is required')))));
2434
+ } }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
2407
2435
  }
2408
2436
  render() {
2409
2437
  var _a, _b, _c, _d, _e, _f;
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, F as Fragment } from './index-d82f06f2.js';
2
- import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as stripeStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as cartStoreClearCheckoutInterval, m as stripeStoreInitCheckoutSession, n as stripeStoreGetPaymentIntent, o as cartStoreStartCheckoutInterval, t as trackConversionEvent, p as getCheckoutSessionBody, q as cartStoreUpdateToErrorState, r as translate, u as getZCountryUrlParam, v as cartStoreSetCheckoutSession, w as stripeStorePrefetchLandedCost, x as cartStoreNextStep, y as stripeStoreUpdateCheckoutSessionBaseCurrency, z as stripeStoreHandleInventoryCheck, A as stripeStoreConfirmPayment, B as stripeStoreHandleInventoryRefund, C as stripeStoreReset, D as localizationStoreOnUpdate, E as currencyFormat } from './cart-d2c86d90.js';
3
- import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-5c0d6407.js';
2
+ import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as stripeStore, g as cartStoreUpdateItems, h as cartStoreReset, j as cartStoreResetTabItems, k as cartStoreClearCheckoutInterval, m as stripeStoreInitCheckoutSession, n as stripeStoreGetPaymentIntent, o as cartStoreStartCheckoutInterval, t as trackConversionEvent, p as getCheckoutSessionBody, q as cartStoreUpdateToErrorState, r as translate, u as getZCountryUrlParam, v as cartStoreSetCheckoutSession, w as stripeStorePrefetchLandedCost, x as cartStoreNextStep, y as stripeStoreUpdateCheckoutSessionBaseCurrency, z as stripeStoreHandleInventoryCheck, A as stripeStoreConfirmPayment, B as stripeStoreHandleInventoryRefund, C as stripeStoreReset, D as localizationStoreOnUpdate, E as currencyFormat } from './cart-3fb04f1f.js';
3
+ import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-1f2e863c.js';
4
4
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-d3c5a0a5.js';
5
5
  import { h as handleFetch, l as log, b as logError, s as sendErrorLog, c as getElapsedTime, d as allLogs, e as getAdditionalLogMetadata, g as getIsTestMode, j as jsonParse, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-621e45bc.js';
6
6
  import { c as classes } from './classes-0d95c529.js';
@@ -1051,6 +1051,13 @@ const ZonosCheckout = class {
1051
1051
  cartStoreSetCheckoutSession(session);
1052
1052
  }
1053
1053
  async handleCustomerInfoContinue() {
1054
+ // submit google tag when the form is complete
1055
+ submitGtag('zonos-checkout-customer-info');
1056
+ const checkoutSessionId = cartStore.checkoutSessionId;
1057
+ void trackConversionEvent({
1058
+ checkoutSessionId,
1059
+ eventName: 'checkout_customerInfoCompleted',
1060
+ });
1054
1061
  this.submitLoading = true;
1055
1062
  // fetch landed cost data if we not fetching.
1056
1063
  await stripeStorePrefetchLandedCost();
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-d82f06f2.js';
2
- import { G as isValidSelector, f as stripeStore, H as initLocalizationStore, e as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-d2c86d90.js';
2
+ import { G as isValidSelector, f as stripeStore, H as initLocalizationStore, e as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-3fb04f1f.js';
3
3
  import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-d3c5a0a5.js';
4
4
  import { h as handleFetch, b as logError, l as log } from './handleFetch-621e45bc.js';
5
5
  import './isDarkColor-446fccb7.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-d82f06f2.js';
2
- import { l as localizationStore } from './cart-d2c86d90.js';
2
+ import { l as localizationStore } from './cart-3fb04f1f.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-d3c5a0a5.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import './handleFetch-621e45bc.js';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-d82f06f2.js';
2
- import { a as localizationStoreUpdateSelectedCountryCode, r as translate, l as localizationStore } from './cart-d2c86d90.js';
2
+ import { a as localizationStoreUpdateSelectedCountryCode, r as translate, l as localizationStore } from './cart-3fb04f1f.js';
3
3
  import { d as zonosStoreFontFamily } from './zonosStore-d3c5a0a5.js';
4
4
  import { f as formatStringWithLinks } from './formatStringWithLinks-9e819405.js';
5
5
  import { i as isDarkColor } from './isDarkColor-446fccb7.js';