@zonos/elements 1.3.7-alpha.0 → 1.3.7

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 (286) hide show
  1. package/dist/cjs/{cart-ecc80eb0.js → cart-eee85bda.js} +145 -100
  2. package/dist/cjs/formatStringWithLinks-52341fc7.js +17 -0
  3. package/dist/cjs/{getBorderRadius-834c321d.js → getBorderRadius-d8f18958.js} +1 -1
  4. package/dist/cjs/{isDarkColor-924e6a7a.js → isDarkColor-57860b44.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +1 -1
  6. package/dist/cjs/submitGtag-a2e1f652.js +55 -0
  7. package/dist/cjs/zonos-address_4.cjs.entry.js +21 -16
  8. package/dist/cjs/zonos-badge_2.cjs.entry.js +6 -6
  9. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  10. package/dist/cjs/zonos-button_3.cjs.entry.js +8 -8
  11. package/dist/cjs/zonos-card_2.cjs.entry.js +8 -8
  12. package/dist/cjs/zonos-cart-items_9.cjs.entry.js +35 -33
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +159 -23
  14. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  15. package/dist/cjs/zonos-controller.cjs.entry.js +28 -9
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  17. package/dist/cjs/zonos-country-select_3.cjs.entry.js +18 -10
  18. package/dist/cjs/zonos-elements.cjs.js +1 -1
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +9 -7
  20. package/dist/cjs/zonos-hello.cjs.entry.js +25 -11
  21. package/dist/cjs/zonos-link.cjs.entry.js +24 -0
  22. package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
  23. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-payment.cjs.entry.js +6 -7
  25. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
  26. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  27. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  28. package/dist/cjs/{zonosStore-49d4c92a.js → zonosStore-138c5555.js} +5 -3
  29. package/dist/collection/collection-manifest.json +1 -0
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +1 -6
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +19 -10
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +3 -0
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +41 -20
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +3 -0
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +2 -0
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +1 -6
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +3 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -0
  39. package/dist/collection/components/common/component-template/zonos-link/zonos-link.css +54 -0
  40. package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +97 -0
  41. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  42. package/dist/collection/components/common/zonos-button/zonos-button.css +2 -0
  43. package/dist/collection/components/common/zonos-button/zonos-button.js +4 -4
  44. package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
  45. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  46. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +13 -6
  47. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +8 -2
  48. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +4 -2
  49. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  50. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  51. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  52. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  53. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +1 -1
  54. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  55. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  56. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  57. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +52 -13
  58. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  59. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +5 -3
  60. package/dist/collection/components/main/zonos-controller.js +1 -2
  61. package/dist/collection/components/store/checkout/cart.js +2 -2
  62. package/dist/collection/components/store/checkout/stripe.js +26 -4
  63. package/dist/collection/components/store/hello/localization.js +7 -6
  64. package/dist/collection/components/store/zonosStore.js +5 -3
  65. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  66. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +3 -3
  67. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +3 -3
  68. package/dist/collection/components/utils/api/getLocaleMessages.js +2 -2
  69. package/dist/collection/components/utils/api/trackConversionEvent.js +22 -0
  70. package/dist/collection/components/utils/checkout/isShippableCountry.js +15 -0
  71. package/dist/collection/components/utils/checkout/watchBigcommerceDomesticCheckout.js +111 -0
  72. package/dist/collection/components/utils/formatStringWithLinks.js +13 -0
  73. package/dist/collection/components/utils/handleFetch.js +1 -1
  74. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +25 -28
  75. package/dist/collection/components/utils/hello/currencyConversion/getCurrencyElements.js +2 -3
  76. package/dist/collection/components/utils/hello/currencyConversion/getInitialElementAmount.js +8 -6
  77. package/dist/collection/components/utils/hello/initHello.js +23 -3
  78. package/dist/collection/components/utils/logging/log.js +19 -14
  79. package/dist/collection/components/utils/logging/logError.js +2 -2
  80. package/dist/collection/components/utils/logging/sendErrorLog.js +12 -0
  81. package/dist/collection/scripts/checkIfLoadVersionDomain.js +35 -0
  82. package/dist/collection/scripts/zonosBase.js +21 -34
  83. package/dist/collection/styles/stripe/addressRuleStyle.js +4 -0
  84. package/dist/collection/types/generated/graphql.customer.types.js +1 -4
  85. package/dist/collection/types/generated/graphql.frontend.types.js +3 -0
  86. package/dist/components/stripe.js +140 -98
  87. package/dist/components/trackConversionEvent.js +24 -0
  88. package/dist/components/zonos-address2.js +1 -1
  89. package/dist/components/zonos-badge2.js +3 -3
  90. package/dist/components/zonos-button2.js +5 -5
  91. package/dist/components/zonos-card2.js +2 -2
  92. package/dist/components/zonos-cart-subtotal2.js +1 -6
  93. package/dist/components/zonos-checkbox2.js +3 -3
  94. package/dist/components/zonos-checkout-finish2.js +32 -12
  95. package/dist/components/zonos-checkout-payment2.js +1 -1
  96. package/dist/components/zonos-checkout.js +158 -20
  97. package/dist/components/zonos-collapse2.js +13 -6
  98. package/dist/components/zonos-component.js +1 -1
  99. package/dist/components/zonos-controller.js +25 -6
  100. package/dist/components/zonos-country-select2.js +9 -3
  101. package/dist/components/zonos-custom-message2.js +18 -3
  102. package/dist/components/zonos-customer-info2.js +3 -1
  103. package/dist/components/zonos-dialog2.js +3 -3
  104. package/dist/components/zonos-hello-dialog-footer2.js +2 -2
  105. package/dist/components/zonos-hello-dialog2.js +6 -5
  106. package/dist/components/zonos-hello.js +24 -9
  107. package/dist/components/zonos-language-select2.js +3 -3
  108. package/dist/components/zonos-link-authentication2.js +3 -4
  109. package/dist/components/zonos-link.d.ts +11 -0
  110. package/dist/components/zonos-link.js +43 -0
  111. package/dist/components/zonos-logo.js +2 -2
  112. package/dist/components/zonos-payment2.js +3 -4
  113. package/dist/components/zonos-review2.js +1 -6
  114. package/dist/components/zonos-select-dialog-header2.js +2 -2
  115. package/dist/components/zonos-shipping-rich-radio2.js +1 -1
  116. package/dist/components/zonos-shipping2.js +7 -2
  117. package/dist/components/zonos-tooltip2.js +2 -2
  118. package/dist/components/zonos-v-stack2.js +2 -2
  119. package/dist/components/zonosStore.js +5 -3
  120. package/dist/esm/{cart-2a0a6871.js → cart-e261efc1.js} +143 -101
  121. package/dist/esm/formatStringWithLinks-9e819405.js +15 -0
  122. package/dist/esm/{getBorderRadius-0c7dfcf0.js → getBorderRadius-19787feb.js} +1 -1
  123. package/dist/esm/{isDarkColor-d0a57fd2.js → isDarkColor-2344e7a5.js} +1 -1
  124. package/dist/esm/loader.js +1 -1
  125. package/dist/esm/submitGtag-dfc6f1dc.js +51 -0
  126. package/dist/esm/zonos-address_4.entry.js +21 -16
  127. package/dist/esm/zonos-badge_2.entry.js +6 -6
  128. package/dist/esm/zonos-banner.entry.js +1 -1
  129. package/dist/esm/zonos-button_3.entry.js +8 -8
  130. package/dist/esm/zonos-card_2.entry.js +8 -8
  131. package/dist/esm/zonos-cart-items_9.entry.js +35 -33
  132. package/dist/esm/zonos-checkout.entry.js +159 -23
  133. package/dist/esm/zonos-component.entry.js +1 -1
  134. package/dist/esm/zonos-controller.entry.js +28 -9
  135. package/dist/esm/zonos-country-flag.entry.js +4 -4
  136. package/dist/esm/zonos-country-select_3.entry.js +19 -11
  137. package/dist/esm/zonos-elements.js +1 -1
  138. package/dist/esm/zonos-hello-dialog.entry.js +9 -7
  139. package/dist/esm/zonos-hello.entry.js +25 -11
  140. package/dist/esm/zonos-link.entry.js +20 -0
  141. package/dist/esm/zonos-logo.entry.js +3 -3
  142. package/dist/esm/zonos-notification.entry.js +1 -1
  143. package/dist/esm/zonos-payment.entry.js +6 -7
  144. package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
  145. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  146. package/dist/esm/zonos-text.entry.js +1 -1
  147. package/dist/esm/{zonosStore-dec6bd7e.js → zonosStore-00bce01b.js} +5 -3
  148. package/dist/esm-es5/{cart-2a0a6871.js → cart-e261efc1.js} +1 -1
  149. package/dist/esm-es5/formatStringWithLinks-9e819405.js +1 -0
  150. package/dist/esm-es5/{getBorderRadius-0c7dfcf0.js → getBorderRadius-19787feb.js} +1 -1
  151. package/dist/esm-es5/{isDarkColor-d0a57fd2.js → isDarkColor-2344e7a5.js} +1 -1
  152. package/dist/esm-es5/loader.js +1 -1
  153. package/dist/esm-es5/submitGtag-dfc6f1dc.js +1 -0
  154. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  155. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  156. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  157. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  158. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  159. package/dist/esm-es5/zonos-cart-items_9.entry.js +1 -1
  160. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  161. package/dist/esm-es5/zonos-component.entry.js +1 -1
  162. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  163. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  164. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  165. package/dist/esm-es5/zonos-elements.js +1 -1
  166. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  167. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  168. package/dist/esm-es5/zonos-link.entry.js +1 -0
  169. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  170. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  171. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  172. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  173. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  174. package/dist/esm-es5/zonos-text.entry.js +1 -1
  175. package/dist/esm-es5/{zonosStore-dec6bd7e.js → zonosStore-00bce01b.js} +1 -1
  176. package/dist/scripts/checkIfLoadVersionDomain.js +1 -0
  177. package/dist/scripts/loadStripe.js +1 -1
  178. package/dist/scripts/loadZonos.js +1 -1
  179. package/dist/scripts/stripe.js +1 -1
  180. package/dist/scripts/zonos.js +1 -1
  181. package/dist/scripts/zonosBase.js +1 -1
  182. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +1 -1
  183. package/dist/types/components/common/component-template/zonos-link/zonos-link.d.ts +19 -0
  184. package/dist/types/components/common/zonos-collapse/zonos-collapse.d.ts +1 -0
  185. package/dist/types/components/common/zonos-country-select/zonos-country-select.d.ts +2 -0
  186. package/dist/types/components/hello/zonos-hello/zonos-hello.d.ts +9 -3
  187. package/dist/types/components/store/checkout/cart.d.ts +6 -3
  188. package/dist/types/components/store/checkout/stripe.d.ts +22 -1
  189. package/dist/types/components/store/hello/localization.d.ts +2 -3
  190. package/dist/types/components/store/zonosStore.d.ts +1 -0
  191. package/dist/types/components/utils/api/trackConversionEvent.d.ts +3 -0
  192. package/dist/types/components/utils/checkout/isShippableCountry.d.ts +1 -0
  193. package/dist/types/components/utils/checkout/watchBigcommerceDomesticCheckout.d.ts +20 -0
  194. package/dist/types/components/utils/formatStringWithLinks.d.ts +1 -0
  195. package/dist/types/components/utils/hello/currencyConversion/getCurrencyElements.d.ts +1 -1
  196. package/dist/types/components/utils/logging/log.d.ts +1 -1
  197. package/dist/types/components/utils/logging/sendErrorLog.d.ts +7 -0
  198. package/dist/types/components.d.ts +53 -3
  199. package/dist/types/scripts/checkIfLoadVersionDomain.d.ts +13 -0
  200. package/dist/types/scripts/zonosBase.d.ts +2 -0
  201. package/dist/types/types/checkout/CheckoutConfig.d.ts +1 -1
  202. package/dist/types/types/generated/graphql.customer.types.d.ts +8 -53
  203. package/dist/types/types/generated/graphql.customer.types.ts +18 -62
  204. package/dist/types/types/generated/graphql.frontend.types.d.ts +8 -0
  205. package/dist/types/types/generated/graphql.frontend.types.ts +18 -0
  206. package/dist/zonos-elements/p-066c5893.system.js +1 -1
  207. package/dist/zonos-elements/p-07966463.entry.js +1 -0
  208. package/dist/zonos-elements/p-0c0aa552.js +1 -0
  209. package/dist/zonos-elements/{p-dfd3edcf.entry.js → p-0c91720b.entry.js} +1 -1
  210. package/dist/zonos-elements/p-1119dddf.system.entry.js +1 -0
  211. package/dist/zonos-elements/p-127b480c.entry.js +1 -0
  212. package/dist/zonos-elements/{p-e855966f.system.entry.js → p-143dc0d9.system.entry.js} +1 -1
  213. package/dist/zonos-elements/p-14c3ef38.entry.js +1 -0
  214. package/dist/zonos-elements/{p-55970b10.system.entry.js → p-14d27ce1.system.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-7d1d862f.system.entry.js → p-165d469e.system.entry.js} +1 -1
  216. package/dist/zonos-elements/p-17e87be1.entry.js +1 -0
  217. package/dist/zonos-elements/{p-a95c034c.entry.js → p-1e0dd491.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-34efed1d.entry.js → p-279d1c5f.entry.js} +1 -1
  219. package/dist/zonos-elements/p-2d6557ee.system.js +1 -0
  220. package/dist/zonos-elements/p-314be538.system.entry.js +1 -0
  221. package/dist/zonos-elements/{p-79b910bf.system.entry.js → p-328b7f6f.system.entry.js} +1 -1
  222. package/dist/zonos-elements/p-354603b3.system.entry.js +1 -0
  223. package/dist/zonos-elements/{p-1f85a98c.system.entry.js → p-389599d3.system.entry.js} +1 -1
  224. package/dist/zonos-elements/p-3a1e685f.entry.js +1 -0
  225. package/dist/zonos-elements/{p-a219689f.entry.js → p-3b23e462.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-591eb6dd.system.js → p-49f6a985.system.js} +1 -1
  227. package/dist/zonos-elements/p-4fb77a38.system.entry.js +1 -0
  228. package/dist/zonos-elements/{p-5b44abc8.system.js → p-5496951a.system.js} +1 -1
  229. package/dist/zonos-elements/{p-06652d87.system.entry.js → p-58e2f6a1.system.entry.js} +1 -1
  230. package/dist/zonos-elements/{p-cc63a29f.system.entry.js → p-5c176b23.system.entry.js} +1 -1
  231. package/dist/zonos-elements/p-5d9a000a.system.entry.js +1 -0
  232. package/dist/zonos-elements/p-5f4ba44c.entry.js +1 -0
  233. package/dist/zonos-elements/{p-88a55076.system.entry.js → p-61e5cf29.system.entry.js} +1 -1
  234. package/dist/zonos-elements/p-69e2c59e.entry.js +1 -0
  235. package/dist/zonos-elements/p-745cd869.system.entry.js +1 -0
  236. package/dist/zonos-elements/p-78ba2928.system.js +1 -0
  237. package/dist/zonos-elements/{p-67737613.system.entry.js → p-799d8a17.system.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-375c472a.system.entry.js → p-79b24786.system.entry.js} +1 -1
  239. package/dist/zonos-elements/p-7b87b82f.js +1 -0
  240. package/dist/zonos-elements/{p-e2770968.system.entry.js → p-7c45ce37.system.entry.js} +1 -1
  241. package/dist/zonos-elements/p-7f4f45b3.entry.js +1 -0
  242. package/dist/zonos-elements/{p-2d2e1831.entry.js → p-857cfe35.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-ec4d08b3.system.js → p-91797d4e.system.js} +1 -1
  244. package/dist/zonos-elements/{p-34c03be2.js → p-95e0fc06.js} +1 -1
  245. package/dist/zonos-elements/p-9e6b489d.system.entry.js +1 -0
  246. package/dist/zonos-elements/p-9f4e02a1.entry.js +1 -0
  247. package/dist/zonos-elements/{p-afe40057.entry.js → p-a3cc0f84.entry.js} +1 -1
  248. package/dist/zonos-elements/p-a87561b8.js +1 -0
  249. package/dist/zonos-elements/{p-e161a08c.entry.js → p-ac0a7b8f.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-549c181b.system.js → p-b4725505.system.js} +1 -1
  251. package/dist/zonos-elements/p-c060d475.js +1 -0
  252. package/dist/zonos-elements/p-c2e58ee1.system.entry.js +1 -0
  253. package/dist/zonos-elements/{p-9878a770.js → p-da767f8b.js} +1 -1
  254. package/dist/zonos-elements/p-dd9e8589.entry.js +1 -0
  255. package/dist/zonos-elements/p-f11a3d9e.entry.js +1 -0
  256. package/dist/zonos-elements/{p-8aeb4679.system.entry.js → p-f6eaef7b.system.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-c7098c3b.entry.js → p-f7c36fcc.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-a4de3fb2.entry.js → p-ff64ddc5.entry.js} +1 -1
  259. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  260. package/package.json +1 -1
  261. package/dist/cjs/submitGtag-907e71d3.js +0 -21
  262. package/dist/collection/scripts/extractZonosQaUrl.js +0 -26
  263. package/dist/esm/submitGtag-a38aed23.js +0 -19
  264. package/dist/esm-es5/submitGtag-a38aed23.js +0 -1
  265. package/dist/types/scripts/extractZonosQaUrl.d.ts +0 -11
  266. package/dist/zonos-elements/p-0057e374.entry.js +0 -1
  267. package/dist/zonos-elements/p-0c72fb79.system.entry.js +0 -1
  268. package/dist/zonos-elements/p-290c3670.entry.js +0 -1
  269. package/dist/zonos-elements/p-2f1e1cbb.system.entry.js +0 -1
  270. package/dist/zonos-elements/p-33080cde.system.entry.js +0 -1
  271. package/dist/zonos-elements/p-561e44d6.entry.js +0 -1
  272. package/dist/zonos-elements/p-5c4dc123.js +0 -1
  273. package/dist/zonos-elements/p-656c836b.entry.js +0 -1
  274. package/dist/zonos-elements/p-8d645a00.entry.js +0 -1
  275. package/dist/zonos-elements/p-a3d72a33.entry.js +0 -1
  276. package/dist/zonos-elements/p-a93c594f.entry.js +0 -1
  277. package/dist/zonos-elements/p-b10ff468.entry.js +0 -1
  278. package/dist/zonos-elements/p-b6992dc2.system.entry.js +0 -1
  279. package/dist/zonos-elements/p-bce46c41.js +0 -1
  280. package/dist/zonos-elements/p-c56d4a44.entry.js +0 -1
  281. package/dist/zonos-elements/p-cbb1e700.system.js +0 -1
  282. package/dist/zonos-elements/p-cd8bd5e9.system.entry.js +0 -1
  283. package/dist/zonos-elements/p-d36faf87.system.entry.js +0 -1
  284. package/dist/zonos-elements/p-e2c6ad57.entry.js +0 -1
  285. package/dist/zonos-elements/p-ea93943a.system.entry.js +0 -1
  286. package/dist/zonos-elements/p-f455e08c.js +0 -1
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement, c as createEvent } from './index-b5be4dc3.js';
2
- import { s as stripeStore, g as stripeStorePrefetchLandedCost, o as logError, l as localizationStore } from './cart-2a0a6871.js';
2
+ import { j as stripeStore, n as stripeStorePrefetchLandedCost, d as logError, l as localizationStore } from './cart-e261efc1.js';
3
3
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
4
- import { d as zonosStoreFontFamily } from './zonosStore-dec6bd7e.js';
4
+ import { d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
- import { g as getBorderRadius } from './getBorderRadius-0c7dfcf0.js';
7
- import { i as isDarkColor } from './isDarkColor-d0a57fd2.js';
6
+ import { g as getBorderRadius } from './getBorderRadius-19787feb.js';
7
+ import { i as isDarkColor } from './isDarkColor-2344e7a5.js';
8
8
 
9
9
  const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}";
