@zonos/elements 1.3.114 → 1.3.116

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 (272) hide show
  1. package/dist/cjs/{CheckoutConfig-5d7cf0c0.js → CheckoutConfig-f2622b6b.js} +1 -1
  2. package/dist/cjs/{cart-6d966eea.js → cart-b3f6a451.js} +143 -55
  3. package/dist/cjs/{getBorderRadius-53c35cd1.js → getBorderRadius-61ed5601.js} +1 -1
  4. package/dist/cjs/index.cjs.js +36 -13
  5. package/dist/cjs/{isDarkColor-87ee1eb7.js → isDarkColor-d206c6fa.js} +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{paypal-ae7bd9f2.js → paypal-aab541fd.js} +3 -3
  8. package/dist/cjs/zonos-address_7.cjs.entry.js +12 -12
  9. package/dist/cjs/zonos-badge.cjs.entry.js +4 -4
  10. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/zonos-button_3.cjs.entry.js +6 -6
  12. package/dist/cjs/zonos-card.cjs.entry.js +6 -6
  13. package/dist/cjs/zonos-cart-items_13.cjs.entry.js +32 -25
  14. package/dist/cjs/zonos-checkout.cjs.entry.js +19 -8
  15. package/dist/cjs/zonos-collapse.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  17. package/dist/cjs/zonos-controller.cjs.entry.js +28 -5
  18. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  19. package/dist/cjs/zonos-country-select_4.cjs.entry.js +12 -12
  20. package/dist/cjs/zonos-elements.cjs.js +1 -1
  21. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -8
  22. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-input.cjs.entry.js +6 -6
  24. package/dist/cjs/zonos-language-select_2.cjs.entry.js +8 -8
  25. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
  27. package/dist/cjs/zonos-notification_3.cjs.entry.js +7 -7
  28. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  29. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  30. package/dist/cjs/zonos-toggle.cjs.entry.js +3 -3
  31. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  32. package/dist/cjs/zonos-v-stack.cjs.entry.js +3 -3
  33. package/dist/cjs/{zonosStore-b18fe6b6.js → zonosStore-e12d459c.js} +1 -0
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +13 -2
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +13 -2
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +3 -6
  38. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  39. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  40. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  41. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  42. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  43. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  44. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  45. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  46. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  47. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  48. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  49. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  50. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  51. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  52. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  53. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  54. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  55. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  56. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  57. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  58. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  59. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +1 -1
  60. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  61. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  62. package/dist/collection/components/main/zonos-controller.js +1 -1
  63. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  64. package/dist/collection/components/store/checkout/stripe.js +38 -11
  65. package/dist/collection/components/store/hello/localization.js +28 -29
  66. package/dist/collection/components/store/translationStore/strings.arabic.js +3 -0
  67. package/dist/collection/components/store/translationStore/strings.base.js +3 -0
  68. package/dist/collection/components/store/translationStore/strings.chinese.js +3 -0
  69. package/dist/collection/components/store/translationStore/strings.danish.js +3 -0
  70. package/dist/collection/components/store/translationStore/strings.dutch.js +3 -0
  71. package/dist/collection/components/store/translationStore/strings.french.js +3 -0
  72. package/dist/collection/components/store/translationStore/strings.german.js +3 -0
  73. package/dist/collection/components/store/translationStore/strings.hebrew.js +3 -0
  74. package/dist/collection/components/store/translationStore/strings.indonesian.js +3 -0
  75. package/dist/collection/components/store/translationStore/strings.italian.js +3 -0
  76. package/dist/collection/components/store/translationStore/strings.japanese.js +3 -0
  77. package/dist/collection/components/store/translationStore/strings.korean.js +3 -0
  78. package/dist/collection/components/store/translationStore/strings.norwegian.js +3 -0
  79. package/dist/collection/components/store/translationStore/strings.polish.js +3 -0
  80. package/dist/collection/components/store/translationStore/strings.portuguese.js +3 -0
  81. package/dist/collection/components/store/translationStore/strings.russian.js +3 -0
  82. package/dist/collection/components/store/translationStore/strings.spanish.js +3 -0
  83. package/dist/collection/components/store/translationStore/strings.swedish.js +3 -0
  84. package/dist/collection/components/store/translationStore/strings.turkish.js +3 -0
  85. package/dist/collection/components/store/translationStore/strings.vietnamese.js +3 -0
  86. package/dist/collection/components/store/zonosStore.js +1 -0
  87. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  88. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  89. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  90. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +14 -12
  91. package/dist/collection/components/utils/cleanHtmlMarkdown.js +1 -1
  92. package/dist/collection/components/utils/hello/initHello.js +23 -0
  93. package/dist/collection/scripts/_getTempCartById.js +1 -1
  94. package/dist/collection/scripts/_zonosBase.js +28 -5
  95. package/dist/esm/{CheckoutConfig-32f33d8b.js → CheckoutConfig-018263e2.js} +1 -1
  96. package/dist/esm/{cart-89bc298d.js → cart-fdaeeb8d.js} +143 -55
  97. package/dist/esm/{getBorderRadius-e55a9df1.js → getBorderRadius-008516a4.js} +1 -1
  98. package/dist/esm/index.js +37 -14
  99. package/dist/esm/{isDarkColor-4261bc3c.js → isDarkColor-dc08fa26.js} +1 -1
  100. package/dist/esm/loader.js +1 -1
  101. package/dist/esm/{paypal-804a4bcb.js → paypal-fb68deeb.js} +3 -3
  102. package/dist/esm/zonos-address_7.entry.js +12 -12
  103. package/dist/esm/zonos-badge.entry.js +4 -4
  104. package/dist/esm/zonos-banner.entry.js +1 -1
  105. package/dist/esm/zonos-button_3.entry.js +6 -6
  106. package/dist/esm/zonos-card.entry.js +6 -6
  107. package/dist/esm/zonos-cart-items_13.entry.js +32 -25
  108. package/dist/esm/zonos-checkout.entry.js +19 -8
  109. package/dist/esm/zonos-collapse.entry.js +3 -3
  110. package/dist/esm/zonos-component.entry.js +1 -1
  111. package/dist/esm/zonos-controller.entry.js +28 -5
  112. package/dist/esm/zonos-country-flag.entry.js +4 -4
  113. package/dist/esm/zonos-country-select_4.entry.js +12 -12
  114. package/dist/esm/zonos-elements.js +1 -1
  115. package/dist/esm/zonos-hello-dialog.entry.js +8 -8
  116. package/dist/esm/zonos-hello.entry.js +5 -5
  117. package/dist/esm/zonos-input.entry.js +6 -6
  118. package/dist/esm/zonos-language-select_2.entry.js +8 -8
  119. package/dist/esm/zonos-link.entry.js +1 -1
  120. package/dist/esm/zonos-logo.entry.js +3 -3
  121. package/dist/esm/zonos-notification_3.entry.js +7 -7
  122. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  123. package/dist/esm/zonos-text.entry.js +1 -1
  124. package/dist/esm/zonos-toggle.entry.js +3 -3
  125. package/dist/esm/zonos-tooltip.entry.js +2 -2
  126. package/dist/esm/zonos-v-stack.entry.js +3 -3
  127. package/dist/esm/{zonosStore-7798ac16.js → zonosStore-6b5bd87c.js} +1 -0
  128. package/dist/esm-es5/{CheckoutConfig-32f33d8b.js → CheckoutConfig-018263e2.js} +1 -1
  129. package/dist/esm-es5/cart-fdaeeb8d.js +1 -0
  130. package/dist/esm-es5/{getBorderRadius-e55a9df1.js → getBorderRadius-008516a4.js} +1 -1
  131. package/dist/esm-es5/index.js +1 -1
  132. package/dist/esm-es5/{isDarkColor-4261bc3c.js → isDarkColor-dc08fa26.js} +1 -1
  133. package/dist/esm-es5/loader.js +1 -1
  134. package/dist/esm-es5/{paypal-804a4bcb.js → paypal-fb68deeb.js} +1 -1
  135. package/dist/esm-es5/zonos-address_7.entry.js +1 -1
  136. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  137. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  138. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  139. package/dist/esm-es5/zonos-card.entry.js +1 -1
  140. package/dist/esm-es5/zonos-cart-items_13.entry.js +1 -1
  141. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  142. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  143. package/dist/esm-es5/zonos-component.entry.js +1 -1
  144. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  145. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  146. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  147. package/dist/esm-es5/zonos-elements.js +1 -1
  148. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  149. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  150. package/dist/esm-es5/zonos-input.entry.js +1 -1
  151. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  152. package/dist/esm-es5/zonos-link.entry.js +1 -1
  153. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  154. package/dist/esm-es5/zonos-notification_3.entry.js +1 -1
  155. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  156. package/dist/esm-es5/zonos-text.entry.js +1 -1
  157. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  158. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  159. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  160. package/dist/esm-es5/{zonosStore-7798ac16.js → zonosStore-6b5bd87c.js} +1 -1
  161. package/dist/scripts/index.d.ts +25 -12
  162. package/dist/scripts/index.js +1 -1
  163. package/dist/scripts/loadZonos.js +1 -1
  164. package/dist/scripts/zonos.js +1 -1
  165. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +5 -0
  166. package/dist/types/components/store/hello/localization.d.ts +1 -1
  167. package/dist/types/components/store/translationStore/strings.arabic.d.ts +3 -0
  168. package/dist/types/components/store/translationStore/strings.base.d.ts +3 -0
  169. package/dist/types/components/store/translationStore/strings.chinese.d.ts +3 -0
  170. package/dist/types/components/store/translationStore/strings.danish.d.ts +3 -0
  171. package/dist/types/components/store/translationStore/strings.dutch.d.ts +3 -0
  172. package/dist/types/components/store/translationStore/strings.french.d.ts +3 -0
  173. package/dist/types/components/store/translationStore/strings.german.d.ts +3 -0
  174. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +3 -0
  175. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +3 -0
  176. package/dist/types/components/store/translationStore/strings.italian.d.ts +3 -0
  177. package/dist/types/components/store/translationStore/strings.japanese.d.ts +3 -0
  178. package/dist/types/components/store/translationStore/strings.korean.d.ts +3 -0
  179. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +3 -0
  180. package/dist/types/components/store/translationStore/strings.polish.d.ts +3 -0
  181. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +3 -0
  182. package/dist/types/components/store/translationStore/strings.russian.d.ts +3 -0
  183. package/dist/types/components/store/translationStore/strings.spanish.d.ts +3 -0
  184. package/dist/types/components/store/translationStore/strings.swedish.d.ts +3 -0
  185. package/dist/types/components/store/translationStore/strings.turkish.d.ts +3 -0
  186. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +3 -0
  187. package/dist/types/components/store/translationStore.d.ts +1 -1
  188. package/dist/types/components/utils/api/prepCalculateLandedCost.d.ts +1 -1
  189. package/dist/types/components/utils/cleanHtmlMarkdown.d.ts +1 -1
  190. package/dist/types/components/utils/hello/initHello.d.ts +1 -0
  191. package/dist/types/components/utils/mergeConfig.d.ts +1 -1
  192. package/dist/types/scripts/_zonosBase.d.ts +1 -1
  193. package/dist/types/types/checkout/CheckoutConfig.d.ts +12 -11
  194. package/dist/types/types/global.d.ts +4 -0
  195. package/dist/types/types/hello/HelloConfig.d.ts +8 -0
  196. package/dist/zonos-elements/index.esm.js +1 -1
  197. package/dist/zonos-elements/{p-15750a04.system.js → p-00dc1507.system.js} +1 -1
  198. package/dist/zonos-elements/{p-ad733913.entry.js → p-069a1891.entry.js} +1 -1
  199. package/dist/zonos-elements/p-0b4a06cc.entry.js +1 -0
  200. package/dist/zonos-elements/p-0c57d568.system.entry.js +1 -0
  201. package/dist/zonos-elements/p-0c868b63.system.entry.js +1 -0
  202. package/dist/zonos-elements/p-0cedb17a.system.entry.js +1 -0
  203. package/dist/zonos-elements/p-122c318e.system.js +1 -0
  204. package/dist/zonos-elements/{p-c652212b.entry.js → p-149612d6.entry.js} +1 -1
  205. package/dist/zonos-elements/{p-1769c0d2.entry.js → p-15fbb3a5.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-e4a69ce9.system.entry.js → p-1aed6403.system.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-1c1ab3c8.system.entry.js → p-1e4f7997.system.entry.js} +1 -1
  208. package/dist/zonos-elements/p-2628189b.js +1 -0
  209. package/dist/zonos-elements/{p-9d7a79e3.entry.js → p-26be7ea7.entry.js} +1 -1
  210. package/dist/zonos-elements/{p-7cb4523f.system.entry.js → p-28b79606.system.entry.js} +1 -1
  211. package/dist/zonos-elements/{p-a2edb77e.entry.js → p-2c9b4d6f.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-ead95c3b.entry.js → p-30b1eae9.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-55735806.system.entry.js → p-383f6e8c.system.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-d01cfb8b.system.entry.js → p-3a410b06.system.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-45214b34.system.entry.js → p-3dacae53.system.entry.js} +1 -1
  216. package/dist/zonos-elements/{p-1deb01e3.entry.js → p-3e2aa5e2.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-42d9d3af.system.entry.js → p-3f5b6e7a.system.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-2aa5575f.entry.js → p-44991bcf.entry.js} +1 -1
  219. package/dist/zonos-elements/{p-c598b3c5.entry.js → p-46d96a0d.entry.js} +1 -1
  220. package/dist/zonos-elements/{p-3c326d01.system.entry.js → p-48b42c33.system.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-ab9af87d.system.entry.js → p-55d26aaa.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-8f9198f2.system.js → p-579932dc.system.js} +1 -1
  223. package/dist/zonos-elements/p-5c37e64d.entry.js +1 -0
  224. package/dist/zonos-elements/{p-b35e67f7.system.entry.js → p-60e5a6a2.system.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-e5e63927.system.entry.js → p-66303c89.system.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-e559d12d.js → p-67a32cc5.js} +1 -1
  227. package/dist/zonos-elements/{p-05d558c2.entry.js → p-6b52ae05.entry.js} +1 -1
  228. package/dist/zonos-elements/{p-1c7e19f7.entry.js → p-6de38759.entry.js} +1 -1
  229. package/dist/zonos-elements/{p-33b57fab.system.js → p-6e2f4ea1.system.js} +1 -1
  230. package/dist/zonos-elements/{p-019028d5.entry.js → p-7a4170ba.entry.js} +1 -1
  231. package/dist/zonos-elements/{p-ac97f26c.system.entry.js → p-80733970.system.entry.js} +1 -1
  232. package/dist/zonos-elements/{p-d3c1ad61.system.entry.js → p-86f0d69c.system.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-a24da794.js → p-91cfbf46.js} +1 -1
  234. package/dist/zonos-elements/{p-f26c4392.entry.js → p-93626c76.entry.js} +1 -1
  235. package/dist/zonos-elements/{p-8e6bbf2c.entry.js → p-99ab4440.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-42b0fca8.system.entry.js → p-9a89de05.system.entry.js} +1 -1
  237. package/dist/zonos-elements/{p-d49cdf77.system.entry.js → p-9e757bf5.system.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-56d405d0.js → p-9eae2294.js} +1 -1
  239. package/dist/zonos-elements/{p-3c90f724.system.entry.js → p-b31095d5.system.entry.js} +1 -1
  240. package/dist/zonos-elements/p-b82e527a.entry.js +1 -0
  241. package/dist/zonos-elements/p-c325fd7b.entry.js +1 -0
  242. package/dist/zonos-elements/{p-daab619c.system.js → p-c3e98be6.system.js} +1 -1
  243. package/dist/zonos-elements/p-c78dd680.system.js +1 -1
  244. package/dist/zonos-elements/{p-2cce0f21.system.js → p-c85b4e43.system.js} +1 -1
  245. package/dist/zonos-elements/{p-514b42a4.system.entry.js → p-d1a3fa94.system.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-0a8b6b4a.system.entry.js → p-d3472a00.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-31acf417.entry.js → p-d91da318.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-e132bc3d.js → p-dd8fb969.js} +1 -1
  249. package/dist/zonos-elements/{p-f20b3656.entry.js → p-de2fe7f5.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-032159ed.js → p-e1ce04b1.js} +1 -1
  251. package/dist/zonos-elements/{p-1605dd48.entry.js → p-e46bd90a.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-ec26f25a.system.entry.js → p-e47cba8e.system.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-1a0e138c.entry.js → p-ebb97202.entry.js} +1 -1
  254. package/dist/zonos-elements/{p-442a308c.system.entry.js → p-eeb2c2f4.system.entry.js} +1 -1
  255. package/dist/zonos-elements/p-f1a5d662.system.entry.js +1 -0
  256. package/dist/zonos-elements/{p-ed222a50.entry.js → p-f8c88d80.entry.js} +1 -1
  257. package/dist/zonos-elements/p-fbedb337.system.js +1 -0
  258. package/dist/zonos-elements/{p-b34ccbfd.entry.js → p-ff6e4ea6.entry.js} +1 -1
  259. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  260. package/package.json +2 -2
  261. package/dist/esm-es5/cart-89bc298d.js +0 -1
  262. package/dist/zonos-elements/p-007c64dc.system.js +0 -1
  263. package/dist/zonos-elements/p-02b1e030.system.entry.js +0 -1
  264. package/dist/zonos-elements/p-30b8dbd4.entry.js +0 -1
  265. package/dist/zonos-elements/p-347c0756.entry.js +0 -1
  266. package/dist/zonos-elements/p-3cfa837c.entry.js +0 -1
  267. package/dist/zonos-elements/p-6ae2485b.system.js +0 -1
  268. package/dist/zonos-elements/p-97114032.js +0 -1
  269. package/dist/zonos-elements/p-d1f334d8.system.entry.js +0 -1
  270. package/dist/zonos-elements/p-ece0b7ab.system.entry.js +0 -1
  271. package/dist/zonos-elements/p-f25f6bf9.system.entry.js +0 -1
  272. package/dist/zonos-elements/p-fe781493.entry.js +0 -1
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { j as stripeStore, R as getFallbackDefaultCountryCode, l as localizationStore, o as translate } from './cart-89bc298d.js';
2
+ import { j as stripeStore, R as getFallbackDefaultCountryCode, l as localizationStore, o as translate } from './cart-fdaeeb8d.js';
3
3
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
4
4
  import { a as logError, l as log } from './handleFetch-3dea7d46.js';
