@zonos/elements 1.3.11-alpha.0 → 1.3.11-alpha.1

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 (264) hide show
  1. package/dist/cjs/{cart-7e28f026.js → cart-d9e9ecfc.js} +29 -25
  2. package/dist/cjs/{getBorderRadius-d795f526.js → getBorderRadius-9d619bf6.js} +1 -1
  3. package/dist/cjs/getContrastColor-af2386af.js +20 -0
  4. package/dist/cjs/{isColorVariable-41cacd82.js → isColorVariable-fff5e469.js} +1 -1
  5. package/dist/cjs/{isDarkColor-33fb96a7.js → isDarkColor-a68274cf.js} +2 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/{submitGtag-586d3206.js → submitGtag-b7ef5d5b.js} +2 -2
  8. package/dist/cjs/zonos-address_4.cjs.entry.js +11 -11
  9. package/dist/cjs/zonos-badge_2.cjs.entry.js +6 -6
  10. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/{zonos-button_3.cjs.entry.js → zonos-button_2.cjs.entry.js} +34 -36
  12. package/dist/cjs/zonos-card_2.cjs.entry.js +8 -8
  13. package/dist/cjs/{zonos-cart-items_9.cjs.entry.js → zonos-cart-items_10.cjs.entry.js} +161 -48
  14. package/dist/cjs/zonos-checkout.cjs.entry.js +20 -22
  15. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  16. package/dist/cjs/zonos-controller.cjs.entry.js +5 -5
  17. package/dist/cjs/zonos-country-flag.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-country-select_3.cjs.entry.js +9 -9
  19. package/dist/cjs/zonos-elements.cjs.js +1 -1
  20. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +5 -5
  21. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-icon.cjs.entry.js +39 -0
  23. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  24. package/dist/cjs/zonos-logo.cjs.entry.js +3 -3
  25. package/dist/cjs/zonos-notification.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-payment.cjs.entry.js +5 -5
  27. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +5 -5
  28. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +13 -4
  29. package/dist/cjs/zonos-text.cjs.entry.js +6 -2
  30. package/dist/cjs/{zonosStore-d3f0173b.js → zonosStore-21334303.js} +1 -1
  31. package/dist/collection/collection-manifest.json +1 -0
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.css +32 -22
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +76 -16
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +2 -4
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +15 -17
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +1 -1
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +43 -24
  38. package/dist/collection/components/common/component-template/zonos-link/zonos-link.js +1 -1
  39. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  40. package/dist/collection/components/common/zonos-button/zonos-button.css +1 -1
  41. package/dist/collection/components/common/zonos-button/zonos-button.js +18 -4
  42. package/dist/collection/components/common/zonos-card/zonos-card.js +2 -2
  43. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  44. package/dist/collection/components/common/zonos-checkout-progress-tabs/assets/TabCheckmark.svg +3 -0
  45. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.css +102 -0
  46. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +193 -0
  47. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  48. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  49. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +1 -1
  50. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -1
  51. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -28
  52. package/dist/collection/components/common/zonos-icon/zonos-icon.js +7 -3
  53. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  54. package/dist/collection/components/common/zonos-logo/zonos-logo.js +4 -4
  55. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  56. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +27 -1
  57. package/dist/collection/components/common/zonos-text/zonos-text.js +7 -3
  58. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  59. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  60. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  61. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  62. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +1 -1
  63. package/dist/collection/components/main/zonos-controller.js +1 -1
  64. package/dist/collection/components/store/checkout/cart.js +26 -0
  65. package/dist/collection/components/store/zonosStore.js +1 -1
  66. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  67. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  68. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  69. package/dist/collection/components/utils/getContrastColor.js +16 -0
  70. package/dist/collection/components/utils/isColorVariable.js +1 -1
  71. package/dist/collection/components/utils/styles.js +12 -0
  72. package/dist/components/getContrastColor.js +18 -0
  73. package/dist/components/isColorVariable.js +1 -1
  74. package/dist/components/isDarkColor.js +1 -1
  75. package/dist/components/stripe.js +27 -22
  76. package/dist/components/trackConversionEvent.js +1 -1
  77. package/dist/components/zonos-address2.js +1 -1
  78. package/dist/components/zonos-badge2.js +3 -3
  79. package/dist/components/zonos-button2.js +30 -4
  80. package/dist/components/zonos-card2.js +2 -2
  81. package/dist/components/zonos-checkbox2.js +3 -3
  82. package/dist/components/zonos-checkout-finish2.js +1 -1
  83. package/dist/components/zonos-checkout-footer2.js +33 -17
  84. package/dist/components/zonos-checkout-progress-tabs.d.ts +11 -0
  85. package/dist/components/zonos-checkout-progress-tabs.js +6 -0
  86. package/dist/components/zonos-checkout-progress-tabs2.js +122 -0
  87. package/dist/components/zonos-checkout.js +44 -40
  88. package/dist/components/zonos-collapse2.js +2 -2
  89. package/dist/components/zonos-component.js +1 -1
  90. package/dist/components/zonos-controller.js +2 -2
  91. package/dist/components/zonos-country-select2.js +2 -2
  92. package/dist/components/zonos-custom-message2.js +1 -1
  93. package/dist/components/zonos-dialog2.js +4 -6
  94. package/dist/components/zonos-hello-dialog-footer2.js +2 -2
  95. package/dist/components/zonos-hello-dialog2.js +2 -2
  96. package/dist/components/zonos-hello.js +1 -1
  97. package/dist/components/zonos-icon2.js +5 -1
  98. package/dist/components/zonos-language-select2.js +3 -3
  99. package/dist/components/zonos-link-authentication2.js +1 -1
  100. package/dist/components/zonos-link.js +1 -1
  101. package/dist/components/zonos-logo.js +2 -2
  102. package/dist/components/zonos-payment2.js +1 -1
  103. package/dist/components/zonos-review2.js +1 -1
  104. package/dist/components/zonos-select-dialog-header2.js +2 -2
  105. package/dist/components/zonos-shipping-rich-radio2.js +11 -1
  106. package/dist/components/zonos-shipping2.js +44 -25
  107. package/dist/components/zonos-text2.js +5 -1
  108. package/dist/components/zonos-tooltip2.js +2 -2
  109. package/dist/components/zonos-v-stack2.js +2 -2
  110. package/dist/components/zonosStore.js +1 -1
  111. package/dist/esm/{cart-5a88b4f3.js → cart-6cfd7560.js} +30 -25
  112. package/dist/esm/{getBorderRadius-5d750ab8.js → getBorderRadius-c5fb7746.js} +1 -1
  113. package/dist/esm/getContrastColor-a1a6f6aa.js +18 -0
  114. package/dist/esm/{isColorVariable-91c33804.js → isColorVariable-fbf2d80d.js} +1 -1
  115. package/dist/esm/{isDarkColor-c34dfed9.js → isDarkColor-810fcaa5.js} +2 -2
  116. package/dist/esm/loader.js +1 -1
  117. package/dist/esm/{submitGtag-289ddd8b.js → submitGtag-acca574d.js} +2 -2
  118. package/dist/esm/zonos-address_4.entry.js +11 -11
  119. package/dist/esm/zonos-badge_2.entry.js +6 -6
  120. package/dist/esm/zonos-banner.entry.js +1 -1
  121. package/dist/esm/{zonos-button_3.entry.js → zonos-button_2.entry.js} +35 -36
  122. package/dist/esm/zonos-card_2.entry.js +8 -8
  123. package/dist/esm/{zonos-cart-items_9.entry.js → zonos-cart-items_10.entry.js} +161 -49
  124. package/dist/esm/zonos-checkout.entry.js +20 -22
  125. package/dist/esm/zonos-component.entry.js +1 -1
  126. package/dist/esm/zonos-controller.entry.js +5 -5
  127. package/dist/esm/zonos-country-flag.entry.js +4 -4
  128. package/dist/esm/zonos-country-select_3.entry.js +9 -9
  129. package/dist/esm/zonos-elements.js +1 -1
  130. package/dist/esm/zonos-hello-dialog.entry.js +5 -5
  131. package/dist/esm/zonos-hello.entry.js +4 -4
  132. package/dist/esm/zonos-icon.entry.js +35 -0
  133. package/dist/esm/zonos-link.entry.js +1 -1
  134. package/dist/esm/zonos-logo.entry.js +3 -3
  135. package/dist/esm/zonos-notification.entry.js +1 -1
  136. package/dist/esm/zonos-payment.entry.js +5 -5
  137. package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
  138. package/dist/esm/zonos-shipping-rich-radio.entry.js +13 -4
  139. package/dist/esm/zonos-text.entry.js +6 -2
  140. package/dist/esm/{zonosStore-aac7c6ac.js → zonosStore-e5f3d4da.js} +1 -1
  141. package/dist/esm-es5/{cart-5a88b4f3.js → cart-6cfd7560.js} +1 -1
  142. package/dist/esm-es5/{getBorderRadius-5d750ab8.js → getBorderRadius-c5fb7746.js} +1 -1
  143. package/dist/esm-es5/getContrastColor-a1a6f6aa.js +1 -0
  144. package/dist/esm-es5/isColorVariable-fbf2d80d.js +1 -0
  145. package/dist/esm-es5/{isDarkColor-c34dfed9.js → isDarkColor-810fcaa5.js} +1 -1
  146. package/dist/esm-es5/loader.js +1 -1
  147. package/dist/esm-es5/{submitGtag-289ddd8b.js → submitGtag-acca574d.js} +1 -1
  148. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  149. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  150. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  151. package/dist/esm-es5/zonos-button_2.entry.js +1 -0
  152. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  153. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -0
  154. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  155. package/dist/esm-es5/zonos-component.entry.js +1 -1
  156. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  157. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  158. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  159. package/dist/esm-es5/zonos-elements.js +1 -1
  160. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  161. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  162. package/dist/esm-es5/zonos-icon.entry.js +1 -0
  163. package/dist/esm-es5/zonos-link.entry.js +1 -1
  164. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  165. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  166. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  167. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  168. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  169. package/dist/esm-es5/zonos-text.entry.js +1 -1
  170. package/dist/esm-es5/{zonosStore-aac7c6ac.js → zonosStore-e5f3d4da.js} +1 -1
  171. package/dist/scripts/loadZonos.js +1 -1
  172. package/dist/scripts/zonos.js +1 -1
  173. package/dist/scripts/zonosBase.js +1 -1
  174. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.d.ts +14 -2
  175. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +0 -1
  176. package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +7 -0
  177. package/dist/types/components/common/zonos-button/zonos-button.d.ts +1 -0
  178. package/dist/types/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.d.ts +29 -0
  179. package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +0 -5
  180. package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +3 -1
  181. package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +1 -1
  182. package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +5 -0
  183. package/dist/types/components/common/zonos-text/zonos-text.d.ts +3 -1
  184. package/dist/types/components/store/checkout/cart.d.ts +10 -1
  185. package/dist/types/components/utils/getContrastColor.d.ts +4 -0
  186. package/dist/types/components/utils/isColorVariable.d.ts +1 -1
  187. package/dist/types/components/utils/styles.d.ts +7 -0
  188. package/dist/types/components.d.ts +67 -14
  189. package/dist/zonos-elements/assets/TabCheckmark.svg +3 -0
  190. package/dist/zonos-elements/p-0b51de7b.system.entry.js +1 -0
  191. package/dist/zonos-elements/{p-d7690752.system.entry.js → p-0dfd549e.system.entry.js} +1 -1
  192. package/dist/zonos-elements/{p-c1e54094.system.js → p-0f414d6a.system.js} +1 -1
  193. package/dist/zonos-elements/{p-723628b7.js → p-0f8acb62.js} +1 -1
  194. package/dist/zonos-elements/{p-27d57265.system.entry.js → p-20b080d1.system.entry.js} +1 -1
  195. package/dist/zonos-elements/{p-7e355496.system.entry.js → p-212992ec.system.entry.js} +1 -1
  196. package/dist/zonos-elements/p-22db99c9.system.entry.js +1 -0
  197. package/dist/zonos-elements/{p-14bf3658.entry.js → p-26aee7a0.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-c6de2e40.system.entry.js → p-2d5a6a7f.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-ca6b4c1e.system.entry.js → p-2fdec8bc.system.entry.js} +1 -1
  200. package/dist/zonos-elements/p-352ba771.system.js +1 -0
  201. package/dist/zonos-elements/p-4051a42d.js +1 -0
  202. package/dist/zonos-elements/p-5162f4cc.system.entry.js +1 -0
  203. package/dist/zonos-elements/{p-d0d12a64.entry.js → p-51c32b3d.entry.js} +1 -1
  204. package/dist/zonos-elements/{p-4569bc92.js → p-55b8b98b.js} +1 -1
  205. package/dist/zonos-elements/p-59595553.entry.js +1 -0
  206. package/dist/zonos-elements/p-5a40684c.entry.js +1 -0
  207. package/dist/zonos-elements/{p-25fbcefe.system.entry.js → p-60ac5342.system.entry.js} +1 -1
  208. package/dist/zonos-elements/p-61e08de7.system.entry.js +1 -0
  209. package/dist/zonos-elements/{p-e969cec9.entry.js → p-65a877e2.entry.js} +1 -1
  210. package/dist/zonos-elements/{p-d2885590.system.js → p-66cc1554.system.js} +1 -1
  211. package/dist/zonos-elements/p-6a80f7f5.entry.js +1 -0
  212. package/dist/zonos-elements/{p-5f2cb4b6.entry.js → p-6daa64bf.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-77727098.system.js → p-6db032ee.system.js} +1 -1
  214. package/dist/zonos-elements/{p-188ddbe2.entry.js → p-6dc606c6.entry.js} +1 -1
  215. package/dist/zonos-elements/p-6e81adba.system.js +1 -1
  216. package/dist/zonos-elements/{p-4ad5f307.system.entry.js → p-7e00a5dc.system.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-a725946f.entry.js → p-817e7f8e.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-dad00ad3.system.entry.js → p-824b8708.system.entry.js} +1 -1
  219. package/dist/zonos-elements/{p-770384fa.system.entry.js → p-9a2c3874.system.entry.js} +1 -1
  220. package/dist/zonos-elements/{p-edbea8df.system.js → p-9db2f9d1.system.js} +1 -1
  221. package/dist/zonos-elements/{p-77c54b83.js → p-a1a477c9.js} +1 -1
  222. package/dist/zonos-elements/{p-93e51987.system.entry.js → p-a398bc59.system.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-febddb45.entry.js → p-a641dfcd.entry.js} +1 -1
  224. package/dist/zonos-elements/p-a7bfe188.entry.js +1 -0
  225. package/dist/zonos-elements/{p-9db3028d.entry.js → p-ac7155d7.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-6181f2d5.entry.js → p-ad499520.entry.js} +1 -1
  227. package/dist/zonos-elements/{p-a578facf.entry.js → p-b0e9226a.entry.js} +1 -1
  228. package/dist/zonos-elements/{p-d9c65636.system.js → p-b1ee44c6.system.js} +1 -1
  229. package/dist/zonos-elements/{p-e392e212.system.entry.js → p-b2c48954.system.entry.js} +1 -1
  230. package/dist/zonos-elements/{p-315c1fc2.entry.js → p-b62aee3d.entry.js} +1 -1
  231. package/dist/zonos-elements/p-b76909ab.entry.js +1 -0
  232. package/dist/zonos-elements/{p-333da541.entry.js → p-b9cde0c3.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-482371fb.system.entry.js → p-c4862aab.system.entry.js} +1 -1
  234. package/dist/zonos-elements/p-c6e44a9b.entry.js +1 -0
  235. package/dist/zonos-elements/p-cde25873.js +1 -0
  236. package/dist/zonos-elements/p-d96f8d89.system.entry.js +1 -0
  237. package/dist/zonos-elements/p-e2131057.entry.js +1 -0
  238. package/dist/zonos-elements/p-e28ed57c.js +1 -0
  239. package/dist/zonos-elements/{p-49a5be72.js → p-e74f27da.js} +1 -1
  240. package/dist/zonos-elements/{p-afcded5d.system.js → p-ed4d8d71.system.js} +1 -1
  241. package/dist/zonos-elements/{p-0b4910fe.system.entry.js → p-f62b49aa.system.entry.js} +1 -1
  242. package/dist/zonos-elements/{p-a87803b7.system.entry.js → p-f8b03017.system.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-8445a084.system.entry.js → p-fac20c60.system.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-e4e1ca2f.system.entry.js → p-fd8c50e8.system.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-d5a9dfc7.entry.js → p-ff17c03b.entry.js} +1 -1
  246. package/dist/zonos-elements/p-ff962844.entry.js +1 -0
  247. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  248. package/package.json +1 -1
  249. package/dist/esm-es5/isColorVariable-91c33804.js +0 -1
  250. package/dist/esm-es5/zonos-button_3.entry.js +0 -1
  251. package/dist/esm-es5/zonos-cart-items_9.entry.js +0 -1
  252. package/dist/zonos-elements/p-144f4d31.entry.js +0 -1
  253. package/dist/zonos-elements/p-4c414a92.js +0 -1
  254. package/dist/zonos-elements/p-5c991faa.system.entry.js +0 -1
  255. package/dist/zonos-elements/p-691d8075.entry.js +0 -1
  256. package/dist/zonos-elements/p-87c4ac09.system.entry.js +0 -1
  257. package/dist/zonos-elements/p-9f532a3f.entry.js +0 -1
  258. package/dist/zonos-elements/p-afc0460d.entry.js +0 -1
  259. package/dist/zonos-elements/p-dd153a4e.entry.js +0 -1
  260. package/dist/zonos-elements/p-def8823e.entry.js +0 -1
  261. package/dist/zonos-elements/p-e4749f19.js +0 -1
  262. package/dist/zonos-elements/p-e87e8c9c.system.entry.js +0 -1
  263. package/dist/zonos-elements/p-f1170e7b.entry.js +0 -1
  264. package/dist/zonos-elements/p-fe0930e4.system.entry.js +0 -1
