@zonos/elements 1.5.0 → 1.5.2

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 (428) hide show
  1. package/dist/cjs/{TaxId-Q6aDqqWv.js → TaxId-ChhNwG04.js} +36 -0
  2. package/dist/cjs/{cart-B6Aty-21.js → cart-BJpqPdFU.js} +100 -64
  3. package/dist/cjs/{collect-DnrvaXUI.js → collect-CyUttsvB.js} +4 -4
  4. package/dist/cjs/{debounce-Cd2emZPn.js → debounce-BhgA8_3W.js} +2 -2
  5. package/dist/cjs/{debounce-vY0QYT6o.js → debounce-DRPMxNew.js} +1 -1
  6. package/dist/cjs/{getBorderRadius-CyYZw4qq.js → getBorderRadius-CJ_95w3o.js} +1 -1
  7. package/dist/cjs/{getMissingRequiredShippingFields-D03ICqss.js → getMissingRequiredShippingFields-DEbNbRAZ.js} +1 -1
  8. package/dist/cjs/{handleFetch-DQLhurnE.js → handleFetch-DVfjFTYO.js} +181 -71
  9. package/dist/cjs/{hasInclusivePrice-CPCoVeU3.js → hasInclusivePrice-CEPf3_FG.js} +1 -1
  10. package/dist/cjs/index.cjs.js +116 -13
  11. package/dist/cjs/{invoice-Cj8W7NW0.js → invoice-DzRkkpLu.js} +4 -4
  12. package/dist/cjs/loader.cjs.js +1 -1
  13. package/dist/cjs/{localization-BzNeXeDe.js → localization-BhNVhLZs.js} +725 -89
  14. package/dist/cjs/{paypal-CuKshRmZ.js → paypal-DCSqbdjW.js} +5 -5
  15. package/dist/cjs/{placeTestOrder-7czjwkjm.js → placeTestOrder-Bkip4PUT.js} +3 -3
  16. package/dist/cjs/{renderCheckoutCurrency-BH8t2b2x.js → renderCheckoutCurrency-BDvEZ3Hv.js} +2 -2
  17. package/dist/cjs/shouldRenderShortAddressCodeInput-gpu_bMfp.js +21 -0
  18. package/dist/cjs/{shouldShowLanguageSelect-yAbtCmd8.js → shouldShowLanguageSelect-NOVWOU53.js} +1 -1
  19. package/dist/cjs/{submitGtag-D79e8u6s.js → submitGtag-D4sB7w4z.js} +2 -2
  20. package/dist/cjs/{throttle-zSVRQLC0.js → taxIdFields-e4OCgr8K.js} +57 -2
  21. package/dist/cjs/taxIdRules-BBj8kQxJ.js +58 -0
  22. package/dist/cjs/{updateCheckoutSessionAttributes-jMtfOL2m.js → updateCheckoutSessionAttributes-KxwcsKhM.js} +2 -2
  23. package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +26 -31
  24. package/dist/cjs/zonos-address-display_2.cjs.entry.js +4 -4
  25. package/dist/cjs/zonos-address_4.cjs.entry.js +28 -31
  26. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +8 -7
  27. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  28. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-button_3.cjs.entry.js +2 -2
  30. package/dist/cjs/zonos-card_5.cjs.entry.js +9 -8
  31. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +91 -86
  32. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +2 -2
  33. package/dist/cjs/zonos-checkout.cjs.entry.js +15 -14
  34. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  35. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -6
  36. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +13 -12
  37. package/dist/cjs/zonos-collect.cjs.entry.js +10 -9
  38. package/dist/cjs/zonos-controller.cjs.entry.js +10 -9
  39. package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -3
  40. package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
  41. package/dist/cjs/zonos-elements.cjs.js +1 -1
  42. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
  43. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  44. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  45. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +9 -8
  46. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +13 -12
  47. package/dist/cjs/zonos-invoice.cjs.entry.js +10 -9
  48. package/dist/cjs/zonos-language-select_2.cjs.entry.js +3 -3
  49. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  50. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +8 -7
  51. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  52. package/dist/cjs/zonos-stripe-input.cjs.entry.js +2 -2
  53. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  54. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  55. package/dist/cjs/{zonosStore-Bx9jK82G.js → zonosStore-CDV83QyK.js} +2 -0
  56. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +8 -7
  57. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +4 -3
  58. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +12 -4
  59. package/dist/collection/components/main/zonos-controller.js +3 -2
  60. package/dist/collection/components/store/checkout/cart.js +3 -2
  61. package/dist/collection/components/store/checkout/stripe.js +20 -21
  62. package/dist/collection/components/store/storageStore.js +7 -6
  63. package/dist/collection/components/store/translationStore/strings.arabic.js +35 -2
  64. package/dist/collection/components/store/translationStore/strings.base.js +35 -2
  65. package/dist/collection/components/store/translationStore/strings.chinese.js +35 -2
  66. package/dist/collection/components/store/translationStore/strings.danish.js +35 -2
  67. package/dist/collection/components/store/translationStore/strings.dutch.js +35 -2
  68. package/dist/collection/components/store/translationStore/strings.french.js +35 -2
  69. package/dist/collection/components/store/translationStore/strings.german.js +35 -2
  70. package/dist/collection/components/store/translationStore/strings.hebrew.js +35 -2
  71. package/dist/collection/components/store/translationStore/strings.indonesian.js +35 -2
  72. package/dist/collection/components/store/translationStore/strings.italian.js +35 -2
  73. package/dist/collection/components/store/translationStore/strings.japanese.js +35 -2
  74. package/dist/collection/components/store/translationStore/strings.korean.js +35 -2
  75. package/dist/collection/components/store/translationStore/strings.norwegian.js +35 -2
  76. package/dist/collection/components/store/translationStore/strings.polish.js +35 -2
  77. package/dist/collection/components/store/translationStore/strings.portuguese.js +35 -2
  78. package/dist/collection/components/store/translationStore/strings.russian.js +35 -2
  79. package/dist/collection/components/store/translationStore/strings.spanish.js +35 -2
  80. package/dist/collection/components/store/translationStore/strings.swedish.js +35 -2
  81. package/dist/collection/components/store/translationStore/strings.turkish.js +35 -2
  82. package/dist/collection/components/store/translationStore/strings.vietnamese.js +35 -2
  83. package/dist/collection/components/store/zonosStore.js +2 -1
  84. package/dist/collection/components/stripe/zonos-address/zonos-address.css +5 -0
  85. package/dist/collection/components/stripe/zonos-address/zonos-address.js +37 -22
  86. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.css +5 -0
  87. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +34 -21
  88. package/dist/collection/components/utils/__tests__/helpers/blockStorage.js +24 -0
  89. package/dist/collection/components/utils/api/getExchangeRate.js +2 -1
  90. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +24 -35
  91. package/dist/collection/components/utils/checkout/getCheckoutTaxIdPayload.js +16 -0
  92. package/dist/collection/components/utils/checkout/getTaxIdFieldState.js +26 -0
  93. package/dist/collection/components/utils/checkout/resolveTaxIdSelection.js +23 -0
  94. package/dist/collection/components/utils/checkout/shouldRenderTaxIdInput.js +7 -11
  95. package/dist/collection/components/utils/checkout/taxIdFields.js +29 -0
  96. package/dist/collection/components/utils/handleFetch.js +19 -9
  97. package/dist/collection/components/utils/hello/countryOverrideStorage.js +17 -40
  98. package/dist/collection/components/utils/logging/installConstructorCapture.js +58 -0
  99. package/dist/collection/components/utils/logging/reportBlockedStorage.js +34 -0
  100. package/dist/collection/components/utils/logging/sendErrorLog.js +8 -1
  101. package/dist/collection/components/utils/logging/startZonosInit.js +35 -0
  102. package/dist/collection/components/utils/logging/thrownMessage.js +16 -0
  103. package/dist/collection/components/utils/safeStorage.js +39 -0
  104. package/dist/collection/components/utils/taxId/taxIdRules.js +44 -0
  105. package/dist/collection/components/utils/taxIdValidationResult.js +57 -58
  106. package/dist/collection/index.js +1 -0
  107. package/dist/collection/scripts/_getZonosQaUrl.js +3 -2
  108. package/dist/collection/scripts/_zonosBase.js +6 -2
  109. package/dist/collection/types/checkout/TaxId.js +31 -0
  110. package/dist/collection/types/generated/graphql.frontend.types.js +0 -16
  111. package/dist/collection/types/generated/graphql.internal.types.js +215 -1
  112. package/dist/esm/{TaxId-Cye-evFK.js → TaxId-DMIgN_sT.js} +32 -1
  113. package/dist/esm/{cart-BoQp8Ema.js → cart-BS5mSI8x.js} +100 -65
  114. package/dist/esm/{collect-Eo4gtyql.js → collect-B9ZxDDl7.js} +4 -4
  115. package/dist/esm/{debounce-BR3PaG8X.js → debounce-DHj2iHA1.js} +1 -1
  116. package/dist/esm/{debounce-CrmpwbEE.js → debounce-DWqMT4lo.js} +2 -2
  117. package/dist/esm/{getBorderRadius-DYfkeXdx.js → getBorderRadius-BiGd45jw.js} +1 -1
  118. package/dist/esm/{getMissingRequiredShippingFields-Ks6_tpjn.js → getMissingRequiredShippingFields-BkEV865q.js} +1 -1
  119. package/dist/esm/{handleFetch-D5GYDF-O.js → handleFetch-BFVO7oAR.js} +178 -72
  120. package/dist/esm/{hasInclusivePrice-CbEfIhI5.js → hasInclusivePrice-zSvDReDb.js} +1 -1
  121. package/dist/esm/index.js +106 -13
  122. package/dist/esm/{invoice-S1KahJ_Z.js → invoice-6iTuS6ek.js} +4 -4
  123. package/dist/esm/loader.js +1 -1
  124. package/dist/esm/{localization-BIh-4pc_.js → localization-CXHiWcJp.js} +725 -89
  125. package/dist/esm/{paypal-DNfvnuUU.js → paypal-BE_NVBoy.js} +5 -5
  126. package/dist/esm/{placeTestOrder-CQaMKFOg.js → placeTestOrder-BXA9K9Iy.js} +3 -3
  127. package/dist/esm/{renderCheckoutCurrency-C2Tw73uR.js → renderCheckoutCurrency-KMa4HlAf.js} +2 -2
  128. package/dist/esm/shouldRenderShortAddressCodeInput-Bc8k2vN0.js +19 -0
  129. package/dist/esm/{shouldShowLanguageSelect-CCD7gpSY.js → shouldShowLanguageSelect-BI_ApEsQ.js} +1 -1
  130. package/dist/esm/{submitGtag-df9AQ2zL.js → submitGtag-C5xzFHjG.js} +2 -2
  131. package/dist/esm/taxIdFields-BUKnHMaL.js +139 -0
  132. package/dist/esm/taxIdRules-xYlx7ZXW.js +47 -0
  133. package/dist/esm/{updateCheckoutSessionAttributes-4Jq6V4pO.js → updateCheckoutSessionAttributes-C9bMKTjz.js} +2 -2
  134. package/dist/esm/zonos-address-completion-dialog_7.entry.js +24 -29
  135. package/dist/esm/zonos-address-display_2.entry.js +4 -4
  136. package/dist/esm/zonos-address_4.entry.js +26 -29
  137. package/dist/esm/zonos-airwallex-payment.entry.js +8 -7
  138. package/dist/esm/zonos-badge.entry.js +1 -1
  139. package/dist/esm/zonos-banner.entry.js +1 -1
  140. package/dist/esm/zonos-button_3.entry.js +2 -2
  141. package/dist/esm/zonos-card_5.entry.js +9 -8
  142. package/dist/esm/zonos-cart-items_12.entry.js +90 -85
  143. package/dist/esm/zonos-checkbox_2.entry.js +2 -2
  144. package/dist/esm/zonos-checkout.entry.js +15 -14
  145. package/dist/esm/zonos-collapse.entry.js +1 -1
  146. package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -6
  147. package/dist/esm/zonos-collect-finish_6.entry.js +13 -12
  148. package/dist/esm/zonos-collect.entry.js +10 -9
  149. package/dist/esm/zonos-controller.entry.js +10 -9
  150. package/dist/esm/zonos-country-flag.entry.js +3 -3
  151. package/dist/esm/zonos-country-select_4.entry.js +4 -4
  152. package/dist/esm/zonos-elements.js +1 -1
  153. package/dist/esm/zonos-hello-dialog.entry.js +5 -5
  154. package/dist/esm/zonos-hello.entry.js +5 -5
  155. package/dist/esm/zonos-input.entry.js +2 -2
  156. package/dist/esm/zonos-invoice-cart-items_2.entry.js +9 -8
  157. package/dist/esm/zonos-invoice-finish_5.entry.js +13 -12
  158. package/dist/esm/zonos-invoice.entry.js +10 -9
  159. package/dist/esm/zonos-language-select_2.entry.js +3 -3
  160. package/dist/esm/zonos-logo.entry.js +1 -1
  161. package/dist/esm/zonos-policy-consent_2.entry.js +8 -7
  162. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  163. package/dist/esm/zonos-stripe-input.entry.js +2 -2
  164. package/dist/esm/zonos-text.entry.js +1 -1
  165. package/dist/esm/zonos-v-stack.entry.js +1 -1
  166. package/dist/esm/{zonosStore-msUlqmSD.js → zonosStore-BXP9FvIt.js} +2 -1
  167. package/dist/esm-es5/{TaxId-Cye-evFK.js → TaxId-DMIgN_sT.js} +2 -1
  168. package/dist/esm-es5/{cart-BoQp8Ema.js → cart-BS5mSI8x.js} +42 -31
  169. package/dist/esm-es5/{collect-Eo4gtyql.js → collect-B9ZxDDl7.js} +1 -1
  170. package/dist/esm-es5/{debounce-BR3PaG8X.js → debounce-DHj2iHA1.js} +7 -7
  171. package/dist/esm-es5/debounce-DWqMT4lo.js +1 -0
  172. package/dist/esm-es5/getBorderRadius-BiGd45jw.js +8 -0
  173. package/dist/esm-es5/{getMissingRequiredShippingFields-Ks6_tpjn.js → getMissingRequiredShippingFields-BkEV865q.js} +3 -3
  174. package/dist/esm-es5/handleFetch-BFVO7oAR.js +73 -0
  175. package/dist/esm-es5/{hasInclusivePrice-CbEfIhI5.js → hasInclusivePrice-zSvDReDb.js} +1 -1
  176. package/dist/esm-es5/index.js +30 -12
  177. package/dist/esm-es5/{invoice-S1KahJ_Z.js → invoice-6iTuS6ek.js} +1 -1
  178. package/dist/esm-es5/loader.js +1 -1
  179. package/dist/esm-es5/localization-CXHiWcJp.js +345 -0
  180. package/dist/esm-es5/{paypal-DNfvnuUU.js → paypal-BE_NVBoy.js} +1 -1
  181. package/dist/esm-es5/{placeTestOrder-CQaMKFOg.js → placeTestOrder-BXA9K9Iy.js} +1 -1
  182. package/dist/esm-es5/{renderCheckoutCurrency-C2Tw73uR.js → renderCheckoutCurrency-KMa4HlAf.js} +1 -1
  183. package/dist/esm-es5/shouldRenderShortAddressCodeInput-Bc8k2vN0.js +8 -0
  184. package/dist/esm-es5/{shouldShowLanguageSelect-CCD7gpSY.js → shouldShowLanguageSelect-BI_ApEsQ.js} +1 -1
  185. package/dist/esm-es5/{submitGtag-df9AQ2zL.js → submitGtag-C5xzFHjG.js} +1 -1
  186. package/dist/esm-es5/taxIdFields-BUKnHMaL.js +46 -0
  187. package/dist/esm-es5/taxIdRules-xYlx7ZXW.js +6 -0
  188. package/dist/esm-es5/{updateCheckoutSessionAttributes-4Jq6V4pO.js → updateCheckoutSessionAttributes-C9bMKTjz.js} +1 -1
  189. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +253 -254
  190. package/dist/esm-es5/zonos-address-display_2.entry.js +1 -1
  191. package/dist/esm-es5/zonos-address_4.entry.js +8 -9
  192. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  193. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  194. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  195. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  196. package/dist/esm-es5/zonos-card_5.entry.js +6 -6
  197. package/dist/esm-es5/zonos-cart-items_12.entry.js +137 -136
  198. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  199. package/dist/esm-es5/zonos-checkout.entry.js +3 -3
  200. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  201. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  202. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  203. package/dist/esm-es5/zonos-collect.entry.js +6 -6
  204. package/dist/esm-es5/zonos-controller.entry.js +5 -5
  205. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  206. package/dist/esm-es5/zonos-country-select_4.entry.js +2 -2
  207. package/dist/esm-es5/zonos-elements.js +1 -1
  208. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  209. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  210. package/dist/esm-es5/zonos-input.entry.js +1 -1
  211. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +2 -2
  212. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  213. package/dist/esm-es5/zonos-invoice.entry.js +3 -3
  214. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  215. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  216. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  217. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  218. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  219. package/dist/esm-es5/zonos-text.entry.js +1 -1
  220. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  221. package/dist/esm-es5/{zonosStore-msUlqmSD.js → zonosStore-BXP9FvIt.js} +1 -1
  222. package/dist/scripts/index.d.ts +103 -1
  223. package/dist/scripts/index.js +1 -1
  224. package/dist/scripts/loadZonos.js +1 -1
  225. package/dist/scripts/zonos.js +1 -1
  226. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +4 -0
  227. package/dist/types/components/store/checkout/stripe.d.ts +9 -0
  228. package/dist/types/components/store/translationStore/strings.arabic.d.ts +34 -1
  229. package/dist/types/components/store/translationStore/strings.base.d.ts +34 -1
  230. package/dist/types/components/store/translationStore/strings.chinese.d.ts +34 -1
  231. package/dist/types/components/store/translationStore/strings.danish.d.ts +34 -1
  232. package/dist/types/components/store/translationStore/strings.dutch.d.ts +34 -1
  233. package/dist/types/components/store/translationStore/strings.french.d.ts +34 -1
  234. package/dist/types/components/store/translationStore/strings.german.d.ts +34 -1
  235. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +34 -1
  236. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +34 -1
  237. package/dist/types/components/store/translationStore/strings.italian.d.ts +34 -1
  238. package/dist/types/components/store/translationStore/strings.japanese.d.ts +34 -1
  239. package/dist/types/components/store/translationStore/strings.korean.d.ts +34 -1
  240. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +34 -1
  241. package/dist/types/components/store/translationStore/strings.polish.d.ts +34 -1
  242. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +34 -1
  243. package/dist/types/components/store/translationStore/strings.russian.d.ts +34 -1
  244. package/dist/types/components/store/translationStore/strings.spanish.d.ts +34 -1
  245. package/dist/types/components/store/translationStore/strings.swedish.d.ts +34 -1
  246. package/dist/types/components/store/translationStore/strings.turkish.d.ts +34 -1
  247. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +34 -1
  248. package/dist/types/components/store/zonosStore.d.ts +2 -1
  249. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +4 -1
  250. package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +4 -1
  251. package/dist/types/components/utils/__tests__/helpers/blockStorage.d.ts +3 -0
  252. package/dist/types/components/utils/checkout/getCheckoutTaxIdPayload.d.ts +6 -0
  253. package/dist/types/components/utils/checkout/getTaxIdFieldState.d.ts +18 -0
  254. package/dist/types/components/utils/checkout/resolveTaxIdSelection.d.ts +12 -0
  255. package/dist/types/components/utils/checkout/shouldRenderTaxIdInput.d.ts +2 -1
  256. package/dist/types/components/utils/checkout/taxIdFields.d.ts +11 -0
  257. package/dist/types/components/utils/logging/installConstructorCapture.d.ts +20 -0
  258. package/dist/types/components/utils/logging/reportBlockedStorage.d.ts +16 -0
  259. package/dist/types/components/utils/logging/startZonosInit.d.ts +5 -0
  260. package/dist/types/components/utils/logging/thrownMessage.d.ts +1 -0
  261. package/dist/types/components/utils/safeStorage.d.ts +4 -0
  262. package/dist/types/components/utils/taxId/taxIdRules.d.ts +37 -0
  263. package/dist/types/components/utils/taxIdValidationResult.d.ts +8 -2
  264. package/dist/types/components.d.ts +22 -0
  265. package/dist/types/index.d.ts +1 -0
  266. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
  267. package/dist/types/types/checkout/TaxId.d.ts +45 -0
  268. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +11 -0
  269. package/dist/types/types/checkout/api/CreateParty.d.ts +2 -0
  270. package/dist/types/types/generated/graphql.frontend.types.d.ts +0 -22
  271. package/dist/types/types/generated/graphql.frontend.types.ts +0 -51
  272. package/dist/types/types/generated/graphql.internal.types.d.ts +270 -1
  273. package/dist/types/types/generated/graphql.internal.types.ts +341 -1
  274. package/dist/types/types/utils/ZonosSettings.d.ts +5 -0
  275. package/dist/zonos-elements/index.esm.js +1 -1
  276. package/dist/zonos-elements/p-08b01c96.entry.js +1 -0
  277. package/dist/zonos-elements/{p-c961caaf.entry.js → p-0909ef77.entry.js} +1 -1
  278. package/dist/zonos-elements/{p-23352709.system.entry.js → p-13015d34.system.entry.js} +4 -4
  279. package/dist/zonos-elements/{p-6c41b00c.entry.js → p-13d5b2f9.entry.js} +1 -1
  280. package/dist/zonos-elements/{p-5b80aff2.system.entry.js → p-150047b3.system.entry.js} +25 -25
  281. package/dist/zonos-elements/p-1986cc37.entry.js +1 -0
  282. package/dist/zonos-elements/{p-CBx5nYet.system.js → p-1OG3IJgY.system.js} +1 -1
  283. package/dist/zonos-elements/{p-d3d0656a.entry.js → p-1a5acbcd.entry.js} +1 -1
  284. package/dist/zonos-elements/{p-756d303f.system.entry.js → p-20eb00de.system.entry.js} +1 -1
  285. package/dist/zonos-elements/{p-9c33f7ed.system.entry.js → p-30bf4700.system.entry.js} +1 -1
  286. package/dist/zonos-elements/{p-d168023b.entry.js → p-3466bcba.entry.js} +1 -1
  287. package/dist/zonos-elements/p-383343c7.entry.js +1 -0
  288. package/dist/zonos-elements/{p-06030d3b.system.entry.js → p-3a506614.system.entry.js} +54 -54
  289. package/dist/zonos-elements/p-43c0ebe9.entry.js +1 -0
  290. package/dist/zonos-elements/{p-acd50b0b.entry.js → p-4612facd.entry.js} +1 -1
  291. package/dist/zonos-elements/{p-244e0302.system.entry.js → p-4715045c.system.entry.js} +1 -1
  292. package/dist/zonos-elements/p-4b65f192.entry.js +1 -0
  293. package/dist/zonos-elements/{p-5967a1c1.system.entry.js → p-573a4e7c.system.entry.js} +6 -6
  294. package/dist/zonos-elements/p-59fc32af.entry.js +1 -0
  295. package/dist/zonos-elements/{p-d82fd8a9.system.entry.js → p-5a296dbc.system.entry.js} +117 -116
  296. package/dist/zonos-elements/{p-193d9722.entry.js → p-61312d5b.entry.js} +1 -1
  297. package/dist/zonos-elements/{p-6abec43f.system.entry.js → p-68325c5a.system.entry.js} +4 -4
  298. package/dist/zonos-elements/{p-0b81f8b9.system.entry.js → p-6db7317a.system.entry.js} +6 -6
  299. package/dist/zonos-elements/{p-51400242.system.entry.js → p-709d1561.system.entry.js} +3 -3
  300. package/dist/zonos-elements/p-71d29603.entry.js +1 -0
  301. package/dist/zonos-elements/{p-7bd99479.system.entry.js → p-7214c953.system.entry.js} +21 -21
  302. package/dist/zonos-elements/p-74659d88.entry.js +1 -0
  303. package/dist/zonos-elements/{p-55916c90.entry.js → p-7f1bea9b.entry.js} +1 -1
  304. package/dist/zonos-elements/{p-0fca452b.entry.js → p-7fe83919.entry.js} +1 -1
  305. package/dist/zonos-elements/{p-1c150f26.entry.js → p-821e413a.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-c403f004.system.entry.js → p-82e45d0c.system.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-1409de3b.system.entry.js → p-88e20e99.system.entry.js} +1 -1
  308. package/dist/zonos-elements/{p-195f6e38.system.entry.js → p-89a3c4db.system.entry.js} +1 -1
  309. package/dist/zonos-elements/p-8ac26831.entry.js +1 -0
  310. package/dist/zonos-elements/{p-a40fd99b.system.entry.js → p-8f9f859f.system.entry.js} +39 -40
  311. package/dist/zonos-elements/{p-92fe9a1f.system.entry.js → p-902cca23.system.entry.js} +1 -1
  312. package/dist/zonos-elements/{p-0a4a7742.system.entry.js → p-93860183.system.entry.js} +1 -1
  313. package/dist/zonos-elements/{p-b5882fbb.system.entry.js → p-9449b4f4.system.entry.js} +1 -1
  314. package/dist/zonos-elements/{p-31043c2e.system.entry.js → p-96b250d8.system.entry.js} +298 -299
  315. package/dist/zonos-elements/p-97729873.entry.js +1 -0
  316. package/dist/zonos-elements/{p-1bac5ac1.system.entry.js → p-990fcf81.system.entry.js} +1 -1
  317. package/dist/zonos-elements/{p-7f031592.system.entry.js → p-9b3668a4.system.entry.js} +155 -155
  318. package/dist/zonos-elements/{p-249c1ee1.system.entry.js → p-9df31243.system.entry.js} +3 -3
  319. package/dist/zonos-elements/p-BD-9rD53.js +1 -0
  320. package/dist/zonos-elements/p-BI6VAB5B.js +1 -0
  321. package/dist/zonos-elements/p-BJFa5RwX.js +1 -0
  322. package/dist/zonos-elements/p-BJ_kE5rM.js +1 -0
  323. package/dist/zonos-elements/{p-Be3Hpms1.system.js → p-BKUlQxBd.system.js} +1 -1
  324. package/dist/zonos-elements/p-BUfCTQXY.system.js +528 -0
  325. package/dist/zonos-elements/{p-CZD8WvyY.system.js → p-BnQyot7Y.system.js} +23 -23
  326. package/dist/zonos-elements/p-Bu9WCfUC.system.js +2 -2
  327. package/dist/zonos-elements/{p-0mGRBGcf.js → p-C-zdj7MK.js} +1 -1
  328. package/dist/zonos-elements/p-C5fs3rIR.js +1 -0
  329. package/dist/zonos-elements/{p-sz4L-ZnB.js → p-CJmWr75U.js} +1 -1
  330. package/dist/zonos-elements/{p-XDxdMlQl.system.js → p-CMneHjck.system.js} +15 -15
  331. package/dist/zonos-elements/p-CP7KnfR3.system.js +245 -0
  332. package/dist/zonos-elements/p-CVRbGFV3.js +1 -0
  333. package/dist/zonos-elements/p-CYxMfUL7.system.js +1 -0
  334. package/dist/zonos-elements/p-Cl5yV0ak.js +1 -0
  335. package/dist/zonos-elements/{p-kaOxUR9u.system.js → p-Cp1IAJvW.system.js} +5 -5
  336. package/dist/zonos-elements/{p-W82paT5F.js → p-CqB9AfBf.js} +1 -1
  337. package/dist/zonos-elements/p-CzKlS3E-.system.js +6 -0
  338. package/dist/zonos-elements/p-D-Lnf8mS.system.js +345 -0
  339. package/dist/zonos-elements/p-D0DkOoAw.system.js +73 -0
  340. package/dist/zonos-elements/{p-c9QtIdJX.js → p-D4xpkSsK.js} +1 -1
  341. package/dist/zonos-elements/p-DATNIakn.js +1 -0
  342. package/dist/zonos-elements/{p-D4MevhAL.system.js → p-DC1OPJDq.system.js} +3 -3
  343. package/dist/zonos-elements/{p-8PPEbm_0.system.js → p-DIab60nK.system.js} +12 -12
  344. package/dist/zonos-elements/p-DKnphvmJ.js +1 -0
  345. package/dist/zonos-elements/{p-Cye-evFK.js → p-DMIgN_sT.js} +1 -1
  346. package/dist/zonos-elements/{p-BuU_p5DP.system.js → p-DTgUqgwV.system.js} +2 -2
  347. package/dist/zonos-elements/p-DW7I0zOF.js +1 -0
  348. package/dist/zonos-elements/{p-DoEHepOc.system.js → p-DXlojp_Y.system.js} +1 -1
  349. package/dist/zonos-elements/p-DqVePqqx.system.js +8 -0
  350. package/dist/zonos-elements/{p-B4Ufchqh.system.js → p-DrS-0mk7.system.js} +3 -3
  351. package/dist/zonos-elements/{p-7abqRc9V.js → p-DrbN3rPL.js} +2 -2
  352. package/dist/zonos-elements/{p-Cby4EkFu.system.js → p-DsBuZ6ob.system.js} +2 -1
  353. package/dist/zonos-elements/{p-DI2vXnXc.system.js → p-Dv5a-V6w.system.js} +1 -1
  354. package/dist/zonos-elements/p-Dwg61Ft_.js +1 -0
  355. package/dist/zonos-elements/{p-474e8a92.system.entry.js → p-a1022808.system.entry.js} +1 -1
  356. package/dist/zonos-elements/{p-17c7ea4a.system.entry.js → p-a3c147d2.system.entry.js} +3 -3
  357. package/dist/zonos-elements/p-aK18R41t.js +1 -0
  358. package/dist/zonos-elements/{p-83aa1c8c.entry.js → p-ad04bba2.entry.js} +1 -1
  359. package/dist/zonos-elements/p-af4ad54b.entry.js +1 -0
  360. package/dist/zonos-elements/p-af741506.entry.js +1 -0
  361. package/dist/zonos-elements/{p-a938c174.entry.js → p-b51010b9.entry.js} +1 -1
  362. package/dist/zonos-elements/{p-6db7c0b1.system.entry.js → p-b540c636.system.entry.js} +2 -2
  363. package/dist/zonos-elements/p-bac94956.entry.js +1 -0
  364. package/dist/zonos-elements/{p-69c3e367.system.entry.js → p-bb1b414a.system.entry.js} +9 -9
  365. package/dist/zonos-elements/{p-b79036fc.entry.js → p-bfa9e32a.entry.js} +1 -1
  366. package/dist/zonos-elements/{p-dfc87b10.system.entry.js → p-c33b8f6a.system.entry.js} +1 -1
  367. package/dist/zonos-elements/p-cf6bf7a4.entry.js +1 -0
  368. package/dist/zonos-elements/{p-CEK_Wk6v.system.js → p-dJcbnNlE.system.js} +1 -1
  369. package/dist/zonos-elements/p-db40b9c3.entry.js +1 -0
  370. package/dist/zonos-elements/p-dd003161.entry.js +1 -0
  371. package/dist/zonos-elements/{p-2603dce0.entry.js → p-e216cc8c.entry.js} +1 -1
  372. package/dist/zonos-elements/p-e374aaa4.entry.js +1 -0
  373. package/dist/zonos-elements/{p-155ed3d3.system.entry.js → p-e43470f7.system.entry.js} +21 -21
  374. package/dist/zonos-elements/p-ebc7ea54.system.entry.js +13 -0
  375. package/dist/zonos-elements/{p-11defdca.system.entry.js → p-f2ed52bc.system.entry.js} +8 -8
  376. package/dist/zonos-elements/{p-d4d2b39e.entry.js → p-fddf3556.entry.js} +1 -1
  377. package/dist/zonos-elements/p-gEViRqvf.js +1 -0
  378. package/dist/zonos-elements/{p-BpDCLBwW.js → p-n5PZKz1k.js} +1 -1
  379. package/dist/zonos-elements/{p-C_z9WL8a.js → p-r-YGHhLa.js} +1 -1
  380. package/dist/zonos-elements/{p-XqkqjeNV.system.js → p-yv7ekcdG.system.js} +2 -2
  381. package/dist/zonos-elements/{p-DQZncB2d.system.js → p-zsTASoh2.system.js} +3 -3
  382. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  383. package/package.json +1 -1
  384. package/dist/cjs/shouldRenderTaxIdInput-TxekHCp7.js +0 -43
  385. package/dist/esm/shouldRenderTaxIdInput-CKyZ6Zni.js +0 -40
  386. package/dist/esm/throttle-Cvlvb-dm.js +0 -85
  387. package/dist/esm-es5/debounce-CrmpwbEE.js +0 -1
  388. package/dist/esm-es5/getBorderRadius-DYfkeXdx.js +0 -8
  389. package/dist/esm-es5/handleFetch-D5GYDF-O.js +0 -60
  390. package/dist/esm-es5/localization-BIh-4pc_.js +0 -348
  391. package/dist/esm-es5/shouldRenderTaxIdInput-CKyZ6Zni.js +0 -17
  392. package/dist/esm-es5/throttle-Cvlvb-dm.js +0 -46
  393. package/dist/zonos-elements/p-06fe2939.entry.js +0 -1
  394. package/dist/zonos-elements/p-24f3c547.entry.js +0 -1
  395. package/dist/zonos-elements/p-30b3c9d3.entry.js +0 -1
  396. package/dist/zonos-elements/p-39ee1558.entry.js +0 -1
  397. package/dist/zonos-elements/p-3a2da031.entry.js +0 -1
  398. package/dist/zonos-elements/p-4679f0ec.entry.js +0 -1
  399. package/dist/zonos-elements/p-4806b264.system.entry.js +0 -13
  400. package/dist/zonos-elements/p-5873ab8e.entry.js +0 -1
  401. package/dist/zonos-elements/p-725e29bb.entry.js +0 -1
  402. package/dist/zonos-elements/p-BGktDPwA.system.js +0 -1
  403. package/dist/zonos-elements/p-Bi-s0fp_.system.js +0 -17
  404. package/dist/zonos-elements/p-CFbfEmjN.js +0 -1
  405. package/dist/zonos-elements/p-CUaf1cEg.js +0 -1
  406. package/dist/zonos-elements/p-CXxvn4GX.system.js +0 -227
  407. package/dist/zonos-elements/p-CcJF6xhQ.js +0 -1
  408. package/dist/zonos-elements/p-Cxuiqv1I.js +0 -1
  409. package/dist/zonos-elements/p-D-bZg-Pc.js +0 -1
  410. package/dist/zonos-elements/p-DE4a-QD5.js +0 -1
  411. package/dist/zonos-elements/p-DOD2I44l.system.js +0 -348
  412. package/dist/zonos-elements/p-DS-qw_qc.system.js +0 -517
  413. package/dist/zonos-elements/p-DZ2mevDK.js +0 -1
  414. package/dist/zonos-elements/p-DnjGkbEy.js +0 -1
  415. package/dist/zonos-elements/p-FRWZayxL.js +0 -1
  416. package/dist/zonos-elements/p-Mrz_lnC1.js +0 -1
  417. package/dist/zonos-elements/p-ad9ff14c.entry.js +0 -1
  418. package/dist/zonos-elements/p-bb3546c0.entry.js +0 -1
  419. package/dist/zonos-elements/p-c1cbfdba.entry.js +0 -1
  420. package/dist/zonos-elements/p-c47ce656.entry.js +0 -1
  421. package/dist/zonos-elements/p-c9d5d8f1.entry.js +0 -1
  422. package/dist/zonos-elements/p-clDfq9AL.js +0 -1
  423. package/dist/zonos-elements/p-d74bc3e8.entry.js +0 -1
  424. package/dist/zonos-elements/p-d8b312e5.entry.js +0 -1
  425. package/dist/zonos-elements/p-db87b0dd.entry.js +0 -1
  426. package/dist/zonos-elements/p-defc2d18.entry.js +0 -1
  427. package/dist/zonos-elements/p-rVp8hgWw.js +0 -1
  428. package/dist/zonos-elements/p-zVLAvre1.system.js +0 -60
