@zonos/elements 1.3.248 → 1.3.249

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 (320) hide show
  1. package/dist/cjs/{cart-28310848.js → cart-eca56521.js} +4 -4
  2. package/dist/cjs/{cleanHtmlMarkdown-577d0a77.js → cleanHtmlMarkdown-31da84b7.js} +9 -7
  3. package/dist/cjs/{debounce-815d1517.js → debounce-0c75ba33.js} +1 -1
  4. package/dist/cjs/{getBorderRadius-2ef1170d.js → getBorderRadius-27a74844.js} +1 -1
  5. package/dist/cjs/{getContrastColor-30848800.js → getContrastColor-cc087c53.js} +2 -2
  6. package/dist/cjs/{hasInclusivePrice-134b0250.js → hasInclusivePrice-e7d67b45.js} +1 -1
  7. package/dist/cjs/index-b1f95d96.js +4065 -0
  8. package/dist/cjs/index.cjs.js +7 -7
  9. package/dist/cjs/{invoice-2e8e5879.js → invoice-918f2c2b.js} +3 -3
  10. package/dist/cjs/{isCollectMobileTablet-bd0f4556.js → isCollectMobileTablet-89911215.js} +3 -3
  11. package/dist/cjs/{isContrastColor-09f5924a.js → isContrastColor-d1936a5c.js} +1 -1
  12. package/dist/cjs/{isDarkColor-878e600e.js → isDarkColor-a68abf7a.js} +1 -1
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/{localization-00e73920.js → localization-878ef681.js} +1 -1
  15. package/dist/cjs/{paypal-3019ae94.js → paypal-6acca678.js} +52 -21
  16. package/dist/cjs/{placeTestOrder-b0369cfd.js → placeTestOrder-f1c1e939.js} +2 -2
  17. package/dist/cjs/{renderCheckoutCurrency-9e919b9f.js → renderCheckoutCurrency-d9590e81.js} +2 -2
  18. package/dist/cjs/{renderFallback-78b54537.js → renderFallback-bc20ee20.js} +1 -1
  19. package/dist/cjs/{submitGtag-a50ab32e.js → submitGtag-cb4fb332.js} +1 -1
  20. package/dist/cjs/{throttle-7dd64984.js → throttle-ff483793.js} +2 -2
  21. package/dist/cjs/{updateCheckoutSessionAttributes-3a1db9de.js → updateCheckoutSessionAttributes-8be63b63.js} +1 -1
  22. package/dist/cjs/zonos-address-display_9.cjs.entry.js +1314 -1608
  23. package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
  24. package/dist/cjs/zonos-badge.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-button_3.cjs.entry.js +5 -5
  27. package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
  28. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +16 -16
  29. package/dist/cjs/zonos-checkout.cjs.entry.js +11 -11
  30. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  31. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -7
  32. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +13 -13
  33. package/dist/cjs/zonos-collect.cjs.entry.js +11 -11
  34. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  35. package/dist/cjs/zonos-controller.cjs.entry.js +7 -7
  36. package/dist/cjs/zonos-country-flag.cjs.entry.js +3 -3
  37. package/dist/cjs/zonos-country-select_4.cjs.entry.js +4 -4
  38. package/dist/cjs/zonos-elements.cjs.js +29 -2
  39. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  40. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  41. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  42. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +9 -9
  43. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +13 -13
  44. package/dist/cjs/zonos-invoice.cjs.entry.js +10 -10
  45. package/dist/cjs/zonos-language-select_2.cjs.entry.js +3 -3
  46. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  47. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  48. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +6 -6
  49. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  50. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  51. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  52. package/dist/cjs/zonos-tooltip.cjs.entry.js +1 -1
  53. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  54. package/dist/cjs/{zonosStore-37a4b4f4.js → zonosStore-f5a61112.js} +110 -25
  55. package/dist/collection/components/common/zonos-button/zonos-button.css +3 -1
  56. package/dist/collection/components/common/zonos-input/zonos-input.css +3 -1
  57. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.css +3 -1
  58. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.css +3 -1
  59. package/dist/esm/{cart-ba8f3890.js → cart-efb30253.js} +4 -4
  60. package/dist/esm/{cleanHtmlMarkdown-b5b18743.js → cleanHtmlMarkdown-5f7856f2.js} +9 -7
  61. package/dist/esm/{debounce-c4785346.js → debounce-efc0e473.js} +1 -1
  62. package/dist/esm/{getBorderRadius-877f6389.js → getBorderRadius-c21a42e5.js} +1 -1
  63. package/dist/esm/{getContrastColor-28c18704.js → getContrastColor-98f0d1d5.js} +2 -2
  64. package/dist/esm/{hasInclusivePrice-6fcc712f.js → hasInclusivePrice-565ddbe5.js} +1 -1
  65. package/dist/esm/index-cfd394c8.js +4028 -0
  66. package/dist/esm/index.js +7 -7
  67. package/dist/esm/{invoice-055bb6e5.js → invoice-0e462fcc.js} +3 -3
  68. package/dist/esm/{isCollectMobileTablet-797cea8b.js → isCollectMobileTablet-0bcba25a.js} +3 -3
  69. package/dist/esm/{isContrastColor-69778cea.js → isContrastColor-c17e83c9.js} +1 -1
  70. package/dist/esm/{isDarkColor-9ddd90cc.js → isDarkColor-3537021b.js} +1 -1
  71. package/dist/esm/loader.js +2 -2
  72. package/dist/esm/{localization-853b48a9.js → localization-c1aff677.js} +1 -1
  73. package/dist/esm/{paypal-8d8518c0.js → paypal-06b67be0.js} +52 -21
  74. package/dist/esm/{placeTestOrder-0a74923e.js → placeTestOrder-6c9a6c8a.js} +2 -2
  75. package/dist/esm/{renderCheckoutCurrency-bd059ecf.js → renderCheckoutCurrency-910fea67.js} +2 -2
  76. package/dist/esm/{renderFallback-3f010b48.js → renderFallback-b250f4e9.js} +1 -1
  77. package/dist/esm/{submitGtag-89d6e9cb.js → submitGtag-13de9f1f.js} +1 -1
  78. package/dist/esm/{throttle-ce2432ab.js → throttle-0504ba2c.js} +2 -2
  79. package/dist/esm/{updateCheckoutSessionAttributes-047a6cd4.js → updateCheckoutSessionAttributes-b9f7e982.js} +1 -1
  80. package/dist/esm/zonos-address-display_9.entry.js +1314 -1608
  81. package/dist/esm/zonos-address_4.entry.js +8 -8
  82. package/dist/esm/zonos-badge.entry.js +2 -2
  83. package/dist/esm/zonos-banner.entry.js +2 -2
  84. package/dist/esm/zonos-button_3.entry.js +5 -5
  85. package/dist/esm/zonos-card_5.entry.js +9 -9
  86. package/dist/esm/zonos-cart-items_12.entry.js +16 -16
  87. package/dist/esm/zonos-checkout.entry.js +11 -11
  88. package/dist/esm/zonos-collapse.entry.js +2 -2
  89. package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -7
  90. package/dist/esm/zonos-collect-finish_6.entry.js +13 -13
  91. package/dist/esm/zonos-collect.entry.js +11 -11
  92. package/dist/esm/zonos-component.entry.js +1 -1
  93. package/dist/esm/zonos-controller.entry.js +7 -7
  94. package/dist/esm/zonos-country-flag.entry.js +3 -3
  95. package/dist/esm/zonos-country-select_4.entry.js +4 -4
  96. package/dist/esm/zonos-elements.js +30 -3
  97. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  98. package/dist/esm/zonos-hello.entry.js +4 -4
  99. package/dist/esm/zonos-input.entry.js +4 -4
  100. package/dist/esm/zonos-invoice-cart-items_2.entry.js +9 -9
  101. package/dist/esm/zonos-invoice-finish_5.entry.js +13 -13
  102. package/dist/esm/zonos-invoice.entry.js +10 -10
  103. package/dist/esm/zonos-language-select_2.entry.js +3 -3
  104. package/dist/esm/zonos-link.entry.js +1 -1
  105. package/dist/esm/zonos-logo.entry.js +2 -2
  106. package/dist/esm/zonos-shipping-rich-radio.entry.js +6 -6
  107. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  108. package/dist/esm/zonos-text.entry.js +2 -2
  109. package/dist/esm/zonos-toggle.entry.js +2 -2
  110. package/dist/esm/zonos-tooltip.entry.js +1 -1
  111. package/dist/esm/zonos-v-stack.entry.js +2 -2
  112. package/dist/esm/{zonosStore-b434e436.js → zonosStore-5242a58d.js} +110 -25
  113. package/dist/esm-es5/{cart-ba8f3890.js → cart-efb30253.js} +1 -1
  114. package/dist/esm-es5/cleanHtmlMarkdown-5f7856f2.js +1 -0
  115. package/dist/esm-es5/{debounce-c4785346.js → debounce-efc0e473.js} +1 -1
  116. package/dist/esm-es5/{getBorderRadius-877f6389.js → getBorderRadius-c21a42e5.js} +1 -1
  117. package/dist/esm-es5/{getContrastColor-28c18704.js → getContrastColor-98f0d1d5.js} +1 -1
  118. package/dist/esm-es5/{hasInclusivePrice-6fcc712f.js → hasInclusivePrice-565ddbe5.js} +1 -1
  119. package/dist/esm-es5/index-cfd394c8.js +13 -0
  120. package/dist/esm-es5/index.js +1 -1
  121. package/dist/esm-es5/{invoice-055bb6e5.js → invoice-0e462fcc.js} +1 -1
  122. package/dist/esm-es5/{isCollectMobileTablet-797cea8b.js → isCollectMobileTablet-0bcba25a.js} +1 -1
  123. package/dist/esm-es5/{isContrastColor-69778cea.js → isContrastColor-c17e83c9.js} +1 -1
  124. package/dist/esm-es5/{isDarkColor-9ddd90cc.js → isDarkColor-3537021b.js} +1 -1
  125. package/dist/esm-es5/loader.js +1 -1
  126. package/dist/esm-es5/{localization-853b48a9.js → localization-c1aff677.js} +1 -1
  127. package/dist/esm-es5/paypal-06b67be0.js +17 -0
  128. package/dist/esm-es5/{placeTestOrder-0a74923e.js → placeTestOrder-6c9a6c8a.js} +1 -1
  129. package/dist/esm-es5/{renderCheckoutCurrency-bd059ecf.js → renderCheckoutCurrency-910fea67.js} +1 -1
  130. package/dist/esm-es5/{renderFallback-3f010b48.js → renderFallback-b250f4e9.js} +1 -1
  131. package/dist/esm-es5/{submitGtag-89d6e9cb.js → submitGtag-13de9f1f.js} +1 -1
  132. package/dist/esm-es5/{throttle-ce2432ab.js → throttle-0504ba2c.js} +1 -1
  133. package/dist/esm-es5/{updateCheckoutSessionAttributes-047a6cd4.js → updateCheckoutSessionAttributes-b9f7e982.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-badge.entry.js +1 -1
  137. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  138. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  139. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  140. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  141. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  142. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  143. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  144. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  145. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  146. package/dist/esm-es5/zonos-component.entry.js +1 -1
  147. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  148. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  149. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  150. package/dist/esm-es5/zonos-elements.js +1 -1
  151. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  152. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  153. package/dist/esm-es5/zonos-input.entry.js +1 -1
  154. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  155. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  156. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  157. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  158. package/dist/esm-es5/zonos-link.entry.js +1 -1
  159. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  160. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  161. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  162. package/dist/esm-es5/zonos-text.entry.js +1 -1
  163. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  164. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  165. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  166. package/dist/esm-es5/zonosStore-5242a58d.js +1 -0
  167. package/dist/scripts/index.d.ts +2 -2
  168. package/dist/scripts/index.js +1 -1
  169. package/dist/scripts/loadZonos.js +1 -1
  170. package/dist/scripts/zonos.js +1 -1
  171. package/dist/types/environment.d.ts +2 -2
  172. package/dist/types/types/global.d.ts +2 -0
  173. package/dist/zonos-elements/index.esm.js +1 -1
  174. package/dist/zonos-elements/p-058f6124.js +1 -0
  175. package/dist/zonos-elements/{p-d5b7d3c3.entry.js → p-06e2bc14.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-c2f34b10.system.entry.js → p-079bc009.system.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-291f7ccb.system.entry.js → p-09110bb7.system.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-c027a832.system.js → p-096182f0.system.js} +1 -1
  179. package/dist/zonos-elements/{p-8205ae87.system.entry.js → p-0a2abbab.system.entry.js} +1 -1
  180. package/dist/zonos-elements/p-0aeba2c7.system.js +1 -0
  181. package/dist/zonos-elements/{p-7aa50ef2.entry.js → p-0d18d94b.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-7b400b5f.system.entry.js → p-101226f3.system.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-c01f86b4.entry.js → p-12459b59.entry.js} +1 -1
  184. package/dist/zonos-elements/p-127e0395.js +17 -0
  185. package/dist/zonos-elements/p-18d411c3.system.entry.js +1 -0
  186. package/dist/zonos-elements/{p-71d855b8.system.entry.js → p-197d9b23.system.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-63a3d3b9.system.js → p-1b5f89d5.system.js} +1 -1
  188. package/dist/zonos-elements/p-1b8771bb.js +1 -0
  189. package/dist/zonos-elements/{p-71a8d971.system.entry.js → p-1f1bf95c.system.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-5062dcf3.system.entry.js → p-234f0339.system.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-2c2a1339.system.entry.js → p-25dd58f8.system.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-39fa55c7.entry.js → p-26718a78.entry.js} +1 -1
  193. package/dist/zonos-elements/p-29b60bf3.system.js +1 -0
  194. package/dist/zonos-elements/{p-1c4d12f0.entry.js → p-2aa44601.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-3908f78d.system.entry.js → p-302b7105.system.entry.js} +1 -1
  196. package/dist/zonos-elements/{p-bc4bfa06.js → p-321d2963.js} +1 -1
  197. package/dist/zonos-elements/p-34d10122.js +1 -0
  198. package/dist/zonos-elements/p-358dfb9e.entry.js +1 -0
  199. package/dist/zonos-elements/{p-b54a95ea.system.entry.js → p-36bea5d5.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-14c920b2.system.entry.js → p-38881641.system.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-c7311ce5.system.entry.js → p-3ad2a9a3.system.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-2f55895c.system.entry.js → p-3ece0f96.system.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-c6e3d747.system.js → p-3fbd9cc0.system.js} +1 -1
  204. package/dist/zonos-elements/p-445072f8.js +1 -0
  205. package/dist/zonos-elements/{p-de8899bc.js → p-456c0e52.js} +1 -1
  206. package/dist/zonos-elements/p-45bd8072.system.js +1 -0
  207. package/dist/zonos-elements/{p-85e59f3a.system.entry.js → p-4a395eea.system.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-9c49daa4.entry.js → p-4aefd668.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-0792688d.system.entry.js → p-4c087a8e.system.entry.js} +1 -1
  210. package/dist/zonos-elements/{p-403b9fca.entry.js → p-4d081ce8.entry.js} +1 -1
  211. package/dist/zonos-elements/p-4d4b7faa.entry.js +1 -0
  212. package/dist/zonos-elements/{p-a359e0a2.system.entry.js → p-4e4fa1fb.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-c36696f9.js → p-4f7d64f6.js} +1 -1
  214. package/dist/zonos-elements/{p-09aabce0.js → p-507f00d2.js} +1 -1
  215. package/dist/zonos-elements/p-53db5f85.system.js +1 -0
  216. package/dist/zonos-elements/{p-e17bbcee.entry.js → p-54c95926.entry.js} +1 -1
  217. package/dist/zonos-elements/p-5dd86dd9.system.js +1 -0
  218. package/dist/zonos-elements/{p-83377e23.entry.js → p-5eaa0de1.entry.js} +1 -1
  219. package/dist/zonos-elements/p-5f628e57.entry.js +1 -0
  220. package/dist/zonos-elements/{p-ae26aec5.system.js → p-5fd0cd66.system.js} +1 -1
  221. package/dist/zonos-elements/{p-0b7beb16.system.entry.js → p-661cd4ce.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-aa028d91.entry.js → p-66d72216.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-57fa64d7.js → p-67897a0d.js} +1 -1
  224. package/dist/zonos-elements/{p-a12cb7ce.entry.js → p-6d37f669.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-917f714c.system.entry.js → p-6f19845a.system.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-232b0fb5.system.entry.js → p-70c8a47d.system.entry.js} +1 -1
  227. package/dist/zonos-elements/p-7261e245.system.js +13 -0
  228. package/dist/zonos-elements/{p-3e67ca05.entry.js → p-7427dd1e.entry.js} +1 -1
  229. package/dist/zonos-elements/{p-23d497e3.system.js → p-7501c637.system.js} +1 -1
  230. package/dist/zonos-elements/{p-c1fb3a2d.entry.js → p-777e0a81.entry.js} +1 -1
  231. package/dist/zonos-elements/p-7d7ffb42.js +1 -0
  232. package/dist/zonos-elements/p-7e77b055.system.entry.js +1 -0
  233. package/dist/zonos-elements/{p-0f787f5d.entry.js → p-80524eac.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-cfb9b847.system.entry.js → p-87d89870.system.entry.js} +1 -1
  235. package/dist/zonos-elements/{p-69b9b711.entry.js → p-8a424412.entry.js} +1 -1
  236. package/dist/zonos-elements/p-8b206982.system.js +1 -0
  237. package/dist/zonos-elements/{p-443e1f30.system.js → p-8c6624b6.system.js} +1 -1
  238. package/dist/zonos-elements/{p-48475755.entry.js → p-8d1efd7b.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-57cee1b5.system.entry.js → p-8d5f928c.system.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-5762e217.js → p-908f13ae.js} +1 -1
  241. package/dist/zonos-elements/{p-8f0f6449.entry.js → p-939ba2a5.entry.js} +1 -1
  242. package/dist/zonos-elements/p-9581bffb.js +1 -0
  243. package/dist/zonos-elements/p-959918fe.system.js +1 -0
  244. package/dist/zonos-elements/{p-3e85b9f5.system.entry.js → p-9c64ca98.system.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-f8d56ba9.system.js → p-9d44fef6.system.js} +1 -1
  246. package/dist/zonos-elements/p-9eea270b.entry.js +1 -0
  247. package/dist/zonos-elements/{p-fb9fb873.system.entry.js → p-a1c476d6.system.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-1acf0a71.system.entry.js → p-a75b3efc.system.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-5edef7c3.system.js → p-ab25379f.system.js} +1 -1
  250. package/dist/zonos-elements/p-ac30b7a8.system.js +1 -0
  251. package/dist/zonos-elements/{p-37bb5f2d.entry.js → p-b004146f.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-0ff93ca6.entry.js → p-b360ee5b.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-3972663a.system.entry.js → p-b589f621.system.entry.js} +1 -1
  254. package/dist/zonos-elements/{p-58248f03.entry.js → p-b9a4430c.entry.js} +1 -1
  255. package/dist/zonos-elements/{p-69212d0f.entry.js → p-bc6b33fa.entry.js} +1 -1
  256. package/dist/zonos-elements/p-bd004403.system.js +1 -0
  257. package/dist/zonos-elements/{p-84cf1a90.system.entry.js → p-bdaf94a4.system.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-231baaf8.entry.js → p-c1ab70d2.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-866afec1.js → p-c4e358f2.js} +1 -1
  260. package/dist/zonos-elements/{p-942358eb.system.js → p-c87d3d50.system.js} +1 -1
  261. package/dist/zonos-elements/{p-aedd3911.entry.js → p-c9d4eb42.entry.js} +1 -1
  262. package/dist/zonos-elements/{p-ae16dda9.system.js → p-c9e3bc98.system.js} +1 -1
  263. package/dist/zonos-elements/p-cda52300.js +1 -0
  264. package/dist/zonos-elements/p-ce75b047.js +2 -0
  265. package/dist/zonos-elements/{p-909e2bc3.system.js → p-d18a2b2c.system.js} +1 -1
  266. package/dist/zonos-elements/p-d233ef0d.entry.js +1 -0
  267. package/dist/zonos-elements/{p-14735e9a.system.entry.js → p-dbb3db89.system.entry.js} +1 -1
  268. package/dist/zonos-elements/{p-4592ae49.entry.js → p-ddcbea81.entry.js} +1 -1
  269. package/dist/zonos-elements/p-def2d465.js +1 -0
  270. package/dist/zonos-elements/p-e219d011.js +1 -0
  271. package/dist/zonos-elements/{p-6adfb3af.system.entry.js → p-ed61dedd.system.entry.js} +1 -1
  272. package/dist/zonos-elements/p-ee217693.entry.js +1 -0
  273. package/dist/zonos-elements/p-f0938b51.system.entry.js +1 -0
  274. package/dist/zonos-elements/{p-71f10bf0.entry.js → p-f31fbbf0.entry.js} +1 -1
  275. package/dist/zonos-elements/p-f830f800.js +1 -0
  276. package/dist/zonos-elements/p-f8f7d491.js +1 -0
  277. package/dist/zonos-elements/p-fc0aa91e.system.js +18 -0
  278. package/dist/zonos-elements/zonos-elements.css +1 -1
  279. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  280. package/dist/zonos-elements/zonos-elements.js +1 -1
  281. package/package.json +70 -52
  282. package/dist/cjs/index-69fa8852.js +0 -1961
  283. package/dist/esm/index-0bbe9693.js +0 -1928
  284. package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +0 -1
  285. package/dist/esm-es5/index-0bbe9693.js +0 -2
  286. package/dist/esm-es5/paypal-8d8518c0.js +0 -17
  287. package/dist/esm-es5/zonosStore-b434e436.js +0 -1
  288. package/dist/zonos-elements/p-002e45f9.system.js +0 -17
  289. package/dist/zonos-elements/p-01dada4e.js +0 -1
  290. package/dist/zonos-elements/p-0ef2a242.js +0 -1
  291. package/dist/zonos-elements/p-1dbeeab2.entry.js +0 -1
  292. package/dist/zonos-elements/p-1f894984.js +0 -1
  293. package/dist/zonos-elements/p-27f6930b.js +0 -1
  294. package/dist/zonos-elements/p-3bec13dd.system.js +0 -1
  295. package/dist/zonos-elements/p-41299ffb.js +0 -1
  296. package/dist/zonos-elements/p-43a22d85.entry.js +0 -1
  297. package/dist/zonos-elements/p-4ffbb0d6.system.js +0 -1
  298. package/dist/zonos-elements/p-64661dd1.js +0 -1
  299. package/dist/zonos-elements/p-719403e0.system.js +0 -1
  300. package/dist/zonos-elements/p-72ff005c.entry.js +0 -1
  301. package/dist/zonos-elements/p-786d1c24.js +0 -1
  302. package/dist/zonos-elements/p-7dba5f23.system.js +0 -1
  303. package/dist/zonos-elements/p-94c5fbfc.system.entry.js +0 -1
  304. package/dist/zonos-elements/p-989d3af9.system.js +0 -2
  305. package/dist/zonos-elements/p-9fa90292.system.entry.js +0 -1
  306. package/dist/zonos-elements/p-ab41bab5.js +0 -2
  307. package/dist/zonos-elements/p-abf38ed6.js +0 -1
  308. package/dist/zonos-elements/p-af85846e.system.js +0 -1
  309. package/dist/zonos-elements/p-b2a0ab4a.js +0 -1
  310. package/dist/zonos-elements/p-b2ae8eb7.system.js +0 -1
  311. package/dist/zonos-elements/p-bf5e47e2.entry.js +0 -1
  312. package/dist/zonos-elements/p-c2442878.system.js +0 -1
  313. package/dist/zonos-elements/p-d45285aa.system.js +0 -1
  314. package/dist/zonos-elements/p-dcf999d8.entry.js +0 -1
  315. package/dist/zonos-elements/p-e9e6bea7.system.entry.js +0 -1
  316. package/dist/zonos-elements/p-eea7ac64.js +0 -1
  317. package/dist/zonos-elements/p-f6c2c743.entry.js +0 -1
  318. package/dist/zonos-elements/p-fc776473.js +0 -1
  319. package/dist/zonos-elements/p-fe06c9ea.js +0 -17
  320. package/dist/zonos-elements/p-fe96e239.system.js +0 -1
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,o,r){function n(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r["throw"](e))}catch(e){s(e)}}function c(e){e.done?o(e.value):n(e.value).then(i,a)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(i&&(i=0,a[0]&&(o=0)),o)try{if(r=1,n&&(s=a[0]&2?n["return"]:a[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,a[1])).done)return s;if(n=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;n=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(s=o.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){o.label=a[1];break}if(a[0]===6&&o.label<s[1]){o.label=s[1];s=a;break}if(s&&o.label<s[2]){o.label=s[2];o.ops.push(a);break}if(s[2])o.ops.pop();o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e];n=0}finally{r=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,s;r<n;r++){if(s||!(r in t)){if(!s)s=Array.prototype.slice.call(t,0,r);s[r]=t[r]}}return e.concat(s||Array.prototype.slice.call(t))};import{r as registerInstance,h,F as Fragment,H as Host}from"./index-0bbe9693.js";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-ba8f3890.js";import{p as paypalStoreHasPaypalEnabled,a as paypalStore,b as paypalInitScript}from"./paypal-8d8518c0.js";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-853b48a9.js";import{z as zonosStore,g as getZonosStoreTheme,m as mergeConfig}from"./zonosStore-b434e436.js";import{b as buildCartItemsByTempCart}from"./buildCartItemsByTempCart-a117f75d.js";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";import{u as updateCheckoutSessionAttributes}from"./updateCheckoutSessionAttributes-047a6cd4.js";import{_ as _getIsValidCartId,c as checkoutHiddenBtnSelector,a as checkoutHiddenInternationalBtnSelector,d as domesticRedirectedBtnSelector,g as getAbandonedCartRenewTokenValue}from"./CheckoutConfig-724d7bae.js";import{l as log,g as getElapsedTime,b as allLogs}from"./VarianceTest-572cecf5.js";import{c as classes}from"./classes-0d95c529.js";import{c as createCustomEvent}from"./createCustomEvent-58159025.js";import{g as getBorderRadius}from"./getBorderRadius-877f6389.js";import{i as isDarkColor}from"./isDarkColor-9ddd90cc.js";import{s as styles}from"./styles-6fc2fad9.js";import{s as submitGtag}from"./submitGtag-89d6e9cb.js";import{R as RemoveIcon}from"./RemoveIcon-9dc5dd1a.js";import"./isContrastColor-69778cea.js";import"./debounce-c4785346.js";var isStoreDiscountEnabled=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t,o;return __generator(this,(function(r){switch(r.label){case 0:return[4,handleFetch("/api/zonos-elements/get-store-discount-enabled-status")];case 1:e=r.sent(),t=e.errors,o=e.json;if(t.length||!(o===null||o===void 0?void 0:o.enabled)){return[2,{enabled:false}]}return[2,{enabled:true}]}}))}))};var selectVarianceTest=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t,o,r,n;var s=e.testKeys;return __generator(this,(function(e){switch(e.label){case 0:if(s.length===0){return[2,null]}return[4,handleFetch("/api/zonos-elements/select-variance-test",{body:{testKeys:s},method:"POST"})];case 1:t=e.sent(),o=t.errors,r=t.json;if(o.length||!r){return[2,null]}n=filterValidTests(r);return[2,n]}}))}))};var buildCartUrl=function(e){var t=e.cartId,o=e.checkoutSessionId,r=e.customerAddress1,n=e.customerAddress2,s=e.customerCity,i=e.customerCountry,a=e.customerEmail,c=e.customerFirstName,u=e.customerLastName,l=e.customerPhone,d=e.customerState,h=e.customerZip,f=e.hostedCheckoutUrl,m=e.isTestMode,v=e.isVariantTest;var g=new URLSearchParams;g.set("tempCartUUID",t);if(c){g.set("customerFirstName",c)}if(u){g.set("customerLastName",u)}if(a){g.set("customerEmail",a)}if(l){g.set("customerPhone",l)}if(h){g.set("customerZip",h)}if(s){g.set("customerCity",s)}if(d){g.set("customerState",d)}if(i){g.set("zCountry",i)}if(r){g.set("customerAddress1",r)}if(n){g.set("customerAddress2",n)}if(m){g.set("zonosTestMode","1")}if(o){g.set("zonosCheckoutSessionId",o)}if(v){g.set("zonosVariantTest","1")}return"".concat(f,"?").concat(g.toString())};var isDisabledCountry=function(e){if(e===void 0){e=true}if(!localizationStore.localizationLoaded){return true}if(localizationStore.isDisabledCountry){if(e){log("Checkout: disabled country")}return true}return false};var isShippableCountry=function(e,t){if(e===void 0){e=true}var o;if(!localizationStore.localizationLoaded){return false}if(t){var r=!!((o=localizationStore.shippingZoneCountries)===null||o===void 0?void 0:o[t])&&!zonosStore.disabledCountries.includes(t);if(e&&!r){log("Checkout: ".concat(t," is not a shippable country: ").concat(r))}return r}if(!localizationStore.isShippableCountry){if(e){log("Checkout: not shippable country")}return false}return true};var FALLBACK_SHIP_TO_COUNTRY_SELECTOR='select[name="shippingAddress.countryCode"]';var watchImmediateBigcommerceDomesticCheckoutRedirect=function(e){var t=e.domesticRedirectedBtnSelector,o=e.onInternationalCheckoutSelected,r=e.onShippingAddressSessionFound;if(!window.Zonos.isBigCommerce){return}var n=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,r,n,s;return __generator(this,(function(i){switch(i.label){case 0:r=document.querySelector(((t=zonosStore.genericSettings)===null||t===void 0?void 0:t.bigcommerceDomesticCheckoutCountrySelector)||FALLBACK_SHIP_TO_COUNTRY_SELECTOR);n=(r===null||r===void 0?void 0:r.value)||e;if(!n){return[2,false]}if(!isShippableCountry(false,n)){return[2,false]}if(!o)return[3,2];return[4,o()];case 1:i.sent();i.label=2;case 2:localizationStoreUpdateSelectedCountryCode({isInitializing:false,newSelectedCountryCode:n});s={address1:"",address2:"",city:"",countryCode:n,firstName:"",lastName:"",phone:"",postalCode:"",stateOrProvince:""};stripeStoreSaveDomesticShippingSession({address1:s.address1,address2:s.address2,city:s.city,countryCode:s.countryCode,firstName:s.firstName,lastName:s.lastName,phone:s.phone,postalCode:s.postalCode,state:s.stateOrProvince});window.location.href="/";return[2,true]}}))}))};var s=false;var i=false;var a=new MutationObserver((function(){var e;var o=document.querySelector(t);var c=stripeStoreGetDomesticShippingSession();if(!o&&c){var u=document.createElement("button");u.style.display="none";u.id="zonos--domestic-redirected-checkout-button";document.body.appendChild(u);r===null||r===void 0?void 0:r(c);a.disconnect();return}var l=window.location.pathname.includes("/checkout")&&window.Zonos.isBigCommerce;var d=document.querySelector(((e=zonosStore.genericSettings)===null||e===void 0?void 0:e.bigcommerceDomesticCheckoutCountrySelector)||FALLBACK_SHIP_TO_COUNTRY_SELECTOR);if(!l){a.disconnect();return}if(!d){return}log("Domestic checkout found - Listening for shipping country change","info",{value:d.value});if(i){return}i=true;a.disconnect();var h=setInterval((function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t;return __generator(this,(function(o){switch(o.label){case 0:if(s){return[2]}s=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,n()];case 2:e=o.sent();if(e){clearInterval(h);return[2]}s=false;return[3,4];case 3:t=o.sent();s=false;return[3,4];case 4:return[2]}}))}))}),1e3);var f=setInterval((function(){var e;if(!window.bcStripeElements){clearInterval(f);return}var t=(e=window.bcStripeElements)===null||e===void 0?void 0:e.getElement("address");if(!t){return}clearInterval(f);t.on("change",(function(e){var t=e.value.address.country;if(t){void n(t)}}))}),500)}));a.observe(document.body,{childList:true,subtree:true})};var getLegacyQueryParams=function(){var e=new URLSearchParams(window.location.search);log("legacy urlParams","info",Object.fromEntries(e.entries()));var t=function(t){var o=e.get(t);if(!o||o==="undefined"){return""}return o};var o=getZCountryUrlParam(e)||localizationStore.selectedCountryCode||"US";var r=t("customerCity");var n=t("customerEmail");var s=t("customerAddress1");var i=t("customerAddress2");var a=t("customerName");var c=t("customerPhone");var u=t("customerZip");var l=t("customerState");var d=t("customerFirstName");var h=t("customerLastName");return{customerAddress1:s,customerAddress2:i,customerCity:r,customerCountry:o,customerEmail:n,customerFirstName:d,customerLastName:h,customerName:a,customerPhone:c,customerState:l,customerZip:u}};var numberOfFailures=0;var sendBulkLoadTimeApiLog=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t;var o;return __generator(this,(function(r){switch(r.label){case 0:if(window.Zonos.loadTimeApiInfoList.length===0){return[2]}log("Sending bulk load time api log","info",{loadTimeApiInfoList:window.Zonos.loadTimeApiInfoList});e={data:__spreadArray([],window.Zonos.loadTimeApiInfoList,true),storeId:window.Zonos.storeId||0};window.Zonos.loadTimeApiInfoList.length=0;return[4,handleFetch("/api/zonos-elements/log-bulk-load-data",{body:e,method:"POST"})];case 1:t=r.sent().errors;if(t.length){(o=window.Zonos.loadTimeApiInfoList).push.apply(o,e.data);numberOfFailures++;if(numberOfFailures>5&&window.Zonos.logIntervalId){clearInterval(window.Zonos.logIntervalId)}}return[2]}}))}))};var sendLoadCheckoutFacadeLog=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t;return __generator(this,(function(o){e=getElapsedTime().elapsedTime;t={cache:"miss",eventName:"jsdelivr",flag:"LOG_CHECKOUT_FACADE_LOAD",href:window.location.href,loadTime:e,metadata:Object.assign({allLogs:allLogs},getAdditionalLogMetadata()),scriptLoadUrl:"checkoutFacade",storeId:window.Zonos.storeId||0};void handleFetch("/api/zonos-elements/log-script-load",{body:t,method:"POST"});return[2]}))}))};var sendLoadNativeCheckoutLog=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t;var o=e.loadTime;return __generator(this,(function(e){t={cache:"miss",eventName:"jsdelivr",flag:"LOG_NATIVE_CHECKOUT_LOAD",href:window.location.href,loadTime:o,metadata:Object.assign({allLogs:allLogs},getAdditionalLogMetadata()),scriptLoadUrl:"nativeCheckout",storeId:window.Zonos.storeId||0};void handleFetch("/api/zonos-elements/log-script-load",{body:t,method:"POST"});return[2]}))}))};var filterExpiredTests=function(e){return(e===null||e===void 0?void 0:e.filter((function(e){if(e.expiresAt&&e.expiresAt<Date.now()||!e.expiresAt){return false}return true})))||[]};var getSelectedTestVariant=function(e){var t;var o=(t=storageStore.enabledVariantTestKeys)===null||t===void 0?void 0:t.find((function(t){return t.testKey===e}));return(o===null||o===void 0?void 0:o.selectedVariantKey)||null};var isTestEnabled=function(e){return zonosStore.enabledVariantTestKeys.includes(e)};var mergeTest=function(e){var t=e.baseTestObj,o=e.mergeTestObj;return t.map((function(e){var t=e.testKey;var r=o.find((function(e){var o=e.testKey;return o===t}));return{expiresAt:(r===null||r===void 0?void 0:r.expiresAt)||Date.now()+VARIANT_TEST_KEY_EXPIRATION,selectedVariantKey:(r===null||r===void 0?void 0:r.selectedVariantKey)||null,testKey:t}}))};var getTempCartById=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t,o,r,n,s;var i=e.cartId,a=e.retries;return __generator(this,(function(e){switch(e.label){case 0:t=getIsTestMode();return[4,handleFetch("/api/zonos-elements/get-temp-cart",{body:{isTestMode:t,options:{noOnlineStoreSettings:true},tempCartUUID:i},headers:{"Content-Type":"application/json"},method:"POST"})];case 1:o=e.sent(),r=o.errors,n=o.json;s=!n||r.length;if(!(s&&a))return[3,3];log("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:a});return[4,new Promise((function(e){return setTimeout(e,500)}))];case 2:e.sent();return[2,getTempCartById({cartId:i,retries:a-1})];case 3:if(s){return[2,null]}return[2,n]}}))}))};var setupCartData=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,o,r,n;return __generator(this,(function(s){switch(s.label){case 0:t=_getIsValidCartId(e),o=t.isDgsCartId,r=t.isLegacyCartId;if(!r&&!o){logError("[ZONOS - loadZonos] invalid cart id");return[2,null]}return[4,getTempCartById({cartId:e,retries:5})];case 1:n=s.sent();log("[ZONOS - loadZonos] getting temp cart data","info",n);if(!n){logError("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.");return[2,null]}window.Zonos.storeId=n.cartData.storeId;window.Zonos.zonosApiKey=n.cartData.credentialToken;return[2,{cartData:n.cartData,storeFavicon:n.storeFaviconUrl,storeId:n.cartData.storeId,storeLogo:n.storeLogoUrl,zonosApiKey:n.cartData.credentialToken}]}}))}))};var MessageIcon='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n';var zonosCheckoutCss=".sc-zonos-checkout-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-h *.sc-zonos-checkout{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h{z-index:2147483647;position:fixed}.sc-zonos-checkout-h *.sc-zonos-checkout{-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:32px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--zonos--primary-color, var(--zonos-elements-gray-0));border-right:1px solid var(--zonos-elements-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--zonos-elements-gray-0)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--zonos-elements-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:24px;padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 8px 8px}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:24px}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--right-actions.sc-zonos-checkout{position:absolute;right:24px;top:24px;z-index:2;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo-wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;gap:16px;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--logo-wrapper.sc-zonos-checkout>*.sc-zonos-checkout{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout img.sc-zonos-checkout{max-height:72px}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:76px;margin-bottom:8px}.zonos--close-button.sc-zonos-checkout{-ms-flex-item-align:start;align-self:flex-start}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto;position:relative}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--zonos-elements-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:32px}.hidden-mode.sc-zonos-checkout-h{height:0;opacity:0;pointer-events:none;position:absolute;visibility:hidden;width:0;z-index:-1}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:12px;padding-bottom:76px}@media (max-width: 768px){.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding-bottom:0}}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2;border-right:none}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:16px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));background-color:var(--zonos-elements-gray-50);padding:12px;margin-top:32px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--review.sc-zonos-checkout{margin-bottom:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--cart-items.sc-zonos-checkout{margin-top:8px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout zonos-checkout-footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}.iframed.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{-ms-scroll-chaining:chained;overscroll-behavior:auto}.zonos--processing-payment.sc-zonos-checkout-h{z-index:2147483646}";var ZonosCheckoutStyle0=zonosCheckoutCss;var CHECKOUT_SESSION_TIMEOUT=90*60*1e3;var ORDER_DUPLICATION_NOTIFICATION_EXPIRATION=6*60*60*1e3;var ZonosCheckout=function(){function e(e){var t=this;registerInstance(this,e);this.storeUnsubscribeList=[];this.isRedirectAfterOrder=false;this.preview=false;this.hiddenMode=false;this.mobile=false;this.defaultAddress=[];this.forceDialogOpen=false;this.defaultAddressParams=[];this.defaultCustomerProfileAddress=[];this.customerProfile=null;this.open=this.forceDialogOpen;this.isOverlayLoading=false;this.stripe=window.Zonos.stripe;this.submitLoading=false;this.collapseReviewMobile=true;this.isAttachError=false;this.isMobile=false;this.isIframed=false;this.isLegacyCheckout=window.Zonos.isLegacyCheckout;this.confirmDialogOpen=false;this.isCartExpired=false;this.payInUsdConfirmDialogOpen=false;this.inventoryCheckErrorMessage=null;this.placedOrderInfo=null;this.shouldShowFedexShippingConsentDialog=false;this.detectedDomesticCheckoutDialogOpen=false;this.clientSecret=stripeStore.clientSecret;this.stripeCustomerSessionClientSecret=stripeStore.stripeCustomerSessionClientSecret;this.applyStripeTheme=function(){return __awaiter(t,void 0,void 0,(function(){var e,t,o,r,n;return __generator(this,(function(s){switch(s.label){case 0:n=((e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.theme)||zonosStore.appearance.theme;return[4,initStripeElements({overrideBorderRadius:(t=this.appearanceSettingsOverride)===null||t===void 0?void 0:t.style,overridePrimaryColor:(o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.colorPrimary,overrideSecondaryColor:(r=this.appearanceSettingsOverride)===null||r===void 0?void 0:r.colorSecondary,overrideTheme:this.isMobile?n:undefined,paypalEnabled:paypalStoreHasPaypalEnabled()})];case 1:s.sent();return[2]}}))}))};this.checkStripePaymentIntentStatus=function(e){return __awaiter(t,[e],void 0,(function(e){var t,o,r,n,s,i,a,c,u;var l=e.triggeredButton;return __generator(this,(function(e){switch(e.label){case 0:t=l===null||l===void 0?void 0:l.matches("#".concat(checkoutHiddenBtnSelector));o=!!window.Zonos.cartData;r=new URL(window.location.href).searchParams;n=r.get("payment_intent_client_secret");s=r.get("zonosCheckoutSessionId");if(!t){log("Checkout is triggered by user, no need to check stripe payment intent status");return[2,{shouldAllowOrder:true}]}log("Payment intent exist, checking stripe payment intent status");if(!n){log("No stripe client secret found in the URL, proceed to order if cart data is available");return[2,{shouldAllowOrder:o}]}return[4,stripeStoreRetrievePayment({clientSecret:n})];case 1:i=e.sent(),a=i.error,c=i.status;u=new URLSearchParams(window.location.search).get("redirect_status");if(u){if(!a){log("Payment intent is succeeded or in a good state to move forward, show success screen")}else{log("Payment intent failed, show status from error")}this.open=true;storageStore.checkoutSessionId=s;stripeStore.clientSecret=n;void this.setToFinishStep(c);return[2,{shouldAllowOrder:false}]}if(!o){log("Cart data is not available, only check payment intent status, skip order.");return[2,{shouldAllowOrder:false}]}log("Payment intent is not succeeded, proceed to order");return[2,{shouldAllowOrder:true}]}}))}))};this.initializeTestKeys=function(){storageStore.enabledVariantTestKeys=filterExpiredTests(storageStore.enabledVariantTestKeys||[]);var e=zonosStore.enabledVariantTestKeys.map((function(e){var t;var o=(t=storageStore.enabledVariantTestKeys)===null||t===void 0?void 0:t.find((function(t){var o=t.testKey;return o===e}));return{expiresAt:(o===null||o===void 0?void 0:o.expiresAt)||Date.now()+VARIANT_TEST_KEY_EXPIRATION,selectedVariantKey:(o===null||o===void 0?void 0:o.selectedVariantKey)||null,testKey:e}}));storageStoreSetEnabledVariantTestKeys(e);return{allSelected:false}};this.shouldAllowHostedVsNativeTest=function(){if(typeof zonosStore.checkoutSettings.createCartId!=="function"){return false}var e=zonosStore.enabledVariantTestKeys.includes("hosted_vs_native");if(!e){return false}return true};this.registerTestHostedVsNative=function(){return __awaiter(t,void 0,void 0,(function(){var e,t,o,r;return __generator(this,(function(n){switch(n.label){case 0:e=this.shouldAllowHostedVsNativeTest();if(!e){return[2]}log("[TEST] - Registering hosted vs native test");t=getSelectedTestVariant("hosted_vs_native");if(t){log("[TEST] - Hosted vs native test already has variant selected: ".concat(t));return[2]}return[4,selectVarianceTest({testKeys:["hosted_vs_native"]})];case 1:o=n.sent();if(!o){log("[TEST] - Failed to get selection for hosted vs native test");return[2]}r=mergeTest({baseTestObj:storageStore.enabledVariantTestKeys||[],mergeTestObj:o});storageStoreSetEnabledVariantTestKeys(r);return[2]}}))}))};this.handleHostedVsNative=function(){return __awaiter(t,void 0,void 0,(function(){var e,t,o,r,n,s,i,a;return __generator(this,(function(c){switch(c.label){case 0:t=this.shouldAllowHostedVsNativeTest();if(!t){return[2,{redirected:false}]}o=getSelectedTestVariant("hosted_vs_native");log("[TEST] - hosted_vs_native: ".concat(o));if(typeof zonosStore.checkoutSettings.createCartId!=="function"){log("[TEST] - createCartId is not provided, skipping hosted vs native test");return[2,{redirected:false}]}if(o!=="hosted"){log("[TEST] - Hosted vs native test is enabled for native, skipping");return[2,{redirected:false}]}if(!((e=zonosStore.genericSettings)===null||e===void 0?void 0:e.hostedCheckoutUrl)){log("[TEST] - Hosted checkout URL is not provided");return[2,{redirected:false}]}log('"createCartId" is provided, start building cart');return[4,zonosStore.checkoutSettings.createCartId()];case 1:r=c.sent();s=null;if(typeof r==="object"){n=r.cartId;s=r.shippingData||null}else{n=r}i=getLegacyQueryParams();a=buildCartUrl(Object.assign(Object.assign({cartId:n,checkoutSessionId:storageStore.checkoutSessionId||undefined,hostedCheckoutUrl:zonosStore.genericSettings.hostedCheckoutUrl,isTestMode:getIsTestMode(),isVariantTest:true},i),s));log("[TEST] - Redirecting to: ".concat(a));window.open(a,"_blank");return[2,{redirected:true}]}}))}))};this.formatDate=function(e){if(!e){return""}var t=new Date(e);return t.toLocaleDateString()};this.formatTime=function(e){if(!e){return""}var t=new Date(e);return t.toLocaleTimeString()};this.getCurrentLocalePageEnum=function(){switch(cartStore.step){case"customer-info":return"checkout_customer_info";case"shipping":return"checkout_shipping_info";case"payment":return"checkout_payment_info";default:return null}};this.getBaseCurrencySettlementInfo=function(){var e=cartStore.selectedLandedCost;if(!e){return null}var t=e.landedCost.amountSubtotals;if(!t){return null}var o=(t.discounts||0)+t.items+t.landedCostTotal+t.shipping;return{settlementAmount:o}};this.getDefaultAddress=function(){if(t.defaultCustomerProfileAddress.length){return t.defaultCustomerProfileAddress}if(Array.isArray(t.defaultAddress)&&t.defaultAddress.length){return t.defaultAddress}if(!Array.isArray(t.defaultAddress)&&typeof t.defaultAddress==="object"){return[t.defaultAddress]}return t.defaultAddressParams};this.handleHostedOpenWindowCallback=function(e){var t;var o=(t=zonosStore.genericSettings)===null||t===void 0?void 0:t.hostedCheckoutUrl;if(!origin){return}var r=["dev.checkout.elements.zonos.com"].some((function(t){return e.origin.includes(t)}));if(e.origin!==o&&!r){return}switch(e.data.type){case"zonos-checkout-session-update":storageStore.checkoutSessionId=e.data.checkoutSessionId;break}};this.captureParamsRedirectedForVariantTest=function(){var e=new URL(window.location.href);var t=e.searchParams.get("zonosVariantTest")==="1";if(!t){return}var o=e.searchParams.get("zonosCheckoutSessionId");if(o){storageStore.checkoutSessionId=o}var r=storageStore.enabledVariantTestKeys||[];if(window.Zonos.isLegacyCheckout){var n=getSelectedTestVariant("hosted_vs_native");if(!n){r.push({expiresAt:Date.now()+VARIANT_TEST_KEY_EXPIRATION,selectedVariantKey:"hosted",testKey:"hosted_vs_native"});storageStoreSetEnabledVariantTestKeys(r)}else{storageStoreSetEnabledVariantTestKeys(r.map((function(e){if(e.testKey==="hosted_vs_native"){return Object.assign(Object.assign({},e),{selectedVariantKey:"hosted"})}return e})))}}e.searchParams.delete("zonosCheckoutSessionId");e.searchParams.delete("zonosVariantTest");window.history.replaceState({},"",e.toString())}}e.prototype.initCartInfoHandler=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(o){t=e.detail;void cartStoreUpdateItems({adjustments:cartStore.adjustments,cartItems:t});return[2]}))}))};e.prototype.handleKeyPress=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.key==="Escape"){void this.closeDialogHandler()}return[2]}))}))};e.prototype.closeDialogHandler=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o;return __generator(this,(function(r){if(!this.open){return[2]}if(!(e===null||e===void 0?void 0:e.confirmed)){this.confirmDialogOpen=true;return[2]}this.confirmDialogOpen=false;submitGtag({event:"zonos-checkout-close",metadata:{checkoutSessionId:storageStore.checkoutSessionId}});this.open=this.forceDialogOpen||false;if(!this.preview&&cartStore.step==="finish"){cartStoreReset()}cartStore.step="customer-info";cartStoreResetTabItems();cartStoreClearCheckoutInterval();(o=(t=zonosStore.checkoutSettings).onClose)===null||o===void 0?void 0:o.call(t);return[2]}))}))};e.prototype.buildCartAndInit=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,r,n,s,i,a,s,i,i,c,u,s,l;return __generator(this,(function(d){switch(d.label){case 0:if(!(typeof zonosStore.checkoutSettings.createCartId==="function"))return[3,4];log('"createCartId" is provided, start building cart');return[4,zonosStore.checkoutSettings.createCartId()];case 1:e=d.sent();t=void 0;if(typeof e==="object"){log("object detected, use cartId and prefill address from createCartId","info",e);t=e.cartId;this.useShippingDataFromCreateCartId(e.shippingData);cartStore.customerAuthenticationToken=e.customerAuthenticationToken||null}else{t=e}window.Zonos.cartId=t;return[4,setupCartData(t)];case 2:o=d.sent();r=o===null||o===void 0?void 0:o.cartData;if(!r){logError("Failed to build cart, please try again.");return[2,false]}window.Zonos.cartData=r;n=buildCartItemsByTempCart(r),s=n.adjustments,i=n.cartItems;return[4,cartStoreUpdateItems({adjustments:s,cartItems:i})];case 3:d.sent();return[3,9];case 4:if(!window.Zonos.cartData)return[3,6];log("tempCartUUID is provided, start building cart");a=buildCartItemsByTempCart(window.Zonos.cartData),s=a.adjustments,i=a.cartItems;return[4,cartStoreUpdateItems({adjustments:s,cartItems:i})];case 5:d.sent();return[3,9];case 6:if(!(zonosStore.checkoutSettings.buildCartDetail&&localizationStore.selectedCountryCode))return[3,9];log("build cart detail");return[4,zonosStore.checkoutSettings.buildCartDetail({countryCode:localizationStore.selectedCountryCode,currencyCode:localizationStore.targetCurrency})];case 7:i=d.sent();c=i.filter((function(e){return e.amount>=0}));u=i.filter((function(e){return e.amount<0}));log("cartItems","info",{cartItems:i});s=u.map((function(e){return{amount:e.amount,currencyCode:e.currencyCode,description:e.name||e.description||"",productId:e.productId||null,sku:e.sku||null,type:"CART_TOTAL"}}));return[4,cartStoreUpdateItems({adjustments:s,cartItems:c})];case 8:d.sent();d.label=9;case 9:if(!!storageStore.checkoutSessionId)return[3,11];return[4,stripeStoreInitCheckoutSession()];case 10:l=d.sent();log("stripeStoreInitCheckoutSession: ".concat(l));if(!l){return[2,false]}d.label=11;case 11:if(!cartStore.isStagingMode){void stripeStoreGetPaymentIntent()}return[4,this.applyStripeTheme()];case 12:d.sent();this.isRedirectAfterOrder=zonosStore.checkoutSettings.successBehavior==="REDIRECT_TO_SUCCESS_PAGE"||!!cartStore.externalConfirmationPageURL;return[2,true]}}))}))};e.prototype.reloadCheckoutSession=function(){window.location.reload()};e.prototype.handleOrderDuplication=function(){var e=jsonParse(localStorage.getItem("zonos--placed-order-info"));if(!e){localStorage.removeItem("zonos--placed-order-info");return}var t=Date.now()-e.time;log("=== Existing placed order info: ".concat(e.orderId," - ").concat(this.formatDate(e.time)," - elapsed in hh:ss format: ").concat(new Date(t).toISOString().substring(11,8)),"warn");var o=parseFloat(new URLSearchParams(window.location.search).get("zonosOverrideExpiredDuplication")||"0")||ORDER_DUPLICATION_NOTIFICATION_EXPIRATION;if(t>o){log("=== Existing placed order info is older than ".concat(o,"ms, cleaning localStorage"),"warn");localStorage.removeItem("zonos--placed-order-info");return}this.placedOrderInfo=e;log("=== Showing order duplication confirmation","warn")};e.prototype.recordCheckoutInfo=function(){if(!storageStore.checkoutSessionId){return}void updateCheckoutSessionAttributes({attributes:[{key:"APP_VERSION",value:window.Zonos.version},{key:"APP_VERSION_NPM_INTEGRATION",value:window.Zonos.isNpm?"1":"0"},{key:"LEGACY_CHECKOUT_FACADE",value:window.Zonos.isLegacyCheckout?"1":"0"}],checkoutSessionId:storageStore.checkoutSessionId})};e.prototype.confirmProceedWithOrderDuplication=function(){this.placedOrderInfo=null;if(!storageStore.checkoutSessionId){return}void updateCheckoutSessionAttributes({attributes:[{key:"ORDER_DUPLICATION_CONSENT",value:"1"}],checkoutSessionId:storageStore.checkoutSessionId})};e.prototype.markTheSessionAsAbandonedCart=function(){if(!storageStore.checkoutSessionId){return}void updateCheckoutSessionAttributes({attributes:[{key:"WITH_ABANDONED_CART_TOKEN",value:"1"}],checkoutSessionId:storageStore.checkoutSessionId})};e.prototype.handleCancelOrderDuplication=function(){var e;this.placedOrderInfo=null;if(this.isLegacyCheckout){var t=((e=window.Zonos.cartData)===null||e===void 0?void 0:e.storeBaseUrl)||zonosStore.onlineStoreSettings.url;if(!t){return}if(window.parent){window.parent.location.href=t}window.location.href=t;return}void this.closeDialogHandler({confirmed:true})};e.prototype.attachCheckout=function(){var e=this;var t=zonosStore.checkoutSettings.placeOrderButtonSelector;var o=zonosStore.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;log("attach checkout ".concat(t));log("attach checkout to always trigger international checkout selector: ".concat(o));if(!t&&!o&&!window.Zonos.cartData){return}var r=[t,o,"#".concat(domesticRedirectedBtnSelector),"#".concat(checkoutHiddenBtnSelector),"#".concat(checkoutHiddenInternationalBtnSelector)].filter(Boolean);var n=document.querySelectorAll(r.join(","));n.forEach((function(r){var n=r.getAttribute("data-zonos-checkout-attached");if(n){return}log("attached event to button ".concat(t),"info",{button:r});r.addEventListener("click",(function(t){return __awaiter(e,void 0,void 0,(function(){var e,n,s,i,a,c,u,l,d,h,f,m,v,g,p,z;return __generator(this,(function(S){switch(S.label){case 0:s=performance.now();i=o&&r.matches(o);a=r.matches("#".concat(checkoutHiddenInternationalBtnSelector));c=r.matches("#".concat(domesticRedirectedBtnSelector))||r.matches("#".concat(checkoutHiddenBtnSelector));if(!window.Zonos.isLegacyCheckout&&(!isShippableCountry()||isDisabledCountry())&&!i&&!a&&!c){return[2]}t.preventDefault();t.stopPropagation();log("zonos checkout button clicked");return[4,this.checkStripePaymentIntentStatus({triggeredButton:t.target})];case 1:u=S.sent().shouldAllowOrder;if(!u){return[2]}if(!window.Zonos.logIntervalId){window.Zonos.logIntervalId=setInterval((function(){void sendBulkLoadTimeApiLog()}),2e3)}if(!isTestEnabled("hosted_vs_native"))return[3,4];this.isOverlayLoading=true;return[4,this.registerTestHostedVsNative()];case 2:S.sent();return[4,this.handleHostedVsNative()];case 3:l=S.sent().redirected;this.isOverlayLoading=false;if(l){return[2]}S.label=4;case 4:stripeStore.isFetchingSession=true;this.open=true;S.label=5;case 5:S.trys.push([5,8,,9]);return[4,this.buildCartAndInit()];case 6:d=S.sent();if(!d){throw new Error("Error building cart")}(e=window.opener)===null||e===void 0?void 0:e.postMessage({checkoutSessionId:storageStore.checkoutSessionId,type:"zonos-checkout-session-update"},"*");cartStoreStartCheckoutInterval({isPreview:this.preview,sessionTimeout:CHECKOUT_SESSION_TIMEOUT});submitGtag({event:"zonos-checkout-start",metadata:{checkoutSessionId:storageStore.checkoutSessionId}});h=storageStore.checkoutSessionId;void trackConversionEvent({checkoutSessionId:h,eventName:"checkout_open"});return[4,isStoreDiscountEnabled()];case 7:f=S.sent().enabled;cartStore.shouldHideDiscountInput=!f;this.handleOrderDuplication();if(window.Zonos.isLegacyCheckout){void sendLoadCheckoutFacadeLog()}else{m=performance.now();v=m-s;void sendLoadNativeCheckoutLog({loadTime:v})}this.recordCheckoutInfo();g=!!getAbandonedCartRenewTokenValue();if(g){this.markTheSessionAsAbandonedCart()}return[3,9];case 8:p=S.sent();if(p instanceof Error){z=p.message;if(z==="Cart is expired."){this.isCartExpired=true}}stripeStore.isFetchingSession=false;logError(p);if(this.isCartExpired){stripeStore.isFetchingSession=true;return[2]}void sendErrorLog({endpoint:"Error creating Checkout",errors:[p instanceof Error?p.toString():"Unknown error"],metadata:{allLogs:allLogs,cartId:window.Zonos.cartId,checkoutSessionBody:getCheckoutSessionBody(),href:window.location.href,storeBaseUrl:((n=window.Zonos.cartData)===null||n===void 0?void 0:n.storeBaseUrl)||zonosStore.onlineStoreSettings.url}});cartStoreUpdateToErrorState({messages:[translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:translate("Error creating Checkout")});return[3,9];case 9:return[2]}}))}))}),{capture:true,passive:false});if(!zonosStore.checkoutSettings.disablePlaceOrderButtonActivation){r.removeAttribute("disabled")}r.setAttribute("data-zonos-checkout-attached","true");if(r.matches("#".concat(domesticRedirectedBtnSelector))){r.dispatchEvent(createCustomEvent("click"));stripeStoreCleanupDomesticShippingSession();r.remove()}if(r.matches("#".concat(checkoutHiddenBtnSelector))){r.dispatchEvent(createCustomEvent("click"));r.remove()}}))};e.prototype.appearanceSettingsOverrideChanged=function(){if(!this.appearanceSettingsOverride){return}void this.applyStripeTheme()};e.prototype.useShippingDataFromCreateCartId=function(e){if(!e){return}log("shipping data from createCartId result","info",Object.entries(e));var t=e.customerAddress1,o=e.customerAddress2,r=e.customerCity,n=e.customerCountry,s=e.customerEmail,i=e.customerFirstName,a=e.customerLastName,c=e.customerName,u=e.customerPhone,l=e.customerState,d=e.customerZip;var h=new URLSearchParams(window.location.search);var f=n||getZCountryUrlParam(h)||localizationStore.selectedCountryCode;this.applyPrefillAddress({customerAddress1:t,customerAddress2:o,customerCity:r,customerCountry:f,customerEmail:s,customerFirstName:i,customerLastName:a,customerName:c,customerPhone:u,customerState:l,customerZip:d})};e.prototype.useLegacyQueryParams=function(){var e=new URLSearchParams(window.location.search);log("legacy urlParams","info",Object.fromEntries(e.entries()));var t=function(t){var o=e.get(t);if(!o||o==="undefined"){return null}return o};var o=getZCountryUrlParam(e)||localizationStore.selectedCountryCode;var r=t("customerCity");var n=t("customerEmail");var s=t("customerAddress1");var i=t("customerAddress2");var a=t("customerName");var c=t("customerFirstName");var u=t("customerLastName");var l=t("customerPhone");var d=t("customerZip");var h=t("customerState");this.applyPrefillAddress({customerAddress1:s,customerAddress2:i,customerCity:r,customerCountry:o,customerEmail:n,customerFirstName:c,customerLastName:u,customerName:a,customerPhone:l,customerState:h,customerZip:d})};e.prototype.applyPrefillAddress=function(e){var t=e.customerAddress1||"";var o=e.customerCountry||"";var r=e.customerAddress2||"";var n=e.customerCity||"";var s=e.customerEmail||"";var i=e.customerFirstName&&e.customerLastName?"".concat(e.customerFirstName," ").concat(e.customerLastName):e.customerName||"";var a=e.customerPhone||"";var c=e.customerZip||"";var u=e.customerState||"";if(!t||!i||!a||!o){log("Missing required query params so it can not be prefilled","info",[!t&&"line1",!i&&"name",!a&&"phone",!o&&"country"].filter(Boolean).join(", "));return}if(o&&localizationStore.shippingZoneCountries&&!(o in localizationStore.shippingZoneCountries)){log('Country "'.concat(o,'" is not in the shipping zone, so it can not be prefilled'),"warn");return}this.defaultAddressParams=[{address:{city:n||"",country:o,line1:t,line2:r,postal_code:c,state:u},email:s,name:i,phone:a}];log("Prefill address applied","info",{prefillAddress:this.defaultAddressParams,providedAddress:e})};e.prototype.overrideStagingModeChanged=function(){cartStore.isStagingMode=!!this.overrideStagingMode};e.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(o){stripeStore.stripe=window.Zonos.stripe;this.stripe=window.Zonos.stripe;cartStore.isStagingMode=getIsStagingMode();if(typeof this.overrideStagingMode!=="undefined"){cartStore.isStagingMode=this.overrideStagingMode}watchImmediateBigcommerceDomesticCheckoutRedirect({domesticRedirectedBtnSelector:domesticRedirectedBtnSelector,onInternationalCheckoutSelected:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.detectedDomesticCheckoutDialogOpen=true;return[4,new Promise((function(e){return setTimeout(e,2e3)}))];case 1:e.sent();return[2]}}))}))},onShippingAddressSessionFound:function(e){t.defaultAddress=[{address:{city:e.city,country:e.countryCode,line1:e.address1,line2:e.address2,postal_code:e.postalCode,state:e.state},email:"",name:"".concat(e.firstName," ").concat(e.lastName),phone:e.phone}]}});if(window.Zonos){this.useLegacyQueryParams()}e=setInterval((function(){stripeStore.stripe=window.Zonos.stripe;t.stripe=window.Zonos.stripe;if(!t.stripe){log("waiting for stripe to be loaded");return}if(t.storybookPaymentStatusOverride){clearInterval(e);return}log("init checkout");if(t.preview||t.forceDialogOpen){void t.buildCartAndInit()}else if(window.Zonos.isLegacyCheckout){t.attachCheckout()}else if(window){t.attachCheckout();var o=new MutationObserver((function(){t.attachCheckout()}));o.observe(document.body,{childList:true,subtree:true})}clearInterval(e)}),50);setTimeout((function(){clearInterval(e)}),1e4);return[2]}))}))};e.prototype.setToFinishStep=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){cartStore.step="finish";this.storybookPaymentStatusOverride=e;return[2]}))}))};e.prototype.mockCheckoutSession=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){cartStoreSetCheckoutSession(e);return[2]}))}))};e.prototype.triggerCheckoutInternational=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=document.querySelector("#".concat(checkoutHiddenInternationalBtnSelector));if(e){e.dispatchEvent(createCustomEvent("click"))}return[2]}))}))};e.prototype.handleCustomerInfoContinue=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,r,n,s,i,a;var c=this;return __generator(this,(function(u){switch(u.label){case 0:submitGtag({event:"zonos-checkout-customer-info",metadata:{checkoutSessionId:storageStore.checkoutSessionId}});n=storageStore.checkoutSessionId;void trackConversionEvent({checkoutSessionId:n,eventName:"checkout_customerInfoCompleted"});this.submitLoading=true;return[4,stripeStorePrefetchLandedCost()];case 1:s=u.sent().isRequestNotReady;if(s&&cartStore.addressFormRenderType==="stripe"){void sendErrorLog({endpoint:"ADDRESS_NOT_READY_AT_CUSTOMER_INFO_CONTINUE",errors:["Address not ready at customer info continue"],metadata:{address:(t=(e=stripeStore.stripeAddressEventData)===null||e===void 0?void 0:e.value)===null||t===void 0?void 0:t.address,billingAddress:(r=(o=stripeStore.stripeBillingAddressEventData)===null||o===void 0?void 0:o.value)===null||r===void 0?void 0:r.address,cartId:window.Zonos.cartId}})}i=function(e){if(cartStore.step!=="customer-info"){clearInterval(e);return}if(!stripeStore.isFetchingLandedCost){if(cartStore.landedCostData){void paypalInitScript({currency:cartStore.currency});cartStoreNextStep()}c.submitLoading=false;if(e){clearInterval(e)}}};i();a=setInterval((function(){i(a)}),20);setTimeout((function(){clearInterval(a)}),1e4);return[2]}}))}))};e.prototype.handleShippingContinue=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){cartStoreNextStep();return[2]}))}))};e.prototype.handleInventoryCheckDialogConfirm=function(){cartStore.inventoryCheckErrorMessage=null;if(!this.isLegacyCheckout){void this.closeDialogHandler({confirmed:true})}};e.prototype.handleCartExpiredDialogConfirm=function(){var e;this.isCartExpired=false;if(this.isLegacyCheckout){var t=(e=window.Zonos.cartData)===null||e===void 0?void 0:e.storeBaseUrl;if(!t){return}if(window.parent){window.parent.location.href=t}window.location.href=t;return}if(window.parent){window.parent.location.href=window.location.href}window.location.reload()};e.prototype.handleStripePaymentContinue=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,r,n;return __generator(this,(function(s){switch(s.label){case 0:e=stripeStore.checkoutSettlementCurrency==="USD";if(e&&stripeStore.shouldRenderPayInUsdButton&&!this.payInUsdConfirmDialogOpen){this.payInUsdConfirmDialogOpen=true;return[2]}this.payInUsdConfirmDialogOpen=false;paypalStore.paypalErrorMessage=null;stripeStore.hasPaymentError=false;this.submitLoading=true;cartStore.inventoryCheckErrorMessage=null;return[4,stripeStoreUpdateCheckoutSessionBaseCurrency()];case 1:t=s.sent();if(!t){stripeStore.hasPaymentError=true;stripeStore.customErrorMessage=translate("Unable to complete payment in [currency]. Please try again or select a different currency. If the issue persists, contact our support team for assistance.",{currency:stripeStore.checkoutSettlementCurrency});this.submitLoading=false;return[2]}s.label=2;case 2:s.trys.push([2,4,,5]);o=cartStore;return[4,stripeStoreHandleInventoryCheck()];case 3:o.inventoryCheckErrorMessage=s.sent();return[3,5];case 4:r=s.sent();cartStore.inventoryCheckErrorMessage=translate("Unable to check inventory. Please try again.");return[3,5];case 5:if(cartStore.inventoryCheckErrorMessage){this.submitLoading=false;return[2]}s.label=6;case 6:s.trys.push([6,8,,9]);return[4,stripeStoreConfirmPayment()];case 7:s.sent();cartStoreNextStep();cartStoreClearCheckoutInterval();return[3,9];case 8:n=s.sent();logError(n);submitGtag({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:storageStore.checkoutSessionId}});stripeStore.hasPaymentError=true;if(stripeStore.shouldInventoryRefund){void stripeStoreHandleInventoryRefund();stripeStore.shouldInventoryRefund=false}return[3,9];case 9:this.submitLoading=false;return[2]}}))}))};e.prototype.handleFinishClick=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,r;return __generator(this,(function(n){switch(n.label){case 0:stripeStoreReset();if(!this.preview)return[3,2];cartStore.step="customer-info";return[4,this.init()];case 1:n.sent();return[2];case 2:cartStoreReset();if(window.Zonos.isLegacyCheckout&&window.Zonos.cartData){e=window.Zonos.cartData.storeBaseUrl||zonosStore.onlineStoreSettings.url;if(window.parent){window.parent.location.href=e}window.location.href=e;return[2]}t=window.location.href;o=t.split("?")[0];this.open=false;r=window.location.hostname.includes("dashboard.zonos.com");if(!r){window.history.replaceState(window.history.state,document.title,o);window.location.reload()}return[2]}}))}))};e.prototype.handleWindowResize=function(){this.isMobile=isCheckoutMobile(this.mobile);void this.applyStripeTheme();log("mobile: ".concat(this.isMobile))};e.prototype.handleMobileChange=function(){this.isMobile=isCheckoutMobile(this.mobile);void this.applyStripeTheme();log("mobile: ".concat(this.isMobile))};e.prototype.handleAppearanceSettingsOverrideChange=function(){var e;if((e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.theme){this.appearanceSettingsOverride.theme=getZonosStoreTheme(this.appearanceSettingsOverride.theme)}};e.prototype.handleAddressChange=function(){stripeStoreReset()};e.prototype.handleCustomerProfileChange=function(){var e,t;if(!this.customerProfile){log("No customer profile","info");this.defaultCustomerProfileAddress=[];return}log("Customer profile found","info",{customerProfile:this.customerProfile});this.defaultCustomerProfileAddress=((t=(e=stripeStore.customerProfile)===null||e===void 0?void 0:e.locations)===null||t===void 0?void 0:t.map((function(e){var t;return{address:{city:e.locality,country:e.countryCode,line1:e.line1,line2:e.line2||"",postal_code:e.postalCode,state:e.administrativeArea},email:e.email||((t=stripeStore.customerProfile)===null||t===void 0?void 0:t.email)||"",name:e.name||"",phone:e.phone||""}})))||[]};e.prototype.handleClientSecretChange=function(){log("==== Client secret changed","info",{clientSecret:this.clientSecret,stripeCustomerSessionClientSecret:this.stripeCustomerSessionClientSecret});void this.applyStripeTheme()};e.prototype.handleOpenChange=function(){var e="data-zonos-overflow-origin";var t=document.body;var o=document.documentElement;if(this.open){window.Zonos.openHelloDialog(false);if(t.style.overflow){t.setAttribute(e,t.style.overflow)}t.style.overflow="hidden";if(o.style.overflow){o.setAttribute(e,o.style.overflow)}o.style.overflow="hidden"}else{this.stripeCustomerSessionClientSecret=null;var r=t.getAttribute(e);var n=o.getAttribute(e);if(r){t.removeAttribute(e);t.style.overflow=r}else{t.style.removeProperty("overflow")}if(n){o.removeAttribute(e);o.style.overflow=n}else{o.style.removeProperty("overflow")}}};e.prototype.componentWillLoad=function(){var e=this;void this.init();this.isMobile=isCheckoutMobile(this.mobile);this.isIframed=window.self!==window.top;log("iframed: ".concat(this.isIframed));if(window.Zonos.isLegacyCheckout){this.captureParamsRedirectedForVariantTest()}this.handleAppearanceSettingsOverrideChange();this.storeUnsubscribeList=[localizationStoreOnChange("selectedLocale",(function(){void e.applyStripeTheme()})),cartStoreOnChange("selectedShippingOption",(function(){var t,o,r,n;var s=cartStore.selectedShippingOption;if(((t=zonosStore.genericSettings)===null||t===void 0?void 0:t.shouldFedExShippingConsentForCanadianShopper)&&((r=(o=s===null||s===void 0?void 0:s.shippingProfile)===null||o===void 0?void 0:o.serviceLevel.code)===null||r===void 0?void 0:r.toLowerCase().startsWith("fedex."))&&((n=stripeStore.stripeAddressEventData)===null||n===void 0?void 0:n.value.address.country)==="CA"){e.shouldShowFedexShippingConsentDialog=true}}))];this.initializeTestKeys();window.addEventListener("message",this.handleHostedOpenWindowCallback);log("mobile: ".concat(this.isMobile))};e.prototype.disconnectedCallback=function(){stripeStoreReset();cartStoreReset();this.storeUnsubscribeList.forEach((function(e){return e()}));window.removeEventListener("message",this.handleHostedOpenWindowCallback)};e.prototype.render=function(){var e=this;var t,o,r,n;this.customerProfile=stripeStore.customerProfile;this.clientSecret=stripeStore.clientSecret;if(stripeStore.stripeCustomerSessionClientSecret){this.stripeCustomerSessionClientSecret=stripeStore.stripeCustomerSessionClientSecret}var s=cartStore.step!=="finish"&&cartStore.step!=="error"&&!stripeStore.stripeElements||stripeStore.isFetchingSession;var i=mergeConfig(zonosStore.appearance,this.appearanceSettingsOverride||null),a=i.colorPrimary,c=i.colorSecondary,u=i.logoUrl,l=i.style;var d=zonosStore.appearance.zonosAttribution==="ENABLED";var f=zonosStore.appearance.theme;var m=a&&isDarkColor(a)?"DARK":"LIGHT";var v=this.isMobile?f:m;var g=!this.isMobile?c:undefined;var p=localizationStore.customMessages;var z=(t=p.find((function(e){return e.pageName==="checkout_default"})))===null||t===void 0?void 0:t.message;var S=this.getCurrentLocalePageEnum();var k=p.filter((function(e){return e.pageName===S}));var w=this.getBaseCurrencySettlementInfo();var C=function(){var t=e.preview?"".concat(u,"?timestamp=").concat(Date.now()):u;return h("div",{class:"zonos--logo"},t&&h("img",{alt:"".concat(zonosStore.organizationName," logo"),src:t}))};var b=getIsTestMode();var y=function(){var t=new URLSearchParams(window.location.search);var o=t.get("zonosQaUrl");var r=t.get("zonosDebug");var n=t.get("zonosE2ETest");var s=e.overrideStagingMode||getIsStagingMode();return h("zonos-v-stack",null,h("div",{class:"zonos--logo-wrapper"},C(),b&&h("zonos-badge",{badgeColor:"orange",size:"small"},translate("Test mode")),s&&h("zonos-badge",{badgeColor:"red",size:"small"},translate("Staging mode")),r==="1"&&h("zonos-badge",{badgeColor:"cyan",size:"small"},"debug"),o&&h("zonos-badge",{badgeColor:"purple",size:"small"},o),n&&h("zonos-badge",{badgeColor:"gray",size:"small"},"E2E Test")),h("zonos-checkout-progress-tabs",{backgroundColor:e.isMobile?"--zonos-elements-gray-0":null}),k.map((function(e){return h("zonos-custom-message",{icon:MessageIcon,message:e.message})})))};var _=function(){if(cartStore.checkoutSessionTimeoutShow){return h("zonos-rest-state",{class:"zonos--session-timeout",restStateSubtitle:translate("Your checkout session has expired. Please reload the page to continue."),restStateTitle:translate("Session timed out"),restStateType:"Warning"},h("zonos-button",{onClick:function(){return e.reloadCheckoutSession()},variant:"primary"},translate("Reload")))}return h("div",{class:"zonos--content",style:{"--zonos--border-radius":getBorderRadius({overrideBorderStyle:l})}},cartStore.step!=="finish"&&cartStore.step!=="error"&&h(Fragment,null,h("div",{class:"zonos--left","data-theme":v,style:styles({"--zonos--primary-color":!e.isMobile?a:undefined})},!e.isMobile&&y(),cartStore.step==="customer-info"&&h("zonos-customer-info",{continueLoading:e.submitLoading,defaultAddress:e.getDefaultAddress(),isMobile:e.isMobile,onContinueClicked:function(){return e.handleCustomerInfoContinue()},submitBtnColor:g}),cartStore.step==="shipping"&&h("zonos-shipping",{continueLoading:e.submitLoading,isMobile:e.isMobile,onContinueClicked:function(){return e.handleShippingContinue()},submitBtnColor:g}),cartStore.step==="payment"&&h("zonos-checkout-payment",{continueLoading:e.submitLoading,isMobile:e.isMobile,onContinueClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.handleStripePaymentContinue()];case 1:e.sent();return[2]}}))}))},submitBtnColor:g})),h("div",{class:"zonos--right","data-theme":f},e.isMobile&&y(),h("div",{class:"zonos--right-actions"},window.Zonos.showBaseForeign&&h("zonos-currency-toggle",null),!e.isLegacyCheckout&&h("zonos-button",{class:"zonos--close-button",icon:h("zonos-icon",{"aria-label":"Close checkout dialog",content:RemoveIcon}),noBackground:true,onClick:function(){return e.closeDialogHandler()}})),h("div",{class:"flex--wrapper"},h("div",{class:"zonos--wrapper"},h("zonos-review",{collapsed:e.collapseReviewMobile,mobile:e.isMobile,onClick:function(){if(!e.isMobile){return}e.collapseReviewMobile=!e.collapseReviewMobile}}),h("zonos-collapse",{collapsed:e.collapseReviewMobile&&e.isMobile},h("zonos-cart-items",null),e.isMobile&&h("zonos-v-stack",{spacing:16},h("zonos-cart-subtotal",{submitBtnColor:g}),h("zonos-custom-message",{class:"zonos--checkout-default-message",icon:MessageIcon,message:z})))),h("zonos-cart-restricted-items",null),!e.isMobile&&h("zonos-v-stack",{spacing:16},h("zonos-cart-subtotal",null),h("zonos-custom-message",{class:"zonos--checkout-default-message",icon:MessageIcon,message:z}))))),(cartStore.step==="finish"||cartStore.step==="error")&&h("div",{class:"zonos--done","data-theme":f},h("div",{class:"zonos--header"},C(),!e.isRedirectAfterOrder&&h("zonos-button",{class:"zonos--close-button",icon:h("zonos-icon",{"aria-label":"Close checkout dialog",content:RemoveIcon}),noBackground:true,onClick:function(){return e.handleFinishClick()},theme:f})),h("zonos-checkout-finish",{borderRadius:l,onCloseClick:function(){return e.handleFinishClick()},overrideNotification:cartStore.step==="error"&&!!cartStore.error?Object.assign(Object.assign({},cartStore.error),{type:"error"}):undefined,storybookForceStatus:e.storybookPaymentStatusOverride})),h("zonos-checkout-footer",{"data-theme":f,mobile:e.isMobile,slot:!e.isMobile?"dialog-footer":undefined}))};return h(Host,{class:classes(["zonos--checkout zonos--elements",cartStore.step==="payment"&&"zonos--processing-payment",d&&"has-footer",this.preview&&"preview",this.isMobile&&"mobile",this.isIframed&&"iframed",this.hiddenMode&&"hidden-mode"])},this.preview?_():h("zonos-dialog",{borderStyle:l,class:"zonos--checkout-dialog","data-theme":f,height:"980px",isLoading:s,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return e.closeDialogHandler()},open:this.open,width:"1200px"},_()),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:function(){e.confirmDialogOpen=false},onConfirmClicked:function(){return e.closeDialogHandler({confirmed:true})}}),h("zonos-confirm-dialog",{class:"zonos--order-duplication-dialog",dialogCancelBtnText:translate("Return to merchant site"),dialogConfirmBtnText:translate("Proceed with order"),dialogIntent:"warn",dialogOpen:!!this.placedOrderInfo,dialogSubtitle:((o=this.placedOrderInfo)===null||o===void 0?void 0:o.zonosOrderNumber)?translate("It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?",{date:this.formatDate(this.placedOrderInfo.time),orderNumber:this.placedOrderInfo.zonosOrderNumber,time:this.formatTime(this.placedOrderInfo.time)}):translate("It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?",{date:this.formatDate(((r=this.placedOrderInfo)===null||r===void 0?void 0:r.time)||null),time:this.formatTime(((n=this.placedOrderInfo)===null||n===void 0?void 0:n.time)||null)}),dialogTitle:translate("Are you sure?"),dialogWidth:530,onCancelClicked:function(){e.handleCancelOrderDuplication()},onConfirmClicked:function(){e.confirmProceedWithOrderDuplication()}}),h("zonos-confirm-dialog",{class:"zonos--fedex-shipping-dialog",dialogConfirmBtnText:translate("Confirm"),dialogIntent:"info",dialogOpen:!!this.shouldShowFedexShippingConsentDialog,dialogSubtitle:h(Fragment,null,translate("If you select FedEx Ground as your shipping option, you'll need to complete a General Agency Agreement (GAA) after placing your order. This form allows FedEx to clear your package through Canadian customs on your behalf. FedEx will contact you directly—usually by email or phone—with instructions on how to complete the GAA. To avoid delays or the return of your package, please respond promptly to their request."),h("zonos-link",{href:"https://ftn.fedex.com/us/assets/docs/One-Time_GAA.pdf",target:"_blank"},translate("View GAA Form."))),dialogTitle:translate("Fedex Shipping Procedure"),dialogType:"alert",dialogWidth:500,onConfirmClicked:function(){return e.shouldShowFedexShippingConsentDialog=false}}),h("zonos-confirm-dialog",{class:"zonos--inventory-check-failure-dialog",dialogConfirmBtnText:translate("Return to cart"),dialogIntent:"danger",dialogOpen:!!cartStore.inventoryCheckErrorMessage,dialogSubtitle:cartStore.inventoryCheckErrorMessage,dialogTitle:translate("Couldn't place order"),dialogType:"alert",onConfirmClicked:function(){return e.handleInventoryCheckDialogConfirm()}}),w&&h("zonos-confirm-dialog",{class:"zonos--pay-in-usd-dialog",dialogCancelBtnText:translate("Cancel"),dialogConfirmBtnText:translate("Pay [orderTotal]",{orderTotal:currencyFormat({amount:w.settlementAmount,currency:"USD"})}),dialogIntent:"warn",dialogOpen:this.payInUsdConfirmDialogOpen,dialogSubtitle:translate("By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level."),dialogTitle:translate("Pay in USD (United States Dollar)?"),dialogType:"confirm",dialogWidth:480,onCancelClicked:function(){e.payInUsdConfirmDialogOpen=false},onConfirmClicked:function(){return e.handleStripePaymentContinue()}}),h("zonos-confirm-dialog",{class:"zonos--shopping-cart-expired-dialog",dialogConfirmBtnText:translate("OK"),dialogIntent:"danger",dialogOpen:this.isCartExpired,dialogSubtitle:translate("You are being sent back to the shop to re-add items to your cart."),dialogTitle:translate("Shopping cart expired"),dialogType:"alert",onConfirmClicked:function(){return e.handleCartExpiredDialogConfirm()}}),h("zonos-loading-overlay",{open:this.isOverlayLoading}))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{appearanceSettingsOverride:["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],overrideStagingMode:["overrideStagingModeChanged"],mobile:["handleMobileChange"],defaultAddress:["handleAddressChange"],customerProfile:["handleCustomerProfileChange"],clientSecret:["handleClientSecretChange"],stripeCustomerSessionClientSecret:["handleClientSecretChange"],open:["handleOpenChange"]}},enumerable:false,configurable:true});return e}();ZonosCheckout.style=ZonosCheckoutStyle0;export{ZonosCheckout as zonos_checkout};
1
+ var __awaiter=this&&this.__awaiter||function(e,t,o,r){function n(e){return e instanceof o?e:new o((function(t){t(e)}))}return new(o||(o=Promise))((function(o,s){function i(e){try{c(r.next(e))}catch(e){s(e)}}function a(e){try{c(r["throw"](e))}catch(e){s(e)}}function c(e){e.done?o(e.value):n(e.value).then(i,a)}c((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,n,s,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(e){return function(t){return c([e,t])}}function c(a){if(r)throw new TypeError("Generator is already executing.");while(i&&(i=0,a[0]&&(o=0)),o)try{if(r=1,n&&(s=a[0]&2?n["return"]:a[0]?n["throw"]||((s=n["return"])&&s.call(n),0):n.next)&&!(s=s.call(n,a[1])).done)return s;if(n=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;n=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(s=o.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){o.label=a[1];break}if(a[0]===6&&o.label<s[1]){o.label=s[1];s=a;break}if(s&&o.label<s[2]){o.label=s[2];o.ops.push(a);break}if(s[2])o.ops.pop();o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e];n=0}finally{r=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,t,o){if(o||arguments.length===2)for(var r=0,n=t.length,s;r<n;r++){if(s||!(r in t)){if(!s)s=Array.prototype.slice.call(t,0,r);s[r]=t[r]}}return e.concat(s||Array.prototype.slice.call(t))};import{r as registerInstance,h,F as Fragment,a as Host}from"./index-cfd394c8.js";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-efb30253.js";import{p as paypalStoreHasPaypalEnabled,a as paypalStore,b as paypalInitScript}from"./paypal-06b67be0.js";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-c1aff677.js";import{z as zonosStore,g as getZonosStoreTheme,m as mergeConfig}from"./zonosStore-5242a58d.js";import{b as buildCartItemsByTempCart}from"./buildCartItemsByTempCart-a117f75d.js";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";import{u as updateCheckoutSessionAttributes}from"./updateCheckoutSessionAttributes-b9f7e982.js";import{_ as _getIsValidCartId,c as checkoutHiddenBtnSelector,a as checkoutHiddenInternationalBtnSelector,d as domesticRedirectedBtnSelector,g as getAbandonedCartRenewTokenValue}from"./CheckoutConfig-724d7bae.js";import{l as log,g as getElapsedTime,b as allLogs}from"./VarianceTest-572cecf5.js";import{c as classes}from"./classes-0d95c529.js";import{c as createCustomEvent}from"./createCustomEvent-58159025.js";import{g as getBorderRadius}from"./getBorderRadius-c21a42e5.js";import{i as isDarkColor}from"./isDarkColor-3537021b.js";import{s as styles}from"./styles-6fc2fad9.js";import{s as submitGtag}from"./submitGtag-13de9f1f.js";import{R as RemoveIcon}from"./RemoveIcon-9dc5dd1a.js";import"./isContrastColor-c17e83c9.js";import"./debounce-efc0e473.js";var isStoreDiscountEnabled=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t,o;return __generator(this,(function(r){switch(r.label){case 0:return[4,handleFetch("/api/zonos-elements/get-store-discount-enabled-status")];case 1:e=r.sent(),t=e.errors,o=e.json;if(t.length||!(o===null||o===void 0?void 0:o.enabled)){return[2,{enabled:false}]}return[2,{enabled:true}]}}))}))};var selectVarianceTest=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t,o,r,n;var s=e.testKeys;return __generator(this,(function(e){switch(e.label){case 0:if(s.length===0){return[2,null]}return[4,handleFetch("/api/zonos-elements/select-variance-test",{body:{testKeys:s},method:"POST"})];case 1:t=e.sent(),o=t.errors,r=t.json;if(o.length||!r){return[2,null]}n=filterValidTests(r);return[2,n]}}))}))};var buildCartUrl=function(e){var t=e.cartId,o=e.checkoutSessionId,r=e.customerAddress1,n=e.customerAddress2,s=e.customerCity,i=e.customerCountry,a=e.customerEmail,c=e.customerFirstName,u=e.customerLastName,l=e.customerPhone,d=e.customerState,h=e.customerZip,f=e.hostedCheckoutUrl,m=e.isTestMode,v=e.isVariantTest;var g=new URLSearchParams;g.set("tempCartUUID",t);if(c){g.set("customerFirstName",c)}if(u){g.set("customerLastName",u)}if(a){g.set("customerEmail",a)}if(l){g.set("customerPhone",l)}if(h){g.set("customerZip",h)}if(s){g.set("customerCity",s)}if(d){g.set("customerState",d)}if(i){g.set("zCountry",i)}if(r){g.set("customerAddress1",r)}if(n){g.set("customerAddress2",n)}if(m){g.set("zonosTestMode","1")}if(o){g.set("zonosCheckoutSessionId",o)}if(v){g.set("zonosVariantTest","1")}return"".concat(f,"?").concat(g.toString())};var isDisabledCountry=function(e){if(e===void 0){e=true}if(!localizationStore.localizationLoaded){return true}if(localizationStore.isDisabledCountry){if(e){log("Checkout: disabled country")}return true}return false};var isShippableCountry=function(e,t){if(e===void 0){e=true}var o;if(!localizationStore.localizationLoaded){return false}if(t){var r=!!((o=localizationStore.shippingZoneCountries)===null||o===void 0?void 0:o[t])&&!zonosStore.disabledCountries.includes(t);if(e&&!r){log("Checkout: ".concat(t," is not a shippable country: ").concat(r))}return r}if(!localizationStore.isShippableCountry){if(e){log("Checkout: not shippable country")}return false}return true};var FALLBACK_SHIP_TO_COUNTRY_SELECTOR='select[name="shippingAddress.countryCode"]';var watchImmediateBigcommerceDomesticCheckoutRedirect=function(e){var t=e.domesticRedirectedBtnSelector,o=e.onInternationalCheckoutSelected,r=e.onShippingAddressSessionFound;if(!window.Zonos.isBigCommerce){return}var n=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,r,n,s;return __generator(this,(function(i){switch(i.label){case 0:r=document.querySelector(((t=zonosStore.genericSettings)===null||t===void 0?void 0:t.bigcommerceDomesticCheckoutCountrySelector)||FALLBACK_SHIP_TO_COUNTRY_SELECTOR);n=(r===null||r===void 0?void 0:r.value)||e;if(!n){return[2,false]}if(!isShippableCountry(false,n)){return[2,false]}if(!o)return[3,2];return[4,o()];case 1:i.sent();i.label=2;case 2:localizationStoreUpdateSelectedCountryCode({isInitializing:false,newSelectedCountryCode:n});s={address1:"",address2:"",city:"",countryCode:n,firstName:"",lastName:"",phone:"",postalCode:"",stateOrProvince:""};stripeStoreSaveDomesticShippingSession({address1:s.address1,address2:s.address2,city:s.city,countryCode:s.countryCode,firstName:s.firstName,lastName:s.lastName,phone:s.phone,postalCode:s.postalCode,state:s.stateOrProvince});window.location.href="/";return[2,true]}}))}))};var s=false;var i=false;var a=new MutationObserver((function(){var e;var o=document.querySelector(t);var c=stripeStoreGetDomesticShippingSession();if(!o&&c){var u=document.createElement("button");u.style.display="none";u.id="zonos--domestic-redirected-checkout-button";document.body.appendChild(u);r===null||r===void 0?void 0:r(c);a.disconnect();return}var l=window.location.pathname.includes("/checkout")&&window.Zonos.isBigCommerce;var d=document.querySelector(((e=zonosStore.genericSettings)===null||e===void 0?void 0:e.bigcommerceDomesticCheckoutCountrySelector)||FALLBACK_SHIP_TO_COUNTRY_SELECTOR);if(!l){a.disconnect();return}if(!d){return}log("Domestic checkout found - Listening for shipping country change","info",{value:d.value});if(i){return}i=true;a.disconnect();var h=setInterval((function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t;return __generator(this,(function(o){switch(o.label){case 0:if(s){return[2]}s=true;o.label=1;case 1:o.trys.push([1,3,,4]);return[4,n()];case 2:e=o.sent();if(e){clearInterval(h);return[2]}s=false;return[3,4];case 3:t=o.sent();s=false;return[3,4];case 4:return[2]}}))}))}),1e3);var f=setInterval((function(){var e;if(!window.bcStripeElements){clearInterval(f);return}var t=(e=window.bcStripeElements)===null||e===void 0?void 0:e.getElement("address");if(!t){return}clearInterval(f);t.on("change",(function(e){var t=e.value.address.country;if(t){void n(t)}}))}),500)}));a.observe(document.body,{childList:true,subtree:true})};var getLegacyQueryParams=function(){var e=new URLSearchParams(window.location.search);log("legacy urlParams","info",Object.fromEntries(e.entries()));var t=function(t){var o=e.get(t);if(!o||o==="undefined"){return""}return o};var o=getZCountryUrlParam(e)||localizationStore.selectedCountryCode||"US";var r=t("customerCity");var n=t("customerEmail");var s=t("customerAddress1");var i=t("customerAddress2");var a=t("customerName");var c=t("customerPhone");var u=t("customerZip");var l=t("customerState");var d=t("customerFirstName");var h=t("customerLastName");return{customerAddress1:s,customerAddress2:i,customerCity:r,customerCountry:o,customerEmail:n,customerFirstName:d,customerLastName:h,customerName:a,customerPhone:c,customerState:l,customerZip:u}};var numberOfFailures=0;var sendBulkLoadTimeApiLog=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t;var o;return __generator(this,(function(r){switch(r.label){case 0:if(window.Zonos.loadTimeApiInfoList.length===0){return[2]}log("Sending bulk load time api log","info",{loadTimeApiInfoList:window.Zonos.loadTimeApiInfoList});e={data:__spreadArray([],window.Zonos.loadTimeApiInfoList,true),storeId:window.Zonos.storeId||0};window.Zonos.loadTimeApiInfoList.length=0;return[4,handleFetch("/api/zonos-elements/log-bulk-load-data",{body:e,method:"POST"})];case 1:t=r.sent().errors;if(t.length){(o=window.Zonos.loadTimeApiInfoList).push.apply(o,e.data);numberOfFailures++;if(numberOfFailures>5&&window.Zonos.logIntervalId){clearInterval(window.Zonos.logIntervalId)}}return[2]}}))}))};var sendLoadCheckoutFacadeLog=function(){return __awaiter(void 0,void 0,void 0,(function(){var e,t;return __generator(this,(function(o){e=getElapsedTime().elapsedTime;t={cache:"miss",eventName:"jsdelivr",flag:"LOG_CHECKOUT_FACADE_LOAD",href:window.location.href,loadTime:e,metadata:Object.assign({allLogs:allLogs},getAdditionalLogMetadata()),scriptLoadUrl:"checkoutFacade",storeId:window.Zonos.storeId||0};void handleFetch("/api/zonos-elements/log-script-load",{body:t,method:"POST"});return[2]}))}))};var sendLoadNativeCheckoutLog=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t;var o=e.loadTime;return __generator(this,(function(e){t={cache:"miss",eventName:"jsdelivr",flag:"LOG_NATIVE_CHECKOUT_LOAD",href:window.location.href,loadTime:o,metadata:Object.assign({allLogs:allLogs},getAdditionalLogMetadata()),scriptLoadUrl:"nativeCheckout",storeId:window.Zonos.storeId||0};void handleFetch("/api/zonos-elements/log-script-load",{body:t,method:"POST"});return[2]}))}))};var filterExpiredTests=function(e){return(e===null||e===void 0?void 0:e.filter((function(e){if(e.expiresAt&&e.expiresAt<Date.now()||!e.expiresAt){return false}return true})))||[]};var getSelectedTestVariant=function(e){var t;var o=(t=storageStore.enabledVariantTestKeys)===null||t===void 0?void 0:t.find((function(t){return t.testKey===e}));return(o===null||o===void 0?void 0:o.selectedVariantKey)||null};var isTestEnabled=function(e){return zonosStore.enabledVariantTestKeys.includes(e)};var mergeTest=function(e){var t=e.baseTestObj,o=e.mergeTestObj;return t.map((function(e){var t=e.testKey;var r=o.find((function(e){var o=e.testKey;return o===t}));return{expiresAt:(r===null||r===void 0?void 0:r.expiresAt)||Date.now()+VARIANT_TEST_KEY_EXPIRATION,selectedVariantKey:(r===null||r===void 0?void 0:r.selectedVariantKey)||null,testKey:t}}))};var getTempCartById=function(e){return __awaiter(void 0,[e],void 0,(function(e){var t,o,r,n,s;var i=e.cartId,a=e.retries;return __generator(this,(function(e){switch(e.label){case 0:t=getIsTestMode();return[4,handleFetch("/api/zonos-elements/get-temp-cart",{body:{isTestMode:t,options:{noOnlineStoreSettings:true},tempCartUUID:i},headers:{"Content-Type":"application/json"},method:"POST"})];case 1:o=e.sent(),r=o.errors,n=o.json;s=!n||r.length;if(!(s&&a))return[3,3];log("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:a});return[4,new Promise((function(e){return setTimeout(e,500)}))];case 2:e.sent();return[2,getTempCartById({cartId:i,retries:a-1})];case 3:if(s){return[2,null]}return[2,n]}}))}))};var setupCartData=function(e){return __awaiter(void 0,void 0,void 0,(function(){var t,o,r,n;return __generator(this,(function(s){switch(s.label){case 0:t=_getIsValidCartId(e),o=t.isDgsCartId,r=t.isLegacyCartId;if(!r&&!o){logError("[ZONOS - loadZonos] invalid cart id");return[2,null]}return[4,getTempCartById({cartId:e,retries:5})];case 1:n=s.sent();log("[ZONOS - loadZonos] getting temp cart data","info",n);if(!n){logError("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process.");return[2,null]}window.Zonos.storeId=n.cartData.storeId;window.Zonos.zonosApiKey=n.cartData.credentialToken;return[2,{cartData:n.cartData,storeFavicon:n.storeFaviconUrl,storeId:n.cartData.storeId,storeLogo:n.storeLogoUrl,zonosApiKey:n.cartData.credentialToken}]}}))}))};var MessageIcon='<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n';var zonosCheckoutCss=".sc-zonos-checkout-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-h *.sc-zonos-checkout{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-checkout-h img.sc-zonos-checkout{max-width:100%}.sc-zonos-checkout-h dl.sc-zonos-checkout,.sc-zonos-checkout-h dd.sc-zonos-checkout,.sc-zonos-checkout-h h1.sc-zonos-checkout,.sc-zonos-checkout-h h2.sc-zonos-checkout,.sc-zonos-checkout-h h3.sc-zonos-checkout,.sc-zonos-checkout-h h4.sc-zonos-checkout,.sc-zonos-checkout-h h5.sc-zonos-checkout,.sc-zonos-checkout-h h6.sc-zonos-checkout,.sc-zonos-checkout-h hr.sc-zonos-checkout,.sc-zonos-checkout-h figure.sc-zonos-checkout,.sc-zonos-checkout-h p.sc-zonos-checkout,.sc-zonos-checkout-h pre.sc-zonos-checkout{margin:0}.sc-zonos-checkout-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-h{z-index:2147483647;position:fixed}.sc-zonos-checkout-h *.sc-zonos-checkout{-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar{width:10px}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-h *.sc-zonos-checkout::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;height:100%;overflow:hidden;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex:1;flex:1;padding:32px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{background-color:var(--zonos--primary-color, var(--zonos-elements-gray-0));border-right:1px solid var(--zonos-elements-gray-200)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{background-color:var(--zonos-elements-gray-0)}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:100%;max-height:100%;height:100%;overflow:auto;-ms-flex-direction:column;flex-direction:column;background-color:var(--zonos-elements-gray-0);-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:24px;padding-bottom:50px}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--header.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout .zonos--logo.sc-zonos-checkout{margin-bottom:0}.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout zonos-checkout-finish.sc-zonos-checkout{-ms-flex:1;flex:1}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{padding:0 8px 8px}.sc-zonos-checkout-h .zonos--left.sc-zonos-checkout .zonos--payment-error-banner.sc-zonos-checkout{margin-top:24px}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout{position:relative}.sc-zonos-checkout-h .zonos--right.sc-zonos-checkout .zonos--right-actions.sc-zonos-checkout{position:absolute;right:24px;top:24px;z-index:2;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--wrapper.sc-zonos-checkout{overflow:auto;max-height:100%;position:relative}.sc-zonos-checkout-h .flex--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;max-height:100%}.sc-zonos-checkout-h .zonos--logo-wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;gap:16px;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--logo-wrapper.sc-zonos-checkout>*.sc-zonos-checkout{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.sc-zonos-checkout-h .zonos--logo.sc-zonos-checkout img.sc-zonos-checkout{max-height:72px}.sc-zonos-checkout-h .zonos--checkout-default-message.sc-zonos-checkout{margin-left:76px;margin-bottom:8px}.zonos--close-button.sc-zonos-checkout{-ms-flex-item-align:start;align-self:flex-start}.preview.sc-zonos-checkout-h{min-width:500px;margin:auto;position:relative}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{border:var(--zonos-elements-border)}.preview.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{padding:32px}.hidden-mode.sc-zonos-checkout-h{height:0;opacity:0;pointer-events:none;position:absolute;visibility:hidden;width:0;z-index:-1}.mobile.sc-zonos-checkout-h{min-width:auto}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:auto;border-radius:0;max-height:100%;height:100%;border:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding:12px;padding-bottom:76px}@media (max-width: 768px){.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout,.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{padding-bottom:0}}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--left.sc-zonos-checkout{-ms-flex-order:2;order:2;border-right:none}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout{-ms-flex-order:1;order:1;padding-top:16px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));background-color:var(--zonos-elements-gray-50);padding:12px;margin-top:32px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--review.sc-zonos-checkout{margin-bottom:0}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--right.sc-zonos-checkout .zonos--cart-items.sc-zonos-checkout{margin-top:8px}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout zonos-checkout-footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--wrapper.sc-zonos-checkout{max-height:100%}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--footer.sc-zonos-checkout{-ms-flex-order:3;order:3}.mobile.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout .zonos--done.sc-zonos-checkout{width:auto}.mobile.sc-zonos-checkout-h .zonos--cart-subtotal.sc-zonos-checkout{margin:0}.iframed.sc-zonos-checkout-h .zonos--content.sc-zonos-checkout{-ms-scroll-chaining:chained;overscroll-behavior:auto}.zonos--processing-payment.sc-zonos-checkout-h{z-index:2147483646}";var ZonosCheckoutStyle0=zonosCheckoutCss;var CHECKOUT_SESSION_TIMEOUT=90*60*1e3;var ORDER_DUPLICATION_NOTIFICATION_EXPIRATION=6*60*60*1e3;var ZonosCheckout=function(){function e(e){var t=this;registerInstance(this,e);this.storeUnsubscribeList=[];this.isRedirectAfterOrder=false;this.preview=false;this.hiddenMode=false;this.mobile=false;this.defaultAddress=[];this.forceDialogOpen=false;this.defaultAddressParams=[];this.defaultCustomerProfileAddress=[];this.customerProfile=null;this.open=this.forceDialogOpen;this.isOverlayLoading=false;this.stripe=window.Zonos.stripe;this.submitLoading=false;this.collapseReviewMobile=true;this.isAttachError=false;this.isMobile=false;this.isIframed=false;this.isLegacyCheckout=window.Zonos.isLegacyCheckout;this.confirmDialogOpen=false;this.isCartExpired=false;this.payInUsdConfirmDialogOpen=false;this.inventoryCheckErrorMessage=null;this.placedOrderInfo=null;this.shouldShowFedexShippingConsentDialog=false;this.detectedDomesticCheckoutDialogOpen=false;this.clientSecret=stripeStore.clientSecret;this.stripeCustomerSessionClientSecret=stripeStore.stripeCustomerSessionClientSecret;this.applyStripeTheme=function(){return __awaiter(t,void 0,void 0,(function(){var e,t,o,r,n;return __generator(this,(function(s){switch(s.label){case 0:n=((e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.theme)||zonosStore.appearance.theme;return[4,initStripeElements({overrideBorderRadius:(t=this.appearanceSettingsOverride)===null||t===void 0?void 0:t.style,overridePrimaryColor:(o=this.appearanceSettingsOverride)===null||o===void 0?void 0:o.colorPrimary,overrideSecondaryColor:(r=this.appearanceSettingsOverride)===null||r===void 0?void 0:r.colorSecondary,overrideTheme:this.isMobile?n:undefined,paypalEnabled:paypalStoreHasPaypalEnabled()})];case 1:s.sent();return[2]}}))}))};this.checkStripePaymentIntentStatus=function(e){return __awaiter(t,[e],void 0,(function(e){var t,o,r,n,s,i,a,c,u;var l=e.triggeredButton;return __generator(this,(function(e){switch(e.label){case 0:t=l===null||l===void 0?void 0:l.matches("#".concat(checkoutHiddenBtnSelector));o=!!window.Zonos.cartData;r=new URL(window.location.href).searchParams;n=r.get("payment_intent_client_secret");s=r.get("zonosCheckoutSessionId");if(!t){log("Checkout is triggered by user, no need to check stripe payment intent status");return[2,{shouldAllowOrder:true}]}log("Payment intent exist, checking stripe payment intent status");if(!n){log("No stripe client secret found in the URL, proceed to order if cart data is available");return[2,{shouldAllowOrder:o}]}return[4,stripeStoreRetrievePayment({clientSecret:n})];case 1:i=e.sent(),a=i.error,c=i.status;u=new URLSearchParams(window.location.search).get("redirect_status");if(u){if(!a){log("Payment intent is succeeded or in a good state to move forward, show success screen")}else{log("Payment intent failed, show status from error")}this.open=true;storageStore.checkoutSessionId=s;stripeStore.clientSecret=n;void this.setToFinishStep(c);return[2,{shouldAllowOrder:false}]}if(!o){log("Cart data is not available, only check payment intent status, skip order.");return[2,{shouldAllowOrder:false}]}log("Payment intent is not succeeded, proceed to order");return[2,{shouldAllowOrder:true}]}}))}))};this.initializeTestKeys=function(){storageStore.enabledVariantTestKeys=filterExpiredTests(storageStore.enabledVariantTestKeys||[]);var e=zonosStore.enabledVariantTestKeys.map((function(e){var t;var o=(t=storageStore.enabledVariantTestKeys)===null||t===void 0?void 0:t.find((function(t){var o=t.testKey;return o===e}));return{expiresAt:(o===null||o===void 0?void 0:o.expiresAt)||Date.now()+VARIANT_TEST_KEY_EXPIRATION,selectedVariantKey:(o===null||o===void 0?void 0:o.selectedVariantKey)||null,testKey:e}}));storageStoreSetEnabledVariantTestKeys(e);return{allSelected:false}};this.shouldAllowHostedVsNativeTest=function(){if(typeof zonosStore.checkoutSettings.createCartId!=="function"){return false}var e=zonosStore.enabledVariantTestKeys.includes("hosted_vs_native");if(!e){return false}return true};this.registerTestHostedVsNative=function(){return __awaiter(t,void 0,void 0,(function(){var e,t,o,r;return __generator(this,(function(n){switch(n.label){case 0:e=this.shouldAllowHostedVsNativeTest();if(!e){return[2]}log("[TEST] - Registering hosted vs native test");t=getSelectedTestVariant("hosted_vs_native");if(t){log("[TEST] - Hosted vs native test already has variant selected: ".concat(t));return[2]}return[4,selectVarianceTest({testKeys:["hosted_vs_native"]})];case 1:o=n.sent();if(!o){log("[TEST] - Failed to get selection for hosted vs native test");return[2]}r=mergeTest({baseTestObj:storageStore.enabledVariantTestKeys||[],mergeTestObj:o});storageStoreSetEnabledVariantTestKeys(r);return[2]}}))}))};this.handleHostedVsNative=function(){return __awaiter(t,void 0,void 0,(function(){var e,t,o,r,n,s,i,a;return __generator(this,(function(c){switch(c.label){case 0:t=this.shouldAllowHostedVsNativeTest();if(!t){return[2,{redirected:false}]}o=getSelectedTestVariant("hosted_vs_native");log("[TEST] - hosted_vs_native: ".concat(o));if(typeof zonosStore.checkoutSettings.createCartId!=="function"){log("[TEST] - createCartId is not provided, skipping hosted vs native test");return[2,{redirected:false}]}if(o!=="hosted"){log("[TEST] - Hosted vs native test is enabled for native, skipping");return[2,{redirected:false}]}if(!((e=zonosStore.genericSettings)===null||e===void 0?void 0:e.hostedCheckoutUrl)){log("[TEST] - Hosted checkout URL is not provided");return[2,{redirected:false}]}log('"createCartId" is provided, start building cart');return[4,zonosStore.checkoutSettings.createCartId()];case 1:r=c.sent();s=null;if(typeof r==="object"){n=r.cartId;s=r.shippingData||null}else{n=r}i=getLegacyQueryParams();a=buildCartUrl(Object.assign(Object.assign({cartId:n,checkoutSessionId:storageStore.checkoutSessionId||undefined,hostedCheckoutUrl:zonosStore.genericSettings.hostedCheckoutUrl,isTestMode:getIsTestMode(),isVariantTest:true},i),s));log("[TEST] - Redirecting to: ".concat(a));window.open(a,"_blank");return[2,{redirected:true}]}}))}))};this.formatDate=function(e){if(!e){return""}var t=new Date(e);return t.toLocaleDateString()};this.formatTime=function(e){if(!e){return""}var t=new Date(e);return t.toLocaleTimeString()};this.getCurrentLocalePageEnum=function(){switch(cartStore.step){case"customer-info":return"checkout_customer_info";case"shipping":return"checkout_shipping_info";case"payment":return"checkout_payment_info";default:return null}};this.getBaseCurrencySettlementInfo=function(){var e=cartStore.selectedLandedCost;if(!e){return null}var t=e.landedCost.amountSubtotals;if(!t){return null}var o=(t.discounts||0)+t.items+t.landedCostTotal+t.shipping;return{settlementAmount:o}};this.getDefaultAddress=function(){if(t.defaultCustomerProfileAddress.length){return t.defaultCustomerProfileAddress}if(Array.isArray(t.defaultAddress)&&t.defaultAddress.length){return t.defaultAddress}if(!Array.isArray(t.defaultAddress)&&typeof t.defaultAddress==="object"){return[t.defaultAddress]}return t.defaultAddressParams};this.handleHostedOpenWindowCallback=function(e){var t;var o=(t=zonosStore.genericSettings)===null||t===void 0?void 0:t.hostedCheckoutUrl;if(!origin){return}var r=["dev.checkout.elements.zonos.com"].some((function(t){return e.origin.includes(t)}));if(e.origin!==o&&!r){return}switch(e.data.type){case"zonos-checkout-session-update":storageStore.checkoutSessionId=e.data.checkoutSessionId;break}};this.captureParamsRedirectedForVariantTest=function(){var e=new URL(window.location.href);var t=e.searchParams.get("zonosVariantTest")==="1";if(!t){return}var o=e.searchParams.get("zonosCheckoutSessionId");if(o){storageStore.checkoutSessionId=o}var r=storageStore.enabledVariantTestKeys||[];if(window.Zonos.isLegacyCheckout){var n=getSelectedTestVariant("hosted_vs_native");if(!n){r.push({expiresAt:Date.now()+VARIANT_TEST_KEY_EXPIRATION,selectedVariantKey:"hosted",testKey:"hosted_vs_native"});storageStoreSetEnabledVariantTestKeys(r)}else{storageStoreSetEnabledVariantTestKeys(r.map((function(e){if(e.testKey==="hosted_vs_native"){return Object.assign(Object.assign({},e),{selectedVariantKey:"hosted"})}return e})))}}e.searchParams.delete("zonosCheckoutSessionId");e.searchParams.delete("zonosVariantTest");window.history.replaceState({},"",e.toString())}}e.prototype.initCartInfoHandler=function(e){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(o){t=e.detail;void cartStoreUpdateItems({adjustments:cartStore.adjustments,cartItems:t});return[2]}))}))};e.prototype.handleKeyPress=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(e.key==="Escape"){void this.closeDialogHandler()}return[2]}))}))};e.prototype.closeDialogHandler=function(e){return __awaiter(this,void 0,void 0,(function(){var t,o;return __generator(this,(function(r){if(!this.open){return[2]}if(!(e===null||e===void 0?void 0:e.confirmed)){this.confirmDialogOpen=true;return[2]}this.confirmDialogOpen=false;submitGtag({event:"zonos-checkout-close",metadata:{checkoutSessionId:storageStore.checkoutSessionId}});this.open=this.forceDialogOpen||false;if(!this.preview&&cartStore.step==="finish"){cartStoreReset()}cartStore.step="customer-info";cartStoreResetTabItems();cartStoreClearCheckoutInterval();(o=(t=zonosStore.checkoutSettings).onClose)===null||o===void 0?void 0:o.call(t);return[2]}))}))};e.prototype.buildCartAndInit=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,r,n,s,i,a,s,i,i,c,u,s,l;return __generator(this,(function(d){switch(d.label){case 0:if(!(typeof zonosStore.checkoutSettings.createCartId==="function"))return[3,4];log('"createCartId" is provided, start building cart');return[4,zonosStore.checkoutSettings.createCartId()];case 1:e=d.sent();t=void 0;if(typeof e==="object"){log("object detected, use cartId and prefill address from createCartId","info",e);t=e.cartId;this.useShippingDataFromCreateCartId(e.shippingData);cartStore.customerAuthenticationToken=e.customerAuthenticationToken||null}else{t=e}window.Zonos.cartId=t;return[4,setupCartData(t)];case 2:o=d.sent();r=o===null||o===void 0?void 0:o.cartData;if(!r){logError("Failed to build cart, please try again.");return[2,false]}window.Zonos.cartData=r;n=buildCartItemsByTempCart(r),s=n.adjustments,i=n.cartItems;return[4,cartStoreUpdateItems({adjustments:s,cartItems:i})];case 3:d.sent();return[3,9];case 4:if(!window.Zonos.cartData)return[3,6];log("tempCartUUID is provided, start building cart");a=buildCartItemsByTempCart(window.Zonos.cartData),s=a.adjustments,i=a.cartItems;return[4,cartStoreUpdateItems({adjustments:s,cartItems:i})];case 5:d.sent();return[3,9];case 6:if(!(zonosStore.checkoutSettings.buildCartDetail&&localizationStore.selectedCountryCode))return[3,9];log("build cart detail");return[4,zonosStore.checkoutSettings.buildCartDetail({countryCode:localizationStore.selectedCountryCode,currencyCode:localizationStore.targetCurrency})];case 7:i=d.sent();c=i.filter((function(e){return e.amount>=0}));u=i.filter((function(e){return e.amount<0}));log("cartItems","info",{cartItems:i});s=u.map((function(e){return{amount:e.amount,currencyCode:e.currencyCode,description:e.name||e.description||"",productId:e.productId||null,sku:e.sku||null,type:"CART_TOTAL"}}));return[4,cartStoreUpdateItems({adjustments:s,cartItems:c})];case 8:d.sent();d.label=9;case 9:if(!!storageStore.checkoutSessionId)return[3,11];return[4,stripeStoreInitCheckoutSession()];case 10:l=d.sent();log("stripeStoreInitCheckoutSession: ".concat(l));if(!l){return[2,false]}d.label=11;case 11:if(!cartStore.isStagingMode){void stripeStoreGetPaymentIntent()}return[4,this.applyStripeTheme()];case 12:d.sent();this.isRedirectAfterOrder=zonosStore.checkoutSettings.successBehavior==="REDIRECT_TO_SUCCESS_PAGE"||!!cartStore.externalConfirmationPageURL;return[2,true]}}))}))};e.prototype.reloadCheckoutSession=function(){window.location.reload()};e.prototype.handleOrderDuplication=function(){var e=jsonParse(localStorage.getItem("zonos--placed-order-info"));if(!e){localStorage.removeItem("zonos--placed-order-info");return}var t=Date.now()-e.time;log("=== Existing placed order info: ".concat(e.orderId," - ").concat(this.formatDate(e.time)," - elapsed in hh:ss format: ").concat(new Date(t).toISOString().substring(11,8)),"warn");var o=parseFloat(new URLSearchParams(window.location.search).get("zonosOverrideExpiredDuplication")||"0")||ORDER_DUPLICATION_NOTIFICATION_EXPIRATION;if(t>o){log("=== Existing placed order info is older than ".concat(o,"ms, cleaning localStorage"),"warn");localStorage.removeItem("zonos--placed-order-info");return}this.placedOrderInfo=e;log("=== Showing order duplication confirmation","warn")};e.prototype.recordCheckoutInfo=function(){if(!storageStore.checkoutSessionId){return}void updateCheckoutSessionAttributes({attributes:[{key:"APP_VERSION",value:window.Zonos.version},{key:"APP_VERSION_NPM_INTEGRATION",value:window.Zonos.isNpm?"1":"0"},{key:"LEGACY_CHECKOUT_FACADE",value:window.Zonos.isLegacyCheckout?"1":"0"}],checkoutSessionId:storageStore.checkoutSessionId})};e.prototype.confirmProceedWithOrderDuplication=function(){this.placedOrderInfo=null;if(!storageStore.checkoutSessionId){return}void updateCheckoutSessionAttributes({attributes:[{key:"ORDER_DUPLICATION_CONSENT",value:"1"}],checkoutSessionId:storageStore.checkoutSessionId})};e.prototype.markTheSessionAsAbandonedCart=function(){if(!storageStore.checkoutSessionId){return}void updateCheckoutSessionAttributes({attributes:[{key:"WITH_ABANDONED_CART_TOKEN",value:"1"}],checkoutSessionId:storageStore.checkoutSessionId})};e.prototype.handleCancelOrderDuplication=function(){var e;this.placedOrderInfo=null;if(this.isLegacyCheckout){var t=((e=window.Zonos.cartData)===null||e===void 0?void 0:e.storeBaseUrl)||zonosStore.onlineStoreSettings.url;if(!t){return}if(window.parent){window.parent.location.href=t}window.location.href=t;return}void this.closeDialogHandler({confirmed:true})};e.prototype.attachCheckout=function(){var e=this;var t=zonosStore.checkoutSettings.placeOrderButtonSelector;var o=zonosStore.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;log("attach checkout ".concat(t));log("attach checkout to always trigger international checkout selector: ".concat(o));if(!t&&!o&&!window.Zonos.cartData){return}var r=[t,o,"#".concat(domesticRedirectedBtnSelector),"#".concat(checkoutHiddenBtnSelector),"#".concat(checkoutHiddenInternationalBtnSelector)].filter(Boolean);var n=document.querySelectorAll(r.join(","));n.forEach((function(r){var n=r.getAttribute("data-zonos-checkout-attached");if(n){return}log("attached event to button ".concat(t),"info",{button:r});r.addEventListener("click",(function(t){return __awaiter(e,void 0,void 0,(function(){var e,n,s,i,a,c,u,l,d,h,f,m,v,g,p,z;return __generator(this,(function(S){switch(S.label){case 0:s=performance.now();i=o&&r.matches(o);a=r.matches("#".concat(checkoutHiddenInternationalBtnSelector));c=r.matches("#".concat(domesticRedirectedBtnSelector))||r.matches("#".concat(checkoutHiddenBtnSelector));if(!window.Zonos.isLegacyCheckout&&(!isShippableCountry()||isDisabledCountry())&&!i&&!a&&!c){return[2]}t.preventDefault();t.stopPropagation();log("zonos checkout button clicked");return[4,this.checkStripePaymentIntentStatus({triggeredButton:t.target})];case 1:u=S.sent().shouldAllowOrder;if(!u){return[2]}if(!window.Zonos.logIntervalId){window.Zonos.logIntervalId=setInterval((function(){void sendBulkLoadTimeApiLog()}),2e3)}if(!isTestEnabled("hosted_vs_native"))return[3,4];this.isOverlayLoading=true;return[4,this.registerTestHostedVsNative()];case 2:S.sent();return[4,this.handleHostedVsNative()];case 3:l=S.sent().redirected;this.isOverlayLoading=false;if(l){return[2]}S.label=4;case 4:stripeStore.isFetchingSession=true;this.open=true;S.label=5;case 5:S.trys.push([5,8,,9]);return[4,this.buildCartAndInit()];case 6:d=S.sent();if(!d){throw new Error("Error building cart")}(e=window.opener)===null||e===void 0?void 0:e.postMessage({checkoutSessionId:storageStore.checkoutSessionId,type:"zonos-checkout-session-update"},"*");cartStoreStartCheckoutInterval({isPreview:this.preview,sessionTimeout:CHECKOUT_SESSION_TIMEOUT});submitGtag({event:"zonos-checkout-start",metadata:{checkoutSessionId:storageStore.checkoutSessionId}});h=storageStore.checkoutSessionId;void trackConversionEvent({checkoutSessionId:h,eventName:"checkout_open"});return[4,isStoreDiscountEnabled()];case 7:f=S.sent().enabled;cartStore.shouldHideDiscountInput=!f;this.handleOrderDuplication();if(window.Zonos.isLegacyCheckout){void sendLoadCheckoutFacadeLog()}else{m=performance.now();v=m-s;void sendLoadNativeCheckoutLog({loadTime:v})}this.recordCheckoutInfo();g=!!getAbandonedCartRenewTokenValue();if(g){this.markTheSessionAsAbandonedCart()}return[3,9];case 8:p=S.sent();if(p instanceof Error){z=p.message;if(z==="Cart is expired."){this.isCartExpired=true}}stripeStore.isFetchingSession=false;logError(p);if(this.isCartExpired){stripeStore.isFetchingSession=true;return[2]}void sendErrorLog({endpoint:"Error creating Checkout",errors:[p instanceof Error?p.toString():"Unknown error"],metadata:{allLogs:allLogs,cartId:window.Zonos.cartId,checkoutSessionBody:getCheckoutSessionBody(),href:window.location.href,storeBaseUrl:((n=window.Zonos.cartData)===null||n===void 0?void 0:n.storeBaseUrl)||zonosStore.onlineStoreSettings.url}});cartStoreUpdateToErrorState({messages:[translate("There's been an error creating your checkout session. Please reload and try again or contact support if the error persists")],title:translate("Error creating Checkout")});return[3,9];case 9:return[2]}}))}))}),{capture:true,passive:false});if(!zonosStore.checkoutSettings.disablePlaceOrderButtonActivation){r.removeAttribute("disabled")}r.setAttribute("data-zonos-checkout-attached","true");if(r.matches("#".concat(domesticRedirectedBtnSelector))){r.dispatchEvent(createCustomEvent("click"));stripeStoreCleanupDomesticShippingSession();r.remove()}if(r.matches("#".concat(checkoutHiddenBtnSelector))){r.dispatchEvent(createCustomEvent("click"));r.remove()}}))};e.prototype.appearanceSettingsOverrideChanged=function(){if(!this.appearanceSettingsOverride){return}void this.applyStripeTheme()};e.prototype.useShippingDataFromCreateCartId=function(e){if(!e){return}log("shipping data from createCartId result","info",Object.entries(e));var t=e.customerAddress1,o=e.customerAddress2,r=e.customerCity,n=e.customerCountry,s=e.customerEmail,i=e.customerFirstName,a=e.customerLastName,c=e.customerName,u=e.customerPhone,l=e.customerState,d=e.customerZip;var h=new URLSearchParams(window.location.search);var f=n||getZCountryUrlParam(h)||localizationStore.selectedCountryCode;this.applyPrefillAddress({customerAddress1:t,customerAddress2:o,customerCity:r,customerCountry:f,customerEmail:s,customerFirstName:i,customerLastName:a,customerName:c,customerPhone:u,customerState:l,customerZip:d})};e.prototype.useLegacyQueryParams=function(){var e=new URLSearchParams(window.location.search);log("legacy urlParams","info",Object.fromEntries(e.entries()));var t=function(t){var o=e.get(t);if(!o||o==="undefined"){return null}return o};var o=getZCountryUrlParam(e)||localizationStore.selectedCountryCode;var r=t("customerCity");var n=t("customerEmail");var s=t("customerAddress1");var i=t("customerAddress2");var a=t("customerName");var c=t("customerFirstName");var u=t("customerLastName");var l=t("customerPhone");var d=t("customerZip");var h=t("customerState");this.applyPrefillAddress({customerAddress1:s,customerAddress2:i,customerCity:r,customerCountry:o,customerEmail:n,customerFirstName:c,customerLastName:u,customerName:a,customerPhone:l,customerState:h,customerZip:d})};e.prototype.applyPrefillAddress=function(e){var t=e.customerAddress1||"";var o=e.customerCountry||"";var r=e.customerAddress2||"";var n=e.customerCity||"";var s=e.customerEmail||"";var i=e.customerFirstName&&e.customerLastName?"".concat(e.customerFirstName," ").concat(e.customerLastName):e.customerName||"";var a=e.customerPhone||"";var c=e.customerZip||"";var u=e.customerState||"";if(!t||!i||!a||!o){log("Missing required query params so it can not be prefilled","info",[!t&&"line1",!i&&"name",!a&&"phone",!o&&"country"].filter(Boolean).join(", "));return}if(o&&localizationStore.shippingZoneCountries&&!(o in localizationStore.shippingZoneCountries)){log('Country "'.concat(o,'" is not in the shipping zone, so it can not be prefilled'),"warn");return}this.defaultAddressParams=[{address:{city:n||"",country:o,line1:t,line2:r,postal_code:c,state:u},email:s,name:i,phone:a}];log("Prefill address applied","info",{prefillAddress:this.defaultAddressParams,providedAddress:e})};e.prototype.overrideStagingModeChanged=function(){cartStore.isStagingMode=!!this.overrideStagingMode};e.prototype.init=function(){return __awaiter(this,void 0,void 0,(function(){var e;var t=this;return __generator(this,(function(o){stripeStore.stripe=window.Zonos.stripe;this.stripe=window.Zonos.stripe;cartStore.isStagingMode=getIsStagingMode();if(typeof this.overrideStagingMode!=="undefined"){cartStore.isStagingMode=this.overrideStagingMode}watchImmediateBigcommerceDomesticCheckoutRedirect({domesticRedirectedBtnSelector:domesticRedirectedBtnSelector,onInternationalCheckoutSelected:function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:this.detectedDomesticCheckoutDialogOpen=true;return[4,new Promise((function(e){return setTimeout(e,2e3)}))];case 1:e.sent();return[2]}}))}))},onShippingAddressSessionFound:function(e){t.defaultAddress=[{address:{city:e.city,country:e.countryCode,line1:e.address1,line2:e.address2,postal_code:e.postalCode,state:e.state},email:"",name:"".concat(e.firstName," ").concat(e.lastName),phone:e.phone}]}});if(window.Zonos){this.useLegacyQueryParams()}e=setInterval((function(){stripeStore.stripe=window.Zonos.stripe;t.stripe=window.Zonos.stripe;if(!t.stripe){log("waiting for stripe to be loaded");return}if(t.storybookPaymentStatusOverride){clearInterval(e);return}log("init checkout");if(t.preview||t.forceDialogOpen){void t.buildCartAndInit()}else if(window.Zonos.isLegacyCheckout){t.attachCheckout()}else if(window){t.attachCheckout();var o=new MutationObserver((function(){t.attachCheckout()}));o.observe(document.body,{childList:true,subtree:true})}clearInterval(e)}),50);setTimeout((function(){clearInterval(e)}),1e4);return[2]}))}))};e.prototype.setToFinishStep=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){cartStore.step="finish";this.storybookPaymentStatusOverride=e;return[2]}))}))};e.prototype.mockCheckoutSession=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){cartStoreSetCheckoutSession(e);return[2]}))}))};e.prototype.triggerCheckoutInternational=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=document.querySelector("#".concat(checkoutHiddenInternationalBtnSelector));if(e){e.dispatchEvent(createCustomEvent("click"))}return[2]}))}))};e.prototype.handleCustomerInfoContinue=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,r,n,s,i,a;var c=this;return __generator(this,(function(u){switch(u.label){case 0:submitGtag({event:"zonos-checkout-customer-info",metadata:{checkoutSessionId:storageStore.checkoutSessionId}});n=storageStore.checkoutSessionId;void trackConversionEvent({checkoutSessionId:n,eventName:"checkout_customerInfoCompleted"});this.submitLoading=true;return[4,stripeStorePrefetchLandedCost()];case 1:s=u.sent().isRequestNotReady;if(s&&cartStore.addressFormRenderType==="stripe"){void sendErrorLog({endpoint:"ADDRESS_NOT_READY_AT_CUSTOMER_INFO_CONTINUE",errors:["Address not ready at customer info continue"],metadata:{address:(t=(e=stripeStore.stripeAddressEventData)===null||e===void 0?void 0:e.value)===null||t===void 0?void 0:t.address,billingAddress:(r=(o=stripeStore.stripeBillingAddressEventData)===null||o===void 0?void 0:o.value)===null||r===void 0?void 0:r.address,cartId:window.Zonos.cartId}})}i=function(e){if(cartStore.step!=="customer-info"){clearInterval(e);return}if(!stripeStore.isFetchingLandedCost){if(cartStore.landedCostData){void paypalInitScript({currency:cartStore.currency});cartStoreNextStep()}c.submitLoading=false;if(e){clearInterval(e)}}};i();a=setInterval((function(){i(a)}),20);setTimeout((function(){clearInterval(a)}),1e4);return[2]}}))}))};e.prototype.handleShippingContinue=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){cartStoreNextStep();return[2]}))}))};e.prototype.handleInventoryCheckDialogConfirm=function(){cartStore.inventoryCheckErrorMessage=null;if(!this.isLegacyCheckout){void this.closeDialogHandler({confirmed:true})}};e.prototype.handleCartExpiredDialogConfirm=function(){var e;this.isCartExpired=false;if(this.isLegacyCheckout){var t=(e=window.Zonos.cartData)===null||e===void 0?void 0:e.storeBaseUrl;if(!t){return}if(window.parent){window.parent.location.href=t}window.location.href=t;return}if(window.parent){window.parent.location.href=window.location.href}window.location.reload()};e.prototype.handleStripePaymentContinue=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,r,n;return __generator(this,(function(s){switch(s.label){case 0:e=stripeStore.checkoutSettlementCurrency==="USD";if(e&&stripeStore.shouldRenderPayInUsdButton&&!this.payInUsdConfirmDialogOpen){this.payInUsdConfirmDialogOpen=true;return[2]}this.payInUsdConfirmDialogOpen=false;paypalStore.paypalErrorMessage=null;stripeStore.hasPaymentError=false;this.submitLoading=true;cartStore.inventoryCheckErrorMessage=null;return[4,stripeStoreUpdateCheckoutSessionBaseCurrency()];case 1:t=s.sent();if(!t){stripeStore.hasPaymentError=true;stripeStore.customErrorMessage=translate("Unable to complete payment in [currency]. Please try again or select a different currency. If the issue persists, contact our support team for assistance.",{currency:stripeStore.checkoutSettlementCurrency});this.submitLoading=false;return[2]}s.label=2;case 2:s.trys.push([2,4,,5]);o=cartStore;return[4,stripeStoreHandleInventoryCheck()];case 3:o.inventoryCheckErrorMessage=s.sent();return[3,5];case 4:r=s.sent();cartStore.inventoryCheckErrorMessage=translate("Unable to check inventory. Please try again.");return[3,5];case 5:if(cartStore.inventoryCheckErrorMessage){this.submitLoading=false;return[2]}s.label=6;case 6:s.trys.push([6,8,,9]);return[4,stripeStoreConfirmPayment()];case 7:s.sent();cartStoreNextStep();cartStoreClearCheckoutInterval();return[3,9];case 8:n=s.sent();logError(n);submitGtag({event:"zonos-checkout-payment-fail",metadata:{checkoutSessionId:storageStore.checkoutSessionId}});stripeStore.hasPaymentError=true;if(stripeStore.shouldInventoryRefund){void stripeStoreHandleInventoryRefund();stripeStore.shouldInventoryRefund=false}return[3,9];case 9:this.submitLoading=false;return[2]}}))}))};e.prototype.handleFinishClick=function(){return __awaiter(this,void 0,void 0,(function(){var e,t,o,r;return __generator(this,(function(n){switch(n.label){case 0:stripeStoreReset();if(!this.preview)return[3,2];cartStore.step="customer-info";return[4,this.init()];case 1:n.sent();return[2];case 2:cartStoreReset();if(window.Zonos.isLegacyCheckout&&window.Zonos.cartData){e=window.Zonos.cartData.storeBaseUrl||zonosStore.onlineStoreSettings.url;if(window.parent){window.parent.location.href=e}window.location.href=e;return[2]}t=window.location.href;o=t.split("?")[0];this.open=false;r=window.location.hostname.includes("dashboard.zonos.com");if(!r){window.history.replaceState(window.history.state,document.title,o);window.location.reload()}return[2]}}))}))};e.prototype.handleWindowResize=function(){this.isMobile=isCheckoutMobile(this.mobile);void this.applyStripeTheme();log("mobile: ".concat(this.isMobile))};e.prototype.handleMobileChange=function(){this.isMobile=isCheckoutMobile(this.mobile);void this.applyStripeTheme();log("mobile: ".concat(this.isMobile))};e.prototype.handleAppearanceSettingsOverrideChange=function(){var e;if((e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.theme){this.appearanceSettingsOverride.theme=getZonosStoreTheme(this.appearanceSettingsOverride.theme)}};e.prototype.handleAddressChange=function(){stripeStoreReset()};e.prototype.handleCustomerProfileChange=function(){var e,t;if(!this.customerProfile){log("No customer profile","info");this.defaultCustomerProfileAddress=[];return}log("Customer profile found","info",{customerProfile:this.customerProfile});this.defaultCustomerProfileAddress=((t=(e=stripeStore.customerProfile)===null||e===void 0?void 0:e.locations)===null||t===void 0?void 0:t.map((function(e){var t;return{address:{city:e.locality,country:e.countryCode,line1:e.line1,line2:e.line2||"",postal_code:e.postalCode,state:e.administrativeArea},email:e.email||((t=stripeStore.customerProfile)===null||t===void 0?void 0:t.email)||"",name:e.name||"",phone:e.phone||""}})))||[]};e.prototype.handleClientSecretChange=function(){log("==== Client secret changed","info",{clientSecret:this.clientSecret,stripeCustomerSessionClientSecret:this.stripeCustomerSessionClientSecret});void this.applyStripeTheme()};e.prototype.handleOpenChange=function(){var e="data-zonos-overflow-origin";var t=document.body;var o=document.documentElement;if(this.open){window.Zonos.openHelloDialog(false);if(t.style.overflow){t.setAttribute(e,t.style.overflow)}t.style.overflow="hidden";if(o.style.overflow){o.setAttribute(e,o.style.overflow)}o.style.overflow="hidden"}else{this.stripeCustomerSessionClientSecret=null;var r=t.getAttribute(e);var n=o.getAttribute(e);if(r){t.removeAttribute(e);t.style.overflow=r}else{t.style.removeProperty("overflow")}if(n){o.removeAttribute(e);o.style.overflow=n}else{o.style.removeProperty("overflow")}}};e.prototype.componentWillLoad=function(){var e=this;void this.init();this.isMobile=isCheckoutMobile(this.mobile);this.isIframed=window.self!==window.top;log("iframed: ".concat(this.isIframed));if(window.Zonos.isLegacyCheckout){this.captureParamsRedirectedForVariantTest()}this.handleAppearanceSettingsOverrideChange();this.storeUnsubscribeList=[localizationStoreOnChange("selectedLocale",(function(){void e.applyStripeTheme()})),cartStoreOnChange("selectedShippingOption",(function(){var t,o,r,n;var s=cartStore.selectedShippingOption;if(((t=zonosStore.genericSettings)===null||t===void 0?void 0:t.shouldFedExShippingConsentForCanadianShopper)&&((r=(o=s===null||s===void 0?void 0:s.shippingProfile)===null||o===void 0?void 0:o.serviceLevel.code)===null||r===void 0?void 0:r.toLowerCase().startsWith("fedex."))&&((n=stripeStore.stripeAddressEventData)===null||n===void 0?void 0:n.value.address.country)==="CA"){e.shouldShowFedexShippingConsentDialog=true}}))];this.initializeTestKeys();window.addEventListener("message",this.handleHostedOpenWindowCallback);log("mobile: ".concat(this.isMobile))};e.prototype.disconnectedCallback=function(){stripeStoreReset();cartStoreReset();this.storeUnsubscribeList.forEach((function(e){return e()}));window.removeEventListener("message",this.handleHostedOpenWindowCallback)};e.prototype.render=function(){var e=this;var t,o,r,n;this.customerProfile=stripeStore.customerProfile;this.clientSecret=stripeStore.clientSecret;if(stripeStore.stripeCustomerSessionClientSecret){this.stripeCustomerSessionClientSecret=stripeStore.stripeCustomerSessionClientSecret}var s=cartStore.step!=="finish"&&cartStore.step!=="error"&&!stripeStore.stripeElements||stripeStore.isFetchingSession;var i=mergeConfig(zonosStore.appearance,this.appearanceSettingsOverride||null),a=i.colorPrimary,c=i.colorSecondary,u=i.logoUrl,l=i.style;var d=zonosStore.appearance.zonosAttribution==="ENABLED";var f=zonosStore.appearance.theme;var m=a&&isDarkColor(a)?"DARK":"LIGHT";var v=this.isMobile?f:m;var g=!this.isMobile?c:undefined;var p=localizationStore.customMessages;var z=(t=p.find((function(e){return e.pageName==="checkout_default"})))===null||t===void 0?void 0:t.message;var S=this.getCurrentLocalePageEnum();var k=p.filter((function(e){return e.pageName===S}));var w=this.getBaseCurrencySettlementInfo();var C=function(){var t=e.preview?"".concat(u,"?timestamp=").concat(Date.now()):u;return h("div",{class:"zonos--logo"},t&&h("img",{alt:"".concat(zonosStore.organizationName," logo"),src:t}))};var y=getIsTestMode();var b=function(){var t=new URLSearchParams(window.location.search);var o=t.get("zonosQaUrl");var r=t.get("zonosDebug");var n=t.get("zonosE2ETest");var s=e.overrideStagingMode||getIsStagingMode();return h("zonos-v-stack",null,h("div",{class:"zonos--logo-wrapper"},C(),y&&h("zonos-badge",{badgeColor:"orange",size:"small"},translate("Test mode")),s&&h("zonos-badge",{badgeColor:"red",size:"small"},translate("Staging mode")),r==="1"&&h("zonos-badge",{badgeColor:"cyan",size:"small"},"debug"),o&&h("zonos-badge",{badgeColor:"purple",size:"small"},o),n&&h("zonos-badge",{badgeColor:"gray",size:"small"},"E2E Test")),h("zonos-checkout-progress-tabs",{backgroundColor:e.isMobile?"--zonos-elements-gray-0":null}),k.map((function(e){return h("zonos-custom-message",{icon:MessageIcon,message:e.message})})))};var _=function(){if(cartStore.checkoutSessionTimeoutShow){return h("zonos-rest-state",{class:"zonos--session-timeout",restStateSubtitle:translate("Your checkout session has expired. Please reload the page to continue."),restStateTitle:translate("Session timed out"),restStateType:"Warning"},h("zonos-button",{onClick:function(){return e.reloadCheckoutSession()},variant:"primary"},translate("Reload")))}return h("div",{class:"zonos--content",style:{"--zonos--border-radius":getBorderRadius({overrideBorderStyle:l})}},cartStore.step!=="finish"&&cartStore.step!=="error"&&h(Fragment,null,h("div",{class:"zonos--left","data-theme":v,style:styles({"--zonos--primary-color":!e.isMobile?a:undefined})},!e.isMobile&&b(),cartStore.step==="customer-info"&&h("zonos-customer-info",{continueLoading:e.submitLoading,defaultAddress:e.getDefaultAddress(),isMobile:e.isMobile,onContinueClicked:function(){return e.handleCustomerInfoContinue()},submitBtnColor:g}),cartStore.step==="shipping"&&h("zonos-shipping",{continueLoading:e.submitLoading,isMobile:e.isMobile,onContinueClicked:function(){return e.handleShippingContinue()},submitBtnColor:g}),cartStore.step==="payment"&&h("zonos-checkout-payment",{continueLoading:e.submitLoading,isMobile:e.isMobile,onContinueClicked:function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.handleStripePaymentContinue()];case 1:e.sent();return[2]}}))}))},submitBtnColor:g})),h("div",{class:"zonos--right","data-theme":f},e.isMobile&&b(),h("div",{class:"zonos--right-actions"},window.Zonos.showBaseForeign&&h("zonos-currency-toggle",null),!e.isLegacyCheckout&&h("zonos-button",{class:"zonos--close-button",icon:h("zonos-icon",{"aria-label":"Close checkout dialog",content:RemoveIcon}),noBackground:true,onClick:function(){return e.closeDialogHandler()}})),h("div",{class:"flex--wrapper"},h("div",{class:"zonos--wrapper"},h("zonos-review",{collapsed:e.collapseReviewMobile,mobile:e.isMobile,onClick:function(){if(!e.isMobile){return}e.collapseReviewMobile=!e.collapseReviewMobile}}),h("zonos-collapse",{collapsed:e.collapseReviewMobile&&e.isMobile},h("zonos-cart-items",null),e.isMobile&&h("zonos-v-stack",{spacing:16},h("zonos-cart-subtotal",{submitBtnColor:g}),h("zonos-custom-message",{class:"zonos--checkout-default-message",icon:MessageIcon,message:z})))),h("zonos-cart-restricted-items",null),!e.isMobile&&h("zonos-v-stack",{spacing:16},h("zonos-cart-subtotal",null),h("zonos-custom-message",{class:"zonos--checkout-default-message",icon:MessageIcon,message:z}))))),(cartStore.step==="finish"||cartStore.step==="error")&&h("div",{class:"zonos--done","data-theme":f},h("div",{class:"zonos--header"},C(),!e.isRedirectAfterOrder&&h("zonos-button",{class:"zonos--close-button",icon:h("zonos-icon",{"aria-label":"Close checkout dialog",content:RemoveIcon}),noBackground:true,onClick:function(){return e.handleFinishClick()},theme:f})),h("zonos-checkout-finish",{borderRadius:l,onCloseClick:function(){return e.handleFinishClick()},overrideNotification:cartStore.step==="error"&&!!cartStore.error?Object.assign(Object.assign({},cartStore.error),{type:"error"}):undefined,storybookForceStatus:e.storybookPaymentStatusOverride})),h("zonos-checkout-footer",{"data-theme":f,mobile:e.isMobile,slot:!e.isMobile?"dialog-footer":undefined}))};return h(Host,{class:classes(["zonos--checkout zonos--elements",cartStore.step==="payment"&&"zonos--processing-payment",d&&"has-footer",this.preview&&"preview",this.isMobile&&"mobile",this.isIframed&&"iframed",this.hiddenMode&&"hidden-mode"])},this.preview?_():h("zonos-dialog",{borderStyle:l,class:"zonos--checkout-dialog","data-theme":f,height:"980px",isLoading:s,mobile:this.isMobile,noBodyPadding:true,noBorder:true,noClickOutside:true,noCloseButton:true,onCloseDialog:function(){return e.closeDialogHandler()},open:this.open,width:"1200px"},_()),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:function(){e.confirmDialogOpen=false},onConfirmClicked:function(){return e.closeDialogHandler({confirmed:true})}}),h("zonos-confirm-dialog",{class:"zonos--order-duplication-dialog",dialogCancelBtnText:translate("Return to merchant site"),dialogConfirmBtnText:translate("Proceed with order"),dialogIntent:"warn",dialogOpen:!!this.placedOrderInfo,dialogSubtitle:((o=this.placedOrderInfo)===null||o===void 0?void 0:o.zonosOrderNumber)?translate("It looks like you placed an order recently ([date] at [time]) under order number #[orderNumber]. Check your email for the order confirmation. Are you sure you want to place another order?",{date:this.formatDate(this.placedOrderInfo.time),orderNumber:this.placedOrderInfo.zonosOrderNumber,time:this.formatTime(this.placedOrderInfo.time)}):translate("It looks like you placed an order recently ([date] at [time]). Check your email for the order confirmation. Are you sure you want to place another one?",{date:this.formatDate(((r=this.placedOrderInfo)===null||r===void 0?void 0:r.time)||null),time:this.formatTime(((n=this.placedOrderInfo)===null||n===void 0?void 0:n.time)||null)}),dialogTitle:translate("Are you sure?"),dialogWidth:530,onCancelClicked:function(){e.handleCancelOrderDuplication()},onConfirmClicked:function(){e.confirmProceedWithOrderDuplication()}}),h("zonos-confirm-dialog",{class:"zonos--fedex-shipping-dialog",dialogConfirmBtnText:translate("Confirm"),dialogIntent:"info",dialogOpen:!!this.shouldShowFedexShippingConsentDialog,dialogSubtitle:h(Fragment,null,translate("If you select FedEx Ground as your shipping option, you'll need to complete a General Agency Agreement (GAA) after placing your order. This form allows FedEx to clear your package through Canadian customs on your behalf. FedEx will contact you directly—usually by email or phone—with instructions on how to complete the GAA. To avoid delays or the return of your package, please respond promptly to their request."),h("zonos-link",{href:"https://ftn.fedex.com/us/assets/docs/One-Time_GAA.pdf",target:"_blank"},translate("View GAA Form."))),dialogTitle:translate("Fedex Shipping Procedure"),dialogType:"alert",dialogWidth:500,onConfirmClicked:function(){return e.shouldShowFedexShippingConsentDialog=false}}),h("zonos-confirm-dialog",{class:"zonos--inventory-check-failure-dialog",dialogConfirmBtnText:translate("Return to cart"),dialogIntent:"danger",dialogOpen:!!cartStore.inventoryCheckErrorMessage,dialogSubtitle:cartStore.inventoryCheckErrorMessage,dialogTitle:translate("Couldn't place order"),dialogType:"alert",onConfirmClicked:function(){return e.handleInventoryCheckDialogConfirm()}}),w&&h("zonos-confirm-dialog",{class:"zonos--pay-in-usd-dialog",dialogCancelBtnText:translate("Cancel"),dialogConfirmBtnText:translate("Pay [orderTotal]",{orderTotal:currencyFormat({amount:w.settlementAmount,currency:"USD"})}),dialogIntent:"warn",dialogOpen:this.payInUsdConfirmDialogOpen,dialogSubtitle:translate("By paying in USD, your card will be charged directly with no currency conversion. However, using a non-USD based card may result in additional currency conversion fees at the bank level."),dialogTitle:translate("Pay in USD (United States Dollar)?"),dialogType:"confirm",dialogWidth:480,onCancelClicked:function(){e.payInUsdConfirmDialogOpen=false},onConfirmClicked:function(){return e.handleStripePaymentContinue()}}),h("zonos-confirm-dialog",{class:"zonos--shopping-cart-expired-dialog",dialogConfirmBtnText:translate("OK"),dialogIntent:"danger",dialogOpen:this.isCartExpired,dialogSubtitle:translate("You are being sent back to the shop to re-add items to your cart."),dialogTitle:translate("Shopping cart expired"),dialogType:"alert",onConfirmClicked:function(){return e.handleCartExpiredDialogConfirm()}}),h("zonos-loading-overlay",{open:this.isOverlayLoading}))};Object.defineProperty(e,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{appearanceSettingsOverride:["appearanceSettingsOverrideChanged","handleAppearanceSettingsOverrideChange"],overrideStagingMode:["overrideStagingModeChanged"],mobile:["handleMobileChange"],defaultAddress:["handleAddressChange"],customerProfile:["handleCustomerProfileChange"],clientSecret:["handleClientSecretChange"],stripeCustomerSessionClientSecret:["handleClientSecretChange"],open:["handleOpenChange"]}},enumerable:false,configurable:true});return e}();ZonosCheckout.style=ZonosCheckoutStyle0;export{ZonosCheckout as zonos_checkout};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host,a as getElement}from"./index-0bbe9693.js";import{f as zonosStoreFontFamily}from"./zonosStore-b434e436.js";import"./VarianceTest-572cecf5.js";var zonosCollapseCss=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";var ZonosCollapseStyle0=zonosCollapseCss;var ZonosCollapse=function(){function t(t){registerInstance(this,t);this.collapsed=false;this.collapseSize=0;this.height=this.el.scrollHeight;this.iframe=null}t.prototype.getElementHeight=function(){var t="".concat(this.height,"px");var o="".concat(this.collapseSize,"px");return this.collapsed?o:t};t.prototype.componentDidLoad=function(){this.height=this.el.scrollHeight};t.prototype.componentDidRender=function(){var t=this;var o,e,s;this.iframe=((o=this.el.shadowRoot)===null||o===void 0?void 0:o.querySelector("iframe"))||null;(s=(e=this.iframe)===null||e===void 0?void 0:e.contentWindow)===null||s===void 0?void 0:s.addEventListener("resize",(function(){if(!t.iframe){return}t.height=parseFloat(getComputedStyle(t.iframe).height)}))};t.prototype.render=function(){var t=this;if(!this.collapsed){setTimeout((function(){if(!t.collapsed){t.el.style.overflow="visible"}}),300)}else{this.el.style.overflow="hidden"}return h(Host,{key:"2a96e5ed214d93d07057eb7958a26e8a7b286ce8",class:"zonos--elements zonos--collapse",style:{"--zonos--font-family":zonosStoreFontFamily(),height:this.getElementHeight()}},h("div",{key:"d2a039a3cde3c54bd560774d91cf36924311e251"},h("iframe",{key:"a2b1494c32fcd8a467e23ae6733fd341220a9020",class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),h("slot",{key:"5dd47c6e903a01824ed04a9512b847180e67f667"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();ZonosCollapse.style=ZonosCollapseStyle0;export{ZonosCollapse as zonos_collapse};
1
+ import{r as registerInstance,h,a as Host,g as getElement}from"./index-cfd394c8.js";import{f as zonosStoreFontFamily}from"./zonosStore-5242a58d.js";import"./VarianceTest-572cecf5.js";var zonosCollapseCss=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";var ZonosCollapseStyle0=zonosCollapseCss;var ZonosCollapse=function(){function t(t){registerInstance(this,t);this.collapsed=false;this.collapseSize=0;this.height=this.el.scrollHeight;this.iframe=null}t.prototype.getElementHeight=function(){var t="".concat(this.height,"px");var o="".concat(this.collapseSize,"px");return this.collapsed?o:t};t.prototype.componentDidLoad=function(){this.height=this.el.scrollHeight};t.prototype.componentDidRender=function(){var t=this;var o,e,s;this.iframe=((o=this.el.shadowRoot)===null||o===void 0?void 0:o.querySelector("iframe"))||null;(s=(e=this.iframe)===null||e===void 0?void 0:e.contentWindow)===null||s===void 0?void 0:s.addEventListener("resize",(function(){if(!t.iframe){return}t.height=parseFloat(getComputedStyle(t.iframe).height)}))};t.prototype.render=function(){var t=this;if(!this.collapsed){setTimeout((function(){if(!t.collapsed){t.el.style.overflow="visible"}}),300)}else{this.el.style.overflow="hidden"}return h(Host,{key:"2a96e5ed214d93d07057eb7958a26e8a7b286ce8",class:"zonos--elements zonos--collapse",style:{"--zonos--font-family":zonosStoreFontFamily(),height:this.getElementHeight()}},h("div",{key:"d2a039a3cde3c54bd560774d91cf36924311e251"},h("iframe",{key:"a2b1494c32fcd8a467e23ae6733fd341220a9020",class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),h("slot",{key:"5dd47c6e903a01824ed04a9512b847180e67f667"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();ZonosCollapse.style=ZonosCollapseStyle0;export{ZonosCollapse as zonos_collapse};
@@ -1 +1 @@
1
- var __spreadArray=this&&this.__spreadArray||function(o,t,s){if(s||arguments.length===2)for(var e=0,a=t.length,n;e<a;e++){if(n||!(e in t)){if(!n)n=Array.prototype.slice.call(t,0,e);n[e]=t[e]}}return o.concat(n||Array.prototype.slice.call(t))};import{r as registerInstance,d as getAssetPath,h,H as Host}from"./index-0bbe9693.js";import{d as cartStore}from"./cart-ba8f3890.js";import{c as cleanHtmlMarkdown}from"./cleanHtmlMarkdown-b5b18743.js";import{f as zonosStoreFontFamily}from"./zonosStore-b434e436.js";import{c as classes}from"./classes-0d95c529.js";import{s as styles}from"./styles-6fc2fad9.js";import"./localization-853b48a9.js";import"./handleFetch-a844cac1.js";import"./VarianceTest-572cecf5.js";import"./isDarkColor-9ddd90cc.js";import"./getBorderRadius-877f6389.js";var zonosCollectCartItemsCss=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:first-child{width:48px}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px;-webkit-box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);border-radius:10px}";var ZonosCollectCartItemsStyle0=zonosCollectCartItemsCss;var ZonosCollectCartItems=function(){function o(o){registerInstance(this,o);this.errorImages=[]}o.prototype.render=function(){var o=this;var t=getAssetPath("./assets/empty-item.jpeg");var s=cartStore.items.filter((function(o){return!o.isRestricted}));return h(Host,{key:"2f5507537492851b67a5204ab68ce2f938899f23",class:"zonos--collect-cart-items zonos--elements"},h("table",{key:"e648cda9d4c111ecde60291f420178e4e4230b50",class:"zonos--cart-table"},h("tbody",{key:"b266291e61d0df5c0ea3ae8240a3bfb6147edbb4"},s.map((function(s){var e=s.imageUrl;var a=cleanHtmlMarkdown(s.name);return h("tr",{class:"zonos--collect-cart-item"},h("td",{class:"zonos--column zonos--cart-item-image"},e&&!o.errorImages.includes(e)?h("img",{alt:s.name,onError:function(){o.errorImages=__spreadArray(__spreadArray([],o.errorImages,true),[e],false)},src:s.imageUrl,style:{"min-width":"40px"},width:40}):h("img",{alt:s.name,src:t,width:40})),h("td",{class:"zonos--column zonos--cart-item-name"},h("div",null,a.map((function(o){return h("zonos-text",{type:"semiBoldLabel"},o)})))))})))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCollectCartItems.style=ZonosCollectCartItemsStyle0;var zonosHStackCss=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--spacing, 24px)}";var ZonosHStackStyle0=zonosHStackCss;var HStack=function(){function o(o){registerInstance(this,o);this.spacing=24}o.prototype.render=function(){return h(Host,{key:"443aa77bfbf4c0c84c33d0ef7652caec001968c3",style:{"--spacing":"".concat(this.spacing,"px"),"--zonos--font-family":zonosStoreFontFamily()}},h("slot",{key:"3366df34b9f0f3549e556cff1e47878c2f6cd124"}))};return o}();HStack.style=ZonosHStackStyle0;var zonosSkeletonCss=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block;background:var(--zonos-elements-gray-200);border-radius:var(--zonos-elements-radius-12);width:var(--zonos--skeleton-width);height:var(--zonos--skeleton-height);min-height:var(--zonos--skeleton-height);max-width:100%}";var ZonosSkeletonStyle0=zonosSkeletonCss;var ZonosSkeleton=function(){function o(o){registerInstance(this,o);this.skeletonWidth="100%";this.skeletonHeight="14px"}o.prototype.render=function(){return h(Host,{key:"096e505180d901c1523567f89cdbcca7869a0895",class:classes(["zonos--elements zonos--skeleton"]),style:styles({"--zonos--skeleton-height":this.skeletonHeight,"--zonos--skeleton-width":this.skeletonWidth})})};return o}();ZonosSkeleton.style=ZonosSkeletonStyle0;export{ZonosCollectCartItems as zonos_collect_cart_items,HStack as zonos_h_stack,ZonosSkeleton as zonos_skeleton};
1
+ var __spreadArray=this&&this.__spreadArray||function(o,t,s){if(s||arguments.length===2)for(var e=0,a=t.length,n;e<a;e++){if(n||!(e in t)){if(!n)n=Array.prototype.slice.call(t,0,e);n[e]=t[e]}}return o.concat(n||Array.prototype.slice.call(t))};import{r as registerInstance,e as getAssetPath,h,a as Host}from"./index-cfd394c8.js";import{d as cartStore}from"./cart-efb30253.js";import{c as cleanHtmlMarkdown}from"./cleanHtmlMarkdown-5f7856f2.js";import{f as zonosStoreFontFamily}from"./zonosStore-5242a58d.js";import{c as classes}from"./classes-0d95c529.js";import{s as styles}from"./styles-6fc2fad9.js";import"./localization-c1aff677.js";import"./handleFetch-a844cac1.js";import"./VarianceTest-572cecf5.js";import"./isDarkColor-3537021b.js";import"./getBorderRadius-c21a42e5.js";var zonosCollectCartItemsCss=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:first-child{width:48px}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px;-webkit-box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);border-radius:10px}";var ZonosCollectCartItemsStyle0=zonosCollectCartItemsCss;var ZonosCollectCartItems=function(){function o(o){registerInstance(this,o);this.errorImages=[]}o.prototype.render=function(){var o=this;var t=getAssetPath("./assets/empty-item.jpeg");var s=cartStore.items.filter((function(o){return!o.isRestricted}));return h(Host,{key:"2f5507537492851b67a5204ab68ce2f938899f23",class:"zonos--collect-cart-items zonos--elements"},h("table",{key:"e648cda9d4c111ecde60291f420178e4e4230b50",class:"zonos--cart-table"},h("tbody",{key:"b266291e61d0df5c0ea3ae8240a3bfb6147edbb4"},s.map((function(s){var e=s.imageUrl;var a=cleanHtmlMarkdown(s.name);return h("tr",{class:"zonos--collect-cart-item"},h("td",{class:"zonos--column zonos--cart-item-image"},e&&!o.errorImages.includes(e)?h("img",{alt:s.name,onError:function(){o.errorImages=__spreadArray(__spreadArray([],o.errorImages,true),[e],false)},src:s.imageUrl,style:{"min-width":"40px"},width:40}):h("img",{alt:s.name,src:t,width:40})),h("td",{class:"zonos--column zonos--cart-item-name"},h("div",null,a.map((function(o){return h("zonos-text",{type:"semiBoldLabel"},o)})))))})))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCollectCartItems.style=ZonosCollectCartItemsStyle0;var zonosHStackCss=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--spacing, 24px)}";var ZonosHStackStyle0=zonosHStackCss;var HStack=function(){function o(o){registerInstance(this,o);this.spacing=24}o.prototype.render=function(){return h(Host,{key:"443aa77bfbf4c0c84c33d0ef7652caec001968c3",style:{"--spacing":"".concat(this.spacing,"px"),"--zonos--font-family":zonosStoreFontFamily()}},h("slot",{key:"3366df34b9f0f3549e556cff1e47878c2f6cd124"}))};return o}();HStack.style=ZonosHStackStyle0;var zonosSkeletonCss=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block;background:var(--zonos-elements-gray-200);border-radius:var(--zonos-elements-radius-12);width:var(--zonos--skeleton-width);height:var(--zonos--skeleton-height);min-height:var(--zonos--skeleton-height);max-width:100%}";var ZonosSkeletonStyle0=zonosSkeletonCss;var ZonosSkeleton=function(){function o(o){registerInstance(this,o);this.skeletonWidth="100%";this.skeletonHeight="14px"}o.prototype.render=function(){return h(Host,{key:"096e505180d901c1523567f89cdbcca7869a0895",class:classes(["zonos--elements zonos--skeleton"]),style:styles({"--zonos--skeleton-height":this.skeletonHeight,"--zonos--skeleton-width":this.skeletonWidth})})};return o}();ZonosSkeleton.style=ZonosSkeletonStyle0;export{ZonosCollectCartItems as zonos_collect_cart_items,HStack as zonos_h_stack,ZonosSkeleton as zonos_skeleton};