5
5
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
6
- import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
6
+ import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
7
7
  import { c as classes } from './classes-0d95c529.js';
8
8
  import { R as RemoveIcon$1 } from './RemoveIcon-9dc5dd1a.js';
9
- import { g as getBorderRadius } from './getBorderRadius-e55a9df1.js';
10
- import { i as isDarkColor } from './isDarkColor-4261bc3c.js';
9
+ import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
10
+ import { i as isDarkColor } from './isDarkColor-dc08fa26.js';
11
11
 
12
12
  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:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
13
13
  const ZonosAddressStyle0 = zonosAddressCss;
@@ -145,7 +145,7 @@ const ZonosAddress = class {
145
145
  }
146
146
  render() {
147
147
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
148
- return (h(Host, { key: 'e66063ffb032f5c5506e2fe72c5b8986b7c63b16', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'bd0e6d1f9a895b9c97f72b3e2a872ddc6420550f', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'e3fde23bbe25238a8d29005c9fe11b2d9f7f1cff', class: "zonos--address-component" })));
148
+ return (h(Host, { key: '50871d11c001d37882b61476acdc227fcf3e2abd', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '90ffd3b0cc76446c88f3afe864a9bc9ecabb3997', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '98c2bd4c328bc3df138ae61f767b70b18524e877', class: "zonos--address-component" })));
149
149
  }