@@ -1,33 +1,34 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DAAr465v.js');
4
- var cart = require('./cart-B6Aty-21.js');
5
- var localization = require('./localization-BzNeXeDe.js');
6
- var renderCheckoutCurrency = require('./renderCheckoutCurrency-BH8t2b2x.js');
4
+ var cart = require('./cart-BJpqPdFU.js');
5
+ var localization = require('./localization-BhNVhLZs.js');
6
+ var renderCheckoutCurrency = require('./renderCheckoutCurrency-BDvEZ3Hv.js');
7
7
  var cleanHtmlMarkdown = require('./cleanHtmlMarkdown-DpT-nZLH.js');
8
8
  var classes = require('./classes-D_DL168u.js');
9
- var zonosStore = require('./zonosStore-Bx9jK82G.js');
10
- var hasInclusivePrice = require('./hasInclusivePrice-CPCoVeU3.js');
9
+ var zonosStore = require('./zonosStore-CDV83QyK.js');
10
+ var hasInclusivePrice = require('./hasInclusivePrice-CEPf3_FG.js');
11
11
  var isSameHostCheckoutLink = require('./isSameHostCheckoutLink-DbmQ7Ha4.js');
12
- var paypal = require('./paypal-CuKshRmZ.js');
13
- var handleFetch = require('./handleFetch-DQLhurnE.js');
12
+ var paypal = require('./paypal-DCSqbdjW.js');
13
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
14
14
  var createCustomEvent = require('./createCustomEvent-Cs5zGImL.js');
