@zonos/elements 1.3.260 → 1.3.262

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 (247) hide show
  1. package/dist/cjs/index.cjs.js +12 -9
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/{paypal-73a542cb.js → paypal-e278f405.js} +140 -6
  4. package/dist/cjs/submitGtag-4241212b.js +167 -0
  5. package/dist/cjs/zonos-address-display_8.cjs.entry.js +17 -17
  6. package/dist/cjs/zonos-address_4.cjs.entry.js +6 -6
  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_5.cjs.entry.js +8 -8
  10. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +106 -31
  11. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
  12. package/dist/cjs/zonos-checkout.cjs.entry.js +20 -10
  13. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  14. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +4 -4
  15. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +19 -19
  16. package/dist/cjs/zonos-collect.cjs.entry.js +2 -2
  17. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  18. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  19. package/dist/cjs/zonos-country-select_4.cjs.entry.js +9 -9
  20. package/dist/cjs/zonos-elements.cjs.js +1 -1
  21. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  23. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -14
  25. package/dist/cjs/zonos-invoice.cjs.entry.js +2 -2
  26. package/dist/cjs/zonos-language-select_2.cjs.entry.js +4 -4
  27. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  28. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  29. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  30. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  31. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +82 -15
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +7 -0
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +7 -3
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +19 -9
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +7 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +5 -1
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +7 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +6 -3
  41. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
  42. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +6 -6
  43. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
  44. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +2 -2
  45. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  46. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
  47. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
  48. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +6 -6
  49. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
  50. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +2 -2
  51. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  52. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
  53. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  54. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  55. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  56. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  57. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  58. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  59. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  60. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  61. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  62. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  63. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  64. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  65. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  66. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  67. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  68. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  69. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  70. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  71. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  72. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  73. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  74. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  75. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  76. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  77. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  78. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  79. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  80. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  81. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  82. package/dist/collection/components/main/zonos-controller.js +2 -2
  83. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  84. package/dist/collection/components/store/checkout/paypal.js +4 -4
  85. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  86. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  87. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  88. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  89. package/dist/collection/components/utils/analytics/analyticsRelayState.js +112 -0
  90. package/dist/collection/components/utils/analytics/mapToFbEvent.js +66 -0
  91. package/dist/collection/components/utils/submitAnalytics.js +16 -0
  92. package/dist/collection/components/utils/submitFbq.js +56 -0
  93. package/dist/collection/components/utils/submitGtag.js +15 -78
  94. package/dist/collection/scripts/_zonosBase.js +5 -2
  95. package/dist/collection/types/analyticsRelay.js +2 -2
  96. package/dist/esm/index.js +12 -9
  97. package/dist/esm/loader.js +1 -1
  98. package/dist/esm/{paypal-38ca5d21.js → paypal-d8804da5.js} +142 -9
  99. package/dist/esm/submitGtag-7f5c5bb5.js +162 -0
  100. package/dist/esm/zonos-address-display_8.entry.js +17 -17
  101. package/dist/esm/zonos-address_4.entry.js +6 -6
  102. package/dist/esm/zonos-badge.entry.js +3 -3
  103. package/dist/esm/zonos-button_3.entry.js +3 -3
  104. package/dist/esm/zonos-card_5.entry.js +8 -8
  105. package/dist/esm/zonos-cart-items_12.entry.js +106 -31
  106. package/dist/esm/zonos-checkbox_2.entry.js +5 -5
  107. package/dist/esm/zonos-checkout.entry.js +20 -10
  108. package/dist/esm/zonos-collapse.entry.js +2 -2
  109. package/dist/esm/zonos-collect-cart-items_3.entry.js +4 -4
  110. package/dist/esm/zonos-collect-finish_6.entry.js +19 -19
  111. package/dist/esm/zonos-collect.entry.js +2 -2
  112. package/dist/esm/zonos-component.entry.js +1 -1
  113. package/dist/esm/zonos-controller.entry.js +3 -3
  114. package/dist/esm/zonos-country-select_4.entry.js +9 -9
  115. package/dist/esm/zonos-elements.js +1 -1
  116. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  117. package/dist/esm/zonos-input.entry.js +4 -4
  118. package/dist/esm/zonos-invoice-cart-items_2.entry.js +4 -4
  119. package/dist/esm/zonos-invoice-finish_5.entry.js +14 -14
  120. package/dist/esm/zonos-invoice.entry.js +2 -2
  121. package/dist/esm/zonos-language-select_2.entry.js +4 -4
  122. package/dist/esm/zonos-link.entry.js +1 -1
  123. package/dist/esm/zonos-logo.entry.js +2 -2
  124. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  125. package/dist/esm/zonos-tooltip.entry.js +2 -2
  126. package/dist/esm/zonos-v-stack.entry.js +2 -2
  127. package/dist/esm-es5/index.js +1 -1
  128. package/dist/esm-es5/loader.js +1 -1
  129. package/dist/esm-es5/paypal-d8804da5.js +17 -0
  130. package/dist/esm-es5/submitGtag-7f5c5bb5.js +1 -0
  131. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  132. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  133. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  134. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  135. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  136. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  137. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  138. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  139. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  140. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  141. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  142. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  143. package/dist/esm-es5/zonos-component.entry.js +1 -1
  144. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  145. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  146. package/dist/esm-es5/zonos-elements.js +1 -1
  147. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  148. package/dist/esm-es5/zonos-input.entry.js +1 -1
  149. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  150. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  151. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  152. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  153. package/dist/esm-es5/zonos-link.entry.js +1 -1
  154. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  155. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  156. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  157. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  158. package/dist/scripts/analyticsRelayOnInit.js +1 -1
  159. package/dist/scripts/index.d.ts +18 -0
  160. package/dist/scripts/index.js +1 -1
  161. package/dist/scripts/loadZonos.js +1 -1
  162. package/dist/scripts/zonos.js +1 -1
  163. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +15 -0
  164. package/dist/types/components/utils/analytics/analyticsRelayState.d.ts +43 -0
  165. package/dist/types/components/utils/analytics/mapToFbEvent.d.ts +11 -0
  166. package/dist/types/components/utils/submitAnalytics.d.ts +12 -0
  167. package/dist/types/components/utils/submitFbq.d.ts +14 -0
  168. package/dist/types/components/utils/submitGtag.d.ts +4 -9
  169. package/dist/types/scripts/_zonosBase.d.ts +11 -0
  170. package/dist/types/types/analyticsRelay.d.ts +19 -3
  171. package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
  172. package/dist/zonos-elements/index.esm.js +1 -1
  173. package/dist/zonos-elements/{p-bb6e7e9e.entry.js → p-00bd7e5d.entry.js} +1 -1
  174. package/dist/zonos-elements/p-022ddd4a.system.entry.js +1 -0
  175. package/dist/zonos-elements/{p-da5a35a6.entry.js → p-06ef4d79.entry.js} +1 -1
  176. package/dist/zonos-elements/{p-874ccf1c.system.entry.js → p-072c5e07.system.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-f7ddd288.system.entry.js → p-14f156c6.system.entry.js} +1 -1
  178. package/dist/zonos-elements/{p-66d72216.entry.js → p-155b4425.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-9161f10d.system.entry.js → p-17476a30.system.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-9dc671f4.entry.js → p-1916c2b0.entry.js} +1 -1
  181. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  182. package/dist/zonos-elements/{p-c09540bc.entry.js → p-34fc45e5.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-e684e68f.entry.js → p-3deb91cb.entry.js} +1 -1
  184. package/dist/zonos-elements/{p-1368dce7.system.entry.js → p-4a227683.system.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-bcbbe867.entry.js → p-4cee62fb.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-c1ab70d2.entry.js → p-4d776228.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-bdaf94a4.system.entry.js → p-50a15e3d.system.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-d30e8c3a.entry.js → p-55742c52.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-20842d8c.system.entry.js → p-56c11359.system.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-d12fa775.entry.js → p-5a79e1f4.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-df240101.system.entry.js → p-5db00bfa.system.entry.js} +1 -1
  192. package/dist/zonos-elements/p-5dd78b4b.js +1 -0
  193. package/dist/zonos-elements/{p-d2ef0416.system.entry.js → p-66934a78.system.entry.js} +1 -1
  194. package/dist/zonos-elements/p-7237f43b.system.entry.js +1 -0
  195. package/dist/zonos-elements/p-72a181b5.entry.js +1 -0
  196. package/dist/zonos-elements/p-75a27c68.entry.js +1 -0
  197. package/dist/zonos-elements/{p-6f19845a.system.entry.js → p-7dbac3ae.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-2ac0fcb8.system.entry.js → p-7df3e44b.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-5be87ae0.entry.js → p-80e7cab5.entry.js} +1 -1
  200. package/dist/zonos-elements/p-838e335c.entry.js +1 -0
  201. package/dist/zonos-elements/{p-dfb4360d.system.entry.js → p-9262a57c.system.entry.js} +1 -1
  202. package/dist/zonos-elements/p-947f5092.js +17 -0
  203. package/dist/zonos-elements/{p-3e7dbe9c.system.entry.js → p-9de27162.system.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-bb785f33.entry.js → p-9e761130.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-c908a7a3.entry.js → p-a1142a95.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-d4f9e464.system.entry.js → p-a2b3c1ef.system.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-8d52ac69.system.entry.js → p-a661dd45.system.entry.js} +1 -1
  208. package/dist/zonos-elements/p-a98b8b68.system.js +18 -0
  209. package/dist/zonos-elements/{p-365d4481.system.entry.js → p-aa74b61a.system.entry.js} +1 -1
  210. package/dist/zonos-elements/{p-2fa41e93.entry.js → p-ade15fd2.entry.js} +1 -1
  211. package/dist/zonos-elements/{p-87d89870.system.entry.js → p-b1c76c38.system.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-770d414a.system.entry.js → p-b2cd18b4.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-0fc5a2cc.system.entry.js → p-b47fcd8c.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-c308c5bc.entry.js → p-c263f95f.entry.js} +1 -1
  215. package/dist/zonos-elements/p-ca411d97.entry.js +1 -0
  216. package/dist/zonos-elements/p-cab6bd98.system.js +1 -0
  217. package/dist/zonos-elements/{p-266a86d4.system.entry.js → p-d50fef06.system.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-7a379538.entry.js → p-d983d472.entry.js} +1 -1
  219. package/dist/zonos-elements/{p-df578aa9.system.entry.js → p-dc4e867e.system.entry.js} +1 -1
  220. package/dist/zonos-elements/p-dee6adff.system.js +1 -0
  221. package/dist/zonos-elements/{p-2c9714e8.system.entry.js → p-e36e724b.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-8df3c6a0.entry.js → p-e673a4d9.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-d004565d.system.entry.js → p-e76dc266.system.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-3576d900.entry.js → p-ed827ca3.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-8dae0f0b.entry.js → p-ef12af4b.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-3a198386.entry.js → p-f0046c48.entry.js} +1 -1
  227. package/dist/zonos-elements/{p-62dbc5f8.system.entry.js → p-f00a56be.system.entry.js} +1 -1
  228. package/dist/zonos-elements/{p-4416fe27.entry.js → p-f2909fb8.entry.js} +1 -1
  229. package/dist/zonos-elements/{p-fbc274a8.system.entry.js → p-f7d24382.system.entry.js} +1 -1
  230. package/dist/zonos-elements/{p-12459b59.entry.js → p-fb87172c.entry.js} +1 -1
  231. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  232. package/package.json +1 -1
  233. package/dist/cjs/submitGtag-9ac5a42e.js +0 -116
  234. package/dist/esm/submitGtag-543058f9.js +0 -113
  235. package/dist/esm-es5/paypal-38ca5d21.js +0 -17
  236. package/dist/esm-es5/submitGtag-543058f9.js +0 -1
  237. package/dist/zonos-elements/p-0ad75f38.entry.js +0 -1
  238. package/dist/zonos-elements/p-0f89fc76.system.entry.js +0 -1
  239. package/dist/zonos-elements/p-17a8a514.system.js +0 -1
  240. package/dist/zonos-elements/p-24407504.js +0 -17
  241. package/dist/zonos-elements/p-387f6a4d.js +0 -1
  242. package/dist/zonos-elements/p-47bde0ba.system.js +0 -18
  243. package/dist/zonos-elements/p-4aa5f5db.entry.js +0 -1
  244. package/dist/zonos-elements/p-70e2f9f9.system.entry.js +0 -1
  245. package/dist/zonos-elements/p-720ae42c.system.js +0 -1
  246. package/dist/zonos-elements/p-87eef44c.entry.js +0 -1
  247. package/dist/zonos-elements/p-f2a74e43.entry.js +0 -1