10
10
  const ZonosAddressStyle0 = zonosAddressCss;
@@ -138,7 +138,7 @@ const ZonosAddress = class {
138
138
  }
139
139
  render() {
140
140
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
141
- return (h(Host, { key: 'b2aa1ee3f16ae4ebcce83b599c97aa80f09dc9d3', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'e37392d0add0ab8541f78131abdf9082fd2455b4', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'd28d1908ee2f525455b0680e25cff3040093ad74', class: "zonos--address-component" })));
141
+ return (h(Host, { key: '8d762300d8f599a277806d861d13d2beb6a0a5a6', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'c355eece2f193cb0595ede434238f062b2c07c7c', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '59c3bd68cd67c8d733fd2ca5d9f4b4114c84db4a', class: "zonos--address-component" })));
142
142
  }
143
143
  get el() { return getElement(this); }
144
144
  static get watchers() { return {
@@ -186,14 +186,14 @@ const ZonosCheckbox = class {
186
186
  ? 'var(--amino-gray-800)'
187
187
  : 'var(--amino-gray-0)';
188
188
  const borderStyle = getBorderRadius(this.borderStyle, '4px');
189
- return (h(Host, { key: '86ab50028bec3f6a230b3a9492d06c1b2ce250fe', class: classes(['zonos--elements zonos--checkbox']), style: {
189
+ return (h(Host, { key: '5f8516f5933b739cc3f21d901e50dec1c761fa58', class: classes(['zonos--elements zonos--checkbox']), style: {
190
190
  '--background-color': backgroundColor,
191
191
  '--border-radius': borderStyle,
192
192
  '--font-family': zonosStoreFontFamily(),
193
193
  '--size': `${this.size}px`,
194
- } }, h("label", { key: '88e87bb45739707a4e3da6d378ba491899dad76c', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: 'c877ba4a2bd43aa67c394136ef4b3c71096e75aa', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
194
+ } }, h("label", { key: '6544f51a8c892d616123ab4194d069b055e3dc86', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: '958e35bf16be575230748fccdb1a3916942c3a30', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
195
195
  this.checkboxSelected.emit(e.target.checked);
196
- }, type: "checkbox" }), h("span", { key: '0f40603a3cf90c38f37b05d7bfd8ed54623b07f4', class: "checkmark-container" }, h("svg", { key: '67945bb82cc05997bb40aeef14c5c0fd452a68af', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ac2d1db7ba5c1578dbe59f4ca9755a409ab24546', "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 && (h("zonos-text", { size: this.fontSize }, this.label)))));
196
+ }, type: "checkbox" }), h("span", { key: '2c55e0a190b092dd083c433c35143e253910f54f', class: "checkmark-container" }, h("svg", { key: '0aa1f705b728055835159a399173a170aee4f7c0', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'd526bbafde4d4399be3f3a0a7cc87e92634d9548', "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 && (h("zonos-text", { size: this.fontSize }, this.label)))));
197
197
  }
198
198
  };
199
199
  ZonosCheckbox.style = ZonosCheckboxStyle0;
@@ -207,6 +207,7 @@ const ZonosCollapse = class {
207
207
  this.collapsed = false;
208
208
  this.collapseSize = 0;
209
209
  this.height = this.el.scrollHeight;
210
+ this.iframe = null;
210
211
  }
211
212
  getElementHeight() {
212
213
  const fullHeight = `${this.height}px`;
@@ -218,12 +219,17 @@ const ZonosCollapse = class {
218
219
  }
219
220
  componentDidRender() {
220
221
  var _a, _b, _c;
221
- (_c = (_b = (_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('iframe')) === null || _b === void 0 ? void 0 : _b.contentWindow) === null || _c === void 0 ? void 0 : _c.addEventListener('resize', () => {
222
- this.height = this.el.scrollHeight;
222
+ this.iframe =
223
+ ((_a = this.el.shadowRoot) === null || _a === void 0 ? void 0 : _a.querySelector('iframe')) || null;
224
+ (_c = (_b = this.iframe) === null || _b === void 0 ? void 0 : _b.contentWindow) === null || _c === void 0 ? void 0 : _c.addEventListener('resize', () => {
225
+ if (!this.iframe) {
226
+ // this should never happen since it's inside of resize callback
227
+ return;
228
+ }
229
+ this.height = parseFloat(getComputedStyle(this.iframe).height);
223
230
  });
224
231
  }
225
232
  render() {
226
- this.height = this.el.scrollHeight;
227
233
  if (!this.collapsed) {
228
234
  // wait for the collapse animation to finish, then set overflow to visible
229
235
  setTimeout(() => {
@@ -237,10 +243,10 @@ const ZonosCollapse = class {
237
243
  // set overflow to hidden to prevent content from showing when collapsed
238
244
  this.el.style.overflow = 'hidden';
239
245
  }
240
- return (h(Host, { key: 'cbec79617b603172a6c3c41d29ee093f61eead92', class: 'zonos--elements zonos--collapse', style: {
246
+ return (h(Host, { key: '7ac8b898feadfb4424b3b48a98135cb18994f4e0', class: 'zonos--elements zonos--collapse', style: {
241
247
  '--font-family': zonosStoreFontFamily(),
242
248
  height: this.getElementHeight(),
243
- } }, h("div", { key: '6e72b98c155ee436bbaabce3d7b58294bb6ccc7a' }, h("iframe", { key: 'ef3306219530d635fa320099727a3574d5800285', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'a66b3d6d08a12f0c184a5c4294afdb2c340fe95d' }))));
249
+ } }, h("div", { key: '4a527ec319b59041196284d4d9a8f22b943a74e6' }, h("iframe", { key: '2fb51c16e13ca90561b1b1e6cab89d87e4a37a47', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: '6d7849f6c35be611446b0da36d657396e5ca3122' }))));
244
250
  }
245
251
  get el() { return getElement(this); }
246
252
  };
@@ -264,8 +270,7 @@ const ZonosLinkAuthentication = class {
264
270
  stripeStore.stripeElements.create('linkAuthentication');
265
271
  const linkAuthenticationElementContainer = this.el.querySelector('.zonos--link-authentication-component');
266
272
  if (!linkAuthenticationElementContainer) {
267
- // eslint-disable-next-line no-console
268
- console.error('Cannot find container element for linkAuthenticationElement');
273
+ logError('Cannot find container element for linkAuthenticationElement');
269
274
  return;
270
275
  }
271
276
  linkAuthenticationElement.mount(linkAuthenticationElementContainer);
@@ -282,7 +287,7 @@ const ZonosLinkAuthentication = class {
282
287
  }
283
288
  render() {
284
289
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
285
- return (h(Host, { key: 'aec893e026a60bcbf81e93a3c63a842f97437dcc', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '93c2c462d3a108364d2dfbc4aeab058f87bcc7b3', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '0098e20d87cce7547fc1abf26859c0d3765407cd', class: "zonos--link-authentication-component" })));
290
+ return (h(Host, { key: '671681b3ca3e95ab25a70cb44e84db7e2b3903e8', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '8d20c795500e3ce27b92cdeb0446908e550f9f13', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'b8374d7d7a4844b4c2cf6363b8d2d225bb52b21d', class: "zonos--link-authentication-component" })));
286
291
  }
287
292
  get el() { return getElement(this); }
288
293
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-b5be4dc3.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-dec6bd7e.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
 
5
5
  const zonosBadgeCss = ":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-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";
@@ -16,16 +16,16 @@ const ZonosBadge = class {
16
16
  this.rounded = false;
17
17
  }
18
18
  render() {
19
- return (h(Host, { key: '0f502b63322730f508fd7c92f231573b1dfbfd6b', class: classes(['zonos--elements zonos--badge']), style: {
19
+ return (h(Host, { key: '1cece57ce37e04873f625d05ad5a0bea6368b46b', class: classes(['zonos--elements zonos--badge']), style: {
20
20
  '--font-family': zonosStoreFontFamily(),
21
- } }, h("div", { key: '4ee3f0b623067625ddd79336a1854f5ab796b3b1', class: classes([
21
+ } }, h("div", { key: '8caf3f2ffb7deda215c44ad0c6c0892936d526c2', class: classes([
22
22
  'zonos--badge-content',
23
23
  this.badgeColor,
24
24
  this.rounded && 'rounded',
25
25
  this.iconRight && 'icon-right',
26
26
  this.size,
27
27
  this.bold && 'bold',
28
- ]) }, this.icon, h("zonos-text", { key: 'e5bdf974408416811f7666fc453ca47db58fa43f' }, h("slot", { key: 'd953b60fefe2c25aea529b9de41938cfd96a285b' })))));
28
+ ]) }, this.icon, h("zonos-text", { key: 'fb8ac7f09675f9cfd829ecea54c61f5c699caa00' }, h("slot", { key: '978bc876e427d932662a0100043e04b105e9df8d' })))));
29
29
  }
30
30
  };
31
31
  ZonosBadge.style = ZonosBadgeStyle0;
@@ -41,10 +41,10 @@ const ZonosTooltip = class {
41
41
  this.showTooltip = false;
42
42
  }
43
43
  render() {
44
- return (h(Host, { key: '684561bebf9385c7e6bcca7de37e7ee5084c9692', class: "zonos--elements" }, h("div", { key: 'c116738f39d25b856b268ece410a33f91046c739', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '4073ed0766b4efaa0c25fa7febdbad4c42714dca' }), h("div", { key: '8c6b180577830aaaceb629819535dd930fc49e02', class: classes([
44
+ return (h(Host, { key: '4864150b0af4119fc7d87aec5af3c258fb27802d', class: "zonos--elements" }, h("div", { key: 'c11d3da431f9c4507bc58ec38d0b1ef21c99b584', class: "zonos--tooltip", onMouseEnter: () => (this.showTooltip = true), onMouseLeave: () => (this.showTooltip = false) }, h("slot", { key: '0a92efb2e6c17f67c2feacbd17bbddd4fb63f7da' }), h("div", { key: '0ea54bfaf54a2f170044d77c2b555e5da37af8ae', class: classes([
45
45
  this.showTooltip && 'zonos--show-tooltip',
46
46
  'zonos--tooltip-content',
47
- ]) }, h("zonos-text", { key: '7c018a9d5a7db939b59624dcc77029a5a8d621af', color: "gray-0", size: "s", type: "boldLabel" }, this.label), h("zonos-text", { key: 'c1f09eaf9cb1084ecf47334903b9ca8b944502b7', color: "gray-0", size: "xs" }, this.subtitle)))));
47
+ ]) }, h("zonos-text", { key: '73c55a7318eb36760d2779691f9ea79d2c5bf8c7', size: "s", textColor: "gray-0", type: "boldLabel" }, this.label), h("zonos-text", { key: '1f4106f67fc468121d7fb7fbc0ee69363bb26186', size: "xs", textColor: "gray-0" }, this.subtitle)))));
48
48
  }
49
49
  };
50
50
  ZonosTooltip.style = ZonosTooltipStyle0;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-b5be4dc3.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-dec6bd7e.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
 
5
5
  const zonosBannerCss = ":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{border-radius:var(--amino-radius-10);padding:var(--amino-space-16);background:var(--amino-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:var(--amino-space-0);grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:var(--amino-space-4)}:host(.info){background-color:var(--amino-blue-100);border:1px solid var(--amino-blue-200)}:host(.success){background-color:var(--amino-green-100);border:1px solid var(--amino-green-200)}:host(.error){background-color:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host(.warning){background-color:var(--amino-orange-100);border:1px solid var(--amino-orange-200)}";
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-b5be4dc3.js';
2
- import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-dec6bd7e.js';
2
+ import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { g as getBorderRadius } from './getBorderRadius-0c7dfcf0.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-19787feb.js';
5
5
  import { i as isColorVariable } from './isColorVariable-91c33804.js';
6
- import { i as isDarkColor } from './isDarkColor-d0a57fd2.js';
6
+ import { i as isDarkColor } from './isDarkColor-2344e7a5.js';
7
7
 
8
8
  /**
9
9
  * Get theme for button text based on background color
@@ -19,7 +19,7 @@ const getButtonTheme = (overrideBackground) => {
19
19
  return buttonTheme;
20
20
  };
21
21
 
22
- const zonosButtonCss = ":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-inline-flexbox;display:inline-flex}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--amino-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--amino-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--amino-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--amino-radius-4);width:24px}";
22
+ const zonosButtonCss = ":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-inline-flexbox;display:inline-flex;border-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));margin:1px;}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--amino-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--amino-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--amino-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--amino-radius-4);width:24px}";
23
23
  const ZonosButtonStyle0 = zonosButtonCss;
24
24
 
25
25
  const ZonosButton = class {
@@ -77,13 +77,13 @@ const ZonosButton = class {
77
77
  // only set theme for button to change text color if variant is standard and override background is set
78
78
  const buttonTheme = variant === 'standard' ? getButtonTheme(overrideBackground) : undefined;
79
79
  const borderStyle = getBorderRadius(this.borderStyle);
80
- const spinnerColor = buttonTheme === 'LIGHT' ? 'white' : 'black';
81
- return (h(Host, { key: '817142c1d229333aee0b38864788346d2749d3d1', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
80
+ const spinnerColor = buttonTheme === 'LIGHT' ? 'black' : 'white';
81
+ return (h(Host, { key: 'f3374eedd37ec6293260fba7b19d66aa013d3484', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
82
82
  '--background-color': overrideBackground,
83
83
  '--border-radius': borderStyle,
84
84
  '--color': color,
85
85
  '--font-family': zonosStoreFontFamily(),
86
- } }, h("button", { key: '04bff1f932154f54b4af51b2fac053d40efc354f', class: classes([
86
+ } }, h("button", { key: '352ce427591b20b8042dcd19ce159b77c1fc2faf', class: classes([
87
87
  this.hasIcon && 'has-icon',
88
88
  this.hasContent && 'has-content',
89
89
  this.noBackground && 'no-background',
@@ -96,7 +96,7 @@ const ZonosButton = class {
96
96
  overrideBackground &&
97
97
  variant === 'standard' &&
98
98
  'override-background',
99
- ]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'fd9bd0e9f89c3c9ab6dc9d0ac7a123542a1f5023', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
99
+ ]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '554cc1fd9bb58d833339ae21e837d586adc248c2', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
100
100
  }
101
101
  static get watchers() { return {
102
102
  "icon": ["iconChangeHandler"]
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-b5be4dc3.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-dec6bd7e.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { D as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-2a0a6871.js';
4
+ import { G as localizationStoreUpdateSelectedLocale, t as translate, l as localizationStore } from './cart-e261efc1.js';
5
5
  import { l as languages } from './ILanguage-97790bee.js';
6
- import './isDarkColor-d0a57fd2.js';
7
- import './getBorderRadius-0c7dfcf0.js';
6
+ import './isDarkColor-2344e7a5.js';
7
+ import './getBorderRadius-19787feb.js';
8
8
 
9
9
  const zonosCardCss = ":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 .styled-card{border:var(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";
10
10
  const ZonosCardStyle0 = zonosCardCss;
@@ -20,9 +20,9 @@ const ZonosCard = class {
20
20
  this.spacing = '24px';
21
21
  }
22
22
  render() {
23
- return (h(Host, { key: '8581e04d45e7061bff02485ad9a9a22920b5fe84', style: {
23
+ return (h(Host, { key: 'b350f7a592ea35c3b6beaf5eefaa2ab0208975dd', style: {
24
24
  '--font-family': zonosStoreFontFamily(),
25
- } }, h("div", { key: '5e2038438e0885602c2e15808a34d62e86c95035', class: classes(['styled-card']), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot", { key: 'b7cbddad1cc08256ae9192349fe5a44302b6d79e' }), (this.footerActions || this.footerContent) && (h("footer", { class: "card-footer", style: {
25
+ } }, h("div", { key: '125e8b550cd8f371e28a012536722f48402774f2', class: classes(['styled-card']), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot", { key: '3cf038c62910ebac736ed1c37ecf1a490c8e1d0e' }), (this.footerActions || this.footerContent) && (h("footer", { class: "card-footer", style: {
26
26
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
27
27
  padding: this.spacing,
28
28
  } }, h("div", null, this.footerContent), h("h-stack", { spacing: 8 }, this.footerActions))))));
@@ -51,9 +51,9 @@ const ZonosLanguageSelect = class {
51
51
  }
52
52
  render() {
53
53
  const { selectedLocale } = localizationStore;
54
- return (h(Host, { key: 'c90288e341c50d113cc63d09e864ddfa346d55a1', class: "zonos--elements", style: {
54
+ return (h(Host, { key: 'd12676d6438941bb8d987826f68c1b72a7e02ccd', class: "zonos--elements", style: {
55
55
  '--font-family': zonosStoreFontFamily(),
56
- } }, h("div", { key: '4dabc3c9ab177e5545942c725490af64cb9608c3', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: '95f111f3774a568ea44204858fe503fa7c1915f3', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: 'c2634e3b006f3d14c67ee78c0c9befdb21cecc72', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { color: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
56
+ } }, h("div", { key: '259eaa6a8ae682cc96c98eaaab574757285188b9', class: "zonos--language-select" }, h("zonos-select-dialog-header", { key: '88bff024a5f678b00bf4edd7b2497177a986af4c', handleOnClose: () => this.handleOnClose(), label: translate('Select a language') }), h("div", { key: 'be1d87991dec9ac2a3b530a0cf9129b9e191781b', class: "zonos--language-select-content" }, languages.map(language => (h("button", { class: "zonos--language-select-button", onClick: () => this.languageSelected(language.code) }, h("zonos-text", { textColor: "gray-800" }, language.translatedLabel), language.code === selectedLocale && (h("zonos-icon", { content: GreenCheckDuotoneIcon, size: 16 })))))))));
57
57
  }
58
58
  };
59
59
  ZonosLanguageSelect.style = ZonosLanguageSelectStyle0;
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-b5be4dc3.js';
2
- import { c as cartStore, t as translate, n as handleFetch, s as stripeStore, A as stripeStoreRetrievePayment, k as stripeStoreReset, l as localizationStore, B as cartStoreUpdateSelectedShippingOption, C as cartStoreGetShippingTransitInfo } from './cart-2a0a6871.js';
3
- import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-dec6bd7e.js';
4
- import { g as getBorderRadius } from './getBorderRadius-0c7dfcf0.js';
5
- import { s as submitGtag } from './submitGtag-a38aed23.js';
2
+ import { f as cartStore, t as translate, u as handleFetch, q as stripeStoreReset, j as stripeStore, D as stripeStoreRetrievePayment, l as localizationStore, E as cartStoreUpdateSelectedShippingOption, F as cartStoreGetShippingTransitInfo } from './cart-e261efc1.js';
3
+ import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-00bce01b.js';
4
+ import { t as trackConversionEvent, s as sendErrorLog, a as submitGtag } from './submitGtag-dfc6f1dc.js';
5
+ import { g as getBorderRadius } from './getBorderRadius-19787feb.js';
6
6
  import { c as classes } from './classes-0d95c529.js';
7
- import { i as isDarkColor } from './isDarkColor-d0a57fd2.js';
7
+ import { i as isDarkColor } from './isDarkColor-2344e7a5.js';
8
8
  import { l as languages } from './ILanguage-97790bee.js';
9
9
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
10
10
 
@@ -60,7 +60,6 @@ const ZonosCartSubtotal = class {
60
60
  registerInstance(this, hostRef);
61
61
  }
62
62
  render() {
63
- const totalWithoutTaxes = cartStore.total - cartStore.dutiesTaxFees;
64
63
  const showDutyTaxesInfo = cartStore.step === 'payment' || cartStore.step === 'shipping';
65
64
  const renderShippingInfo = () => {
66
65
  if (!cartStore.selectedShippingOption) {
@@ -82,11 +81,7 @@ const ZonosCartSubtotal = class {
82
81
  currency: cartStore.currency,
83
82
  })
84
83
  : '-', cartStore.isSelectedShippingGuarantee && (h("zonos-badge", null, translate('Guaranteed'))))))), h("tr", { class: "zonos--row zonos--cart-pay-total" }, h("td", { class: "zonos--column" }), h("td", { class: "zonos--column" }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, translate('Order total'))), h("td", { class: "zonos--column" }, h("zonos-text", { type: "semiBoldLabel" }, formatCurrency({
85
- amount:
86
- // show total without taxes when step is shipping, show total with taxes when step is payment
87
- cartStore.step === 'shipping'
88
- ? totalWithoutTaxes
89
- : cartStore.total,
84
+ amount: cartStore.total,
90
85
  currency: cartStore.currency,
91
86
  })))))));
92
87
  }
@@ -120,13 +115,17 @@ const ZonosCheckoutFinish = class {
120
115
  this.handleSuccessBehavior = (orderId) => {
121
116
  const { successBehavior } = zonosStore.checkoutSettings;
122
117
  switch (successBehavior) {
123
- case 'REDIRECT_TO_SUCCESS_PAGE':
118
+ case 'REDIRECT_TO_SUCCESS_PAGE': {
124
119
  const redirectUrl = zonosStore.checkoutSettings.successRedirectUrl;
125
120
  if (redirectUrl) {
121
+ // reset store and checkout session id before redirecting
122
+ stripeStoreReset();
123
+ cartStore.checkoutSessionId = null;
126
124
  window.location.href = `${redirectUrl}?zOrderNumber=${orderId}`;
127
125
  }
128
126
  // If no redirect URL, break and display Zonos success page
129
127
  break;
128
+ }
130
129
  case 'CLOSE_MODAL':
131
130
  this.closeClickHandler();
132
131
  break;
@@ -141,6 +140,7 @@ const ZonosCheckoutFinish = class {
141
140
  this.getPullOrder = async (attempts = 0) => {
142
141
  const order = await this.pullOrder();
143
142
  if (order) {
143
+ void trackConversionEvent('checkout_orderCompleted');
144
144
  this.order = order;
145
145
  this.handleSuccessBehavior(order.id);
146
146
  }
@@ -152,18 +152,16 @@ const ZonosCheckoutFinish = class {
152
152
  else {
153
153
  // Set loading to false to display generic success page and log error
154
154
  this.isLoading = false;
155
- const errorObject = {
156
- endpoint: `${"https://v1.route.js.zonos.com"}/api/zonos-elements/get-order`,
155
+ const baseUrl = "https://v1.route.js.zonos.com";
156
+ const checkoutSessionId = cartStore.checkoutSessionId;
157
+ void sendErrorLog({
158
+ endpoint: `${baseUrl}/api/zonos-elements/get-order?checkoutSessionId=${checkoutSessionId}`,
157
159
  errors: ['Order not found after multiple attempts'],
158
160
  metadata: {
159
161
  checkoutSessionId: cartStore.checkoutSessionId || '',
160
162
  domain: window.location.hostname,
161
163
  storeId: zonosStore.storeId,
162
164
  },
163
- };
164
- void handleFetch(`${"https://v1.route.js.zonos.com"}/api/zonos-elements/log-error`, {
165
- body: errorObject,
166
- method: 'POST',
167
165
  });
168
166
  }
169
167
  };
@@ -171,7 +169,7 @@ const ZonosCheckoutFinish = class {
171
169
  this.isLoading = true;
172
170
  const clientSecret = new URLSearchParams(window.location.search).get('payment_intent_client_secret') || stripeStore.clientSecret;
173
171
  if (clientSecret || this.storybookForceStatus) {
174
- const { error, messages } = await stripeStoreRetrievePayment({
172
+ const { error, messages, paymentMethod } = await stripeStoreRetrievePayment({
175
173
  clientSecret,
176
174
  storybookForceStatus: this.storybookForceStatus,
177
175
  });
@@ -185,6 +183,9 @@ const ZonosCheckoutFinish = class {
185
183
  }
186
184
  else {
187
185
  submitGtag('zonos-checkout-success');
186
+ void trackConversionEvent('checkout_paymentInfoCompleted', {
187
+ paymentMethod,
188
+ });
188
189
  const successEvent = new CustomEvent('zonos-checkout-success', {
189
190
  detail: {
190
191
  message: 'Zonos Checkout successfully processed order',
@@ -194,7 +195,8 @@ const ZonosCheckoutFinish = class {
194
195
  }
195
196
  // Attempt to pull the order details from the graph every second on 5 attempts
196
197
  if (this.notificationType === 'success') {
197
- void this.getPullOrder();
198
+ // wait this to finish before resetting store and checkout session id
199
+ await this.getPullOrder();
198
200
  }
199
201
  else {
200
202
  this.isLoading = false;
@@ -237,7 +239,7 @@ const ZonosCheckoutFinish = class {
237
239
  // const totalItems = this.order?.items?.reduce((acc, item) => {
238
240
  // return acc + item.quantity;
239
241
  // }, 0);
240
- return (h(Host, { key: '08886ec74e789091534c8bd6561a8349a5a6966c', class: "zonos--checkout-finish zonos--elements", style: {
242
+ return (h(Host, { key: 'fe08bfd0c0b60f4dce1aa9a6f3ba273dccd70a92', class: "zonos--checkout-finish zonos--elements", style: {
241
243
  '--border-radius': getBorderRadius(this.borderRadius),
242
244
  } }, this.isLoading && (h("div", { class: "loading-wrapper" }, h("zonos-spinner", null))), !this.isLoading && (h(Fragment, null, h("div", { class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon$1, iconColor: 'red-800', size: 50 })), h("zonos-text", { class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", null, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), h("zonos-button", { onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, translate('Keep shopping')))))));
243
245
  }
@@ -287,7 +289,7 @@ const ZonosCheckoutFooter = class {
287
289
  };
288
290
  ZonosCheckoutFooter.style = ZonosCheckoutFooterStyle0;
289
291
 
290
- const zonosCheckoutPaymentCss = ".sc-zonos-checkout-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--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}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.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(--amino-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:var(--amino-space-8)}.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;bottom:0;margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:100%}";
292
+ const zonosCheckoutPaymentCss = ".sc-zonos-checkout-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--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}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.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(--amino-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:var(--amino-space-8)}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-payment{-webkit-box-shadow:0 0 1px 0 var(--amino-gray-600);box-shadow:0 0 1px 0 var(--amino-gray-600)}.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;bottom:0;margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:100%}";
291
293
  const ZonosCheckoutPaymentStyle0 = zonosCheckoutPaymentCss;
292
294
 
293
295
  const ZonosCheckoutPayment = class {
@@ -331,7 +333,7 @@ const ZonosCheckoutPayment = class {
331
333
  };
332
334
  ZonosCheckoutPayment.style = ZonosCheckoutPaymentStyle0;
333
335
 
334
- const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--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}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:var(--amino-space-20)}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:var(--amino-space-32)}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:var(--amino-space-16)}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:var(--amino-space-16)}.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--group.sc-zonos-customer-info{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.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(--amino-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--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:var(--amino-space-8);margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
336
+ const zonosCustomerInfoCss = ".sc-zonos-customer-info-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--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}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:var(--amino-space-20)}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:var(--amino-space-32)}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:var(--amino-space-16)}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:var(--amino-space-16)}.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(--amino-gray-600);box-shadow:0 0 1px 0 var(--amino-gray-600)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.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(--amino-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--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:var(--amino-space-8);margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";
335
337
  const ZonosCustomerInfoStyle0 = zonosCustomerInfoCss;
336
338
 
337
339
  const ZonosCustomerInfo = class {
@@ -354,6 +356,7 @@ const ZonosCustomerInfo = class {
354
356
  if (!this.disabled) {
355
357
  // submit google tag when the form is complete
356
358
  submitGtag('zonos-checkout-customer-info');
359
+ void trackConversionEvent('checkout_customerInfoCompleted');
357
360
  }
358
361
  }
359
362
  render() {
@@ -433,7 +436,7 @@ const ZonosDialog = class {
433
436
  document.body.style.overflow = 'auto';
434
437
  }
435
438
  const borderStyle = getBorderRadius(this.borderStyle);
436
- return (h(Host, { key: 'dd232b16db7f6a6216f91af19c8b735b7eb528c7', class: classes([
439
+ return (h(Host, { key: '3927d9cf0ebbd8b497a0ec42328c4392925d198a', class: classes([
437
440
  'zonos--elements',
438
441
  this.open && 'open',
439
442
  this.isLoading && 'is-loading',
@@ -444,10 +447,10 @@ const ZonosDialog = class {
444
447
  '--font-family': zonosStoreFontFamily(),
445
448
  '--height': this.height || 'initial',
446
449
  '--width': this.width,
447
- } }, h("div", { key: '23751fcbfe7a51856589d45feb59ed51ca3f86fa', class: "zonos--backdrop" }), h("div", { key: '3f5af0c470ad69e68b978753ece8d2687c99ab7c', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: 'e137a76e1a3e2cfc6403628fe804eb23d1bb1282', class: "zonos--dialog" }, this.isLoading && (h("div", { class: "zonos--loading" }, h("zonos-spinner", { size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { class: "zonos--header" }, this.headerText && (h("h3", { class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), h("div", { key: '46e89cdfaffd1190f4916206deb452002f40f24f', class: classes([
450
+ } }, h("div", { key: 'df93af61bfd856db3a572cdb98f60a8dd5c5bb7d', class: "zonos--backdrop" }), h("div", { key: 'f306feb4858dff642fbfd731e5aad849a8f29941', "aria-hidden": "true", class: "zonos--dialog-layout", onClick: this.clickOutsideDialogHandler }, h("div", { key: 'b914ea2e54fb2af825008ae28e235c461dce67e9', class: "zonos--dialog" }, this.isLoading && (h("div", { class: "zonos--loading" }, h("zonos-spinner", { size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { class: "zonos--header" }, this.headerText && (h("h3", { class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler })))), h("div", { key: '19219c0c8d167bbacec992ba10b1fe0f31a8b8f6', class: classes([
448
451
  'zonos--body',
449
452
  this.noBodyPadding && 'zonos--no-body-padding',
450
- ]) }, h("slot", { key: 'e8acb4a5e48ad4a0aeb057799f5abeb56eb8d1ea' })), this.footerRightAction && (h("div", { class: "zonos--footer" }, h("div", { class: "zonos--footer-right-action" }, this.footerRightAction)))))));
453
+ ]) }, h("slot", { key: '38f9b83418dacd47cc2395f253a32ff0a6723d54' })), this.footerRightAction && (h("div", { class: "zonos--footer" }, h("div", { class: "zonos--footer-right-action" }, this.footerRightAction)))))));
451
454
  }
452
455
  static get assetsDirs() { return ["assets"]; }
453
456
  };
@@ -479,7 +482,6 @@ const ZonosReview = class {
479
482
  ? 'boldSubheader'
480
483
  : 'secondaryPageHeader';
481
484
  const titleTextColor = this.isMobile ? 'gray-1200' : 'gray-800';
482
- const totalWithoutTaxes = cartStore.total - cartStore.dutiesTaxFees;
483
485
  const renderCollapseIcon = () => {
484
486
  // only display the collapse icon if the component is being rendered with mobile styles
485
487
  if (!this.isMobile) {
@@ -494,11 +496,7 @@ const ZonosReview = class {
494
496
  'zonos--review zonos--elements',
495
497
  this.isMobile && 'mobile',
496
498
  ]) }, h("div", { class: "zonos--title" }, h("zonos-text", { textColor: titleTextColor, type: titleTextType }, translate('Pay'), " ", zonosStore.organizationName), renderCollapseIcon()), h("div", { class: "zonos--total-pay" }, h("zonos-text", { type: totalTextType }, formatCurrency({
497
- amount:
498
- // show total without taxes when step is shipping, show total with taxes when step is payment
499
- cartStore.step === 'shipping'
500
- ? totalWithoutTaxes
501
- : cartStore.total,
499
+ amount: cartStore.total,
502
500
  currency: cartStore.currency,
503
501
  })))));
504
502
  }
@@ -506,7 +504,7 @@ const ZonosReview = class {
506
504
  };
507
505
  ZonosReview.style = ZonosReviewStyle0;
508
506
 
509
- const zonosShippingCss = ".sc-zonos-shipping-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--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--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.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(--amino-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--group-btn.sc-zonos-shipping{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";
507
+ const zonosShippingCss = ".sc-zonos-shipping-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--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--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.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(--amino-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-button.sc-zonos-shipping{-webkit-box-shadow:0 0 1px 0 var(--amino-gray-600);box-shadow:0 0 1px 0 var(--amino-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;margin-top:var(--amino-space-12);background:var(--primary-color, var(--amino-gray-0))}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";
510
508
  const ZonosShippingStyle0 = zonosShippingCss;
511
509
 
512
510
  const ZonosShipping = class {
@@ -543,9 +541,13 @@ const ZonosShipping = class {
543
541
  this.disabled = true;
544
542
  }
545
543
  watchFormComplete() {
544
+ var _a;
546
545
  if (!this.disabled) {
547
546
  // submit google tag when the form is complete
548
547
  submitGtag('zonos-checkout-shipping-info');
548
+ void trackConversionEvent('checkout_shippingInfoCompleted', {
549
+ serviceLevelId: (_a = this.selectedShippingMethod) === null || _a === void 0 ? void 0 : _a.value,
550
+ });
549
551
  }
550
552
  }
551
553
  render() {