15
- var getBorderRadius = require('./getBorderRadius-CyYZw4qq.js');
15
+ var getBorderRadius = require('./getBorderRadius-CJ_95w3o.js');
16
16
  var VarianceTest = require('./VarianceTest-C98whVgO.js');
17
- var shouldShowLanguageSelect = require('./shouldShowLanguageSelect-yAbtCmd8.js');
18
- var placeTestOrder = require('./placeTestOrder-7czjwkjm.js');
17
+ var shouldShowLanguageSelect = require('./shouldShowLanguageSelect-NOVWOU53.js');
18
+ var placeTestOrder = require('./placeTestOrder-Bkip4PUT.js');
19
19
  var isDarkColor = require('./isDarkColor-f-fD9c2l.js');
20
20
  var getContrastColor = require('./getContrastColor-B2Kn8XHA.js');
21
21
  var isColorVariable = require('./isColorVariable-CKoJdu9G.js');
22
- var updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-jMtfOL2m.js');
23
- var getMissingRequiredShippingFields = require('./getMissingRequiredShippingFields-D03ICqss.js');
22
+ var updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-KxwcsKhM.js');
23
+ var getMissingRequiredShippingFields = require('./getMissingRequiredShippingFields-DEbNbRAZ.js');
24
24
  var containsNonLatinChars = require('./containsNonLatinChars-D_OggJN6.js');