@@ -10,12 +10,11 @@ const cleanHtmlMarkdown = require('./cleanHtmlMarkdown-31da84b7.js');
10
10
  const classes = require('./classes-b7918f56.js');
11
11
  const zonosStore = require('./zonosStore-1c517e55.js');
12
12
  const hasInclusivePrice = require('./hasInclusivePrice-c781c336.js');
13
- const paypal = require('./paypal-73a542cb.js');
13
+ const paypal = require('./paypal-e278f405.js');
14
14
  const handleFetch = require('./handleFetch-954f30e1.js');
15
15
  const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
16
16
  const getBorderRadius = require('./getBorderRadius-db55a464.js');
17
17
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
18
- const submitGtag = require('./submitGtag-9ac5a42e.js');
19
18
  const ILanguage = require('./ILanguage-98b04442.js');
20
19
  const placeTestOrder = require('./placeTestOrder-aefd31e8.js');
21
20
  const isDarkColor = require('./isDarkColor-bfe6d1eb.js');
@@ -26,6 +25,7 @@ const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
26
25
  const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-b8abf6de.js');
27
26
  const TaxId = require('./TaxId-12acedde.js');
28
27
  require('./isContrastColor-6a17f408.js');
28
+ require('./submitGtag-4241212b.js');
29
29
  require('./debounce-3e17b4e9.js');
30
30
  require('./ShortAddressCode-bec338b0.js');
31
31
 
