@zonos/elements 1.3.241 → 1.3.242

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 (277) hide show
  1. package/dist/cjs/{cart-376f0f29.js → cart-4246c004.js} +1 -1
  2. package/dist/cjs/{hasInclusivePrice-2e306ea5.js → hasInclusivePrice-ac0440e7.js} +1 -1
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/{invoice-856220a7.js → invoice-d9655e9e.js} +2 -2
  5. package/dist/cjs/{isCollectMobileTablet-72ea7338.js → isCollectMobileTablet-65da8408.js} +2 -2
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{localization-08aa03da.js → localization-ec5a6780.js} +120 -0
  8. package/dist/cjs/{paypal-ef7e2610.js → paypal-a3921278.js} +2 -2
  9. package/dist/cjs/{placeTestOrder-427786ae.js → placeTestOrder-907b981d.js} +2 -2
  10. package/dist/cjs/{renderCheckoutCurrency-9057dec8.js → renderCheckoutCurrency-5fe59d60.js} +2 -2
  11. package/dist/cjs/zonos-address-display_9.cjs.entry.js +20 -20
  12. package/dist/cjs/zonos-address_4.cjs.entry.js +5 -5
  13. package/dist/cjs/zonos-card_5.cjs.entry.js +5 -5
  14. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +9 -9
  15. package/dist/cjs/zonos-checkout.cjs.entry.js +119 -79
  16. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -5
  17. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +6 -6
  18. package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  20. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  21. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-country-select_4.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-elements.cjs.js +1 -1
  24. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
  25. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  27. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
  28. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +6 -6
  29. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  30. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  31. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  32. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  33. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  34. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  35. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  36. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +13 -3
  38. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +8 -0
  39. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +41 -3
  40. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  41. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  42. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  43. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  44. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  45. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  46. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  47. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  48. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  49. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  50. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  51. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  52. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  53. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  54. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  55. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  56. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  57. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  58. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  59. package/dist/collection/components/main/zonos-controller.js +1 -1
  60. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  61. package/dist/collection/components/store/translationStore/strings.arabic.js +6 -0
  62. package/dist/collection/components/store/translationStore/strings.base.js +6 -0
  63. package/dist/collection/components/store/translationStore/strings.chinese.js +6 -0
  64. package/dist/collection/components/store/translationStore/strings.danish.js +6 -0
  65. package/dist/collection/components/store/translationStore/strings.dutch.js +6 -0
  66. package/dist/collection/components/store/translationStore/strings.french.js +6 -0
  67. package/dist/collection/components/store/translationStore/strings.german.js +6 -0
  68. package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -0
  69. package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -0
  70. package/dist/collection/components/store/translationStore/strings.italian.js +6 -0
  71. package/dist/collection/components/store/translationStore/strings.japanese.js +6 -0
  72. package/dist/collection/components/store/translationStore/strings.korean.js +6 -0
  73. package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -0
  74. package/dist/collection/components/store/translationStore/strings.polish.js +6 -0
  75. package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -0
  76. package/dist/collection/components/store/translationStore/strings.russian.js +6 -0
  77. package/dist/collection/components/store/translationStore/strings.spanish.js +6 -0
  78. package/dist/collection/components/store/translationStore/strings.swedish.js +6 -0
  79. package/dist/collection/components/store/translationStore/strings.turkish.js +6 -0
  80. package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -0
  81. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  82. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  83. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  84. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  85. package/dist/collection/components/utils/checkout/isShippableCountry.js +15 -1
  86. package/dist/collection/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.js +129 -0
  87. package/dist/collection/types/generated/graphql.internal.types.js +2 -0
  88. package/dist/esm/{cart-60532eb4.js → cart-697f78dc.js} +2 -2
  89. package/dist/esm/{hasInclusivePrice-736c9eec.js → hasInclusivePrice-f41e52b8.js} +1 -1
  90. package/dist/esm/index.js +7 -7
  91. package/dist/esm/{invoice-cbb44b0b.js → invoice-50918381.js} +2 -2
  92. package/dist/esm/{isCollectMobileTablet-e5503ab8.js → isCollectMobileTablet-2e7b4f01.js} +2 -2
  93. package/dist/esm/loader.js +1 -1
  94. package/dist/esm/{localization-285da14c.js → localization-ee8bb238.js} +120 -0
  95. package/dist/esm/{paypal-ac12eedb.js → paypal-b3299b37.js} +2 -2
  96. package/dist/esm/{placeTestOrder-bba48f55.js → placeTestOrder-245f2030.js} +2 -2
  97. package/dist/esm/{renderCheckoutCurrency-0176e66f.js → renderCheckoutCurrency-9404ed70.js} +2 -2
  98. package/dist/esm/zonos-address-display_9.entry.js +20 -20
  99. package/dist/esm/zonos-address_4.entry.js +5 -5
  100. package/dist/esm/zonos-card_5.entry.js +5 -5
  101. package/dist/esm/zonos-cart-items_12.entry.js +9 -9
  102. package/dist/esm/zonos-checkout.entry.js +120 -80
  103. package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -5
  104. package/dist/esm/zonos-collect-finish_6.entry.js +6 -6
  105. package/dist/esm/zonos-collect.entry.js +4 -4
  106. package/dist/esm/zonos-component.entry.js +1 -1
  107. package/dist/esm/zonos-controller.entry.js +3 -3
  108. package/dist/esm/zonos-country-flag.entry.js +1 -1
  109. package/dist/esm/zonos-country-select_4.entry.js +5 -5
  110. package/dist/esm/zonos-elements.js +1 -1
  111. package/dist/esm/zonos-hello-dialog.entry.js +6 -6
  112. package/dist/esm/zonos-hello.entry.js +1 -1
  113. package/dist/esm/zonos-input.entry.js +4 -4
  114. package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
  115. package/dist/esm/zonos-invoice-finish_5.entry.js +6 -6
  116. package/dist/esm/zonos-invoice.entry.js +4 -4
  117. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  118. package/dist/esm/zonos-link.entry.js +1 -1
  119. package/dist/esm/zonos-logo.entry.js +2 -2
  120. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  121. package/dist/esm/zonos-toggle.entry.js +2 -2
  122. package/dist/esm/zonos-tooltip.entry.js +2 -2
  123. package/dist/esm/zonos-v-stack.entry.js +2 -2
  124. package/dist/esm-es5/{cart-60532eb4.js → cart-697f78dc.js} +1 -1
  125. package/dist/esm-es5/{hasInclusivePrice-736c9eec.js → hasInclusivePrice-f41e52b8.js} +1 -1
  126. package/dist/esm-es5/index.js +1 -1
  127. package/dist/esm-es5/{invoice-cbb44b0b.js → invoice-50918381.js} +1 -1
  128. package/dist/esm-es5/{isCollectMobileTablet-e5503ab8.js → isCollectMobileTablet-2e7b4f01.js} +1 -1
  129. package/dist/esm-es5/loader.js +1 -1
  130. package/dist/esm-es5/localization-ee8bb238.js +1 -0
  131. package/dist/esm-es5/{paypal-ac12eedb.js → paypal-b3299b37.js} +1 -1
  132. package/dist/esm-es5/{placeTestOrder-bba48f55.js → placeTestOrder-245f2030.js} +1 -1
  133. package/dist/esm-es5/{renderCheckoutCurrency-0176e66f.js → renderCheckoutCurrency-9404ed70.js} +1 -1
  134. package/dist/esm-es5/zonos-address-display_9.entry.js +1 -1
  135. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  136. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  137. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  138. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  139. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  140. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  141. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  142. package/dist/esm-es5/zonos-component.entry.js +1 -1
  143. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  144. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  145. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  146. package/dist/esm-es5/zonos-elements.js +1 -1
  147. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  148. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  149. package/dist/esm-es5/zonos-input.entry.js +1 -1
  150. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  151. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  152. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  153. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  154. package/dist/esm-es5/zonos-link.entry.js +1 -1
  155. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  156. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  157. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  158. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  159. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  160. package/dist/scripts/index.d.ts +34 -2
  161. package/dist/scripts/index.js +1 -1
  162. package/dist/scripts/loadZonos.js +1 -1
  163. package/dist/scripts/zonos.js +1 -1
  164. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +4 -0
  165. package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +8 -0
  166. package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -0
  167. package/dist/types/components/store/translationStore/strings.base.d.ts +6 -0
  168. package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -0
  169. package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -0
  170. package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -0
  171. package/dist/types/components/store/translationStore/strings.french.d.ts +6 -0
  172. package/dist/types/components/store/translationStore/strings.german.d.ts +6 -0
  173. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -0
  174. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -0
  175. package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -0
  176. package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -0
  177. package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -0
  178. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -0
  179. package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -0
  180. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -0
  181. package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -0
  182. package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -0
  183. package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -0
  184. package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -0
  185. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -0
  186. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  187. package/dist/types/components/utils/checkout/isShippableCountry.d.ts +2 -1
  188. package/dist/types/components/utils/checkout/watchImmediateBigcommerceDomesticCheckoutRedirect.d.ts +24 -0
  189. package/dist/types/components.d.ts +16 -0
  190. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  191. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  192. package/dist/types/types/generated/graphql.internal.types.d.ts +14 -2
  193. package/dist/types/types/generated/graphql.internal.types.ts +15 -3
  194. package/dist/zonos-elements/index.esm.js +1 -1
  195. package/dist/zonos-elements/{p-3a19ae6e.system.js → p-036e6a72.system.js} +1 -1
  196. package/dist/zonos-elements/{p-328990f0.js → p-1023a77d.js} +1 -1
  197. package/dist/zonos-elements/p-13b3a9bd.entry.js +1 -0
  198. package/dist/zonos-elements/{p-5afb9260.system.entry.js → p-14c920b2.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-22e26d61.entry.js → p-1864fc4e.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-f2614438.js → p-1af042d1.js} +1 -1
  201. package/dist/zonos-elements/{p-4954a927.system.entry.js → p-1c54c3db.system.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-32fddb6d.system.entry.js → p-1db4ae37.system.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-59a76f73.entry.js → p-231baaf8.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-8dc025c7.system.entry.js → p-232b0fb5.system.entry.js} +1 -1
  205. package/dist/zonos-elements/p-258407c6.js +1 -0
  206. package/dist/zonos-elements/{p-de517648.entry.js → p-28077dd4.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-c5195813.entry.js → p-29bb70e0.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-1a5a23ed.js → p-2aa284e6.js} +1 -1
  209. package/dist/zonos-elements/{p-8792fef2.system.entry.js → p-2c2a1339.system.entry.js} +1 -1
  210. package/dist/zonos-elements/p-2dd9b3e0.entry.js +1 -0
  211. package/dist/zonos-elements/{p-60397a04.system.entry.js → p-3318ba9e.system.entry.js} +1 -1
  212. package/dist/zonos-elements/p-343dee8b.system.js +1 -0
  213. package/dist/zonos-elements/{p-bd603c1a.entry.js → p-3e67ca05.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-2ed81f5d.system.js → p-457a2957.system.js} +1 -1
  215. package/dist/zonos-elements/{p-85205ac8.system.js → p-5216584e.system.js} +1 -1
  216. package/dist/zonos-elements/{p-2ab3f86c.system.entry.js → p-5aff8a31.system.entry.js} +1 -1
  217. package/dist/zonos-elements/p-5feb3750.system.entry.js +1 -0
  218. package/dist/zonos-elements/{p-61aa9365.system.entry.js → p-633017f0.system.entry.js} +1 -1
  219. package/dist/zonos-elements/{p-8fd37163.entry.js → p-635b8da9.entry.js} +1 -1
  220. package/dist/zonos-elements/{p-cd12c86c.system.js → p-67414f66.system.js} +1 -1
  221. package/dist/zonos-elements/{p-d9007f2e.system.entry.js → p-689ce3eb.system.entry.js} +1 -1
  222. package/dist/zonos-elements/p-6dc9b9e5.js +1 -0
  223. package/dist/zonos-elements/p-752dae00.system.js +1 -0
  224. package/dist/zonos-elements/{p-fc43442d.system.entry.js → p-75813a38.system.entry.js} +1 -1
  225. package/dist/zonos-elements/p-7e51fe84.system.entry.js +1 -0
  226. package/dist/zonos-elements/{p-f04c208e.js → p-8159d0f8.js} +2 -2
  227. package/dist/zonos-elements/{p-149365e3.system.entry.js → p-8432de4c.system.entry.js} +1 -1
  228. package/dist/zonos-elements/{p-2f869f2c.system.entry.js → p-84cf1a90.system.entry.js} +1 -1
  229. package/dist/zonos-elements/{p-944d00da.entry.js → p-8f0f6449.entry.js} +1 -1
  230. package/dist/zonos-elements/{p-90f58466.system.entry.js → p-90e10b7e.system.entry.js} +1 -1
  231. package/dist/zonos-elements/{p-ba456282.system.entry.js → p-917f714c.system.entry.js} +1 -1
  232. package/dist/zonos-elements/p-949c9d2a.entry.js +1 -0
  233. package/dist/zonos-elements/{p-e0227f2c.entry.js → p-9a67d4f2.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-4dfd33d9.entry.js → p-9ab32f9b.entry.js} +1 -1
  235. package/dist/zonos-elements/{p-14314ad3.entry.js → p-9c49daa4.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-b5c31ca4.system.entry.js → p-9fa90292.system.entry.js} +1 -1
  237. package/dist/zonos-elements/{p-9e29a4a3.entry.js → p-a04c7b1e.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-121c60c1.system.entry.js → p-a359e0a2.system.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-fa322dc1.entry.js → p-aa028d91.entry.js} +1 -1
  240. package/dist/zonos-elements/p-b34553d8.entry.js +1 -0
  241. package/dist/zonos-elements/{p-3e30e203.system.js → p-b526a41e.system.js} +1 -1
  242. package/dist/zonos-elements/{p-79b9aee4.system.entry.js → p-b90f346f.system.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-62cfcd21.system.entry.js → p-b9974182.system.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-e8f4da3a.js → p-bcdf1cba.js} +1 -1
  245. package/dist/zonos-elements/p-bdf49bed.entry.js +1 -0
  246. package/dist/zonos-elements/{p-fc64f69d.entry.js → p-bfc09897.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-264690d7.entry.js → p-c01f86b4.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-865536f0.entry.js → p-c1fb3a2d.entry.js} +1 -1
  249. package/dist/zonos-elements/p-c2442878.system.js +1 -1
  250. package/dist/zonos-elements/{p-de5a68c3.system.entry.js → p-ce48f579.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-094f9c5a.entry.js → p-cfb2b5c7.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-89a5e936.system.entry.js → p-cfb9b847.system.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-87bed9ec.system.js → p-d9b96ce6.system.js} +1 -1
  254. package/dist/zonos-elements/{p-9f1bd9b8.entry.js → p-dcf999d8.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-13927760.system.entry.js → p-e1ed7c4a.system.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-3a8a6092.system.js → p-ea0289e8.system.js} +1 -1
  257. package/dist/zonos-elements/{p-7eae7c62.entry.js → p-ea1d5802.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-9c7edad5.system.entry.js → p-ee5d5203.system.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-dfb429d7.system.entry.js → p-f7e6c1b5.system.entry.js} +1 -1
  260. package/dist/zonos-elements/p-fab5f272.js +1 -0
  261. package/dist/zonos-elements/{p-df69f036.entry.js → p-fc783723.entry.js} +1 -1
  262. package/dist/zonos-elements/{p-706d1537.entry.js → p-fecf66da.entry.js} +1 -1
  263. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  264. package/package.json +1 -1
  265. package/dist/esm-es5/localization-285da14c.js +0 -1
  266. package/dist/zonos-elements/p-0307e4ac.entry.js +0 -1
  267. package/dist/zonos-elements/p-0c977c47.system.js +0 -1
  268. package/dist/zonos-elements/p-3ef06605.js +0 -1
  269. package/dist/zonos-elements/p-5a5c06ad.entry.js +0 -1
  270. package/dist/zonos-elements/p-664da916.entry.js +0 -1
  271. package/dist/zonos-elements/p-83bf52d6.js +0 -1
  272. package/dist/zonos-elements/p-ab195686.system.js +0 -1
  273. package/dist/zonos-elements/p-b152859d.system.entry.js +0 -1
  274. package/dist/zonos-elements/p-b408debb.system.entry.js +0 -1
  275. package/dist/zonos-elements/p-c3533444.entry.js +0 -1
  276. package/dist/zonos-elements/p-e5ee64c0.entry.js +0 -1
  277. package/dist/zonos-elements/p-f73d243a.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-b434e436.js';
