@zonos/elements 1.3.109 → 1.3.110

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 (232) hide show
  1. package/dist/cjs/{cart-d25b699a.js → cart-a3eab220.js} +235 -75
  2. package/dist/cjs/createCustomEvent-3e982e57.js +16 -0
  3. package/dist/cjs/index.cjs.js +7 -7
  4. package/dist/cjs/loader.cjs.js +1 -1
  5. package/dist/cjs/{paypal-fd423375.js → paypal-ca479c4b.js} +1 -1
  6. package/dist/cjs/zonos-address_7.cjs.entry.js +9 -9
  7. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  8. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  9. package/dist/cjs/zonos-card.cjs.entry.js +4 -4
  10. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +126 -104
  11. package/dist/cjs/zonos-checkout.cjs.entry.js +6 -6
  12. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  13. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  14. package/dist/cjs/zonos-controller.cjs.entry.js +2 -2
  15. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-country-select_4.cjs.entry.js +9 -9
  17. package/dist/cjs/zonos-elements.cjs.js +1 -1
  18. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
  19. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  20. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  21. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  22. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  24. package/dist/cjs/zonos-notification_3.cjs.entry.js +5 -5
  25. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  27. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  28. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +3 -0
  29. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +108 -86
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +2 -2
  33. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  34. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  35. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  36. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  37. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  38. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  39. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  40. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  41. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  42. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  43. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  44. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  45. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  46. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  47. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  48. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  49. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  50. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  51. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  52. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  53. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  54. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  55. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  56. package/dist/collection/components/main/zonos-controller.js +1 -1
  57. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  58. package/dist/collection/components/store/checkout/stripe.js +11 -1
  59. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -3
  60. package/dist/collection/components/store/translationStore/strings.base.js +9 -3
  61. package/dist/collection/components/store/translationStore/strings.chinese.js +10 -4
  62. package/dist/collection/components/store/translationStore/strings.danish.js +10 -4
  63. package/dist/collection/components/store/translationStore/strings.dutch.js +10 -4
  64. package/dist/collection/components/store/translationStore/strings.french.js +9 -3
  65. package/dist/collection/components/store/translationStore/strings.german.js +10 -4
  66. package/dist/collection/components/store/translationStore/strings.hebrew.js +10 -4
  67. package/dist/collection/components/store/translationStore/strings.indonesian.js +10 -4
  68. package/dist/collection/components/store/translationStore/strings.italian.js +10 -4
  69. package/dist/collection/components/store/translationStore/strings.japanese.js +10 -4
  70. package/dist/collection/components/store/translationStore/strings.korean.js +10 -4
  71. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -3
  72. package/dist/collection/components/store/translationStore/strings.polish.js +9 -3
  73. package/dist/collection/components/store/translationStore/strings.portuguese.js +10 -4
  74. package/dist/collection/components/store/translationStore/strings.russian.js +10 -4
  75. package/dist/collection/components/store/translationStore/strings.spanish.js +10 -4
  76. package/dist/collection/components/store/translationStore/strings.swedish.js +10 -4
  77. package/dist/collection/components/store/translationStore/strings.turkish.js +10 -4
  78. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -3
  79. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  80. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  81. package/dist/collection/components/stripe/zonos-payment/zonos-payment.css +3 -0
  82. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  83. package/dist/esm/{cart-911ba5dd.js → cart-163f4dd9.js} +235 -76
  84. package/dist/esm/createCustomEvent-31a792d3.js +13 -0
  85. package/dist/esm/index.js +7 -7
  86. package/dist/esm/loader.js +1 -1
  87. package/dist/esm/{paypal-04a10fc2.js → paypal-77e8eef2.js} +1 -1
  88. package/dist/esm/zonos-address_7.entry.js +9 -9
  89. package/dist/esm/zonos-badge.entry.js +3 -3
  90. package/dist/esm/zonos-button_3.entry.js +3 -3
  91. package/dist/esm/zonos-card.entry.js +4 -4
  92. package/dist/esm/zonos-cart-items_13.entry.js +125 -103
  93. package/dist/esm/zonos-checkout.entry.js +5 -5
  94. package/dist/esm/zonos-collapse.entry.js +2 -2
  95. package/dist/esm/zonos-component.entry.js +1 -1
  96. package/dist/esm/zonos-controller.entry.js +2 -2
  97. package/dist/esm/zonos-country-flag.entry.js +1 -1
  98. package/dist/esm/zonos-country-select_4.entry.js +9 -9
  99. package/dist/esm/zonos-elements.js +1 -1
  100. package/dist/esm/zonos-hello-dialog.entry.js +5 -5
  101. package/dist/esm/zonos-hello.entry.js +1 -1
  102. package/dist/esm/zonos-input.entry.js +4 -4
  103. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  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-notification_3.entry.js +5 -5
  107. package/dist/esm/zonos-toggle.entry.js +2 -2
  108. package/dist/esm/zonos-tooltip.entry.js +2 -2
  109. package/dist/esm/zonos-v-stack.entry.js +2 -2
  110. package/dist/esm-es5/cart-163f4dd9.js +1 -0
  111. package/dist/esm-es5/createCustomEvent-31a792d3.js +1 -0
  112. package/dist/esm-es5/index.js +1 -1
  113. package/dist/esm-es5/loader.js +1 -1
  114. package/dist/esm-es5/{paypal-04a10fc2.js → paypal-77e8eef2.js} +1 -1
  115. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  116. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  117. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  118. package/dist/esm-es5/zonos-card.entry.js +1 -1
  119. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  120. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  121. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  122. package/dist/esm-es5/zonos-component.entry.js +1 -1
  123. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  124. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  125. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  126. package/dist/esm-es5/zonos-elements.js +1 -1
  127. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  128. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  129. package/dist/esm-es5/zonos-input.entry.js +1 -1
  130. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  131. package/dist/esm-es5/zonos-link.entry.js +1 -1
  132. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  133. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  134. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  135. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  136. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  137. package/dist/scripts/index.d.ts +0 -5
  138. package/dist/scripts/index.js +1 -1
  139. package/dist/scripts/loadZonos.js +1 -1
  140. package/dist/scripts/zonos.js +1 -1
  141. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +0 -1
  142. package/dist/types/components/store/checkout/stripe.d.ts +6 -0
  143. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -3
  144. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -3
  145. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -3
  146. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -3
  147. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -3
  148. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -3
  149. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -3
  150. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -3
  151. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -3
  152. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -3
  153. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -3
  154. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -3
  155. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -3
  156. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -3
  157. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -3
  158. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -3
  159. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -3
  160. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -3
  161. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -3
  162. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -3
  163. package/dist/types/components/store/translationStore.d.ts +1 -1
  164. package/dist/types/types/checkout/CheckoutConfig.d.ts +0 -5
  165. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  166. package/dist/zonos-elements/index.esm.js +1 -1
  167. package/dist/zonos-elements/{p-58832515.entry.js → p-019028d5.entry.js} +1 -1
  168. package/dist/zonos-elements/{p-939d363c.system.entry.js → p-02b1e030.system.entry.js} +1 -1
  169. package/dist/zonos-elements/{p-ba3d2965.entry.js → p-06e3c94f.entry.js} +1 -1
  170. package/dist/zonos-elements/{p-123cabaa.system.entry.js → p-0810568b.system.entry.js} +1 -1
  171. package/dist/zonos-elements/{p-2a1475a4.system.entry.js → p-0a8b6b4a.system.entry.js} +1 -1
  172. package/dist/zonos-elements/{p-eaf09ccb.entry.js → p-0ad85ec6.entry.js} +1 -1
  173. package/dist/zonos-elements/p-110ee9ab.entry.js +1 -0
  174. package/dist/zonos-elements/{p-1e1397fe.entry.js → p-124f5c21.entry.js} +1 -1
  175. package/dist/zonos-elements/{p-796dbada.entry.js → p-1605dd48.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-ee14ba06.system.entry.js → p-189aa06e.system.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-b8850092.entry.js → p-1a0e138c.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-32c29205.system.entry.js → p-1c1ab3c8.system.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-1a9a51bf.entry.js → p-1c7e19f7.entry.js} +1 -1
  180. package/dist/zonos-elements/p-1dcaf64f.js +17 -0
  181. package/dist/zonos-elements/{p-9d678aea.system.js → p-281e9a06.system.js} +1 -1
  182. package/dist/zonos-elements/{p-6927d227.system.entry.js → p-2a0c4426.system.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-84d38e0c.entry.js → p-31acf417.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-bfd73737.system.entry.js → p-3c90f724.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-ff7b0d6b.system.entry.js → p-42b0fca8.system.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-9f89f828.system.entry.js → p-42d9d3af.system.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-ae7526a2.system.entry.js → p-442a308c.system.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-24813754.system.entry.js → p-46a71949.system.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-e880ab28.system.js → p-49135023.system.js} +1 -1
  190. package/dist/zonos-elements/p-505f92e7.entry.js +1 -0
  191. package/dist/zonos-elements/{p-8b0feb0e.entry.js → p-58e6386b.entry.js} +1 -1
  192. package/dist/zonos-elements/p-5a011a47.system.js +1 -0
  193. package/dist/zonos-elements/p-605473a3.entry.js +1 -0
  194. package/dist/zonos-elements/p-64372f93.system.js +1 -0
  195. package/dist/zonos-elements/p-7b999a40.js +1 -0
  196. package/dist/zonos-elements/{p-8632c8f1.entry.js → p-8acdac29.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-adbcf21c.entry.js → p-8cafdbc9.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-c4b5f123.entry.js → p-8e6bbf2c.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-76a4a647.system.entry.js → p-8e85c28f.system.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-45323a2f.system.entry.js → p-932cbdd7.system.entry.js} +1 -1
  201. package/dist/zonos-elements/{p-1d15c126.entry.js → p-9d7a79e3.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-c9e8f159.system.entry.js → p-a45bd823.system.entry.js} +1 -1
  203. package/dist/zonos-elements/{p-b7f627ec.system.entry.js → p-ab9af87d.system.entry.js} +1 -1
  204. package/dist/zonos-elements/p-abc6b881.system.entry.js +1 -0
  205. package/dist/zonos-elements/{p-71fe8da9.entry.js → p-b34ccbfd.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-d6de8661.entry.js → p-bcfc229f.entry.js} +1 -1
  207. package/dist/zonos-elements/p-c44f27be.js +1 -0
  208. package/dist/zonos-elements/{p-36eaad7e.entry.js → p-c598b3c5.entry.js} +1 -1
  209. package/dist/zonos-elements/{p-4eb3e354.entry.js → p-c652212b.entry.js} +1 -1
  210. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  211. package/dist/zonos-elements/p-cf69d8c2.system.entry.js +1 -0
  212. package/dist/zonos-elements/{p-489029d9.system.entry.js → p-d3c1ad61.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-e5d1d031.system.entry.js → p-d8a45014.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-1b1f2e33.system.entry.js → p-e4a69ce9.system.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-0962536e.system.entry.js → p-e5e63927.system.entry.js} +1 -1
  216. package/dist/zonos-elements/{p-4069df3c.entry.js → p-f20b3656.entry.js} +1 -1
  217. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  218. package/package.json +1 -1
  219. package/dist/cjs/createCustomEvent-4ea7b6dc.js +0 -51
  220. package/dist/esm/createCustomEvent-6ba5bcde.js +0 -47
  221. package/dist/esm-es5/cart-911ba5dd.js +0 -1
  222. package/dist/esm-es5/createCustomEvent-6ba5bcde.js +0 -1
  223. package/dist/zonos-elements/p-018a4b36.js +0 -1
  224. package/dist/zonos-elements/p-27188a22.system.entry.js +0 -1
  225. package/dist/zonos-elements/p-39c09f18.system.entry.js +0 -1
  226. package/dist/zonos-elements/p-60303c84.js +0 -1
  227. package/dist/zonos-elements/p-631570f0.system.js +0 -1
  228. package/dist/zonos-elements/p-8d98fed0.entry.js +0 -1
  229. package/dist/zonos-elements/p-a0af6dc1.entry.js +0 -1
  230. package/dist/zonos-elements/p-e2fa7600.entry.js +0 -1
  231. package/dist/zonos-elements/p-e9771827.system.js +0 -1
  232. package/dist/zonos-elements/p-ef9d6106.js +0 -17
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-d25b699a.js');
6
+ const cart = require('./cart-a3eab220.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const paypal = require('./paypal-fd423375.js');
8
+ const paypal = require('./paypal-ca479c4b.js');
9
9
  const zonosStore = require('./zonosStore-b18fe6b6.js');
10
- const createCustomEvent = require('./createCustomEvent-4ea7b6dc.js');
10
+ const createCustomEvent = require('./createCustomEvent-3e982e57.js');
11
11
  const getBorderRadius = require('./getBorderRadius-53c35cd1.js');
12
12
  const handleFetch = require('./handleFetch-aa729c61.js');
13
13
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
@@ -1252,9 +1252,13 @@ const RemoveIcon = `<svg color="var(--zonos-elements-red-800)" fill="none" heigh
1252
1252
 
1253
1253
  const SuccessIcon = `<svg color="var(--zonos-elements-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z" data-is-secondary-color="true" fill="var(--zonos-elements-blue-100)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M15.707 9.293a1 1 0 0 1 0 1.414l-3.646 3.647a1.5 1.5 0 0 1-2.122 0l-1.646-1.647a1 1 0 1 1 1.414-1.414L11 12.586l3.293-3.293a1 1 0 0 1 1.414 0Z" fill="currentColor" fill-rule="evenodd"></path></svg>`;
1254
1254
 
1255
- const zonosCheckoutFinishCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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:column;flex-direction:column}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:24px;border-radius:var(--border-radius, 10px);gap:24px;margin-top:24px;background-color:var(--zonos-elements-gray-50);padding:20px}:host .zonos--finish-details{max-width:536px;min-width:300px;line-height:24px;width:0 auto;margin:auto}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .zonos--finish-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto;margin-top:48px;max-width:300px}:host .zonos--order-number{background-color:var(--zonos-elements-gray-0);border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800);border-radius:var(--zonos-elements-radius-6);padding:4px 8px}";
1255
+ const zonosCheckoutFinishCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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:column;flex-direction:column}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:24px;border-radius:var(--border-radius, 10px);gap:24px;margin-top:24px;background-color:var(--zonos-elements-gray-50);padding:20px}:host .zonos--finish-details{max-width:536px;min-width:300px;line-height:24px;width:0 auto;margin:auto}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .zonos--finish-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto;margin-top:48px;max-width:300px}:host .zonos--subtitle{text-align:center}:host .zonos--order-number{background-color:var(--zonos-elements-gray-0);border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800);border-radius:var(--zonos-elements-radius-6);padding:4px 8px}";
1256
1256
  const ZonosCheckoutFinishStyle0 = zonosCheckoutFinishCss;
1257
1257
 
1258
+ /**
1259
+ * Maximum number of retries to pull order info (gap between each retry is 1 second)
1260
+ */
1261
+ const MAX_RETRIES = 30;
1258
1262
  const ZonosCheckoutFinish = class {
1259
1263
  constructor(hostRef) {
1260
1264
  index.registerInstance(this, hostRef);
@@ -1291,57 +1295,57 @@ const ZonosCheckoutFinish = class {
1291
1295
  }
1292
1296
  window.location.href = url;
1293
1297
  };
1294
- this.handleSuccessBehavior = () => {
1295
- var _a, _b, _c, _d, _e;
1298
+ this.handleSuccessBehavior = async () => {
1299
+ var _a, _b;
1296
1300
  /**
1297
1301
  * Save placed order info so we can show order info if they try to place the order again
1298
1302
  */
1299
1303
  this.saveOrderIdForDuplicationIssue();
1300
1304
  const { successBehavior } = zonosStore.zonosStore.checkoutSettings;
1301
- const legacyOrderNumber = ((_c = (_b = (_a = this.order) === null || _a === void 0 ? void 0 : _a.references) === null || _b === void 0 ? void 0 : _b.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _c === void 0 ? void 0 : _c.value) || null;
1302
- if (cart.cartStore.externalConfirmationPageURL) {
1303
- const redirectUrl = cart.cartStore.externalConfirmationPageURL;
1304
- const queryParams = new URLSearchParams();
1305
- if ((_d = this.order) === null || _d === void 0 ? void 0 : _d.id) {
1306
- queryParams.set('zOrderNumber', this.order.id);
1307
- }
1308
- if (legacyOrderNumber) {
1309
- queryParams.set('orderId', legacyOrderNumber);
1310
- }
1311
- const queryString = queryParams.toString();
1312
- const hasQueryString = redirectUrl.includes('?');
1313
- this.redirectToUrl(queryString
1314
- ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
1315
- `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
1316
- : redirectUrl);
1317
- }
1318
- switch (successBehavior) {
1319
- case 'REDIRECT_TO_SUCCESS_PAGE': {
1320
- const settingsRedirectUrl = zonosStore.zonosStore.checkoutSettings.successRedirectUrl;
1305
+ switch (true) {
1306
+ // If the merchant wants to redirect to a different page
1307
+ case successBehavior === 'REDIRECT_TO_SUCCESS_PAGE':
1308
+ case !!cart.cartStore.externalConfirmationPageURL: {
1309
+ const settingsRedirectUrl = cart.cartStore.externalConfirmationPageURL ||
1310
+ zonosStore.zonosStore.checkoutSettings.successRedirectUrl;
1321
1311
  const redirectUrl = settingsRedirectUrl;
1312
+ // use different default notification message if we are redirecting to a different page
1313
+ this.notificationTitle = cart.translate('Order complete!');
1314
+ this.notificationMessages = [
1315
+ cart.translate('Your order has been successfully placed.'),
1316
+ cart.translate("You will be redirected back to the merchant's site in a few seconds."),
1317
+ ];
1318
+ // stop loading spinner to show the redirecting notification
1319
+ this.isLoading = false;
1320
+ // override title if notification type is success
1321
+ this.useOverrideSuccessNotification();
1322
+ // attempt to pull order info before redirecting
1323
+ await this.getPullOrder();
1324
+ // If order is still not ready, should not redirect with no order id as merchant would show an error page and customer may think the order was not placed and retry
1325
+ if (!this.order) {
1326
+ return;
1327
+ }
1328
+ const legacyOrderNumber = ((_b = (_a = this.order.references) === null || _a === void 0 ? void 0 : _a.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _b === void 0 ? void 0 : _b.value) || null;
1322
1329
  const queryParams = new URLSearchParams();
1323
- if ((_e = this.order) === null || _e === void 0 ? void 0 : _e.id) {
1330
+ if (this.order.id) {
1324
1331
  queryParams.set('zOrderNumber', this.order.id);
1325
1332
  }
1326
1333
  if (legacyOrderNumber) {
1327
1334
  queryParams.set('orderId', legacyOrderNumber);
1328
1335
  }
1329
- if (redirectUrl) {
1330
- const queryString = queryParams.toString();
1331
- const hasQueryString = redirectUrl.includes('?');
1332
- this.redirectToUrl(queryString
1333
- ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
1334
- `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
1335
- : redirectUrl);
1336
- }
1337
- // If no redirect URL, break and display Zonos success page
1336
+ const queryString = queryParams.toString();
1337
+ const hasQueryString = redirectUrl.includes('?');
1338
+ this.redirectToUrl(queryString
1339
+ ? // Some url already has query string, so we need to append the query string with '&' instead of '?'
1340
+ `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
1341
+ : redirectUrl);
1338
1342
  break;
1339
1343
  }
1340
- case 'CLOSE_MODAL':
1341
- this.closeClickHandler();
1342
- break;
1343
- case 'ZONOS_SUCCESS_PAGE':
1344
+ case successBehavior === 'CLOSE_MODAL':
1345
+ case successBehavior === 'ZONOS_SUCCESS_PAGE':
1344
1346
  default:
1347
+ // override title if notification type is success
1348
+ this.useOverrideSuccessNotification();
1345
1349
  // Do nothing, display Zonos success page
1346
1350
  this.isLoading = false;
1347
1351
  break;
@@ -1350,44 +1354,67 @@ const ZonosCheckoutFinish = class {
1350
1354
  // TODO: This method of pulling orders is temporary. Once we have a working event registry system, we will rely on that to tell us when the order is ready to trigger onOrderSuccess
1351
1355
  this.getPullOrder = async (attempts = 0) => {
1352
1356
  var _a, _b;
1357
+ if (attempts === 0) {
1358
+ handleFetch.log('=== Start to poll for order info', 'info');
1359
+ }
1353
1360
  const { baseUrl, order } = await this.pullOrder();
1354
1361
  const { isLegacyCheckout } = window.Zonos;
1355
1362
  const foundLegacyOrderNumber = !!((_b = (_a = order === null || order === void 0 ? void 0 : order.references) === null || _a === void 0 ? void 0 : _a.find(entry => (entry === null || entry === void 0 ? void 0 : entry.key) === 'zonosOrderNumber')) === null || _b === void 0 ? void 0 : _b.value);
1356
- if ((order && !isLegacyCheckout) ||
1357
- (!order && attempts >= 5) ||
1363
+ const checkoutSessionId = cart.cartStore.checkoutSessionId;
1364
+ const maxRetries = parseFloat(new URLSearchParams(window.location.search).get('maxPollingRetries') ||
1365
+ '0') || MAX_RETRIES;
1366
+ if (
1367
+ // Order found and was regular checkout user
1368
+ (order && !isLegacyCheckout) ||
1369
+ // Order found, in legacy checkout facade and still haven't found the legacy order number
1370
+ (order && attempts >= maxRetries) ||
1371
+ // Legacy order number is ready in the order
1358
1372
  foundLegacyOrderNumber) {
1359
- if (isLegacyCheckout && !foundLegacyOrderNumber) {
1373
+ handleFetch.log('=== Order info found', 'info');
1374
+ if (isLegacyCheckout && order && !foundLegacyOrderNumber) {
1360
1375
  // We pushed this one through without the legacy order number, so we should log this
1361
- const checkoutSessionId = cart.cartStore.checkoutSessionId;
1362
1376
  void handleFetch.sendErrorLog({
1363
- endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order === null || order === void 0 ? void 0 : order.id}`,
1364
- errors: [`Order found but legacy order number doesn’t exist`],
1377
+ endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
1378
+ errors: [
1379
+ `Order found but legacy order number doesn’t exist after ${maxRetries} attempts`,
1380
+ ],
1365
1381
  metadata: {
1382
+ allLogs: handleFetch.allLogs,
1366
1383
  checkoutSessionId: cart.cartStore.checkoutSessionId || '',
1367
1384
  domain: window.location.hostname,
1368
- orderId: (order === null || order === void 0 ? void 0 : order.id) || '',
1385
+ orderId: order.id,
1386
+ storeId: zonosStore.zonosStore.storeId,
1387
+ },
1388
+ });
1389
+ return;
1390
+ }
1391
+ else if (attempts > 10) {
1392
+ // Log out all the logs if we have tried more than 10 times
1393
+ void handleFetch.sendErrorLog({
1394
+ endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}&orderId=${order.id}`,
1395
+ errors: [`Order found after ${attempts} attempts`],
1396
+ metadata: {
1397
+ allLogs: handleFetch.allLogs,
1398
+ checkoutSessionId: cart.cartStore.checkoutSessionId || '',
1399
+ domain: window.location.hostname,
1400
+ orderId: order.id,
1369
1401
  storeId: zonosStore.zonosStore.storeId,
1370
1402
  },
1371
1403
  });
1372
1404
  }
1373
- void createCustomEvent.trackConversionEvent('checkout_orderCompleted');
1374
1405
  this.order = order;
1375
- this.handleSuccessBehavior();
1376
1406
  }
1377
- else if ((!order || !foundLegacyOrderNumber) && attempts < 5) {
1407
+ else if ((!order || !foundLegacyOrderNumber) && attempts < maxRetries) {
1378
1408
  // Wait for 1 second before the next attempt
1379
1409
  await new Promise(resolve => setTimeout(resolve, 1000));
1380
1410
  await this.getPullOrder(attempts + 1);
1381
1411
  }
1382
1412
  else {
1383
- // Set loading to false to display generic success page and log error
1384
- this.isLoading = false;
1385
- void createCustomEvent.trackConversionEvent('checkout_orderCompleted');
1386
- const checkoutSessionId = cart.cartStore.checkoutSessionId;
1387
1413
  void handleFetch.sendErrorLog({
1388
1414
  endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}`,
1389
- errors: ['Order not found after multiple attempts'],
1415
+ errors: [`Order not found after ${maxRetries} attempts`],
1390
1416
  metadata: {
1417
+ allLogs: handleFetch.allLogs,
1391
1418
  checkoutSessionId: cart.cartStore.checkoutSessionId || '',
1392
1419
  domain: window.location.hostname,
1393
1420
  storeId: zonosStore.zonosStore.storeId,
@@ -1397,22 +1424,18 @@ const ZonosCheckoutFinish = class {
1397
1424
  };
1398
1425
  // If user provide override notification text, use it
1399
1426
  this.useOverrideSuccessNotification = () => {
1400
- const { successPageActionText, successPageSubtitleText, successPageTitleText, } = zonosStore.zonosStore.checkoutSettings;
1427
+ const { successPageSubtitleText, successPageTitleText } = zonosStore.zonosStore.checkoutSettings;
1401
1428
  if (successPageTitleText) {
1402
1429
  this.notificationTitle = successPageTitleText;
1403
1430
  }
1404
1431
  if (successPageSubtitleText) {
1405
1432
  this.notificationMessages = successPageSubtitleText;
1406
1433
  }
1407
- if (successPageActionText) {
1408
- this.notificationActionText = successPageActionText;
1409
- }
1410
1434
  };
1411
1435
  this.checkStripePaymentStatus = async () => {
1412
- this.isLoading = true;
1413
1436
  const clientSecret = new URLSearchParams(window.location.search).get('payment_intent_client_secret') || cart.stripeStore.clientSecret;
1414
1437
  if (clientSecret || this.storybookForceStatus) {
1415
- const { error, messages, paymentMethod } = await cart.stripeStoreRetrievePayment({
1438
+ const { error, messages, paymentIntentId, status } = await cart.stripeStoreRetrievePayment({
1416
1439
  clientSecret,
1417
1440
  storybookForceStatus: this.storybookForceStatus,
1418
1441
  });
@@ -1421,38 +1444,41 @@ const ZonosCheckoutFinish = class {
1421
1444
  this.notificationTitle = error
1422
1445
  ? cart.translate('Payment failed')
1423
1446
  : cart.translate("You're all set!");
1424
- if (error) {
1447
+ // Payment doesn't go through
1448
+ if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
1425
1449
  paypal.submitGtag('zonos-checkout-payment-fail');
1450
+ void handleFetch.sendErrorLog({
1451
+ endpoint: 'Stripe payment failed',
1452
+ errors: [
1453
+ `Payment intent "${paymentIntentId}" status: ${status} - checkout session: ${cart.cartStore.checkoutSessionId}`,
1454
+ ],
1455
+ metadata: {
1456
+ allLogs: handleFetch.allLogs,
1457
+ credentialToken: window.Zonos.zonosApiKey,
1458
+ },
1459
+ });
1426
1460
  }
1427
1461
  else {
1462
+ // Save new order info in case the user reloads before we get order info
1463
+ this.saveOrderIdForDuplicationIssue();
1428
1464
  paypal.submitGtag('zonos-checkout-success');
1429
- void createCustomEvent.trackConversionEvent('checkout_paymentInfoCompleted', {
1430
- paymentMethod,
1431
- });
1465
+ void cart.trackConversionEvent('checkout_orderCompleted');
1432
1466
  const successEvent = createCustomEvent.createCustomEvent('zonos-checkout-success', {
1433
1467
  message: 'Zonos Checkout successfully processed order',
1434
1468
  });
1435
1469
  document.dispatchEvent(successEvent);
1436
- }
1437
- // Attempt to pull the order details from the graph every second on 5 attempts. Only pull if checkoutSessionId is available
1438
- if (this.notificationType === 'success' && cart.cartStore.checkoutSessionId) {
1439
- // override title if notification type is success
1440
- this.useOverrideSuccessNotification();
1441
1470
  // wait this to finish before resetting store and checkout session id
1442
- await this.getPullOrder();
1471
+ await this.handleSuccessBehavior();
1443
1472
  }
1444
- else {
1445
- this.isLoading = false;
1446
- }
1447
- }
1448
- else {
1449
- this.isLoading = false;
1450
1473
  }
1474
+ // Make sure to stop the loading spinner even when there's an error
1475
+ this.isLoading = false;
1476
+ // reset promo when checkout is finished
1477
+ cart.stripeStoreResetPromoCode();
1451
1478
  cart.stripeStoreReset();
1452
1479
  cart.cartStore.checkoutSessionId = null;
1453
1480
  };
1454
1481
  this.checkPaypalPaymentStatus = async () => {
1455
- this.isLoading = true;
1456
1482
  // render error message if there's an error
1457
1483
  if (paypal.paypalStore.paypalErrorMessage) {
1458
1484
  this.notificationType = 'error';
@@ -1461,6 +1487,8 @@ const ZonosCheckoutFinish = class {
1461
1487
  this.isLoading = false;
1462
1488
  return;
1463
1489
  }
1490
+ // show success message right away when order id is already created
1491
+ this.isLoading = false;
1464
1492
  if (paypal.paypalStore.orderIdCreated) {
1465
1493
  this.notificationType = 'success';
1466
1494
  this.notificationTitle = cart.translate("You're all set!");
@@ -1469,11 +1497,10 @@ const ZonosCheckoutFinish = class {
1469
1497
  // override title if notification type is success
1470
1498
  this.useOverrideSuccessNotification();
1471
1499
  // wait this to finish before resetting store and checkout session id
1472
- await this.getPullOrder();
1500
+ await this.handleSuccessBehavior();
1473
1501
  }
1474
1502
  // reset promo when checkout is finished
1475
1503
  cart.stripeStoreResetPromoCode();
1476
- this.isLoading = false;
1477
1504
  cart.stripeStoreReset();
1478
1505
  paypal.paypalStoreReset();
1479
1506
  cart.cartStore.checkoutSessionId = null;
@@ -1502,10 +1529,11 @@ const ZonosCheckoutFinish = class {
1502
1529
  this.notificationType = 'success';
1503
1530
  this.notificationTitle = '';
1504
1531
  this.notificationMessages = [];
1505
- this.notificationActionText = cart.translate('Keep shopping');
1506
1532
  this.order = null;
1507
1533
  }
1508
1534
  componentDidLoad() {
1535
+ // Reset local storage for placed order info
1536
+ localStorage.removeItem('zonos--placed-order-info');
1509
1537
  if (this.overrideNotification) {
1510
1538
  // just show the notification and don't check any of the payment status
1511
1539
  this.notificationType = this.overrideNotification.type;
@@ -1514,8 +1542,6 @@ const ZonosCheckoutFinish = class {
1514
1542
  this.isLoading = false;
1515
1543
  return;
1516
1544
  }
1517
- // Save order info in case the user reloads before we get order info
1518
- this.saveOrderIdForDuplicationIssue();
1519
1545
  if (paypal.paypalStore.orderIdCreated) {
1520
1546
  void this.checkPaypalPaymentStatus();
1521
1547
  }
@@ -1524,16 +1550,12 @@ const ZonosCheckoutFinish = class {
1524
1550
  }
1525
1551
  }
1526
1552
  render() {
1527
- var _a, _b, _c, _d;
1528
- const orderId = ((_a = this.order) === null || _a === void 0 ? void 0 : _a.accountOrderNumber) ||
1529
- ((_d = (_c = (_b = this.order) === null || _b === void 0 ? void 0 : _b.references) === null || _c === void 0 ? void 0 : _c.find(ref => ref.key === 'zonosOrderNumber')) === null || _d === void 0 ? void 0 : _d.value) ||
1530
- null;
1531
1553
  const isTestMode = createCustomEvent.getIsTestMode();
1532
- return (index.h(index.Host, { key: '60abe11ec6d33ac9f390735b2343dc73ba323e0e', class: "zonos--checkout-finish zonos--elements", style: {
1554
+ return (index.h(index.Host, { key: 'a255ef40504c8e569b44dcdde6a8026745f38c9f', class: "zonos--checkout-finish zonos--elements", style: {
1533
1555
  '--border-radius': getBorderRadius.getBorderRadius({
1534
1556
  overrideBorderStyle: this.borderRadius,
1535
1557
  }),
1536
- } }, this.isLoading && (index.h("div", { key: 'f3ca53a787f738a34d376fd48cb880ecd3344073', class: "loading-wrapper" }, index.h("zonos-spinner", { key: 'bc2ad04b786a98a8a87c4b5317aa88acc9770580' }))), !this.isLoading && (index.h("div", { key: '6578b0007e35062b11d71a498f78fee56b1175e6', class: "zonos--finish-details" }, index.h("div", { key: 'f1fc14ffeff3628fa8066e0386c37c66bd3fb8e1', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: 'a59f4022483e49b6ee9a4f3c0676e2f3d043ccae', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), orderId && (index.h("div", { key: '2032bc6031c42463a5896d43f49517489cf38734', class: "zonos--order-number" }, "Order #", orderId)), index.h("zonos-text", { key: 'da9f7af5b3db16551bd6389c1c92322be8d57aa0', textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), index.h("zonos-button", { key: '6a8503a7231cb66196919aeb6c6d1f84576e2577', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText)), isTestMode && cart.cartStore.step === 'finish' && (index.h("div", { key: '80631312aa8ef98dd36cfda1e62f0274afc48002', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: 'e1fa412928b1292f09956613f9464e5fc32528e1', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: '8d1708a411f334b9cf5a07d142d2d8aa9bddf29b', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1558
+ } }, !this.isLoading && (index.h("div", { key: 'a14c5a6476b6d77c8b070239b3dbf3b1248d91a1', class: "zonos--finish-details" }, index.h("div", { key: '7d1d11bc6d1648f6e05fa08c8afa38df2db4f773', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '6e2b00afd313f4724cbd0e3c0ff6d099a4eb0423', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '89ddff1e318401adcc01a1883628651688a39338', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null)))))), isTestMode && cart.cartStore.step === 'finish' && (index.h("div", { key: '078de76fc1c106538d8ac586edc831639b94e2e1', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '30b68c106ad0eada43b8fadd0b20738d63af0f24', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: 'a8d092e0a2084ed2c1e2342a7aaf06bf309b559b', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1537
1559
  }
1538
1560
  static get assetsDirs() { return ["assets"]; }
1539
1561
  };
@@ -1581,10 +1603,10 @@ const ZonosCheckoutFooter = class {
1581
1603
  const languageLabel = (_a = ILanguage.languages.find(x => x.code === cart.localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
1582
1604
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
1583
1605
  const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
1584
- return (index.h(index.Host, { key: '23b8596ab642089e7109ef9f33e5c8f2f864fc04', class: classes.classes(['zonos--elements', this.isMobile && 'mobile']) }, index.h("div", { key: '38a8d22389df15c429101560758e4aedabf67bfd', class: "zonos--checkout-footer" }, index.h("div", { key: '9767bbecf5daad5163372382504c4846a6f547c0', class: "zonos--checkout-locale-wrapper" }, index.h("zonos-button", { key: '1d66d656e6f305fbef4b2a5a360fdb7ac458f989', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), index.h("div", { key: 'daa1cdff45356cb0b6f78b2ae37f009ef313d174', class: classes.classes([
1606
+ return (index.h(index.Host, { key: 'c84407b445b03673c739e526407d5daece2465c1', class: classes.classes(['zonos--elements', this.isMobile && 'mobile']) }, index.h("div", { key: 'de44554ef9af66b36e957ffc7c03c3102eb54289', class: "zonos--checkout-footer" }, index.h("div", { key: 'c045ebefdfe7e0c78f003ba25478297713726adc', class: "zonos--checkout-locale-wrapper" }, index.h("zonos-button", { key: 'f9028e5d572a8563f4b223edf28554ecc6bc79a2', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), index.h("div", { key: 'efa7bd0f7ff692d10eddacdcd922eefd8734dcde', class: classes.classes([
1585
1607
  'zonos--checkout-footer-dialog',
1586
1608
  this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
1587
- ]) }, index.h("zonos-language-select", { key: '243ea828fbda5c8a046faa98783683b31e4a3780', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: 'c159a511f58d07c378f4d95edbcdc09782a95961', class: "zonos--checkout-footer-icon-wrapper" }, index.h("a", { key: '3ea84395f0dd0264a83a46f1aa1e7ab6a348caef', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: 'a59a40f9753cb520352e6c1f838291adaf9192f8', textColor: colorDesktop }, "Privacy policy")), index.h("div", { key: '26c23f55dd4033d98127bff82807a1512f84854e', class: "zonos--checkout-footer-logo" }, index.h("zonos-text", { key: 'af7d46c29c4f3fd800e66b06ad93869151cd115b', textColor: colorDesktop }, "Powered by"), index.h("a", { key: 'e1d393aed20e5c923a9b2ab4b0c136cd64a9f0fe', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: '7e4119c1f187585321b821a394c82038dfaac838', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 })))))));
1609
+ ]) }, index.h("zonos-language-select", { key: '4086571d445ad29f824975a6ad107d1351302d78', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: 'f16a9caea53befe23f6fc6f5690635d9cd6e196b', class: "zonos--checkout-footer-icon-wrapper" }, index.h("a", { key: '5ca1a5aadf50bb038209a505b8bece798c92efc5', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: 'c60d81728e5ebdddea08429eae156e312e407d35', textColor: colorDesktop }, "Privacy policy")), index.h("div", { key: 'e50935aea98312ab3ffd3c04e8155843e802791a', class: "zonos--checkout-footer-logo" }, index.h("zonos-text", { key: 'b8e10c2d63cf5bade264213ae2e37639b10347ae', textColor: colorDesktop }, "Powered by"), index.h("a", { key: '5f4ad624ac59e6e59d0bc73f70eb98399009cf1a', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: 'db358784c050fedfb7b0e4e02ca54c9926691963', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 })))))));
1588
1610
  }
1589
1611
  get el() { return index.getElement(this); }
1590
1612
  static get watchers() { return {
@@ -1753,17 +1775,17 @@ const ZonosCheckoutProgressTabs = class {
1753
1775
  color: labelSelectedColor,
1754
1776
  })
1755
1777
  : labelSelectedColor;
1756
- return (index.h(index.Host, { key: 'f7310a3631e3a1061d8f08af0fc7337fb0a6be26', class: "zonos--elements", style: {
1778
+ return (index.h(index.Host, { key: 'cb720c17828585b4e5235c0695d1887efacfc232', class: "zonos--elements", style: {
1757
1779
  '--color': contrastLabelColor,
1758
1780
  '--progress-percent': this.getTotalSuccessStep(),
1759
- } }, index.h("div", { key: 'fafce1662609cf7c966d9062ef55594d43e58643', class: "zonos--tab-wrapper" }, Object.values(cart.cartStore.tabItems).map((tab, index$1) => {
1781
+ } }, index.h("div", { key: '3249121ebbb26b8a377f0fdf39700e5098374bae', class: "zonos--tab-wrapper" }, Object.values(cart.cartStore.tabItems).map((tab, index$1) => {
1760
1782
  const isSelected = tab.value === selectedStep;
1761
1783
  return (index.h("button", { class: classes.classes([
1762
1784
  'zonos--tab-item',
1763
1785
  tab.value === selectedStep && 'selected',
1764
1786
  tab.isDone && 'done',
1765
1787
  ]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => (cart.cartStore.step = tab.value) }, index.h("div", { class: "zonos--tab-index" }, index.h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index$1 + 1), index.h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), index.h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, cart.translate(tab.label))));
1766
- })), index.h("div", { key: '3d2a5c5289a694bf6ec8e93ba15ee4f79123d149', class: "zonos--tab-progress" }, index.h("div", { key: '7d6ea3e0c81cdb354ccf31748bf88d1937037c52', class: "zonos--progress-bar-fill" }))));
1788
+ })), index.h("div", { key: 'da31d2d0a835182509a8199dc4fa9f1278be23e1', class: "zonos--tab-progress" }, index.h("div", { key: '6523c3e32b0926915b7d06f9cb19f6fc427c0e84', class: "zonos--progress-bar-fill" }))));
1767
1789
  }
1768
1790
  static get assetsDirs() { return ["assets"]; }
1769
1791
  get ele() { return index.getElement(this); }
@@ -1865,13 +1887,13 @@ const ZonosConfirmDialog = class {
1865
1887
  const borderStyle = getBorderRadius.getBorderRadius();
1866
1888
  // Get theme for the update dialog, inherit from the theme, no from this component theme
1867
1889
  const theme = zonosStore.getZonosStoreTheme(zonosStore.zonosStore.appearance.theme);
1868
- return (index.h(index.Host, { key: '3ce72ff0cc986ba772ccd376d5619587f14fd3ea', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
1890
+ return (index.h(index.Host, { key: '2ae28cccbc55249c415bdeb1f3b6ebfcd16705fd', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
1869
1891
  '--border-radius': borderStyle,
1870
1892
  '--dialog-width': `${this.dialogWidth}px`,
1871
1893
  '--font-family': zonosStore.zonosStoreFontFamily(),
1872
- } }, index.h("div", { key: '2963b8604b543e3c36c1079db78fe77dceaed215', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: '3a5b515ca3d88b7ae78f0d81ad7127c610ab786e', "aria-hidden": "true", class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: 'b6070c25fefc396e5303240d58ae809dee4f8548', class: "zonos--confirm-dialog", onBlur: () => {
1894
+ } }, index.h("div", { key: '6887502fc45f8726e00875c1533853f170d61b69', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: '9e303d17187cf0c8d281e4faa9ad65704b7b5f56', "aria-hidden": "true", class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: '2a7a8633c62e14bb134ebb6cd08050a558498afc', class: "zonos--confirm-dialog", onBlur: () => {
1873
1895
  this.focusDialog();
1874
- } }, index.h("div", { key: 'cd67ad63f17ba734a417ffed3899044c70cfa16c', class: "wrapper" }, index.h("div", { key: '2801b0ab1e0931c00a103cc9fc2e983a7cb73452', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: '9ab775b2c8fc9e042d92cddbee72cab31ebde7a3', class: "content" }, index.h("div", { key: '4a884d0d55bc4dde0d24d5d51328c0f27d221dae', class: "title" }, index.h("zonos-text", { key: '465ccc7a97b7192f1b1c4810627db583c95cd9c0', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: '4ef4d0544128c4a3c87521aa509b28d42e6f2a25', class: "subtitle" }, index.h("zonos-text", { key: '484e097b9fa41ddabcbb2c8e350c0cdbb232887b', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: '364b576633445f8b58e3824a817ff157950e8505', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: 'f483efb2564f687ad664aed0e7f578b7187f9c15', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || cart.translate('Cancel'))), index.h("zonos-button", { key: 'c0329025de32980a7a3478ad32153f9b5e90c16c', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
1896
+ } }, index.h("div", { key: '738395a26d051c099893c9d186e711742b87fd0d', class: "wrapper" }, index.h("div", { key: '6037c59790568e095c42fabd6bc2c02d026e36de', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: '0db72c9e8702e642e6eba5d81d2560f69491742e', class: "content" }, index.h("div", { key: 'a6e25a16aba531ed8e4f0400c44df1ef5f3bd968', class: "title" }, index.h("zonos-text", { key: '8d572ed39778bb406bf69791fe8c8685c03a884f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: 'c4a57430c8fc7003be681857f4a5a5c9588c4a38', class: "subtitle" }, index.h("zonos-text", { key: '73d8b2ca508ab2e022b92f12a0f6bbc0d4c6abe2', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: 'f7c52a24a3ed7ca4ac63b57dc38dc67b6272d9f3', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: '50906e6744254cb190e0e13e51c7509f3560623e', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || cart.translate('Cancel'))), index.h("zonos-button", { key: '9b25a61bca74e9ee10e5f9057232faf3507acbe8', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
1875
1897
  }
1876
1898
  static get assetsDirs() { return ["assets"]; }
1877
1899
  get el() { return index.getElement(this); }
@@ -1991,7 +2013,7 @@ const ZonosCustomerInfo = class {
1991
2013
  this.continueClicked.emit();
1992
2014
  // submit google tag when the form is complete
1993
2015
  paypal.submitGtag('zonos-checkout-customer-info');
1994
- void createCustomEvent.trackConversionEvent('checkout_customerInfoCompleted');
2016
+ void cart.trackConversionEvent('checkout_customerInfoCompleted');
1995
2017
  };
1996
2018
  this.handleValidate = () => {
1997
2019
  const stripeShippingAddressEventData = cart.stripeStore.stripeAddressEventData;
@@ -2125,11 +2147,11 @@ const ZonosRestState = class {
2125
2147
  }
2126
2148
  render() {
2127
2149
  const imageUrl = this.getImageRestState();
2128
- return (index.h(index.Host, { key: '662eee60347a898a6dd94e7ca7d580932dfff7d7', class: classes.classes(['zonos--elements zonos--restState']), style: {
2150
+ return (index.h(index.Host, { key: 'e27bb400718152b275761f858f8667474d452b09', class: classes.classes(['zonos--elements zonos--restState']), style: {
2129
2151
  '--font-family': zonosStore.zonosStoreFontFamily(),
2130
- } }, index.h("div", { key: '92674dbfb60e16c68d24abc0809bfe0fad515739', class: "zonos--restState-image" }, index.h("img", { key: 'cafbc678396b0a1e0d6dc4781d5b43c3ea687c4b', alt: this.restStateType, onError: () => {
2152
+ } }, index.h("div", { key: '4b00e2becf4fe8ea79be85e3053a8e60b0c56929', class: "zonos--restState-image" }, index.h("img", { key: 'ff7cc6756987eb4a1270157b8b8477b01b6c9aca', alt: this.restStateType, onError: () => {
2131
2153
  this.isErrorImageLoad = true;
2132
- }, src: imageUrl })), index.h("div", { key: 'e05d28dd121469f81ecc962ac7d9f28b8b0764f7', class: "content" }, index.h("zonos-text", { key: 'b1c0d1cb51eca4357240d97f773a8359323a6024', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '4cdf80c1578fa29364fddf506c9c58e264d7fb34', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: '6ed981023268438ee9ca5e3a330649d13b897156', class: "action" }, index.h("slot", { key: 'bfa3fa672372bfff4b3e270964431aa25dd53f25' }))));
2154
+ }, src: imageUrl })), index.h("div", { key: '0e941e59df893963592951660017530ae64f5176', class: "content" }, index.h("zonos-text", { key: '99827682fe5a3c5a55dbb8abffac070a1cfdb3a2', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '9d052f43dc1d5955250e63e231479773d418f8f9', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: 'd43236e1e2d25636985da4b44761a5dd86ea1f4b', class: "action" }, index.h("slot", { key: 'c4b89eb985e3a0d9805e67ea6f7e2cdf4cd3560f' }))));
2133
2155
  }
2134
2156
  static get assetsDirs() { return ["assets"]; }
2135
2157
  };
@@ -2264,7 +2286,7 @@ const ZonosShipping = class {
2264
2286
  this.continueClicked.emit();
2265
2287
  // submit google tag when the form is complete
2266
2288
  paypal.submitGtag('zonos-checkout-shipping-info');
2267
- void createCustomEvent.trackConversionEvent('checkout_shippingInfoCompleted', {
2289
+ void cart.trackConversionEvent('checkout_shippingInfoCompleted', {
2268
2290
  serviceLevelId: (_a = this.selectedShippingMethod) === null || _a === void 0 ? void 0 : _a.value,
2269
2291
  });
2270
2292
  };
@@ -2380,13 +2402,13 @@ const ZonosShipping = class {
2380
2402
  if (this.showErrorBanner) {
2381
2403
  this.showErrorBanner = !this.handleValidate();
2382
2404
  }
2383
- return (index.h(index.Host, { key: '186cd73af5a86fdeafd0213f8923907d43167a66', class: "zonos--shipping zonos--elements" }, index.h("div", { key: '88681a6f08bdde1788a546cb1311ace4f065d408', class: "zonos--group" }, index.h("zonos-text", { key: '75deb5b42546d7b8d615d5613f687f9b0778377d', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { key: '07669e8782f210132e8d170729a430035c7d6d7c', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: '869c3df8762f6c704bfac40c0b9a7a16e845045e', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (index.h("div", { class: "zonos--shipping-options-wrapper" }, index.h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2405
+ return (index.h(index.Host, { key: '7b16a998c47d1e834c1de3aaac030461e38e43d5', class: "zonos--shipping zonos--elements" }, index.h("div", { key: '796d1d43d1a409b6b94a8faa3a41bcfb8d26aeb2', class: "zonos--group" }, index.h("zonos-text", { key: '78629e22a49733794d6ac3bd56bd48c5c7a2ff5a', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { key: 'fc0367bfad972e86f0f78fd7ac279c69aa51aeb8', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: 'e79faacea340e54ee6fcde62073d87960dfbfbcf', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (index.h("div", { class: "zonos--shipping-options-wrapper" }, index.h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2384
2406
  !!this.serviceLevelsDAP.length && (index.h("button", { class: classes.classes([
2385
2407
  'zonos--shipping-options-collapse-trigger',
2386
2408
  this.collapsedDAPOptions && 'collapsed',
2387
2409
  ]), onClick: () => {
2388
2410
  this.collapsedDAPOptions = !this.collapsedDAPOptions;
2389
- } }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: '571b9856c2dc767b082adb154c3f75f49366199d', class: "zonos--group-btn" }, index.h("zonos-button", { key: '4153a317ffa612867cf55763f586a58abda0473b', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2411
+ } }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: '03c7dc8d310db7dc161b064a1f384034e8b5a067', class: "zonos--group-btn" }, index.h("zonos-button", { key: '33d4afb9f86b8f8e5a8843c2ccfefac3e9ec1d76', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2390
2412
  // use primary type when on mobile mode
2391
2413
  variant: this.submitBtnType }, cart.translate('Go to payment'))))));
2392
2414
  }
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-d25b699a.js');
7
- const paypal = require('./paypal-fd423375.js');
6
+ const cart = require('./cart-a3eab220.js');
7
+ const paypal = require('./paypal-ca479c4b.js');
8
8
  const zonosStore = require('./zonosStore-b18fe6b6.js');
9
9
  const handleFetch = require('./handleFetch-aa729c61.js');
10
- const createCustomEvent = require('./createCustomEvent-4ea7b6dc.js');
10
+ const createCustomEvent = require('./createCustomEvent-3e982e57.js');
11
11
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
12
12
  const classes = require('./classes-b7918f56.js');
13
13
  const getBorderRadius = require('./getBorderRadius-53c35cd1.js');
@@ -246,8 +246,8 @@ const ZonosCheckoutStyle0 = zonosCheckoutCss;
246
246
 
247
247
  // 90 minutes
248
248
  const CHECKOUT_SESSION_TIMEOUT = 90 * 60 * 1000;
249
- // 10 minutes
250
- const ORDER_DUPLICATION_NOTIFICATION_EXPIRATION = 10 * 60 * 1000;
249
+ // 6 hours
250
+ const ORDER_DUPLICATION_NOTIFICATION_EXPIRATION = 6 * 60 * 60 * 1000;
251
251
  const ZonosCheckout = class {
252
252
  constructor(hostRef) {
253
253
  index.registerInstance(this, hostRef);
@@ -505,7 +505,7 @@ const ZonosCheckout = class {
505
505
  // Hide discount input if there's no active discount configured for the store
506
506
  cart.cartStore.shouldHideDiscountInput = !enabled;
507
507
  paypal.submitGtag('zonos-checkout-start');
508
- void createCustomEvent.trackConversionEvent('checkout_open');
508
+ void cart.trackConversionEvent('checkout_open');
509
509
  this.handleOrderDuplication();
510
510
  if (window.Zonos.isLegacyCheckout) {
511
511
  void sendLoadCheckoutFacadeLog();
@@ -50,10 +50,10 @@ const ZonosCollapse = class {
50
50
  // set overflow to hidden to prevent content from showing when collapsed
51
51
  this.el.style.overflow = 'hidden';
52
52
  }
53
- return (index.h(index.Host, { key: 'ee7ff46100d39b9baaf4eec60f9ae0a170ed793e', class: 'zonos--elements zonos--collapse', style: {
53
+ return (index.h(index.Host, { key: '22d1cfa07362c868ff1b58315789d3d65bcce556', class: 'zonos--elements zonos--collapse', style: {
54
54
  '--font-family': zonosStore.zonosStoreFontFamily(),
55
55
  height: this.getElementHeight(),
56
- } }, index.h("div", { key: '8d59ba91560d35c13ce202370119c02f4af08431' }, index.h("iframe", { key: '4a7acd6d26f8ed38a405b03e987f3a011c52b94a', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: 'dca0ec42b16a23f36724b6b8f2a730999a9b1367' }))));
56
+ } }, index.h("div", { key: 'fa8c388a6497311d4dd4989e3f9ad2f7f3b8ee82' }, index.h("iframe", { key: 'b93e841bc726709fdca538d7fed38e09470c3ff5', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: 'aac6f96a0d928d372248f3fa1a906cd764f6e0d3' }))));
57
57
  }
58
58
  get el() { return index.getElement(this); }
59
59
  };
@@ -22,7 +22,7 @@ const ZonosComponent = class {
22
22
  return format(this.first, this.middle, this.last);
23
23
  }
24
24
  render() {
25
- return index.h("div", { key: '680750af83db9bbfb563fe37d1dc631e6ec60e32' }, "Hello, World! I'm ", this.getText());
25
+ return index.h("div", { key: '63b0c771133fd495f36e2c67601d64d6e56f5f2b' }, "Hello, World! I'm ", this.getText());
26
26
  }
27
27
  };
28
28
  ZonosComponent.style = ZonosComponentStyle0;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-d25b699a.js');
6
+ const cart = require('./cart-a3eab220.js');
7
7
  const zonosStore = require('./zonosStore-b18fe6b6.js');
8
8
  const handleFetch = require('./handleFetch-aa729c61.js');
9
9
  require('./isDarkColor-87ee1eb7.js');
@@ -332,7 +332,7 @@ const ZonosController = class {
332
332
  zonosStore.zonosStore.organizationName = organizationName;
333
333
  }
334
334
  render() {
335
- return index.h(index.Host, { key: '4fbe37aa73ee16150bf40bdcc3bf5d0d0c092482', class: "zonos--elements" });
335
+ return index.h(index.Host, { key: 'f2d050c785576dde681a5df55ba24bc42436375f', class: "zonos--elements" });
336
336
  }
337
337
  };
338
338
  ZonosController.style = ZonosControllerStyle0;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-d25b699a.js');
6
+ const cart = require('./cart-a3eab220.js');
7
7
  const zonosStore = require('./zonosStore-b18fe6b6.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-aa729c61.js');