@zonos/elements 1.3.187 → 1.3.189

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 (156) hide show
  1. package/dist/cjs/TaxId-12acedde.js +94 -0
  2. package/dist/cjs/{cart-f9df3ac8.js → cart-27f6c7a4.js} +60 -0
  3. package/dist/cjs/index.cjs.js +9 -8
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{paypal-5e73c8f5.js → paypal-84d83a76.js} +1 -1
  6. package/dist/cjs/zonos-address_11.cjs.entry.js +61 -4
  7. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +37 -31
  8. package/dist/cjs/zonos-checkout.cjs.entry.js +2 -2
  9. package/dist/cjs/zonos-controller.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-country-select_4.cjs.entry.js +1 -1
  12. package/dist/cjs/zonos-elements.cjs.js +1 -1
  13. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-language-select_2.cjs.entry.js +1 -1
  17. package/dist/cjs/zonos-stripe-input.cjs.entry.js +2 -2
  18. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +14 -28
  19. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +1 -0
  20. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +1 -1
  21. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
  22. package/dist/collection/components/store/translationStore/strings.base.js +3 -0
  23. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
  24. package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
  25. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
  26. package/dist/collection/components/store/translationStore/strings.french.js +3 -0
  27. package/dist/collection/components/store/translationStore/strings.german.js +3 -0
  28. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
  29. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
  30. package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
  31. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
  32. package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
  33. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
  34. package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
  35. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
  36. package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
  37. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
  38. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
  39. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
  40. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
  41. package/dist/collection/components/stripe/zonos-address/zonos-address.js +65 -1
  42. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +50 -2
  43. package/dist/collection/components/utils/taxIdValidationResult.js +23 -2
  44. package/dist/collection/types/checkout/TaxId.js +64 -0
  45. package/dist/esm/TaxId-50d72254.js +90 -0
  46. package/dist/esm/{cart-4725a63b.js → cart-f5c12be6.js} +60 -0
  47. package/dist/esm/index.js +8 -8
  48. package/dist/esm/loader.js +1 -1
  49. package/dist/esm/{paypal-a09943f4.js → paypal-594f49e9.js} +1 -1
  50. package/dist/esm/zonos-address_11.entry.js +61 -4
  51. package/dist/esm/zonos-cart-items_13.entry.js +37 -31
  52. package/dist/esm/zonos-checkout.entry.js +2 -2
  53. package/dist/esm/zonos-controller.entry.js +1 -1
  54. package/dist/esm/zonos-country-flag.entry.js +1 -1
  55. package/dist/esm/zonos-country-select_4.entry.js +1 -1
  56. package/dist/esm/zonos-elements.js +1 -1
  57. package/dist/esm/zonos-empty-state-payment_4.entry.js +2 -2
  58. package/dist/esm/zonos-hello-dialog.entry.js +1 -1
  59. package/dist/esm/zonos-hello.entry.js +1 -1
  60. package/dist/esm/zonos-language-select_2.entry.js +1 -1
  61. package/dist/esm/zonos-stripe-input.entry.js +2 -2
  62. package/dist/esm-es5/TaxId-50d72254.js +1 -0
  63. package/dist/esm-es5/cart-f5c12be6.js +1 -0
  64. package/dist/esm-es5/index.js +1 -1
  65. package/dist/esm-es5/loader.js +1 -1
  66. package/dist/esm-es5/{paypal-a09943f4.js → paypal-594f49e9.js} +1 -1
  67. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  68. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  69. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  70. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  71. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  72. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  73. package/dist/esm-es5/zonos-elements.js +1 -1
  74. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  75. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  76. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  77. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  78. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  79. package/dist/scripts/index.d.ts +21 -0
  80. package/dist/scripts/index.js +1 -1
  81. package/dist/scripts/loadZonos.js +1 -1
  82. package/dist/scripts/zonos.js +1 -1
  83. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +4 -5
  84. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
  85. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
  86. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
  87. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
  88. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
  89. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
  90. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
  91. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
  92. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
  93. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
  94. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
  95. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
  96. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
  97. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
  98. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
  99. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
  100. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
  101. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
  102. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
  103. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
  104. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +13 -0
  105. package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +9 -0
  106. package/dist/types/components/utils/taxIdValidationResult.d.ts +2 -1
  107. package/dist/types/components.d.ts +21 -0
  108. package/dist/types/types/checkout/TaxId.d.ts +123 -1
  109. package/dist/zonos-elements/index.esm.js +1 -1
  110. package/dist/zonos-elements/p-01eda7f2.entry.js +1 -0
  111. package/dist/zonos-elements/p-0252b8e9.system.js +1 -0
  112. package/dist/zonos-elements/p-03bbd1af.entry.js +1 -0
  113. package/dist/zonos-elements/p-04a0e38b.system.entry.js +1 -0
  114. package/dist/zonos-elements/{p-e90cb997.entry.js → p-0dae66d2.entry.js} +1 -1
  115. package/dist/zonos-elements/{p-aaff5dcc.entry.js → p-1146b6e0.entry.js} +1 -1
  116. package/dist/zonos-elements/p-23975acb.system.entry.js +1 -0
  117. package/dist/zonos-elements/p-2b8345d8.system.js +1 -0
  118. package/dist/zonos-elements/{p-04303b56.system.entry.js → p-315d8e78.system.entry.js} +1 -1
  119. package/dist/zonos-elements/{p-175e242e.entry.js → p-3707564c.entry.js} +1 -1
  120. package/dist/zonos-elements/p-3831dab5.system.js +1 -0
  121. package/dist/zonos-elements/{p-341f40c2.system.entry.js → p-3d130579.system.entry.js} +1 -1
  122. package/dist/zonos-elements/{p-0104d3ba.entry.js → p-4d1269a7.entry.js} +1 -1
  123. package/dist/zonos-elements/p-54fdf40b.entry.js +1 -0
  124. package/dist/zonos-elements/{p-de462b9b.js → p-657390e6.js} +2 -2
  125. package/dist/zonos-elements/p-6b361d2b.js +1 -0
  126. package/dist/zonos-elements/{p-fd348fd4.system.entry.js → p-751bfce8.system.entry.js} +1 -1
  127. package/dist/zonos-elements/{p-9a7a9b1c.entry.js → p-77654589.entry.js} +1 -1
  128. package/dist/zonos-elements/{p-e5d081d8.entry.js → p-7bed199d.entry.js} +1 -1
  129. package/dist/zonos-elements/{p-995761ea.system.entry.js → p-83a7ece6.system.entry.js} +1 -1
  130. package/dist/zonos-elements/p-86d29d50.system.entry.js +1 -0
  131. package/dist/zonos-elements/{p-98e4a965.system.entry.js → p-9aa94d71.system.entry.js} +1 -1
  132. package/dist/zonos-elements/{p-818d6f17.entry.js → p-a09f64e1.entry.js} +1 -1
  133. package/dist/zonos-elements/p-d7b5b237.js +1 -0
  134. package/dist/zonos-elements/{p-6fd6af48.system.entry.js → p-db3f6d6e.system.entry.js} +1 -1
  135. package/dist/zonos-elements/{p-70d4d436.entry.js → p-ddc464c4.entry.js} +1 -1
  136. package/dist/zonos-elements/{p-9913c186.system.js → p-e2d45b2e.system.js} +1 -1
  137. package/dist/zonos-elements/p-ea6d87a1.system.js +1 -1
  138. package/dist/zonos-elements/{p-64ea232c.system.entry.js → p-ee99cf66.system.entry.js} +1 -1
  139. package/dist/zonos-elements/{p-9f7b9d66.system.entry.js → p-eeaff898.system.entry.js} +1 -1
  140. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  141. package/package.json +1 -1
  142. package/dist/cjs/TaxId-4632639d.js +0 -29
  143. package/dist/esm/TaxId-915ef042.js +0 -26
  144. package/dist/esm-es5/TaxId-915ef042.js +0 -1
  145. package/dist/esm-es5/cart-4725a63b.js +0 -1
  146. package/dist/zonos-elements/p-12a6b7bd.system.js +0 -1
  147. package/dist/zonos-elements/p-25c47bf9.system.entry.js +0 -1
  148. package/dist/zonos-elements/p-33bdbcfd.entry.js +0 -1
  149. package/dist/zonos-elements/p-36bb3cbb.entry.js +0 -1
  150. package/dist/zonos-elements/p-56b56caa.system.entry.js +0 -1
  151. package/dist/zonos-elements/p-5bd927f2.js +0 -1
  152. package/dist/zonos-elements/p-6b40da70.system.js +0 -1
  153. package/dist/zonos-elements/p-92d83e23.system.entry.js +0 -1
  154. package/dist/zonos-elements/p-961620ae.entry.js +0 -1
  155. package/dist/zonos-elements/p-d6a43167.system.js +0 -1
  156. package/dist/zonos-elements/p-fa6de0f3.js +0 -1
