@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
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-6d966eea.js');
6
+ const cart = require('./cart-b3f6a451.js');
7
7
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
8
8
  const handleFetch = require('./handleFetch-aa729c61.js');
9
9
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
10
- const zonosStore = require('./zonosStore-b18fe6b6.js');
10
+ const zonosStore = require('./zonosStore-e12d459c.js');
11
11
  const classes = require('./classes-b7918f56.js');
12
12
  const RemoveIcon$1 = require('./RemoveIcon-081ac073.js');
13
- const getBorderRadius = require('./getBorderRadius-53c35cd1.js');
14
- const isDarkColor = require('./isDarkColor-87ee1eb7.js');
13
+ const getBorderRadius = require('./getBorderRadius-61ed5601.js');
14
+ const isDarkColor = require('./isDarkColor-d206c6fa.js');
15
15
 
16
16
  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}";
17
17
  const ZonosAddressStyle0 = zonosAddressCss;
@@ -149,7 +149,7 @@ const ZonosAddress = class {
149
149
  }
150
150
  render() {
151
151
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
152
- return (index.h(index.Host, { key: 'e66063ffb032f5c5506e2fe72c5b8986b7c63b16', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: 'bd0e6d1f9a895b9c97f72b3e2a872ddc6420550f', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: 'e3fde23bbe25238a8d29005c9fe11b2d9f7f1cff', class: "zonos--address-component" })));
152
+ return (index.h(index.Host, { key: '50871d11c001d37882b61476acdc227fcf3e2abd', class: "zonos--address zonos--elements" }, index.h("zonos-text", { key: '90ffd3b0cc76446c88f3afe864a9bc9ecabb3997', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: '98c2bd4c328bc3df138ae61f767b70b18524e877', class: "zonos--address-component" })));
153
153
  }
154
154
  get el() { return index.getElement(this); }
155
155
  static get watchers() { return {
@@ -449,14 +449,14 @@ const ZonosCheckbox = class {
449
449
  customRoundRadius: '4px',
450
450
  overrideBorderStyle: this.borderStyle,
451
451
  });
452
- return (index.h(index.Host, { key: '5309db6094793a992d4a605a6d1e3c83ced3c9d0', class: classes.classes(['zonos--elements zonos--checkbox']), style: {
452
+ return (index.h(index.Host, { key: 'be29586ffd5ae5227614622cfb402686ff5e0583', class: classes.classes(['zonos--elements zonos--checkbox']), style: {
453
453
  '--background-color': backgroundColor,
454
454
  '--border-radius': borderStyle,
455
455
  '--font-family': zonosStore.zonosStoreFontFamily(),
456
456
  '--size': `${this.size}px`,
457
- } }, index.h("label", { key: '06e34043130ada8ca8abd0d0930ba60c7e0b9371', class: classes.classes([this.isDisabled && 'disabled']) }, index.h("input", { key: 'fe09f13ccd0b15c6d71cb21fc1742c1243c04b66', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
457
+ } }, index.h("label", { key: '091c2388668a94962d7b2bde4496856805f675e8', class: classes.classes([this.isDisabled && 'disabled']) }, index.h("input", { key: 'c0f66d11f63591b03631cb1c970c0db201d435e2', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
458
458
  this.checkboxSelected.emit(e.target.checked);
459
- }, type: "checkbox" }), index.h("span", { key: 'c523e7e7919e8d26cb4a62790af04915d2f939d8', class: "checkmark-container" }, index.h("svg", { key: '95b0359976b4796a9186069a04c5568a13132b8e', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.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 && (index.h("zonos-text", { key: '52b38dcd04947a0a0106f565a124cd4a0f9d17db', size: this.fontSize }, this.label)))));
459
+ }, type: "checkbox" }), index.h("span", { key: 'ab6c4847d006a812829bd8e871520455da91c7b0', class: "checkmark-container" }, index.h("svg", { key: '617693bef302910db463cdf95b10700b72ea8d44', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, index.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 && (index.h("zonos-text", { key: '1b9a21e7ef15ad34684453bc25cb3744ba183cd0', size: this.fontSize }, this.label)))));
460
460
  }
461
461
  };
462
462
  ZonosCheckbox.style = ZonosCheckboxStyle0;
@@ -522,7 +522,7 @@ const ZonosDialog = class {
522
522
  const borderStyle = getBorderRadius.getBorderRadius({
523
523
  overrideBorderStyle: this.borderStyle,
524
524
  });
525
- return (index.h(index.Host, { key: 'c8ab0781b89349e035d788af2ec4fbc00241bb30', class: classes.classes([
525
+ return (index.h(index.Host, { key: '018771d0e01311ae520abcf33fbd64316794b202', class: classes.classes([
526
526
  'zonos--elements',
527
527
  this.open && 'open',
528
528
  this.isLoading && 'is-loading',
@@ -534,10 +534,10 @@ const ZonosDialog = class {
534
534
  '--height': this.height || 'initial',
535
535
  '--min-height': this.minHeight || '500px',
536
536
  '--width': this.width,
537
- } }, index.h("div", { key: '14169030c9b8882ffe9b14383c1dbfa319147d01', class: "zonos--backdrop" }), index.h("div", { key: 'c361b1520e4fb28e308dd548e139af89c289493d', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '1868e77997d810a0925f365772829668f1ae73c6', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: 'ff35aada7dcfe1c5bbfb8eade99ea4af3d29f306', class: "zonos--loading" }, index.h("zonos-spinner", { key: '2947bba83fafbfb48af54ac92d79aae2330dbbe5', size: 30 }))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: 'bfcdc066fb00e472bfe60631f6ee08460bf91045', class: "zonos--header" }, this.headerText && (index.h("h3", { key: 'a54a43766b3d8742c27d797e2cd0f9925133a6f3', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: '176a8d137c9d40ddfed9de5fcf4ba926fcf7b408', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, variant: "subtle" })))), index.h("div", { key: '5f76d5221d2c075808f3550f28b11581a3a78cfd', class: classes.classes([
537
+ } }, index.h("div", { key: 'a86c9f8465054fde894bbdd71149e59d97e8cbcf', class: "zonos--backdrop" }), index.h("div", { key: 'b2f0c86fa0e768474ba4d522f8c2b8157f89cd56', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '26cd8a7b98d38c53dcf4789c8781f0c1ced99633', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: '34d0ba841a9af9ca2ff6d21d0471113cc86cdec3', class: "zonos--loading" }, index.h("zonos-spinner", { key: '0109778b1a9734de0959035e3975414fb1cac1be', size: 30 }))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: 'f80a4c337727500ee1ad92c1d80d7b3088eccc0f', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '92b078fbbcd9ca5f8bf178fc67f2bee817d1e961', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: '698e45fffd466f22b6179aa220d35fe39ee5374c', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, variant: "subtle" })))), index.h("div", { key: 'a4012e5a48d5fbcc77cac038d8a39fe05f332008', class: classes.classes([
538
538
  'zonos--body',
539
539
  this.noBodyPadding && 'zonos--no-body-padding',
540
- ]) }, index.h("slot", { key: '53fc24113ac0cfbeb622cb38cea32ebff572f7e8' })), index.h("slot", { key: '92079f1396304c9966cefc918fcbe87f64a348f3', name: "dialog-footer" })))));
540
+ ]) }, index.h("slot", { key: 'd64b381cb91afde4ddbde58348a62612d9871c8e' })), index.h("slot", { key: '4ddd73bfe41ecd1c90b18f82a8d8f12a1eacf144', name: "dialog-footer" })))));
541
541
  }
