@zonos/elements 1.3.230 → 1.3.232

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 (350) hide show
  1. package/dist/cjs/{cart-ad82a680.js → cart-bc615014.js} +9 -5
  2. package/dist/cjs/{debounce-2c9f3f1e.js → debounce-815d1517.js} +1 -1
  3. package/dist/cjs/{getBorderRadius-c7d9f676.js → getBorderRadius-2ef1170d.js} +1 -1
  4. package/dist/cjs/hasInclusivePrice-84145546.js +24 -0
  5. package/dist/cjs/{index-1c710d00.js → index-69fa8852.js} +352 -4
  6. package/dist/cjs/index.cjs.js +7 -7
  7. package/dist/cjs/{isDarkColor-994c38e4.js → isDarkColor-878e600e.js} +1 -1
  8. package/dist/cjs/loader.cjs.js +2 -2
  9. package/dist/cjs/{localization-31e3dfe3.js → localization-39516612.js} +119 -31
  10. package/dist/cjs/{paypal-88b5e878.js → paypal-1d6f1a71.js} +5 -5
  11. package/dist/cjs/{placeTestOrder-6aefbf9c.js → placeTestOrder-a5469e40.js} +11 -7
  12. package/dist/cjs/{renderFallback-87c908ad.js → renderFallback-c2576fbe.js} +4 -4
  13. package/dist/cjs/{translationStore-b8b25e9d.js → translationStore-08d3ff9c.js} +602 -362
  14. package/dist/cjs/{updateCheckoutSessionAttributes-a4899e90.js → updateCheckoutSessionAttributes-3a1db9de.js} +1 -1
  15. package/dist/cjs/zonos-address_11.cjs.entry.js +31 -15
  16. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  17. package/dist/cjs/zonos-banner_2.cjs.entry.js +3 -3
  18. package/dist/cjs/zonos-button_3.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +193 -25
  20. package/dist/cjs/zonos-checkout.cjs.entry.js +14 -11
  21. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -7
  23. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +10 -10
  24. package/dist/cjs/zonos-collect.cjs.entry.js +9 -9
  25. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +4 -4
  27. package/dist/cjs/zonos-controller.cjs.entry.js +16 -9
  28. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  29. package/dist/cjs/zonos-country-select_4.cjs.entry.js +12 -9
  30. package/dist/cjs/zonos-elements.cjs.js +2 -2
  31. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +9 -9
  32. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +57 -47
  33. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  34. package/dist/cjs/zonos-input.cjs.entry.js +3 -3
  35. package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
  36. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  37. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  38. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  39. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  40. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  41. package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
  42. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  43. package/dist/cjs/{zonosStore-5d489c65.js → zonosStore-37a4b4f4.js} +1 -1
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +68 -7
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +4 -0
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +115 -6
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +2 -1
  49. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +7 -4
  50. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +54 -43
  51. package/dist/collection/components/main/zonos-controller.js +5 -2
  52. package/dist/collection/components/store/hello/localization.js +47 -16
  53. package/dist/collection/components/store/translationStore/strings.arabic.js +30 -18
  54. package/dist/collection/components/store/translationStore/strings.base.js +30 -18
  55. package/dist/collection/components/store/translationStore/strings.chinese.js +30 -18
  56. package/dist/collection/components/store/translationStore/strings.danish.js +30 -18
  57. package/dist/collection/components/store/translationStore/strings.dutch.js +30 -18
  58. package/dist/collection/components/store/translationStore/strings.french.js +30 -18
  59. package/dist/collection/components/store/translationStore/strings.german.js +30 -18
  60. package/dist/collection/components/store/translationStore/strings.hebrew.js +30 -18
  61. package/dist/collection/components/store/translationStore/strings.indonesian.js +30 -18
  62. package/dist/collection/components/store/translationStore/strings.italian.js +30 -18
  63. package/dist/collection/components/store/translationStore/strings.japanese.js +30 -18
  64. package/dist/collection/components/store/translationStore/strings.korean.js +30 -18
  65. package/dist/collection/components/store/translationStore/strings.norwegian.js +30 -18
  66. package/dist/collection/components/store/translationStore/strings.polish.js +30 -18
  67. package/dist/collection/components/store/translationStore/strings.portuguese.js +30 -18
  68. package/dist/collection/components/store/translationStore/strings.russian.js +30 -18
  69. package/dist/collection/components/store/translationStore/strings.spanish.js +30 -18
  70. package/dist/collection/components/store/translationStore/strings.swedish.js +30 -18
  71. package/dist/collection/components/store/translationStore/strings.turkish.js +30 -18
  72. package/dist/collection/components/store/translationStore/strings.vietnamese.js +30 -18
  73. package/dist/collection/components/store/translationStore.js +1 -1
  74. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  75. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  76. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  77. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +18 -2
  78. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  79. package/dist/collection/components/utils/api/{getInclusivePricing.js → getInclusivePriceConfigurations.js} +1 -1
  80. package/dist/collection/components/utils/api/getLocalization.js +2 -5
  81. package/dist/collection/components/utils/api/getZonosSettings.js +5 -0
  82. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +6 -0
  83. package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -5
  84. package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +4 -1
  85. package/dist/collection/components/utils/getOverridenZCountry.js +11 -0
  86. package/dist/collection/components/utils/hasInclusivePrice.js +10 -0
  87. package/dist/collection/components/utils/hello/currencyConversion/applyInclusiveEffectiveRate.js +10 -0
  88. package/dist/collection/components/utils/hello/currencyConversion/applyInclusivePrice.js +39 -0
  89. package/dist/collection/components/utils/hello/currencyConversion/calculateInclusivePrice.js +32 -0
  90. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +11 -6
  91. package/dist/collection/constants/key.js +9 -0
  92. package/dist/collection/types/InclusivePricing.js +1 -0
  93. package/dist/collection/types/InputFieldLabel.js +1 -0
  94. package/dist/collection/types/generated/graphql.internal.types.js +574 -3
  95. package/dist/collection/types/index.js +1 -0
  96. package/dist/collection/utils/performBlurCurrency.js +38 -5
  97. package/dist/esm/{cart-c74f9aaa.js → cart-14f305b3.js} +9 -5
  98. package/dist/esm/{debounce-f081e4d8.js → debounce-c4785346.js} +1 -1
  99. package/dist/esm/{getBorderRadius-6281d902.js → getBorderRadius-877f6389.js} +1 -1
  100. package/dist/esm/hasInclusivePrice-0eda8ba9.js +20 -0
  101. package/dist/esm/{index-55a03023.js → index-0bbe9693.js} +352 -4
  102. package/dist/esm/index.js +7 -7
  103. package/dist/esm/{isDarkColor-83e0c27e.js → isDarkColor-9ddd90cc.js} +1 -1
  104. package/dist/esm/loader.js +3 -3
  105. package/dist/esm/{localization-106476cb.js → localization-c5029ffc.js} +118 -32
  106. package/dist/esm/{paypal-bf3a2bdd.js → paypal-fded8844.js} +5 -5
  107. package/dist/esm/{placeTestOrder-891295e8.js → placeTestOrder-2250f719.js} +11 -7
  108. package/dist/esm/{renderFallback-ce0e238a.js → renderFallback-dbf1e3ae.js} +4 -4
  109. package/dist/esm/{translationStore-766b7521.js → translationStore-690c4e04.js} +602 -362
  110. package/dist/esm/{updateCheckoutSessionAttributes-160720f6.js → updateCheckoutSessionAttributes-047a6cd4.js} +1 -1
  111. package/dist/esm/zonos-address_11.entry.js +31 -15
  112. package/dist/esm/zonos-badge.entry.js +2 -2
  113. package/dist/esm/zonos-banner_2.entry.js +3 -3
  114. package/dist/esm/zonos-button_3.entry.js +4 -4
  115. package/dist/esm/zonos-cart-items_13.entry.js +193 -25
  116. package/dist/esm/zonos-checkout.entry.js +14 -11
  117. package/dist/esm/zonos-collapse.entry.js +2 -2
  118. package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -7
  119. package/dist/esm/zonos-collect-finish_6.entry.js +10 -10
  120. package/dist/esm/zonos-collect.entry.js +9 -9
  121. package/dist/esm/zonos-component.entry.js +1 -1
  122. package/dist/esm/zonos-confirm-dialog_2.entry.js +4 -4
  123. package/dist/esm/zonos-controller.entry.js +16 -9
  124. package/dist/esm/zonos-country-flag.entry.js +4 -4
  125. package/dist/esm/zonos-country-select_4.entry.js +12 -9
  126. package/dist/esm/zonos-elements.js +3 -3
  127. package/dist/esm/zonos-empty-state-payment_4.entry.js +9 -9
  128. package/dist/esm/zonos-hello-dialog.entry.js +57 -47
  129. package/dist/esm/zonos-hello.entry.js +5 -5
  130. package/dist/esm/zonos-input.entry.js +3 -3
  131. package/dist/esm/zonos-language-select_2.entry.js +4 -4
  132. package/dist/esm/zonos-logo.entry.js +2 -2
  133. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  134. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  135. package/dist/esm/zonos-text.entry.js +2 -2
  136. package/dist/esm/zonos-toggle.entry.js +2 -2
  137. package/dist/esm/zonos-tooltip.entry.js +1 -1
  138. package/dist/esm/zonos-v-stack.entry.js +2 -2
  139. package/dist/esm/{zonosStore-e3d0493a.js → zonosStore-b434e436.js} +1 -1
  140. package/dist/esm-es5/cart-14f305b3.js +1 -0
  141. package/dist/esm-es5/{debounce-f081e4d8.js → debounce-c4785346.js} +1 -1
  142. package/dist/esm-es5/{getBorderRadius-6281d902.js → getBorderRadius-877f6389.js} +1 -1
  143. package/dist/esm-es5/hasInclusivePrice-0eda8ba9.js +1 -0
  144. package/dist/esm-es5/index-0bbe9693.js +2 -0
  145. package/dist/esm-es5/index.js +1 -1
  146. package/dist/esm-es5/{isDarkColor-83e0c27e.js → isDarkColor-9ddd90cc.js} +1 -1
  147. package/dist/esm-es5/loader.js +1 -1
  148. package/dist/esm-es5/localization-c5029ffc.js +1 -0
  149. package/dist/esm-es5/{paypal-bf3a2bdd.js → paypal-fded8844.js} +1 -1
  150. package/dist/esm-es5/placeTestOrder-2250f719.js +1 -0
  151. package/dist/esm-es5/{renderFallback-ce0e238a.js → renderFallback-dbf1e3ae.js} +1 -1
  152. package/dist/esm-es5/translationStore-690c4e04.js +1 -0
  153. package/dist/esm-es5/{updateCheckoutSessionAttributes-160720f6.js → updateCheckoutSessionAttributes-047a6cd4.js} +1 -1
  154. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  155. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  156. package/dist/esm-es5/zonos-banner_2.entry.js +1 -1
  157. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  158. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  159. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  160. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  161. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  162. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  163. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  164. package/dist/esm-es5/zonos-component.entry.js +1 -1
  165. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -1
  166. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  167. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  168. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  169. package/dist/esm-es5/zonos-elements.js +1 -1
  170. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  171. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  172. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  173. package/dist/esm-es5/zonos-input.entry.js +1 -1
  174. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  175. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  176. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  177. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  178. package/dist/esm-es5/zonos-text.entry.js +1 -1
  179. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  180. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  181. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  182. package/dist/esm-es5/{zonosStore-e3d0493a.js → zonosStore-b434e436.js} +1 -1
  183. package/dist/scripts/blurCurrencyOnInit.js +1 -1
  184. package/dist/scripts/index.d.ts +62 -8
  185. package/dist/scripts/index.js +1 -1
  186. package/dist/scripts/loadZonos.js +1 -1
  187. package/dist/scripts/zonos.js +1 -1
  188. package/dist/types/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.d.ts +2 -0
  189. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +11 -0
  190. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +1 -1
  191. package/dist/types/components/store/checkout/cart.d.ts +3 -0
  192. package/dist/types/components/store/hello/localization.d.ts +14 -3
  193. package/dist/types/components/store/translationStore/strings.arabic.d.ts +27 -15
  194. package/dist/types/components/store/translationStore/strings.base.d.ts +27 -15
  195. package/dist/types/components/store/translationStore/strings.chinese.d.ts +27 -15
  196. package/dist/types/components/store/translationStore/strings.danish.d.ts +27 -15
  197. package/dist/types/components/store/translationStore/strings.dutch.d.ts +27 -15
  198. package/dist/types/components/store/translationStore/strings.french.d.ts +27 -15
  199. package/dist/types/components/store/translationStore/strings.german.d.ts +27 -15
  200. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +27 -15
  201. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +27 -15
  202. package/dist/types/components/store/translationStore/strings.italian.d.ts +27 -15
  203. package/dist/types/components/store/translationStore/strings.japanese.d.ts +27 -15
  204. package/dist/types/components/store/translationStore/strings.korean.d.ts +27 -15
  205. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +27 -15
  206. package/dist/types/components/store/translationStore/strings.polish.d.ts +27 -15
  207. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +27 -15
  208. package/dist/types/components/store/translationStore/strings.russian.d.ts +27 -15
  209. package/dist/types/components/store/translationStore/strings.spanish.d.ts +27 -15
  210. package/dist/types/components/store/translationStore/strings.swedish.d.ts +27 -15
  211. package/dist/types/components/store/translationStore/strings.turkish.d.ts +27 -15
  212. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +27 -15
  213. package/dist/types/components/store/translationStore.d.ts +1 -1
  214. package/dist/types/components/utils/api/getInclusivePriceConfigurations.d.ts +2 -0
  215. package/dist/types/components/utils/getOverridenZCountry.d.ts +5 -0
  216. package/dist/types/components/utils/hasInclusivePrice.d.ts +1 -0
  217. package/dist/types/components/utils/hello/currencyConversion/applyInclusiveEffectiveRate.d.ts +1 -0
  218. package/dist/types/components/utils/hello/currencyConversion/applyInclusivePrice.d.ts +1 -0
  219. package/dist/types/components/utils/hello/currencyConversion/calculateInclusivePrice.d.ts +27 -0
  220. package/dist/types/constants/key.d.ts +9 -0
  221. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +1 -0
  222. package/dist/types/types/InclusivePricing.d.ts +13 -0
  223. package/dist/types/types/InputFieldLabel.d.ts +1 -0
  224. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +1 -0
  225. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +2 -0
  226. package/dist/types/types/generated/graphql.internal.types.d.ts +686 -53
  227. package/dist/types/types/generated/graphql.internal.types.ts +740 -52
  228. package/dist/types/types/index.d.ts +1 -0
  229. package/dist/types/types/utils/ZonosSettings.d.ts +2 -0
  230. package/dist/types/utils/performBlurCurrency.d.ts +12 -0
  231. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  232. package/dist/zonos-elements/index.esm.js +1 -1
  233. package/dist/zonos-elements/{p-b91df44b.system.entry.js → p-00ac999f.system.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-4523b982.entry.js → p-00ec22b2.entry.js} +1 -1
  235. package/dist/zonos-elements/{p-bd373de0.system.entry.js → p-03ff7b01.system.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-5f7a9b69.system.entry.js → p-0a90dd80.system.entry.js} +1 -1
  237. package/dist/zonos-elements/p-100f6a88.system.entry.js +1 -0
  238. package/dist/zonos-elements/{p-cf56b990.entry.js → p-143d706b.entry.js} +1 -1
  239. package/dist/zonos-elements/p-14d7489d.js +1 -0
  240. package/dist/zonos-elements/p-1d5aa016.system.js +1 -0
  241. package/dist/zonos-elements/p-1eae4987.entry.js +1 -0
  242. package/dist/zonos-elements/p-1f894984.js +1 -0
  243. package/dist/zonos-elements/{p-6c8e4f01.system.entry.js → p-23b45714.system.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-433d76b4.system.js → p-23d497e3.system.js} +1 -1
  245. package/dist/zonos-elements/p-2557b96b.js +1 -0
  246. package/dist/zonos-elements/{p-f912e9c3.entry.js → p-27874c22.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-b0a75761.entry.js → p-2ca8b037.entry.js} +1 -1
  248. package/dist/zonos-elements/p-2dbcecf4.entry.js +1 -0
  249. package/dist/zonos-elements/p-30e835a8.entry.js +1 -0
  250. package/dist/zonos-elements/{p-236e0144.system.entry.js → p-316f9052.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-5608ac9d.entry.js → p-3185968f.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-fa90adb8.entry.js → p-31975752.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-6bab9096.entry.js → p-31af91f0.entry.js} +1 -1
  254. package/dist/zonos-elements/{p-38f42f10.system.entry.js → p-452fb638.system.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-c998e4ed.entry.js → p-4592ae49.entry.js} +1 -1
  256. package/dist/zonos-elements/p-4e41143a.system.entry.js +1 -0
  257. package/dist/zonos-elements/{p-f548807d.system.entry.js → p-52b87408.system.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-cb11d11b.system.entry.js → p-540cec7e.system.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-d2f7ea09.entry.js → p-55e2e4ed.entry.js} +1 -1
  260. package/dist/zonos-elements/p-561be3a2.system.js +1 -0
  261. package/dist/zonos-elements/{p-a199bb13.js → p-5762e217.js} +1 -1
  262. package/dist/zonos-elements/{p-e688e493.js → p-57fa64d7.js} +1 -1
  263. package/dist/zonos-elements/{p-360d7101.system.entry.js → p-59ebb8c7.system.entry.js} +1 -1
  264. package/dist/zonos-elements/p-5c680f72.js +1 -0
  265. package/dist/zonos-elements/{p-cbb01de9.entry.js → p-5f398c28.entry.js} +1 -1
  266. package/dist/zonos-elements/p-5f77d19e.js +1 -0
  267. package/dist/zonos-elements/p-60469388.system.entry.js +1 -0
  268. package/dist/zonos-elements/{p-caebc1f8.system.js → p-652e80f0.system.js} +1 -1
  269. package/dist/zonos-elements/{p-4da7b6a8.system.entry.js → p-6adfb3af.system.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-2b84039a.entry.js → p-74ca7739.entry.js} +1 -1
  271. package/dist/zonos-elements/{p-de984173.system.js → p-767a31a8.system.js} +1 -1
  272. package/dist/zonos-elements/{p-38f2f63f.system.entry.js → p-770852bf.system.entry.js} +1 -1
  273. package/dist/zonos-elements/p-7c705c76.system.js +1 -0
  274. package/dist/zonos-elements/{p-2db90c99.system.entry.js → p-81ba2820.system.entry.js} +1 -1
  275. package/dist/zonos-elements/{p-964a4d85.js → p-82739127.js} +2 -2
  276. package/dist/zonos-elements/p-88ea9f82.entry.js +1 -0
  277. package/dist/zonos-elements/p-8a23bbf5.js +1 -0
  278. package/dist/zonos-elements/{p-10894d36.entry.js → p-905d2490.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-24e26a2c.system.js → p-909e2bc3.system.js} +1 -1
  280. package/dist/zonos-elements/{p-b658c28a.entry.js → p-936b54c1.entry.js} +1 -1
  281. package/dist/zonos-elements/{p-288f5a5b.system.entry.js → p-93f2e1ee.system.entry.js} +1 -1
  282. package/dist/zonos-elements/p-989d3af9.system.js +2 -0
  283. package/dist/zonos-elements/{p-d96545ae.entry.js → p-9b8750f3.entry.js} +1 -1
  284. package/dist/zonos-elements/p-a0a4e43d.system.entry.js +1 -0
  285. package/dist/zonos-elements/{p-c89e9d56.system.js → p-a25428eb.system.js} +1 -1
  286. package/dist/zonos-elements/{p-7a97e1cf.system.entry.js → p-a2819807.system.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-6d423364.entry.js → p-a6e74856.entry.js} +1 -1
  288. package/dist/zonos-elements/p-ab41bab5.js +2 -0
  289. package/dist/zonos-elements/p-ae940a99.js +1 -0
  290. package/dist/zonos-elements/{p-dc56b469.system.entry.js → p-b1fd1ec2.system.entry.js} +1 -1
  291. package/dist/zonos-elements/{p-7af39c98.js → p-b2a0ab4a.js} +1 -1
  292. package/dist/zonos-elements/{p-23f6a2fb.system.entry.js → p-b7ea5f4f.system.entry.js} +1 -1
  293. package/dist/zonos-elements/{p-c81f6387.entry.js → p-bf9d889f.entry.js} +1 -1
  294. package/dist/zonos-elements/p-c1ecab92.entry.js +1 -0
  295. package/dist/zonos-elements/{p-81b357f7.system.js → p-c2442878.system.js} +1 -1
  296. package/dist/zonos-elements/{p-7e5bd9af.system.entry.js → p-c288c6da.system.entry.js} +1 -1
  297. package/dist/zonos-elements/{p-b4bf2f03.entry.js → p-c50cc926.entry.js} +1 -1
  298. package/dist/zonos-elements/{p-b6ef4a5e.system.entry.js → p-c5cb2364.system.entry.js} +1 -1
  299. package/dist/zonos-elements/{p-57413c34.system.js → p-c6e3d747.system.js} +1 -1
  300. package/dist/zonos-elements/{p-2dc38ef3.entry.js → p-c7b658cb.entry.js} +1 -1
  301. package/dist/zonos-elements/p-cf765af3.system.js +1 -0
  302. package/dist/zonos-elements/{p-89c5164b.system.js → p-d45285aa.system.js} +1 -1
  303. package/dist/zonos-elements/{p-bccd49d7.system.entry.js → p-d556c6d1.system.entry.js} +1 -1
  304. package/dist/zonos-elements/{p-1a67ae71.system.entry.js → p-db628e49.system.entry.js} +1 -1
  305. package/dist/zonos-elements/p-e03e1a62.entry.js +1 -0
  306. package/dist/zonos-elements/{p-6f1024de.system.entry.js → p-e7874318.system.entry.js} +1 -1
  307. package/dist/zonos-elements/p-e8949e7e.entry.js +1 -0
  308. package/dist/zonos-elements/p-ea0b5d10.system.js +1 -0
  309. package/dist/zonos-elements/p-eae3462c.entry.js +1 -0
  310. package/dist/zonos-elements/{p-b669050d.system.entry.js → p-eea0eb57.system.entry.js} +1 -1
  311. package/dist/zonos-elements/p-f892595d.system.entry.js +1 -0
  312. package/dist/zonos-elements/{p-23c46dfa.system.js → p-f8d56ba9.system.js} +1 -1
  313. package/dist/zonos-elements/p-fc776473.js +1 -0
  314. package/dist/zonos-elements/p-fd3b46ee.entry.js +1 -0
  315. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  316. package/dist/zonos-elements/zonos-elements.js +1 -1
  317. package/package.json +3 -3
  318. package/dist/esm-es5/cart-c74f9aaa.js +0 -1
  319. package/dist/esm-es5/index-55a03023.js +0 -2
  320. package/dist/esm-es5/localization-106476cb.js +0 -1
  321. package/dist/esm-es5/placeTestOrder-891295e8.js +0 -1
  322. package/dist/esm-es5/translationStore-766b7521.js +0 -1
  323. package/dist/types/components/utils/api/getInclusivePricing.d.ts +0 -6
  324. package/dist/zonos-elements/p-053a042e.entry.js +0 -1
  325. package/dist/zonos-elements/p-0ffd710e.js +0 -1
  326. package/dist/zonos-elements/p-1d15662c.js +0 -1
  327. package/dist/zonos-elements/p-203c7fda.js +0 -1
  328. package/dist/zonos-elements/p-21b251f0.system.entry.js +0 -1
  329. package/dist/zonos-elements/p-225a61c4.system.entry.js +0 -1
  330. package/dist/zonos-elements/p-258570ce.entry.js +0 -1
  331. package/dist/zonos-elements/p-462f8857.entry.js +0 -1
  332. package/dist/zonos-elements/p-57ee34aa.system.entry.js +0 -1
  333. package/dist/zonos-elements/p-595668d7.system.js +0 -1
  334. package/dist/zonos-elements/p-5fc34563.system.js +0 -2
  335. package/dist/zonos-elements/p-62803534.entry.js +0 -1
  336. package/dist/zonos-elements/p-6497ce22.entry.js +0 -1
  337. package/dist/zonos-elements/p-65db3219.entry.js +0 -1
  338. package/dist/zonos-elements/p-783e7fa7.entry.js +0 -1
  339. package/dist/zonos-elements/p-9972941a.entry.js +0 -1
  340. package/dist/zonos-elements/p-ad7be556.system.entry.js +0 -1
  341. package/dist/zonos-elements/p-b30c2ad9.js +0 -2
  342. package/dist/zonos-elements/p-b4fe3604.system.js +0 -1
  343. package/dist/zonos-elements/p-b8293509.js +0 -1
  344. package/dist/zonos-elements/p-bdeb20cb.js +0 -1
  345. package/dist/zonos-elements/p-c3c3cd98.js +0 -1
  346. package/dist/zonos-elements/p-c6d0e87d.system.entry.js +0 -1
  347. package/dist/zonos-elements/p-cdaf52f4.system.js +0 -1
  348. package/dist/zonos-elements/p-cef1e888.system.js +0 -1
  349. package/dist/zonos-elements/p-eea0d8af.js +0 -1
  350. package/dist/zonos-elements/p-f4085c23.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const debounce = require('./debounce-2c9f3f1e.js');