@@ -2,7 +2,7 @@ import { createStore } from "@stencil/store";
2
2
  import { mergeConfig } from "../utils/mergeConfig";
3
3
  const { reset, state: zonosStore } = createStore(() => ({
4
4
  appearance: {
5
- colorPrimary: 'purple',
5
+ colorPrimary: 'white',
6
6
  fontFamily: 'Inter',
7
7
  logoUrl: '',
8
8
  style: 'ROUNDED',
@@ -173,7 +173,7 @@ export class ZonosAddress {
173
173
  }
174
174
  render() {
175
175
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
176
- return (h(Host, { key: '3927946760be161a50ccf924cef5a58503887ac8', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'ac95946a7322dbfab13b3d29df2e22d251ba553c', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '552c6e94d64a842f702c5499320713c8b8fcab6b', class: "zonos--address-component" }), this.hasInvalidCharacters && (h("zonos-banner", { bannerTitle: translate('Please ensure your text uses the Latin alphabet only (A-Z, a-z).'), intent: "error" }))));
176
+ return (h(Host, { key: '94a81dc71b5425ac0ab7868bc55072fdd695fa7d', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '5bddb83ba17b50b779820fd9bdf0630ce03274b5', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '0f076c843b1997b8e1290caf2b8fe18b78114f65', class: "zonos--address-component" }), this.hasInvalidCharacters && (h("zonos-banner", { bannerTitle: translate('Please ensure your text uses the Latin alphabet only (A-Z, a-z).'), intent: "error" }))));
177
177
  }
178
178
  static get is() { return "zonos-address"; }
179
179
  static get encapsulation() { return "scoped"; }
@@ -36,7 +36,7 @@ export class ZonosLinkAuthentication {
36
36
  }
37
37
  render() {
38
38
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
39
- return (h(Host, { key: '671681b3ca3e95ab25a70cb44e84db7e2b3903e8', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '8d20c795500e3ce27b92cdeb0446908e550f9f13', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'b8374d7d7a4844b4c2cf6363b8d2d225bb52b21d', class: "zonos--link-authentication-component" })));
39
+ return (h(Host, { key: 'a434761e3f237cd44971e458512c7649f214eb4d', class: "zonos--link-authentication zonos--elements" }, h("zonos-text", { key: '0c350ff6dabb1c71376e4e6539a68613d7174189', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: 'e9cc2bd1e68b64e2fed41851a0d2f2be40583337', class: "zonos--link-authentication-component" })));
40
40
  }
41
41
  static get is() { return "zonos-link-authentication"; }
42
42
  static get encapsulation() { return "scoped"; }
@@ -37,7 +37,7 @@ export class ZonosPayment {
37
37
  }
38
38
  render() {
39
39
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
40
- return (h(Host, { key: 'e10a4ce1a9ecf05ad8efaceeb861284a92e475d2', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'a1b52de6a2cec2f707e00c39ebcd7752ad191af6', class: "zonos--payment-component" })));
40
+ return (h(Host, { key: 'db50fedad509b3bc972cfe02d5973a3c93a6eb23', class: "zonos--payment zonos--elements" }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("div", { key: 'a773ce78377a70c57577eb1efdac9d2563d1a60d', class: "zonos--payment-component" })));
41
41
  }