@@ -172,6 +172,9 @@ const stringsArabic = {
172
172
  'Duties, taxes, and fees': {
173
173
  value: 'الرسوم والضرائب والرسوم',
174
174
  },
175
+ 'EORI number': {
176
+ value: 'رقم EORI',
177
+ },
175
178
  Email: {
176
179
  value: 'البريد الإلكتروني',
177
180
  },
@@ -818,6 +821,9 @@ const stringsBase = {
818
821
  'Duties, taxes, and fees': {
819
822
  value: 'Duties, taxes, and fees',
820
823
  },
824
+ 'EORI number': {
825
+ value: 'EORI number',
826
+ },
821
827
  Email: {
822
828
  value: 'Email',
823
829
  },
@@ -1464,6 +1470,9 @@ const stringsChinese = {
1464
1470
  'Duties, taxes, and fees': {
1465
1471
  value: '关税、税款和费用',
1466
1472
  },
1473
+ 'EORI number': {
1474
+ value: 'EORI编号',
1475
+ },
1467
1476
  Email: {
1468
1477
  value: '电子邮件',
1469
1478
  },
@@ -2109,6 +2118,9 @@ const stringsDanish = {
2109
2118
  'Duties, taxes, and fees': {
2110
2119
  value: 'Told, skatter og gebyrer',
2111
2120
  },
2121
+ 'EORI number': {
2122
+ value: 'EORI-nummer',
2123
+ },
2112
2124
  Email: {
2113
2125
  value: 'E-mail',
2114
2126
  },
@@ -2754,6 +2766,9 @@ const stringsDutch = {
2754
2766
  'Duties, taxes, and fees': {
2755
2767
  value: 'Heffingen, belastingen en kosten',
2756
2768
  },
2769
+ 'EORI number': {
2770
+ value: 'EORI-nummer',
2771
+ },
2757
2772
  Email: {
2758
2773
  value: 'E-mail',
2759
2774
  },
@@ -3399,6 +3414,9 @@ const stringsFrench = {
3399
3414
  'Duties, taxes, and fees': {
3400
3415
  value: 'Droits, taxes et frais',
3401
3416
  },
3417
+ 'EORI number': {
3418
+ value: 'Numéro EORI',
3419
+ },
3402
3420
  Email: {
3403
3421
  value: 'Courriel',
3404
3422
  },
@@ -4044,6 +4062,9 @@ const stringsGerman = {
4044
4062
  'Duties, taxes, and fees': {
4045
4063
  value: 'Zölle, Steuern und Gebühren',
4046
4064
  },
4065
+ 'EORI number': {
4066
+ value: 'EORI-Nummer',
4067
+ },
4047
4068
  Email: {
4048
4069
  value: 'E-Mail',
4049
4070
  },
@@ -4689,6 +4710,9 @@ const stringsHebrew = {
4689
4710
  'Duties, taxes, and fees': {
4690
4711
  value: 'מכס, מסים ועמלות',
4691
4712
  },
4713
+ 'EORI number': {
4714
+ value: 'מספר EORI',
4715
+ },
4692
4716
  Email: {
4693
4717
  value: 'דוא"ל',
4694
4718
  },
@@ -5334,6 +5358,9 @@ const stringsIndonesian = {
5334
5358
  'Duties, taxes, and fees': {
5335
5359
  value: 'Bea masuk, pajak, dan biaya',
5336
5360
  },
5361
+ 'EORI number': {
5362
+ value: 'Nomor EORI',
5363
+ },
5337
5364
  Email: {
5338
5365
  value: 'Email',
5339
5366
  },
@@ -5979,6 +6006,9 @@ const stringsItalian = {
5979
6006
  'Duties, taxes, and fees': {
5980
6007
  value: 'Dazi, tasse e spese',
5981
6008
  },
6009
+ 'EORI number': {
6010
+ value: 'Numero EORI',
6011
+ },
5982
6012
  Email: {
5983
6013
  value: 'Email',
5984
6014
  },
@@ -6624,6 +6654,9 @@ const stringsJapanese = {
6624
6654
  'Duties, taxes, and fees': {
6625
6655
  value: '関税、税金、手数料',
6626
6656
  },
6657
+ 'EORI number': {
6658
+ value: 'EORI番号',
6659
+ },
6627
6660
  Email: {
6628
6661
  value: 'メール',
6629
6662
  },
@@ -7269,6 +7302,9 @@ const stringsKorean = {
7269
7302
  'Duties, taxes, and fees': {
7270
7303
  value: '관세, 세금 및 수수료',
7271
7304
  },
7305
+ 'EORI number': {
7306
+ value: 'EORI 번호',
7307
+ },
7272
7308
  Email: {
7273
7309
  value: '이메일',
7274
7310
  },
@@ -7914,6 +7950,9 @@ const stringsNorwegian = {
7914
7950
  'Duties, taxes, and fees': {
7915
7951
  value: 'Avgifter, skatter og gebyrer',
7916
7952
  },
7953
+ 'EORI number': {
7954
+ value: 'EORI-nummer',
7955
+ },
7917
7956
  Email: {
7918
7957
  value: 'E-post',
7919
7958
  },
@@ -8559,6 +8598,9 @@ const stringsPolish = {
8559
8598
  'Duties, taxes, and fees': {
8560
8599
  value: 'Cła, podatki i opłaty',
8561
8600
  },
8601
+ 'EORI number': {
8602
+ value: 'Numer EORI',
8603
+ },
8562
8604
  Email: {
8563
8605
  value: 'Email',
8564
8606
  },
@@ -9204,6 +9246,9 @@ const stringsPortuguese = {
9204
9246
  'Duties, taxes, and fees': {
9205
9247
  value: 'Impostos, taxas e emolumentos',
9206
9248
  },
9249
+ 'EORI number': {
9250
+ value: 'Número EORI',
9251
+ },
9207
9252
  Email: {
9208
9253
  value: 'Email',
9209
9254
  },
@@ -9849,6 +9894,9 @@ const stringsRussian = {
9849
9894
  'Duties, taxes, and fees': {
9850
9895
  value: 'Пошлины, налоги и сборы',
9851
9896
  },
9897
+ 'EORI number': {
9898
+ value: 'Номер EORI',
9899
+ },
9852
9900
  Email: {
9853
9901
  value: 'Электронная почта',
9854
9902
  },
@@ -10494,6 +10542,9 @@ const stringsSpanish = {
10494
10542
  'Duties, taxes, and fees': {
10495
10543
  value: 'Aranceles, impuestos y cuotas',
10496
10544
  },
10545
+ 'EORI number': {
10546
+ value: 'Número EORI',
10547
+ },
10497
10548
  Email: {
10498
10549
  value: 'Correo electrónico',
10499
10550
  },
@@ -11139,6 +11190,9 @@ const stringsSwedish = {
11139
11190
  'Duties, taxes, and fees': {
11140
11191
  value: 'Tull, skatter och avgifter',
11141
11192
  },
11193
+ 'EORI number': {
11194
+ value: 'EORI-nummer',
11195
+ },
11142
11196
  Email: {
11143
11197
  value: 'E-post',
11144
11198
  },
@@ -11784,6 +11838,9 @@ const stringsTurkish = {
11784
11838
  'Duties, taxes, and fees': {
11785
11839
  value: 'Gümrük vergisi, vergiler ve ücretler',
11786
11840
  },
11841
+ 'EORI number': {
11842
+ value: 'EORI numarası',
11843
+ },
11787
11844
  Email: {
11788
11845
  value: 'E-posta',
11789
11846
  },
@@ -12429,6 +12486,9 @@ const stringsVietnamese = {
12429
12486
  'Duties, taxes, and fees': {
12430
12487
  value: 'Thuế, phí và lệ phí',
12431
12488
  },
12489
+ 'EORI number': {
12490
+ value: 'Số EORI',
12491
+ },
12432
12492
  Email: {
12433
12493
  value: 'Email',
12434
12494
  },
package/dist/esm/index.js CHANGED
@@ -2,7 +2,7 @@ import { g as getGenericSettingsOverride, I as IframeService } from './getGeneri
2
2
  import { g as getIsTestMode, a as getIsStagingMode, l as log, h as handleFetch, b as logError } from './handleFetch-621e45bc.js';
3
3
  import { _ as _getIsValidCartId, c as checkoutHiddenBtnSelector } from './CheckoutConfig-5479d192.js';
4
4
  export { c as checkoutHiddenBtnSelector, d as domesticRedirectedBtnSelector } from './CheckoutConfig-5479d192.js';
5
- export { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-915ef042.js';
5
+ export { c as countryRequireTaxId, e as euCountryCodes, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
6
6
 
7
7
  /**
8
8
  * Get the load version and url based on the loadScriptSrc and version
@@ -127,7 +127,7 @@ const getZonosQaUrl = () => {
127
127
  return null;
128
128
  }
129
129
  const qaUrl = extractZonosQaUrl(window.location.href);
130
- const cdnUrl = "https://v1.3.187.js.zonos.com";
130
+ const cdnUrl = "https://v1.3.189.js.zonos.com";
131
131
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
132
132
  if (!qaUrl &&
133
133
  (cdnUrl.includes('test.') ||
@@ -368,10 +368,10 @@ const zonosLoadUrl = (() => {
368
368
  }
369
369
  return null;
370
370
  })();
371
- const ZONOS_URL = "https://v1.3.187.js.zonos.com";
372
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.187";
373
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.187";
374
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.187";
371
+ const ZONOS_URL = "https://v1.3.189.js.zonos.com";
372
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.189";
373
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.189";
374
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.189";
375
375
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
376
376
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
377
377
  class Zonos {
@@ -389,7 +389,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
389
389
  ? new URLSearchParams(window.location.search).get('iframeLogType')
390
390
  : null;
391
391
  Zonos.isBigCommerce = false;
392
- Zonos.releaseDate = "1745613545163";
392
+ Zonos.releaseDate = "1745853326551";
393
393
  Zonos.isLegacyCheckout = false;
394
394
  Zonos.domain = typeof window !== 'undefined'
395
395
  ? // domain that embeds the iframe
@@ -407,7 +407,7 @@ Zonos.isNpm = true;
407
407
  Zonos.zonosQaUrl = null;
408
408
  Zonos.zonosQaUrlApi = null;
409
409
  Zonos.trackEventLogs = [];
410
- Zonos.version = `v${"1.3.187"}`;
410
+ Zonos.version = `v${"1.3.189"}`;
411
411
  Zonos.modeAlerted = false;
412
412
  Zonos.cartData = null;
413
413
  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],\"hiddenMode\":[4,\"hidden-mode\"],\"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-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"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-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-stripe-input\",[[2,\"zonos-stripe-input\",{\"name\":[1],\"autoComplete\":[1,\"auto-complete\"],\"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\"],\"error\":[1],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"required\":[4],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"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-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"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-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"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-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_11\",[[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-custom-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32],\"isAddressLine1Entered\":[32],\"addressSuggestions\":[32],\"countryField\":[32],\"startGooglePlaceSuggestions\":[32],\"shipToCountries\":[32],\"shippingZones\":[32],\"city\":[32],\"country\":[32],\"firstName\":[32],\"lastName\":[32],\"line1\":[32],\"line2\":[32],\"phone\":[32],\"postalCode\":[32],\"state\":[32],\"cityError\":[32],\"stateError\":[32],\"postalCodeError\":[32],\"phoneError\":[32],\"firstNameError\":[32],\"lastNameError\":[32],\"isFirstInitialization\":[32],\"addressService\":[32],\"checkoutSessionId\":[32]},null,{\"checkoutSessionId\":[\"isAddressFilledChanged\"],\"isAddressFilled\":[\"isAddressFilledChanged\"],\"defaultAddress\":[\"defaultAddressChanged\"],\"line1\":[\"line1Changed\"],\"city\":[\"formFieldsChanged\"],\"country\":[\"formFieldsChanged\"],\"firstName\":[\"formFieldsChanged\"],\"lastName\":[\"formFieldsChanged\"],\"line2\":[\"formFieldsChanged\"],\"phone\":[\"formFieldsChanged\"],\"postalCode\":[\"formFieldsChanged\"],\"state\":[\"formFieldsChanged\"],\"addressService\":[\"shouldEnabledCustomAddressChanged\"],\"shippingZones\":[\"shippingZonesChanged\"]}],[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-address-suggestions\",{\"type\":[1],\"suggestions\":[16],\"selectedSuggestionId\":[32],\"localSuggestions\":[32],\"lastHoveredSuggestionId\":[32]},null,{\"suggestions\":[\"suggestionsChanged\"]}],[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\"]]],[2,\"zonos-stripe-phone-input\",{\"autoComplete\":[1,\"auto-complete\"],\"countryOptions\":[16],\"disabled\":[4],\"error\":[1],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"inputValue\":[1,\"input-value\"],\"countryCode\":[1,\"country-code\"],\"minWidth\":[1,\"min-width\"],\"selectedCountry\":[32],\"phoneNumber\":[32],\"isFocused\":[32],\"isSelectOpen\":[32]},null,{\"countryOptions\":[\"onCountryOptionsChange\"],\"selectedCountry\":[\"onSelectedCountryChange\"],\"inputValue\":[\"onPhoneNumberChange\"]}],[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\"]}],[1,\"zonos-stripe-select\",{\"name\":[1],\"selectedValue\":[1,\"selected-value\"],\"selectLabel\":[1,\"select-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"error\":[1],\"selectPlaceholder\":[1,\"select-placeholder\"],\"options\":[16],\"autoComplete\":[1,\"auto-complete\"],\"value\":[1025],\"required\":[4],\"isClearable\":[4,\"is-clearable\"],\"minWidth\":[1,\"min-width\"],\"internalValue\":[32],\"internalOptions\":[32]},null,{\"options\":[\"onOptionsChange\"],\"selectedValue\":[\"onSelectedValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"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],\"shouldUseCustomAddressFormOverride\":[4,\"should-use-custom-address-form-override\"],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"taxIdErrorMessage\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"shouldEnabledCustomAddress\":[32],\"isEmailError\":[32]},null,{\"showErrorBanner\":[\"watchShowErrorBanner\"]}],[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],\"hiddenMode\":[4,\"hidden-mode\"],\"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-text\",[[1,\"zonos-text\",{\"textColor\":[1,\"text-color\"],\"size\":[1],\"type\":[1],\"weight\":[2],\"ready\":[32]}]]],[\"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-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-stripe-input\",[[2,\"zonos-stripe-input\",{\"name\":[1],\"autoComplete\":[1,\"auto-complete\"],\"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\"],\"error\":[1],\"inputPlaceholder\":[1,\"input-placeholder\"],\"value\":[1025],\"required\":[4],\"internalValue\":[32]},null,{\"inputValue\":[\"onInputValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"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-banner\",[[1,\"zonos-banner\",{\"bannerTitle\":[1,\"banner-title\"],\"intent\":[1],\"hasContent\":[32]}]]],[\"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-language-select_2\",[[1,\"zonos-language-select\",{\"handleOnClose\":[16]}],[1,\"zonos-select-dialog-header\",{\"handleOnClose\":[16],\"label\":[1]}]]],[\"zonos-country-flag\",[[1,\"zonos-country-flag\",{\"countryCode\":[1,\"country-code\"],\"size\":[2]}]]],[\"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-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_11\",[[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-custom-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"taxIdErrorMessage\":[1,\"tax-id-error-message\"],\"stripe\":[32],\"isDirtyAddress\":[32],\"isAddressFilled\":[32],\"isAddressLine1Entered\":[32],\"addressSuggestions\":[32],\"countryField\":[32],\"startGooglePlaceSuggestions\":[32],\"shipToCountries\":[32],\"shippingZones\":[32],\"city\":[32],\"country\":[32],\"firstName\":[32],\"lastName\":[32],\"line1\":[32],\"line2\":[32],\"phone\":[32],\"postalCode\":[32],\"state\":[32],\"cityError\":[32],\"stateError\":[32],\"postalCodeError\":[32],\"phoneError\":[32],\"firstNameError\":[32],\"lastNameError\":[32],\"isFirstInitialization\":[32],\"addressService\":[32],\"checkoutSessionId\":[32]},null,{\"checkoutSessionId\":[\"isAddressFilledChanged\"],\"isAddressFilled\":[\"isAddressFilledChanged\"],\"defaultAddress\":[\"defaultAddressChanged\"],\"line1\":[\"line1Changed\"],\"city\":[\"formFieldsChanged\"],\"country\":[\"formFieldsChanged\"],\"firstName\":[\"formFieldsChanged\"],\"lastName\":[\"formFieldsChanged\"],\"line2\":[\"formFieldsChanged\"],\"phone\":[\"formFieldsChanged\"],\"postalCode\":[\"formFieldsChanged\"],\"state\":[\"formFieldsChanged\"],\"addressService\":[\"shouldEnabledCustomAddressChanged\"],\"shippingZones\":[\"shippingZonesChanged\"]}],[2,\"zonos-address\",{\"type\":[1],\"titleText\":[1,\"title-text\"],\"defaultAddress\":[16],\"taxIdErrorMessage\":[1,\"tax-id-error-message\"],\"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-address-suggestions\",{\"type\":[1],\"suggestions\":[16],\"selectedSuggestionId\":[32],\"localSuggestions\":[32],\"lastHoveredSuggestionId\":[32]},null,{\"suggestions\":[\"suggestionsChanged\"]}],[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\"]]],[2,\"zonos-stripe-phone-input\",{\"autoComplete\":[1,\"auto-complete\"],\"countryOptions\":[16],\"disabled\":[4],\"error\":[1],\"inputLabel\":[1,\"input-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"inputValue\":[1,\"input-value\"],\"countryCode\":[1,\"country-code\"],\"minWidth\":[1,\"min-width\"],\"selectedCountry\":[32],\"phoneNumber\":[32],\"isFocused\":[32],\"isSelectOpen\":[32]},null,{\"countryOptions\":[\"onCountryOptionsChange\"],\"selectedCountry\":[\"onSelectedCountryChange\"],\"inputValue\":[\"onPhoneNumberChange\"]}],[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\"]}],[1,\"zonos-stripe-select\",{\"name\":[1],\"selectedValue\":[1,\"selected-value\"],\"selectLabel\":[1,\"select-label\"],\"overridePrimaryColor\":[1,\"override-primary-color\"],\"overrideSecondaryColor\":[1,\"override-secondary-color\"],\"isDisabled\":[4,\"is-disabled\"],\"isError\":[4,\"is-error\"],\"error\":[1],\"selectPlaceholder\":[1,\"select-placeholder\"],\"options\":[16],\"autoComplete\":[1,\"auto-complete\"],\"value\":[1025],\"required\":[4],\"isClearable\":[4,\"is-clearable\"],\"minWidth\":[1,\"min-width\"],\"internalValue\":[32],\"internalOptions\":[32]},null,{\"options\":[\"onOptionsChange\"],\"selectedValue\":[\"onSelectedValueChange\"],\"value\":[\"onValueChange\"]}]]],[\"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],\"shouldUseCustomAddressFormOverride\":[4,\"should-use-custom-address-form-override\"],\"showErrorBanner\":[32],\"shippingCountry\":[32],\"isCheckingForRestrictedItems\":[32],\"isValidatingAddress\":[32],\"taxIdErrorMessage\":[32],\"invalidShippingCharacterList\":[32],\"invalidBillingCharacterList\":[32],\"openAddressValidationDialog\":[32],\"shouldEnabledCustomAddress\":[32],\"isEmailError\":[32],\"recordedFormTypeUsed\":[32]},null,{\"showErrorBanner\":[\"watchShowErrorBanner\"]}],[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-1ce34e04.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-4725a63b.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-f5c12be6.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-62cbddb5.js';
5
5
 
@@ -1,7 +1,8 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-a457c60c.js';
2
- import { e as cartStore, f as stripeStore, t as trackConversionEvent, V as getFallbackDefaultCountryCode, r as translate, l as localizationStore } from './cart-4725a63b.js';
2
+ import { e as cartStore, f as stripeStore, t as trackConversionEvent, V as getFallbackDefaultCountryCode, r as translate, l as localizationStore } from './cart-f5c12be6.js';
3
3
  import { z as zonosStore, d as zonosStoreFontFamily, f as isObject_1 } from './zonosStore-1ce34e04.js';
4
4
  import { b as logError, l as log, i as isCheckoutMobile } from './handleFetch-621e45bc.js';
5
+ import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
5
6
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
6
7
  import { c as classes } from './classes-0d95c529.js';
7
8
  import { g as getBorderRadius } from './getBorderRadius-a9a48f79.js';
@@ -17,6 +18,7 @@ const ZonosAddress$1 = class {
17
18
  constructor(hostRef) {
18
19
  registerInstance(this, hostRef);
19
20
  this.invalidCharacters = createEvent(this, "invalidCharacters", 7);
21
+ this.taxIdChanged = createEvent(this, "taxIdChanged", 7);
20
22
  /**
21
23
  * Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
22
24
  */
@@ -28,6 +30,7 @@ const ZonosAddress$1 = class {
28
30
  this.type = undefined;
29
31
  this.titleText = undefined;
30
32
  this.defaultAddress = [];
33
+ this.taxIdErrorMessage = '';
31
34
  this.stripe = window.Zonos.stripe;
32
35
  this.isDirtyAddress = false;
33
36
  this.isAddressFilled = false;
@@ -187,6 +190,33 @@ const ZonosAddress$1 = class {
187
190
  }
188
191
  void this.watchInitStripe();
189
192
  }
193
+ isInTaxIdCountry(countryCode) {
194
+ return countryRequireTaxId.includes(countryCode);
195
+ }
196
+ /**
197
+ * Render tax id input based on ship to country code
198
+ */
199
+ renderTaxIdInput() {
200
+ var _a;
201
+ // No need to render tax id input for billing address
202
+ if (this.type === 'billing') {
203
+ return null;
204
+ }
205
+ const countryCode = (_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country;
206
+ // Don't render tax id input if the country is not provided
207
+ if (!countryCode) {
208
+ return null;
209
+ }
210
+ const isCountryRequireTaxId = this.isInTaxIdCountry(countryCode);
211
+ if (!isCountryRequireTaxId) {
212
+ return null;
213
+ }
214
+ const taxIdInputInfo = shipToTaxIdLabels[countryCode];
215
+ 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) => {
216
+ stripeStore.taxId = event.detail;
217
+ this.taxIdChanged.emit(event.detail);
218
+ } }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
219
+ }
190
220
  renderCompanyNameInput() {
191
221
  var _a;
192
222
  // No need to render company name for billing address
@@ -223,7 +253,7 @@ const ZonosAddress$1 = class {
223
253
  this.isAddressFilled = true;
224
254
  }
225
255
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
226
- return (h(Host, { key: '89bb6f1ba14507b1e40ae8fff9a01050c3ac4686', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'd93eb2a0fd3b7aeadfd9c8cdf9190d769042533a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), h("div", { key: '3d72d447b9ae884c1ec7b6f412a1cad0e78c989c', class: "zonos--address-component" })));
256
+ return (h(Host, { key: '603d9b20415c68a3337316d5882b931870546b91', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'bf50ebdb5d923bb0f394d021cd1bc4efbde0137e', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '8712b6649822782ec450fe040acc29eb4ca21ed3', class: "zonos--address-component" })));
227
257
  }
228
258
  get el() { return getElement(this); }
229
259
  static get watchers() { return {
@@ -911,6 +941,7 @@ const ZonosAddress = class {
911
941
  this.type = undefined;
912
942
  this.titleText = undefined;
913
943
  this.defaultAddress = [];
944
+ this.taxIdErrorMessage = '';
914
945
  this.stripe = window.Zonos.stripe;
915
946
  this.isDirtyAddress = false;
916
947
  this.isAddressFilled = false;
@@ -1015,6 +1046,32 @@ const ZonosAddress = class {
1015
1046
  const hasErrors = line1 || postalCode || state || city || firstName || lastName || phone;
1016
1047
  return !hasErrors;
1017
1048
  }
1049
+ isInTaxIdCountry(countryCode) {
1050
+ return countryRequireTaxId.includes(countryCode);
1051
+ }
1052
+ /**
1053
+ * Render tax id input based on ship to country code
1054
+ */
1055
+ renderTaxIdInput() {
1056
+ var _a;
1057
+ // No need to render tax id input for billing address
1058
+ if (this.type === 'billing') {
1059
+ return null;
1060
+ }
1061
+ const countryCode = (_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country;
1062
+ // Don't render tax id input if the country is not provided
1063
+ if (!countryCode) {
1064
+ return null;
1065
+ }
1066
+ const isCountryRequireTaxId = this.isInTaxIdCountry(countryCode);
1067
+ if (!isCountryRequireTaxId) {
1068
+ return null;
1069
+ }
1070
+ const taxIdInputInfo = shipToTaxIdLabels[countryCode];
1071
+ return (h("div", { class: "zonos--tax-id-input" }, h("zonos-stripe-input", { error: this.taxIdErrorMessage, inputLabel: translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: stripeStore.taxId || '', isError: !!this.taxIdErrorMessage, onInputChange: (event) => {
1072
+ stripeStore.taxId = event.detail;
1073
+ } })));
1074
+ }
1018
1075
  renderCompanyNameInput() {
1019
1076
  var _a;
1020
1077
  // No need to render company name for billing address
@@ -1500,10 +1557,10 @@ const ZonosAddress = class {
1500
1557
  this.country = localizationStore.selectedCountryCode;
1501
1558
  }
1502
1559
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
1503
- return (h(Host, { key: '9e681487105fcb1b24173a72d491d874b66a51bb', class: classes([
1560
+ return (h(Host, { key: '1d80f8ffc85a27a7630fcc883d0bd9e8b7973d95', class: classes([
1504
1561
  'zonos--address zonos--elements',
1505
1562
  `zonos--${this.type}-address`,
1506
- ]) }, h("zonos-text", { key: '4712893040c7b88590048c0d1d636fa331cdcc66', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderCustomAddressForm()));
1563
+ ]) }, h("zonos-text", { key: '6f0bde17ecda83d01cdb8576df4a03a226921db8', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1507
1564
  }
1508
1565
  get el() { return getElement(this); }
1509
1566
  static get watchers() { return {
@@ -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-a457c60c.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-4725a63b.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-f5c12be6.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-a09943f4.js';
4
+ import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-594f49e9.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-1ce34e04.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';
@@ -10,7 +10,7 @@ import { l as languages } from './ILanguage-cd6acb72.js';
10
10
  import { i as isDarkColor, t as tinycolor } from './isDarkColor-62cbddb5.js';
11
11
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
12
12
  import { c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
13
- import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-915ef042.js';
13
+ import { e as euCountryCodes } from './TaxId-50d72254.js';
14
14
 
15
15
  const getDisplayCurrency = () => {
16
16
  var _a, _b;
@@ -2199,10 +2199,11 @@ const ZonosCurrencyToggle = class {
2199
2199
  };
2200
2200
 
2201
2201
  const isTaxIdRequired = (shippingCountry) => {
2202
- const requireTaxIdCountry = ['MX'];
2202
+ const requireTaxIdCountry = ['MX', ...euCountryCodes];
2203
2203
  return requireTaxIdCountry.includes(shippingCountry);
2204
2204
  };
2205
- const taxIdValidationResult = ({ shippingCountry, taxId, }) => {
2205
+ const taxIdValidationResult = ({ companyName, shippingCountry, taxId, }) => {
2206
+ // Check to see if we are required to collect tax id for the shipping country or not
2206
2207
  const taxRequired = isTaxIdRequired(shippingCountry);
2207
2208
  if (!taxRequired) {
2208
2209
  return {
@@ -2210,6 +2211,25 @@ const taxIdValidationResult = ({ shippingCountry, taxId, }) => {
2210
2211
  valid: true,
2211
2212
  };
2212
2213
  }
2214
+ // For GB, tax id is not required if company name is not filled (not business address)
2215
+ if (shippingCountry === 'GB') {
2216
+ if (!companyName) {
2217
+ return {
2218
+ error: null,
2219
+ valid: true,
2220
+ };
2221
+ }
2222
+ if (!taxId) {
2223
+ return {
2224
+ error: 'Tax id is required',
2225
+ valid: false,
2226
+ };
2227
+ }
2228
+ return {
2229
+ error: null,
2230
+ valid: true,
2231
+ };
2232
+ }
2213
2233
  if (!taxId) {
2214
2234
  return {
2215
2235
  error: 'Tax id is required',
@@ -2399,6 +2419,7 @@ const ZonosCustomerInfo = class {
2399
2419
  log('==> isValidLink', 'info', isValidLink);
2400
2420
  // validate tax id input if it's required for specific countries, optional otherwise
2401
2421
  const { error, valid } = taxIdValidationResult({
2422
+ companyName: stripeStore.companyName,
2402
2423
  shippingCountry: this.shippingCountry,
2403
2424
  taxId: stripeStore.taxId,
2404
2425
  });
@@ -2446,10 +2467,13 @@ const ZonosCustomerInfo = class {
2446
2467
  }
2447
2468
  // Only use the default address for shipping address
2448
2469
  const defaultAddress = type === 'shipping' ? this.defaultAddress : [];
2449
- const shouldUseCustomAddressForm = localizationStore.selectedCountryCode &&
2470
+ const shouldUseCustomAddressForm = !!localizationStore.selectedCountryCode &&
2450
2471
  this.shouldEnabledCustomAddress &&
2451
- ((_b = (_a = zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.countryCustomAddressEnabled) === null || _b === void 0 ? void 0 : _b.includes(localizationStore.selectedCountryCode));
2452
- if (type === 'shipping' && cartStore.checkoutSessionId) {
2472
+ !!((_b = (_a = zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.countryCustomAddressEnabled) === null || _b === void 0 ? void 0 : _b.includes(localizationStore.selectedCountryCode));
2473
+ // Should only record the form type used once
2474
+ if (type === 'shipping' &&
2475
+ cartStore.checkoutSessionId &&
2476
+ !this.recordedFormTypeUsed) {
2453
2477
  void handleFetch('/api/zonos-elements/update-checkout-session-metadata', {
2454
2478
  body: {
2455
2479
  id: cartStore.checkoutSessionId,
@@ -2462,13 +2486,14 @@ const ZonosCustomerInfo = class {
2462
2486
  },
2463
2487
  method: 'POST',
2464
2488
  });
2489
+ this.recordedFormTypeUsed = true;
2465
2490
  }
2466
2491
  // Render custom address component if the custom address form is enabled
2467
2492
  if (shouldUseCustomAddressForm) {
2468
- return (h("zonos-custom-address", { defaultAddress: defaultAddress, titleText: translate('Address'), type: type }));
2493
+ return (h("zonos-custom-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate('Address'), type: type }));
2469
2494
  }
2470
2495
  // Render Stripe address component by default
2471
- return (h("zonos-address", { defaultAddress: defaultAddress, titleText: translate('Address'), type: type }));
2496
+ return (h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translate('Address'), type: type }));
2472
2497
  };
2473
2498
  this.continueLoading = false;
2474
2499
  this.submitBtnType = undefined;
@@ -2486,6 +2511,7 @@ const ZonosCustomerInfo = class {
2486
2511
  this.openAddressValidationDialog = false;
2487
2512
  this.shouldEnabledCustomAddress = false;
2488
2513
  this.isEmailError = false;
2514
+ this.recordedFormTypeUsed = false;
2489
2515
  }
2490
2516
  watchShowErrorBanner() {
2491
2517
  // start validate on typing after error banner is shown, and hide it if the form is complete
@@ -2518,26 +2544,6 @@ const ZonosCustomerInfo = class {
2518
2544
  }
2519
2545
  return invalidList;
2520
2546
  }
2521
- isInTaxIdCountry(countryCode) {
2522
- return countryRequireTaxId.includes(countryCode);
2523
- }
2524
- /**
2525
- * Render tax id input based on ship to country code
2526
- */
2527
- renderTaxIdInput(countryCode) {
2528
- // Don't render tax id input if the country is not provided
2529
- if (!countryCode) {
2530
- return null;
2531
- }
2532
- const isCountryRequireTaxId = this.isInTaxIdCountry(countryCode);
2533
- if (!isCountryRequireTaxId) {
2534
- return null;
2535
- }
2536
- const taxIdInputInfo = shipToTaxIdLabels[countryCode];
2537
- 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) => {
2538
- stripeStore.taxId = event.detail;
2539
- } }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
2540
- }
2541
2547
  render() {
2542
2548
  var _a, _b, _c, _d, _e, _f, _g;
2543
2549
  if (!stripeStore.stripeElements) {
@@ -2565,7 +2571,7 @@ const ZonosCustomerInfo = class {
2565
2571
  const defaultEmail = ((_c = this.defaultAddress.find(Boolean)) === null || _c === void 0 ? void 0 : _c.email) ||
2566
2572
  ((_f = (_e = (_d = stripeStore.customerProfile) === null || _d === void 0 ? void 0 : _d.locations) === null || _e === void 0 ? void 0 : _e.find(Boolean)) === null || _f === void 0 ? void 0 : _f.email) ||
2567
2573
  ((_g = stripeStore.customerProfile) === null || _g === void 0 ? void 0 : _g.email);
2568
- return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), this.renderAddressComponent('shipping'), this.renderTaxIdInput(this.shippingCountry), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
2574
+ return (h(Host, { class: "zonos--customer-info zonos--elements" }, h("div", { class: "zonos--group" }, h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, translate('Customer information')), this.showErrorBanner && (h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, translate('Missing required fields. Make sure all fields are completed.'))), h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: translate('Contact') }), this.renderAddressComponent('shipping'), h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: stripeStore.stripeShippingSameAsBilling, label: translate('Shipping address same as billing'), onCheckboxSelected: e => {
2569
2575
  stripeStore.stripeShippingSameAsBilling = e.detail;
2570
2576
  } }), h("zonos-collapse", { collapsed: !showBilling }, this.renderAddressComponent('billing')), h("div", { class: "zonos--group-btn" }, h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
2571
2577
  // use primary type when on mobile mode
@@ -1,6 +1,6 @@
1
1
  import { r as registerInstance, h, H as Host, F as Fragment } from './index-a457c60c.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-4725a63b.js';
3
- import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-a09943f4.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-f5c12be6.js';
3
+ import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript, b as paypalStore } from './paypal-594f49e9.js';
4
4
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-1ce34e04.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';