25
- var shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-TxekHCp7.js');
26
- var TaxId = require('./TaxId-Q6aDqqWv.js');
25
+ var shouldRenderShortAddressCodeInput = require('./shouldRenderShortAddressCodeInput-gpu_bMfp.js');
26
+ var taxIdRules = require('./taxIdRules-BBj8kQxJ.js');
27
+ var TaxId = require('./TaxId-ChhNwG04.js');
27
28
  require('./isContrastColor-B9ldIdpa.js');
28
- require('./submitGtag-D79e8u6s.js');
29
- require('./debounce-Cd2emZPn.js');
30
- require('./debounce-vY0QYT6o.js');
29
+ require('./submitGtag-D4sB7w4z.js');
30
+ require('./debounce-BhgA8_3W.js');
31
+ require('./debounce-DRPMxNew.js');
31
32
  require('./ShortAddressCode-C5l520-F.js');
32
33
 
33
34
  /**
@@ -1057,7 +1058,7 @@ const ZonosCheckoutFinish = class {
1057
1058
  };
1058
1059
  this.saveOrderIdForDuplicationIssue = () => {
1059
1060
  var _a, _b, _c, _d;
1060
- const existingPlacedOrderInfo = handleFetch.jsonParse(localStorage.getItem('zonos--placed-order-info'));
1061
+ const existingPlacedOrderInfo = handleFetch.jsonParse(handleFetch.safeGetItem('local', 'zonos--placed-order-info'));
1061
1062
  const placedOrderTime = {
1062
1063
  cartId: window.Zonos.cartId || null,
1063
1064
  checkoutSessionId: (existingPlacedOrderInfo === null || existingPlacedOrderInfo === void 0 ? void 0 : existingPlacedOrderInfo.checkoutSessionId) ||
@@ -1067,12 +1068,12 @@ const ZonosCheckoutFinish = class {
1067
1068
  time: (existingPlacedOrderInfo === null || existingPlacedOrderInfo === void 0 ? void 0 : existingPlacedOrderInfo.time) || Date.now(),
1068
1069
  zonosOrderNumber: ((_d = (_c = (_b = this.order) === null || _b === void 0 ? void 0 : _b.references) === null || _c === void 0 ? void 0 : _c.find(ref => ref.key === 'zonosOrderNumber')) === null || _d === void 0 ? void 0 : _d.value) || null,
1069
1070
  };
1070
- localStorage.setItem('zonos--placed-order-info', JSON.stringify(placedOrderTime));
1071
+ handleFetch.safeSetItem('local', 'zonos--placed-order-info', JSON.stringify(placedOrderTime));
1071
1072
  };
1072
1073
  }
1073
1074
  componentDidLoad() {
1074
1075
  // Reset local storage for placed order info
1075
- localStorage.removeItem('zonos--placed-order-info');
1076
+ handleFetch.safeRemoveItem('local', 'zonos--placed-order-info');
1076
1077
  if (this.overrideNotification) {
1077
1078
  // just show the notification and don't check any of the payment status
1078
1079
  this.notificationType = this.overrideNotification.type;
@@ -1096,11 +1097,11 @@ const ZonosCheckoutFinish = class {
1096
1097
  }
1097
1098
  render() {
1098
1099
  const isTestMode = handleFetch.getIsTestMode();
1099
- return (index.h(index.Host, { key: '76a3503d5c41cf3138e71b071fdb5e341fad1781', class: "zonos--checkout-finish zonos--elements", style: {
1100
+ return (index.h(index.Host, { key: 'd0e01955edb2c23678d39ef14a18a3b8cd0e2b28', class: "zonos--checkout-finish zonos--elements", style: {
1100
1101
  '--zonos--border-radius': getBorderRadius.getBorderRadius({
1101
1102
  overrideBorderStyle: this.borderRadius,
1102
1103
  }),
1103
- } }, this.isImmediateRedirecting && (index.h("div", { key: 'aab29e86b7d17dde74d873fe97f342e419e1b5cb', class: "loading-wrapper" }, index.h("zonos-spinner", { key: '29526f5d056c117ccd65bd1ed303761c04fdbdf3', size: 48 }))), !this.isLoading && !this.isImmediateRedirecting && (index.h("div", { key: '438b210be5c4c78c74d37e5fde8de994e379afa0', class: "zonos--finish-details" }, index.h("div", { key: '1cb133c14660035ea6395adb74d30790b69715f3', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '4e5a66524f7833916829c9dd7172225e872bb329', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '773a548cd7757af62b26bbe119e7dd078ab4df5b', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (index.h("zonos-button", { key: 'ea8c30af05aa57c05155f68b416668db16cfcd1c',
1104
+ } }, this.isImmediateRedirecting && (index.h("div", { key: 'fdd0468df80703543b942e729a3d90dd2d9f3eee', class: "loading-wrapper" }, index.h("zonos-spinner", { key: '82f8cb7f62ab073a4b39bf6fca67c7e37db94f5e', size: 48 }))), !this.isLoading && !this.isImmediateRedirecting && (index.h("div", { key: '1ad8c9a98307a017aca8493404fb9575b9f8eaa0', class: "zonos--finish-details" }, index.h("div", { key: '474a8780c96fbaf2ebb2e7db7f6a6734cb630baa', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '4f8ce6ac8ca854cd400db16345433cef732ba9de', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '5ccf3054ba802e69692ba0154390c4fb24e051e6', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (index.h("zonos-button", { key: '813fec3a2d1e77487935203baf92010e5d28392d',
1104
1105
  // Only show loading spinner if it's not an error notification
1105
1106
  loading: this.isWaitingToRedirect &&
1106
1107
  this.notificationType !== 'error', onClick: () => {
@@ -1112,9 +1113,9 @@ const ZonosCheckoutFinish = class {
1112
1113
  }
1113
1114
  this.closeClickHandler();
1114
1115
  }, size: "md", variant: "primary" }, localization.translate('Close'))), !window.Zonos.isLegacyCheckout &&
1115
- this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: '50120bf3a405a2b6e5433fe1bb744f0b836ac49f', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
1116
+ this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: 'ad9969e7e07881f872fa599e1dbfe481df03d51e', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
1116
1117
  cart.cartStore.step === 'finish' &&
1117
- this.notificationType === 'success' && (index.h("div", { key: '2794f9deea56b65de81ad92285270388a7089a73', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '2ba2ef7a26f78cf484d1625428d866cdfadd1b2f', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: 'fc689ad6192fb0cc86a9fcaf164660a056df8bc5', onClick: () => {
1118
+ this.notificationType === 'success' && (index.h("div", { key: '6b520c1b13cb036c15f798557b44f9f386a55d68', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '4ef2807d00be47ba87c4bf4223505923ab6e194a', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: '7db0f58fb43aefabd168f4a82be7daeef843d7cc', onClick: () => {
1118
1119
  const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
1119
1120
  this.redirectToUrl(isZonosDashboard
1120
1121
  ? '/orders/all'
@@ -1746,7 +1747,7 @@ const applyAddressCompletion = ({ data, event, }) => {
1746
1747
 
1747
1748
  const shortAddressCodeValidationResult = ({ shippingCountry, shortAddressCode, }) => {
1748
1749
  // Check to see if we are required to collect short address code for the shipping country or not
1749
- const isShortAddressCodeInputRendered = shouldRenderTaxIdInput.shouldRenderShortAddressCodeInput({
1750
+ const isShortAddressCodeInputRendered = shouldRenderShortAddressCodeInput.shouldRenderShortAddressCodeInput({
1750
1751
  countryCode: shippingCountry,
1751
1752
  });
1752
1753
  // If the short address code input is not even rendered, no need to validate anything and allow to proceed. Validate when short address code input is not even rendered would prevent the user from checking out
@@ -1789,88 +1790,85 @@ const isTaxIdRequired = (shippingCountry) => {
1789
1790
  ];
1790
1791
  return requireTaxIdCountry.includes(shippingCountry);
1791
1792
  };
1792
- const taxIdValidationResult = ({ companyName, shippingCountry, taxId, }) => {
1793
- // Check to see if we are required to collect tax id for the shipping country or not
1794
- const isTaxIdInputRendered = shouldRenderTaxIdInput.shouldRenderTaxIdInput({
1793
+ const invalid = (error, field) => ({
1794
+ error,
1795
+ field,
1796
+ valid: false,
1797
+ });
1798
+ const valid = () => ({
1799
+ error: null,
1800
+ field: null,
1801
+ valid: true,
1802
+ });
1803
+ const taxIdValidationResult = ({ companyName, shippingCountry, shouldRequirePeruTaxId, taxId, taxIdType, }) => {
1804
+ const { rendered, selectedType, typeOptions } = cart.resolveTaxIdSelection({
1795
1805
  companyName,
1796
1806
  countryCode: shippingCountry,
1807
+ shouldRequirePeruTaxId,
1808
+ taxIdType,
1797
1809
  });
1798
1810
  // If the tax id input is not even rendered, no need to validate anything and allow to proceed. Validate when tax id input is not even rendered would prevent the user from checking out
1799
- if (!isTaxIdInputRendered) {
1800
- return {
1801
- error: null,
1802
- valid: true,
1803
- };
1811
+ if (!rendered) {
1812
+ return valid();
1813
+ }
1814
+ // The number field is hidden until a type is chosen.
1815
+ if (typeOptions && !selectedType) {
1816
+ return invalid('Tax id type is required', 'type');
1817
+ }
1818
+ // Spaces and hyphens count as blank only. The original text is left unchanged.
1819
+ if (taxIdRules.isPeruTaxIdActive({
1820
+ countryCode: shippingCountry,
1821
+ shouldRequirePeruTaxId,
1822
+ }) &&
1823
+ selectedType &&
1824
+ taxIdRules.isPeruTaxIdType(selectedType.value)) {
1825
+ if (!taxIdRules.stripTaxIdSeparators(taxId)) {
1826
+ return invalid('Tax id is required', 'value');
1827
+ }
1828
+ if (taxIdRules.peruTaxIdTypeFromValue(taxId) !== selectedType.value) {
1829
+ return invalid(TaxId.peruTaxIdFormatError[selectedType.value], 'value');
1830
+ }
1831
+ return valid();
1804
1832
  }
1805
1833
  // Cache the result of isTaxIdRequired for reuse
1806
1834
  const taxIdRequired = isTaxIdRequired(shippingCountry);
1807
1835
  if (!taxIdRequired) {
1808
1836
  // If the shipping country does not require a tax id, the validation immediately returns valid
1809
- return {
1810
- error: null,
1811
- valid: true,
1812
- };
1837
+ return valid();
1813
1838
  }
1814
1839
  // For all EU countries, tax id is not required if company name is not filled (not business address)
1815
1840
  if (TaxId.euCountryCodes.includes(shippingCountry)) {
1816
1841
  if (!companyName.trim()) {
1817
- return {
1818
- error: null,
1819
- valid: true,
1820
- };
1842
+ return valid();
1821
1843
  }
1822
1844
  if (!taxId) {
1823
- return {
1824
- error: 'Tax id is required',
1825
- valid: false,
1826
- };
1845
+ return invalid('Tax id is required', 'value');
1827
1846
  }
1828
- return {
1829
- error: null,
1830
- valid: true,
1831
- };
1847
+ return valid();
1832
1848
  }
1833
1849
  if (!taxId) {
1834
- return {
1835
- error: 'Tax id is required',
1836
- valid: false,
1837
- };
1850
+ return invalid('Tax id is required', 'value');
1838
1851
  }
1839
1852
  if (shippingCountry === 'AR') {
1840
- const isValid = /^[0-9]{2}-?[0-9]{8}-?[0-9]$/.test(taxId);
1841
- if (!isValid) {
1842
- return {
1843
- error: 'Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).',
1844
- valid: false,
1845
- };
1853
+ const isValidAr = /^[0-9]{2}-?[0-9]{8}-?[0-9]$/.test(taxId);
1854
+ if (!isValidAr) {
1855
+ return invalid('Invalid CUIT/CUIL format. Must contain 11 digits, with or without dashes (XX-XXXXXXXX-X).', 'value');
1846
1856
  }
1847
- return {
1848
- error: null,
1849
- valid: true,
1850
- };
1851
- }
1852
- // validate tax id for mexico;
1853
- if (shippingCountry === 'MX') {
1854
- // RFC: 3-4 letters + 6 digit date + 3 character homoclave (12-13 total)
1855
- const isValidRfc = /^[A-ZÑ]{3,4}[0-9]{6}[A-Z0-9]{3}$/.test(taxId);
1856
- // CURP: 4 letters + 6 digit date + gender (H/M/X) + 5 letters + alphanumeric + digit (18 total)
1857
- const isValidCurp = /^[A-Z]{4}[0-9]{6}[HMX][A-Z]{5}[A-Z0-9][0-9]$/.test(taxId);
1858
- if (!isValidRfc && !isValidCurp) {
1859
- return {
1860
- error: 'Invalid RFC or CURP format. Must be a 12–13 character RFC or an 18 character CURP, uppercase letters and numbers only.',
1861
- valid: false,
1862
- };
1857
+ return valid();
1858
+ }
1859
+ // validate tax id for mexico against the type the shopper selected
1860
+ if (shippingCountry === 'MX' && selectedType) {
1861
+ const isRfc = selectedType.value === 'RFC';
1862
+ const isValidMx = isRfc ? taxIdRules.rfcRegex.test(taxId) : taxIdRules.curpRegex.test(taxId);
1863
+ if (!isValidMx) {
1864
+ return invalid(isRfc
1865
+ ? 'Invalid RFC format. Must be 12–13 uppercase letters and numbers.'
1866
+ : 'Invalid CURP format. Must be 18 uppercase letters and numbers.', 'value');
1863
1867
  }
1864
- return {
1865
- error: null,
1866
- valid: true,
1867
- };
1868
+ return valid();
1868
1869
  }
1869
1870
  // Other countries doesn't need to validate tax id in the right format
1870
- return {
1871
- error: null,
1872
- valid: true,
1873
- };
1871
+ return valid();
1874
1872
  };
1875
1873
 
1876
1874
  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:-4px;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%}.mobile.mobile.sc-zonos-customer-info-h{-ms-scroll-chaining:chained;overscroll-behavior:auto}.mobile.mobile.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{-ms-scroll-chaining:chained;overscroll-behavior:auto}`;
@@ -1911,6 +1909,10 @@ const ZonosCustomerInfo = class {
1911
1909
  * Whether or not the address is being validated
1912
1910
  */