2
- import { t as trackConversionEvent, A as validateCheckoutSession, c as stripeStore, e as cartStore, v as stripeStoreHandleInventoryCheck, r as cartStoreNextStep, j as cartStoreClearCheckoutInterval } from './cart-60532eb4.js';
3
- import { t as translate, s as storageStore } from './localization-285da14c.js';
2
+ import { t as trackConversionEvent, A as validateCheckoutSession, b as stripeStore, d as cartStore, v as stripeStoreHandleInventoryCheck, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval } from './cart-697f78dc.js';
3
+ import { t as translate, s as storageStore } from './localization-ee8bb238.js';
4
4
  import { h as handleFetch, l as logError, j as jsonParse } from './handleFetch-a844cac1.js';
5
5
  import { t as tinycolor } from './isDarkColor-9ddd90cc.js';
6
6
  import { l as log } from './VarianceTest-572cecf5.js';
@@ -1,5 +1,5 @@
1
- import { e as cartStore } from './cart-60532eb4.js';
2
- import { s as storageStore } from './localization-285da14c.js';
1
+ import { d as cartStore } from './cart-697f78dc.js';
2
+ import { s as storageStore } from './localization-ee8bb238.js';
3
3
  import { l as logError, h as handleFetch } from './handleFetch-a844cac1.js';