3
+ const debounce = require('./debounce-815d1517.js');
4
4
  const handleFetch = require('./handleFetch-954f30e1.js');
5
5
 
6
6
  const attributesToUpdate = {};
@@ -2,20 +2,20 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c710d00.js');
6
- const debounce$1 = require('./debounce-2c9f3f1e.js');
7
- const zonosStore = require('./zonosStore-5d489c65.js');
8
- const cart = require('./cart-ad82a680.js');
9
- const localization = require('./localization-31e3dfe3.js');
10
- const translationStore = require('./translationStore-b8b25e9d.js');
5
+ const index = require('./index-69fa8852.js');
6
+ const debounce$1 = require('./debounce-815d1517.js');
7
+ const zonosStore = require('./zonosStore-37a4b4f4.js');
8
+ const cart = require('./cart-bc615014.js');
9
+ const localization = require('./localization-39516612.js');
10
+ const translationStore = require('./translationStore-08d3ff9c.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
12
12
  const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-9b8a8de1.js');
13
13
  const classes = require('./classes-b7918f56.js');
14
14
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
15
15
  const TaxId = require('./TaxId-12acedde.js');
16
- const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
16
+ const getBorderRadius = require('./getBorderRadius-2ef1170d.js');
17
17
  const RemoveIcon$2 = require('./RemoveIcon-081ac073.js');
18
- const isDarkColor = require('./isDarkColor-994c38e4.js');
18
+ const isDarkColor = require('./isDarkColor-878e600e.js');
19
19
  const helpers = require('./helpers-5bdbb68c.js');
20
20
 
21
21
  var debounce = debounce$1.debounce_1,
@@ -401,7 +401,7 @@ const ZonosAddress$1 = class {
401
401
  'zonos--address',
402
402
  'zonos--elements',
403
403
  `zonos--${this.type}-address`,
404
- ]) }, this.titleText && (index.h("zonos-text", { key: '2e666ed81597ac95d3de575a2d901d083e9100cc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), this.renderCompanyNameInput(), this.renderTaxIdInput(), index.h("div", { key: '51aa6d2415bf6c7e067d0565b11a0d2c0629200b', class: "zonos--address-component" })));
404
+ ]) }, this.titleText && (index.h("zonos-text", { key: '2e666ed81597ac95d3de575a2d901d083e9100cc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("slot", { key: '8ca6987aa7d70093c078e3afca20ac0b1484bd77', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), index.h("div", { key: '23345f2b61e387c57a363be8df8aa54ab6461a88', class: "zonos--address-component" })));
405
405
  }
406
406
  get el() { return index.getElement(this); }
407
407
  static get watchers() { return {
@@ -563,9 +563,9 @@ const ZonosAddressSuggestions = class {
563
563
  return segments;
564
564
  }
565
565
  render() {
566
- return (index.h(index.Host, { key: '8ef1b971b88cd2280c40e69e1f6824f64e618467', class: "zonos--address-suggestions", role: "group", style: {
566
+ return (index.h(index.Host, { key: '466084b61818244ec8b18aecad34cdf1c3ce07d0', class: "zonos--address-suggestions", role: "group", style: {
567
567
  '--zonos--border-radius': getBorderRadius.getBorderRadius(),
568
- } }, index.h("ul", { key: '383e615d02815aad0f06d468dfcfbef3640fd5f5', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (index.h("li", { key: 'f2e6b766f567b0933263e19666e440cf692f248c', "aria-selected": false, class: "powered-by option", role: "option" }, index.h("div", { key: 'd629272b98461726f7eda75fde4cf1070946cd70', class: "powered-by-container" }, index.h("zonos-text", { key: '5b5591b04da2034b783f61394dbdc8f172484972', type: "caption" }, "Suggestions powered by"), index.h("zonos-text", { key: '45352a7ba4314ee1d68c2a53bb722368182283ee', type: "semiBoldLabel" }, "Google")), index.h("zonos-button", { key: '506450cf69ef74cde9ed5159633040701994f455', "aria-label": "Clear suggestions", icon: index.h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
568
+ } }, index.h("ul", { key: '6d683213f5a4ffe06ba1292234753060a75ddf55', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (index.h("li", { key: '10765017862170072ec33afae156f87c63bab39b', "aria-selected": false, class: "powered-by option", role: "option" }, index.h("div", { key: '8660904e473b17ae5643aacab3d0fba3858c6632', class: "powered-by-container" }, index.h("zonos-text", { key: 'a310c0e5014e061470eee2c1ce17df59d5cb3cbd', type: "caption" }, "Suggestions powered by"), index.h("zonos-text", { key: 'a156fa8d30df760a3c87d6519a630ee5c7224525', type: "semiBoldLabel" }, "Google")), index.h("zonos-button", { key: '634f7ea46f1f210ecd8b11711eb29e100ae95d76', "aria-label": "Clear suggestions", icon: index.h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
569
569
  this.localSuggestions = [];
570
570
  } }))), this.localSuggestions.map(suggestion => (
571
571
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -1755,10 +1755,10 @@ const ZonosAddress = class {
1755
1755
  this.country = localization.localizationStore.selectedCountryCode;
1756
1756
  }
1757
1757
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
1758
- return (index.h(index.Host, { key: 'dcddfc6f0c63371c49f223f86a6c00df7ab30eed', class: classes.classes([
1758
+ return (index.h(index.Host, { key: 'fed5a2350a7c3f3d83e21d4538c2ab1fc41fb397', class: classes.classes([
1759
1759
  'zonos--address zonos--elements',
1760
1760
  `zonos--${this.type}-address`,
1761
- ]) }, index.h("zonos-text", { key: '70139b5412028d5dba2cc51ee8e3a81e182fd19a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1761
+ ]) }, index.h("zonos-text", { key: '08a95944a1cc34b50fc7f1c3356e7853a8eb83b0', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("slot", { key: '7275e2aa1fe566e43fb223f68257ec0df9fbf5af', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1762
1762
  }
1763
1763
  get el() { return index.getElement(this); }
1764
1764
  static get watchers() { return {
@@ -1897,7 +1897,7 @@ const validateEmailValue = (value) => {
1897
1897
  const zonosLinkAuthenticationCss = ".sc-zonos-link-authentication-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:16px}.sc-zonos-link-authentication-h .zonos--input-invalid.sc-zonos-link-authentication{border:2px solid var(--zonos-elements-red-600);border-radius:var(--zonos--border-radius)}";
1898
1898
  const ZonosLinkAuthenticationStyle0 = zonosLinkAuthenticationCss;
1899
1899
 
1900
- const MAX_RETRIES_INITIALIZE_LINK = 11;
1900
+ const MAX_RETRIES_INITIALIZE_LINK = 51;
1901
1901
  const ZonosLinkAuthentication = class {
1902
1902
  constructor(hostRef) {
1903
1903
  index.registerInstance(this, hostRef);
@@ -1973,6 +1973,22 @@ const ZonosLinkAuthentication = class {
1973
1973
  });
1974
1974
  cart.stripeStore.stripeLinkElement = linkAuthenticationElement;
1975
1975
  this.retriesInitializeLink = 0;
1976
+ // 10 seconds
1977
+ if (this.retriesInitializeLink > 11) {
1978
+ VarianceTest.log('Stripe link element initialized', 'info', {
1979
+ retriesInitializeLink: this.retriesInitializeLink,
1980
+ stripe: this.stripe,
1981
+ });
1982
+ void handleFetch.sendErrorLog({
1983
+ endpoint: 'stripe-link-authentication-init-long-running',
1984
+ errors: [
1985
+ 'Stripe link element initialized after 20 retries - 10 seconds',
1986
+ ],
1987
+ metadata: {
1988
+ retriesInitializeLink: this.retriesInitializeLink,
1989
+ },
1990
+ });
1991
+ }
1976
1992
  }
1977
1993
  catch (error) {
1978
1994
  if (error instanceof Error) {
@@ -1987,7 +2003,7 @@ const ZonosLinkAuthentication = class {
1987
2003
  endpoint: 'stripe-link-authentication-init-error',
1988
2004
  errors: [error.message],
1989
2005
  metadata: {
1990
- clientSecret: this.clientSecret,
2006
+ retriesInitializeLink: this.retriesInitializeLink,
1991
2007
  },
1992
2008
  });
1993
2009
  }
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c710d00.js');
6
- const zonosStore = require('./zonosStore-5d489c65.js');
5
+ const index = require('./index-69fa8852.js');
6
+ const zonosStore = require('./zonosStore-37a4b4f4.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  require('./VarianceTest-bec00ea8.js');
9
9
 
@@ -2,10 +2,10 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c710d00.js');
6
- const zonosStore = require('./zonosStore-5d489c65.js');
5
+ const index = require('./index-69fa8852.js');
6
+ const zonosStore = require('./zonosStore-37a4b4f4.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
8
+ const getBorderRadius = require('./getBorderRadius-2ef1170d.js');
9
9
  require('./VarianceTest-bec00ea8.js');
10
10
 
11
11
  const zonosBannerCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c710d00.js');
6
- const zonosStore = require('./zonosStore-5d489c65.js');
5
+ const index = require('./index-69fa8852.js');
6
+ const zonosStore = require('./zonosStore-37a4b4f4.js');
7
7
  const helpers = require('./helpers-5bdbb68c.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
- const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
9
+ const getBorderRadius = require('./getBorderRadius-2ef1170d.js');
10
10
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
11
- const isDarkColor = require('./isDarkColor-994c38e4.js');
11
+ const isDarkColor = require('./isDarkColor-878e600e.js');
12
12
  const styles = require('./styles-d1e64fb9.js');
13
13
  require('./VarianceTest-bec00ea8.js');
14
14
 
@@ -2,26 +2,27 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c710d00.js');
6
- const cart = require('./cart-ad82a680.js');
7
- const translationStore = require('./translationStore-b8b25e9d.js');
8
- const placeTestOrder = require('./placeTestOrder-6aefbf9c.js');
5
+ const index = require('./index-69fa8852.js');
6
+ const cart = require('./cart-bc615014.js');
7
+ const translationStore = require('./translationStore-08d3ff9c.js');
8
+ const placeTestOrder = require('./placeTestOrder-a5469e40.js');
9
9
  const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-577d0a77.js');
10
10
  const classes = require('./classes-b7918f56.js');
11
- const zonosStore = require('./zonosStore-5d489c65.js');
12
- const paypal = require('./paypal-88b5e878.js');
13
- const localization = require('./localization-31e3dfe3.js');
11
+ const localization = require('./localization-39516612.js');
12
+ const zonosStore = require('./zonosStore-37a4b4f4.js');
13
+ const hasInclusivePrice = require('./hasInclusivePrice-84145546.js');
14
+ const paypal = require('./paypal-1d6f1a71.js');
14
15
  const handleFetch = require('./handleFetch-954f30e1.js');
15
16
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
16
- const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
17
+ const getBorderRadius = require('./getBorderRadius-2ef1170d.js');
17
18
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
18
19
  const ILanguage = require('./ILanguage-98b04442.js');
19
- const isDarkColor = require('./isDarkColor-994c38e4.js');
20
+ const isDarkColor = require('./isDarkColor-878e600e.js');
20
21
  const isColorVariable = require('./isColorVariable-525dbfa7.js');
21
- const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-a4899e90.js');
22
+ const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-3a1db9de.js');
22
23
  const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-9b8a8de1.js');
23
24
  const TaxId = require('./TaxId-12acedde.js');
24
- require('./debounce-2c9f3f1e.js');
25
+ require('./debounce-815d1517.js');
25
26
 
26
27
  const zonosCartItemsCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--cart-table td{vertical-align:top}:host .zonos--cart-item-name{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}:host .zonos--cart-item-name .zonos--cart-item-quantity>*{display:inline-block}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px}";
27
28
  const ZonosCartItemsStyle0 = zonosCartItemsCss;
@@ -152,12 +153,43 @@ const ZonosCartSubtotal = class {
152
153
  * Loading state for apply promo code button
153
154
  */
154
155
  this.loading = false;
156
+ this.getInclusivePriceType = () => {
157
+ var _a, _b;
158
+ const inclusivePriceConfiguration = localization.localizationStore.inclusivePricingConfigurations.find(Boolean);
159
+ const dutyInclusive = ((_a = inclusivePriceConfiguration === null || inclusivePriceConfiguration === void 0 ? void 0 : inclusivePriceConfiguration.configurations[hasInclusivePrice.DUTY_KEY]) === null || _a === void 0 ? void 0 : _a.status) ===
160
+ 'ENABLED';
161
+ const taxInclusive = ((_b = inclusivePriceConfiguration === null || inclusivePriceConfiguration === void 0 ? void 0 : inclusivePriceConfiguration.configurations[hasInclusivePrice.TAXES_KEY]) === null || _b === void 0 ? void 0 : _b.status) ===
162
+ 'ENABLED';
163
+ if (dutyInclusive && taxInclusive) {
164
+ return 'DUTY_TAX_AND_FEE';
165
+ }
166
+ // Fee would also be included with duty if it's inclusive
167
+ if (dutyInclusive) {
168
+ return 'DUTY_AND_FEE';
169
+ }
170
+ if (taxInclusive) {
171
+ return 'TAX';
172
+ }
173
+ return null;
174
+ };
175
+ this.getCartSubtotalSubtitle = () => {
176
+ const inclusivePriceType = this.getInclusivePriceType();
177
+ if (inclusivePriceType === 'DUTY_AND_FEE') {
178
+ return (index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('Duties and fees included')));
179
+ }
180
+ if (inclusivePriceType === 'TAX') {
181
+ return (index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('Taxes included')));
182
+ }
183
+ return null;
184
+ };
155
185
  }
156
186
  render() {
157
187
  var _a, _b, _c, _d, _e;
188
+ // Since now we are prefetching the landed cost, we need to not show the total that includes the landed cost and shipping
189
+ const cartTotal = cart.cartStore.step === 'customer-info' ? cart.cartStore.subtotal : cart.cartStore.total;
158
190
  const showDutyTaxesInfo = cart.cartStore.step === 'payment' || cart.cartStore.step === 'shipping';
159
191
  // Show 0 for subtotal and total when all items are restricted
160
- const total = cart.cartStoreHasOneEligibleItem() ? cart.cartStore.total : 0;
192
+ const total = cart.cartStoreHasOneEligibleItem() ? cartTotal : 0;
161
193
  // Total is in target currency, devide by target rate to get base currency
162
194
  const subtotal = cart.cartStoreHasOneEligibleItem() ? cart.cartStore.subtotal : 0;
163
195
  const shouldRenderPromoInput =
@@ -183,16 +215,43 @@ const ZonosCartSubtotal = class {
183
215
  this.loading = false;
184
216
  };
185
217
  const renderShippingInfo = () => {
186
- if (!cart.cartStore.selectedShippingOption) {
218
+ if (!cart.cartStore.selectedShippingOption ||
219
+ // Should not show shipping info at customer info step
220
+ cart.cartStore.step === 'customer-info') {
187
221
  return (index.h(index.Fragment, null, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Shipping')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('No shipping method selected'))));
188
222
  }
189
223
  return (index.h(index.Fragment, null, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, cart.cartStore.selectedShippingOption.displayName), cart.cartStore.selectedShippingOptionTransitTime && (index.h("zonos-text", { class: "zonos--caption", type: "caption" }, cart.cartStore.selectedShippingOptionTransitTime))));
190
224
  };
191
225
  const renderLandedCost = () => {
192
226
  var _a, _b, _c;
227
+ // At the moment, inclusive price only support for US merchant
228
+ if (hasInclusivePrice.hasInclusivePrice()) {
229
+ const inclusivePriceType = this.getInclusivePriceType();
230
+ // This should not happen, put it here to exclude null from the type
231
+ if (!inclusivePriceType) {
232
+ return null;
233
+ }
234
+ if (inclusivePriceType === 'TAX') {
235
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties and fees')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('Nothing due at the door'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null
236
+ ? placeTestOrder.renderCheckoutCurrency({
237
+ amount: cart.cartStore.dutiesTaxesFees,
238
+ isForeign: true,
239
+ })
240
+ : '-'))));
241
+ }
242
+ if (inclusivePriceType === 'DUTY_AND_FEE') {
243
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Taxes'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null
244
+ ? placeTestOrder.renderCheckoutCurrency({
245
+ amount: cart.cartStore.dutiesTaxesFees,
246
+ isForeign: true,
247
+ })
248
+ : '-'))));
249
+ }
250
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties, taxes, and fees')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('The purchase price covers duties, taxes and fees.'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, "-"))));
251
+ }
193
252
  // Domestic US doesn't have duty applied, just taxes and fees
194
253
  if ((_b = (_a = zonosStore.zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.domesticCountries) === null || _b === void 0 ? void 0 : _b.includes(((_c = cart.stripeStore.stripeAddressEventData) === null || _c === void 0 ? void 0 : _c.value.address.country) || 'US')) {
195
- return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Taxes and fees'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null ||
254
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Taxes and fees'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null ||
196
255
  cart.cartStore.dutiesTaxesFeesEstimate !== null
197
256
  ? placeTestOrder.renderCheckoutCurrency({
198
257
  amount: cart.cartStore.dutiesTaxesFees ||
@@ -203,23 +262,23 @@ const ZonosCartSubtotal = class {
203
262
  : '-'))));
204
263
  }
205
264
  if (cart.cartStore.landedCostMethod === 'DAP') {
206
- return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties, taxes, and fees')), cart.cartStore.dutiesTaxesFeesEstimate !== null
265
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties, taxes, and fees')), cart.cartStore.dutiesTaxesFeesEstimate !== null
207
266
  ? `${translationStore.translate('Estimated [amount]', {
208
267
  amount: placeTestOrder.renderCheckoutCurrency({
209
268
  amount: cart.cartStore.dutiesTaxesFeesEstimate,
210
269
  isForeign: true,
211
270
  }),
212
271
  })}`
213
- : '-'), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, translationStore.translate('Due at delivery')))));
272
+ : '-'), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, translationStore.translate('Due at delivery')))));
214
273
  }
215
- return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties, taxes, and fees')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('Nothing due at the door'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null
274
+ return (index.h(index.Fragment, null, index.h("td", { class: "zonos--column zonos--cart-subtotal-title zonos--landed-cost" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translationStore.translate('Duties, taxes, and fees')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, translationStore.translate('Nothing due at the door'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price zonos--landed-cost" }, index.h("div", { class: "zonos--cart-duty-tax-price" }, cart.cartStore.dutiesTaxesFees !== null
216
275
  ? placeTestOrder.renderCheckoutCurrency({
217
276
  amount: cart.cartStore.dutiesTaxesFees,
218
277
  isForeign: true,
219
278
  })
220
279
  : '-'))));
221
280
  };
222
- return (index.h(index.Host, { class: "zonos--cart-subtotal zonos--elements" }, index.h("table", { class: "zonos--cart-table" }, index.h("tr", { class: "zonos--row zonos--cart-subtotal" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { type: "semiBoldLabel" }, translationStore.translate('Cart subtotal'))), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("zonos-text", { type: "semiBoldLabel" }, placeTestOrder.renderCheckoutCurrency({
281
+ return (index.h(index.Host, { class: "zonos--cart-subtotal zonos--elements" }, index.h("table", { class: "zonos--cart-table" }, index.h("tr", { class: "zonos--row zonos--cart-subtotal" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, index.h("zonos-text", { type: "semiBoldLabel" }, translationStore.translate('Cart subtotal')), index.h("zonos-text", { class: "zonos--caption", type: "caption" }, this.getCartSubtotalSubtitle())), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, index.h("zonos-text", { type: "semiBoldLabel" }, placeTestOrder.renderCheckoutCurrency({
223
282
  amount: subtotal,
224
283
  isForeign: true,
225
284
  })))), index.h("tr", { class: "zonos--row zonos--cart-shipping" }, index.h("td", { class: "zonos--column" }), index.h("td", { class: "zonos--column zonos--cart-subtotal-title" }, renderShippingInfo()), index.h("td", { class: "zonos--column zonos--cart-subtotal-price" }, cart.cartStore.shipping
@@ -1145,9 +1204,13 @@ const taxIdValidationResult = ({ companyName, shippingCountry, taxId, }) => {
1145
1204
  };
1146
1205
  };
1147
1206
 
1148
- 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;height:100%}.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;height:100%;-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:2}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
1207
+ 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;height:100%}.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;height:100%;-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--error-banner.sc-zonos-customer-info ul.sc-zonos-customer-info{list-style:disc;padding-left:8px}.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:2}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
1149
1208
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
1150
1209
 
1210
+ /**
1211
+ * Max address field length
1212
+ */
1213
+ const MAX_CHARACTER_LENGTH_PER_FIELD = 35;
1151
1214
  const ZonosCustomerInfo = class {
1152
1215
  constructor(hostRef) {
1153
1216
  index.registerInstance(this, hostRef);
@@ -1207,6 +1270,7 @@ const ZonosCustomerInfo = class {
1207
1270
  this.selectedCountryCode = localization.localizationStore.selectedCountryCode;
1208
1271
  this.genericSettings = zonosStore.zonosStore.genericSettings;
1209
1272
  this.addressFormRenderType = cart.cartStore.addressFormRenderType;
1273
+ this.exceededCharacterLimitErrorFieldList = [];
1210
1274
  /**
1211
1275
  * Handler for invalid characters in the address
1212
1276
  */
@@ -1328,6 +1392,72 @@ const ZonosCustomerInfo = class {
1328
1392
  isValid: !hasError,
1329
1393
  };
1330
1394
  };
1395
+ /**
1396
+ * Make sure all fields in the address are within the character limit
1397
+ */
1398
+ this.validateAddressLength = ({ address, type, }) => {
1399
+ if (!address) {
1400
+ return [];
1401
+ }
1402
+ const { city, line1, postal_code, state } = address.value.address;
1403
+ const { firstName, lastName, name } = address.value;
1404
+ const { firstName: extractedFirstName, lastName: extractedLastName } = cart.extractName({
1405
+ firstName,
1406
+ lastName,
1407
+ name,
1408
+ });
1409
+ const cityLength = city.length;
1410
+ const line1Length = line1.length;
1411
+ const postalCodeLength = postal_code.length;
1412
+ const stateLength = state.length;
1413
+ const firstNameLength = extractedFirstName.length;
1414
+ const lastNameLength = extractedLastName.length;
1415
+ const addressType = type === 'shipping' ? 'shipping' : 'billing';
1416
+ const errorMessageList = [];
1417
+ if (cityLength > MAX_CHARACTER_LENGTH_PER_FIELD) {
1418
+ errorMessageList.push({
1419
+ addressType,
1420
+ fieldLabel: 'City',
1421
+ value: city,
1422
+ });
1423
+ }
1424
+ if (line1Length > MAX_CHARACTER_LENGTH_PER_FIELD) {
1425
+ errorMessageList.push({
1426
+ addressType,
1427
+ fieldLabel: 'Address line 1',
1428
+ value: line1,
1429
+ });
1430
+ }
1431
+ if (postalCodeLength > MAX_CHARACTER_LENGTH_PER_FIELD) {
1432
+ errorMessageList.push({
1433
+ addressType,
1434
+ fieldLabel: 'Zip',
1435
+ value: postal_code,
1436
+ });
1437
+ }
1438
+ if (stateLength > MAX_CHARACTER_LENGTH_PER_FIELD) {
1439
+ errorMessageList.push({
1440
+ addressType,
1441
+ fieldLabel: 'State/Province/Region/Prefecture',
1442
+ value: state,
1443
+ });
1444
+ }
1445
+ if (firstNameLength > MAX_CHARACTER_LENGTH_PER_FIELD) {
1446
+ errorMessageList.push({
1447
+ addressType,
1448
+ fieldLabel: 'First name',
1449
+ value: extractedFirstName,
1450
+ });
1451
+ }
1452
+ if (lastNameLength > MAX_CHARACTER_LENGTH_PER_FIELD) {
1453
+ errorMessageList.push({
1454
+ addressType,
1455
+ fieldLabel: 'Last name',
1456
+ value: extractedLastName,
1457
+ });
1458
+ }
1459
+ return errorMessageList;
1460
+ };
1331
1461
  this.handleValidate = () => {
1332
1462
  var _a, _b;
1333
1463
  const stripeShippingAddressEventData = cart.stripeStore.stripeAddressEventData;
@@ -1363,13 +1493,29 @@ const ZonosCustomerInfo = class {
1363
1493
  });
1364
1494
  VarianceTest.log('==> isValidLink', 'info', isValidLink);
1365
1495
  // validate tax id input if it's required for specific countries, optional otherwise
1366
- const { error, valid } = taxIdValidationResult({
1496
+ const { error, valid: validTaxId } = taxIdValidationResult({
1367
1497
  companyName: cart.stripeStore.companyName,
1368
1498
  shippingCountry: this.shippingCountry,
1369
1499
  taxId: cart.stripeStore.taxId,
1370
1500
  });
1371
- this.taxIdErrorMessage = !valid ? translationStore.translate(error) : '';
1372
- if (!isValidBilling || !isValidShipping || !isValidLink || !valid) {
1501
+ this.taxIdErrorMessage = !validTaxId ? translationStore.translate(error) : '';
1502
+ const addressLengthErrorList = this.validateAddressLength({
1503
+ address: cart.stripeStore.stripeAddressEventData,
1504
+ type: 'shipping',
1505
+ });
1506
+ const billingAddressLengthErrorList = this.validateAddressLength({
1507
+ address: cart.stripeStore.stripeBillingAddressEventData,
1508
+ type: 'billing',
1509
+ });
1510
+ this.exceededCharacterLimitErrorFieldList = [
1511
+ ...addressLengthErrorList,
1512
+ ...billingAddressLengthErrorList,
1513
+ ];
1514
+ if (!isValidBilling ||
1515
+ !isValidShipping ||
1516
+ !isValidLink ||
1517
+ !validTaxId ||
1518
+ this.exceededCharacterLimitErrorFieldList.length > 0) {
1373
1519
  return false;
1374
1520
  }
1375
1521
  return true;
@@ -1398,6 +1544,27 @@ const ZonosCustomerInfo = class {
1398
1544
  state: addressValue.address.state || '',
1399
1545
  };
1400
1546
  };
1547
+ this.renderExceededCharacterLimitError = (type) => {
1548
+ const errorMessageByType = this.exceededCharacterLimitErrorFieldList.filter(({ addressType }) => addressType === type);
1549
+ if (!errorMessageByType.length) {
1550
+ return null;
1551
+ }
1552
+ return (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error", slot: "below-title" }, index.h("ul", null, errorMessageByType.map(({ fieldLabel, value }) => {
1553
+ const isAddressLine1 = fieldLabel === 'Address line 1';
1554
+ if (isAddressLine1) {
1555
+ return (index.h("li", { key: fieldLabel }, translationStore.translate('[fieldLabel] is [currentLength] characters. Please shorten to [maxLength] or less or move the rest to address line 2.', {
1556
+ currentLength: value.length,
1557
+ fieldLabel,
1558
+ maxLength: MAX_CHARACTER_LENGTH_PER_FIELD,
1559
+ })));
1560
+ }
1561
+ return (index.h("li", { key: fieldLabel }, translationStore.translate('[fieldLabel] is [currentLength] characters. Please shorten to [maxLength] or less.', {
1562
+ currentLength: value.length,
1563
+ fieldLabel,
1564
+ maxLength: MAX_CHARACTER_LENGTH_PER_FIELD,
1565
+ })));
1566
+ }))));
1567
+ };
1401
1568
  this.renderAddressComponent = (type) => {
1402
1569
  if (!this.selectedCountryCode) {
1403
1570
  void handleFetch.sendErrorLog({
@@ -1428,10 +1595,10 @@ const ZonosCustomerInfo = class {
1428
1595
  }
1429
1596
  // Render custom address component if the custom address form is enabled
1430
1597
  if (this.addressFormRenderType === 'zonos') {
1431
- return (index.h("zonos-custom-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translationStore.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }));
1598
+ return (index.h("zonos-custom-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translationStore.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
1432
1599
  }
1433
1600
  // Render Stripe address component by default
1434
- return (index.h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translationStore.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }));
1601
+ return (index.h("zonos-address", { defaultAddress: defaultAddress, taxIdErrorMessage: this.taxIdErrorMessage, titleText: translationStore.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
1435
1602
  };
1436
1603
  }
1437
1604
  watchShowErrorBanner() {
@@ -1624,7 +1791,8 @@ const ZonosReview = class {
1624
1791
  this.isMobile = handleFetch.isCheckoutMobile(this.mobile);
1625
1792
  }
1626
1793
  render() {
1627
- const total = cart.cartStoreHasOneEligibleItem() ? cart.cartStore.total : 0;
1794
+ const cartTotal = cart.cartStore.step === 'customer-info' ? cart.cartStore.subtotal : cart.cartStore.total;
1795
+ const total = cart.cartStoreHasOneEligibleItem() ? cartTotal : 0;
1628
1796
  const titleTextType = this.isMobile ? 'boldSubheader' : 'semiBoldLabel';
1629
1797
  const totalTextType = this.isMobile
1630
1798
  ? 'boldSubheader'
@@ -2,24 +2,24 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c710d00.js');
6
- const cart = require('./cart-ad82a680.js');
7
- const paypal = require('./paypal-88b5e878.js');
8
- const localization = require('./localization-31e3dfe3.js');
9
- const translationStore = require('./translationStore-b8b25e9d.js');
10
- const zonosStore = require('./zonosStore-5d489c65.js');
5
+ const index = require('./index-69fa8852.js');
6
+ const cart = require('./cart-bc615014.js');
7
+ const paypal = require('./paypal-1d6f1a71.js');
8
+ const localization = require('./localization-39516612.js');
9
+ const translationStore = require('./translationStore-08d3ff9c.js');
10
+ const zonosStore = require('./zonosStore-37a4b4f4.js');
11
11
  const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
12
12
  const handleFetch = require('./handleFetch-954f30e1.js');
13
- const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-a4899e90.js');
13
+ const updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-3a1db9de.js');
14
14
  const CheckoutConfig = require('./CheckoutConfig-27c82f94.js');
15
15
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
16
16
  const classes = require('./classes-b7918f56.js');
17
17
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
18
- const getBorderRadius = require('./getBorderRadius-c7d9f676.js');
19
- const isDarkColor = require('./isDarkColor-994c38e4.js');
18
+ const getBorderRadius = require('./getBorderRadius-2ef1170d.js');
19
+ const isDarkColor = require('./isDarkColor-878e600e.js');
20
20
  const styles = require('./styles-d1e64fb9.js');
21
21
  const RemoveIcon = require('./RemoveIcon-081ac073.js');
22
- require('./debounce-2c9f3f1e.js');
22
+ require('./debounce-815d1517.js');
23
23
 
24
24
  /**
25
25
  * Check if store discount is enabled
@@ -163,7 +163,10 @@ const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShi
163
163
  return;
164
164
  }
165
165
  // update the country code in localization store and check if it's shippable
166
- localization.localizationStoreUpdateSelectedCountryCode(shippingCountry);
166
+ localization.localizationStoreUpdateSelectedCountryCode({
167
+ isInitializing: false,
168
+ newSelectedCountryCode: shippingCountry,
169
+ });
167
170
  // do nothing if the country is still domestic
168
171
  if (!isShippableCountry(false)) {
169
172
  // cleanup the domestic shipping session if it's domestic because we will open the intl checkout after redirecting
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c710d00.js');
6
- const zonosStore = require('./zonosStore-5d489c65.js');
5
+ const index = require('./index-69fa8852.js');
6
+ const zonosStore = require('./zonosStore-37a4b4f4.js');
7
7
  require('./VarianceTest-bec00ea8.js');
8
8
 
9
9
  const zonosCollapseCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
@@ -2,18 +2,18 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const index = require('./index-1c710d00.js');
6
- const cart = require('./cart-ad82a680.js');
5
+ const index = require('./index-69fa8852.js');
6
+ const cart = require('./cart-bc615014.js');
7
7
  const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-577d0a77.js');
8
- const zonosStore = require('./zonosStore-5d489c65.js');
8
+ const zonosStore = require('./zonosStore-37a4b4f4.js');
9
9
  const classes = require('./classes-b7918f56.js');
10
10
  const styles = require('./styles-d1e64fb9.js');
11
- require('./localization-31e3dfe3.js');
11
+ require('./localization-39516612.js');
12
12
  require('./handleFetch-954f30e1.js');
13
13
  require('./VarianceTest-bec00ea8.js');
14
- require('./translationStore-b8b25e9d.js');
15
- require('./isDarkColor-994c38e4.js');
16
- require('./getBorderRadius-c7d9f676.js');
14
+ require('./translationStore-08d3ff9c.js');
15
+ require('./isDarkColor-878e600e.js');
16
+ require('./getBorderRadius-2ef1170d.js');
17
17
 
18
18
  const zonosCollectCartItemsCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:first-child{width:48px}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px;-webkit-box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);border-radius:10px}";
19
19
  const ZonosCollectCartItemsStyle0 = zonosCollectCartItemsCss;