1913
1911
  this.isValidatingAddress = false;
1912
+ /**
1913
+ * Which tax id control the current error belongs on
1914
+ */
1915
+ this.taxIdErrorField = '';
1914
1916
  /**
1915
1917
  * Whether or not the tax id input is invalid
1916
1918
  */
@@ -2210,16 +2212,19 @@ const ZonosCustomerInfo = class {
2210
2212
  });
2211
2213
  VarianceTest.log('==> isValidLink', 'info', isValidLink);
2212
2214
  // validate tax id input if it's required for specific countries, optional otherwise
2213
- const { error, valid: validTaxId } = taxIdValidationResult({
2215
+ const { error, field: taxIdErrorField, valid: validTaxId, } = taxIdValidationResult({
2214
2216
  companyName: cart.stripeStore.companyName,
2215
2217
  shippingCountry: this.shippingCountry,
2218
+ shouldRequirePeruTaxId: zonosStore.getShouldRequirePeruTaxId(),
2216
2219
  taxId: cart.stripeStore.taxId,
2220
+ taxIdType: cart.stripeStore.taxIdType,
2217
2221
  });
2218
2222
  const { error: shortAddressCodeError, valid: validShortAddressCode } = shortAddressCodeValidationResult({
2219
2223
  shippingCountry: this.shippingCountry,
2220
2224
  shortAddressCode: cart.stripeStore.shortAddressCode,
2221
2225
  });
2222
2226
  this.taxIdErrorMessage = !validTaxId ? localization.translate(error) : '';
2227
+ this.taxIdErrorField = taxIdErrorField || '';
2223
2228
  this.shortAddressCodeErrorMessage = !validShortAddressCode
2224
2229
  ? localization.translate(shortAddressCodeError)
2225
2230
  : '';
@@ -2320,10 +2325,10 @@ const ZonosCustomerInfo = class {
2320
2325
  }
2321
2326
  // Render custom address component if the custom address form is enabled
2322
2327
  if (this.addressFormRenderType === 'zonos') {
2323
- return (index.h("zonos-custom-address", { defaultAddress: defaultAddress, shortAddressCodeErrorMessage: this.shortAddressCodeErrorMessage, taxIdErrorMessage: this.taxIdErrorMessage, titleText: localization.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
2328
+ return (index.h("zonos-custom-address", { defaultAddress: defaultAddress, shortAddressCodeErrorMessage: this.shortAddressCodeErrorMessage, taxIdErrorField: this.taxIdErrorField, taxIdErrorMessage: this.taxIdErrorMessage, titleText: localization.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
2324
2329
  }
2325
2330
  // Render Stripe address component by default
2326
- return (index.h("zonos-address", { defaultAddress: defaultAddress, shortAddressCodeErrorMessage: this.shortAddressCodeErrorMessage, taxIdErrorMessage: this.taxIdErrorMessage, titleText: localization.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
2331
+ return (index.h("zonos-address", { defaultAddress: defaultAddress, shortAddressCodeErrorMessage: this.shortAddressCodeErrorMessage, taxIdErrorField: this.taxIdErrorField, taxIdErrorMessage: this.taxIdErrorMessage, titleText: localization.translate(type === 'shipping' ? 'Shipping address' : 'Billing address'), type: type }, this.renderExceededCharacterLimitError(type)));
2327
2332
  };
2328
2333
  }
2329
2334
  watchShowErrorBanner() {
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DAAr465v.js');
4
- var zonosStore = require('./zonosStore-Bx9jK82G.js');
4
+ var zonosStore = require('./zonosStore-CDV83QyK.js');
5
5
  var classes = require('./classes-D_DL168u.js');
6
- var getBorderRadius = require('./getBorderRadius-CyYZw4qq.js');
6
+ var getBorderRadius = require('./getBorderRadius-CJ_95w3o.js');
7
7
  var isDarkColor = require('./isDarkColor-f-fD9c2l.js');
8
8
  require('./VarianceTest-C98whVgO.js');
9
9
 
@@ -1,26 +1,27 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DAAr465v.js');
4
- var cart = require('./cart-B6Aty-21.js');
5
- var paypal = require('./paypal-CuKshRmZ.js');
6
- var localization = require('./localization-BzNeXeDe.js');
7
- var zonosStore = require('./zonosStore-Bx9jK82G.js');
4
+ var cart = require('./cart-BJpqPdFU.js');
5
+ var paypal = require('./paypal-DCSqbdjW.js');
6
+ var localization = require('./localization-BhNVhLZs.js');
7
+ var zonosStore = require('./zonosStore-CDV83QyK.js');
8
8
  var buildCartItemsByTempCart = require('./buildCartItemsByTempCart-ILzonEjb.js');
9
- var handleFetch = require('./handleFetch-DQLhurnE.js');
10
- var updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-jMtfOL2m.js');
9
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
10
+ var updateCheckoutSessionAttributes = require('./updateCheckoutSessionAttributes-KxwcsKhM.js');
11
11
  var VarianceTest = require('./VarianceTest-C98whVgO.js');
12
12
  var CheckoutConfig = require('./CheckoutConfig-B7JRM7yr.js');
13
13
  var classes = require('./classes-D_DL168u.js');
14
14
  var createCustomEvent = require('./createCustomEvent-Cs5zGImL.js');
15
- var getBorderRadius = require('./getBorderRadius-CyYZw4qq.js');
15
+ var getBorderRadius = require('./getBorderRadius-CJ_95w3o.js');
16
16
  var isDarkColor = require('./isDarkColor-f-fD9c2l.js');
17
17
  var styles = require('./styles-nowYls3K.js');
18
18
  var RemoveIcon = require('./RemoveIcon-CuM1YmjP.js');
19
- require('./TaxId-Q6aDqqWv.js');
19
+ require('./taxIdRules-BBj8kQxJ.js');
20
+ require('./TaxId-ChhNwG04.js');
20
21
  require('./isContrastColor-B9ldIdpa.js');
21
- require('./submitGtag-D79e8u6s.js');
22
- require('./debounce-Cd2emZPn.js');
23
- require('./debounce-vY0QYT6o.js');
22
+ require('./submitGtag-D4sB7w4z.js');
23
+ require('./debounce-BhgA8_3W.js');
24
+ require('./debounce-DRPMxNew.js');
24
25
 
25
26
  /**
26
27
  * Check if store discount is enabled
@@ -2149,9 +2150,9 @@ const ZonosCheckout = class {
2149
2150
  window.location.reload();
2150
2151
  }
2151
2152
  handleOrderDuplication() {
2152
- const existingPlacedOrderInfo = handleFetch.jsonParse(localStorage.getItem('zonos--placed-order-info'));
2153
+ const existingPlacedOrderInfo = handleFetch.jsonParse(handleFetch.safeGetItem('local', 'zonos--placed-order-info'));
2153
2154
  if (!existingPlacedOrderInfo) {
2154
- localStorage.removeItem('zonos--placed-order-info');
2155
+ handleFetch.safeRemoveItem('local', 'zonos--placed-order-info');
2155
2156
  return;
2156
2157
  }
2157
2158
  const elapsed = Date.now() - existingPlacedOrderInfo.time;
@@ -2163,7 +2164,7 @@ const ZonosCheckout = class {
2163
2164
  if (elapsed > overrideExpiredDuplication) {
2164
2165
  VarianceTest.log(`=== Existing placed order info is older than ${overrideExpiredDuplication}ms, cleaning localStorage`, 'warn');
2165
2166
  // remove the placed order info if it's older than 5 minutes and do nothing.
2166
- localStorage.removeItem('zonos--placed-order-info');
2167
+ handleFetch.safeRemoveItem('local', 'zonos--placed-order-info');
2167
2168
  return;
2168
2169
  }
2169
2170
  // Set placed order info to show the confirm notification to the user
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DAAr465v.js');
4
- var zonosStore = require('./zonosStore-Bx9jK82G.js');
4
+ var zonosStore = require('./zonosStore-CDV83QyK.js');
5
5
  require('./VarianceTest-C98whVgO.js');
6
6
 
7
7
  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}`;
@@ -1,17 +1,18 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DAAr465v.js');
4
- var cart = require('./cart-B6Aty-21.js');
4
+ var cart = require('./cart-BJpqPdFU.js');
5
5
  var cleanHtmlMarkdown = require('./cleanHtmlMarkdown-DpT-nZLH.js');
6
- var zonosStore = require('./zonosStore-Bx9jK82G.js');
6
+ var zonosStore = require('./zonosStore-CDV83QyK.js');
7
7
  var classes = require('./classes-D_DL168u.js');
8
8
  var styles = require('./styles-nowYls3K.js');
9
- require('./localization-BzNeXeDe.js');
10
- require('./handleFetch-DQLhurnE.js');
9
+ require('./localization-BhNVhLZs.js');
10
+ require('./handleFetch-DVfjFTYO.js');
11
11
  require('./VarianceTest-C98whVgO.js');
12
+ require('./taxIdRules-BBj8kQxJ.js');
13
+ require('./TaxId-ChhNwG04.js');
12
14
  require('./isDarkColor-f-fD9c2l.js');
13
- require('./getBorderRadius-CyYZw4qq.js');
14
- require('./TaxId-Q6aDqqWv.js');
15
+ require('./getBorderRadius-CJ_95w3o.js');
15
16
 
16
17
  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}`;
17
18
 
@@ -1,25 +1,26 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DAAr465v.js');
4
- var collect = require('./collect-DnrvaXUI.js');
5
- var cart = require('./cart-B6Aty-21.js');
6
- var paypal = require('./paypal-CuKshRmZ.js');
7
- var localization = require('./localization-BzNeXeDe.js');
8
- var zonosStore = require('./zonosStore-Bx9jK82G.js');
9
- var handleFetch = require('./handleFetch-DQLhurnE.js');
4
+ var collect = require('./collect-CyUttsvB.js');
5
+ var cart = require('./cart-BJpqPdFU.js');
6
+ var paypal = require('./paypal-DCSqbdjW.js');
7
+ var localization = require('./localization-BhNVhLZs.js');
8
+ var zonosStore = require('./zonosStore-CDV83QyK.js');
9
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
10
10
  var createCustomEvent = require('./createCustomEvent-Cs5zGImL.js');
11
- var getBorderRadius = require('./getBorderRadius-CyYZw4qq.js');
11
+ var getBorderRadius = require('./getBorderRadius-CJ_95w3o.js');
12
12
  var VarianceTest = require('./VarianceTest-C98whVgO.js');
13
13
  var isCollectMobileTablet = require('./isCollectMobileTablet-Cx2nZ15_.js');
14
14
  var classes = require('./classes-D_DL168u.js');
15
- var shouldShowLanguageSelect = require('./shouldShowLanguageSelect-yAbtCmd8.js');
16
- var renderCheckoutCurrency = require('./renderCheckoutCurrency-BH8t2b2x.js');
17
- var placeTestOrder = require('./placeTestOrder-7czjwkjm.js');
15
+ var shouldShowLanguageSelect = require('./shouldShowLanguageSelect-NOVWOU53.js');
16
+ var renderCheckoutCurrency = require('./renderCheckoutCurrency-BDvEZ3Hv.js');
17
+ var placeTestOrder = require('./placeTestOrder-Bkip4PUT.js');
18
18
  var renderFallback = require('./renderFallback-Bme86uk8.js');
19
+ require('./taxIdRules-BBj8kQxJ.js');
20
+ require('./TaxId-ChhNwG04.js');
19
21
  require('./isDarkColor-f-fD9c2l.js');
20
- require('./TaxId-Q6aDqqWv.js');
21
22
  require('./isContrastColor-B9ldIdpa.js');
22
- require('./submitGtag-D79e8u6s.js');
23
+ require('./submitGtag-D4sB7w4z.js');
23
24
 
24
25
  var RemoveIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
25
26
 
@@ -1,22 +1,23 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DAAr465v.js');
4
- var collect = require('./collect-DnrvaXUI.js');
5
- var cart = require('./cart-B6Aty-21.js');
6
- var paypal = require('./paypal-CuKshRmZ.js');
7
- var localization = require('./localization-BzNeXeDe.js');
8
- var zonosStore = require('./zonosStore-Bx9jK82G.js');
4
+ var collect = require('./collect-CyUttsvB.js');
5
+ var cart = require('./cart-BJpqPdFU.js');
6
+ var paypal = require('./paypal-DCSqbdjW.js');
7
+ var localization = require('./localization-BhNVhLZs.js');
8
+ var zonosStore = require('./zonosStore-CDV83QyK.js');
9
9
  var buildCartItemsByTempCart = require('./buildCartItemsByTempCart-ILzonEjb.js');
10
- var handleFetch = require('./handleFetch-DQLhurnE.js');
10
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
11
11
  var isCollectMobileTablet = require('./isCollectMobileTablet-Cx2nZ15_.js');
12
12
  var classes = require('./classes-D_DL168u.js');
13
13
  var VarianceTest = require('./VarianceTest-C98whVgO.js');
14
14
  var renderFallback = require('./renderFallback-Bme86uk8.js');
15
+ require('./taxIdRules-BBj8kQxJ.js');
16
+ require('./TaxId-ChhNwG04.js');
15
17
  require('./isDarkColor-f-fD9c2l.js');
16
- require('./getBorderRadius-CyYZw4qq.js');
17
- require('./TaxId-Q6aDqqWv.js');
18
+ require('./getBorderRadius-CJ_95w3o.js');
18
19
  require('./isContrastColor-B9ldIdpa.js');
19
- require('./submitGtag-D79e8u6s.js');
20
+ require('./submitGtag-D4sB7w4z.js');
20
21
 
21
22
  var ChevronDownIcon = `<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
22
23
 
@@ -1,16 +1,17 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DAAr465v.js');
4
- var cart = require('./cart-B6Aty-21.js');
5
- var localization = require('./localization-BzNeXeDe.js');
6
- var zonosStore = require('./zonosStore-Bx9jK82G.js');
4
+ var cart = require('./cart-BJpqPdFU.js');
5
+ var localization = require('./localization-BhNVhLZs.js');
6
+ var zonosStore = require('./zonosStore-CDV83QyK.js');
7
7
  var getGenericSettingsOverride = require('./getGenericSettingsOverride-CL6l6wvX.js');
8
- var handleFetch = require('./handleFetch-DQLhurnE.js');
8
+ var handleFetch = require('./handleFetch-DVfjFTYO.js');
9
9
  var VarianceTest = require('./VarianceTest-C98whVgO.js');
10
- var submitGtag = require('./submitGtag-D79e8u6s.js');
10
+ var submitGtag = require('./submitGtag-D4sB7w4z.js');
11
+ require('./taxIdRules-BBj8kQxJ.js');
12
+ require('./TaxId-ChhNwG04.js');
11
13
  require('./isDarkColor-f-fD9c2l.js');
12
- require('./getBorderRadius-CyYZw4qq.js');
13
- require('./TaxId-Q6aDqqWv.js');
14
+ require('./getBorderRadius-CJ_95w3o.js');
14
15
 
15
16
  const getZonosSettings = async () => {
16
17
  if (window.Zonos.cartSettings) {
@@ -804,7 +805,7 @@ const ZonosController = class {
804
805
  // Checkout also runs without merchant cart callbacks when a cart is
805
806
  // prefetched (e.g. `tempCartUUID` -> `cartData`) or when resuming a
806
807
  // payment via the Stripe client secret. Stripe must still load for those.
807
- const clientSecret = new URL(window.location.href).searchParams.get('payment_intent_client_secret') || sessionStorage.getItem('zonos--client-secret');
808
+ const clientSecret = new URL(window.location.href).searchParams.get('payment_intent_client_secret') || handleFetch.safeGetItem('session', 'zonos--client-secret');
808
809
  const hasPrefetchedCheckoutContext = !!(window.Zonos.cartId && window.Zonos.cartData) || !!clientSecret;
809
810
  if (!hasCartCallback && !hasPrefetchedCheckoutContext) {
810
811
  VarianceTest.log(`Skip loading Stripe because no cart callback (buildCartDetail/createCartId), prefetched cart, or payment client secret is present`, 'warn');
@@ -869,7 +870,7 @@ const ZonosController = class {
869
870
  zonosStore.zonosStore.organizationName = organizationName;
870
871
  }
871
872
  render() {
872
- return index.h(index.Host, { key: '1714865012d806892f03e03896ee2f04aa1a729d', class: "zonos--elements" });
873
+ return index.h(index.Host, { key: 'a72ab4fb14df090eb24520fd5821746caa61e318', class: "zonos--elements" });
873
874
  }
874
875
  };
875
876
  ZonosController.style = zonosControllerCss();
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DAAr465v.js');
4
- var localization = require('./localization-BzNeXeDe.js');
5
- var zonosStore = require('./zonosStore-Bx9jK82G.js');
4
+ var localization = require('./localization-BhNVhLZs.js');
5
+ var zonosStore = require('./zonosStore-CDV83QyK.js');
6
6
  var classes = require('./classes-D_DL168u.js');
7
- require('./handleFetch-DQLhurnE.js');
7
+ require('./handleFetch-DVfjFTYO.js');
8
8
  require('./VarianceTest-C98whVgO.js');
9
9
 
10
10
  const zonosCountryFlagCss = () => `: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{display:-ms-inline-flexbox;display:inline-flex}:host .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}`;
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
 
3
3
  var index = require('./index-DAAr465v.js');
4
- var localization = require('./localization-BzNeXeDe.js');
5
- var zonosStore = require('./zonosStore-Bx9jK82G.js');
4
+ var localization = require('./localization-BhNVhLZs.js');
5
+ var zonosStore = require('./zonosStore-CDV83QyK.js');
6
6
  var formatStringWithLinks = require('./formatStringWithLinks-vOVkAjlu.js');
7
7
  var isDarkColor = require('./isDarkColor-f-fD9c2l.js');
8
- var shouldShowLanguageSelect = require('./shouldShowLanguageSelect-yAbtCmd8.js');
8
+ var shouldShowLanguageSelect = require('./shouldShowLanguageSelect-NOVWOU53.js');
9
9
  var classes = require('./classes-D_DL168u.js');
10
- require('./handleFetch-DQLhurnE.js');
10
+ require('./handleFetch-DVfjFTYO.js');
11
11
  require('./VarianceTest-C98whVgO.js');
12
12
  require('./isSameHostCheckoutLink-DbmQ7Ha4.js');
13
13