@@ -341,6 +341,13 @@ const ZonosCheckoutFinish = class {
341
341
  * Is waiting to redirect to a different page
342
342
  */
343
343
  this.isWaitingToRedirect = true;
344
+ /**
345
+ * True when we are about to immediately redirect to the merchant's
346
+ * successRedirectUrl (CLOSE_MODAL + successRedirectUrl). Used by the
347
+ * render method to keep the dialog in a loading state instead of briefly
348
+ * showing the success notification before navigation.
349
+ */
350
+ this.isImmediateRedirecting = false;
344
351
  this.pullOrder = async () => {
345
352
  var _a, _b;
346
353
  const checkoutSessionId = localization.storageStore.checkoutSessionId;
@@ -424,8 +431,9 @@ const ZonosCheckoutFinish = class {
424
431
  window.location.href = url;
425
432
  };
426
433
  this.isRedirectBehavior = () => {
427
- const { successBehavior } = zonosStore.zonosStore.checkoutSettings;
434
+ const { successBehavior, successRedirectUrl } = zonosStore.zonosStore.checkoutSettings;
428
435
  return (successBehavior === 'REDIRECT_TO_SUCCESS_PAGE' ||
436
+ (successBehavior === 'CLOSE_MODAL' && !!successRedirectUrl) ||
429
437
  !!cart.cartStore.externalConfirmationPageURL);
430
438
  };
431
439
  /**
@@ -462,13 +470,71 @@ const ZonosCheckoutFinish = class {
462
470
  `${redirectUrl}${hasQueryString ? '&' : '?'}${queryString}`
463
471
  : redirectUrl);
464
472
  };
473
+ /**
474
+ * Immediately redirect to the merchant's successRedirectUrl with the
475
+ * zonosCheckoutSessionId query param, without polling for the order. Used
476
+ * by CLOSE_MODAL when a successRedirectUrl is provided, so the merchant
477
+ * can look up the order themselves using that query param. The
478
+ * `zonos` prefix avoids colliding with merchant query params.
479
+ */
480
+ this.redirectToCloseModalSuccessPage = () => {
481
+ const redirectUrl = zonosStore.zonosStore.checkoutSettings.successRedirectUrl;
482
+ const checkoutSessionId = localization.storageStore.checkoutSessionId;
483
+ this.isWaitingToRedirect = true;
484
+ if (!checkoutSessionId) {
485
+ this.redirectToUrl(redirectUrl);
486
+ return;
487
+ }
488
+ // Use the URL API so that an existing query string is preserved and a
489
+ // `#fragment` (if any) keeps `zonosCheckoutSessionId` in the query
490
+ // rather than appending it after the fragment marker.
491
+ try {
492
+ const url = new URL(redirectUrl);
493
+ url.searchParams.set('zonosCheckoutSessionId', checkoutSessionId);
494
+ this.redirectToUrl(url.toString());
495
+ }
496
+ catch (_a) {
497
+ // Fallback for relative URLs (which `new URL(...)` rejects without a
498
+ // base): split on `#` first so the fragment stays at the end.
499
+ const fragmentIndex = redirectUrl.indexOf('#');
500
+ const base = fragmentIndex === -1
501
+ ? redirectUrl
502
+ : redirectUrl.slice(0, fragmentIndex);
503
+ const fragment = fragmentIndex === -1 ? '' : redirectUrl.slice(fragmentIndex);
504
+ const separator = base.includes('?') ? '&' : '?';
505
+ const query = `zonosCheckoutSessionId=${encodeURIComponent(checkoutSessionId)}`;
506
+ this.redirectToUrl(`${base}${separator}${query}${fragment}`);
507
+ }
508
+ };
465
509
  this.handleSuccessBehavior = async () => {
466
510
  /**
467
511
  * Save placed order info so we can show order info if they try to place the order again
468
512
  */
469
513
  this.saveOrderIdForDuplicationIssue();
470
- const { successBehavior } = zonosStore.zonosStore.checkoutSettings;
514
+ const { successBehavior, successRedirectUrl } = zonosStore.zonosStore.checkoutSettings;
471
515
  switch (true) {
516
+ // CLOSE_MODAL + successRedirectUrl: redirect immediately with
517
+ // `zonosCheckoutSessionId`, without polling for the order — merchants
518
+ // look up the order on their success page using the query param.
519
+ // `externalConfirmationPageURL` (set per-cart on legacy facade flows)
520
+ // continues to take precedence and falls through to the polling-based
521
+ // REDIRECT branch below.
522
+ case successBehavior === 'CLOSE_MODAL' &&
523
+ !!successRedirectUrl &&
524
+ !cart.cartStore.externalConfirmationPageURL:
525
+ {
526
+ // Keep the dialog in a steady loading state instead of briefly
527
+ // flashing the success/finish screen — navigation happens
528
+ // immediately, so flashing "Order complete!" for a few hundred ms
529
+ // before the page changes is more confusing than a spinner. The
530
+ // outer caller (`checkStripePaymentStatus` etc.) unconditionally
531
+ // resets `isLoading` after this returns, so the render method keys
532
+ // off `isImmediateRedirecting` instead.
533
+ this.isWaitingToRedirect = true;
534
+ this.isImmediateRedirecting = true;
535
+ this.redirectToCloseModalSuccessPage();
536
+ break;
537
+ }
472
538
  // If the merchant wants to redirect to a different page
473
539
  case successBehavior === 'REDIRECT_TO_SUCCESS_PAGE':
474
540
  case !!cart.cartStore.externalConfirmationPageURL: {
@@ -621,7 +687,7 @@ const ZonosCheckoutFinish = class {
621
687
  window.history.replaceState({}, '', url.toString());
622
688
  // Payment doesn't go through
623
689
  if (error && (messages === null || messages === void 0 ? void 0 : messages.length)) {
624
- submitGtag.submitGtag({
690
+ paypal.submitAnalytics({
625
691
  event: 'zonos-checkout-payment-fail',
626
692
  metadata: {
627
693
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -642,14 +708,14 @@ const ZonosCheckoutFinish = class {
642
708
  // Save new order info in case the user reloads before we get order info
643
709
  this.saveOrderIdForDuplicationIssue();
644
710
  const checkoutSessionId = localization.storageStore.checkoutSessionId;
645
- submitGtag.submitGtag({
711
+ paypal.submitAnalytics({
646
712
  event: 'zonos-checkout-success',
647
713
  metadata: this.buildPurchaseMetadata({
648
714
  checkoutSessionId: checkoutSessionId || '',
649
715
  currency: currency === null || currency === void 0 ? void 0 : currency.toUpperCase(),
650
716
  }),
651
717
  });
652
- submitGtag.submitGtag({
718
+ paypal.submitAnalytics({
653
719
  event: 'purchase',
654
720
  metadata: this.buildPurchaseMetadata({
655
721
  checkoutSessionId: checkoutSessionId || '',
@@ -701,13 +767,13 @@ const ZonosCheckoutFinish = class {
701
767
  // show success message right away when order id is already created
702
768
  this.isLoading = false;
703
769
  if (paypal.paypalStore.orderIdCreated) {
704
- submitGtag.submitGtag({
770
+ paypal.submitAnalytics({
705
771
  event: 'zonos-checkout-success',
706
772
  metadata: this.buildPurchaseMetadata({
707
773
  checkoutSessionId: localization.storageStore.checkoutSessionId || '',
708
774
  }),
709
775
  });
710
- submitGtag.submitGtag({
776
+ paypal.submitAnalytics({
711
777
  event: 'purchase',
712
778
  metadata: this.buildPurchaseMetadata({
713
779
  checkoutSessionId: localization.storageStore.checkoutSessionId || '',
@@ -738,13 +804,13 @@ const ZonosCheckoutFinish = class {
738
804
  this.isLoading = false;
739
805
  if (cart.storeCreditStore.orderIdCreated) {
740
806
  const checkoutSessionId = localization.storageStore.checkoutSessionId;
741
- submitGtag.submitGtag({
807
+ paypal.submitAnalytics({
742
808
  event: 'zonos-checkout-success',
743
809
  metadata: this.buildPurchaseMetadata({
744
810
  checkoutSessionId: checkoutSessionId || '',
745
811
  }),
746
812
  });
747
- submitGtag.submitGtag({
813
+ paypal.submitAnalytics({
748
814
  event: 'purchase',
749
815
  metadata: this.buildPurchaseMetadata({
750
816
  checkoutSessionId: checkoutSessionId || '',
@@ -818,11 +884,11 @@ const ZonosCheckoutFinish = class {
818
884
  }
819
885
  render() {
820
886
  const isTestMode = handleFetch.getIsTestMode();
821
- return (index.h(index.Host, { key: 'c74f250bac797f8c000bac4892bc5ab56c0867bb', class: "zonos--checkout-finish zonos--elements", style: {
887
+ return (index.h(index.Host, { key: '97291e81aef62884ec0519d93dcc7ff184b2913d', class: "zonos--checkout-finish zonos--elements", style: {
822
888
  '--zonos--border-radius': getBorderRadius.getBorderRadius({
823
889
  overrideBorderStyle: this.borderRadius,
824
890
  }),
825
- } }, !this.isLoading && (index.h("div", { key: '5ee705381b0246f5035f512c9d19beba6dc33d4f', class: "zonos--finish-details" }, index.h("div", { key: '1d1a54d8f73535aaada32601c5e771c9fd381104', 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: '68c898ee87166d08bd52702ae8f9bfe51c393076', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '98b6eaff782fe34a8dbd258e4c7d0c81c3577bcc', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (index.h("zonos-button", { key: 'ccc5e7973b2e962e22ac56dcad6e33b048621036',
891
+ } }, this.isImmediateRedirecting && (index.h("div", { key: '40569271fb67acb22a4a0fa3c0fc8e1c0c641061', class: "loading-wrapper" }, index.h("zonos-spinner", { key: '8b431c7751e5e32fe97f4244151ece7de3c6d9bc', size: 48 }))), !this.isLoading && !this.isImmediateRedirecting && (index.h("div", { key: '0f5c89c285acf8c4f79e058c69cde9011df7e1a2', class: "zonos--finish-details" }, index.h("div", { key: '7491b15a90941476338ec6b1738312ffd4ebd2c0', 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: '87e0d022014596b02d813ee510917b7ec9b55e09', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '456bd678d5ba6f5b74da34f906bbe9f4bed870ac', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), this.shouldRenderCloseButtonForRedirectBehavior() && (index.h("zonos-button", { key: 'ebde02a73e71ad88d7d68629f2cd8a34d961aa63',
826
892
  // Only show loading spinner if it's not an error notification
827
893
  loading: this.isWaitingToRedirect &&
828
894
  this.notificationType !== 'error', onClick: () => {
@@ -834,9 +900,9 @@ const ZonosCheckoutFinish = class {
834
900
  }
835
901
  this.closeClickHandler();
836
902
  }, size: "md", variant: "primary" }, localization.translate('Close'))), !window.Zonos.isLegacyCheckout &&
837
- this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: 'cd30bc010f2a3e935d9b80e56389581a9150b021', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
903
+ this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: '2b86a3d9fb705ad080af532e645fd26aa844a14a', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode &&
838
904
  cart.cartStore.step === 'finish' &&
839
- this.notificationType === 'success' && (index.h("div", { key: '458809f316ac5129efbc7fe90d1549c042d477af', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: 'dcf0c595cb119a731c34c1aff09960db8a1fb251', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: '76d55870370b4906970b3e2109617ba2230eee7e', onClick: () => {
905
+ this.notificationType === 'success' && (index.h("div", { key: '83a9dc9fb81baaf9e223dfa9fe0fc0fc4c106635', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: 'edf8057b0430e3e4bb8fd675554659781e1724ae', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: '3c40eee58d8a2ad5951dfdfc7c8d485052b6ba73', onClick: () => {
840
906
  const isZonosDashboard = window.location.hostname.includes('dashboard.zonos.com');
841
907
  this.redirectToUrl(isZonosDashboard
842
908
  ? '/orders/all'
@@ -896,10 +962,10 @@ const ZonosCheckoutFooter = class {
896
962
  const languageLabel = (_a = ILanguage.languages.find(x => x.code === localization.localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
897
963
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
898
964
  const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
899
- return (index.h(index.Host, { key: 'aa7fe5e0bb22626f590d93a6c8a52876523a2dfb', class: classes.classes(['zonos--elements', this.isMobile && 'mobile']) }, index.h("div", { key: '5fb0fc90649a06e324935484d0c5c1dba31d792c', class: "zonos--checkout-footer" }, index.h("div", { key: 'e34ac7fda1d9a13830276313e4a36a7840497d7e', class: "zonos--checkout-locale-wrapper" }, index.h("zonos-button", { key: '775156c9f331715768b1bf9c36970d0c7da02fd2', 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: 'e2cc31362529661507811b9f5aa68586b3bf9ea5', class: classes.classes([
965
+ return (index.h(index.Host, { key: '2200a14517d5d1dd81b68ecfb60ab6a691ebe581', class: classes.classes(['zonos--elements', this.isMobile && 'mobile']) }, index.h("div", { key: 'bc77f1ea299fa151ba9d4628653d6a3800856e85', class: "zonos--checkout-footer" }, index.h("div", { key: 'e2e9f901e3546a48ba88aca9c0f422785d32f78d', class: "zonos--checkout-locale-wrapper" }, index.h("zonos-button", { key: '60df35f860aa3c59bfa6f470adab3c882301c529', 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: '3d4acf669d35fcbf4364fb56f7a18bb3a8f61e1b', class: classes.classes([
900
966
  'zonos--checkout-footer-dialog',
901
967
  this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
902
- ]) }, index.h("zonos-language-select", { key: 'ad43b0a6bb947a69ea970485ee8d9afb5c8d1adb', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: 'c652833a9ce05beb22b9530003863ac0e5e9f8ea', class: "zonos--checkout-footer-icon-wrapper" }, index.h("a", { key: 'f2f8fb4ef070fe6a59a8b787e9e3e6237c2cc395', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: '50b8962317bfc01bc7edbbe4c51f58476ca3c4ec', textColor: colorDesktop }, "Privacy policy")), index.h("div", { key: '7b4b70f7c0bd4ae5f385d6738f844a795261b9b9', class: "zonos--checkout-footer-logo" }, index.h("zonos-text", { key: '8a4279a6584a376cb10e8da6b33d8006ac896d5b', textColor: colorDesktop }, "Powered by"), index.h("a", { key: '523a822b1c5b80bcb1d5dde2a7d9fce5fe476d20', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: '19753e93a7820765cf208916f53adebdcdf05cf9', autoHeight: true, content: ZonosIconDark, size: 108 })))))));
968
+ ]) }, index.h("zonos-language-select", { key: '5b32a3d11a725c7af0c358acf9a15c6ec17201ac', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: 'f678c6d76ad122ccbd3e18e6fa9deacd9ec76b93', class: "zonos--checkout-footer-icon-wrapper" }, index.h("a", { key: '08cc72da5cbc00bd927828ae1df960a80604519c', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: 'df8d1727117c28c694c8450d5268895f67b23dff', textColor: colorDesktop }, "Privacy policy")), index.h("div", { key: 'c75b73f3bd573aa2bdd60b7fd05e6b06c8ee8d62', class: "zonos--checkout-footer-logo" }, index.h("zonos-text", { key: 'b57bf8ed2b6498f9cd64d7ab066625376642abda', textColor: colorDesktop }, "Powered by"), index.h("a", { key: 'cd12e10b1e4acd43fea371aad6d74ee8a89f1fbe', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: '06465fba84c0c05e330779f522fdcabed817d5de', autoHeight: true, content: ZonosIconDark, size: 108 })))))));
903
969
  }
904
970
  get el() { return index.getElement(this); }
905
971
  static get watchers() { return {
@@ -912,7 +978,7 @@ const CheckmarkLineIcon = `<svg color="var(--zonos-elements-gray-1000)" xmlns="h
912
978
 
913
979
  const RemoveLineIcon = `<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M14.475 10.586a.75.75 0 1 0-1.06-1.06L12 10.938l-1.414-1.414a.75.75 0 0 0-1.06 1.06L10.938 12l-1.414 1.414a.75.75 0 1 0 1.06 1.06L12 13.062l1.414 1.414a.75.75 0 0 0 1.06-1.06L13.062 12l1.414-1.414Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>`;
914
980
 
915
- const zonosCheckoutPaymentCss = ".sc-zonos-checkout-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:24px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:8px}.sc-zonos-checkout-payment-h .zonos--error-banner.sc-zonos-checkout-payment{margin-bottom:16px}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-payment{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-checkout-payment-h .zonos--pay-in-base-currency-btn.sc-zonos-checkout-payment{-webkit-box-shadow:none;box-shadow:none}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:12px;bottom:-4px;padding-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-text.sc-zonos-checkout-payment{text-align:center}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:100%}.sc-zonos-checkout-payment-h .zonos--test-cards.sc-zonos-checkout-payment{margin-top:auto;padding-top:16px}";
981
+ const zonosCheckoutPaymentCss = ".sc-zonos-checkout-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:24px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:8px}.sc-zonos-checkout-payment-h .zonos--error-banner.sc-zonos-checkout-payment{margin-bottom:16px}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-payment{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-checkout-payment-h .zonos--pay-in-base-currency-btn.sc-zonos-checkout-payment{-webkit-box-shadow:none;box-shadow:none}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:12px;bottom:-4px;padding-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-text.sc-zonos-checkout-payment{text-align:center}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:100%}.sc-zonos-checkout-payment-h .zonos--test-cards.sc-zonos-checkout-payment{margin-top:auto;padding-top:16px}.mobile.mobile.sc-zonos-checkout-payment-h{-ms-scroll-chaining:chained;overscroll-behavior:auto}.mobile.mobile.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{-ms-scroll-chaining:chained;overscroll-behavior:auto}";
916
982
  const ZonosCheckoutPaymentStyle0 = zonosCheckoutPaymentCss;
917
983
 
918
984
  const ZonosCheckoutPayment = class {
@@ -970,7 +1036,7 @@ const ZonosCheckoutPayment = class {
970
1036
  }
971
1037
  cart.stripeStore.checkoutSettlementCurrency = currencyCode;
972
1038
  // submit google tag when the form is complete
973
- submitGtag.submitGtag({
1039
+ paypal.submitAnalytics({
974
1040
  event: 'zonos-checkout-payment-info',
975
1041
  metadata: {
976
1042
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -1098,7 +1164,10 @@ const ZonosCheckoutPayment = class {
1098
1164
  display: isPaypalTabSelected ? 'block' : 'none',
1099
1165
  } }))), isTestMode && (index.h("zonos-card", { backgroundColor: "gray-100", borderRadius: 12, class: "zonos--test-cards" }, index.h("zonos-v-stack", { spacing: 16 }, index.h("div", null, index.h("zonos-text", { type: "semiBoldLabel" }, localization.translate('Test cards')), index.h("zonos-text", { textColor: "gray-700" }, localization.translate('Click to copy the card number. Use any future expiration date and three number CVC.'))), index.h("zonos-button", { icon: index.h("zonos-icon", { content: CheckmarkLineIcon }), justifyContent: "flex-start", onClick: () => this.copyCardToClipboard('4242424242424242') }, localization.translate('Success'), " (****4242)"), index.h("zonos-button", { icon: index.h("zonos-icon", { content: RemoveLineIcon }), justifyContent: "flex-start", onClick: () => this.copyCardToClipboard('4000000000000002') }, localization.translate('Failure'), " (****0002)")), index.h("zonos-notification", null)))));
1100
1166
  };
1101
- return (index.h(index.Host, { class: "zonos--checkout-payment zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Payment method')), renderPayment())));
1167
+ return (index.h(index.Host, { class: classes.classes([
1168
+ 'zonos--checkout-payment zonos--elements',
1169
+ this.isMobile && 'mobile',
1170
+ ]) }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Payment method')), renderPayment())));
1102
1171
  }
1103
1172
  get ele() { return index.getElement(this); }
1104
1173
  static get watchers() { return {
@@ -1204,17 +1273,17 @@ const ZonosCheckoutProgressTabs = class {
1204
1273
  color: labelSelectedColor,
1205
1274
  })
1206
1275
  : labelSelectedColor;
1207
- return (index.h(index.Host, { key: '3c7b6b5ecce353611856c14c70eec992a8024b3b', class: "zonos--elements", style: {
1276
+ return (index.h(index.Host, { key: 'f7ea289329f5f1e5fd1a5fdbd790b581de1666d3', class: "zonos--elements", style: {
1208
1277
  '--zonos--color': contrastLabelColor,
1209
1278
  '--zonos--progress-percent': this.getTotalSuccessStep(),
1210
- } }, index.h("div", { key: '60e0e7895f1a5667c41baecba5533ecbafcfd11c', class: "zonos--tab-wrapper" }, Object.values(cart.cartStore.tabItems).map((tab, index$1) => {
1279
+ } }, index.h("div", { key: 'c071c27dee5b5ddf7b59cddd6de668b1bd72df2a', class: "zonos--tab-wrapper" }, Object.values(cart.cartStore.tabItems).map((tab, index$1) => {
1211
1280
  const isSelected = tab.value === selectedStep;
1212
1281
  return (index.h("button", { "aria-label": `Tab ${tab.label}`, class: classes.classes([
1213
1282
  'zonos--tab-item',
1214
1283
  tab.value === selectedStep && 'selected',
1215
1284
  tab.isDone && 'done',
1216
1285
  ]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => this.setTabSelected(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" }, localization.translate(tab.label))));
1217
- })), index.h("div", { key: 'fd6cbddf4abb19bedabc12b3c79c8dcb4a3bc938', class: "zonos--tab-progress" }, index.h("div", { key: '83d85b7bcdac39b41d6e126d764242bf1076374a', class: "zonos--progress-bar-fill" }))));
1286
+ })), index.h("div", { key: '9c332b9053d57a05d8db19d179696a8261a1ac94', class: "zonos--tab-progress" }, index.h("div", { key: '3b303b4dd931e4a1d030ecc62cbbabd232354636', class: "zonos--progress-bar-fill" }))));
1218
1287
  }
1219
1288
  static get assetsDirs() { return ["assets"]; }
1220
1289
  get ele() { return index.getElement(this); }
@@ -1381,7 +1450,7 @@ const taxIdValidationResult = ({ companyName, shippingCountry, taxId, }) => {
1381
1450
  };
1382
1451
  };
1383
1452
 
1384
- const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;height:100%;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info ul.sc-zonos-customer-info{list-style:disc;padding-left:8px}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-4px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:2}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
1453
+ const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;height:100%;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--error-banner.sc-zonos-customer-info ul.sc-zonos-customer-info{list-style:disc;padding-left:8px}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-4px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:2}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}.mobile.mobile.sc-zonos-customer-info-h{-ms-scroll-chaining:chained;overscroll-behavior:auto}.mobile.mobile.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{-ms-scroll-chaining:chained;overscroll-behavior:auto}";
1385
1454
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
1386
1455
 
1387
1456
  /**
@@ -1878,7 +1947,10 @@ const ZonosCustomerInfo = class {
1878
1947
  const defaultEmail = ((_b = this.defaultAddress.find(Boolean)) === null || _b === void 0 ? void 0 : _b.email) ||
1879
1948
  ((_e = (_d = (_c = cart.stripeStore.customerProfile) === null || _c === void 0 ? void 0 : _c.locations) === null || _d === void 0 ? void 0 : _d.find(Boolean)) === null || _e === void 0 ? void 0 : _e.email) ||
1880
1949
  ((_f = cart.stripeStore.customerProfile) === null || _f === void 0 ? void 0 : _f.email);
1881
- return (index.h(index.Host, { class: "zonos--customer-info zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Customer information')), this.showErrorBanner && (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, localization.translate('Missing required fields. Make sure all fields are completed.'))), index.h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: localization.translate('Contact') }), this.renderAddressComponent('shipping'), index.h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: cart.stripeStore.stripeShippingSameAsBilling, label: localization.translate('Shipping address same as billing'), onCheckboxSelected: e => {
1950
+ return (index.h(index.Host, { class: classes.classes([
1951
+ 'zonos--customer-info zonos--elements',
1952
+ this.isMobile && 'mobile',
1953
+ ]) }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Customer information')), this.showErrorBanner && (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, localization.translate('Missing required fields. Make sure all fields are completed.'))), index.h("zonos-link-authentication", { defaultEmail: defaultEmail, isEmailError: this.isEmailError, onLinkAuthenticationChange: this.handleEmailValidation, titleText: localization.translate('Contact') }), this.renderAddressComponent('shipping'), index.h("zonos-checkbox", { class: "zonos--shipping-same-as-billing-cbx", isChecked: cart.stripeStore.stripeShippingSameAsBilling, label: localization.translate('Shipping address same as billing'), onCheckboxSelected: e => {
1882
1954
  cart.stripeStore.stripeShippingSameAsBilling = e.detail;
1883
1955
  } }), index.h("zonos-collapse", { collapsed: !showBilling }, this.renderAddressComponent('billing')), index.h("div", { class: "zonos--group-btn" }, index.h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, loading: this.continueLoading, onClick: () => this.continueClickHandler(), size: "lg",
1884
1956
  // use primary type when on mobile mode
@@ -1924,11 +1996,11 @@ const ZonosRestState = class {
1924
1996
  }
1925
1997
  render() {
1926
1998
  const imageUrl = this.getImageRestState();
1927
- return (index.h(index.Host, { key: '2d9be86849c6ff2f039ca21676cbdf912538eb1d', class: classes.classes(['zonos--elements zonos--restState']), style: {
1999
+ return (index.h(index.Host, { key: 'c39228c5a45be0c27fc805859ba896f346f4c7bb', class: classes.classes(['zonos--elements zonos--restState']), style: {
1928
2000
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
1929
- } }, index.h("div", { key: 'f538f05fe92eca4ee05daf72ee3387bea337c20c', class: "zonos--restState-image" }, index.h("img", { key: 'cc752b1ed3e9e656810c901df9f8b19462efc978', alt: this.restStateType, onError: () => {
2001
+ } }, index.h("div", { key: '466d38527c50fac57c85b29b6d501139a55c652c', class: "zonos--restState-image" }, index.h("img", { key: '233348dc1fe72c37ac3485dc4ae577b02d44d0cc', alt: this.restStateType, onError: () => {
1930
2002
  this.isErrorImageLoad = true;
1931
- }, src: imageUrl })), index.h("div", { key: '4729c415dbac98876fcd907437b8df21b925dec5', class: "content" }, index.h("zonos-text", { key: '39313c8c71d228cd1076e809146ad7ac3d877a9a', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '69813bd32ae3867ebebcc511655f2052b1175945', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: '98b085930fd76e2ff095cc971ae4699041c1a550', class: "action" }, index.h("slot", { key: '188318643319081914ed30aad91de5f15b014953' }))));
2003
+ }, src: imageUrl })), index.h("div", { key: '0ead09005b4a4e59fcbe5b673ef206d09c6f344f', class: "content" }, index.h("zonos-text", { key: '2f6d50f5562ab86918755b2d20aeab1ba170e0d1', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '9304b2421ac05dea5e8567666dc3fd5c279bf6dd', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: '00323cff6ad4b67a5af980dcbfce5cb0c59150c4', class: "action" }, index.h("slot", { key: '256fc2f99f345d0302d6fa4467b22558723dae7b' }))));
1932
2004
  }
1933
2005
  static get assetsDirs() { return ["assets"]; }
1934
2006
  };
@@ -2021,7 +2093,7 @@ const ChevronUpIcon = `<svg width="25" height="24" viewBox="0 0 25 24" fill="non
2021
2093
  </svg>
2022
2094
  `;
2023
2095
 
2024
- const zonosShippingCss = ".sc-zonos-shipping-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:-16px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--error-banner.sc-zonos-shipping{margin-bottom:16px}.sc-zonos-shipping-h .zonos--shipping-method-error.sc-zonos-shipping{margin-top:24px}.sc-zonos-shipping-h zonos-button.sc-zonos-shipping{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;z-index:1;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h .zonos--shipping-options-wrapper.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:24px;-ms-flex-align:center;align-items:center;background:transparent;width:100%;border:none;cursor:pointer;position:-webkit-sticky;position:sticky;top:0;z-index:1;-webkit-transition:0.5s all ease;transition:0.5s all ease}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping zonos-icon.sc-zonos-shipping{-webkit-transition:-webkit-transform 0.3s ease;transition:-webkit-transform 0.3s ease;transition:transform 0.3s ease;transition:transform 0.3s ease, -webkit-transform 0.3s ease}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.collapsed.sc-zonos-shipping{margin-bottom:0}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.collapsed.sc-zonos-shipping zonos-icon.sc-zonos-shipping{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping::before,.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping::after{content:\"\";display:block;width:80%;height:1px;background-color:var(--zonos-elements-border-color);-ms-flex-negative:1;flex-shrink:1}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping .zonos--title-wrapper.sc-zonos-shipping{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;gap:8px;-ms-flex-align:center;align-items:center}.sc-zonos-shipping-h .zonos--dap-wrapper.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}";
2096
+ const zonosShippingCss = ".sc-zonos-shipping-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:-16px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--error-banner.sc-zonos-shipping{margin-bottom:16px}.sc-zonos-shipping-h .zonos--shipping-method-error.sc-zonos-shipping{margin-top:24px}.sc-zonos-shipping-h zonos-button.sc-zonos-shipping{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;z-index:1;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h .zonos--shipping-options-wrapper.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:24px;-ms-flex-align:center;align-items:center;background:transparent;width:100%;border:none;cursor:pointer;position:-webkit-sticky;position:sticky;top:0;z-index:1;-webkit-transition:0.5s all ease;transition:0.5s all ease}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping zonos-icon.sc-zonos-shipping{-webkit-transition:-webkit-transform 0.3s ease;transition:-webkit-transform 0.3s ease;transition:transform 0.3s ease;transition:transform 0.3s ease, -webkit-transform 0.3s ease}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.collapsed.sc-zonos-shipping{margin-bottom:0}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.collapsed.sc-zonos-shipping zonos-icon.sc-zonos-shipping{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping::before,.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping::after{content:\"\";display:block;width:80%;height:1px;background-color:var(--zonos-elements-border-color);-ms-flex-negative:1;flex-shrink:1}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping .zonos--title-wrapper.sc-zonos-shipping{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;gap:8px;-ms-flex-align:center;align-items:center}.sc-zonos-shipping-h .zonos--dap-wrapper.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}.mobile.mobile.sc-zonos-shipping-h{-ms-scroll-chaining:chained;overscroll-behavior:auto}.mobile.mobile.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{-ms-scroll-chaining:chained;overscroll-behavior:auto}";
2025
2097
  const ZonosShippingStyle0 = zonosShippingCss;
2026
2098
 
2027
2099
  const ZonosShipping = class {
@@ -2096,7 +2168,7 @@ const ZonosShipping = class {
2096
2168
  return;
2097
2169
  }
2098
2170
  // submit google tag when the form is complete
2099
- submitGtag.submitGtag({
2171
+ paypal.submitAnalytics({
2100
2172
  event: 'zonos-checkout-shipping-info',
2101
2173
  metadata: {
2102
2174
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -2252,7 +2324,10 @@ const ZonosShipping = class {
2252
2324
  this.collapsedDAPOptions = !this.collapsedDAPOptions;
2253
2325
  } }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${localization.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: localization.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, localization.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { isMobile: this.isMobile, items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod })))));
2254
2326
  };
2255
- return (index.h(index.Host, { class: "zonos--shipping zonos--elements" }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, localization.translate('No shipping method selected'))), index.h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, localization.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.cartStore.customQuotingError
2327
+ return (index.h(index.Host, { class: classes.classes([
2328
+ 'zonos--shipping zonos--elements',
2329
+ this.isMobile && 'mobile',
2330
+ ]) }, index.h("div", { class: "zonos--group" }, index.h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, localization.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { class: "zonos--error-banner", intent: "error" }, localization.translate('No shipping method selected'))), index.h("zonos-text", { class: "zonos--shipping-method-title", type: "semiBoldLabel" }, localization.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.cartStore.customQuotingError
2256
2331
  ? cart.cartStore.customQuotingError
2257
2332
  : localization.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" }, renderServiceLevels())), index.h("div", { class: "zonos--group-btn" }, index.h("zonos-button", { backgroundColor: this.submitBtnColor, bold: true, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2258
2333
  // use primary type when on mobile mode
@@ -72,14 +72,14 @@ const ZonosCheckbox = class {
72
72
  customRoundRadius: '4px',
73
73
  overrideBorderStyle: this.borderStyle,
74
74
  });
75
- return (index.h(index.Host, { key: 'c2a9023becafd6d19ad769d449383924c85c641f', class: classes.classes(['zonos--elements zonos--checkbox']), style: {
75
+ return (index.h(index.Host, { key: 'a3db8981598a3703228e7c54bfd8350da718f744', class: classes.classes(['zonos--elements zonos--checkbox']), style: {
76
76
  '--zonos--background-color': backgroundColor,
77
77
  '--zonos--border-radius': borderStyle,
78
78
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
79
79
  '--zonos--size': `${this.size}px`,
80
- } }, index.h("label", { key: '352e8bda93f1ac9a7a55ba7038e922626c3a9594', class: classes.classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, index.h("input", { key: '71d664f9d83345ad4c143f71209bdb0a2cb16745', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
80
+ } }, index.h("label", { key: '6abc998d8a2338fd188e561ce38af6f351e87d93', class: classes.classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, index.h("input", { key: 'a2b3bc99d562f0ddc3337093597d962a28fe7006', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
81
81
  this.checkboxSelected.emit(e.target.checked);
82
- }, type: "checkbox" }), index.h("span", { key: 'c772c4e8dbbbef8035874616a0254fb4114a97c8', class: "checkmark-container" }, index.h("svg", { key: 'd497191975edeca268cc014431535f4befdd7b2c', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '15b26fdf72a058e81d4472d0c757a725c04e3f47', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (index.h("zonos-text", { key: '2d6015d16eda08dc39eff677f4858d2aed620891', size: this.fontSize }, this.label)))));
82
+ }, type: "checkbox" }), index.h("span", { key: '4ff30adc1de3f679a62ac4bdc23c89c7fbd70862', class: "checkmark-container" }, index.h("svg", { key: 'c235768b91c19a2edf0d5ed1d416e6b58be4f9eb', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.h("path", { key: '67e8a36292f8f4fe226709acdd08579d2092b836', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (index.h("zonos-text", { key: '9fdd82641973e8870e55117992ca26f1e585c801', size: this.fontSize }, this.label)))));
83
83
  }
84
84
  };
85
85
  ZonosCheckbox.style = ZonosCheckboxStyle0;
@@ -97,9 +97,9 @@ const ZonosToggle = class {
97
97
  this.options = [];
98
98
  }
99
99
  render() {
100
- return (index.h(index.Host, { key: 'e6be1b38ea1fd978a231a1c3dc85a92c1d86a24b', class: classes.classes(['zonos--elements zonos--toggle']), style: {
100
+ return (index.h(index.Host, { key: '220dcc3ef8685ea09db761d7a42a00a7309caa70', class: classes.classes(['zonos--elements zonos--toggle']), style: {
101
101
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
102
- } }, index.h("div", { key: 'e9ccac29c3f653e3e9d81d336089d6aaea6bbf6c', class: "wrapper" }, this.options.map(option => {
102
+ } }, index.h("div", { key: 'fa54f818b15ff33d88dc08a1df370ca9be17ff71', class: "wrapper" }, this.options.map(option => {
103
103
  const selected = option.value === this.value;
104
104
  return (index.h("button", { class: classes.classes(['zonos--option', selected && 'selected']), key: option.value, onClick: () => {
105
105
  this.toggleChanged.emit(option.value);
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
6
  const cart = require('./cart-d08c87e2.js');
7
- const paypal = require('./paypal-73a542cb.js');
7
+ const paypal = require('./paypal-e278f405.js');
8
8
  const localization = require('./localization-a7fac4b4.js');
9
9
  const zonosStore = require('./zonosStore-1c517e55.js');
10
10
  const buildCartItemsByTempCart = require('./buildCartItemsByTempCart-edddbf4b.js');
@@ -17,9 +17,9 @@ const createCustomEvent = require('./createCustomEvent-7b6fad95.js');
17
17
  const getBorderRadius = require('./getBorderRadius-db55a464.js');
18
18
  const isDarkColor = require('./isDarkColor-bfe6d1eb.js');
19
19
  const styles = require('./styles-d1e64fb9.js');
20
- const submitGtag = require('./submitGtag-9ac5a42e.js');
21
20
  const RemoveIcon = require('./RemoveIcon-081ac073.js');
22
21
  require('./isContrastColor-6a17f408.js');
22
+ require('./submitGtag-4241212b.js');
23
23
  require('./debounce-3e17b4e9.js');
24
24
 
25
25
  /**
@@ -1631,7 +1631,7 @@ const ZonosCheckout = class {
1631
1631
  }
1632
1632
  // Close the confirm dialog
1633
1633
  this.confirmDialogOpen = false;
1634
- submitGtag.submitGtag({
1634
+ paypal.submitAnalytics({
1635
1635
  event: 'zonos-checkout-close',
1636
1636
  metadata: {
1637
1637
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -1722,9 +1722,11 @@ const ZonosCheckout = class {
1722
1722
  }
1723
1723
  // apply theme to stripe elements
1724
1724
  await this.applyStripeTheme();
1725
+ const { successBehavior, successRedirectUrl } = zonosStore.zonosStore.checkoutSettings;
1725
1726
  this.isRedirectAfterOrder =
1726
- zonosStore.zonosStore.checkoutSettings.successBehavior ===
1727
- 'REDIRECT_TO_SUCCESS_PAGE' || !!cart.cartStore.externalConfirmationPageURL;
1727
+ successBehavior === 'REDIRECT_TO_SUCCESS_PAGE' ||
1728
+ (successBehavior === 'CLOSE_MODAL' && !!successRedirectUrl) ||
1729
+ !!cart.cartStore.externalConfirmationPageURL;
1728
1730
  return true;
1729
1731
  }
1730
1732
  reloadCheckoutSession() {
@@ -1818,12 +1820,20 @@ const ZonosCheckout = class {
1818
1820
  attachCheckout() {
1819
1821
  const buttonAnchorSelector = zonosStore.zonosStore.checkoutSettings.placeOrderButtonSelector;
1820
1822
  const alwaysTriggerInternationalCheckoutSelector = zonosStore.zonosStore.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;
1823
+ // `_zonosBase` injects this hidden button on page load when Stripe
1824
+ // redirects the shopper back with a `payment_intent_client_secret` query
1825
+ // param. We must still attach (and auto-click) it even when the merchant
1826
+ // is on a `buildCartDetail` only setup (no cartId / no place-order
1827
+ // selector configured yet) — otherwise the redirect-back never reopens
1828
+ // the checkout dialog to show the success/finish screen.
1829
+ const hasRedirectHiddenButton = !!document.querySelector(`#${CheckoutConfig.checkoutHiddenBtnSelector}`);
1821
1830
  VarianceTest.log(`attach checkout ${buttonAnchorSelector}`);
1822
1831
  VarianceTest.log(`attach checkout to always trigger international checkout selector: ${alwaysTriggerInternationalCheckoutSelector}`);
1823
1832
  // allow to load checkout if cartData is ready (Checkout can be loaded right away if tempCartUUID is in the URL)
1824
1833
  if (!buttonAnchorSelector &&
1825
1834
  !alwaysTriggerInternationalCheckoutSelector &&
1826
- !window.Zonos.cartData) {
1835
+ !window.Zonos.cartData &&
1836
+ !hasRedirectHiddenButton) {
1827
1837
  // do nothing if button element is not found
1828
1838
  return;
1829
1839
  }
@@ -1948,7 +1958,7 @@ const ZonosCheckout = class {
1948
1958
  isPreview: this.preview,
1949
1959
  sessionTimeout: CHECKOUT_SESSION_TIMEOUT,
1950
1960
  });
1951
- submitGtag.submitGtag({
1961
+ paypal.submitAnalytics({
1952
1962
  event: 'zonos-checkout-start',
1953
1963
  metadata: {
1954
1964
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -2347,7 +2357,7 @@ const ZonosCheckout = class {
2347
2357
  async handleCustomerInfoContinue() {
2348
2358
  var _a, _b, _c, _d;
2349
2359
  // submit google tag when the form is complete
2350
- submitGtag.submitGtag({
2360
+ paypal.submitAnalytics({
2351
2361
  event: 'zonos-checkout-customer-info',
2352
2362
  metadata: {
2353
2363
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -2521,7 +2531,7 @@ const ZonosCheckout = class {
2521
2531
  }
2522
2532
  catch (err) {
2523
2533
  handleFetch.logError(err);
2524
- submitGtag.submitGtag({
2534
+ paypal.submitAnalytics({
2525
2535
  event: 'zonos-checkout-payment-fail',
2526
2536
  metadata: {
2527
2537
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -2540,7 +2550,7 @@ const ZonosCheckout = class {
2540
2550
  }
2541
2551
  catch (err) {
2542
2552
  handleFetch.logError(err);
2543
- submitGtag.submitGtag({
2553
+ paypal.submitAnalytics({
2544
2554
  event: 'zonos-checkout-payment-fail',
2545
2555
  metadata: {
2546
2556
  checkoutSessionId: localization.storageStore.checkoutSessionId,
@@ -57,10 +57,10 @@ const ZonosCollapse = class {
57
57
  // set overflow to hidden to prevent content from showing when collapsed
58
58
  this.el.style.overflow = 'hidden';
59
59
  }
60
- return (index.h(index.Host, { key: '2a96e5ed214d93d07057eb7958a26e8a7b286ce8', class: 'zonos--elements zonos--collapse', style: {
60
+ return (index.h(index.Host, { key: '4fb230dfc4aa850c90c8cfbaf59da8d5043a4a89', class: 'zonos--elements zonos--collapse', style: {
61
61
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
62
62
  height: this.getElementHeight(),
63
- } }, index.h("div", { key: 'd2a039a3cde3c54bd560774d91cf36924311e251' }, index.h("iframe", { key: 'a2b1494c32fcd8a467e23ae6733fd341220a9020', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: '5dd47c6e903a01824ed04a9512b847180e67f667' }))));
63
+ } }, index.h("div", { key: '766542489d4a47d87ac2a2e2b7d62ec99272386a' }, index.h("iframe", { key: 'd2e33a342c9001bf4be3a478a068e0713a88bac5', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: '566b3f4a214fc43cb9642895a716dc69e95ff9ef' }))));
64
64
  }
65
65
  get el() { return index.getElement(this); }
66
66
  };
@@ -25,7 +25,7 @@ const ZonosCollectCartItems = class {
25
25
  render() {
26
26
  const emptyItemImg = index.getAssetPath('./assets/empty-item.jpeg');
27
27
  const nonRestrictedItems = cart.cartStore.items.filter(item => !item.isRestricted);
28
- return (index.h(index.Host, { key: '2f5507537492851b67a5204ab68ce2f938899f23', class: "zonos--collect-cart-items zonos--elements" }, index.h("table", { key: 'e648cda9d4c111ecde60291f420178e4e4230b50', class: "zonos--cart-table" }, index.h("tbody", { key: 'b266291e61d0df5c0ea3ae8240a3bfb6147edbb4' }, nonRestrictedItems.map(item => {
28
+ return (index.h(index.Host, { key: 'd92815bdd86b1bb911bd11eb9e69bfb6fc477061', class: "zonos--collect-cart-items zonos--elements" }, index.h("table", { key: '23e36f132b3ad84cd9cd87c11e3d9149b5dd5e1d', class: "zonos--cart-table" }, index.h("tbody", { key: 'a49a23585c25c93a1b829c044e9641e7143ec212' }, nonRestrictedItems.map(item => {
29
29
  const itemImg = item.imageUrl;
30
30
  const cleanedItemNames = cleanHtmlMarkdown.cleanHtmlMarkdown(item.name);
31
31
  return (index.h("tr", { class: "zonos--collect-cart-item" }, index.h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (index.h("img", { alt: item.name, onError: () => {
@@ -52,10 +52,10 @@ const HStack = class {
52
52
  this.spacing = 24;
53
53
  }
54
54
  render() {
55
- return (index.h(index.Host, { key: '443aa77bfbf4c0c84c33d0ef7652caec001968c3', style: {
55
+ return (index.h(index.Host, { key: '5f51e8415536589fe4300c5db75ea13e4419350b', style: {
56
56
  '--spacing': `${this.spacing}px`,
57
57
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
58
- } }, index.h("slot", { key: '3366df34b9f0f3549e556cff1e47878c2f6cd124' })));
58
+ } }, index.h("slot", { key: 'b0cc8a581603ee78ec576346c5730f28ba5006e1' })));
59
59
  }
60
60
  };
61
61
  HStack.style = ZonosHStackStyle0;
@@ -78,7 +78,7 @@ const ZonosSkeleton = class {
78
78
  this.skeletonHeight = '14px';
79
79
  }
80
80
  render() {
81
- return (index.h(index.Host, { key: '096e505180d901c1523567f89cdbcca7869a0895', class: classes.classes(['zonos--elements zonos--skeleton']), style: styles.styles({
81
+ return (index.h(index.Host, { key: '0b7adeb320e2f98d56158e4ec4d8933aa252ee8b', class: classes.classes(['zonos--elements zonos--skeleton']), style: styles.styles({
82
82
  '--zonos--skeleton-height': this.skeletonHeight,
83
83
  '--zonos--skeleton-width': this.skeletonWidth,
84
84
  }) }));