42
42
  static get is() { return "zonos-payment"; }
43
43
  static get encapsulation() { return "scoped"; }
@@ -0,0 +1,16 @@
1
+ import tinycolor from "tinycolor2";
2
+ import { isDarkColor } from "./isDarkColor";
3
+ export const getContrastColor = ({ backgroundColor, color, }) => {
4
+ // get readibility of the color
5
+ const colorReadibilityValue = tinycolor.readability(color, backgroundColor);
6
+ if (colorReadibilityValue > 2.5) {
7
+ // no need to change the color if it's already contrast enough
8
+ return color;
9
+ }
10
+ if (isDarkColor(color)) {
11
+ return '#ffffff';
12
+ }
13
+ else {
14
+ return tinycolor(color).darken(25).toHexString();
15
+ }
16
+ };
@@ -4,7 +4,7 @@ export const isColorVariable = (color) => {
4
4
  (/--amino-/gi.test(color) ||
5
5
  // match 'gray-0'
6
6
  /(\-*)\w+-\d+/gi.test(color));
7
- return (isAminoVariable &&
7
+ return (!!isAminoVariable &&
8
8
  // match rgb, rgba, hsl, hsla, hex, and css variable
9
9
  !color.includes('(') &&
10
10
  // match hex
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Filter out all of the undefined values from the object so we don't have undefined css variable values
3
+ */
4
+ export const styles = (props) => {
5
+ // loop through the object and filter out all of the underfined values
6
+ return Object.entries(props).reduce((acc, [key, value]) => {
7
+ if (value) {
8
+ acc[key] = value;
9
+ }
10
+ return acc;
11
+ }, {});
12
+ };
@@ -0,0 +1,18 @@
1
+ import { t as tinycolor, i as isDarkColor } from './isDarkColor.js';
2
+
3
+ const getContrastColor = ({ backgroundColor, color, }) => {
4
+ // get readibility of the color
5
+ const colorReadibilityValue = tinycolor.readability(color, backgroundColor);
6
+ if (colorReadibilityValue > 2.5) {
7
+ // no need to change the color if it's already contrast enough
8
+ return color;
9
+ }
10
+ if (isDarkColor(color)) {
11
+ return '#ffffff';
12
+ }
13
+ else {
14
+ return tinycolor(color).darken(25).toHexString();
15
+ }
16
+ };
17
+
18
+ export { getContrastColor as g };
@@ -4,7 +4,7 @@ const isColorVariable = (color) => {
4
4
  (/--amino-/gi.test(color) ||
5
5
  // match 'gray-0'
6
6
  /(\-*)\w+-\d+/gi.test(color));
7
- return (isAminoVariable &&
7
+ return (!!isAminoVariable &&
8
8
  // match rgb, rgba, hsl, hsla, hex, and css variable
9
9
  !color.includes('(') &&
10
10
  // match hex
@@ -1196,4 +1196,4 @@ const isDarkColor = (color) => {
1196
1196
  return tinycolor(color).isDark();
1197
1197
  };
1198
1198
 
1199
- export { isDarkColor as i };
1199
+ export { isDarkColor as i, tinycolor as t };
@@ -4296,6 +4296,7 @@ const getDaysDifference = (targetDate) => {
4296
4296
  const { onChange: onChange$1, reset: reset$1, state: cartStore, } = createStore(() => ({
4297
4297
  checkoutSessionId: sessionStorage.getItem('zonos--checkout-session-id') || null,
4298
4298
  currency: 'USD',
4299
+ doneSteps: [],
4299
4300
  dutiesTaxFees: 0,
4300
4301
  error: null,
4301
4302
  exchangeRate: null,
@@ -4311,6 +4312,27 @@ const { onChange: onChange$1, reset: reset$1, state: cartStore, } = createStore(
4311
4312
  shippingData: null,
4312
4313
  step: 'customer-info',
4313
4314
  subtotal: 0,
4315
+ tabItems: {
4316
+ 'customer-info': {
4317
+ index: 1,
4318
+ isDone: false,
4319
+ label: 'Customer',
4320
+ value: 'customer-info',
4321
+ },
4322
+ shipping: {
4323
+ index: 2,
4324
+ isDone: false,
4325
+ label: 'Delivery',
4326
+ value: 'shipping',
4327
+ },
4328
+ // eslint-disable-next-line sort-keys/sort-keys-fix
4329
+ payment: {
4330
+ index: 3,
4331
+ isDone: false,
4332
+ label: 'Payment',
4333
+ value: 'payment',
4334
+ },
4335
+ },
4314
4336
  total: 0,
4315
4337
  }));
4316
4338
  /**
@@ -4460,38 +4482,21 @@ const cartStoreUpdateItems = async (items) => {
4460
4482
  });
4461
4483
  stripeStore.isFetchingSession = false;
4462
4484
  };
4463
- const cartStoreResetSelectedShippingOption = () => {
4464
- cartStore.selectedShippingOption = null;
4465
- cartStore.isSelectedShippingAboveDeminimis = false;
4466
- cartStore.isSelectedShippingGuarantee = false;
4467
- cartStore.selectedShippingOptionExpectedDate = '';
4468
- cartStore.selectedShippingOptionTransitTime = '';
4469
- cartStore.dutiesTaxFees = 0;
4470
- cartStore.shipping = 0;
4471
- // reset total to subtotal
4472
- cartStore.total = cartStore.subtotal;
4473
- };
4474
4485
  const cartStoreNextStep = () => {
4475
4486
  if (cartStore.step === 'customer-info') {
4476
4487
  cartStore.step = 'shipping';
4488
+ // set customer-info step to done
4489
+ cartStore.tabItems = Object.assign(Object.assign({}, cartStore.tabItems), { 'customer-info': Object.assign(Object.assign({}, cartStore.tabItems['customer-info']), { isDone: true }) });
4477
4490
  }
4478
4491
  else if (cartStore.step === 'shipping') {
4479
4492
  cartStore.step = 'payment';
4493
+ // set shipping step to done
4494
+ cartStore.tabItems = Object.assign(Object.assign({}, cartStore.tabItems), { shipping: Object.assign(Object.assign({}, cartStore.tabItems.shipping), { isDone: true }) });
4480
4495
  }
4481
4496
  else if (cartStore.step === 'payment') {
4482
4497
  cartStore.step = 'finish';
4483
4498
  }
4484
4499
  };
4485
- const cartStorePreviousStep = () => {
4486
- if (cartStore.step === 'payment') {
4487
- cartStore.step = 'shipping';
4488
- }
4489
- else if (cartStore.step === 'shipping') {
4490
- cartStore.step = 'customer-info';
4491
- // reset selected shipping option
4492
- cartStoreResetSelectedShippingOption();
4493
- }
4494
- };
4495
4500
 
4496
4501
  const prepCalculateLandedCost = () => {
4497
4502
  // maybe we don't need email now for prefetch the landed cost
@@ -5014,4 +5019,4 @@ onChange('clientSecret', clientSecret => {
5014
5019
  }
5015
5020
  });
5016
5021
 
5017
- export { initLocalizationStore as A, getZCountryUrlParam as B, setZCountryUrlParam as C, currencyDisplay as D, currencyConvertAndFormat as E, currencyConvert as F, currencyFormat as G, localizationStore as a, log as b, cartStore as c, stripeStoreGetDomesticShippingSession as d, localizationStoreUpdateSelectedCountryCode as e, stripeStoreCleanupDomesticShippingSession as f, stripeStoreSaveDomesticShippingSession as g, cartStoreUpdateItems as h, initStripeElements as i, cartStoreReset as j, stripeStoreInitCheckoutSession as k, logError as l, cartStoreUpdateToErrorState as m, stripeStorePrefetchLandedCost as n, cartStoreNextStep as o, stripeStoreConfirmPayment as p, stripeStoreReset as q, cartStorePreviousStep as r, stripeStore as s, translate as t, handleFetch as u, stripeStoreRetrievePayment as v, localizationStoreUpdateSelectedLocale as w, cartStoreUpdateSelectedShippingOption as x, cartStoreGetShippingTransitInfo as y, isValidSelector as z };
5022
+ export { getZCountryUrlParam as A, setZCountryUrlParam as B, currencyDisplay as C, currencyConvertAndFormat as D, currencyConvert as E, currencyFormat as F, localizationStore as a, log as b, cartStore as c, stripeStoreGetDomesticShippingSession as d, localizationStoreUpdateSelectedCountryCode as e, stripeStoreCleanupDomesticShippingSession as f, stripeStoreSaveDomesticShippingSession as g, cartStoreUpdateItems as h, initStripeElements as i, cartStoreReset as j, stripeStoreInitCheckoutSession as k, logError as l, cartStoreUpdateToErrorState as m, stripeStorePrefetchLandedCost as n, cartStoreNextStep as o, stripeStoreConfirmPayment as p, stripeStoreReset as q, handleFetch as r, stripeStore as s, translate as t, stripeStoreRetrievePayment as u, localizationStoreUpdateSelectedLocale as v, cartStoreUpdateSelectedShippingOption as w, cartStoreGetShippingTransitInfo as x, isValidSelector as y, initLocalizationStore as z };
@@ -1,4 +1,4 @@
1
- import { u as handleFetch, a as localizationStore } from './stripe.js';
1
+ import { r as handleFetch, a as localizationStore } from './stripe.js';
2
2
  import { z as zonosStore } from './zonosStore.js';
3
3
 
4
4
  const trackConversionEvent = async (eventName, metadata) => {
@@ -189,7 +189,7 @@ const ZonosAddress = /*@__PURE__*/ proxyCustomElement(class ZonosAddress extends
189
189
  }
190
190
  render() {
191
191
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
192
- return (h(Host, { key: '3927946760be161a50ccf924cef5a58503887ac8', class: "zonos--address zonos--elements" }, h("zonos-text", { key: 'ac95946a7322dbfab13b3d29df2e22d251ba553c', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '552c6e94d64a842f702c5499320713c8b8fcab6b', class: "zonos--address-component" }), this.hasInvalidCharacters && (h("zonos-banner", { bannerTitle: translate('Please ensure your text uses the Latin alphabet only (A-Z, a-z).'), intent: "error" }))));
192
+ return (h(Host, { key: '94a81dc71b5425ac0ab7868bc55072fdd695fa7d', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '5bddb83ba17b50b779820fd9bdf0630ce03274b5', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("div", { key: '0f076c843b1997b8e1290caf2b8fe18b78114f65', class: "zonos--address-component" }), this.hasInvalidCharacters && (h("zonos-banner", { bannerTitle: translate('Please ensure your text uses the Latin alphabet only (A-Z, a-z).'), intent: "error" }))));
193
193
  }
194
194
  get el() { return this; }
195
195
  static get watchers() { return {
@@ -19,16 +19,16 @@ const ZonosBadge = /*@__PURE__*/ proxyCustomElement(class ZonosBadge extends HTM
19
19
  this.rounded = false;
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: '1cece57ce37e04873f625d05ad5a0bea6368b46b', class: classes(['zonos--elements zonos--badge']), style: {
22
+ return (h(Host, { key: '9e6c4ec2341f5ca076a3c54bcce347db9e83bb38', class: classes(['zonos--elements zonos--badge']), style: {
23
23
  '--font-family': zonosStoreFontFamily(),
24
- } }, h("div", { key: '8caf3f2ffb7deda215c44ad0c6c0892936d526c2', class: classes([
24
+ } }, h("div", { key: 'ad4d88e7ac5b8e8a617bb904faeaad73d426c271', class: classes([
25
25
  'zonos--badge-content',
26
26
  this.badgeColor,
27
27
  this.rounded && 'rounded',
28
28
  this.iconRight && 'icon-right',
29
29
  this.size,
30
30
  this.bold && 'bold',
31
- ]) }, this.icon, h("zonos-text", { key: 'fb8ac7f09675f9cfd829ecea54c61f5c699caa00' }, h("slot", { key: '978bc876e427d932662a0100043e04b105e9df8d' })))));
31
+ ]) }, this.icon, h("zonos-text", { key: 'd0709a3ffbcc65703933273f614bbb71792b8f61' }, h("slot", { key: '997537e7fd4102a35a1e16789fa7b5444ee85a5a' })))));
32
32
  }
33
33
  static get style() { return ZonosBadgeStyle0; }
34
34
  }, [1, "zonos-badge", {
@@ -4,6 +4,7 @@ import { c as classes } from './classes.js';
4
4
  import { g as getBorderRadius } from './getBorderRadius.js';
5
5
  import { i as isColorVariable } from './isColorVariable.js';
6
6
  import { i as isDarkColor } from './isDarkColor.js';
7
+ import { g as getContrastColor } from './getContrastColor.js';
7
8
  import { d as defineCustomElement$1 } from './zonos-spinner2.js';
8
9
 
9
10
  /**
@@ -20,7 +21,20 @@ const getButtonTheme = (overrideBackground) => {
20
21
  return buttonTheme;
21
22
  };
22
23
 
23
- const zonosButtonCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex;border-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));margin:1px;}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--amino-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--amino-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--amino-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--amino-radius-4);width:24px}";
24
+ /**
25
+ * Filter out all of the undefined values from the object so we don't have undefined css variable values
26
+ */
27
+ const styles = (props) => {
28
+ // loop through the object and filter out all of the underfined values
29
+ return Object.entries(props).reduce((acc, [key, value]) => {
30
+ if (value) {
31
+ acc[key] = value;
32
+ }
33
+ return acc;
34
+ }, {});
35
+ };
36
+
37
+ const zonosButtonCss = ":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-inline-flexbox;display:inline-flex;border-radius:var(--border-radius, var(--amino-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));margin:1px;}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--background-color, var(--amino-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--background-color, var(--amino-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--amino-font-size-s)}}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color);outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--subtle-hover-color, var(--amino-gray-100))}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--amino-radius-4);width:24px}";
24
38
  const ZonosButtonStyle0 = zonosButtonCss;
25
39
 
26
40
  const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends HTMLElement {
@@ -81,12 +95,23 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
81
95
  const buttonTheme = variant === 'standard' ? getButtonTheme(overrideBackground) : undefined;
82
96
  const borderStyle = getBorderRadius(this.borderStyle);
83
97
  const spinnerColor = buttonTheme === 'LIGHT' ? 'black' : 'white';
84
- return (h(Host, { key: 'f3374eedd37ec6293260fba7b19d66aa013d3484', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: {
98
+ return (h(Host, { key: '75f5e6900c6e0eb468ea639460d55f251b580200', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
85
99
  '--background-color': overrideBackground,
86
100
  '--border-radius': borderStyle,
87
101
  '--color': color,
88
102
  '--font-family': zonosStoreFontFamily(),
89
- } }, h("button", { key: '352ce427591b20b8042dcd19ce159b77c1fc2faf', class: classes([
103
+ '--subtle-hover-color': this.buttonColor
104
+ ? // for the subtle variant, the hover background should contrast with the text color
105
+ getContrastColor({
106
+ backgroundColor: 'white',
107
+ color: isColorVariable(this.buttonColor)
108
+ ? window
109
+ .getComputedStyle(this.ele)
110
+ .getPropertyValue(`--amino-${this.buttonColor}`)
111
+ : this.buttonColor,
112
+ })
113
+ : undefined,
114
+ }) }, h("button", { key: 'fd1323ac24be622182f9b60d8b026fb0ea47fa40', class: classes([
90
115
  this.hasIcon && 'has-icon',
91
116
  this.hasContent && 'has-content',
92
117
  this.noBackground && 'no-background',
@@ -99,8 +124,9 @@ const ZonosButton = /*@__PURE__*/ proxyCustomElement(class ZonosButton extends H
99
124
  overrideBackground &&
100
125
  variant === 'standard' &&
101
126
  'override-background',
102
- ]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '554cc1fd9bb58d833339ae21e837d586adc248c2', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
127
+ ]), disabled: disabled }, this.loading && (h("div", { class: "zonos--spinner-wrapper" }, h("zonos-spinner", { size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '92706fef0545ba24e3f943d731bffa1e844ec154', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
103
128
  }
129
+ get ele() { return this; }
104
130
  static get watchers() { return {
105
131
  "icon": ["iconChangeHandler"]
106
132
  }; }
@@ -19,9 +19,9 @@ const ZonosCard = /*@__PURE__*/ proxyCustomElement(class ZonosCard extends HTMLE
19
19
  this.spacing = '24px';
20
20
  }
21
21
  render() {
22
- return (h(Host, { key: 'b350f7a592ea35c3b6beaf5eefaa2ab0208975dd', style: {
22
+ return (h(Host, { key: 'c2f25ffa32920500b63702df35b9e30dcf28b47d', style: {
23
23
  '--font-family': zonosStoreFontFamily(),
24
- } }, h("div", { key: '125e8b550cd8f371e28a012536722f48402774f2', class: classes(['styled-card']), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot", { key: '3cf038c62910ebac736ed1c37ecf1a490c8e1d0e' }), (this.footerActions || this.footerContent) && (h("footer", { class: "card-footer", style: {
24
+ } }, h("div", { key: '30515451d4694d3fffffab4c23ac2b0ff0e37710', class: classes(['styled-card']), style: { padding: this.spacing } }, this.label && (h("header", { class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { type: "subheader" }, this.label), h("h-stack", { spacing: 8 }, this.actions))), h("slot", { key: 'a1ced320f20a585c7201fc5c7b0729ce8e91a176' }), (this.footerActions || this.footerContent) && (h("footer", { class: "card-footer", style: {
25
25
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
26
26
  padding: this.spacing,
27
27
  } }, h("div", null, this.footerContent), h("h-stack", { spacing: 8 }, this.footerActions))))));
@@ -46,14 +46,14 @@ const ZonosCheckbox = /*@__PURE__*/ proxyCustomElement(class ZonosCheckbox exten
46
46
  ? 'var(--amino-gray-800)'
47
47
  : 'var(--amino-gray-0)';
48
48
  const borderStyle = getBorderRadius(this.borderStyle, '4px');
49
- return (h(Host, { key: '5f8516f5933b739cc3f21d901e50dec1c761fa58', class: classes(['zonos--elements zonos--checkbox']), style: {
49
+ return (h(Host, { key: '20c925f03d3659edde22d4e075aab5ac7323efc1', class: classes(['zonos--elements zonos--checkbox']), style: {
50
50
  '--background-color': backgroundColor,
51
51
  '--border-radius': borderStyle,
52
52
  '--font-family': zonosStoreFontFamily(),
53
53
  '--size': `${this.size}px`,
54
- } }, h("label", { key: '6544f51a8c892d616123ab4194d069b055e3dc86', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: '958e35bf16be575230748fccdb1a3916942c3a30', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
54
+ } }, h("label", { key: 'c2a0fd9fa8f3aebed3bc996647bfb88299822257', class: classes([this.isDisabled && 'disabled']) }, h("input", { key: 'c3293e1ac102b874eccd2ef9494f94c5da3e28e1', checked: this.isChecked, disabled: this.isDisabled, hidden: true, onChange: e => {
55
55
  this.checkboxSelected.emit(e.target.checked);
56
- }, type: "checkbox" }), h("span", { key: '2c55e0a190b092dd083c433c35143e253910f54f', class: "checkmark-container" }, h("svg", { key: '0aa1f705b728055835159a399173a170aee4f7c0', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'd526bbafde4d4399be3f3a0a7cc87e92634d9548', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { size: this.fontSize }, this.label)))));
56
+ }, type: "checkbox" }), h("span", { key: '8d0a39007516ee7f9700f40f3fab20f21161a045', class: "checkmark-container" }, h("svg", { key: 'ee310e0aa1d06f7c81272cac5991dc5c34e19655', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '44611f270e104bc421f50aaccbce1b059e8aa15f', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { size: this.fontSize }, this.label)))));
57
57
  }
58
58
  static get style() { return ZonosCheckboxStyle0; }
59
59
  }, [1, "zonos-checkbox", {
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
2
- import { u as handleFetch, q as stripeStoreReset, c as cartStore, s as stripeStore, v as stripeStoreRetrievePayment, t as translate } from './stripe.js';
2
+ import { r as handleFetch, q as stripeStoreReset, c as cartStore, s as stripeStore, u as stripeStoreRetrievePayment, t as translate } from './stripe.js';
3
3
  import { z as zonosStore } from './zonosStore.js';
4
4
  import { t as trackConversionEvent } from './trackConversionEvent.js';
5
5
  import { g as getBorderRadius } from './getBorderRadius.js';
@@ -1,8 +1,7 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { a as localizationStore } from './stripe.js';
3
- import { z as zonosStore } from './zonosStore.js';
3
+ import { i as isCheckoutMobile } from './isCheckoutMobile.js';
4
4
  import { c as classes } from './classes.js';
5
- import { i as isDarkColor } from './isDarkColor.js';
6
5
  import { l as languages } from './ILanguage.js';
7
6
  import { d as defineCustomElement$7 } from './zonos-button2.js';
8
7
  import { d as defineCustomElement$6 } from './zonos-icon2.js';
@@ -24,7 +23,7 @@ const ZonosIcon = `<svg width="105" height="29" viewBox="0 0 105 29" fill="none"
24
23
  </svg>
25
24
  `;
26
25
 
27
- const zonosCheckoutFooterCss = ":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 .zonos--checkout-footer{position:absolute;bottom:0;left:0;right:0;gap:var(--amino-space-16);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;border-top:var(--amino-border);padding:var(--amino-space-12);-ms-flex-align:center;align-items:center;background:var(--amino-surface-color-secondary)}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper a{line-height:0px}:host .zonos--checkout-footer zonos-button button.outline{outline:1px solid var(--amino-gray-800)}:host .zonos--checkout-footer .zonos--checkout-locale-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8);position:relative}@media (max-width: 400px){:host .zonos--checkout-footer .zonos--checkout-locale-wrapper{gap:var(--amino-space-4)}}:host .zonos--checkout-footer .zonos--checkout-footer-dialog{position:absolute;bottom:36px;left:var(--language-dialog-left);background:var(--amino-surface-color);-webkit-box-shadow:var(--amino-v3-shadow-xl);box-shadow:var(--amino-v3-shadow-xl);border-radius:var(--amino-radius-12);width:360px;max-width:100vw;max-height:500px;z-index:10005;overflow:auto;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:bottom left;transform-origin:bottom left;opacity:0;-webkit-transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out, -webkit-transform 0.3s ease-out}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar{width:10px}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-track{background:var(--amino-gray-50)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-track{border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog.zonos--checkout-footer-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}@media (max-width: 768px){:host .zonos--checkout-footer{-ms-flex-direction:column;flex-direction:column;gap:var(--amino-space-32);background-color:var(--amino-surface-color);border-top:none;position:relative;padding-top:var(--amino-space-24)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog{position:fixed;left:0;right:0;bottom:0;-webkit-transform-origin:bottom center;transform-origin:bottom center;width:100vw}}";
26
+ const zonosCheckoutFooterCss = ":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{position:absolute;bottom:-50px;left:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;z-index:2}:host .zonos--checkout-footer{width:calc(90vw - 22px);gap:var(--amino-space-16);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-12);-ms-flex-align:center;align-items:center}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8)}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper a{line-height:0}:host .zonos--checkout-footer zonos-button button.outline{outline:1px solid var(--amino-gray-800)}:host .zonos--checkout-footer .zonos--checkout-locale-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-8);position:relative}@media (max-width: 400px){:host .zonos--checkout-footer .zonos--checkout-locale-wrapper{gap:var(--amino-space-4)}}:host .zonos--checkout-footer .zonos--checkout-footer-dialog{position:absolute;bottom:36px;left:var(--language-dialog-left);background:var(--amino-surface-color);-webkit-box-shadow:var(--amino-v3-shadow-xl);box-shadow:var(--amino-v3-shadow-xl);border-radius:var(--amino-radius-12);width:360px;max-width:100vw;max-height:500px;z-index:10005;overflow:auto;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:bottom left;transform-origin:bottom left;opacity:0;-webkit-transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out, -webkit-transform 0.3s ease-out}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar{width:10px}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-track{background:var(--amino-gray-50)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-track{border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog.zonos--checkout-footer-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host(.mobile){-ms-flex-direction:column;flex-direction:column;gap:var(--amino-space-32);background:var(--amino-gray-0);position:relative;padding-top:var(--amino-space-24);bottom:0}:host(.mobile) .zonos--checkout-footer{-ms-flex-direction:column;flex-direction:column}:host(.mobile) .zonos--checkout-locale-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.mobile) .zonos--checkout-footer-dialog{position:fixed;left:0;right:0;bottom:0;-webkit-transform-origin:bottom center;transform-origin:bottom center;width:100vw}";
28
27
  const ZonosCheckoutFooterStyle0 = zonosCheckoutFooterCss;
29
28
 
30
29
  const ZonosCheckoutFooter = /*@__PURE__*/ proxyCustomElement(class ZonosCheckoutFooter extends HTMLElement {
@@ -32,31 +31,48 @@ const ZonosCheckoutFooter = /*@__PURE__*/ proxyCustomElement(class ZonosCheckout
32
31
  super();
33
32
  this.__registerHost();
34
33
  this.__attachShadow();
35
- this.showDialog = false;
34
+ this.mobile = false;
35
+ this.dataTheme = undefined;
36
+ this.showLanguageDialog = false;
37
+ this.isMobile = false;
36
38
  }
37
39
  handleGlobalClick(e) {
38
- if (!this.el.contains(e.target) && this.showDialog) {
39
- this.showDialog = false;
40
+ if (!this.el.contains(e.target) && this.showLanguageDialog) {
41
+ this.showLanguageDialog = false;
40
42
  }
41
43
  }
42
- toggleDialog() {
43
- this.showDialog = !this.showDialog;
44
+ toggleLanguageDialog() {
45
+ this.showLanguageDialog = !this.showLanguageDialog;
46
+ }
47
+ handleMobileChange() {
48
+ this.isMobile = isCheckoutMobile(this.mobile);
49
+ }
50
+ componentWillLoad() {
51
+ this.isMobile = isCheckoutMobile(this.mobile);
44
52
  }
45
53
  render() {
46
- var _a, _b;
47
- const primaryColor = (_a = zonosStore.appearance) === null || _a === void 0 ? void 0 : _a.colorPrimary;
48
- const footerTheme = primaryColor && isDarkColor(primaryColor) ? 'DARK' : 'LIGHT';
49
- const languageLabel = (_b = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _b === void 0 ? void 0 : _b.label;
50
- return (h(Host, { key: 'cadd2ef8877c716cdeb1f5f40642e41cabc2a55d', class: "zonos--elements" }, h("div", { key: '480995fd1ca7bc41702d15dd40d64e02a9ba09dd', class: "zonos--checkout-footer", "data-theme": footerTheme, style: { '--primary-color': primaryColor } }, h("div", { key: 'b83ebb3203542f7f4a227b50b26010cbeb914294', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '66ad21d85629d159b4ff3341e82c92d6bd19ceca', class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: "gray-700" }), onClick: () => this.toggleDialog(), variant: "subtle" }, languageLabel), h("div", { key: '1e8dce34f3866570f267233644c6d5549cf02c9b', class: classes([
54
+ var _a;
55
+ const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
56
+ // reverse color when on desktop. With the coversheet backdrop, the color should be white
57
+ const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1200';
58
+ return (h(Host, { key: '2ce26e27b7c90b4d37f26197821ed1a39ddb9fae', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: '5f52ec7b5ad1659ceb9d2edb4661e5995b72afaf', class: "zonos--checkout-footer" }, h("div", { key: '5d127f033702bff94cc2db76b4695a03055ec783', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '701b5014848ea716f7dcc22221b453146af92962', 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: 'e2a319113905bd76473aef822780521f2be58405', class: classes([
51
59
  'zonos--checkout-footer-dialog',
52
- this.showDialog && 'zonos--checkout-footer-dialog-open',
53
- ]) }, h("zonos-language-select", { key: '194aeb20273058577d2cbf3b72eef5f7152129e6', handleOnClose: () => this.toggleDialog() }))), h("div", { key: '56b5f28d98eeb5390b59da3dfbc072f967e945a0', class: "zonos--checkout-footer-icon-wrapper" }, h("zonos-text", { key: 'b098a9c89d4855d388372b20c94ee3582cc4e9df', type: "caption" }, "Powered by"), h("a", { key: '0652328fc74701168e5ddec2e0662208498e4557', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '826323504ca56c3216524d3a9a49f820162aeb85', autoHeight: true, content: ZonosIcon, iconColor: "gray-1200", size: 108 }))))));
60
+ this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
61
+ ]) }, h("zonos-language-select", { key: '4fb9860a4547541f3947d349ab6056e899335952', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '0a348521a7ccecc23a7a69019940c2421bb8420c', class: "zonos--checkout-footer-icon-wrapper" }, h("zonos-text", { key: '9adf4c24fcf1b5d0827556e9e68006860b0bb9c4', textColor: colorDesktop, type: "caption" }, "Powered by"), h("a", { key: 'a3f957e10d14d68d3973169470a21fdabb2f7a06', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '49592d8302447d007dc840de18fa78af7898f382', autoHeight: true, content: ZonosIcon, iconColor: colorDesktop, size: 108 }))))));
54
62
  }
55
63
  get el() { return this; }
64
+ static get watchers() { return {
65
+ "mobile": ["handleMobileChange"]
66
+ }; }
56
67
  static get style() { return ZonosCheckoutFooterStyle0; }
57
68
  }, [1, "zonos-checkout-footer", {
58
- "showDialog": [32]
59
- }, [[4, "click", "handleGlobalClick"]]]);
69
+ "mobile": [4],
70
+ "dataTheme": [1, "data-theme"],
71
+ "showLanguageDialog": [32],
72
+ "isMobile": [32]
73
+ }, [[4, "click", "handleGlobalClick"]], {
74
+ "mobile": ["handleMobileChange"]
75
+ }]);
60
76
  function defineCustomElement() {
61
77
  if (typeof customElements === "undefined") {
62
78
  return;
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface ZonosCheckoutProgressTabs extends Components.ZonosCheckoutProgressTabs, HTMLElement {}
4
+ export const ZonosCheckoutProgressTabs: {
5
+ prototype: ZonosCheckoutProgressTabs;
6
+ new (): ZonosCheckoutProgressTabs;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { Z as ZonosCheckoutProgressTabs$1, d as defineCustomElement$1 } from './zonos-checkout-progress-tabs2.js';
2
+
3
+ const ZonosCheckoutProgressTabs = ZonosCheckoutProgressTabs$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { ZonosCheckoutProgressTabs, defineCustomElement };