150
150
  get el() { return getElement(this); }
151
151
  static get watchers() { return {
@@ -445,14 +445,14 @@ const ZonosCheckbox = class {
445
445
  customRoundRadius: '4px',
446
446
  overrideBorderStyle: this.borderStyle,
447
447
  });
448
- return (h(Host, { key: '5309db6094793a992d4a605a6d1e3c83ced3c9d0', class: classes(['zonos--elements zonos--checkbox']), style: {
448
+ return (h(Host, { key: 'be29586ffd5ae5227614622cfb402686ff5e0583', class: classes(['zonos--elements zonos--checkbox']), style: {
449
449
  '--background-color': backgroundColor,
450
450
  '--border-radius': borderStyle,
451
451
  '--font-family': zonosStoreFontFamily(),
452
452
  '--size': `${this.size}px`,
453
- } }, h("label", { key: '06e34043130ada8ca8abd0d0930ba60c7e0b9371', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: 'fe09f13ccd0b15c6d71cb21fc1742c1243c04b66', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
453
+ } }, h("label", { key: '091c2388668a94962d7b2bde4496856805f675e8', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: 'c0f66d11f63591b03631cb1c970c0db201d435e2', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
454
454
  this.checkboxSelected.emit(e.target.checked);
455
- }, type: "checkbox" }), h("span", { key: 'c523e7e7919e8d26cb4a62790af04915d2f939d8', class: "checkmark-container" }, h("svg", { key: '95b0359976b4796a9186069a04c5568a13132b8e', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '68ecd2567b9c8922bd6919290f0f8affcaca0c2c', "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", { key: '52b38dcd04947a0a0106f565a124cd4a0f9d17db', size: this.fontSize }, this.label)))));
455
+ }, type: "checkbox" }), h("span", { key: 'ab6c4847d006a812829bd8e871520455da91c7b0', class: "checkmark-container" }, h("svg", { key: '617693bef302910db463cdf95b10700b72ea8d44', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '410728b7d5edf27966e660e598f166ce8292015e', "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", { key: '1b9a21e7ef15ad34684453bc25cb3744ba183cd0', size: this.fontSize }, this.label)))));
456
456
  }
457
457
  };
458
458
  ZonosCheckbox.style = ZonosCheckboxStyle0;
@@ -518,7 +518,7 @@ const ZonosDialog = class {
518
518
  const borderStyle = getBorderRadius({
519
519
  overrideBorderStyle: this.borderStyle,
520
520
  });
521
- return (h(Host, { key: 'c8ab0781b89349e035d788af2ec4fbc00241bb30', class: classes([
521
+ return (h(Host, { key: '018771d0e01311ae520abcf33fbd64316794b202', class: classes([
522
522
  'zonos--elements',
523
523
  this.open && 'open',
524
524
  this.isLoading && 'is-loading',
@@ -530,10 +530,10 @@ const ZonosDialog = class {
530
530
  '--height': this.height || 'initial',
531
531
  '--min-height': this.minHeight || '500px',
532
532
  '--width': this.width,
533
- } }, h("div", { key: '14169030c9b8882ffe9b14383c1dbfa319147d01', class: "zonos--backdrop" }), h("div", { key: 'c361b1520e4fb28e308dd548e139af89c289493d', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: '1868e77997d810a0925f365772829668f1ae73c6', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'ff35aada7dcfe1c5bbfb8eade99ea4af3d29f306', class: "zonos--loading" }, h("zonos-spinner", { key: '2947bba83fafbfb48af54ac92d79aae2330dbbe5', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: 'bfcdc066fb00e472bfe60631f6ee08460bf91045', class: "zonos--header" }, this.headerText && (h("h3", { key: 'a54a43766b3d8742c27d797e2cd0f9925133a6f3', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '176a8d137c9d40ddfed9de5fcf4ba926fcf7b408', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, variant: "subtle" })))), h("div", { key: '5f76d5221d2c075808f3550f28b11581a3a78cfd', class: classes([
533
+ } }, h("div", { key: 'a86c9f8465054fde894bbdd71149e59d97e8cbcf', class: "zonos--backdrop" }), h("div", { key: 'b2f0c86fa0e768474ba4d522f8c2b8157f89cd56', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: '26cd8a7b98d38c53dcf4789c8781f0c1ced99633', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '34d0ba841a9af9ca2ff6d21d0471113cc86cdec3', class: "zonos--loading" }, h("zonos-spinner", { key: '0109778b1a9734de0959035e3975414fb1cac1be', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: 'f80a4c337727500ee1ad92c1d80d7b3088eccc0f', class: "zonos--header" }, this.headerText && (h("h3", { key: '92b078fbbcd9ca5f8bf178fc67f2bee817d1e961', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '698e45fffd466f22b6179aa220d35fe39ee5374c', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, variant: "subtle" })))), h("div", { key: 'a4012e5a48d5fbcc77cac038d8a39fe05f332008', class: classes([
534
534
  'zonos--body',
535
535
  this.noBodyPadding && 'zonos--no-body-padding',
536
- ]) }, h("slot", { key: '53fc24113ac0cfbeb622cb38cea32ebff572f7e8' })), h("slot", { key: '92079f1396304c9966cefc918fcbe87f64a348f3', name: "dialog-footer" })))));
536
+ ]) }, h("slot", { key: 'd64b381cb91afde4ddbde58348a62612d9871c8e' })), h("slot", { key: '4ddd73bfe41ecd1c90b18f82a8d8f12a1eacf144', name: "dialog-footer" })))));
537
537
  }