542
542
  static get assetsDirs() { return ["assets"]; }
543
543
  };
@@ -584,7 +584,7 @@ const ZonosLinkAuthentication = class {
584
584
  }
585
585
  render() {
586
586
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
587
- return (index.h(index.Host, { key: '715d58ba37c753ac4890aabf3b6979a759a5594a', class: "zonos--link-authentication zonos--elements" }, index.h("zonos-text", { key: '1394e448a080a21522e91a62c8886d49c3616e59', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: '417bc27477776220acfdc9d9f76acd91fd14c1ca', class: "zonos--link-authentication-component" })));
587
+ return (index.h(index.Host, { key: 'f0b26abf99ef99c6665dabdddebc9ff086b6816c', class: "zonos--link-authentication zonos--elements" }, index.h("zonos-text", { key: '898dbdffac06fe2a68af90610a22044bb72391ce', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("div", { key: 'e2ec9abb0cf76a39a1262e1366e375dd898450cd', class: "zonos--link-authentication-component" })));
588
588
  }
589
589
  get el() { return index.getElement(this); }
590
590
  static get watchers() { return {
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-b18fe6b6.js');
6
+ const zonosStore = require('./zonosStore-e12d459c.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  const RemoveLineIcon = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
@@ -27,16 +27,16 @@ const ZonosBadge = class {
27
27
  this.dismissHandler = undefined;
28
28
  }
29
29
  render() {
30
- return (index.h(index.Host, { key: '0d5b32ba989420e4f68519f519db3227568a3cd9', class: classes.classes(['zonos--elements zonos--badge']), style: {
30
+ return (index.h(index.Host, { key: '250028cd50c23400b88ae1cbfa17836ade3d501b', class: classes.classes(['zonos--elements zonos--badge']), style: {
31
31
  '--font-family': zonosStore.zonosStoreFontFamily(),
32
- } }, index.h("div", { key: '43ea955a3005bed1bf30736b9515dc59fc5d9166', class: classes.classes([
32
+ } }, index.h("div", { key: '9d2f93b0fb791c6b3390d669473261183b5662dd', class: classes.classes([
33
33
  'zonos--badge-content',
34
34
  this.badgeColor,
35
35
  this.rounded && 'rounded',
36
36
  this.iconRight && 'icon-right',
37
37
  this.size,
38
38
  this.bold && 'bold',
39
- ]) }, this.icon, index.h("zonos-text", { key: '4ba9b812daf3f977eb7558717d1ccdb6337dab81', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: 'e55243d80edfd4d2ac855b72c3d10f23a2145a6d' })), this.dismissHandler && (index.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); } })))));
39
+ ]) }, this.icon, index.h("zonos-text", { key: 'b612923e4e26d250a6f9d604e68d7d5a69f99701', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: '71369a45f9e31e9f08cbd54a4e97d310d213a768' })), this.dismissHandler && (index.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); } })))));
40
40
  }
41
41
  };
42
42
  ZonosBadge.style = ZonosBadgeStyle0;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-b18fe6b6.js');
6
+ const zonosStore = require('./zonosStore-e12d459c.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
 
9
9
  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)}";
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-b18fe6b6.js');
6
+ const zonosStore = require('./zonosStore-e12d459c.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-53c35cd1.js');
8
+ const getBorderRadius = require('./getBorderRadius-61ed5601.js');
9
9
  const isColorVariable = require('./isColorVariable-6f5a9608.js');
10
- const isDarkColor = require('./isDarkColor-87ee1eb7.js');
10
+ const isDarkColor = require('./isDarkColor-d206c6fa.js');
11
11
 