4
4
 
5
5
  const placeTestOrder = async () => {
@@ -1,5 +1,5 @@
1
- import { e as cartStore } from './cart-60532eb4.js';
2
- import { o as applyInclusiveEffectiveRate, d as currencyFormat } from './localization-285da14c.js';
1
+ import { d as cartStore } from './cart-697f78dc.js';
2
+ import { o as applyInclusiveEffectiveRate, d as currencyFormat } from './localization-ee8bb238.js';
3
3
 
4
4
  const getDisplayCurrency = () => {
5
5
  var _a, _b;
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host, c as createEvent, a as getElement } from './index-0bbe9693.js';
2
- import { t as translate, l as localizationStore, s as storageStore, q as storageStoreOnChange } from './localization-285da14c.js';
2
+ import { t as translate, l as localizationStore, s as storageStore, q as storageStoreOnChange } from './localization-ee8bb238.js';
3
3
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
4
- import { K as extractName, c as stripeStore, q as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-60532eb4.js';
4
+ import { K as extractName, b as stripeStore, q as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-697f78dc.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
6
  import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
7
7
  import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
@@ -165,9 +165,9 @@ const ZonosAddressSuggestions = class {
165
165
  return segments;
166
166
  }
167
167
  render() {
168
- return (h(Host, { key: '7ab44ba24fdcc22c2f3dd06985d1d6e8e3c64cbc', class: "zonos--address-suggestions", role: "group", style: {
168
+ return (h(Host, { key: '00686fe9c09bb764f18548ea438f9fa39deb5413', class: "zonos--address-suggestions", role: "group", style: {
169
169
  '--zonos--border-radius': getBorderRadius(),
170
- } }, h("ul", { key: 'e23aa07baa70336a9f37752d0de3725580684c88', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: 'd2208ef720bdff1d57937394266046edd7ef9e3b', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '4f834a0f3e8fa8c378e824894a51171543b61339', class: "powered-by-container" }, h("zonos-text", { key: '8f92d8f3e4421048881036ba3e43de25e9cfe005', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: 'efe2dcb973a7fd34a76d107dca1f7a6ac4d7112b', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '8f59caa99bec12c4ac4c42e5b4108443f6e90446', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
170
+ } }, h("ul", { key: '89c0f50ea5bbabdf3efe3e58bd4d7a7c96f33b47', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: 'ad3286076569701e1318c93b7ebc674ad85a7ae6', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: 'bdcb8cc865eb77b3a0189c8d88a7698d405c332e', class: "powered-by-container" }, h("zonos-text", { key: '1db905ec989aef0f8dd30835657d1dd1b1836fc2', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '55c36840f1bb850ce135bd238d01b9a3055463d7', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: 'e89402e39549482c41b046fb534e727690e43100', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
171
171
  this.localSuggestions = [];
172
172
  } }))), this.localSuggestions.map(suggestion => (
173
173
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -1357,10 +1357,10 @@ const ZonosAddress = class {
1357
1357
  this.country = localizationStore.selectedCountryCode;
1358
1358
  }
1359
1359
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
1360
- return (h(Host, { key: 'dc41846f9f8cb0b10e4148ad5523f26186970888', class: classes([
1360
+ return (h(Host, { key: '7214ab1c348c1236dfa65f3bb20866fb3262c35d', class: classes([
1361
1361
  'zonos--address zonos--elements',
1362
1362
  `zonos--${this.type}-address`,
1363
- ]) }, h("zonos-text", { key: '38e4bc053824f1f7f6c15bb3ade74b16e0f977e1', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: 'e7b702568f26e4cff082ba88a3f68bc9d32d6bd2', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1363
+ ]) }, h("zonos-text", { key: '3ce287d8ffd3f5fdb4745311d17992c0b9ee9678', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: '0e33486852d6512b054bb480d0295ce97d2667eb', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1364
1364
  }
1365
1365
  get el() { return getElement(this); }
1366
1366
  static get watchers() { return {
@@ -1384,7 +1384,7 @@ ZonosAddress.style = ZonosCustomAddressStyle0;
1384
1384
 
1385
1385
  const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-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" clip-rule="evenodd"/><path fill="#4D505A" fill-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" clip-rule="evenodd"/></svg>`;
1386
1386
 
1387
- const zonosDialogCss = ":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--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0;top:0;background:var(--zonos-elements-backdrop-color);position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:2147483009;background:var(--zonos-elements-gray-0);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--dialog-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--zonos-elements-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:2147483008;background:var(--zonos-elements-gray-0);max-width:90vw;max-height:90vh;min-height:var(--zonos--min-height, auto);height:var(--zonos--height, auto);width:var(--zonos--width, auto);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:16px 24px}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--zonos-elements-radius-10);-ms-flex-item-align:start;align-self:flex-start}:host .zonos--header .zonos--close-button:hover{background:var(--zonos-elements-hover-color)}:host .zonos--body{padding:8px 24px;max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:16px 24px}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:2147483008;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:2147483009;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";
1387
+ const zonosDialogCss = ":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--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0;top:0;background:var(--zonos-elements-backdrop-color);position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:4px;z-index:2147483009;background:var(--zonos-elements-gray-0);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--loading-text,:host .zonos--loading-title{max-width:100%;padding:0 32px;text-align:center}:host .zonos--dialog-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--zonos-elements-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:2147483008;background:var(--zonos-elements-gray-0);max-width:90vw;max-height:90vh;min-height:var(--zonos--min-height, auto);height:var(--zonos--height, auto);width:var(--zonos--width, auto);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:16px 24px}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--zonos-elements-radius-10);-ms-flex-item-align:start;align-self:flex-start}:host .zonos--header .zonos--close-button:hover{background:var(--zonos-elements-hover-color)}:host .zonos--body{padding:8px 24px;max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:16px 24px}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:2147483008;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:2147483009;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";
1388
1388
  const ZonosDialogStyle0 = zonosDialogCss;
1389
1389
 
1390
1390
  const ZonosDialog = class {
@@ -1470,7 +1470,7 @@ const ZonosDialog = class {
1470
1470
  const borderStyle = getBorderRadius({
1471
1471
  overrideBorderStyle: this.borderStyle,
1472
1472
  });
1473
- return (h(Host, { key: '1b53109e3598536674ab0a2cac4c5fa52c2e501d', class: classes([
1473
+ return (h(Host, { key: '3764ddd25cf29e7b5ebc420c2fc47de213d2bcd6', class: classes([
1474
1474
  'zonos--elements',
1475
1475
  this.open && 'open',
1476
1476
  this.isLoading && 'is-loading',
@@ -1482,10 +1482,10 @@ const ZonosDialog = class {
1482
1482
  '--zonos--height': this.height || 'initial',
1483
1483
  '--zonos--min-height': this.minHeight || '500px',
1484
1484
  '--zonos--width': this.width,
1485
- } }, h("div", { key: '3fcaf891d98fad2a7bb0b0eb7285c991a9df7610', class: "zonos--backdrop" }), h("div", { key: '16fe5c3ad017d19c52e85cf18eec31fe3960f61d', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: '1fae701967b41b2d96e709078f6958867a7ef1c0', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'ba0bc9a7bf0f8fd097e874b371fc563ee9fab255', class: "zonos--loading" }, h("zonos-spinner", { key: 'c4599e9093de3e0ee56f094fc9bbe33d474cf966', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '827ff1f3a08f9efe7e1cb10315e62b68ed634087', class: "zonos--header" }, this.headerText && (h("h3", { key: 'd6e000b787d758080aa9283f59a3b577ef9d9bde', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '8efcb22ad294f4feab8f1a89e893a4f3d8a48d05', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: '2bf643dcdcd2fdffdaccba0169386cd0a5a4ccd6', class: classes([
1485
+ } }, h("div", { key: 'aded0d33e4605a40b107e89fcbc95ef024b187f7', class: "zonos--backdrop" }), h("div", { key: '55500b0bb118be90d474fc758f979ac3f317d52e', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: 'a21fa7808c16df11cab8800279774abb38828f1b', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'b8e9229591ad83446400deafdf5bee284091f1d9', class: "zonos--loading" }, h("zonos-spinner", { key: 'f284c8604d8710be60a725fa8c23c04f32e44b1f', size: 30 }), this.loadingTitle && (h("zonos-text", { key: '16d605c9272d9bdbb2d8b7f2d5685978cc2cf6eb', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (h("zonos-text", { key: '0e9acec26d8502781ad8c853959740ece8fd2907', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (h("div", { key: '77d2dac98791ddea7e3bc3ab0e740c0b170072d8', class: "zonos--header" }, this.headerText && (h("h3", { key: 'f8b07366a4a9d5cd1686d7e3663ce0f6ba401ec7', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '8c82dbf7d636715f3a391fe13ced4e3bc0ee079c', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: 'd44cbf2cbb551043502e5e0c80048adeffaaf303', class: classes([
1486
1486
  'zonos--body',
1487
1487
  this.noBodyPadding && 'zonos--no-body-padding',
1488
- ]) }, h("slot", { key: '1b8886abbfac00704f004c6ca14d96fdbe87e751' })), h("slot", { key: '85c94e23f5686e4f91af598bffb14e38a09855a4', name: "dialog-footer" })))));
1488
+ ]) }, h("slot", { key: '508a3fcc6fbfdec55033a584e235ba9fd9e7448f' })), h("slot", { key: '1f24ec0974cd1def288b744d6aa68399367aefd8', name: "dialog-footer" })))));
1489
1489
  }
1490
1490
  static get assetsDirs() { return ["assets"]; }
1491
1491
  };
@@ -7515,24 +7515,24 @@ const ZonosStripePhoneInput = class {
7515
7515
  .filter(Boolean)
7516
7516
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
7517
7517
  : [];
7518
- return (h(Host, { key: '93c761af05a92758af8d5b76c3c9630a8c45c46a', class: classes([
7518
+ return (h(Host, { key: '3f073620fb9250208be54ffd6d0dfbc8c5da7d6f', class: classes([
7519
7519
  'zonos--phone-input zonos--elements',
7520
7520
  isDark && 'dark',
7521
- ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '0c814da4f10b83027d2a91429c44aae0b2ae851f', class: classes([
7521
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: 'bdaf73f9a51fa2a39dd9684584ec4f032ea39d00', class: classes([
7522
7522
  'zonos--label-wrapper',
7523
7523
  this.disabled && 'disabled',
7524
7524
  this.isFocused && 'focused',
7525
7525
  hasContent && 'has-content',
7526
7526
  this.error && 'has-error',
7527
7527
  this.inputLabel && 'has-label',
7528
- ]) }, h("select", { key: 'f18e02540fc979f090ec9e8445a9c24a726bd3c5', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7528
+ ]) }, h("select", { key: 'ad4477bfc5e1971a5e7a34a5e06b699c6115b3d3', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7529
7529
  var _a;
7530
7530
  return (h("option", { key: option.countryCode, selected: option.countryCode === ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode), value: option.countryCode }, option.displayName, " (+", option.phoneCode, ")"));
7531
- })), h("div", { key: 'c0bc6f60fede12a27057b64c699701dc311a3c2b', class: "zonos--input-group" }, h("div", { key: '3329b43c5ff8b267d01dfc6611736f8fda70d30e', class: "zonos--select-wrapper" }, h("div", { key: 'f43b2ba959ef2f7e616b3930df5eba5bf73ab0c6', class: "zonos--country-select" }, h("div", { key: '357bcd7ec8d96df1e115820f26444422ef683a86', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: '050444251b375b60ab7de9cf8220b6270a1e7681', class: "zonos--country-select-selected" }, h("div", { key: '37653be1e802cf065827bde91b46a4a650ab153e', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: '2d1cde80d3b5a8248a2b824e5cacb438026d3d6f', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: 'c75d6600d1ba864b7e8e8b3ae60faaa459d7578f', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: 'da61185205072f591ab0f21e1f09e6ba87f3b49d', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '6f9fd827cba11e442ec96d9706efb939aa3164e3', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '795d59db0eb10fa4ab31b9939a9f0522004c71b1', class: classes([
7531
+ })), h("div", { key: '39d6ae20a62bfa7d21a3d4a1143a4b42a87bbc41', class: "zonos--input-group" }, h("div", { key: 'dba0974115ce5e4f3f22689f406c3defe2989b29', class: "zonos--select-wrapper" }, h("div", { key: '3231072a3dba2d61a5567ad8ceacd871b3b7657c', class: "zonos--country-select" }, h("div", { key: '3fd9224b1ef63a6e2e1c11c19a1dddbaa1337ad1', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: 'ba2d811521d84bbe3c0a2749307cce90e9347457', class: "zonos--country-select-selected" }, h("div", { key: '4b21bf8d586b51f3d0ef9ba881e5a73d4742d440', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: 'ed2fca152a8f1064051758bf624bb02d0af61379', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: 'ee43fea008cfde320a15a151a07f1295dd0d77dd', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: '28961fccf5ad433b3a81fab91773d8d8d4e17b30', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '8233c34fdbf221f2289506b57b3fd429ec048df3', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '0d947d929218bac9929f411c5989a18ab36054fe', class: classes([
7532
7532
  'zonos--input-container',
7533
7533
  this.inputLabel && 'has-label',
7534
7534
  hasContent && 'has-content',
7535
- ]) }, h("input", Object.assign({ key: '64aa071d2e28691bf12493703b32657c45d9d9ae' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (h("div", { key: 'd543673e6cbc526ffcebf6eca0cf8ab2edda644b', class: "zonos--floated-label" }, h("label", { key: '432a710de6b9af0c97bc6c50f57079e12806f62d', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: '719f193ea85683b50d1fa7a7855bae22241b0693', textColor: "red-600" }, this.error))));
7535
+ ]) }, h("input", Object.assign({ key: '16956304c84642b82039e0180aea6ce96269799a' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (h("div", { key: '57f3d9ad16aee89271c134d409abb6383b225f55', class: "zonos--floated-label" }, h("label", { key: 'd2af8c75f82df1b3176f708bea86a18b7ee4840d', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: '3bb993c5e780f4394d141d7c62bd1f8ea4d1fc70', textColor: "red-600" }, this.error))));
7536
7536
  }
7537
7537
  get el() { return getElement(this); }
7538
7538
  static get watchers() { return {
@@ -7648,14 +7648,14 @@ const ZonosStripeSelect = class {
7648
7648
  const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
7649
7649
  const hasContent = this.internalValue || this.selectPlaceholder;
7650
7650
  const showClearButton = this.isClearable && this.internalValue && !this.isDisabled;
7651
- return (h(Host, { key: 'c43f75cfc3d57e8d31f7ec06fb66eff71a5c87b9', class: classes([
7651
+ return (h(Host, { key: '61d5f0b2c7fafd2df4ea6beacc8500bad9b64da7', class: classes([
7652
7652
  'zonos--select zonos--elements',
7653
7653
  isDark && 'dark',
7654
7654
  this.isError && 'has-error',
7655
- ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '818e99e207482930dcccc26e55fcda5a283e366f', class: classes([
7655
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '63198cbb818342d8deecbe1e0c5d9978a51df064', class: classes([
7656
7656
  'zonos--label-wrapper',
7657
7657
  this.isDisabled && 'disabled',
7658
- ]) }, h("select", Object.assign({ key: 'c67ba73746f8cfd05801033a6620b25c82b86069' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
7658
+ ]) }, h("select", Object.assign({ key: '8bbe869f708d9f87f9dc6d66a8f573a795399e23' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
7659
7659
  'zonos--floated-select',
7660
7660
  !!this.selectLabel && 'has-label',
7661
7661
  hasContent && 'has-content',
@@ -7665,9 +7665,9 @@ const ZonosStripeSelect = class {
7665
7665
  this.selectChange.emit(select.value);
7666
7666
  this.selectedValue = select.value;
7667
7667
  this.el.dispatchEvent(new Event('change'));
7668
- }, required: this.required }), h("option", { key: 'f7969953300914c34ad3d76c69586e30e12c3117', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
7668
+ }, required: this.required }), h("option", { key: '6ae19c6b12976cd32e6efc9771a000b29945ee71', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
7669
7669
  // Sometimes google returns the label not the code for some countries
7670
- this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: 'c093e68c826469ec22e69f154d5edfb342047d94', class: "zonos--floated-label" }, h("label", { key: 'b04836cba30a354efaf1a367cd7f5c629bc5ddc2', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: '0a1bf1ce6b64f3a0c37495d8ad716078bceb757b', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: '3e690372f4df9d21754a2903819b17186d26654f', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: '9f761f5e9b416356ec7c4681d144adcf01fb8149', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: 'f5594d827dcb7f9812df7479bb8d199e2fcc4a1a', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: '79dce6ac5a8183ad68eaf1a6e60b15864df65d25', textColor: "red-600" }, this.error))));
7670
+ this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: 'a21b56d32839669a95c3d36f215f85bb94f6bb1a', class: "zonos--floated-label" }, h("label", { key: 'fb710c149659ece3d433f57d8d27562395bb2a52', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: '0f57b78a3fdafc0ff7bd1a5a2ead9e37be7ee915', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: 'ffc562b96195b1990a26d4091971ddb2293b6ac7', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: 'c3eb42b95f57df3187772d1502e07a7052a72913', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: '7a6581602aa531d5d9bdea82c3f50952d901bad4', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: 'b1a3819c075d5e8f70020274145675c8d19b143a', textColor: "red-600" }, this.error))));
7671
7671
  }
7672
7672
  get el() { return getElement(this); }
7673
7673
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-0bbe9693.js';
2
2
  import { t as throttle_1 } from './throttle-ce2432ab.js';
3
- import { c as stripeStore, t as trackConversionEvent, K as extractName, B as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, e as cartStore } from './cart-60532eb4.js';
4
- import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-285da14c.js';
3
+ import { b as stripeStore, t as trackConversionEvent, K as extractName, B as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-697f78dc.js';
4
+ import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-ee8bb238.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
6
6
  import { l as logError, i as isCheckoutMobile, s as sendErrorLog } from './handleFetch-a844cac1.js';
7
7
  import { s as shouldRenderTaxIdInput } from './shouldRenderTaxIdInput-d45ceeb4.js';
@@ -324,11 +324,11 @@ const ZonosAddress = class {
324
324
  this.isAddressFilled = true;
325
325
  }
326
326
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
327
- return (h(Host, { key: '7762b1dbeeff9d45721bf7a2efbe4bf4c2c29551', class: classes([
327
+ return (h(Host, { key: 'b02889c4677a27a8c54a411d66fb31e15af78e1a', class: classes([
328
328
  'zonos--address',
329
329
  'zonos--elements',
330
330
  `zonos--${this.type}-address`,
331
- ]) }, this.titleText && (h("zonos-text", { key: '5f266b4562eb78eb8f5b1374f195501abc44c9f7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: 'bfcee78353455a66c6dec12432bfeff69dc9a10b', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: 'd005a517dc93439d13f38750df8e09f884ad898c', class: "zonos--address-component" })));
331
+ ]) }, this.titleText && (h("zonos-text", { key: 'f52beb7ed6699ec1c73ee35a3436798a1fea38c7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: '7c9602892de932e8a3f90a37b53a936f39082916', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '8ea6698f5b9d3bb525942c146e2cf67fefad6ad8', class: "zonos--address-component" })));
332
332
  }
333
333
  get el() { return getElement(this); }
334
334
  static get watchers() { return {
@@ -700,7 +700,7 @@ const ZonosLoadingOverlay = class {
700
700
  this.size = 40;
701
701
  }
702
702
  render() {
703
- return (h(Host, { key: 'eee6eb4eb40c18ccdd24d57d98be8b90eadccf23', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: '4bca110e058cb5cbf4c86351aa56d251792ab325', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: '513b8d669ab13896442c0b1048609a3f3e0ed6f5', size: this.size, spinnerColor: this.spinnerColor }))));
703
+ return (h(Host, { key: '13154a3c9250f15d8dca292f0673c6465bfb15e0', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: '4470fccd21e58bd7959ef3e20c8775ac637cace0', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: '5b32b821cea982866da56176eeaafd5d8958f25d', size: this.size, spinnerColor: this.spinnerColor }))));
704
704
  }
705
705
  };
706
706
  ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
@@ -2,10 +2,10 @@ import { r as registerInstance, h, H as Host, a as getElement, c as createEvent
2
2
  import { f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
  import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
5
- import { c as stripeStore, t as trackConversionEvent } from './cart-60532eb4.js';
6
- import { s as storageStore } from './localization-285da14c.js';
5
+ import { b as stripeStore, t as trackConversionEvent } from './cart-697f78dc.js';
6
+ import { s as storageStore } from './localization-ee8bb238.js';
7
7
  import { l as logError } from './handleFetch-a844cac1.js';
8
- import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-ac12eedb.js';
8
+ import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-b3299b37.js';
9
9
  import { l as log } from './VarianceTest-572cecf5.js';
10
10
  import './isDarkColor-9ddd90cc.js';
11
11
 
@@ -255,7 +255,7 @@ const ZonosPayment = class {
255
255
  }
256
256
  render() {
257
257
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
258
- return (h(Host, { key: 'ca6da9e9fadd891c2a748186c30fdfcf8f57ffc5', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '8083de8ff08f5cd7f3ddaf6190844ee11b72ed4a', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'cf88a4f5b989e1911b089ce9298945307085455a', class: "zonos--payment-component" }), h("div", { key: 'ff768b9ca8dd0a60605196f50bcba3c542cc2206', class: "zonos--payment-paypal-container" })));
258
+ return (h(Host, { key: '1fb61e01184d3a0b2dc079ae468e96175d9f6518', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { key: '3860ff7fc2656ff045ce09c0de2e14aa7a22e194', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: '3cabad9c095f2eeba8cfc464374ca9abfc2af5ee', class: "zonos--payment-component" }), h("div", { key: '9e2b13a0d8131a5513f99e2a6436ca3c5f03d7cf', class: "zonos--payment-paypal-container" })));
259
259
  }
260
260
  get el() { return getElement(this); }
261
261
  static get watchers() { return {
@@ -319,7 +319,7 @@ const ZonosPaypalPayment = class {
319
319
  this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
320
320
  }
321
321
  render() {
322
- return (h(Host, { key: '503c2a2f4d6dd0d6c10468f4bbe915610cf7008e', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: 'c1d2c15bf6f096c3666f9d4e8085c5fbe2c637a7', class: "zonos--payment-paypal-container" })));
322
+ return (h(Host, { key: '35387382aaa81e3f8e025e8f3503be41b86e2355', class: "zonos--paypal-payment zonos--elements" }, h("div", { key: '34fad15dee67d8b913071a59d35b1c2317d4d3a0', class: "zonos--payment-paypal-container" })));
323
323
  }
324
324
  get el() { return getElement(this); }
325
325
  };
@@ -1,18 +1,18 @@
1
1
  import { r as registerInstance, d as getAssetPath, h, H as Host, F as Fragment, c as createEvent, a as getElement } from './index-0bbe9693.js';
2
- import { e as cartStore, E as cartStoreHasOneEligibleItem, F as stripeStoreApplyPromoCode, G as stripeStoreRemovePromoCode, c as stripeStore, y as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, I as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, J as stripeStoreTranslateAddressToLatin, K as extractName, z as cartStoreOnChange, L as stripeStoreAsyncAddressUpdate, D as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo, N as cartStoreGetMethod, O as sortServiceLevelOptionsByAmount } from './cart-60532eb4.js';
3
- import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-285da14c.js';
4
- import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-0176e66f.js';
2
+ import { d as cartStore, E as cartStoreHasOneEligibleItem, F as stripeStoreApplyPromoCode, G as stripeStoreRemovePromoCode, b as stripeStore, y as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, H as stripeStoreResetPromoCode, I as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, J as stripeStoreTranslateAddressToLatin, K as extractName, z as cartStoreOnChange, L as stripeStoreAsyncAddressUpdate, D as cartStoreUpdateSelectedShippingOption, M as cartStoreGetShippingTransitInfo, N as cartStoreGetMethod, O as sortServiceLevelOptionsByAmount } from './cart-697f78dc.js';
3
+ import { t as translate, l as localizationStore, s as storageStore, c as localizationStoreOnChange } from './localization-ee8bb238.js';
4
+ import { r as renderCheckoutCurrency } from './renderCheckoutCurrency-9404ed70.js';
5
5
  import { c as cleanHtmlMarkdown } from './cleanHtmlMarkdown-b5b18743.js';
6
6
  import { c as classes } from './classes-0d95c529.js';
7
7
  import { z as zonosStore, h as zonosStoreOnChange, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
8
- import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-736c9eec.js';
9
- import { s as submitGtag, c as paypalStoreReset, a as paypalStore, i as isContrastColor } from './paypal-ac12eedb.js';
8
+ import { D as DUTY_KEY, T as TAXES_KEY, h as hasInclusivePrice } from './hasInclusivePrice-f41e52b8.js';
9
+ import { s as submitGtag, c as paypalStoreReset, a as paypalStore, i as isContrastColor } from './paypal-b3299b37.js';
10
10
  import { h as handleFetch, s as sendErrorLog, j as jsonParse, g as getIsTestMode, i as isCheckoutMobile, a as getIsStagingMode } from './handleFetch-a844cac1.js';
11
11
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
12
12
  import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
13
13
  import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
14
14
  import { l as languages } from './ILanguage-cd6acb72.js';
15
- import { p as placeTestOrder } from './placeTestOrder-bba48f55.js';
15
+ import { p as placeTestOrder } from './placeTestOrder-245f2030.js';
16
16
  import { i as isDarkColor, t as tinycolor } from './isDarkColor-9ddd90cc.js';
17
17
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
18
18
  import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-047a6cd4.js';
@@ -1738,11 +1738,11 @@ const ZonosRestState = class {
1738
1738
  }
1739
1739
  render() {
1740
1740
  const imageUrl = this.getImageRestState();
1741
- return (h(Host, { key: '333c158c20af14bcfc310b7fae19cadb9ffaea01', class: classes(['zonos--elements zonos--restState']), style: {
1741
+ return (h(Host, { key: '2d9be86849c6ff2f039ca21676cbdf912538eb1d', class: classes(['zonos--elements zonos--restState']), style: {
1742
1742
  '--zonos--font-family': zonosStoreFontFamily(),
1743
- } }, h("div", { key: '0076afaff9200094d45bd4321ea7b1d0a4954a81', class: "zonos--restState-image" }, h("img", { key: '4ef3b7ee4f62175e06da9a7d2453603ba6cf9fb8', alt: this.restStateType, onError: () => {
1743
+ } }, h("div", { key: 'f538f05fe92eca4ee05daf72ee3387bea337c20c', class: "zonos--restState-image" }, h("img", { key: 'cc752b1ed3e9e656810c901df9f8b19462efc978', alt: this.restStateType, onError: () => {
1744
1744
  this.isErrorImageLoad = true;
1745
- }, src: imageUrl })), h("div", { key: 'b5033ee1f4618732f14a9dd3c05d0271329083df', class: "content" }, h("zonos-text", { key: '2f21d52a7bb0b410590cb0768102155843e21038', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '48222ff00921961e770d20b817563d9a903a9e98', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: 'ac6c100c85bd166945d8394cf61ab6baaa19cb3f', class: "action" }, h("slot", { key: 'cec63c8cbac43d402333c7ab6aba0ac3bd9bab36' }))));
1745
+ }, src: imageUrl })), h("div", { key: '4729c415dbac98876fcd907437b8df21b925dec5', class: "content" }, h("zonos-text", { key: '39313c8c71d228cd1076e809146ad7ac3d877a9a', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '69813bd32ae3867ebebcc511655f2052b1175945', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: '98b085930fd76e2ff095cc971ae4699041c1a550', class: "action" }, h("slot", { key: '188318643319081914ed30aad91de5f15b014953' }))));
1746
1746
  }
1747
1747
  static get assetsDirs() { return ["assets"]; }
1748
1748
  };
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, h, F as Fragment, H as Host } from './index-0bbe9693.js';
2
- import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreCleanupDomesticShippingSession, b as stripeStoreSaveDomesticShippingSession, c as stripeStore, i as initStripeElements, d as stripeStoreRetrievePayment, e as cartStore, f as cartStoreUpdateItems, g as cartStoreReset, h as cartStoreResetTabItems, j as cartStoreClearCheckoutInterval, k as stripeStoreInitCheckoutSession, l as stripeStoreGetPaymentIntent, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as getCheckoutSessionBody, o as cartStoreUpdateToErrorState, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as cartStoreOnChange } from './cart-60532eb4.js';
3
- import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalStore, b as paypalInitScript } from './paypal-ac12eedb.js';
4
- import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-285da14c.js';
2
+ import { s as stripeStoreGetDomesticShippingSession, a as stripeStoreSaveDomesticShippingSession, b as stripeStore, i as initStripeElements, c as stripeStoreRetrievePayment, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStoreInitCheckoutSession, k as stripeStoreGetPaymentIntent, l as cartStoreStartCheckoutInterval, t as trackConversionEvent, m as getCheckoutSessionBody, n as cartStoreUpdateToErrorState, o as stripeStoreCleanupDomesticShippingSession, p as cartStoreSetCheckoutSession, q as stripeStorePrefetchLandedCost, r as cartStoreNextStep, u as stripeStoreUpdateCheckoutSessionBaseCurrency, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as cartStoreOnChange } from './cart-697f78dc.js';
3
+ import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalStore, b as paypalInitScript } from './paypal-b3299b37.js';
4
+ import { f as filterValidTests, l as localizationStore, a as localizationStoreUpdateSelectedCountryCode, g as getZCountryUrlParam, s as storageStore, V as VARIANT_TEST_KEY_EXPIRATION, b as storageStoreSetEnabledVariantTestKeys, t as translate, c as localizationStoreOnChange, d as currencyFormat } from './localization-ee8bb238.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-b434e436.js';
6
6
  import { b as buildCartItemsByTempCart } from './buildCartItemsByTempCart-a117f75d.js';
7
- import { h as handleFetch, l as logError, s as sendErrorLog, b as getAdditionalLogMetadata, g as getIsTestMode, j as jsonParse, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-a844cac1.js';
7
+ import { h as handleFetch, b as getAdditionalLogMetadata, g as getIsTestMode, l as logError, j as jsonParse, s as sendErrorLog, a as getIsStagingMode, i as isCheckoutMobile } from './handleFetch-a844cac1.js';
8
8
  import { u as updateCheckoutSessionAttributes } from './updateCheckoutSessionAttributes-047a6cd4.js';
9
9
  import { _ as _getIsValidCartId, c as checkoutHiddenBtnSelector, a as checkoutHiddenInternationalBtnSelector, d as domesticRedirectedBtnSelector, g as getAbandonedCartRenewTokenValue } from './CheckoutConfig-724d7bae.js';
10
10
  import { l as log, g as getElapsedTime, b as allLogs } from './VarianceTest-572cecf5.js';
@@ -104,10 +104,23 @@ const isDisabledCountry = (showLog = true) => {
104
104
  return false;
105
105
  };
106
106
 
107
- const isShippableCountry = (showLog = true) => {
107
+ const isShippableCountry = (showLog = true,
108
+ /**
109
+ * If provided, will check if the country is shippable based on the provided country code instead of the Hello selected country code
110
+ */
111
+ providedCountryCode) => {
112
+ var _a;
108
113
  if (!localizationStore.localizationLoaded) {
109
114
  return false;
110
115
  }
116
+ if (providedCountryCode) {
117
+ const isProvidedCountryCodeShippableCountry = !!((_a = localizationStore.shippingZoneCountries) === null || _a === void 0 ? void 0 : _a[providedCountryCode]) &&
118
+ !zonosStore.disabledCountries.includes(providedCountryCode);
119
+ if (showLog && !isProvidedCountryCodeShippableCountry) {
120
+ log(`Checkout: ${providedCountryCode} is not a shippable country: ${isProvidedCountryCodeShippableCountry}`);
121
+ }
122
+ return isProvidedCountryCodeShippableCountry;
123
+ }
111
124
  // if localization is loaded and the localization is not a shippable country, keep the original click event
112
125
  if (!localizationStore.isShippableCountry) {
113
126
  if (showLog) {
@@ -118,15 +131,70 @@ const isShippableCountry = (showLog = true) => {
118
131
  return true;
119
132
  };
120
133
 
134
+ const SHIP_TO_COUNTRY_SELECTOR = 'select[name="shippingAddress.countryCode"]';
121
135
  /**
122
- * Watch for changes in domestic checkout step, this is to redirect user to home page and open checkout if user enters the ship to country that's in the shipping zone
136
+ * Watch for changes in domestic checkout step. Redirects user to home page to open international checkout when user selects a country in the international shipping zone.
123
137
  * @note Only works on default bigcommerce checkout page
124
138
  */
125
- const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShippingAddressSessionFound, }) => {
139
+ const watchImmediateBigcommerceDomesticCheckoutRedirect = ({ domesticRedirectedBtnSelector, onInternationalCheckoutSelected, onShippingAddressSessionFound, }) => {
126
140
  if (!window.Zonos.isBigCommerce) {
127
141
  return;
128
142
  }
129
- const observer = new MutationObserver(async () => {
143
+ /**
144
+ * Keep checking
145
+ */
146
+ const handleInternationalCheckoutSelected = async () => {
147
+ const shipToCountryElement = document.querySelector(SHIP_TO_COUNTRY_SELECTOR);
148
+ if (!shipToCountryElement) {
149
+ return false;
150
+ }
151
+ const shippingCountry = shipToCountryElement.value;
152
+ if (!shippingCountry) {
153
+ // do nothing if shipping country is not found
154
+ return false;
155
+ }
156
+ if (!isShippableCountry(false, shippingCountry)) {
157
+ // do nothing if shipping country is not shippable
158
+ return false;
159
+ }
160
+ if (onInternationalCheckoutSelected) {
161
+ await onInternationalCheckoutSelected();
162
+ }
163
+ // update the country code in localization store and check if it's shippable
164
+ localizationStoreUpdateSelectedCountryCode({
165
+ isInitializing: false,
166
+ newSelectedCountryCode: shippingCountry,
167
+ });
168
+ const shippingAddress = {
169
+ address1: '',
170
+ address2: '',
171
+ city: '',
172
+ countryCode: shippingCountry,
173
+ firstName: '',
174
+ lastName: '',
175
+ phone: '',
176
+ postalCode: '',
177
+ stateOrProvince: '',
178
+ };
179
+ // save the shipping address to session storage
180
+ stripeStoreSaveDomesticShippingSession({
181
+ address1: shippingAddress.address1,
182
+ address2: shippingAddress.address2,
183
+ city: shippingAddress.city,
184
+ countryCode: shippingAddress.countryCode,
185
+ firstName: shippingAddress.firstName,
186
+ lastName: shippingAddress.lastName,
187
+ phone: shippingAddress.phone,
188
+ postalCode: shippingAddress.postalCode,
189
+ state: shippingAddress.stateOrProvince,
190
+ });
191
+ // redirect to home page, home page then will open the checkout dialog if having domestic shipping session
192
+ window.location.href = '/';
193
+ return true;
194
+ };
195
+ let isProcessing = false;
196
+ let intervalCreated = false;
197
+ const observer = new MutationObserver(() => {
130
198
  const domesticRedirectedButton = document.querySelector(domesticRedirectedBtnSelector);
131
199
  const shippingAddressSession = stripeStoreGetDomesticShippingSession();
132
200
  // append a hidden button to the body if the shipping address session is found
@@ -141,84 +209,47 @@ const watchBigcommerceDomesticCheckout = ({ domesticRedirectedBtnSelector, onShi
141
209
  observer.disconnect();
142
210
  return;
143
211
  }
144
- const shipToCountryElement = document.querySelector('select[name="shippingAddress.countryCode"]');
145
- // make sure the continue button is available
146
- const shippingContinueBtnEle = document.querySelector('#checkout-shipping-continue');
147
- if (!shipToCountryElement || !shippingContinueBtnEle) {
212
+ const isBigcommerceDomesticCheckoutPage = window.location.pathname.includes('/checkout') &&
213
+ window.Zonos.isBigCommerce;
214
+ const shipToCountryElement = document.querySelector(SHIP_TO_COUNTRY_SELECTOR);
215
+ // Should just disconnect the observer if it's not bigcommerce domestic checkout page
216
+ if (!isBigcommerceDomesticCheckoutPage) {
217
+ observer.disconnect();
218
+ return;
219
+ }
220
+ // Shouldn't do anything if it's not bigcommerce domestic checkout page
221
+ if (!shipToCountryElement) {
148
222
  // do nothing if shipping country and the continue button is not found
149
223
  return;
150
224
  }
151
- // disconnect the observer after we found the shipping continue button
225
+ log('Domestic checkout found - Listening for shipping country change', 'info', {
226
+ value: shipToCountryElement.value,
227
+ });
228
+ // Should not create a new interval if it's already created
229
+ if (intervalCreated) {
230
+ return;
231
+ }
232
+ intervalCreated = true;
233
+ // disconnect the observer after we know that's bigcommerce domestic checkout page
152
234
  observer.disconnect();
153
- shippingContinueBtnEle.addEventListener('click', async (e) => {
154
- var _a, _b;
155
- const shippingCountry = shipToCountryElement.value;
156
- if (!shippingCountry) {
157
- // do nothing if shipping country is not found
235
+ const interval = setInterval(async () => {
236
+ if (isProcessing) {
158
237
  return;
159
238
  }
160
- // update the country code in localization store and check if it's shippable
161
- localizationStoreUpdateSelectedCountryCode({
162
- isInitializing: false,
163
- newSelectedCountryCode: shippingCountry,
164
- });
165
- // do nothing if the country is still domestic
166
- if (!isShippableCountry(false)) {
167
- // cleanup the domestic shipping session if it's domestic because we will open the intl checkout after redirecting
168
- stripeStoreCleanupDomesticShippingSession();
169
- return;
239
+ isProcessing = true;
240
+ try {
241
+ const isInternationalCountrySelected = await handleInternationalCheckoutSelected();
242
+ // When isInternationalCountrySelected is true, user will be redirected shortly, so we can stop the checking interval here
243
+ if (isInternationalCountrySelected) {
244
+ clearInterval(interval);
245
+ return;
246
+ }
247
+ isProcessing = false;
170
248
  }
171
- // get value of shipping address state
172
- const shipToFormElement = document.querySelector('form');
173
- if (!shipToFormElement) {
174
- return;
249
+ catch (_a) {
250
+ isProcessing = false;
175
251
  }
176
- const formData = new FormData(shipToFormElement);
177
- const shipAddress1Element = document.querySelector('input#addressLine1Input');
178
- const shippingAddress = {
179
- address1: (_a = formData.get('shippingAddress.address1')) !== null && _a !== void 0 ? _a :
180
- // in Canada, the address1 is not included in the form, try to get value from input id instead.
181
- (shipAddress1Element && shipAddress1Element.value),
182
- address2: formData.get('shippingAddress.address2'),
183
- city: formData.get('shippingAddress.city'),
184
- countryCode: formData.get('shippingAddress.countryCode'),
185
- firstName: formData.get('shippingAddress.firstName'),
186
- lastName: formData.get('shippingAddress.lastName'),
187
- phone: formData.get('shippingAddress.phone'),
188
- postalCode: formData.get('shippingAddress.postalCode'),
189
- stateOrProvince: (_b = formData.get('shippingAddress.stateOrProvince')) !== null && _b !== void 0 ? _b : formData.get('shippingAddress.stateOrProvinceCode'),
190
- };
191
- if (Object.values(shippingAddress).some(value => value === undefined || value === null)) {
192
- logError('One or more shipping address field is missing', Object.entries(shippingAddress));
193
- void sendErrorLog({
194
- endpoint: 'No endpoint, domestic checkout form missing fields',
195
- errors: [
196
- 'Bigcommerce: One or more shipping address field is missing in the domestic checkout form',
197
- JSON.stringify(Object.entries(shippingAddress)),
198
- ],
199
- metadata: {
200
- storeId: zonosStore.storeId,
201
- },
202
- });
203
- return;
204
- }
205
- // save the shipping address to session storage
206
- stripeStoreSaveDomesticShippingSession({
207
- address1: shippingAddress.address1,
208
- address2: shippingAddress.address2,
209
- city: shippingAddress.city,
210
- countryCode: shippingAddress.countryCode,
211
- firstName: shippingAddress.firstName,
212
- lastName: shippingAddress.lastName,
213
- phone: shippingAddress.phone,
214
- postalCode: shippingAddress.postalCode,
215
- state: shippingAddress.stateOrProvince,
216
- });
217
- e.preventDefault();
218
- e.stopPropagation();
219
- // redirect to home page, home page then will open the checkout dialog if having domestic shipping session
220
- window.location.href = '/';
221
- });
252
+ }, 1000);
222
253
  });
223
254
  observer.observe(document.body, {
224
255
  childList: true,
@@ -512,6 +543,10 @@ const ZonosCheckout = class {
512
543
  * Whether or not the fedex shipping dialog should be shown
513
544
  */
514
545
  this.shouldShowFedexShippingConsentDialog = false;
546
+ /**
547
+ * Whether or not the domestic checkout dialog should be shown
548
+ */
549
+ this.detectedDomesticCheckoutDialogOpen = false;
515
550
  /**
516
551
  * Client secret value
517
552
  */
@@ -1363,8 +1398,13 @@ const ZonosCheckout = class {
1363
1398
  cartStore.isStagingMode = this.overrideStagingMode;
1364
1399
  }
1365
1400
  // check if bigcommerce, if user enters the shipping address that's in the shipping zone at bigcommerce checkout
1366
- watchBigcommerceDomesticCheckout({
1401
+ watchImmediateBigcommerceDomesticCheckoutRedirect({
1367
1402
  domesticRedirectedBtnSelector: domesticRedirectedBtnSelector,
1403
+ onInternationalCheckoutSelected: async () => {
1404
+ this.detectedDomesticCheckoutDialogOpen = true;
1405
+ // wait for 2 secs
1406
+ await new Promise(resolve => setTimeout(resolve, 2000));
1407
+ },
1368
1408
  onShippingAddressSessionFound: shippingAddressSession => {
1369
1409
  // prefilled the default address if shipping address session is found for checkout on open
1370
1410
  this.defaultAddress = [
@@ -1877,7 +1917,7 @@ const ZonosCheckout = class {
1877
1917
  this.isMobile && 'mobile',
1878
1918
  this.isIframed && 'iframed',
1879
1919
  this.hiddenMode && 'hidden-mode',
1880
- ]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), h("zonos-confirm-dialog", { class: "zonos--close-confirm-dialog", dialogCancelBtnText: translate("Don't close"), dialogConfirmBtnText: translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: translate('Would you like to close checkout and return to the site?'), dialogTitle: translate('Are you sure?'), onCancelClicked: () => {
1920
+ ]) }, this.preview ? (renderContent()) : (h("zonos-dialog", { borderStyle: style, "data-theme": rightSideTheme, height: "980px", isLoading: dialogLoading, mobile: this.isMobile, noBodyPadding: true, noBorder: true, noClickOutside: true, noCloseButton: true, onCloseDialog: () => this.closeDialogHandler(), open: this.open, width: "1200px" }, renderContent())), h("zonos-dialog", { isLoading: true, loadingText: translate('You will be redirected to international checkout shortly.'), loadingTitle: translate('We detected that you are shipping to an international address.'), noClickOutside: true, noCloseButton: true, open: this.detectedDomesticCheckoutDialogOpen, width: "450px" }), h("zonos-confirm-dialog", { class: "zonos--close-confirm-dialog", dialogCancelBtnText: translate("Don't close"), dialogConfirmBtnText: translate('Close'), dialogIntent: "warn", dialogOpen: this.confirmDialogOpen, dialogSubtitle: translate('Would you like to close checkout and return to the site?'), dialogTitle: translate('Are you sure?'), onCancelClicked: () => {
1881
1921
  this.confirmDialogOpen = false;
1882
1922
  },
1883
1923
  // Mark user selected confirm to close the dialog