@zonos/elements 1.3.200 → 1.3.202

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 (308) hide show
  1. package/dist/cjs/VarianceTest-0cb1e118.js +12 -0
  2. package/dist/cjs/cart-637ba3d0.js +1943 -0
  3. package/dist/cjs/{debounce-d393fafe.js → debounce-94e1b7ff.js} +1 -1
  4. package/dist/cjs/{getBorderRadius-3d0a563e.js → getBorderRadius-8d3b1049.js} +1 -1
  5. package/dist/cjs/index.cjs.js +10 -8
  6. package/dist/cjs/{isDarkColor-92a10a85.js → isDarkColor-bcf49625.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{cart-add8fe50.js → localization-2f17c95f.js} +74 -1926
  9. package/dist/cjs/{paypal-afc19dec.js → paypal-0eceff03.js} +10 -9
  10. package/dist/cjs/zonos-address_11.cjs.entry.js +98 -72
  11. package/dist/cjs/zonos-badge.cjs.entry.js +2 -1
  12. package/dist/cjs/zonos-banner.cjs.entry.js +2 -1
  13. package/dist/cjs/zonos-button_3.cjs.entry.js +4 -3
  14. package/dist/cjs/zonos-card.cjs.entry.js +3 -2
  15. package/dist/cjs/{zonos-cart-items_13.cjs.entry.js → zonos-cart-items_14.cjs.entry.js} +99 -80
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +395 -50
  17. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -1
  18. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  19. package/dist/cjs/zonos-controller.cjs.entry.js +13 -11
  20. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -5
  21. package/dist/cjs/zonos-country-select_4.cjs.entry.js +13 -13
  22. package/dist/cjs/zonos-elements.cjs.js +1 -1
  23. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +10 -8
  24. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +41 -42
  25. package/dist/cjs/zonos-hello.cjs.entry.js +30 -31
  26. package/dist/cjs/zonos-input.cjs.entry.js +3 -2
  27. package/dist/cjs/zonos-language-select_2.cjs.entry.js +8 -9
  28. package/dist/cjs/zonos-logo.cjs.entry.js +4 -3
  29. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -2
  30. package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -7
  31. package/dist/cjs/zonos-text.cjs.entry.js +2 -1
  32. package/dist/cjs/zonos-toggle.cjs.entry.js +4 -3
  33. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-v-stack.cjs.entry.js +4 -3
  35. package/dist/cjs/{zonosStore-c466b127.js → zonosStore-9264749e.js} +15 -5
  36. package/dist/collection/collection-manifest.json +1 -0
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +18 -17
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +235 -15
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +3 -3
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +2 -1
  41. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.css +62 -0
  42. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +90 -0
  43. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  44. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  45. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  46. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  47. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  48. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  49. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  50. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  51. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  52. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  53. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  54. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  55. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  56. package/dist/collection/components/main/zonos-controller.js +3 -3
  57. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  58. package/dist/collection/components/store/checkout/cart.js +15 -16
  59. package/dist/collection/components/store/checkout/paypal.js +2 -1
  60. package/dist/collection/components/store/checkout/stripe.js +33 -13
  61. package/dist/collection/components/store/hello/localization.js +5 -5
  62. package/dist/collection/components/store/storageStore.js +32 -0
  63. package/dist/collection/components/store/zonosStore.js +12 -6
  64. package/dist/collection/components/stripe/zonos-address/zonos-address.js +18 -6
  65. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  66. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +19 -7
  67. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +3 -3
  68. package/dist/collection/components/utils/api/getCheckoutSession.js +3 -3
  69. package/dist/collection/components/utils/api/placeTestOrder.js +2 -1
  70. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +3 -2
  71. package/dist/collection/components/utils/api/selectVarianceTest.js +20 -0
  72. package/dist/collection/components/utils/buildCartUrl.js +44 -0
  73. package/dist/collection/components/utils/getLegacyQueryParams.js +42 -0
  74. package/dist/collection/components/utils/varianceTest/filterExpiredTests.js +6 -0
  75. package/dist/collection/components/utils/varianceTest/filterValidTests.js +23 -0
  76. package/dist/collection/components/utils/varianceTest/getSelectedTestVariant.js +6 -0
  77. package/dist/collection/components/utils/varianceTest/hasAtLeastOneAvailableTestKey.js +14 -0
  78. package/dist/collection/components/utils/varianceTest/isInAvailableTestKey.js +4 -0
  79. package/dist/collection/components/utils/varianceTest/isTestEnabled.js +4 -0
  80. package/dist/collection/components/utils/varianceTest/isTestKeysAllVariantSelected.js +6 -0
  81. package/dist/collection/components/utils/varianceTest/mergeTest.js +13 -0
  82. package/dist/collection/scripts/_getZonosQaUrl.js +2 -2
  83. package/dist/collection/types/checkout/api/VarianceTest.js +8 -0
  84. package/dist/collection/types/generated/graphql.internal.types.js +12 -0
  85. package/dist/collection/types/index.js +1 -0
  86. package/dist/esm/VarianceTest-fef2d958.js +10 -0
  87. package/dist/esm/cart-b7c15b61.js +1907 -0
  88. package/dist/esm/{debounce-a2121722.js → debounce-3a9f27a0.js} +1 -1
  89. package/dist/esm/{getBorderRadius-413e97eb.js → getBorderRadius-78b28b4d.js} +1 -1
  90. package/dist/esm/index.js +9 -8
  91. package/dist/esm/{isDarkColor-4c7b2ffc.js → isDarkColor-31dd7dff.js} +1 -1
  92. package/dist/esm/loader.js +1 -1
  93. package/dist/esm/{cart-e03d615e.js → localization-bf7224aa.js} +70 -1892
  94. package/dist/esm/{paypal-23dd5023.js → paypal-932fd3dd.js} +5 -4
  95. package/dist/esm/zonos-address_11.entry.js +54 -28
  96. package/dist/esm/zonos-badge.entry.js +2 -1
  97. package/dist/esm/zonos-banner.entry.js +2 -1
  98. package/dist/esm/zonos-button_3.entry.js +4 -3
  99. package/dist/esm/zonos-card.entry.js +3 -2
  100. package/dist/esm/{zonos-cart-items_13.entry.js → zonos-cart-items_14.entry.js} +48 -30
  101. package/dist/esm/zonos-checkout.entry.js +363 -18
  102. package/dist/esm/zonos-collapse.entry.js +2 -1
  103. package/dist/esm/zonos-component.entry.js +1 -1
  104. package/dist/esm/zonos-controller.entry.js +8 -6
  105. package/dist/esm/zonos-country-flag.entry.js +3 -4
  106. package/dist/esm/zonos-country-select_4.entry.js +8 -8
  107. package/dist/esm/zonos-elements.js +1 -1
  108. package/dist/esm/zonos-empty-state-payment_4.entry.js +10 -8
  109. package/dist/esm/zonos-hello-dialog.entry.js +7 -8
  110. package/dist/esm/zonos-hello.entry.js +4 -5
  111. package/dist/esm/zonos-input.entry.js +3 -2
  112. package/dist/esm/zonos-language-select_2.entry.js +5 -6
  113. package/dist/esm/zonos-logo.entry.js +4 -3
  114. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -2
  115. package/dist/esm/zonos-stripe-input.entry.js +8 -7
  116. package/dist/esm/zonos-text.entry.js +2 -1
  117. package/dist/esm/zonos-toggle.entry.js +4 -3
  118. package/dist/esm/zonos-tooltip.entry.js +2 -2
  119. package/dist/esm/zonos-v-stack.entry.js +4 -3
  120. package/dist/esm/{zonosStore-cdabc848.js → zonosStore-d10a829f.js} +15 -5
  121. package/dist/esm-es5/VarianceTest-fef2d958.js +1 -0
  122. package/dist/esm-es5/cart-b7c15b61.js +1 -0
  123. package/dist/esm-es5/{debounce-a2121722.js → debounce-3a9f27a0.js} +1 -1
  124. package/dist/esm-es5/{getBorderRadius-413e97eb.js → getBorderRadius-78b28b4d.js} +1 -1
  125. package/dist/esm-es5/index.js +1 -1
  126. package/dist/esm-es5/{isDarkColor-4c7b2ffc.js → isDarkColor-31dd7dff.js} +1 -1
  127. package/dist/esm-es5/loader.js +1 -1
  128. package/dist/esm-es5/localization-bf7224aa.js +1 -0
  129. package/dist/esm-es5/{paypal-23dd5023.js → paypal-932fd3dd.js} +2 -2
  130. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  131. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  132. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  133. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  134. package/dist/esm-es5/zonos-card.entry.js +1 -1
  135. package/dist/esm-es5/zonos-cart-items_14.entry.js +1 -0
  136. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  137. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  138. package/dist/esm-es5/zonos-component.entry.js +1 -1
  139. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  140. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  141. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  142. package/dist/esm-es5/zonos-elements.js +1 -1
  143. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  144. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  145. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  146. package/dist/esm-es5/zonos-input.entry.js +1 -1
  147. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  148. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  149. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  150. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  151. package/dist/esm-es5/zonos-text.entry.js +1 -1
  152. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  153. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  154. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  155. package/dist/esm-es5/zonosStore-d10a829f.js +1 -0
  156. package/dist/scripts/index.d.ts +839 -765
  157. package/dist/scripts/index.js +1 -1
  158. package/dist/scripts/loadZonos.js +1 -1
  159. package/dist/scripts/zonos.js +1 -1
  160. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +16 -0
  161. package/dist/types/components/common/zonos-loading-overlay/zonos-loading-overlay.d.ts +16 -0
  162. package/dist/types/components/store/checkout/cart.d.ts +0 -1
  163. package/dist/types/components/store/checkout/stripe.d.ts +2 -2
  164. package/dist/types/components/store/hello/localization.d.ts +2 -2
  165. package/dist/types/components/store/storageStore.d.ts +13 -0
  166. package/dist/types/components/store/zonosStore.d.ts +7 -2
  167. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +2 -0
  168. package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +2 -0
  169. package/dist/types/components/utils/api/selectVarianceTest.d.ts +6 -0
  170. package/dist/types/components/utils/buildCartUrl.d.ts +10 -0
  171. package/dist/types/components/utils/getLegacyQueryParams.d.ts +2 -0
  172. package/dist/types/components/utils/varianceTest/filterExpiredTests.d.ts +2 -0
  173. package/dist/types/components/utils/varianceTest/filterValidTests.d.ts +9 -0
  174. package/dist/types/components/utils/varianceTest/getSelectedTestVariant.d.ts +2 -0
  175. package/dist/types/components/utils/varianceTest/hasAtLeastOneAvailableTestKey.d.ts +8 -0
  176. package/dist/types/components/utils/varianceTest/isInAvailableTestKey.d.ts +2 -0
  177. package/dist/types/components/utils/varianceTest/isTestEnabled.d.ts +2 -0
  178. package/dist/types/components/utils/varianceTest/isTestKeysAllVariantSelected.d.ts +9 -0
  179. package/dist/types/components/utils/varianceTest/mergeTest.d.ts +5 -0
  180. package/dist/types/components.d.ts +51 -0
  181. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +7 -0
  182. package/dist/types/types/checkout/CheckoutConfig.d.ts +13 -1
  183. package/dist/types/types/checkout/api/CheckoutSession.d.ts +7 -0
  184. package/dist/types/types/checkout/api/VarianceTest.d.ts +30 -0
  185. package/dist/types/types/generated/graphql.internal.types.d.ts +163 -0
  186. package/dist/types/types/generated/graphql.internal.types.ts +199 -0
  187. package/dist/types/types/index.d.ts +1 -0
  188. package/dist/types/types/utils/ZonosSettings.d.ts +7 -6
  189. package/dist/zonos-elements/index.esm.js +1 -1
  190. package/dist/zonos-elements/{p-609c32a3.system.entry.js → p-01987cb2.system.entry.js} +1 -1
  191. package/dist/zonos-elements/p-04a01cb1.js +1 -0
  192. package/dist/zonos-elements/p-04b43dd5.entry.js +1 -0
  193. package/dist/zonos-elements/p-0f77d087.system.entry.js +1 -0
  194. package/dist/zonos-elements/{p-329efa8c.system.entry.js → p-1dcdb65f.system.entry.js} +1 -1
  195. package/dist/zonos-elements/p-26a634a5.system.entry.js +1 -0
  196. package/dist/zonos-elements/p-27987298.system.entry.js +1 -0
  197. package/dist/zonos-elements/p-2af2eb6f.system.entry.js +1 -0
  198. package/dist/zonos-elements/p-2b8f787a.entry.js +1 -0
  199. package/dist/zonos-elements/p-30cfa524.entry.js +1 -0
  200. package/dist/zonos-elements/p-32320d9a.system.js +1 -0
  201. package/dist/zonos-elements/p-3284f459.system.entry.js +1 -0
  202. package/dist/zonos-elements/{p-13796f98.js → p-3d82a352.js} +1 -1
  203. package/dist/zonos-elements/p-452070af.system.entry.js +1 -0
  204. package/dist/zonos-elements/p-45ebc788.entry.js +1 -0
  205. package/dist/zonos-elements/p-4c81112f.entry.js +1 -0
  206. package/dist/zonos-elements/p-4efa8187.js +1 -0
  207. package/dist/zonos-elements/p-5170bc41.entry.js +1 -0
  208. package/dist/zonos-elements/p-5a2dd041.system.js +1 -0
  209. package/dist/zonos-elements/p-5c74e5c9.system.entry.js +1 -0
  210. package/dist/zonos-elements/p-5d0f7364.system.js +1 -0
  211. package/dist/zonos-elements/p-6a52a2bc.system.entry.js +1 -0
  212. package/dist/zonos-elements/p-715d0f59.system.entry.js +1 -0
  213. package/dist/zonos-elements/{p-b8d87932.js → p-72f37935.js} +1 -1
  214. package/dist/zonos-elements/p-7ae5cd60.entry.js +1 -0
  215. package/dist/zonos-elements/p-80bbd9c0.system.entry.js +1 -0
  216. package/dist/zonos-elements/p-851c642e.system.entry.js +1 -0
  217. package/dist/zonos-elements/{p-623a30aa.entry.js → p-8d870d4c.entry.js} +1 -1
  218. package/dist/zonos-elements/p-98b65387.entry.js +1 -0
  219. package/dist/zonos-elements/p-9af5e93a.entry.js +1 -0
  220. package/dist/zonos-elements/p-aa1193bc.entry.js +1 -0
  221. package/dist/zonos-elements/{p-8fc08673.js → p-aae60057.js} +2 -2
  222. package/dist/zonos-elements/p-ab176281.system.entry.js +1 -0
  223. package/dist/zonos-elements/p-b52aba52.entry.js +1 -0
  224. package/dist/zonos-elements/p-bc220d35.system.js +1 -0
  225. package/dist/zonos-elements/p-bc8bda92.entry.js +1 -0
  226. package/dist/zonos-elements/p-be5afc91.system.entry.js +1 -0
  227. package/dist/zonos-elements/p-bec2a3ce.entry.js +1 -0
  228. package/dist/zonos-elements/p-c291bac1.entry.js +1 -0
  229. package/dist/zonos-elements/p-c3d2422e.entry.js +1 -0
  230. package/dist/zonos-elements/{p-f28eb1dd.system.js → p-c50b3100.system.js} +1 -1
  231. package/dist/zonos-elements/p-c58acd4c.system.entry.js +1 -0
  232. package/dist/zonos-elements/p-c5fcbc92.system.entry.js +1 -0
  233. package/dist/zonos-elements/p-c767242b.entry.js +1 -0
  234. package/dist/zonos-elements/p-c9aa902e.system.entry.js +1 -0
  235. package/dist/zonos-elements/p-cb823c4d.system.js +1 -0
  236. package/dist/zonos-elements/{p-24554580.system.js → p-d2466fbd.system.js} +2 -2
  237. package/dist/zonos-elements/{p-d422ad1d.system.js → p-d42dfd32.system.js} +1 -1
  238. package/dist/zonos-elements/p-d46349d3.system.entry.js +1 -0
  239. package/dist/zonos-elements/p-d60ca44b.system.entry.js +1 -0
  240. package/dist/zonos-elements/{p-b2241919.entry.js → p-d6a10007.entry.js} +1 -1
  241. package/dist/zonos-elements/p-db025dfc.system.entry.js +1 -0
  242. package/dist/zonos-elements/p-db3968a2.js +1 -0
  243. package/dist/zonos-elements/p-dcd6acd4.system.entry.js +1 -0
  244. package/dist/zonos-elements/p-dd1cfa74.entry.js +1 -0
  245. package/dist/zonos-elements/p-df4c46a6.entry.js +1 -0
  246. package/dist/zonos-elements/{p-4593324c.js → p-e26c9e83.js} +1 -1
  247. package/dist/zonos-elements/p-e68d5219.entry.js +1 -0
  248. package/dist/zonos-elements/p-ea6d87a1.system.js +1 -1
  249. package/dist/zonos-elements/p-ef3e05e5.system.js +1 -0
  250. package/dist/zonos-elements/p-f255e822.js +1 -0
  251. package/dist/zonos-elements/p-f655ec36.entry.js +1 -0
  252. package/dist/zonos-elements/{p-e91b244c.entry.js → p-f891d470.entry.js} +1 -1
  253. package/dist/zonos-elements/p-f8d0d488.system.entry.js +1 -0
  254. package/dist/zonos-elements/{p-240ee490.system.entry.js → p-fbe36bc8.system.entry.js} +1 -1
  255. package/dist/zonos-elements/p-fcc2e712.entry.js +1 -0
  256. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  257. package/package.json +1 -1
  258. package/dist/esm-es5/cart-e03d615e.js +0 -1
  259. package/dist/esm-es5/zonos-cart-items_13.entry.js +0 -1
  260. package/dist/esm-es5/zonosStore-cdabc848.js +0 -1
  261. package/dist/zonos-elements/p-06ed3582.system.js +0 -1
  262. package/dist/zonos-elements/p-0a2101d4.system.js +0 -1
  263. package/dist/zonos-elements/p-0aa20875.system.entry.js +0 -1
  264. package/dist/zonos-elements/p-0bfd23da.entry.js +0 -1
  265. package/dist/zonos-elements/p-0f3568a7.entry.js +0 -1
  266. package/dist/zonos-elements/p-147ca395.entry.js +0 -1
  267. package/dist/zonos-elements/p-190398dd.entry.js +0 -1
  268. package/dist/zonos-elements/p-1eddec23.entry.js +0 -1
  269. package/dist/zonos-elements/p-1f2c3f5c.system.entry.js +0 -1
  270. package/dist/zonos-elements/p-24a2e899.system.entry.js +0 -1
  271. package/dist/zonos-elements/p-2882b9f4.entry.js +0 -1
  272. package/dist/zonos-elements/p-28ba5a6b.system.entry.js +0 -1
  273. package/dist/zonos-elements/p-33488109.system.entry.js +0 -1
  274. package/dist/zonos-elements/p-337fab4e.js +0 -1
  275. package/dist/zonos-elements/p-35573f66.entry.js +0 -1
  276. package/dist/zonos-elements/p-394d468f.system.js +0 -1
  277. package/dist/zonos-elements/p-3ddecaa4.system.entry.js +0 -1
  278. package/dist/zonos-elements/p-48f70043.system.entry.js +0 -1
  279. package/dist/zonos-elements/p-55711b80.system.entry.js +0 -1
  280. package/dist/zonos-elements/p-578bf5d7.entry.js +0 -1
  281. package/dist/zonos-elements/p-5b8e5d1a.entry.js +0 -1
  282. package/dist/zonos-elements/p-5c061a35.entry.js +0 -1
  283. package/dist/zonos-elements/p-6096c1c5.entry.js +0 -1
  284. package/dist/zonos-elements/p-6adc6e27.entry.js +0 -1
  285. package/dist/zonos-elements/p-7bb9c330.entry.js +0 -1
  286. package/dist/zonos-elements/p-7c6b8d3f.entry.js +0 -1
  287. package/dist/zonos-elements/p-85270076.system.entry.js +0 -1
  288. package/dist/zonos-elements/p-8a9d4605.system.entry.js +0 -1
  289. package/dist/zonos-elements/p-94e3e50d.system.entry.js +0 -1
  290. package/dist/zonos-elements/p-9f272e8e.system.entry.js +0 -1
  291. package/dist/zonos-elements/p-9f6dd86a.entry.js +0 -1
  292. package/dist/zonos-elements/p-a64ab131.system.entry.js +0 -1
  293. package/dist/zonos-elements/p-aac95779.system.entry.js +0 -1
  294. package/dist/zonos-elements/p-ad3c5358.entry.js +0 -1
  295. package/dist/zonos-elements/p-ad8a0584.entry.js +0 -1
  296. package/dist/zonos-elements/p-aeaba33e.system.entry.js +0 -1
  297. package/dist/zonos-elements/p-af6af82e.system.js +0 -1
  298. package/dist/zonos-elements/p-b2e76636.system.entry.js +0 -1
  299. package/dist/zonos-elements/p-b6afcf3f.system.entry.js +0 -1
  300. package/dist/zonos-elements/p-b8d91f99.entry.js +0 -1
  301. package/dist/zonos-elements/p-be8fa9a5.system.entry.js +0 -1
  302. package/dist/zonos-elements/p-c770044a.system.entry.js +0 -1
  303. package/dist/zonos-elements/p-d4842d10.system.entry.js +0 -1
  304. package/dist/zonos-elements/p-e390725f.js +0 -1
  305. package/dist/zonos-elements/p-eb85f0b6.system.entry.js +0 -1
  306. package/dist/zonos-elements/p-ef3d0394.entry.js +0 -1
  307. package/dist/zonos-elements/p-f6e587bb.entry.js +0 -1
  308. package/dist/zonos-elements/p-ff23980c.entry.js +0 -1
@@ -1,7 +1,8 @@
1
- import { z as zonosStore, c as createStore } from './zonosStore-cdabc848.js';
2
- import { t as trackConversionEvent, F as validateCheckoutSession, f as stripeStore, e as cartStore, z as stripeStoreHandleInventoryCheck, r as translate, x as cartStoreNextStep, k as cartStoreClearCheckoutInterval } from './cart-e03d615e.js';
1
+ import { z as zonosStore, c as createStore } from './zonosStore-d10a829f.js';
2
+ import { t as trackConversionEvent, z as validateCheckoutSession, d as stripeStore, e as cartStore, v as stripeStoreHandleInventoryCheck, r as cartStoreNextStep, j as cartStoreClearCheckoutInterval } from './cart-b7c15b61.js';
3
+ import { t as translate, s as storageStore } from './localization-bf7224aa.js';
3
4
  import { h as handleFetch, l as log, b as logError, j as jsonParse } from './handleFetch-621e45bc.js';
4
- import { t as tinycolor } from './isDarkColor-4c7b2ffc.js';
5
+ import { t as tinycolor } from './isDarkColor-31dd7dff.js';
5
6
 
6
7
  /*!
7
8
  * paypal-js v8.1.0 (2024-06-07T16:55:00.122Z)
@@ -444,7 +445,7 @@ const paypalStoreInitButtons = (props) => {
444
445
  log('Paypal is not available');
445
446
  return null;
446
447
  }
447
- const checkoutSessionId = cartStore.checkoutSessionId;
448
+ const checkoutSessionId = storageStore.checkoutSessionId;
448
449
  if (!checkoutSessionId) {
449
450
  log('Paypal is not available due to checkoutSessionId is not available');
450
451
  return null;
@@ -1,15 +1,17 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-a457c60c.js';
2
- import { e as cartStore, f as stripeStore, t as trackConversionEvent, V as getFallbackDefaultCountryCode, r as translate, l as localizationStore } from './cart-e03d615e.js';
3
- import { z as zonosStore, d as zonosStoreFontFamily, f as isObject_1 } from './zonosStore-cdabc848.js';
2
+ import { d as stripeStore, t as trackConversionEvent, e as cartStore } from './cart-b7c15b61.js';
3
+ import { n as storageStoreOnChange, s as storageStore, o as getFallbackDefaultCountryCode, t as translate, l as localizationStore } from './localization-bf7224aa.js';
4
+ import { z as zonosStore, d as zonosStoreFontFamily, f as isObject_1 } from './zonosStore-d10a829f.js';
4
5
  import { b as logError, l as log, i as isCheckoutMobile } from './handleFetch-621e45bc.js';
5
6
  import { s as shouldRenderTaxIdInput, i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './shouldRenderTaxIdInput-8bc112bb.js';
6
7
  import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
7
8
  import { c as classes } from './classes-0d95c529.js';
8
- import { g as getBorderRadius } from './getBorderRadius-413e97eb.js';
9
+ import { g as getBorderRadius } from './getBorderRadius-78b28b4d.js';
9
10
  import { R as RemoveIcon$2 } from './RemoveIcon-9dc5dd1a.js';
10
- import { i as isDarkColor } from './isDarkColor-4c7b2ffc.js';
11
- import { d as debounce_1 } from './debounce-a2121722.js';
11
+ import { i as isDarkColor } from './isDarkColor-31dd7dff.js';
12
+ import { d as debounce_1 } from './debounce-3a9f27a0.js';
12
13
  import { i as inheritAriaAttributes, a as inheritAttributes } from './helpers-2f6955b1.js';
14
+ import './VarianceTest-fef2d958.js';
13
15
 
14
16
  const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h .zonos--company-name-input.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
15
17
  const ZonosAddressStyle0 = zonosAddressCss;
@@ -19,6 +21,7 @@ const ZonosAddress$1 = class {
19
21
  registerInstance(this, hostRef);
20
22
  this.invalidCharacters = createEvent(this, "invalidCharacters", 7);
21
23
  this.taxIdChanged = createEvent(this, "taxIdChanged", 7);
24
+ this.onStoreCheckoutSessionIdChangedSubscription = () => { };
22
25
  /**
23
26
  * Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
24
27
  */
@@ -27,6 +30,14 @@ const ZonosAddress$1 = class {
27
30
  * Check if the tracking event is sent
28
31
  */
29
32
  this.trackingSent = false;
33
+ this.onStoreCheckoutSessionIdChanged = () => {
34
+ const onCheckoutSessionIdChange = () => {
35
+ this.checkoutSessionId = storageStore.checkoutSessionId;
36
+ };
37
+ // Trigger it once on init because onChange doesn't get triggered on initial load
38
+ onCheckoutSessionIdChange();
39
+ this.onStoreCheckoutSessionIdChangedSubscription = storageStoreOnChange('checkoutSessionId', onCheckoutSessionIdChange);
40
+ };
30
41
  this.type = undefined;
31
42
  this.titleText = undefined;
32
43
  this.defaultAddress = [];
@@ -34,7 +45,7 @@ const ZonosAddress$1 = class {
34
45
  this.stripe = window.Zonos.stripe;
35
46
  this.isDirtyAddress = false;
36
47
  this.isAddressFilled = false;
37
- this.checkoutSessionId = cartStore.checkoutSessionId;
48
+ this.checkoutSessionId = storageStore.checkoutSessionId;
38
49
  }
39
50
  getStripeAddressInstance() {
40
51
  if (this.type === 'billing') {
@@ -63,7 +74,7 @@ const ZonosAddress$1 = class {
63
74
  }
64
75
  isAddressFilledChanged() {
65
76
  // Sometimes address elements is loaded with prefilled data before checkout is loaded, need to not send the event if checkout session id is not available, and send the event after checkout is loaded
66
- if (!cartStore.checkoutSessionId) {
77
+ if (!storageStore.checkoutSessionId) {
67
78
  return;
68
79
  }
69
80
  // Only need to track the event if the shipping address is filled
@@ -71,7 +82,7 @@ const ZonosAddress$1 = class {
71
82
  !this.trackingSent &&
72
83
  this.type === 'shipping') {
73
84
  this.trackingSent = true;
74
- const checkoutSessionId = cartStore.checkoutSessionId;
85
+ const checkoutSessionId = storageStore.checkoutSessionId;
75
86
  void trackConversionEvent({
76
87
  checkoutSessionId,
77
88
  eventName: 'checkout_customerInfoFilled',
@@ -243,6 +254,8 @@ const ZonosAddress$1 = class {
243
254
  // destroy the stripe element when this component is removed from the DOM, so that we can re-create the new one with previous value
244
255
  const stripeElement = this.getStripeAddressInstance().stripeAddressElement;
245
256
  stripeElement === null || stripeElement === void 0 ? void 0 : stripeElement.destroy();
257
+ // cleanup checkout session id subscription
258
+ this.onStoreCheckoutSessionIdChangedSubscription();
246
259
  }
247
260
  componentDidLoad() {
248
261
  const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
@@ -251,15 +264,16 @@ const ZonosAddress$1 = class {
251
264
  stripeAddressEventData.value.address.line1.length > 0;
252
265
  // @Watch doesn't get trigger on initial load
253
266
  void this.watchInitStripe();
267
+ this.onStoreCheckoutSessionIdChanged();
254
268
  }
255
269
  render() {
256
270
  var _a;
257
- this.checkoutSessionId = cartStore.checkoutSessionId;
271
+ this.checkoutSessionId = storageStore.checkoutSessionId;
258
272
  if ((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete) {
259
273
  this.isAddressFilled = true;
260
274
  }
261
275
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
262
- return (h(Host, { key: 'ebd6b34dfcb486e1746fbc306e2e413d03290d50', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '68e7f0fa37ca7efd4d833b32d4c27cda29521871', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '5e6d4b3798c91def3f3a6ae5ac12f1a2ccca272b', class: "zonos--address-component" })));
276
+ return (h(Host, { key: '6cb58defa44e55a88bdb8ad3b1b2e96033337fec', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '2708affaeb700f6c256b38285696d3eaffa1d1ea', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '290de47b8579a70f997ead2ab3ada123dfa4d204', class: "zonos--address-component" })));
263
277
  }
264
278
  get el() { return getElement(this); }
265
279
  static get watchers() { return {
@@ -415,9 +429,9 @@ const ZonosAddressSuggestions = class {
415
429
  return segments;
416
430
  }
417
431
  render() {
418
- return (h(Host, { key: '88eff73526172a10854d2ae18b5b54afd3fd4b28', class: "zonos--address-suggestions", role: "group", style: {
432
+ return (h(Host, { key: 'eeb520d24c5cebca1f425c9648a2bdf0269f74c9', class: "zonos--address-suggestions", role: "group", style: {
419
433
  '--zonos--border-radius': getBorderRadius(),
420
- } }, h("ul", { key: 'f55c95ab39906d2bcb6edc6d5379ec6c70f5277a', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: 'b7ca181e48f18ac7c0d2c8cfc1b05fec6df5827f', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '07577044166b2cbfbec0cf96786266d74dd1c098', class: "powered-by-container" }, h("zonos-text", { key: '3780f4763666ac08cfe7083749b5f781b74e4e66', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '73c5d1db8a235cae3ebc2af0eba89d91ade8a6a1', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '6d6058329ced6bae0f04ce4e80da07506f706847', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
434
+ } }, h("ul", { key: 'f7ac29ef14417f8c86dbafcf840204f4c964b3ad', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: '13d34e64d8bd7711268a1f5641d0c868a89b949c', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '00f20bd5568762ee581462826410031273e808da', class: "powered-by-container" }, h("zonos-text", { key: 'fc61a8ec973fc2cdf1e137563617cfed0badbb12', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '96343fe696ec0d3990ffebaf450306ca91624d04', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: 'e7c6a9e64c8976a3c3a521b0794d2e82c1919ce2', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
421
435
  this.localSuggestions = [];
422
436
  } }))), this.localSuggestions.map(suggestion => (
423
437
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -790,6 +804,7 @@ const ZonosAddress = class {
790
804
  registerInstance(this, hostRef);
791
805
  this.invalidCharacters = createEvent(this, "invalidCharacters", 7);
792
806
  this.addressChange = createEvent(this, "addressChange", 7);
807
+ this.onStoreCheckoutSessionIdChangedSubscription = () => { };
793
808
  /**
794
809
  * Whether the suggestion is clicked
795
810
  */
@@ -944,6 +959,14 @@ const ZonosAddress = class {
944
959
  stripeStore.customBillingAddressErrors = customErrors;
945
960
  }
946
961
  };
962
+ this.onStoreCheckoutSessionIdChanged = () => {
963
+ const onCheckoutSessionIdChange = () => {
964
+ this.checkoutSessionId = storageStore.checkoutSessionId;
965
+ };
966
+ // Trigger it once on init because onChange doesn't get triggered on initial load
967
+ onCheckoutSessionIdChange();
968
+ this.onStoreCheckoutSessionIdChangedSubscription = storageStoreOnChange('checkoutSessionId', onCheckoutSessionIdChange);
969
+ };
947
970
  this.type = undefined;
948
971
  this.titleText = undefined;
949
972
  this.defaultAddress = [];
@@ -974,7 +997,7 @@ const ZonosAddress = class {
974
997
  this.lastNameError = '';
975
998
  this.isFirstInitialization = true;
976
999
  this.addressService = null;
977
- this.checkoutSessionId = cartStore.checkoutSessionId;
1000
+ this.checkoutSessionId = storageStore.checkoutSessionId;
978
1001
  }
979
1002
  getStripeAddressInstance() {
980
1003
  if (this.type === 'billing') {
@@ -1003,7 +1026,7 @@ const ZonosAddress = class {
1003
1026
  }
1004
1027
  isAddressFilledChanged() {
1005
1028
  // Sometimes address elements is loaded with prefilled data before checkout is loaded, need to not send the event if checkout session id is not available, and send the event after checkout is loaded
1006
- if (!cartStore.checkoutSessionId) {
1029
+ if (!storageStore.checkoutSessionId) {
1007
1030
  return;
1008
1031
  }
1009
1032
  // Only need to track the event if the shipping address is filled
@@ -1011,7 +1034,7 @@ const ZonosAddress = class {
1011
1034
  !this.trackingSent &&
1012
1035
  this.type === 'shipping') {
1013
1036
  this.trackingSent = true;
1014
- const checkoutSessionId = cartStore.checkoutSessionId;
1037
+ const checkoutSessionId = storageStore.checkoutSessionId;
1015
1038
  void trackConversionEvent({
1016
1039
  checkoutSessionId,
1017
1040
  eventName: 'checkout_customerInfoFilled',
@@ -1533,6 +1556,8 @@ const ZonosAddress = class {
1533
1556
  // unsubscribe from address suggestions when this component is removed from the DOM
1534
1557
  (_a = this.onAddressSuggestionsUnsubscribe) === null || _a === void 0 ? void 0 : _a.call(this);
1535
1558
  (_b = this.onAddressSelectedUnsubscribe) === null || _b === void 0 ? void 0 : _b.call(this);
1559
+ // cleanup checkout session id subscription
1560
+ this.onStoreCheckoutSessionIdChangedSubscription();
1536
1561
  }
1537
1562
  componentWillLoad() {
1538
1563
  if (zonosStore.checkoutAddressService) {
@@ -1555,12 +1580,13 @@ const ZonosAddress = class {
1555
1580
  // @Watch doesn't get trigger on initial load
1556
1581
  this.initAddressSuggestions();
1557
1582
  this.isFirstInitialization = false;
1583
+ // subscribe to checkout session id changes from storage store
1584
+ this.onStoreCheckoutSessionIdChanged();
1558
1585
  }
1559
1586
  render() {
1560
1587
  var _a;
1561
1588
  this.shippingZones = localizationStore.shippingZoneCountries;
1562
1589
  this.addressService = zonosStore.checkoutAddressService;
1563
- this.checkoutSessionId = cartStore.checkoutSessionId;
1564
1590
  if ((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete) {
1565
1591
  this.isAddressFilled = true;
1566
1592
  }
@@ -1569,10 +1595,10 @@ const ZonosAddress = class {
1569
1595
  this.country = localizationStore.selectedCountryCode;
1570
1596
  }
1571
1597
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
1572
- return (h(Host, { key: 'bb1f01c899ecdc1ed52eb8be7a680fdbb2ce9a7b', class: classes([
1598
+ return (h(Host, { key: '7a766af62acc47886e716ac3c52c1457eae04545', class: classes([
1573
1599
  'zonos--address zonos--elements',
1574
1600
  `zonos--${this.type}-address`,
1575
- ]) }, h("zonos-text", { key: 'f6ad6d23ec141fe192908b639802f69ad565958e', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1601
+ ]) }, h("zonos-text", { key: '224a78f8d1e02e2b0d7c95eafe9a1d4354fb5f73', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1576
1602
  }
1577
1603
  get el() { return getElement(this); }
1578
1604
  static get watchers() { return {
@@ -7836,24 +7862,24 @@ const ZonosStripePhoneInput = class {
7836
7862
  .filter(Boolean)
7837
7863
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
7838
7864
  : [];
7839
- return (h(Host, { key: 'c7ca4076eb70b166979d21074d068912af1496c5', class: classes([
7865
+ return (h(Host, { key: '0d4501947787cbafe38acb60fb5ee7519b6d1c73', class: classes([
7840
7866
  'zonos--phone-input zonos--elements',
7841
7867
  isDark && 'dark',
7842
- ]), "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: '5460d79c86d34daf94538f063274c45ae3be2239', class: classes([
7868
+ ]), "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: 'c3e0f9655a39a5bb3d838634754be2af60a24a10', class: classes([
7843
7869
  'zonos--label-wrapper',
7844
7870
  this.disabled && 'disabled',
7845
7871
  this.isFocused && 'focused',
7846
7872
  hasContent && 'has-content',
7847
7873
  this.error && 'has-error',
7848
7874
  this.inputLabel && 'has-label',
7849
- ]) }, h("select", { key: '290d89088b9a800b31ed19cfe3de6831322a3f5a', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7875
+ ]) }, h("select", { key: '1a58471117f6748d511498e016814bd907e8775f', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7850
7876
  var _a;
7851
7877
  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, ")"));
7852
- })), h("div", { key: 'b0271d3453869ed79a36d62f5f6bacb22a509b46', class: "zonos--input-group" }, h("div", { key: '49486c915fa2f65878a6f8ab73c48997e4ba1461', class: "zonos--select-wrapper" }, h("div", { key: '63412e8077e062efef5f42c3a77e583ade435b53', class: "zonos--country-select" }, h("div", { key: '5c073598dfeaa0c8de68f07b1a7789f4a56a24c8', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: '8a32922d75343005fde7446736746cd531ff63f8', class: "zonos--country-select-selected" }, h("div", { key: '859cdbc4c1879c38f0c848ff42b38bc5492d3e96', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: '9167a7c586e2d693bfdcad7773df60a324600be7', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: 'b39dcadb22202d866fc8e1217bbe2e17704e2300', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: '4b0a4ce8c94e6e3125cfde55542b38efb6a8a787', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '25322152ca9550a8b2e667f8f993c38a972aa9ce', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: 'c6a93ba0656e09a154c3d91327f3573e0288234b', class: classes([
7878
+ })), h("div", { key: '9c785521e095aae0cfc8af3ea90e4924c97202ac', class: "zonos--input-group" }, h("div", { key: 'b7fdd9db255ce33f3b6d3a982162c8286963324c', class: "zonos--select-wrapper" }, h("div", { key: '5d378436580df53793b1508af5e34bd43ba33ddf', class: "zonos--country-select" }, h("div", { key: '94628459db88e355b1c62b74cfcb48ec03022d4e', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: '96b332ed9c62413887f96f38ce26cb05b81a3132', class: "zonos--country-select-selected" }, h("div", { key: 'b9e5bda55328f57e15afd349789233e3c28d2bf9', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: 'fc595df21c09553dc8ffb7fe79c3043831e65298', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: '6c792c383acf3ccac02be6b954a7eb18bcdda817', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: '970b9f6e18152e04375a248669fd7314088bcd2e', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '1da5919014eee0e34b60d1df08e83d44ad20d5c2', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '7f0c215ddfb59c8e3c4413e44941a477a8adc6d6', class: classes([
7853
7879
  'zonos--input-container',
7854
7880
  this.inputLabel && 'has-label',
7855
7881
  hasContent && 'has-content',
7856
- ]) }, h("input", Object.assign({ key: '49246ff464685feaa9414d1e7b36f55b82fff564' }, 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: '653d278b7ffc634bc7892d54c8fcab7b7626f80e', class: "zonos--floated-label" }, h("label", { key: 'c637ddca7164396d57e8a5eaf98b0e523ee27258', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: 'dcc70c068fef73e804eba1f134673168a0bbaf90', textColor: "red-600" }, this.error))));
7882
+ ]) }, h("input", Object.assign({ key: 'e3ce0b598baf78452eddaab38c80bb4f0c548a5a' }, 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: 'a108f2796571f9d8a4201d1906b2381b89d14bc2', class: "zonos--floated-label" }, h("label", { key: '50d308311270bbd8635bb7848495ee4aaa2a0cac', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: '27b0233f9241ce68348b2efd1c1b525d083363e5', textColor: "red-600" }, this.error))));
7857
7883
  }
7858
7884
  get el() { return getElement(this); }
7859
7885
  static get watchers() { return {
@@ -7944,14 +7970,14 @@ const ZonosStripeSelect = class {
7944
7970
  const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
7945
7971
  const hasContent = this.internalValue || this.selectPlaceholder;
7946
7972
  const showClearButton = this.isClearable && this.internalValue && !this.isDisabled;
7947
- return (h(Host, { key: 'f5b178d5cbd48e9aff8701764a1fde4de03a6569', class: classes([
7973
+ return (h(Host, { key: '18d7ba03b9136af8614874b13b9ac3ce85f7c0d0', class: classes([
7948
7974
  'zonos--select zonos--elements',
7949
7975
  isDark && 'dark',
7950
7976
  this.isError && 'has-error',
7951
- ]), "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: 'd7b3b8148777aa61f15c1489f44871589aadf00f', class: classes([
7977
+ ]), "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: '88b8d885c11bc0776bd0c25b5f0a08f91cfb7c72', class: classes([
7952
7978
  'zonos--label-wrapper',
7953
7979
  this.isDisabled && 'disabled',
7954
- ]) }, h("select", Object.assign({ key: '629f7437fa445634db0589f217acb59b59e558d3' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
7980
+ ]) }, h("select", Object.assign({ key: 'd972a6a7b91bb51f2d5ed291a686d521c1bf82a3' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
7955
7981
  'zonos--floated-select',
7956
7982
  !!this.selectLabel && 'has-label',
7957
7983
  hasContent && 'has-content',
@@ -7961,9 +7987,9 @@ const ZonosStripeSelect = class {
7961
7987
  this.selectChange.emit(select.value);
7962
7988
  this.selectedValue = select.value;
7963
7989
  this.el.dispatchEvent(new Event('change'));
7964
- }, required: this.required }), h("option", { key: '9b50f769fc79f136b7b77916edd71acdcda199b7', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
7990
+ }, required: this.required }), h("option", { key: 'b67730b2c3e77ba60221320519f55e67d7d2b127', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
7965
7991
  // Sometimes google returns the label not the code for some countries
7966
- this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: '0ff44083dee7939d6f7bc2372990ccbef6066fed', class: "zonos--floated-label" }, h("label", { key: '8f9965fa3de61b705fa95e7ddc68013a3027464d', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: '09aa1851295b86e30488ca69720d58d1246ad67c', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: '1db5be171f74849cedc3a8804bac23fdfa43aaa5', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: '2ca7e2da61eef16d6feb74c4d6a6198f1762ad16', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: 'c0050a27a619cb9b844282be841a320648f9d008', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: 'c0a3eb551533c4cb24f92ad6fd7a4b44cd24044c', textColor: "red-600" }, this.error))));
7992
+ this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: '088c104006e983b5ec1680067af32c0479dde13b', class: "zonos--floated-label" }, h("label", { key: 'faf3bf337253d205265b181d65d8f8024ffd6124', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: '7ce8d36b84b08df139877cd2e12a26b8157ce83b', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: 'b0a1af08afd9792ba4e7989361219c5cf7d5d8bc', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: '50ae86d5e9d9722b5546997f9fd52a997cac3add', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: '30034030f97f7ed6b3027cbc5220c73cde4bbbc2', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: 'cd02da8b1a1cb81581ac7285af84193000692eaa', textColor: "red-600" }, this.error))));
7967
7993
  }
7968
7994
  get el() { return getElement(this); }
7969
7995
  static get watchers() { return {
@@ -1,6 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-a457c60c.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-cdabc848.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-d10a829f.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
+ import './VarianceTest-fef2d958.js';
4
5
 
5
6
  const RemoveLineIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
6
7
  <path fill-rule="evenodd" clip-rule="evenodd" d="M10.8282 5.17184C11.0235 5.3671 11.0235 5.68368 10.8282 5.87894L8.70688 8.00026L10.8282 10.1216C11.0235 10.3168 11.0235 10.6334 10.8282 10.8287C10.6329 11.024 10.3164 11.024 10.1211 10.8287L7.99978 8.70737L5.87846 10.8287C5.68319 11.024 5.36661 11.024 5.17135 10.8287C4.97609 10.6334 4.97609 10.3168 5.17135 10.1216L7.29267 8.00026L5.17135 5.87894C4.97609 5.68368 4.97609 5.3671 5.17135 5.17184C5.36661 4.97658 5.68319 4.97658 5.87846 5.17184L7.99978 7.29316L10.1211 5.17184C10.3164 4.97658 10.6329 4.97658 10.8282 5.17184Z" fill="var(--zonos-elements-gray-800)"/>
@@ -1,6 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-a457c60c.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-cdabc848.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-d10a829f.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
+ import './VarianceTest-fef2d958.js';
4
5
 
5
6
  const zonosBannerCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
6
7
  const ZonosBannerStyle0 = zonosBannerCss;
@@ -1,11 +1,12 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-a457c60c.js';
2
- import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-cdabc848.js';
2
+ import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-d10a829f.js';
3
3
  import { i as inheritAriaAttributes, a as inheritAttributes } from './helpers-2f6955b1.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
- import { g as getBorderRadius } from './getBorderRadius-413e97eb.js';
5
+ import { g as getBorderRadius } from './getBorderRadius-78b28b4d.js';
6
6
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
7
- import { i as isDarkColor } from './isDarkColor-4c7b2ffc.js';
7
+ import { i as isDarkColor } from './isDarkColor-31dd7dff.js';
8
8
  import { s as styles } from './styles-6fc2fad9.js';
9
+ import './VarianceTest-fef2d958.js';
9
10
 
10
11
  /**
11
12
  * Get theme for button text based on background color
@@ -1,7 +1,8 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-a457c60c.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-cdabc848.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-d10a829f.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { g as getBorderRadius } from './getBorderRadius-413e97eb.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-78b28b4d.js';
5
+ import './VarianceTest-fef2d958.js';
5
6
 
6
7
  const zonosCardCss = ":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 .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
7
8
  const ZonosCardStyle0 = zonosCardCss;
@@ -1,16 +1,18 @@
1
1
  import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-a457c60c.js';
2
- import { e as cartStore, E as currencyFormat, r as translate, M as cartStoreHasOneEligibleItem, N as stripeStoreApplyPromoCode, O as stripeStoreRemovePromoCode, f as stripeStore, C as stripeStoreReset, d as stripeStoreRetrievePayment, t as trackConversionEvent, P as stripeStoreResetPromoCode, Q as stripeStoreMessageBasedOnStatus, l as localizationStore, x as cartStoreNextStep, R as stripeStoreTranslateAddressToLatin, S as cartStoreUpdateSelectedShippingOption, T as cartStoreGetShippingTransitInfo, U as sortServiceLevelOptionsByAmount } from './cart-e03d615e.js';
2
+ import { e as cartStore, A as cartStoreHasOneEligibleItem, B as stripeStoreApplyPromoCode, C as stripeStoreRemovePromoCode, d as stripeStore, y as stripeStoreReset, c as stripeStoreRetrievePayment, t as trackConversionEvent, D as stripeStoreResetPromoCode, E as stripeStoreMessageBasedOnStatus, r as cartStoreNextStep, F as stripeStoreTranslateAddressToLatin, G as cartStoreUpdateSelectedShippingOption, H as cartStoreGetShippingTransitInfo, I as sortServiceLevelOptionsByAmount } from './cart-b7c15b61.js';
3
+ import { d as currencyFormat, t as translate, s as storageStore, l as localizationStore } from './localization-bf7224aa.js';
3
4
  import { c as classes } from './classes-0d95c529.js';
4
- import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-23dd5023.js';
5
- import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-cdabc848.js';
5
+ import { s as submitGtag, c as paypalStoreReset, b as paypalStore, i as isContrastColor } from './paypal-932fd3dd.js';
6
+ import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-d10a829f.js';
6
7
  import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, g as getIsTestMode, d as allLogs, i as isCheckoutMobile, b as logError, a as getIsStagingMode } from './handleFetch-621e45bc.js';
7
8
  import { c as createCustomEvent } from './createCustomEvent-58159025.js';
8
- import { g as getBorderRadius } from './getBorderRadius-413e97eb.js';
9
+ import { g as getBorderRadius } from './getBorderRadius-78b28b4d.js';
9
10
  import { l as languages } from './ILanguage-cd6acb72.js';
10
- import { i as isDarkColor, t as tinycolor } from './isDarkColor-4c7b2ffc.js';
11
+ import { i as isDarkColor, t as tinycolor } from './isDarkColor-31dd7dff.js';
11
12
  import { i as isColorVariable } from './isColorVariable-0a94004f.js';
12
13
  import { s as shouldRenderTaxIdInput, c as containsNonLatinChars } from './shouldRenderTaxIdInput-8bc112bb.js';
13
14
  import { e as euCountryCodes } from './TaxId-50d72254.js';
15
+ import './VarianceTest-fef2d958.js';
14
16
 
15
17
  const getDisplayCurrency = () => {
16
18
  var _a, _b;
@@ -1276,7 +1278,7 @@ const ZonosCheckoutFinish = class {
1276
1278
  this.closeClick = createEvent(this, "closeClick", 7);
1277
1279
  this.pullOrder = async () => {
1278
1280
  var _a, _b;
1279
- const checkoutSessionId = cartStore.checkoutSessionId;
1281
+ const checkoutSessionId = storageStore.checkoutSessionId;
1280
1282
  const searchParams = new URLSearchParams();
1281
1283
  searchParams.set('checkoutSessionId', checkoutSessionId || '');
1282
1284
  const { baseUrl, errors, json } = await handleFetch(`/api/zonos-elements/get-order?${searchParams.toString()}`);
@@ -1299,7 +1301,7 @@ const ZonosCheckoutFinish = class {
1299
1301
  this.redirectToUrl = (url) => {
1300
1302
  // reset store and checkout session id before redirecting
1301
1303
  stripeStoreReset();
1302
- cartStore.checkoutSessionId = null;
1304
+ storageStore.checkoutSessionId = null;
1303
1305
  // If it is iframed, redirect the parent window
1304
1306
  if (window.parent) {
1305
1307
  window.parent.location.href = url;
@@ -1405,7 +1407,7 @@ const ZonosCheckoutFinish = class {
1405
1407
  const { baseUrl, order } = await this.pullOrder();
1406
1408
  const { isLegacyCheckout } = window.Zonos;
1407
1409
  const foundLegacyOrderNumber = !!((_b = (_a = order === null || order === void 0 ? void 0 : order.references) === null || _a === void 0 ? void 0 : _a.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _b === void 0 ? void 0 : _b.value);
1408
- const checkoutSessionId = cartStore.checkoutSessionId;
1410
+ const checkoutSessionId = storageStore.checkoutSessionId;
1409
1411
  const maxRetries = parseFloat(new URLSearchParams(window.location.search).get('maxPollingRetries') ||
1410
1412
  '0') || MAX_RETRIES;
1411
1413
  log(`=== Polling order (${attempts} attemps)`, 'info');
@@ -1426,7 +1428,7 @@ const ZonosCheckoutFinish = class {
1426
1428
  ],
1427
1429
  metadata: {
1428
1430
  allLogs,
1429
- checkoutSessionId: cartStore.checkoutSessionId || '',
1431
+ checkoutSessionId: storageStore.checkoutSessionId || '',
1430
1432
  orderId: order.id,
1431
1433
  storeId: zonosStore.storeId,
1432
1434
  },
@@ -1440,7 +1442,7 @@ const ZonosCheckoutFinish = class {
1440
1442
  errors: [`Order found after ${attempts} attempts`],
1441
1443
  metadata: {
1442
1444
  allLogs,
1443
- checkoutSessionId: cartStore.checkoutSessionId || '',
1445
+ checkoutSessionId: storageStore.checkoutSessionId || '',
1444
1446
  orderId: order.id,
1445
1447
  storeId: zonosStore.storeId,
1446
1448
  },
@@ -1459,7 +1461,7 @@ const ZonosCheckoutFinish = class {
1459
1461
  errors: [`Order not found after ${maxRetries} attempts`],
1460
1462
  metadata: {
1461
1463
  allLogs,
1462
- checkoutSessionId: cartStore.checkoutSessionId || '',
1464
+ checkoutSessionId: storageStore.checkoutSessionId || '',
1463
1465
  storeId: zonosStore.storeId,
1464
1466
  },
1465
1467
  });
@@ -1508,7 +1510,7 @@ const ZonosCheckoutFinish = class {
1508
1510
  void sendErrorLog({
1509
1511
  endpoint: 'Stripe payment failed',
1510
1512
  errors: [
1511
- `Payment intent "${paymentIntentId}" status: ${status} - checkout session: ${cartStore.checkoutSessionId}`,
1513
+ `Payment intent "${paymentIntentId}" status: ${status} - checkout session: ${storageStore.checkoutSessionId}`,
1512
1514
  ],
1513
1515
  metadata: {
1514
1516
  allLogs,
@@ -1520,7 +1522,7 @@ const ZonosCheckoutFinish = class {
1520
1522
  // Save new order info in case the user reloads before we get order info
1521
1523
  this.saveOrderIdForDuplicationIssue();
1522
1524
  submitGtag('zonos-checkout-success');
1523
- const checkoutSessionId = cartStore.checkoutSessionId;
1525
+ const checkoutSessionId = storageStore.checkoutSessionId;
1524
1526
  void trackConversionEvent({
1525
1527
  checkoutSessionId,
1526
1528
  eventName: 'checkout_orderCompleted',
@@ -1538,7 +1540,7 @@ const ZonosCheckoutFinish = class {
1538
1540
  // reset promo when checkout is finished
1539
1541
  stripeStoreResetPromoCode();
1540
1542
  stripeStoreReset();
1541
- cartStore.checkoutSessionId = null;
1543
+ storageStore.checkoutSessionId = null;
1542
1544
  };
1543
1545
  this.checkStagingOrderStatus = async () => {
1544
1546
  this.notificationType = 'success';
@@ -1552,7 +1554,7 @@ const ZonosCheckoutFinish = class {
1552
1554
  stripeStoreResetPromoCode();
1553
1555
  stripeStoreReset();
1554
1556
  paypalStoreReset();
1555
- cartStore.checkoutSessionId = null;
1557
+ storageStore.checkoutSessionId = null;
1556
1558
  };
1557
1559
  this.checkPaypalPaymentStatus = async () => {
1558
1560
  // render error message if there's an error
@@ -1567,7 +1569,7 @@ const ZonosCheckoutFinish = class {
1567
1569
  this.isLoading = false;
1568
1570
  if (paypalStore.orderIdCreated) {
1569
1571
  submitGtag('zonos-checkout-success');
1570
- const checkoutSessionId = cartStore.checkoutSessionId;
1572
+ const checkoutSessionId = storageStore.checkoutSessionId;
1571
1573
  void trackConversionEvent({
1572
1574
  checkoutSessionId,
1573
1575
  eventName: 'checkout_orderCompleted',
@@ -1585,7 +1587,7 @@ const ZonosCheckoutFinish = class {
1585
1587
  stripeStoreResetPromoCode();
1586
1588
  stripeStoreReset();
1587
1589
  paypalStoreReset();
1588
- cartStore.checkoutSessionId = null;
1590
+ storageStore.checkoutSessionId = null;
1589
1591
  };
1590
1592
  this.closeClickHandler = () => {
1591
1593
  this.closeClick.emit();
@@ -1596,7 +1598,7 @@ const ZonosCheckoutFinish = class {
1596
1598
  const placedOrderTime = {
1597
1599
  cartId: window.Zonos.cartId || null,
1598
1600
  checkoutSessionId: (existingPlacedOrderInfo === null || existingPlacedOrderInfo === void 0 ? void 0 : existingPlacedOrderInfo.checkoutSessionId) ||
1599
- cartStore.checkoutSessionId ||
1601
+ storageStore.checkoutSessionId ||
1600
1602
  '',
1601
1603
  orderId: ((_a = this.order) === null || _a === void 0 ? void 0 : _a.id) || null,
1602
1604
  time: (existingPlacedOrderInfo === null || existingPlacedOrderInfo === void 0 ? void 0 : existingPlacedOrderInfo.time) || Date.now(),
@@ -1638,11 +1640,11 @@ const ZonosCheckoutFinish = class {
1638
1640
  }
1639
1641
  render() {
1640
1642
  const isTestMode = getIsTestMode();
1641
- return (h(Host, { key: 'e8ae24f1668c71f405bf18de82e7703928b02a78', class: "zonos--checkout-finish zonos--elements", style: {
1643
+ return (h(Host, { key: '971e0f8daa53ce2f99b2d1d06088fa6a9a37686c', class: "zonos--checkout-finish zonos--elements", style: {
1642
1644
  '--zonos--border-radius': getBorderRadius({
1643
1645
  overrideBorderStyle: this.borderRadius,
1644
1646
  }),
1645
- } }, !this.isLoading && (h("div", { key: '6e92d1870eac3f644c3f26d85e3f0108f3cca097', class: "zonos--finish-details" }, h("div", { key: '6979d24f7570631baccdf844f83a85b6da781da7', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '2b422f086008ca3a9c9634e5cb34a230de51e890', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '9f4207e526d03fae6207eb7124358c418413c378', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: 'f6df9c924b93f9149db88a2963c63799549bdc49',
1647
+ } }, !this.isLoading && (h("div", { key: '284fb3adcb71840ad3f5cd94e169c723e29e3c42', class: "zonos--finish-details" }, h("div", { key: '485b63dae4714360af0ee65314e65de8b54ab311', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'c73f31ed5a9690af97e1884d0bbfff93734f266d', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '126118933ea6863384d98bf8f013a4130ab411cd', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (h("zonos-button", { key: '95bdb39e56a16004cc3896531458d0e86fa38bb4',
1646
1648
  // Only show loading spinner if it's not an error notification
1647
1649
  loading: this.isWaitingToRedirect &&
1648
1650
  this.notificationType !== 'error', onClick: () => {
@@ -1654,9 +1656,9 @@ const ZonosCheckoutFinish = class {
1654
1656
  }
1655
1657
  this.closeClickHandler();
1656
1658
  }, size: "md", variant: "primary" }, translate('Close'))), !window.Zonos.isLegacyCheckout &&
1657
- this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '8ec8365d0f3a541530e85318744fbb4c85dc385e', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
1659
+ this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: '325fd258d5d71668ba190a24ddc0e231b4b75208', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
1658
1660
  cartStore.step === 'finish' &&
1659
- this.notificationType === 'success' && (h("div", { key: '2c91cb3d40eb585513656bcc09dc3144d854af5c', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '883827fbe550c0d9132c27e4a5b984d8d45aa2bc', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'aa3ebf41507ce95dd02778a4b55863b0e880af14', onClick: () => {
1661
+ this.notificationType === 'success' && (h("div", { key: '00116d9f6380fa1f4547eb0cb6d229aca380bffb', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '5c5334198095729ae8e07e4868b6b248f0750ac3', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: '76fb0725306246ac9b9c88a41bca1937d65e3f01', onClick: () => {
1660
1662
  const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
1661
1663
  this.redirectToUrl(isZonosDashboard
1662
1664
  ? '/orders/all'
@@ -1725,7 +1727,7 @@ const placeTestOrder = async () => {
1725
1727
  var _a, _b;
1726
1728
  const shipToPartyId = (_a = cartStore.partiesData.find(party => party.type === 'DESTINATION')) === null || _a === void 0 ? void 0 : _a.id;
1727
1729
  const billToPartyId = (_b = cartStore.partiesData.find(party => party.type === 'PAYOR')) === null || _b === void 0 ? void 0 : _b.id;
1728
- const checkoutSessionId = cartStore.checkoutSessionId;
1730
+ const checkoutSessionId = storageStore.checkoutSessionId;
1729
1731
  if (!checkoutSessionId || !billToPartyId || !shipToPartyId) {
1730
1732
  logError('Missing required data', {
1731
1733
  billToPartyId,
@@ -2489,11 +2491,11 @@ const ZonosCustomerInfo = class {
2489
2491
  !!((_b = (_a = zonosStore.genericSettings) === null || _a === void 0 ? void 0 : _a.countryCustomAddressEnabled) === null || _b === void 0 ? void 0 : _b.includes(localizationStore.selectedCountryCode));
2490
2492
  // Should only record the form type used once
2491
2493
  if (type === 'shipping' &&
2492
- cartStore.checkoutSessionId &&
2494
+ storageStore.checkoutSessionId &&
2493
2495
  !this.recordedFormTypeUsed) {
2494
2496
  void handleFetch('/api/zonos-elements/update-checkout-session-metadata', {
2495
2497
  body: {
2496
- id: cartStore.checkoutSessionId,
2498
+ id: storageStore.checkoutSessionId,
2497
2499
  metadata: [
2498
2500
  {
2499
2501
  key: 'ZONOS_FORM_TYPE_USING',
@@ -2614,6 +2616,22 @@ const ZonosCustomerInfo = class {
2614
2616
  };
2615
2617
  ZonosCustomerInfo.style = ZonosCustomerInfoStyle0;
2616
2618
 
2619
+ const zonosLoadingOverlayCss = ":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{position:fixed;inset:0;z-index:2147483010;pointer-events:none;display:block}:host .zonos--loading-overlay{position:fixed;inset:0;width:100vw;height:100vh;background:var(--zonos-elements-backdrop-color);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;opacity:0;visibility:hidden;-webkit-transition:opacity 0.3s ease, visibility 0.3s ease;transition:opacity 0.3s ease, visibility 0.3s ease;z-index:2147483010}:host(.zonos--open){pointer-events:auto}:host(.zonos--open) .zonos--loading-overlay{opacity:0.65;visibility:visible}";
2620
+ const ZonosLoadingOverlayStyle0 = zonosLoadingOverlayCss;
2621
+
2622
+ const ZonosLoadingOverlay = class {
2623
+ constructor(hostRef) {
2624
+ registerInstance(this, hostRef);
2625
+ this.open = false;
2626
+ this.spinnerColor = undefined;
2627
+ this.size = 40;
2628
+ }
2629
+ render() {
2630
+ return (h(Host, { key: 'eff20c3fe4c4a998748ac07567cc5449efc398cd', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: '1b37bfc1a150720e0f4f84075ac661e5395aee3b', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: '42ac91e723802b23897b6e5cd99e0aea7d964da5', size: this.size, spinnerColor: this.spinnerColor }))));
2631
+ }
2632
+ };
2633
+ ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
2634
+
2617
2635
  const zonosRestStateCss = ":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{height:100%;width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;gap:20px}:host .zonos--restState-image{width:124px;height:124px;margin-bottom:15px}:host .content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;gap:8px}";
2618
2636
  const ZonosRestStateStyle0 = zonosRestStateCss;
2619
2637
 
@@ -2631,11 +2649,11 @@ const ZonosRestState = class {
2631
2649
  }
2632
2650
  render() {
2633
2651
  const imageUrl = this.getImageRestState();
2634
- return (h(Host, { key: 'a06221e04e00bf733a37d00fdff2643714208eca', class: classes(['zonos--elements zonos--restState']), style: {
2652
+ return (h(Host, { key: '754bdcff113a9ec5351d1053ddaea5e542111bbc', class: classes(['zonos--elements zonos--restState']), style: {
2635
2653
  '--zonos--font-family': zonosStoreFontFamily(),
2636
- } }, h("div", { key: 'c889f042cb289876f3e6e002a5527a239ad69791', class: "zonos--restState-image" }, h("img", { key: '21b30e32ac86bd0f5e9f9dded3bcd4f3295c9637', alt: this.restStateType, onError: () => {
2654
+ } }, h("div", { key: '3037acffd2d7da9bac11ada7cd4e06e2ae976f72', class: "zonos--restState-image" }, h("img", { key: 'd462d07f452caaaf87af20e1b2aad6ac45b43107', alt: this.restStateType, onError: () => {
2637
2655
  this.isErrorImageLoad = true;
2638
- }, src: imageUrl })), h("div", { key: 'a28cfe4511fb4aa0f0c79b2e6cfaa78b6cbdb2a8', class: "content" }, h("zonos-text", { key: '20aa2a10a7617c96f99a6f653a5c1a8a0de85dbe', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '595b823c2e9c3270f510388b4ccbf544581453a9', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: '56a2514a6d170849ed87d1ab680e582a0f6e4b24', class: "action" }, h("slot", { key: 'b0e8f4dd2ff05929f4ffe7461e5dbe9aa4b5bfc5' }))));
2656
+ }, src: imageUrl })), h("div", { key: '9acf78ef8358ad75df01bbbb1ed52b680f896255', class: "content" }, h("zonos-text", { key: '8310474f006a1fc1dcf96bac09c770572b20590a', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '623dc98d57eaae5fb1059c658391300aa41a13fb', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: 'f69613147698a147447a0aac330ad1c67739fed0', class: "action" }, h("slot", { key: '823ff6075ecac4598299c29ab2e44a6d5fb6a5d8' }))));
2639
2657
  }
2640
2658
  static get assetsDirs() { return ["assets"]; }
2641
2659
  };
@@ -2765,7 +2783,7 @@ const ZonosShipping = class {
2765
2783
  }
2766
2784
  // submit google tag when the form is complete
2767
2785
  submitGtag('zonos-checkout-shipping-info');
2768
- const checkoutSessionId = cartStore.checkoutSessionId;
2786
+ const checkoutSessionId = storageStore.checkoutSessionId;
2769
2787
  void trackConversionEvent({
2770
2788
  checkoutSessionId,
2771
2789
  eventName: 'checkout_shippingInfoCompleted',
@@ -2914,4 +2932,4 @@ const ZonosShipping = class {
2914
2932
  };
2915
2933
  ZonosShipping.style = ZonosShippingStyle0;
2916
2934
 
2917
- export { ZonosCartItems as zonos_cart_items, ZonosCartRestrictedItems as zonos_cart_restricted_items, ZonosCartSubtotal as zonos_cart_subtotal, ZonosCheckoutFinish as zonos_checkout_finish, ZonosCheckoutFooter as zonos_checkout_footer, ZonosCheckoutPayment as zonos_checkout_payment, ZonosCheckoutProgressTabs as zonos_checkout_progress_tabs, ZonosConfirmDialog as zonos_confirm_dialog, ZonosCurrencyToggle as zonos_currency_toggle, ZonosCustomerInfo as zonos_customer_info, ZonosRestState as zonos_rest_state, ZonosReview as zonos_review, ZonosShipping as zonos_shipping };
2935
+ export { ZonosCartItems as zonos_cart_items, ZonosCartRestrictedItems as zonos_cart_restricted_items, ZonosCartSubtotal as zonos_cart_subtotal, ZonosCheckoutFinish as zonos_checkout_finish, ZonosCheckoutFooter as zonos_checkout_footer, ZonosCheckoutPayment as zonos_checkout_payment, ZonosCheckoutProgressTabs as zonos_checkout_progress_tabs, ZonosConfirmDialog as zonos_confirm_dialog, ZonosCurrencyToggle as zonos_currency_toggle, ZonosCustomerInfo as zonos_customer_info, ZonosLoadingOverlay as zonos_loading_overlay, ZonosRestState as zonos_rest_state, ZonosReview as zonos_review, ZonosShipping as zonos_shipping };