12
12
  /**
13
13
  * Get theme for button text based on background color
@@ -159,12 +159,12 @@ const ZonosButton = class {
159
159
  const borderStyle = getBorderRadius.getBorderRadius({
160
160
  overrideBorderStyle: this.borderStyle,
161
161
  });
162
- return (index.h(index.Host, { key: '3bb9845e23e10deb5988e6b2c0904b0ea1afeeea', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
162
+ return (index.h(index.Host, { key: 'd35c2874d343aa93b38cb40cbe8cdeb5c77bb97c', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
163
163
  '--background-color': backgroundColor,
164
164
  '--border-radius': borderStyle,
165
165
  '--color': color,
166
166
  '--font-family': zonosStore.zonosStoreFontFamily(),
167
- }) }, index.h("button", { key: 'd2237dc9995cd537d77c169880937a83350ae683', class: classes.classes([
167
+ }) }, index.h("button", { key: '9a964a9eb765152075c6a08008341d177e4d2879', class: classes.classes([
168
168
  this.hasIcon && 'has-icon',
169
169
  this.hasContent && 'has-content',
170
170
  this.noBackground && 'no-background',
@@ -179,7 +179,7 @@ const ZonosButton = class {
179
179
  backgroundColor && variant === 'standard' && 'override-background',
180
180
  ]), disabled: disabled, style: {
181
181
  justifyContent: this.justifyContent,
182
- } }, this.loading && (index.h("div", { key: '4756ec69aa3bcd84406f4039567191fdf831f23f', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: '0bcaad4c29bd28f14ecac8fe11a4ae9a16cee543', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: 'bdfdb5ebc08371dbe4e680cc252c4e9841756ec8', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
182
+ } }, this.loading && (index.h("div", { key: 'bcc0ae7d419ae25477b65d4e9c26b62f7f1e1a1f', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: 'dcd083f67544bd05b0ca866ff19a44fc33c77715', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: 'c32fab50c66737462c6a2743100cd43156edab27', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
183
183
  }
184
184
  static get delegatesFocus() { return true; }
185
185
  get ele() { return index.getElement(this); }
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-b18fe6b6.js');
6
+ const zonosStore = require('./zonosStore-e12d459c.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const getBorderRadius = require('./getBorderRadius-53c35cd1.js');
8
+ const getBorderRadius = require('./getBorderRadius-61ed5601.js');
9
9
 
10
10
  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)}";
11
11
  const ZonosCardStyle0 = zonosCardCss;
@@ -30,16 +30,16 @@ const ZonosCard = class {
30
30
  customRoundRadius: `${this.borderRadius}px`,
31
31
  overrideBorderStyle: 'ROUNDED',
32
32
  });
33
- return (index.h(index.Host, { key: '632905e207d9dd9f8392759cad2885291ce66aea', style: {
33
+ return (index.h(index.Host, { key: '0feaf20ca1bb493792614216aeace549a3bad708', style: {
34
34
  '--font-family': zonosStore.zonosStoreFontFamily(),
35
- } }, index.h("div", { key: '3eff8df6e47265977e82180ee7d6ac2b32861000', class: classes.classes(['styled-card']), style: {
35
+ } }, index.h("div", { key: '9a05937c24886d73e52ef2f6bf722869247e133c', class: classes.classes(['styled-card']), style: {
36
36
  '--background-color': backgroundColor,
37
37
  '--border-radius': borderRadius,
38
38
  padding: this.spacing,
39
- } }, this.label && (index.h("header", { key: '1eb39042c68381efa46e762e48096366975a1b61', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: '573de073bc15576ad3af98af703aa03a3135aebb', type: "subheader" }, this.label), index.h("h-stack", { key: '03f11b944d438db45a93ff7448e89b44f82e14fe', spacing: 8 }, this.actions))), index.h("slot", { key: '582071d03c2866271320aea7f30a4b5d9d63ff41' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: '6909cb6983ce84f517deef48758271c8797b6ac4', class: "card-footer", style: {
39
+ } }, this.label && (index.h("header", { key: '862b765cabe5ab5c897db18654b0be0c8ed492f3', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: 'e637d00494ba2ca7d081bd2eebcb825afc4ffa90', type: "subheader" }, this.label), index.h("h-stack", { key: '5174ef0a9f588d9862aca3375a3ad3269cbc0051', spacing: 8 }, this.actions))), index.h("slot", { key: 'b260fa53b675b0465d32deba0daaa13a0eb85ac1' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: '0681bfa581ef37bf0a102eb1dfe9f6fd4c0d88f4', class: "card-footer", style: {
40
40
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
41
41
  padding: this.spacing,
42
- } }, index.h("div", { key: '6ff0f9ba56df40829dfd01663cc6ce528b880fda' }, this.footerContent), index.h("h-stack", { key: '8270f150b0c1b82dc37cb04a112998e23c110ed2', spacing: 8 }, this.footerActions))))));
42
+ } }, index.h("div", { key: '65271d4dd4e32a64467be17d10202cad1f302fe4' }, this.footerContent), index.h("h-stack", { key: 'fd1ded15a0caae9a2f781fc0f6fbf59e7768ef37', spacing: 8 }, this.footerActions))))));
43
43
  }
44
44
  };
45
45
  ZonosCard.style = ZonosCardStyle0;
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-6d966eea.js');
6
+ const cart = require('./cart-b3f6a451.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
- const paypal = require('./paypal-ae7bd9f2.js');
9
- const zonosStore = require('./zonosStore-b18fe6b6.js');
8
+ const paypal = require('./paypal-aab541fd.js');
9
+ const zonosStore = require('./zonosStore-e12d459c.js');
10
10
  const createCustomEvent = require('./createCustomEvent-3e982e57.js');
11
- const getBorderRadius = require('./getBorderRadius-53c35cd1.js');
11
+ const getBorderRadius = require('./getBorderRadius-61ed5601.js');
12
12
  const handleFetch = require('./handleFetch-aa729c61.js');
13
13
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
14
14
  const ILanguage = require('./ILanguage-98b04442.js');
15
- const isDarkColor = require('./isDarkColor-87ee1eb7.js');
15
+ const isDarkColor = require('./isDarkColor-d206c6fa.js');
16
16
  const isColorVariable = require('./isColorVariable-6f5a9608.js');
17
17
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
18
18
 
@@ -1036,7 +1036,7 @@ const turndownService = new TurndownService();
1036
1036
  * @example
1037
1037
  * const htmlInput = "<h1>Hello World</h1><p>This is a paragraph.</p>";
1038
1038
  * const result = cleanHtmlMarkdown(htmlInput);
1039
- * console.log(result); // Outputs cleaned HTML after conversion and processing
1039
+ * console.info(result); // Outputs cleaned HTML after conversion and processing
1040
1040
  */
1041
1041
  const cleanHtmlMarkdown = (htmlString) => {
1042
1042
  const mdString = turndownService.turndown(htmlString);
@@ -1295,6 +1295,14 @@ const ZonosCheckoutFinish = class {
1295
1295
  }
1296
1296
  window.location.href = url;
1297
1297
  };