538
538
  static get assetsDirs() { return ["assets"]; }
539
539
  };
@@ -580,7 +580,7 @@ const ZonosLinkAuthentication = class {
580
580
  }
581
581
  render() {
582
582
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
583
- return (h(Host, { key: '715d58ba37c753ac4890aabf3b6979a759a5594a', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '1394e448a080a21522e91a62c8886d49c3616e59', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '417bc27477776220acfdc9d9f76acd91fd14c1ca', class: "zonos--link-authentication-component" })));
583
+ return (h(Host, { key: 'f0b26abf99ef99c6665dabdddebc9ff086b6816c', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '898dbdffac06fe2a68af90610a22044bb72391ce', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'e2ec9abb0cf76a39a1262e1366e375dd898450cd', class: "zonos--link-authentication-component" })));
584
584
  }
585
585
  get el() { return getElement(this); }
586
586
  static get watchers() { return {
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
 
5
5
  const RemoveLineIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -23,16 +23,16 @@ const ZonosBadge = class {
23
23
  this.dismissHandler = undefined;
24
24
  }
25
25
  render() {
26
- return (h(Host, { key: '0d5b32ba989420e4f68519f519db3227568a3cd9', class: classes(['zonos--elements zonos--badge']), style: {
26
+ return (h(Host, { key: '250028cd50c23400b88ae1cbfa17836ade3d501b', class: classes(['zonos--elements zonos--badge']), style: {
27
27
  '--font-family': zonosStoreFontFamily(),
28
- } }, h("div", { key: '43ea955a3005bed1bf30736b9515dc59fc5d9166', class: classes([
28
+ } }, h("div", { key: '9d2f93b0fb791c6b3390d669473261183b5662dd', class: classes([
29
29
  'zonos--badge-content',
30
30
  this.badgeColor,
31
31
  this.rounded && 'rounded',
32
32
  this.iconRight && 'icon-right',
33
33
  this.size,
34
34
  this.bold && 'bold',
35
- ]) }, this.icon, h("zonos-text", { key: '4ba9b812daf3f977eb7558717d1ccdb6337dab81', textColor: `${this.badgeColor}-800` }, h("slot", { key: 'e55243d80edfd4d2ac855b72c3d10f23a2145a6d' })), this.dismissHandler && (h("zonos-icon", { key: 'dcce519c1a2d75021922adabdd640995994a971e', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
35
+ ]) }, this.icon, h("zonos-text", { key: 'b612923e4e26d250a6f9d604e68d7d5a69f99701', textColor: `${this.badgeColor}-800` }, h("slot", { key: '71369a45f9e31e9f08cbd54a4e97d310d213a768' })), this.dismissHandler && (h("zonos-icon", { key: '256f64f95a466be5cc7d1606666067fc06dbd061', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
36
36
  }
37
37
  };
38
38
  ZonosBadge.style = ZonosBadgeStyle0;
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.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(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
2
+ import { z as zonosStore, d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { g as getBorderRadius } from './getBorderRadius-e55a9df1.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
5
5
  import { i as isColorVariable } from './isColorVariable-82457bef.js';
6
- import { i as isDarkColor } from './isDarkColor-4261bc3c.js';
6
+ import { i as isDarkColor } from './isDarkColor-dc08fa26.js';
7
7
 
8
8
  /**
9
9
  * Get theme for button text based on background color
@@ -155,12 +155,12 @@ const ZonosButton = class {
155
155
  const borderStyle = getBorderRadius({
156
156
  overrideBorderStyle: this.borderStyle,
157
157
  });
158
- return (h(Host, { key: '3bb9845e23e10deb5988e6b2c0904b0ea1afeeea', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
158
+ return (h(Host, { key: 'd35c2874d343aa93b38cb40cbe8cdeb5c77bb97c', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
159
159
  '--background-color': backgroundColor,
160
160
  '--border-radius': borderStyle,
161
161
  '--color': color,
162
162
  '--font-family': zonosStoreFontFamily(),
163
- }) }, h("button", { key: 'd2237dc9995cd537d77c169880937a83350ae683', class: classes([
163
+ }) }, h("button", { key: '9a964a9eb765152075c6a08008341d177e4d2879', class: classes([
164
164
  this.hasIcon && 'has-icon',
165
165
  this.hasContent && 'has-content',
166
166
  this.noBackground && 'no-background',
@@ -175,7 +175,7 @@ const ZonosButton = class {
175
175
  backgroundColor && variant === 'standard' && 'override-background',
176
176
  ]), disabled: disabled, style: {
177
177
  justifyContent: this.justifyContent,
178
- } }, this.loading && (h("div", { key: '4756ec69aa3bcd84406f4039567191fdf831f23f', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '0bcaad4c29bd28f14ecac8fe11a4ae9a16cee543', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'bdfdb5ebc08371dbe4e680cc252c4e9841756ec8', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
178
+ } }, this.loading && (h("div", { key: 'bcc0ae7d419ae25477b65d4e9c26b62f7f1e1a1f', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: 'dcd083f67544bd05b0ca866ff19a44fc33c77715', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'c32fab50c66737462c6a2743100cd43156edab27', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
179
179
  }
180
180
  static get delegatesFocus() { return true; }
181
181
  get ele() { return getElement(this); }
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { g as getBorderRadius } from './getBorderRadius-e55a9df1.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
5
5
 
6
6
  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(--zonos-elements-border);border-radius:var(--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
7
7
  const ZonosCardStyle0 = zonosCardCss;
@@ -26,16 +26,16 @@ const ZonosCard = class {
26
26
  customRoundRadius: `${this.borderRadius}px`,
27
27
  overrideBorderStyle: 'ROUNDED',
28
28
  });
29
- return (h(Host, { key: '632905e207d9dd9f8392759cad2885291ce66aea', style: {
29
+ return (h(Host, { key: '0feaf20ca1bb493792614216aeace549a3bad708', style: {
30
30
  '--font-family': zonosStoreFontFamily(),
31
- } }, h("div", { key: '3eff8df6e47265977e82180ee7d6ac2b32861000', class: classes(['styled-card']), style: {
31
+ } }, h("div", { key: '9a05937c24886d73e52ef2f6bf722869247e133c', class: classes(['styled-card']), style: {
32
32
  '--background-color': backgroundColor,
33
33
  '--border-radius': borderRadius,
34
34
  padding: this.spacing,
35
- } }, this.label && (h("header", { key: '1eb39042c68381efa46e762e48096366975a1b61', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '573de073bc15576ad3af98af703aa03a3135aebb', type: "subheader" }, this.label), h("h-stack", { key: '03f11b944d438db45a93ff7448e89b44f82e14fe', spacing: 8 }, this.actions))), h("slot", { key: '582071d03c2866271320aea7f30a4b5d9d63ff41' }), (this.footerActions || this.footerContent) && (h("footer", { key: '6909cb6983ce84f517deef48758271c8797b6ac4', class: "card-footer", style: {
35
+ } }, this.label && (h("header", { key: '862b765cabe5ab5c897db18654b0be0c8ed492f3', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: 'e637d00494ba2ca7d081bd2eebcb825afc4ffa90', type: "subheader" }, this.label), h("h-stack", { key: '5174ef0a9f588d9862aca3375a3ad3269cbc0051', spacing: 8 }, this.actions))), h("slot", { key: 'b260fa53b675b0465d32deba0daaa13a0eb85ac1' }), (this.footerActions || this.footerContent) && (h("footer", { key: '0681bfa581ef37bf0a102eb1dfe9f6fd4c0d88f4', class: "card-footer", style: {
36
36
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
37
37
  padding: this.spacing,
38
- } }, h("div", { key: '6ff0f9ba56df40829dfd01663cc6ce528b880fda' }, this.footerContent), h("h-stack", { key: '8270f150b0c1b82dc37cb04a112998e23c110ed2', spacing: 8 }, this.footerActions))))));
38
+ } }, h("div", { key: '65271d4dd4e32a64467be17d10202cad1f302fe4' }, this.footerContent), h("h-stack", { key: 'fd1ded15a0caae9a2f781fc0f6fbf59e7768ef37', spacing: 8 }, this.footerActions))))));
39
39
  }
40
40
  };
41
41
  ZonosCard.style = ZonosCardStyle0;
@@ -1,14 +1,14 @@
1
1
  import { r as registerInstance, a as getAssetPath, h, H as Host, F as Fragment, c as createEvent, d as getElement } from './index-86b8247e.js';
2
- import { d as cartStore, G as currencyFormat, o as translate, H as cartStoreHasOneEligibleItem, I as stripeStoreApplyPromoCode, J as stripeStoreRemovePromoCode, y as stripeStoreReset, j as stripeStore, K as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, M as stripeStoreMessageBasedOnStatus, l as localizationStore, N as stripeStoreTranslateAddressToLatin, O as cartStoreUpdateSelectedShippingOption, P as cartStoreGetShippingTransitInfo, Q as sortServiceLevelOptionsByAmount } from './cart-89bc298d.js';
2
+ import { d as cartStore, G as currencyFormat, o as translate, H as cartStoreHasOneEligibleItem, I as stripeStoreApplyPromoCode, J as stripeStoreRemovePromoCode, y as stripeStoreReset, j as stripeStore, K as stripeStoreRetrievePayment, t as trackConversionEvent, L as stripeStoreResetPromoCode, M as stripeStoreMessageBasedOnStatus, l as localizationStore, N as stripeStoreTranslateAddressToLatin, O as cartStoreUpdateSelectedShippingOption, P as cartStoreGetShippingTransitInfo, Q as sortServiceLevelOptionsByAmount } from './cart-fdaeeb8d.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
- import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-804a4bcb.js';
5
- import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
4
+ import { s as submitGtag, b as paypalStore, c as paypalStoreReset, i as isContrastColor } from './paypal-fb68deeb.js';
5
+ import { z as zonosStore, g as getZonosStoreTheme, d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
6
6
  import { c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-31a792d3.js';
7
- import { g as getBorderRadius } from './getBorderRadius-e55a9df1.js';
7
+ import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
8
8
  import { h as handleFetch, l as log, s as sendErrorLog, j as jsonParse, b as allLogs } from './handleFetch-3dea7d46.js';
9
9
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
10
10
  import { l as languages } from './ILanguage-cd6acb72.js';
11
- import { i as isDarkColor, t as tinycolor } from './isDarkColor-4261bc3c.js';
11
+ import { i as isDarkColor, t as tinycolor } from './isDarkColor-dc08fa26.js';
12
12
  import { i as isColorVariable } from './isColorVariable-82457bef.js';
13
13
  import { c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
14
14
 
@@ -1032,7 +1032,7 @@ const turndownService = new TurndownService();
1032
1032
  * @example
1033
1033
  * const htmlInput = "<h1>Hello World</h1><p>This is a paragraph.</p>";
1034
1034
  * const result = cleanHtmlMarkdown(htmlInput);
1035
- * console.log(result); // Outputs cleaned HTML after conversion and processing
1035
+ * console.info(result); // Outputs cleaned HTML after conversion and processing
1036
1036
  */
1037
1037
  const cleanHtmlMarkdown = (htmlString) => {
1038
1038
  const mdString = turndownService.turndown(htmlString);
@@ -1291,6 +1291,14 @@ const ZonosCheckoutFinish = class {
1291
1291
  }
1292
1292
  window.location.href = url;
1293
1293
  };
1294
+ /**
1295
+ * It would make more sense to have keep shopping button if the success behavior is not redirecting to a different page
1296
+ */
1297
+ this.shouldRenderKeepShoppingButton = () => {
1298
+ const { successBehavior } = zonosStore.checkoutSettings;
1299
+ return (successBehavior === 'ZONOS_SUCCESS_PAGE' ||
1300
+ successBehavior === 'CLOSE_MODAL');
1301
+ };
1294
1302
  this.handleSuccessBehavior = async () => {
1295
1303
  var _a, _b;
1296
1304
  /**
@@ -1525,6 +1533,7 @@ const ZonosCheckoutFinish = class {
1525
1533
  this.notificationType = 'success';
1526
1534
  this.notificationTitle = '';
1527
1535
  this.notificationMessages = [];
1536
+ this.notificationActionText = translate('Keep shopping');
1528
1537
  this.order = null;
1529
1538
  }
1530
1539
  componentDidLoad() {
@@ -1547,11 +1556,12 @@ const ZonosCheckoutFinish = class {
1547
1556
  }
1548
1557
  render() {
1549
1558
  const isTestMode = getIsTestMode();
1550
- return (h(Host, { key: 'a255ef40504c8e569b44dcdde6a8026745f38c9f', class: "zonos--checkout-finish zonos--elements", style: {
1559
+ return (h(Host, { key: 'c951a9a8fac681e50d9741b8bfef09e10e1e6b9b', class: "zonos--checkout-finish zonos--elements", style: {
1551
1560
  '--border-radius': getBorderRadius({
1552
1561
  overrideBorderStyle: this.borderRadius,
1553
1562
  }),
1554
- } }, !this.isLoading && (h("div", { key: 'a14c5a6476b6d77c8b070239b3dbf3b1248d91a1', class: "zonos--finish-details" }, h("div", { key: '7d1d11bc6d1648f6e05fa08c8afa38df2db4f773', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '6e2b00afd313f4724cbd0e3c0ff6d099a4eb0423', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: '89ddff1e318401adcc01a1883628651688a39338', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null)))))), isTestMode && cartStore.step === 'finish' && (h("div", { key: '078de76fc1c106538d8ac586edc831639b94e2e1', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: '30b68c106ad0eada43b8fadd0b20738d63af0f24', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'a8d092e0a2084ed2c1e2342a7aaf06bf309b559b', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1563
+ } }, !this.isLoading && (h("div", { key: 'b6d10fa322320f30c0ff702f256f32b6acb69af5', class: "zonos--finish-details" }, h("div", { key: '8c3801345cb72d8c9addcea1577e4480640c4ae9', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '89a874b1f1d1b325cda6d6f8e5863c10867c6161', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), h("zonos-text", { key: 'ed3410d00f0215bcfaf53e15bb5c6f6e0d923c65', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), !window.Zonos.isLegacyCheckout &&
1564
+ this.shouldRenderKeepShoppingButton() && (h("zonos-button", { key: 'adfd0912e7e7f59284488163f500c3d07453bc4b', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cartStore.step === 'finish' && (h("div", { key: '2f9c5db57935e99531189a29a5471b26d963e646', class: "zonos--finish-button-wrapper" }, h("zonos-button", { key: 'ebcebeabea725bbbec030cfde621ab54c7263f53', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), h("zonos-button", { key: 'f52f574517b536a7586d2fea92fc66b22996b8ed', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1555
1565
  }
1556
1566
  static get assetsDirs() { return ["assets"]; }
1557
1567
  };
@@ -1599,10 +1609,10 @@ const ZonosCheckoutFooter = class {
1599
1609
  const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
1600
1610
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
1601
1611
  const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
1602
- return (h(Host, { key: 'c84407b445b03673c739e526407d5daece2465c1', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: 'de44554ef9af66b36e957ffc7c03c3102eb54289', class: "zonos--checkout-footer" }, h("div", { key: 'c045ebefdfe7e0c78f003ba25478297713726adc', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: 'f9028e5d572a8563f4b223edf28554ecc6bc79a2', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: 'efa7bd0f7ff692d10eddacdcd922eefd8734dcde', class: classes([
1612
+ return (h(Host, { key: '43ce81796f2534226d03420dbaa8d8d37161f64a', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: 'c20e95a6ad27bccc7b23ae14ce9bea9319327dd4', class: "zonos--checkout-footer" }, h("div", { key: 'fa95241196ab3fff6c6520cbe083199a418f1f6c', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '7c12428aa768eb81a9ecec798575109be5811a2c', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), h("div", { key: '4615354c98cd5617343db83743e4d177d893f712', class: classes([
1603
1613
  'zonos--checkout-footer-dialog',
1604
1614
  this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
1605
- ]) }, h("zonos-language-select", { key: '4086571d445ad29f824975a6ad107d1351302d78', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: 'f16a9caea53befe23f6fc6f5690635d9cd6e196b', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: '5ca1a5aadf50bb038209a505b8bece798c92efc5', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'c60d81728e5ebdddea08429eae156e312e407d35', textColor: colorDesktop }, "Privacy policy")), h("div", { key: 'e50935aea98312ab3ffd3c04e8155843e802791a', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: 'b8e10c2d63cf5bade264213ae2e37639b10347ae', textColor: colorDesktop }, "Powered by"), h("a", { key: '5f4ad624ac59e6e59d0bc73f70eb98399009cf1a', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'db358784c050fedfb7b0e4e02ca54c9926691963', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 })))))));
1615
+ ]) }, h("zonos-language-select", { key: '35b0c80d3b20167991391f336d0eda178857047c', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '333f9da8e9aeb6286e52145630ec7e9ec8aabff6', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: 'b6de914d3f4886151e5b780de7f517e158e83173', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'b6aba4130c0f1f22dd6644002f752630d3d8524f', textColor: colorDesktop }, "Privacy policy")), h("div", { key: 'b44e2b03aa2e156076f27737be4d82dd62a98f0b', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: '22cee8f4bdc69c38a9f5ab5affaaf9fd23fe70e3', textColor: colorDesktop }, "Powered by"), h("a", { key: '87fe092647de1fcc9ac6e3bf3ff00b9014f67560', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'b35efd69f13b4623ef40f42b12f83a8a9506f725', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 })))))));
1606
1616
  }
1607
1617
  get el() { return getElement(this); }
1608
1618
  static get watchers() { return {
@@ -1771,17 +1781,17 @@ const ZonosCheckoutProgressTabs = class {
1771
1781
  color: labelSelectedColor,
1772
1782
  })
1773
1783
  : labelSelectedColor;
1774
- return (h(Host, { key: 'cb720c17828585b4e5235c0695d1887efacfc232', class: "zonos--elements", style: {
1784
+ return (h(Host, { key: '6f1797cd7dbaf99d72cdb61041c780d0635d9dc0', class: "zonos--elements", style: {
1775
1785
  '--color': contrastLabelColor,
1776
1786
  '--progress-percent': this.getTotalSuccessStep(),
1777
- } }, h("div", { key: '3249121ebbb26b8a377f0fdf39700e5098374bae', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
1787
+ } }, h("div", { key: '8eb4ef12ed76f9e14a68b6dfe589b0f10bd3fc3b', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
1778
1788
  const isSelected = tab.value === selectedStep;
1779
1789
  return (h("button", { class: classes([
1780
1790
  'zonos--tab-item',
1781
1791
  tab.value === selectedStep && 'selected',
1782
1792
  tab.isDone && 'done',
1783
1793
  ]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => (cartStore.step = tab.value) }, h("div", { class: "zonos--tab-index" }, h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index + 1), h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, translate(tab.label))));
1784
- })), h("div", { key: 'da31d2d0a835182509a8199dc4fa9f1278be23e1', class: "zonos--tab-progress" }, h("div", { key: '6523c3e32b0926915b7d06f9cb19f6fc427c0e84', class: "zonos--progress-bar-fill" }))));
1794
+ })), h("div", { key: 'fa2d07af26eb4c50ecb06ec685cbf0eddc54be98', class: "zonos--tab-progress" }, h("div", { key: 'af86726d61e8db32f95a84758ace851e7297d013', class: "zonos--progress-bar-fill" }))));
1785
1795
  }
1786
1796
  static get assetsDirs() { return ["assets"]; }
1787
1797
  get ele() { return getElement(this); }
@@ -1883,13 +1893,13 @@ const ZonosConfirmDialog = class {
1883
1893
  const borderStyle = getBorderRadius();
1884
1894
  // Get theme for the update dialog, inherit from the theme, no from this component theme
1885
1895
  const theme = getZonosStoreTheme(zonosStore.appearance.theme);
1886
- return (h(Host, { key: '2ae28cccbc55249c415bdeb1f3b6ebfcd16705fd', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
1896
+ return (h(Host, { key: 'ba14f47b129207062edf7eca1f9fc5b71d689e4a', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
1887
1897
  '--border-radius': borderStyle,
1888
1898
  '--dialog-width': `${this.dialogWidth}px`,
1889
1899
  '--font-family': zonosStoreFontFamily(),
1890
- } }, h("div", { key: '6887502fc45f8726e00875c1533853f170d61b69', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '9e303d17187cf0c8d281e4faa9ad65704b7b5f56', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '2a7a8633c62e14bb134ebb6cd08050a558498afc', class: "zonos--confirm-dialog", onBlur: () => {
1900
+ } }, h("div", { key: 'b9eb2237cc834e23ce3b60bf2f99ad5c4d0b4ebf', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '45b67c5a79955b579f0488f239f79a78d448482f', "aria-hidden": "true", class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '8aae5e6df9242f84fc225e687563db7aabc1751b', class: "zonos--confirm-dialog", onBlur: () => {
1891
1901
  this.focusDialog();
1892
- } }, h("div", { key: '738395a26d051c099893c9d186e711742b87fd0d', class: "wrapper" }, h("div", { key: '6037c59790568e095c42fabd6bc2c02d026e36de', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '0db72c9e8702e642e6eba5d81d2560f69491742e', class: "content" }, h("div", { key: 'a6e25a16aba531ed8e4f0400c44df1ef5f3bd968', class: "title" }, h("zonos-text", { key: '8d572ed39778bb406bf69791fe8c8685c03a884f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: 'c4a57430c8fc7003be681857f4a5a5c9588c4a38', class: "subtitle" }, h("zonos-text", { key: '73d8b2ca508ab2e022b92f12a0f6bbc0d4c6abe2', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: 'f7c52a24a3ed7ca4ac63b57dc38dc67b6272d9f3', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: '50906e6744254cb190e0e13e51c7509f3560623e', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: '9b25a61bca74e9ee10e5f9057232faf3507acbe8', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
1902
+ } }, h("div", { key: '7a1eb45d4e015a9cd1ebb7acc9fe28917153bd53', class: "wrapper" }, h("div", { key: 'd145883d1ff60117e800e4238e3f011e43173246', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '9a93b028b1d282f1d6fde264773a0f4a4d62326c', class: "content" }, h("div", { key: '92573585e3689e4fffa60d904199999e0bfa8216', class: "title" }, h("zonos-text", { key: 'eaf1f349f478f577edc6884cf9824b74d86dcbb7', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: 'aa3df64ec40031fd7599972a454cab232f57c7b9', class: "subtitle" }, h("zonos-text", { key: 'ea802033d7faf3bcd2a9c682dcdcd6588d3c9970', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: 'fb814639b9bbf9f284cf2def17d75ead8270c06f', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: 'fa1597ca8c4cd999c23229d0097e5c264844b8d1', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: '78be0072def6bfa88a7482d3f7bbd5df53450f3d', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
1893
1903
  }
1894
1904
  static get assetsDirs() { return ["assets"]; }
1895
1905
  get el() { return getElement(this); }
@@ -2143,11 +2153,11 @@ const ZonosRestState = class {
2143
2153
  }
2144
2154
  render() {
2145
2155
  const imageUrl = this.getImageRestState();
2146
- return (h(Host, { key: 'e27bb400718152b275761f858f8667474d452b09', class: classes(['zonos--elements zonos--restState']), style: {
2156
+ return (h(Host, { key: 'c6b1e581578da852f6ff852c0c8ff48eba97c82b', class: classes(['zonos--elements zonos--restState']), style: {
2147
2157
  '--font-family': zonosStoreFontFamily(),
2148
- } }, h("div", { key: '4b00e2becf4fe8ea79be85e3053a8e60b0c56929', class: "zonos--restState-image" }, h("img", { key: 'ff7cc6756987eb4a1270157b8b8477b01b6c9aca', alt: this.restStateType, onError: () => {
2158
+ } }, h("div", { key: '3c9bb31ade1e3343901fbb22bef5a123b3332a77', class: "zonos--restState-image" }, h("img", { key: '00417c062265b35f8603d90520f5efe677b76b19', alt: this.restStateType, onError: () => {
2149
2159
  this.isErrorImageLoad = true;
2150
- }, src: imageUrl })), h("div", { key: '0e941e59df893963592951660017530ae64f5176', class: "content" }, h("zonos-text", { key: '99827682fe5a3c5a55dbb8abffac070a1cfdb3a2', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '9d052f43dc1d5955250e63e231479773d418f8f9', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: 'd43236e1e2d25636985da4b44761a5dd86ea1f4b', class: "action" }, h("slot", { key: 'c4b89eb985e3a0d9805e67ea6f7e2cdf4cd3560f' }))));
2160
+ }, src: imageUrl })), h("div", { key: '503346f06d25e04a1bc1bbfb770359817854cd64', class: "content" }, h("zonos-text", { key: 'eb580484efd22fd93530d43d04889569ced27fba', class: "title", type: "boldSubheader" }, this.restStateTitle), h("zonos-text", { key: '34972cd05b26b01b1e7877a80b79d6729b63b025', class: "subtitle" }, this.restStateSubtitle)), h("div", { key: '703bfa3740b94e7d742804cd073347ba5f6a8855', class: "action" }, h("slot", { key: 'd0b330b60ad98bda20d35cc6802412d24ab6c536' }))));
2151
2161
  }
2152
2162
  static get assetsDirs() { return ["assets"]; }
2153
2163
  };
@@ -2248,10 +2258,7 @@ const ZonosShipping = class {
2248
2258
  }
2249
2259
  this.isSelecting = true;
2250
2260
  // save selected shipping option to store
2251
- const updateStatus = await cartStoreUpdateSelectedShippingOption(selectedShippingOption, e.detail.landedCostId);
2252
- if (!updateStatus) {
2253
- return;
2254
- }
2261
+ await cartStoreUpdateSelectedShippingOption(selectedShippingOption, e.detail.landedCostId);
2255
2262
  this.isSelecting = false;
2256
2263
  };
2257
2264
  this.handleValidate = () => {
@@ -2398,13 +2405,13 @@ const ZonosShipping = class {
2398
2405
  if (this.showErrorBanner) {
2399
2406
  this.showErrorBanner = !this.handleValidate();
2400
2407
  }
2401
- return (h(Host, { key: '7b16a998c47d1e834c1de3aaac030461e38e43d5', class: "zonos--shipping zonos--elements" }, h("div", { key: '796d1d43d1a409b6b94a8faa3a41bcfb8d26aeb2', class: "zonos--group" }, h("zonos-text", { key: '78629e22a49733794d6ac3bd56bd48c5c7a2ff5a', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (h("zonos-banner", { key: 'fc0367bfad972e86f0f78fd7ac279c69aa51aeb8', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: 'e79faacea340e54ee6fcde62073d87960dfbfbcf', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !this.serviceLevelsAll.length ? (h("zonos-banner", { bannerTitle: 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" })) : (h("div", { class: "zonos--shipping-options-wrapper" }, h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2408
+ return (h(Host, { key: '1a4721f877f6ec6a82cf3d280f73d6c0beb093d2', class: "zonos--shipping zonos--elements" }, h("div", { key: '97477ecd56c30af140aa5797dc60ff9c27500f8c', class: "zonos--group" }, h("zonos-text", { key: '3041eae048928c7a48d0449015043f4e3ba84579', class: "zonos--title", type: "semiBoldSubheader" }, translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (h("zonos-banner", { key: '045c89abf1610df69d9bdac288d235705a325fa5', class: "zonos--error-banner", intent: "error" }, translate('No shipping method selected'))), h("zonos-text", { key: 'ccb50e1734d2ab81363ace6fd35071ac760d85bf', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, translate('Shipping method')), !this.serviceLevelsAll.length ? (h("zonos-banner", { bannerTitle: 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" })) : (h("div", { class: "zonos--shipping-options-wrapper" }, h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2402
2409
  !!this.serviceLevelsDAP.length && (h("button", { class: classes([
2403
2410
  'zonos--shipping-options-collapse-trigger',
2404
2411
  this.collapsedDAPOptions && 'collapsed',
2405
2412
  ]), onClick: () => {
2406
2413
  this.collapsedDAPOptions = !this.collapsedDAPOptions;
2407
- } }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), h("div", { key: '03c7dc8d310db7dc161b064a1f384034e8b5a067', class: "zonos--group-btn" }, h("zonos-button", { key: '33d4afb9f86b8f8e5a8843c2ccfefac3e9ec1d76', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2414
+ } }, h("div", { class: "zonos--title-wrapper" }, h("zonos-text", { type: "label" }, `${translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), h("zonos-icon", { content: ChevronUpIcon })))), h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, h("div", { class: "zonos--dap-wrapper" }, h("zonos-banner", { bannerTitle: translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, translate('You may incur additional fees from the shipping carrier by not prepaying.')), h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), h("div", { key: 'adf857b2d728ae34da27be04f67547fba42e26c0', class: "zonos--group-btn" }, h("zonos-button", { key: '5d8dec320202c3f43ea598f2183631b04da0dd7f', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2408
2415
  // use primary type when on mobile mode
2409
2416
  variant: this.submitBtnType }, translate('Go to payment'))))));
2410
2417
  }
@@ -1,14 +1,14 @@
1
1
  import { r as registerInstance, h, H as Host, F as Fragment } from './index-86b8247e.js';
2
- import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as cartStoreUpdateToErrorState, o as translate, p as getZCountryUrlParam, q as cartStoreSetCheckoutSession, r as stripeStorePrefetchLandedCost, u as cartStoreNextStep, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as localizationStoreOnUpdate } from './cart-89bc298d.js';
3
- import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript } from './paypal-804a4bcb.js';
4
- import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-7798ac16.js';
2
+ import { l as localizationStore, s as stripeStoreGetDomesticShippingSession, a as localizationStoreUpdateSelectedCountryCode, b as stripeStoreCleanupDomesticShippingSession, c as stripeStoreSaveDomesticShippingSession, i as initStripeElements, d as cartStore, e as cartStoreUpdateItems, f as cartStoreReset, g as cartStoreResetTabItems, h as cartStoreClearCheckoutInterval, j as stripeStore, k as stripeStoreInitCheckoutSession, m as cartStoreStartCheckoutInterval, t as trackConversionEvent, n as cartStoreUpdateToErrorState, o as translate, p as getZCountryUrlParam, q as cartStoreSetCheckoutSession, r as stripeStorePrefetchLandedCost, u as cartStoreNextStep, v as stripeStoreHandleInventoryCheck, w as stripeStoreConfirmPayment, x as stripeStoreHandleInventoryRefund, y as stripeStoreReset, z as localizationStoreOnUpdate } from './cart-fdaeeb8d.js';
3
+ import { p as paypalStoreHasPaypalEnabled, s as submitGtag, a as paypalInitScript } from './paypal-fb68deeb.js';
4
+ import { z as zonosStore, g as getZonosStoreTheme, m as mergeConfig } from './zonosStore-6b5bd87c.js';
5
5
  import { h as handleFetch, l as log, a as logError, s as sendErrorLog, g as getElapsedTime, b as allLogs, j as jsonParse } from './handleFetch-3dea7d46.js';
6
6
  import { c as createCustomEvent, g as getIsTestMode } from './createCustomEvent-31a792d3.js';
7
7
  import { i as isCheckoutMobile } from './isCheckoutMobile-8846dccb.js';
8
8
  import { c as classes } from './classes-0d95c529.js';
9
- import { g as getBorderRadius } from './getBorderRadius-e55a9df1.js';
10
- import { i as isDarkColor } from './isDarkColor-4261bc3c.js';
11
- import { s as setupCartData, d as domesticRedirectedBtnSelector, c as checkoutHiddenBtnSelector } from './CheckoutConfig-32f33d8b.js';
9
+ import { g as getBorderRadius } from './getBorderRadius-008516a4.js';
10
+ import { i as isDarkColor } from './isDarkColor-dc08fa26.js';
11
+ import { s as setupCartData, d as domesticRedirectedBtnSelector, c as checkoutHiddenBtnSelector } from './CheckoutConfig-018263e2.js';
12
12
  import { R as RemoveIcon } from './RemoveIcon-9dc5dd1a.js';
13
13
 
14
14
  /**
@@ -386,7 +386,18 @@ const ZonosCheckout = class {
386
386
  countryCode: localizationStore.selectedCountryCode,
387
387
  currencyCode: localizationStore.targetCurrency,
388
388
  });
389
- await cartStoreUpdateItems({ adjustments: [], cartItems });
389
+ // Remove negative line items and move them to adjustments here, this is only for the deprecated `buildCartDetail` where negative line items are just treated as global discount amounts. It is up to the caller to create the right discount line items.
390
+ const cartItemsFiltered = cartItems.filter(item => item.amount >= 0);
391
+ const negativeItems = cartItems.filter(item => item.amount < 0);
392
+ const adjustments = negativeItems.map(item => ({
393
+ amount: item.amount,
394
+ currencyCode: item.currencyCode,
395
+ description: item.name || item.description || '',
396
+ productId: item.productId || null,
397
+ sku: item.sku || null,
398
+ type: 'CART_TOTAL',
399
+ }));
400
+ await cartStoreUpdateItems({ adjustments, cartItems: cartItemsFiltered });
390
401
  }
391
402
  // if client secret doesn't exist, request a new one.
392
403
  if (!stripeStore.clientSecret) {
@@ -858,7 +869,7 @@ const ZonosCheckout = class {
858
869
  cartStore.step !== 'error' &&
859
870
  !stripeStore.stripeElements) ||
860
871
  stripeStore.isFetchingSession;
861
- const { colorPrimary, colorSecondary, logoUrl, style } = mergeConfig(zonosStore.appearance, this.appearanceSettingsOverride);
872
+ const { colorPrimary, colorSecondary, logoUrl, style } = mergeConfig(zonosStore.appearance, this.appearanceSettingsOverride || null);
862
873
  const hasFooter = zonosStore.appearance.zonosAttribution === 'ENABLED';
863
874
  const rightSideTheme = zonosStore.appearance.theme;
864
875
  const themePrimaryColorBased = colorPrimary && isDarkColor(colorPrimary) ? 'DARK' : 'LIGHT';
@@ -1,5 +1,5 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
2
+ import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
3
3
 
4
4
  const zonosCollapseCss = ":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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";
5
5
  const ZonosCollapseStyle0 = zonosCollapseCss;
@@ -46,10 +46,10 @@ const ZonosCollapse = class {
46
46
  // set overflow to hidden to prevent content from showing when collapsed
47
47
  this.el.style.overflow = 'hidden';
48
48
  }
49
- return (h(Host, { key: '22d1cfa07362c868ff1b58315789d3d65bcce556', class: 'zonos--elements zonos--collapse', style: {
49
+ return (h(Host, { key: '514e75d41d29d70b4ca60230288ae183200b1e12', class: 'zonos--elements zonos--collapse', style: {
50
50
  '--font-family': zonosStoreFontFamily(),
51
51
  height: this.getElementHeight(),
52
- } }, h("div", { key: 'fa8c388a6497311d4dd4989e3f9ad2f7f3b8ee82' }, h("iframe", { key: 'b93e841bc726709fdca538d7fed38e09470c3ff5', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'aac6f96a0d928d372248f3fa1a906cd764f6e0d3' }))));
52
+ } }, h("div", { key: '068aee1d13bde4c83ea8582b34844da7452c907c' }, h("iframe", { key: 'b22fd8ad898a098c244cb817dc6951854505efca', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: 'b54783376005085e379c7b8d43218ead1bf8e8ac' }))));
53
53
  }
54
54
  get el() { return getElement(this); }
55
55
  };
@@ -18,7 +18,7 @@ const ZonosComponent = class {
18
18
  return format(this.first, this.middle, this.last);
19
19
  }
20
20
  render() {
21
- return h("div", { key: '63b0c771133fd495f36e2c67601d64d6e56f5f2b' }, "Hello, World! I'm ", this.getText());
21
+ return h("div", { key: 'ece01ba1df61d0c15e60d2cf9fffbf4c01268612' }, "Hello, World! I'm ", this.getText());
22
22
  }
23
23
  };
24
24
  ZonosComponent.style = ZonosComponentStyle0;
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host } from './index-86b8247e.js';
2
- import { A as isValidSelector, j as stripeStore, B as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-89bc298d.js';
3
- import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
2
+ import { A as isValidSelector, j as stripeStore, B as initLocalizationStore, d as cartStore, a as localizationStoreUpdateSelectedCountryCode } from './cart-fdaeeb8d.js';
3
+ import { z as zonosStore, b as zonosStoreInitSetting, d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
4
4
  import { h as handleFetch, a as logError, l as log } from './handleFetch-3dea7d46.js';
5
- import './isDarkColor-4261bc3c.js';
6
- import './getBorderRadius-e55a9df1.js';
5
+ import './isDarkColor-dc08fa26.js';
6
+ import './getBorderRadius-008516a4.js';
7
7
 
8
8
  const getZonosSettings = async () => {
9
9
  const { errors, json, zonosMode } = await handleFetch('/api/zonos-elements/zonos-settings');
@@ -48,6 +48,20 @@ const injectHelloComponent = (anchorElementSelector) => {
48
48
  }
49
49
  return false;
50
50
  };
51
+ const convertPosition = (position) => {
52
+ switch (position) {
53
+ case 'BOTTOM_RIGHT':
54
+ return 'bottom-right';
55
+ case 'BOTTOM_LEFT':
56
+ return 'bottom-left';
57
+ case 'TOP_LEFT':
58
+ return 'top-left';
59
+ case 'TOP_RIGHT':
60
+ return 'top-right';
61
+ default:
62
+ return 'bottom-right';
63
+ }
64
+ };
51
65
  /**
52
66
  * Injects the hello mobile wrapper to the DOM and returns the anchor element selector
53
67
  * @returns anchor element selector
@@ -123,6 +137,15 @@ const initHello = async (helloSettings) => {
123
137
  // inject hello to mobile anchor if hello is still not found
124
138
  injectHelloComponent(helloAnchor);
125
139
  }, 1000);
140
+ setTimeout(() => {
141
+ if (helloSettings.notFoundElementFallback) {
142
+ log(`Hello anchor selector ${helloSettings.anchorElementSelector} not found after 3 seconds, falling back to 'notFoundElementFallback': ${helloSettings.notFoundElementFallback}`, 'info');
143
+ const defaultAnchor = injectDefaultWrapper({
144
+ position: convertPosition(helloSettings.notFoundElementFallback),
145
+ });
146
+ injectHelloComponent(defaultAnchor);
147
+ }
148
+ }, 3000);
126
149
  }
127
150
  };
128
151
 
@@ -328,7 +351,7 @@ const ZonosController = class {
328
351
  zonosStore.organizationName = organizationName;
329
352
  }
330
353
  render() {
331
- return h(Host, { key: 'f2d050c785576dde681a5df55ba24bc42436375f', class: "zonos--elements" });
354
+ return h(Host, { key: '8e6c4a23893a1d3913d996a62bd14fd000612e42', class: "zonos--elements" });
332
355
  }
333
356
  };
334
357
  ZonosController.style = ZonosControllerStyle0;
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, h, H as Host, d as getElement } from './index-86b8247e.js';
2
- import { l as localizationStore } from './cart-89bc298d.js';
3
- import { d as zonosStoreFontFamily } from './zonosStore-7798ac16.js';
2
+ import { l as localizationStore } from './cart-fdaeeb8d.js';
3
+ import { d as zonosStoreFontFamily } from './zonosStore-6b5bd87c.js';
4
4
  import { c as classes } from './classes-0d95c529.js';
5
5
  import './handleFetch-3dea7d46.js';
6
- import './isDarkColor-4261bc3c.js';
7
- import './getBorderRadius-e55a9df1.js';
6
+ import './isDarkColor-dc08fa26.js';
7
+ import './getBorderRadius-008516a4.js';
8
8
 
9
9
  const zonosCountryFlagCss = ":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 .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";
10
10
  const ZonosCountryFlagStyle0 = zonosCountryFlagCss;