1298
+ /**
1299
+ * It would make more sense to have keep shopping button if the success behavior is not redirecting to a different page
1300
+ */
1301
+ this.shouldRenderKeepShoppingButton = () => {
1302
+ const { successBehavior } = zonosStore.zonosStore.checkoutSettings;
1303
+ return (successBehavior === 'ZONOS_SUCCESS_PAGE' ||
1304
+ successBehavior === 'CLOSE_MODAL');
1305
+ };
1298
1306
  this.handleSuccessBehavior = async () => {
1299
1307
  var _a, _b;
1300
1308
  /**
@@ -1529,6 +1537,7 @@ const ZonosCheckoutFinish = class {
1529
1537
  this.notificationType = 'success';
1530
1538
  this.notificationTitle = '';
1531
1539
  this.notificationMessages = [];
1540
+ this.notificationActionText = cart.translate('Keep shopping');
1532
1541
  this.order = null;
1533
1542
  }
1534
1543
  componentDidLoad() {
@@ -1551,11 +1560,12 @@ const ZonosCheckoutFinish = class {
1551
1560
  }
1552
1561
  render() {
1553
1562
  const isTestMode = createCustomEvent.getIsTestMode();
1554
- return (index.h(index.Host, { key: 'a255ef40504c8e569b44dcdde6a8026745f38c9f', class: "zonos--checkout-finish zonos--elements", style: {
1563
+ return (index.h(index.Host, { key: 'c951a9a8fac681e50d9741b8bfef09e10e1e6b9b', class: "zonos--checkout-finish zonos--elements", style: {
1555
1564
  '--border-radius': getBorderRadius.getBorderRadius({
1556
1565
  overrideBorderStyle: this.borderRadius,
1557
1566
  }),
1558
- } }, !this.isLoading && (index.h("div", { key: 'a14c5a6476b6d77c8b070239b3dbf3b1248d91a1', class: "zonos--finish-details" }, index.h("div", { key: '7d1d11bc6d1648f6e05fa08c8afa38df2db4f773', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '6e2b00afd313f4724cbd0e3c0ff6d099a4eb0423', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: '89ddff1e318401adcc01a1883628651688a39338', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null)))))), isTestMode && cart.cartStore.step === 'finish' && (index.h("div", { key: '078de76fc1c106538d8ac586edc831639b94e2e1', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: '30b68c106ad0eada43b8fadd0b20738d63af0f24', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: 'a8d092e0a2084ed2c1e2342a7aaf06bf309b559b', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1567
+ } }, !this.isLoading && (index.h("div", { key: 'b6d10fa322320f30c0ff702f256f32b6acb69af5', class: "zonos--finish-details" }, index.h("div", { key: '8c3801345cb72d8c9addcea1577e4480640c4ae9', class: "zonos--group" }, this.notificationType === 'success' ? (index.h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (index.h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), index.h("zonos-text", { key: '89a874b1f1d1b325cda6d6f8e5863c10867c6161', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), index.h("zonos-text", { key: 'ed3410d00f0215bcfaf53e15bb5c6f6e0d923c65', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (index.h(index.Fragment, null, message, index.h("br", null))))), !window.Zonos.isLegacyCheckout &&
1568
+ this.shouldRenderKeepShoppingButton() && (index.h("zonos-button", { key: 'adfd0912e7e7f59284488163f500c3d07453bc4b', onClick: () => this.closeClickHandler(), size: "md", variant: "primary" }, this.notificationActionText))), isTestMode && cart.cartStore.step === 'finish' && (index.h("div", { key: '2f9c5db57935e99531189a29a5471b26d963e646', class: "zonos--finish-button-wrapper" }, index.h("zonos-button", { key: 'ebcebeabea725bbbec030cfde621ab54c7263f53', backgroundColor: "gray-0", buttonColor: "gray-1000", onClick: () => this.closeClickHandler(), size: "lg", variant: "outline" }, "New test cart"), index.h("zonos-button", { key: 'f52f574517b536a7586d2fea92fc66b22996b8ed', onClick: () => this.redirectToUrl(`/orders/all`), size: "lg", variant: "primary" }, "View order in Dashboard")))))));
1559
1569
  }
1560
1570
  static get assetsDirs() { return ["assets"]; }
1561
1571
  };
@@ -1603,10 +1613,10 @@ const ZonosCheckoutFooter = class {
1603
1613
  const languageLabel = (_a = ILanguage.languages.find(x => x.code === cart.localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
1604
1614
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
1605
1615
  const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
1606
- return (index.h(index.Host, { key: 'c84407b445b03673c739e526407d5daece2465c1', class: classes.classes(['zonos--elements', this.isMobile && 'mobile']) }, index.h("div", { key: 'de44554ef9af66b36e957ffc7c03c3102eb54289', class: "zonos--checkout-footer" }, index.h("div", { key: 'c045ebefdfe7e0c78f003ba25478297713726adc', class: "zonos--checkout-locale-wrapper" }, index.h("zonos-button", { key: 'f9028e5d572a8563f4b223edf28554ecc6bc79a2', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), index.h("div", { key: 'efa7bd0f7ff692d10eddacdcd922eefd8734dcde', class: classes.classes([
1616
+ return (index.h(index.Host, { key: '43ce81796f2534226d03420dbaa8d8d37161f64a', class: classes.classes(['zonos--elements', this.isMobile && 'mobile']) }, index.h("div", { key: 'c20e95a6ad27bccc7b23ae14ce9bea9319327dd4', class: "zonos--checkout-footer" }, index.h("div", { key: 'fa95241196ab3fff6c6520cbe083199a418f1f6c', class: "zonos--checkout-locale-wrapper" }, index.h("zonos-button", { key: '7c12428aa768eb81a9ecec798575109be5811a2c', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: index.h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, languageLabel), index.h("div", { key: '4615354c98cd5617343db83743e4d177d893f712', class: classes.classes([
1607
1617
  'zonos--checkout-footer-dialog',
1608
1618
  this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
1609
- ]) }, index.h("zonos-language-select", { key: '4086571d445ad29f824975a6ad107d1351302d78', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: 'f16a9caea53befe23f6fc6f5690635d9cd6e196b', class: "zonos--checkout-footer-icon-wrapper" }, index.h("a", { key: '5ca1a5aadf50bb038209a505b8bece798c92efc5', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: 'c60d81728e5ebdddea08429eae156e312e407d35', textColor: colorDesktop }, "Privacy policy")), index.h("div", { key: 'e50935aea98312ab3ffd3c04e8155843e802791a', class: "zonos--checkout-footer-logo" }, index.h("zonos-text", { key: 'b8e10c2d63cf5bade264213ae2e37639b10347ae', textColor: colorDesktop }, "Powered by"), index.h("a", { key: '5f4ad624ac59e6e59d0bc73f70eb98399009cf1a', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: 'db358784c050fedfb7b0e4e02ca54c9926691963', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 })))))));
1619
+ ]) }, index.h("zonos-language-select", { key: '35b0c80d3b20167991391f336d0eda178857047c', handleOnClose: () => this.toggleLanguageDialog() }))), index.h("div", { key: '333f9da8e9aeb6286e52145630ec7e9ec8aabff6', class: "zonos--checkout-footer-icon-wrapper" }, index.h("a", { key: 'b6de914d3f4886151e5b780de7f517e158e83173', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, index.h("zonos-text", { key: 'b6aba4130c0f1f22dd6644002f752630d3d8524f', textColor: colorDesktop }, "Privacy policy")), index.h("div", { key: 'b44e2b03aa2e156076f27737be4d82dd62a98f0b', class: "zonos--checkout-footer-logo" }, index.h("zonos-text", { key: '22cee8f4bdc69c38a9f5ab5affaaf9fd23fe70e3', textColor: colorDesktop }, "Powered by"), index.h("a", { key: '87fe092647de1fcc9ac6e3bf3ff00b9014f67560', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, index.h("zonos-icon", { key: 'b35efd69f13b4623ef40f42b12f83a8a9506f725', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 })))))));
1610
1620
  }
1611
1621
  get el() { return index.getElement(this); }
1612
1622
  static get watchers() { return {
@@ -1775,17 +1785,17 @@ const ZonosCheckoutProgressTabs = class {
1775
1785
  color: labelSelectedColor,
1776
1786
  })
1777
1787
  : labelSelectedColor;
1778
- return (index.h(index.Host, { key: 'cb720c17828585b4e5235c0695d1887efacfc232', class: "zonos--elements", style: {
1788
+ return (index.h(index.Host, { key: '6f1797cd7dbaf99d72cdb61041c780d0635d9dc0', class: "zonos--elements", style: {
1779
1789
  '--color': contrastLabelColor,
1780
1790
  '--progress-percent': this.getTotalSuccessStep(),
1781
- } }, index.h("div", { key: '3249121ebbb26b8a377f0fdf39700e5098374bae', class: "zonos--tab-wrapper" }, Object.values(cart.cartStore.tabItems).map((tab, index$1) => {
1791
+ } }, index.h("div", { key: '8eb4ef12ed76f9e14a68b6dfe589b0f10bd3fc3b', class: "zonos--tab-wrapper" }, Object.values(cart.cartStore.tabItems).map((tab, index$1) => {
1782
1792
  const isSelected = tab.value === selectedStep;
1783
1793
  return (index.h("button", { class: classes.classes([
1784
1794
  'zonos--tab-item',
1785
1795
  tab.value === selectedStep && 'selected',
1786
1796
  tab.isDone && 'done',
1787
1797
  ]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => (cart.cartStore.step = tab.value) }, index.h("div", { class: "zonos--tab-index" }, index.h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index$1 + 1), index.h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), index.h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, cart.translate(tab.label))));
1788
- })), index.h("div", { key: 'da31d2d0a835182509a8199dc4fa9f1278be23e1', class: "zonos--tab-progress" }, index.h("div", { key: '6523c3e32b0926915b7d06f9cb19f6fc427c0e84', class: "zonos--progress-bar-fill" }))));
1798
+ })), index.h("div", { key: 'fa2d07af26eb4c50ecb06ec685cbf0eddc54be98', class: "zonos--tab-progress" }, index.h("div", { key: 'af86726d61e8db32f95a84758ace851e7297d013', class: "zonos--progress-bar-fill" }))));
1789
1799
  }
1790
1800
  static get assetsDirs() { return ["assets"]; }
1791
1801
  get ele() { return index.getElement(this); }
@@ -1887,13 +1897,13 @@ const ZonosConfirmDialog = class {
1887
1897
  const borderStyle = getBorderRadius.getBorderRadius();
1888
1898
  // Get theme for the update dialog, inherit from the theme, no from this component theme
1889
1899
  const theme = zonosStore.getZonosStoreTheme(zonosStore.zonosStore.appearance.theme);
1890
- return (index.h(index.Host, { key: '2ae28cccbc55249c415bdeb1f3b6ebfcd16705fd', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
1900
+ return (index.h(index.Host, { key: 'ba14f47b129207062edf7eca1f9fc5b71d689e4a', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
1891
1901
  '--border-radius': borderStyle,
1892
1902
  '--dialog-width': `${this.dialogWidth}px`,
1893
1903
  '--font-family': zonosStore.zonosStoreFontFamily(),
1894
- } }, index.h("div", { key: '6887502fc45f8726e00875c1533853f170d61b69', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: '9e303d17187cf0c8d281e4faa9ad65704b7b5f56', "aria-hidden": "true", class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: '2a7a8633c62e14bb134ebb6cd08050a558498afc', class: "zonos--confirm-dialog", onBlur: () => {
1904
+ } }, index.h("div", { key: 'b9eb2237cc834e23ce3b60bf2f99ad5c4d0b4ebf', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: '45b67c5a79955b579f0488f239f79a78d448482f', "aria-hidden": "true", class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: '8aae5e6df9242f84fc225e687563db7aabc1751b', class: "zonos--confirm-dialog", onBlur: () => {
1895
1905
  this.focusDialog();
1896
- } }, index.h("div", { key: '738395a26d051c099893c9d186e711742b87fd0d', class: "wrapper" }, index.h("div", { key: '6037c59790568e095c42fabd6bc2c02d026e36de', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: '0db72c9e8702e642e6eba5d81d2560f69491742e', class: "content" }, index.h("div", { key: 'a6e25a16aba531ed8e4f0400c44df1ef5f3bd968', class: "title" }, index.h("zonos-text", { key: '8d572ed39778bb406bf69791fe8c8685c03a884f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: 'c4a57430c8fc7003be681857f4a5a5c9588c4a38', class: "subtitle" }, index.h("zonos-text", { key: '73d8b2ca508ab2e022b92f12a0f6bbc0d4c6abe2', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: 'f7c52a24a3ed7ca4ac63b57dc38dc67b6272d9f3', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: '50906e6744254cb190e0e13e51c7509f3560623e', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || cart.translate('Cancel'))), index.h("zonos-button", { key: '9b25a61bca74e9ee10e5f9057232faf3507acbe8', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
1906
+ } }, index.h("div", { key: '7a1eb45d4e015a9cd1ebb7acc9fe28917153bd53', class: "wrapper" }, index.h("div", { key: 'd145883d1ff60117e800e4238e3f011e43173246', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: '9a93b028b1d282f1d6fde264773a0f4a4d62326c', class: "content" }, index.h("div", { key: '92573585e3689e4fffa60d904199999e0bfa8216', class: "title" }, index.h("zonos-text", { key: 'eaf1f349f478f577edc6884cf9824b74d86dcbb7', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: 'aa3df64ec40031fd7599972a454cab232f57c7b9', class: "subtitle" }, index.h("zonos-text", { key: 'ea802033d7faf3bcd2a9c682dcdcd6588d3c9970', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: 'fb814639b9bbf9f284cf2def17d75ead8270c06f', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: 'fa1597ca8c4cd999c23229d0097e5c264844b8d1', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || cart.translate('Cancel'))), index.h("zonos-button", { key: '78be0072def6bfa88a7482d3f7bbd5df53450f3d', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
1897
1907
  }
1898
1908
  static get assetsDirs() { return ["assets"]; }
1899
1909
  get el() { return index.getElement(this); }
@@ -2147,11 +2157,11 @@ const ZonosRestState = class {
2147
2157
  }
2148
2158
  render() {
2149
2159
  const imageUrl = this.getImageRestState();
2150
- return (index.h(index.Host, { key: 'e27bb400718152b275761f858f8667474d452b09', class: classes.classes(['zonos--elements zonos--restState']), style: {
2160
+ return (index.h(index.Host, { key: 'c6b1e581578da852f6ff852c0c8ff48eba97c82b', class: classes.classes(['zonos--elements zonos--restState']), style: {
2151
2161
  '--font-family': zonosStore.zonosStoreFontFamily(),
2152
- } }, index.h("div", { key: '4b00e2becf4fe8ea79be85e3053a8e60b0c56929', class: "zonos--restState-image" }, index.h("img", { key: 'ff7cc6756987eb4a1270157b8b8477b01b6c9aca', alt: this.restStateType, onError: () => {
2162
+ } }, index.h("div", { key: '3c9bb31ade1e3343901fbb22bef5a123b3332a77', class: "zonos--restState-image" }, index.h("img", { key: '00417c062265b35f8603d90520f5efe677b76b19', alt: this.restStateType, onError: () => {
2153
2163
  this.isErrorImageLoad = true;
2154
- }, src: imageUrl })), index.h("div", { key: '0e941e59df893963592951660017530ae64f5176', class: "content" }, index.h("zonos-text", { key: '99827682fe5a3c5a55dbb8abffac070a1cfdb3a2', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '9d052f43dc1d5955250e63e231479773d418f8f9', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: 'd43236e1e2d25636985da4b44761a5dd86ea1f4b', class: "action" }, index.h("slot", { key: 'c4b89eb985e3a0d9805e67ea6f7e2cdf4cd3560f' }))));
2164
+ }, src: imageUrl })), index.h("div", { key: '503346f06d25e04a1bc1bbfb770359817854cd64', class: "content" }, index.h("zonos-text", { key: 'eb580484efd22fd93530d43d04889569ced27fba', class: "title", type: "boldSubheader" }, this.restStateTitle), index.h("zonos-text", { key: '34972cd05b26b01b1e7877a80b79d6729b63b025', class: "subtitle" }, this.restStateSubtitle)), index.h("div", { key: '703bfa3740b94e7d742804cd073347ba5f6a8855', class: "action" }, index.h("slot", { key: 'd0b330b60ad98bda20d35cc6802412d24ab6c536' }))));
2155
2165
  }
2156
2166
  static get assetsDirs() { return ["assets"]; }
2157
2167
  };
@@ -2252,10 +2262,7 @@ const ZonosShipping = class {
2252
2262
  }
2253
2263
  this.isSelecting = true;
2254
2264
  // save selected shipping option to store
2255
- const updateStatus = await cart.cartStoreUpdateSelectedShippingOption(selectedShippingOption, e.detail.landedCostId);
2256
- if (!updateStatus) {
2257
- return;
2258
- }
2265
+ await cart.cartStoreUpdateSelectedShippingOption(selectedShippingOption, e.detail.landedCostId);
2259
2266
  this.isSelecting = false;
2260
2267
  };
2261
2268
  this.handleValidate = () => {
@@ -2402,13 +2409,13 @@ const ZonosShipping = class {
2402
2409
  if (this.showErrorBanner) {
2403
2410
  this.showErrorBanner = !this.handleValidate();
2404
2411
  }
2405
- return (index.h(index.Host, { key: '7b16a998c47d1e834c1de3aaac030461e38e43d5', class: "zonos--shipping zonos--elements" }, index.h("div", { key: '796d1d43d1a409b6b94a8faa3a41bcfb8d26aeb2', class: "zonos--group" }, index.h("zonos-text", { key: '78629e22a49733794d6ac3bd56bd48c5c7a2ff5a', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { key: 'fc0367bfad972e86f0f78fd7ac279c69aa51aeb8', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: 'e79faacea340e54ee6fcde62073d87960dfbfbcf', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (index.h("div", { class: "zonos--shipping-options-wrapper" }, index.h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2412
+ return (index.h(index.Host, { key: '1a4721f877f6ec6a82cf3d280f73d6c0beb093d2', class: "zonos--shipping zonos--elements" }, index.h("div", { key: '97477ecd56c30af140aa5797dc60ff9c27500f8c', class: "zonos--group" }, index.h("zonos-text", { key: '3041eae048928c7a48d0449015043f4e3ba84579', class: "zonos--title", type: "semiBoldSubheader" }, cart.translate('Delivery options')), this.showErrorBanner && !!this.serviceLevelsAll.length && (index.h("zonos-banner", { key: '045c89abf1610df69d9bdac288d235705a325fa5', class: "zonos--error-banner", intent: "error" }, cart.translate('No shipping method selected'))), index.h("zonos-text", { key: 'ccb50e1734d2ab81363ace6fd35071ac760d85bf', class: "zonos--shipping-method-title", type: "semiBoldLabel" }, cart.translate('Shipping method')), !this.serviceLevelsAll.length ? (index.h("zonos-banner", { bannerTitle: cart.translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'), class: "zonos--shipping-method-error", intent: "error" })) : (index.h("div", { class: "zonos--shipping-options-wrapper" }, index.h("zonos-shipping-rich-radio", { items: defaultShownServiceLevels, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }), !!defaultShownServiceLevels.length &&
2406
2413
  !!this.serviceLevelsDAP.length && (index.h("button", { class: classes.classes([
2407
2414
  'zonos--shipping-options-collapse-trigger',
2408
2415
  this.collapsedDAPOptions && 'collapsed',
2409
2416
  ]), onClick: () => {
2410
2417
  this.collapsedDAPOptions = !this.collapsedDAPOptions;
2411
- } }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: '03c7dc8d310db7dc161b064a1f384034e8b5a067', class: "zonos--group-btn" }, index.h("zonos-button", { key: '33d4afb9f86b8f8e5a8843c2ccfefac3e9ec1d76', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2418
+ } }, index.h("div", { class: "zonos--title-wrapper" }, index.h("zonos-text", { type: "label" }, `${cart.translate(this.collapsedDAPOptions ? 'Show non-prepaid options' : 'Hide non-prepaid options')} `), index.h("zonos-icon", { content: ChevronUpIcon })))), index.h("zonos-collapse", { collapsed: this.collapsedDAPOptions }, index.h("div", { class: "zonos--dap-wrapper" }, index.h("zonos-banner", { bannerTitle: cart.translate('Duties and taxes will be charged upon delivery.'), intent: "warning" }, cart.translate('You may incur additional fees from the shipping carrier by not prepaying.')), index.h("zonos-shipping-rich-radio", { items: this.serviceLevelsDAP, onRadioSelected: e => this.handleRadioSelected(e), selectedItem: this.selectedShippingMethod }))))), index.h("div", { key: 'adf857b2d728ae34da27be04f67547fba42e26c0', class: "zonos--group-btn" }, index.h("zonos-button", { key: '5d8dec320202c3f43ea598f2183631b04da0dd7f', backgroundColor: this.submitBtnColor, loading: this.continueLoading || this.isSelecting, onClick: () => this.continueClickHandler(), size: "lg",
2412
2419
  // use primary type when on mobile mode
2413
2420
  variant: this.submitBtnType }, cart.translate('Go to payment'))))));
2414
2421
  }
@@ -3,16 +3,16 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-6d966eea.js');
7
- const paypal = require('./paypal-ae7bd9f2.js');
8
- const zonosStore = require('./zonosStore-b18fe6b6.js');
6
+ const cart = require('./cart-b3f6a451.js');
7
+ const paypal = require('./paypal-aab541fd.js');
8
+ const zonosStore = require('./zonosStore-e12d459c.js');
9
9
  const handleFetch = require('./handleFetch-aa729c61.js');
10
10
  const createCustomEvent = require('./createCustomEvent-3e982e57.js');
11
11
  const isCheckoutMobile = require('./isCheckoutMobile-f491ca7c.js');
12
12
  const classes = require('./classes-b7918f56.js');
13
- const getBorderRadius = require('./getBorderRadius-53c35cd1.js');
14
- const isDarkColor = require('./isDarkColor-87ee1eb7.js');
15
- const CheckoutConfig = require('./CheckoutConfig-5d7cf0c0.js');
13
+ const getBorderRadius = require('./getBorderRadius-61ed5601.js');
14
+ const isDarkColor = require('./isDarkColor-d206c6fa.js');
15
+ const CheckoutConfig = require('./CheckoutConfig-f2622b6b.js');
16
16
  const RemoveIcon = require('./RemoveIcon-081ac073.js');
17
17
 
18
18
  /**
@@ -390,7 +390,18 @@ const ZonosCheckout = class {
390
390
  countryCode: cart.localizationStore.selectedCountryCode,
391
391
  currencyCode: cart.localizationStore.targetCurrency,
392
392
  });
393
- await cart.cartStoreUpdateItems({ adjustments: [], cartItems });
393
+ // 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.
394
+ const cartItemsFiltered = cartItems.filter(item => item.amount >= 0);
395
+ const negativeItems = cartItems.filter(item => item.amount < 0);
396
+ const adjustments = negativeItems.map(item => ({
397
+ amount: item.amount,
398
+ currencyCode: item.currencyCode,
399
+ description: item.name || item.description || '',
400
+ productId: item.productId || null,
401
+ sku: item.sku || null,
402
+ type: 'CART_TOTAL',
403
+ }));
404
+ await cart.cartStoreUpdateItems({ adjustments, cartItems: cartItemsFiltered });
394
405
  }
395
406
  // if client secret doesn't exist, request a new one.
396
407
  if (!cart.stripeStore.clientSecret) {
@@ -862,7 +873,7 @@ const ZonosCheckout = class {
862
873
  cart.cartStore.step !== 'error' &&
863
874
  !cart.stripeStore.stripeElements) ||
864
875
  cart.stripeStore.isFetchingSession;
865
- const { colorPrimary, colorSecondary, logoUrl, style } = zonosStore.mergeConfig(zonosStore.zonosStore.appearance, this.appearanceSettingsOverride);
876
+ const { colorPrimary, colorSecondary, logoUrl, style } = zonosStore.mergeConfig(zonosStore.zonosStore.appearance, this.appearanceSettingsOverride || null);
866
877
  const hasFooter = zonosStore.zonosStore.appearance.zonosAttribution === 'ENABLED';
867
878
  const rightSideTheme = zonosStore.zonosStore.appearance.theme;
868
879
  const themePrimaryColorBased = colorPrimary && isDarkColor.isDarkColor(colorPrimary) ? 'DARK' : 'LIGHT';
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const zonosStore = require('./zonosStore-b18fe6b6.js');
6
+ const zonosStore = require('./zonosStore-e12d459c.js');
7
7
 
8
8
  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}";
9
9
  const ZonosCollapseStyle0 = zonosCollapseCss;
@@ -50,10 +50,10 @@ const ZonosCollapse = class {
50
50
  // set overflow to hidden to prevent content from showing when collapsed
51
51
  this.el.style.overflow = 'hidden';
52
52
  }
53
- return (index.h(index.Host, { key: '22d1cfa07362c868ff1b58315789d3d65bcce556', class: 'zonos--elements zonos--collapse', style: {
53
+ return (index.h(index.Host, { key: '514e75d41d29d70b4ca60230288ae183200b1e12', class: 'zonos--elements zonos--collapse', style: {
54
54
  '--font-family': zonosStore.zonosStoreFontFamily(),
55
55
  height: this.getElementHeight(),
56
- } }, index.h("div", { key: 'fa8c388a6497311d4dd4989e3f9ad2f7f3b8ee82' }, index.h("iframe", { key: 'b93e841bc726709fdca538d7fed38e09470c3ff5', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: 'aac6f96a0d928d372248f3fa1a906cd764f6e0d3' }))));
56
+ } }, index.h("div", { key: '068aee1d13bde4c83ea8582b34844da7452c907c' }, index.h("iframe", { key: 'b22fd8ad898a098c244cb817dc6951854505efca', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), index.h("slot", { key: 'b54783376005085e379c7b8d43218ead1bf8e8ac' }))));
57
57
  }
58
58
  get el() { return index.getElement(this); }
59
59
  };
@@ -22,7 +22,7 @@ const ZonosComponent = class {
22
22
  return format(this.first, this.middle, this.last);
23
23
  }
24
24
  render() {
25
- return index.h("div", { key: '63b0c771133fd495f36e2c67601d64d6e56f5f2b' }, "Hello, World! I'm ", this.getText());
25
+ return index.h("div", { key: 'ece01ba1df61d0c15e60d2cf9fffbf4c01268612' }, "Hello, World! I'm ", this.getText());
26
26
  }
27
27
  };
28
28
  ZonosComponent.style = ZonosComponentStyle0;
@@ -3,11 +3,11 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-6d966eea.js');
7
- const zonosStore = require('./zonosStore-b18fe6b6.js');
6
+ const cart = require('./cart-b3f6a451.js');
7
+ const zonosStore = require('./zonosStore-e12d459c.js');
8
8
  const handleFetch = require('./handleFetch-aa729c61.js');
9
- require('./isDarkColor-87ee1eb7.js');
10
- require('./getBorderRadius-53c35cd1.js');
9
+ require('./isDarkColor-d206c6fa.js');
10
+ require('./getBorderRadius-61ed5601.js');
11
11
 
12
12
  const getZonosSettings = async () => {
13
13
  const { errors, json, zonosMode } = await handleFetch.handleFetch('/api/zonos-elements/zonos-settings');
@@ -52,6 +52,20 @@ const injectHelloComponent = (anchorElementSelector) => {
52
52
  }
53
53
  return false;
54
54
  };
55
+ const convertPosition = (position) => {
56
+ switch (position) {
57
+ case 'BOTTOM_RIGHT':
58
+ return 'bottom-right';
59
+ case 'BOTTOM_LEFT':
60
+ return 'bottom-left';
61
+ case 'TOP_LEFT':
62
+ return 'top-left';
63
+ case 'TOP_RIGHT':
64
+ return 'top-right';
65
+ default:
66
+ return 'bottom-right';
67
+ }
68
+ };
55
69
  /**
56
70
  * Injects the hello mobile wrapper to the DOM and returns the anchor element selector
57
71
  * @returns anchor element selector
@@ -127,6 +141,15 @@ const initHello = async (helloSettings) => {
127
141
  // inject hello to mobile anchor if hello is still not found
128
142
  injectHelloComponent(helloAnchor);
129
143
  }, 1000);
144
+ setTimeout(() => {
145
+ if (helloSettings.notFoundElementFallback) {
146
+ handleFetch.log(`Hello anchor selector ${helloSettings.anchorElementSelector} not found after 3 seconds, falling back to 'notFoundElementFallback': ${helloSettings.notFoundElementFallback}`, 'info');
147
+ const defaultAnchor = injectDefaultWrapper({
148
+ position: convertPosition(helloSettings.notFoundElementFallback),
149
+ });
150
+ injectHelloComponent(defaultAnchor);
151
+ }
152
+ }, 3000);
130
153
  }
131
154
  };
132
155
 
@@ -332,7 +355,7 @@ const ZonosController = class {
332
355
  zonosStore.zonosStore.organizationName = organizationName;
333
356
  }
334
357
  render() {
335
- return index.h(index.Host, { key: 'f2d050c785576dde681a5df55ba24bc42436375f', class: "zonos--elements" });
358
+ return index.h(index.Host, { key: '8e6c4a23893a1d3913d996a62bd14fd000612e42', class: "zonos--elements" });
336
359
  }
337
360
  };
338
361
  ZonosController.style = ZonosControllerStyle0;
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-d56e0a8b.js');
6
- const cart = require('./cart-6d966eea.js');
7
- const zonosStore = require('./zonosStore-b18fe6b6.js');
6
+ const cart = require('./cart-b3f6a451.js');
7
+ const zonosStore = require('./zonosStore-e12d459c.js');
8
8
  const classes = require('./classes-b7918f56.js');
9
9
  require('./handleFetch-aa729c61.js');
10
- require('./isDarkColor-87ee1eb7.js');
11
- require('./getBorderRadius-53c35cd1.js');
10
+ require('./isDarkColor-d206c6fa.js');
11
+ require('./getBorderRadius-61ed5601.js');
12
12
 
13
13
  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}";
14
14
  const ZonosCountryFlagStyle0 = zonosCountryFlagCss;