@zonos/elements 1.3.10 → 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 (307) hide show
  1. package/dist/cjs/{cart-34d4bf2e.js → cart-d9e9ecfc.js} +209 -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-1f92afd1.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/translationStore/strings.arabic.js +9 -0
  66. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  67. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  68. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  69. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  70. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  71. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  72. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  73. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  74. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  75. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  76. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  77. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  78. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  79. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  80. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  81. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  82. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  83. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  84. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  85. package/dist/collection/components/store/zonosStore.js +1 -1
  86. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  87. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  88. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  89. package/dist/collection/components/utils/getContrastColor.js +16 -0
  90. package/dist/collection/components/utils/isColorVariable.js +1 -1
  91. package/dist/collection/components/utils/styles.js +12 -0
  92. package/dist/components/getContrastColor.js +18 -0
  93. package/dist/components/isColorVariable.js +1 -1
  94. package/dist/components/isDarkColor.js +1 -1
  95. package/dist/components/stripe.js +207 -22
  96. package/dist/components/trackConversionEvent.js +1 -1
  97. package/dist/components/zonos-address2.js +1 -1
  98. package/dist/components/zonos-badge2.js +3 -3
  99. package/dist/components/zonos-button2.js +30 -4
  100. package/dist/components/zonos-card2.js +2 -2
  101. package/dist/components/zonos-checkbox2.js +3 -3
  102. package/dist/components/zonos-checkout-finish2.js +1 -1
  103. package/dist/components/zonos-checkout-footer2.js +33 -17
  104. package/dist/components/zonos-checkout-progress-tabs.d.ts +11 -0
  105. package/dist/components/zonos-checkout-progress-tabs.js +6 -0
  106. package/dist/components/zonos-checkout-progress-tabs2.js +122 -0
  107. package/dist/components/zonos-checkout.js +44 -40
  108. package/dist/components/zonos-collapse2.js +2 -2
  109. package/dist/components/zonos-component.js +1 -1
  110. package/dist/components/zonos-controller.js +2 -2
  111. package/dist/components/zonos-country-select2.js +2 -2
  112. package/dist/components/zonos-custom-message2.js +1 -1
  113. package/dist/components/zonos-dialog2.js +4 -6
  114. package/dist/components/zonos-hello-dialog-footer2.js +2 -2
  115. package/dist/components/zonos-hello-dialog2.js +2 -2
  116. package/dist/components/zonos-hello.js +1 -1
  117. package/dist/components/zonos-icon2.js +5 -1
  118. package/dist/components/zonos-language-select2.js +3 -3
  119. package/dist/components/zonos-link-authentication2.js +1 -1
  120. package/dist/components/zonos-link.js +1 -1
  121. package/dist/components/zonos-logo.js +2 -2
  122. package/dist/components/zonos-payment2.js +1 -1
  123. package/dist/components/zonos-review2.js +1 -1
  124. package/dist/components/zonos-select-dialog-header2.js +2 -2
  125. package/dist/components/zonos-shipping-rich-radio2.js +11 -1
  126. package/dist/components/zonos-shipping2.js +44 -25
  127. package/dist/components/zonos-text2.js +5 -1
  128. package/dist/components/zonos-tooltip2.js +2 -2
  129. package/dist/components/zonos-v-stack2.js +2 -2
  130. package/dist/components/zonosStore.js +1 -1
  131. package/dist/esm/{cart-8526eb36.js → cart-6cfd7560.js} +210 -25
  132. package/dist/esm/{getBorderRadius-5d750ab8.js → getBorderRadius-c5fb7746.js} +1 -1
  133. package/dist/esm/getContrastColor-a1a6f6aa.js +18 -0
  134. package/dist/esm/{isColorVariable-91c33804.js → isColorVariable-fbf2d80d.js} +1 -1
  135. package/dist/esm/{isDarkColor-c34dfed9.js → isDarkColor-810fcaa5.js} +2 -2
  136. package/dist/esm/loader.js +1 -1
  137. package/dist/esm/{submitGtag-b1e6731d.js → submitGtag-acca574d.js} +2 -2
  138. package/dist/esm/zonos-address_4.entry.js +11 -11
  139. package/dist/esm/zonos-badge_2.entry.js +6 -6
  140. package/dist/esm/zonos-banner.entry.js +1 -1
  141. package/dist/esm/{zonos-button_3.entry.js → zonos-button_2.entry.js} +35 -36
  142. package/dist/esm/zonos-card_2.entry.js +8 -8
  143. package/dist/esm/{zonos-cart-items_9.entry.js → zonos-cart-items_10.entry.js} +161 -49
  144. package/dist/esm/zonos-checkout.entry.js +20 -22
  145. package/dist/esm/zonos-component.entry.js +1 -1
  146. package/dist/esm/zonos-controller.entry.js +5 -5
  147. package/dist/esm/zonos-country-flag.entry.js +4 -4
  148. package/dist/esm/zonos-country-select_3.entry.js +9 -9
  149. package/dist/esm/zonos-elements.js +1 -1
  150. package/dist/esm/zonos-hello-dialog.entry.js +5 -5
  151. package/dist/esm/zonos-hello.entry.js +4 -4
  152. package/dist/esm/zonos-icon.entry.js +35 -0
  153. package/dist/esm/zonos-link.entry.js +1 -1
  154. package/dist/esm/zonos-logo.entry.js +3 -3
  155. package/dist/esm/zonos-notification.entry.js +1 -1
  156. package/dist/esm/zonos-payment.entry.js +5 -5
  157. package/dist/esm/zonos-select-dialog-header_2.entry.js +5 -5
  158. package/dist/esm/zonos-shipping-rich-radio.entry.js +13 -4
  159. package/dist/esm/zonos-text.entry.js +6 -2
  160. package/dist/esm/{zonosStore-aac7c6ac.js → zonosStore-e5f3d4da.js} +1 -1
  161. package/dist/esm-es5/cart-6cfd7560.js +1 -0
  162. package/dist/esm-es5/{getBorderRadius-5d750ab8.js → getBorderRadius-c5fb7746.js} +1 -1
  163. package/dist/esm-es5/getContrastColor-a1a6f6aa.js +1 -0
  164. package/dist/esm-es5/isColorVariable-fbf2d80d.js +1 -0
  165. package/dist/esm-es5/{isDarkColor-c34dfed9.js → isDarkColor-810fcaa5.js} +1 -1
  166. package/dist/esm-es5/loader.js +1 -1
  167. package/dist/esm-es5/{submitGtag-b1e6731d.js → submitGtag-acca574d.js} +1 -1
  168. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  169. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  170. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  171. package/dist/esm-es5/zonos-button_2.entry.js +1 -0
  172. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  173. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -0
  174. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  175. package/dist/esm-es5/zonos-component.entry.js +1 -1
  176. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  177. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  178. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  179. package/dist/esm-es5/zonos-elements.js +1 -1
  180. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  181. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  182. package/dist/esm-es5/zonos-icon.entry.js +1 -0
  183. package/dist/esm-es5/zonos-link.entry.js +1 -1
  184. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  185. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  186. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  187. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  188. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  189. package/dist/esm-es5/zonos-text.entry.js +1 -1
  190. package/dist/esm-es5/{zonosStore-aac7c6ac.js → zonosStore-e5f3d4da.js} +1 -1
  191. package/dist/scripts/loadZonos.js +1 -1
  192. package/dist/scripts/zonos.js +1 -1
  193. package/dist/scripts/zonosBase.js +1 -1
  194. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.d.ts +14 -2
  195. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +0 -1
  196. package/dist/types/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.d.ts +7 -0
  197. package/dist/types/components/common/zonos-button/zonos-button.d.ts +1 -0
  198. package/dist/types/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.d.ts +29 -0
  199. package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +0 -5
  200. package/dist/types/components/common/zonos-icon/zonos-icon.d.ts +3 -1
  201. package/dist/types/components/common/zonos-logo/zonos-logo.d.ts +1 -1
  202. package/dist/types/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.d.ts +5 -0
  203. package/dist/types/components/common/zonos-text/zonos-text.d.ts +3 -1
  204. package/dist/types/components/store/checkout/cart.d.ts +10 -1
  205. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  206. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  207. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  208. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  209. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  210. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  211. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  212. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  213. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  214. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  215. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  216. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  217. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  218. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  219. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  220. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  221. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  222. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  223. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  224. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  225. package/dist/types/components/utils/getContrastColor.d.ts +4 -0
  226. package/dist/types/components/utils/isColorVariable.d.ts +1 -1
  227. package/dist/types/components/utils/styles.d.ts +7 -0
  228. package/dist/types/components.d.ts +67 -14
  229. package/dist/zonos-elements/assets/TabCheckmark.svg +3 -0
  230. package/dist/zonos-elements/p-0b51de7b.system.entry.js +1 -0
  231. package/dist/zonos-elements/{p-f8e7aea7.system.entry.js → p-0dfd549e.system.entry.js} +1 -1
  232. package/dist/zonos-elements/{p-c1e54094.system.js → p-0f414d6a.system.js} +1 -1
  233. package/dist/zonos-elements/p-0f8acb62.js +1 -0
  234. package/dist/zonos-elements/{p-27d57265.system.entry.js → p-20b080d1.system.entry.js} +1 -1
  235. package/dist/zonos-elements/{p-7e355496.system.entry.js → p-212992ec.system.entry.js} +1 -1
  236. package/dist/zonos-elements/p-22db99c9.system.entry.js +1 -0
  237. package/dist/zonos-elements/{p-473943ae.entry.js → p-26aee7a0.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-c6de2e40.system.entry.js → p-2d5a6a7f.system.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-b1a44483.system.entry.js → p-2fdec8bc.system.entry.js} +1 -1
  240. package/dist/zonos-elements/p-352ba771.system.js +1 -0
  241. package/dist/zonos-elements/p-4051a42d.js +1 -0
  242. package/dist/zonos-elements/p-5162f4cc.system.entry.js +1 -0
  243. package/dist/zonos-elements/{p-d0d12a64.entry.js → p-51c32b3d.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-f3e497d0.js → p-55b8b98b.js} +1 -1
  245. package/dist/zonos-elements/p-59595553.entry.js +1 -0
  246. package/dist/zonos-elements/p-5a40684c.entry.js +1 -0
  247. package/dist/zonos-elements/{p-8d608535.system.entry.js → p-60ac5342.system.entry.js} +1 -1
  248. package/dist/zonos-elements/p-61e08de7.system.entry.js +1 -0
  249. package/dist/zonos-elements/{p-ab7657fa.entry.js → p-65a877e2.entry.js} +1 -1
  250. package/dist/zonos-elements/p-66cc1554.system.js +1 -0
  251. package/dist/zonos-elements/p-6a80f7f5.entry.js +1 -0
  252. package/dist/zonos-elements/{p-4eb24c96.entry.js → p-6daa64bf.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-77727098.system.js → p-6db032ee.system.js} +1 -1
  254. package/dist/zonos-elements/{p-188ddbe2.entry.js → p-6dc606c6.entry.js} +1 -1
  255. package/dist/zonos-elements/p-6e81adba.system.js +1 -1
  256. package/dist/zonos-elements/{p-4ad5f307.system.entry.js → p-7e00a5dc.system.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-e12a18d3.entry.js → p-817e7f8e.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-2984aa3d.system.entry.js → p-824b8708.system.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-770384fa.system.entry.js → p-9a2c3874.system.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-edbea8df.system.js → p-9db2f9d1.system.js} +1 -1
  261. package/dist/zonos-elements/{p-77c54b83.js → p-a1a477c9.js} +1 -1
  262. package/dist/zonos-elements/{p-1fc444b0.system.entry.js → p-a398bc59.system.entry.js} +1 -1
  263. package/dist/zonos-elements/{p-6255bfe6.entry.js → p-a641dfcd.entry.js} +1 -1
  264. package/dist/zonos-elements/p-a7bfe188.entry.js +1 -0
  265. package/dist/zonos-elements/{p-9db3028d.entry.js → p-ac7155d7.entry.js} +1 -1
  266. package/dist/zonos-elements/{p-6181f2d5.entry.js → p-ad499520.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-a578facf.entry.js → p-b0e9226a.entry.js} +1 -1
  268. package/dist/zonos-elements/{p-d9c65636.system.js → p-b1ee44c6.system.js} +1 -1
  269. package/dist/zonos-elements/{p-9b95b387.system.entry.js → p-b2c48954.system.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-315c1fc2.entry.js → p-b62aee3d.entry.js} +1 -1
  271. package/dist/zonos-elements/p-b76909ab.entry.js +1 -0
  272. package/dist/zonos-elements/{p-333da541.entry.js → p-b9cde0c3.entry.js} +1 -1
  273. package/dist/zonos-elements/{p-482371fb.system.entry.js → p-c4862aab.system.entry.js} +1 -1
  274. package/dist/zonos-elements/p-c6e44a9b.entry.js +1 -0
  275. package/dist/zonos-elements/p-cde25873.js +1 -0
  276. package/dist/zonos-elements/p-d96f8d89.system.entry.js +1 -0
  277. package/dist/zonos-elements/p-e2131057.entry.js +1 -0
  278. package/dist/zonos-elements/p-e28ed57c.js +1 -0
  279. package/dist/zonos-elements/{p-49a5be72.js → p-e74f27da.js} +1 -1
  280. package/dist/zonos-elements/{p-a554d58d.system.js → p-ed4d8d71.system.js} +1 -1
  281. package/dist/zonos-elements/{p-0b4910fe.system.entry.js → p-f62b49aa.system.entry.js} +1 -1
  282. package/dist/zonos-elements/{p-a87803b7.system.entry.js → p-f8b03017.system.entry.js} +1 -1
  283. package/dist/zonos-elements/{p-22802400.system.entry.js → p-fac20c60.system.entry.js} +1 -1
  284. package/dist/zonos-elements/{p-aaf75ede.system.entry.js → p-fd8c50e8.system.entry.js} +1 -1
  285. package/dist/zonos-elements/{p-0e63111b.entry.js → p-ff17c03b.entry.js} +1 -1
  286. package/dist/zonos-elements/p-ff962844.entry.js +1 -0
  287. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  288. package/package.json +2 -2
  289. package/dist/esm-es5/cart-8526eb36.js +0 -1
  290. package/dist/esm-es5/isColorVariable-91c33804.js +0 -1
  291. package/dist/esm-es5/zonos-button_3.entry.js +0 -1
  292. package/dist/esm-es5/zonos-cart-items_9.entry.js +0 -1
  293. package/dist/zonos-elements/p-144f4d31.entry.js +0 -1
  294. package/dist/zonos-elements/p-4c414a92.js +0 -1
  295. package/dist/zonos-elements/p-5c991faa.system.entry.js +0 -1
  296. package/dist/zonos-elements/p-5d2dd287.entry.js +0 -1
  297. package/dist/zonos-elements/p-92e88f3d.system.js +0 -1
  298. package/dist/zonos-elements/p-95cc6b89.entry.js +0 -1
  299. package/dist/zonos-elements/p-ada42479.entry.js +0 -1
  300. package/dist/zonos-elements/p-adc2e8c3.system.entry.js +0 -1
  301. package/dist/zonos-elements/p-b0c84054.entry.js +0 -1
  302. package/dist/zonos-elements/p-cf03cb54.system.entry.js +0 -1
  303. package/dist/zonos-elements/p-dd153a4e.entry.js +0 -1
  304. package/dist/zonos-elements/p-e4749f19.js +0 -1
  305. package/dist/zonos-elements/p-e87e8c9c.system.entry.js +0 -1
  306. package/dist/zonos-elements/p-ed7d1948.js +0 -1
  307. package/dist/zonos-elements/p-f1170e7b.entry.js +0 -1
@@ -1,6 +1,6 @@
1
- import { c as createStore, z as zonosStore } from './zonosStore-aac7c6ac.js';
2
- import { i as isDarkColor } from './isDarkColor-c34dfed9.js';
3
- import { g as getBorderRadius } from './getBorderRadius-5d750ab8.js';
1
+ import { c as createStore, z as zonosStore } from './zonosStore-e5f3d4da.js';
2
+ import { i as isDarkColor } from './isDarkColor-810fcaa5.js';
3
+ import { g as getBorderRadius } from './getBorderRadius-c5fb7746.js';
4
4
 
5
5
  const stringsArabic = {
6
6
  'Above de minimis threshold for': {
@@ -24,9 +24,15 @@ const stringsArabic = {
24
24
  'Continue to shipping': {
25
25
  value: 'متابعة إلى الشحن',
26
26
  },
27
+ Customer: {
28
+ value: 'العميل',
29
+ },
27
30
  'Customer information': {
28
31
  value: 'معلومات العميل',
29
32
  },
33
+ Delivery: {
34
+ value: 'التوصيل',
35
+ },
30
36
  'Duties and taxes will be applied to items and shipping.': {
31
37
  value: 'سيتم تطبيق الرسوم والضرائب على العناصر والشحن.',
32
38
  },
@@ -75,6 +81,9 @@ const stringsArabic = {
75
81
  Pay: {
76
82
  value: 'دفع',
77
83
  },
84
+ Payment: {
85
+ value: 'الدفع',
86
+ },
78
87
  'Payment failed': {
79
88
  value: 'فشل الدفع',
80
89
  },
@@ -195,9 +204,15 @@ const stringsBase = {
195
204
  'Continue to shipping': {
196
205
  value: 'Continue to shipping',
197
206
  },
207
+ Customer: {
208
+ value: 'Customer',
209
+ },
198
210
  'Customer information': {
199
211
  value: 'Customer information',
200
212
  },
213
+ Delivery: {
214
+ value: 'Delivery',
215
+ },
201
216
  'Duties and taxes will be applied to items and shipping.': {
202
217
  value: 'Duties and taxes will be applied to items and shipping.',
203
218
  },
@@ -246,6 +261,9 @@ const stringsBase = {
246
261
  Pay: {
247
262
  value: 'Pay',
248
263
  },
264
+ Payment: {
265
+ value: 'Payment',
266
+ },
249
267
  'Payment failed': {
250
268
  value: 'Payment failed',
251
269
  },
@@ -366,9 +384,15 @@ const stringsChinese = {
366
384
  'Continue to shipping': {
367
385
  value: '继续运送',
368
386
  },
387
+ Customer: {
388
+ value: '顾客',
389
+ },
369
390
  'Customer information': {
370
391
  value: '客户信息',
371
392
  },
393
+ Delivery: {
394
+ value: '送货',
395
+ },
372
396
  'Duties and taxes will be applied to items and shipping.': {
373
397
  value: '商品和运费将征收关税和税款。',
374
398
  },
@@ -417,6 +441,9 @@ const stringsChinese = {
417
441
  Pay: {
418
442
  value: '支付',
419
443
  },
444
+ Payment: {
445
+ value: '支付',
446
+ },
420
447
  'Payment failed': {
421
448
  value: '付款失败',
422
449
  },
@@ -537,9 +564,15 @@ const stringsDanish = {
537
564
  'Continue to shipping': {
538
565
  value: 'Fortsæt til levering',
539
566
  },
567
+ Customer: {
568
+ value: 'Kunde',
569
+ },
540
570
  'Customer information': {
541
571
  value: 'Kundeinformation',
542
572
  },
573
+ Delivery: {
574
+ value: 'Levering',
575
+ },
543
576
  'Duties and taxes will be applied to items and shipping.': {
544
577
  value: 'Told og skatter vil blive pålagt varer og fragt.',
545
578
  },
@@ -588,6 +621,9 @@ const stringsDanish = {
588
621
  Pay: {
589
622
  value: 'Betal',
590
623
  },
624
+ Payment: {
625
+ value: 'Betaling',
626
+ },
591
627
  'Payment failed': {
592
628
  value: 'Betaling mislykkedes',
593
629
  },
@@ -708,9 +744,15 @@ const stringsDutch = {
708
744
  'Continue to shipping': {
709
745
  value: 'Ga verder naar verzending',
710
746
  },
747
+ Customer: {
748
+ value: 'Klant',
749
+ },
711
750
  'Customer information': {
712
751
  value: 'Klantinformatie',
713
752
  },
753
+ Delivery: {
754
+ value: 'Levering',
755
+ },
714
756
  'Duties and taxes will be applied to items and shipping.': {
715
757
  value: 'Belastingen en heffingen worden toegepast op artikelen en verzending.',
716
758
  },
@@ -759,6 +801,9 @@ const stringsDutch = {
759
801
  Pay: {
760
802
  value: 'Betalen',
761
803
  },
804
+ Payment: {
805
+ value: 'Betaling',
806
+ },
762
807
  'Payment failed': {
763
808
  value: 'Betaling mislukt',
764
809
  },
@@ -879,9 +924,15 @@ const stringsFrench = {
879
924
  'Continue to shipping': {
880
925
  value: 'Continuer vers la livraison',
881
926
  },
927
+ Customer: {
928
+ value: 'Client',
929
+ },
882
930
  'Customer information': {
883
931
  value: 'Informations client',
884
932
  },
933
+ Delivery: {
934
+ value: 'Livraison',
935
+ },
885
936
  'Duties and taxes will be applied to items and shipping.': {
886
937
  value: 'Des droits et taxes seront appliqués aux articles et à la livraison.',
887
938
  },
@@ -930,6 +981,9 @@ const stringsFrench = {
930
981
  Pay: {
931
982
  value: 'Payer',
932
983
  },
984
+ Payment: {
985
+ value: 'Paiement',
986
+ },
933
987
  'Payment failed': {
934
988
  value: 'Échec du paiement',
935
989
  },
@@ -1050,9 +1104,15 @@ const stringsGerman = {
1050
1104
  'Continue to shipping': {
1051
1105
  value: 'Weiter zur Lieferung',
1052
1106
  },
1107
+ Customer: {
1108
+ value: 'Kunde',
1109
+ },
1053
1110
  'Customer information': {
1054
1111
  value: 'Kundeninformationen',
1055
1112
  },
1113
+ Delivery: {
1114
+ value: 'Lieferung',
1115
+ },
1056
1116
  'Duties and taxes will be applied to items and shipping.': {
1057
1117
  value: 'Zölle und Steuern werden auf Artikel und Versand erhoben.',
1058
1118
  },
@@ -1101,6 +1161,9 @@ const stringsGerman = {
1101
1161
  Pay: {
1102
1162
  value: 'Bezahlen',
1103
1163
  },
1164
+ Payment: {
1165
+ value: 'Zahlung',
1166
+ },
1104
1167
  'Payment failed': {
1105
1168
  value: 'Zahlung fehlgeschlagen',
1106
1169
  },
@@ -1221,9 +1284,15 @@ const stringsHebrew = {
1221
1284
  'Continue to shipping': {
1222
1285
  value: 'המשך למשלוח',
1223
1286
  },
1287
+ Customer: {
1288
+ value: 'לקוח',
1289
+ },
1224
1290
  'Customer information': {
1225
1291
  value: 'פרטי לקוח',
1226
1292
  },
1293
+ Delivery: {
1294
+ value: 'מְסִירָה',
1295
+ },
1227
1296
  'Duties and taxes will be applied to items and shipping.': {
1228
1297
  value: 'מכס ומס יחולו על פריטים ומשלוח.',
1229
1298
  },
@@ -1272,6 +1341,9 @@ const stringsHebrew = {
1272
1341
  Pay: {
1273
1342
  value: 'לשלם',
1274
1343
  },
1344
+ Payment: {
1345
+ value: 'תַשְׁלוּם',
1346
+ },
1275
1347
  'Payment failed': {
1276
1348
  value: 'התשלום נכשל',
1277
1349
  },
@@ -1392,9 +1464,15 @@ const stringsIndonesian = {
1392
1464
  'Continue to shipping': {
1393
1465
  value: 'Lanjutkan ke pengiriman',
1394
1466
  },
1467
+ Customer: {
1468
+ value: 'Pelanggan',
1469
+ },
1395
1470
  'Customer information': {
1396
1471
  value: 'Informasi pelanggan',
1397
1472
  },
1473
+ Delivery: {
1474
+ value: 'Pengiriman',
1475
+ },
1398
1476
  'Duties and taxes will be applied to items and shipping.': {
1399
1477
  value: 'Bea masuk dan pajak akan dikenakan pada barang dan pengiriman.',
1400
1478
  },
@@ -1443,6 +1521,9 @@ const stringsIndonesian = {
1443
1521
  Pay: {
1444
1522
  value: 'Bayar',
1445
1523
  },
1524
+ Payment: {
1525
+ value: 'Pembayaran',
1526
+ },
1446
1527
  'Payment failed': {
1447
1528
  value: 'Pembayaran gagal',
1448
1529
  },
@@ -1563,9 +1644,15 @@ const stringsItalian = {
1563
1644
  'Continue to shipping': {
1564
1645
  value: 'Continua con la spedizione',
1565
1646
  },
1647
+ Customer: {
1648
+ value: 'Cliente',
1649
+ },
1566
1650
  'Customer information': {
1567
1651
  value: 'Informazioni cliente',
1568
1652
  },
1653
+ Delivery: {
1654
+ value: 'Consegna',
1655
+ },
1569
1656
  'Duties and taxes will be applied to items and shipping.': {
1570
1657
  value: 'Dazi e tasse saranno applicati agli articoli e alla spedizione.',
1571
1658
  },
@@ -1614,6 +1701,9 @@ const stringsItalian = {
1614
1701
  Pay: {
1615
1702
  value: 'Paga',
1616
1703
  },
1704
+ Payment: {
1705
+ value: 'Pagamento',
1706
+ },
1617
1707
  'Payment failed': {
1618
1708
  value: 'Pagamento non riuscito',
1619
1709
  },
@@ -1734,9 +1824,15 @@ const stringsJapanese = {
1734
1824
  'Continue to shipping': {
1735
1825
  value: '配送オプションに進む',
1736
1826
  },
1827
+ Customer: {
1828
+ value: '顧客',
1829
+ },
1737
1830
  'Customer information': {
1738
1831
  value: '顧客情報',
1739
1832
  },
1833
+ Delivery: {
1834
+ value: '配送',
1835
+ },
1740
1836
  'Duties and taxes will be applied to items and shipping.': {
1741
1837
  value: '関税と税金が商品と配送に適用されます。',
1742
1838
  },
@@ -1785,6 +1881,9 @@ const stringsJapanese = {
1785
1881
  Pay: {
1786
1882
  value: '支払う',
1787
1883
  },
1884
+ Payment: {
1885
+ value: '支払い',
1886
+ },
1788
1887
  'Payment failed': {
1789
1888
  value: '支払いに失敗しました',
1790
1889
  },
@@ -1905,9 +2004,15 @@ const stringsKorean = {
1905
2004
  'Continue to shipping': {
1906
2005
  value: '배송 계속',
1907
2006
  },
2007
+ Customer: {
2008
+ value: '고객',
2009
+ },
1908
2010
  'Customer information': {
1909
2011
  value: '고객 정보',
1910
2012
  },
2013
+ Delivery: {
2014
+ value: '배달',
2015
+ },
1911
2016
  'Duties and taxes will be applied to items and shipping.': {
1912
2017
  value: '물품과 배송에 관세와 세금이 부과됩니다.',
1913
2018
  },
@@ -1956,6 +2061,9 @@ const stringsKorean = {
1956
2061
  Pay: {
1957
2062
  value: '지불',
1958
2063
  },
2064
+ Payment: {
2065
+ value: '지불',
2066
+ },
1959
2067
  'Payment failed': {
1960
2068
  value: '결제 실패',
1961
2069
  },
@@ -2076,9 +2184,15 @@ const stringsNorwegian = {
2076
2184
  'Continue to shipping': {
2077
2185
  value: 'Fortsett til frakt',
2078
2186
  },
2187
+ Customer: {
2188
+ value: 'Kunde',
2189
+ },
2079
2190
  'Customer information': {
2080
2191
  value: 'Kundeinformasjon',
2081
2192
  },
2193
+ Delivery: {
2194
+ value: 'Levering',
2195
+ },
2082
2196
  'Duties and taxes will be applied to items and shipping.': {
2083
2197
  value: 'Avgift og skatt vil legges til på varer og frakt.',
2084
2198
  },
@@ -2127,6 +2241,9 @@ const stringsNorwegian = {
2127
2241
  Pay: {
2128
2242
  value: 'Betal',
2129
2243
  },
2244
+ Payment: {
2245
+ value: 'Betaling',
2246
+ },
2130
2247
  'Payment failed': {
2131
2248
  value: 'Betaling mislyktes',
2132
2249
  },
@@ -2247,9 +2364,15 @@ const stringsPolish = {
2247
2364
  'Continue to shipping': {
2248
2365
  value: 'Przejdź dalej do wysyłki',
2249
2366
  },
2367
+ Customer: {
2368
+ value: 'Klient',
2369
+ },
2250
2370
  'Customer information': {
2251
2371
  value: 'Informacje o kliencie',
2252
2372
  },
2373
+ Delivery: {
2374
+ value: 'Dostawa',
2375
+ },
2253
2376
  'Duties and taxes will be applied to items and shipping.': {
2254
2377
  value: 'Cła i podatki zostaną naliczone do towarów i wysyłki.',
2255
2378
  },
@@ -2298,6 +2421,9 @@ const stringsPolish = {
2298
2421
  Pay: {
2299
2422
  value: 'Zapłać',
2300
2423
  },
2424
+ Payment: {
2425
+ value: 'Płatność',
2426
+ },
2301
2427
  'Payment failed': {
2302
2428
  value: 'Płatność nieudana',
2303
2429
  },
@@ -2418,9 +2544,15 @@ const stringsPortuguese = {
2418
2544
  'Continue to shipping': {
2419
2545
  value: 'Continuar para o envio',
2420
2546
  },
2547
+ Customer: {
2548
+ value: 'Cliente',
2549
+ },
2421
2550
  'Customer information': {
2422
2551
  value: 'Informações do cliente',
2423
2552
  },
2553
+ Delivery: {
2554
+ value: 'Entrega',
2555
+ },
2424
2556
  'Duties and taxes will be applied to items and shipping.': {
2425
2557
  value: 'Impostos e taxas serão aplicados aos itens e ao frete.',
2426
2558
  },
@@ -2469,6 +2601,9 @@ const stringsPortuguese = {
2469
2601
  Pay: {
2470
2602
  value: 'Pagar',
2471
2603
  },
2604
+ Payment: {
2605
+ value: 'Pagamento',
2606
+ },
2472
2607
  'Payment failed': {
2473
2608
  value: 'Falha no pagamento',
2474
2609
  },
@@ -2589,9 +2724,15 @@ const stringsRussian = {
2589
2724
  'Continue to shipping': {
2590
2725
  value: 'Продолжить к доставке',
2591
2726
  },
2727
+ Customer: {
2728
+ value: 'Клиент',
2729
+ },
2592
2730
  'Customer information': {
2593
2731
  value: 'Информация о клиенте',
2594
2732
  },
2733
+ Delivery: {
2734
+ value: 'Доставка',
2735
+ },
2595
2736
  'Duties and taxes will be applied to items and shipping.': {
2596
2737
  value: 'Пошлины и налоги будут применены к товарам и доставке.',
2597
2738
  },
@@ -2640,6 +2781,9 @@ const stringsRussian = {
2640
2781
  Pay: {
2641
2782
  value: 'Оплатить',
2642
2783
  },
2784
+ Payment: {
2785
+ value: 'Оплата',
2786
+ },
2643
2787
  'Payment failed': {
2644
2788
  value: 'Ошибка оплаты',
2645
2789
  },
@@ -2760,9 +2904,15 @@ const stringsSpanish = {
2760
2904
  'Continue to shipping': {
2761
2905
  value: 'Continuar con el envío',
2762
2906
  },
2907
+ Customer: {
2908
+ value: 'Cliente',
2909
+ },
2763
2910
  'Customer information': {
2764
2911
  value: 'Información del cliente',
2765
2912
  },
2913
+ Delivery: {
2914
+ value: 'Entrega',
2915
+ },
2766
2916
  'Duties and taxes will be applied to items and shipping.': {
2767
2917
  value: 'Los impuestos y aranceles se aplicarán a los artículos y al envío.',
2768
2918
  },
@@ -2811,6 +2961,9 @@ const stringsSpanish = {
2811
2961
  Pay: {
2812
2962
  value: 'Pagar',
2813
2963
  },
2964
+ Payment: {
2965
+ value: 'Pago',
2966
+ },
2814
2967
  'Payment failed': {
2815
2968
  value: 'Pago fallido',
2816
2969
  },
@@ -2931,9 +3084,15 @@ const stringsSwedish = {
2931
3084
  'Continue to shipping': {
2932
3085
  value: 'Fortsätt till frakt',
2933
3086
  },
3087
+ Customer: {
3088
+ value: 'Kund',
3089
+ },
2934
3090
  'Customer information': {
2935
3091
  value: 'Kundinformation',
2936
3092
  },
3093
+ Delivery: {
3094
+ value: 'Leverans',
3095
+ },
2937
3096
  'Duties and taxes will be applied to items and shipping.': {
2938
3097
  value: 'Tull och skatter kommer att tillämpas på varor och frakt.',
2939
3098
  },
@@ -2982,6 +3141,9 @@ const stringsSwedish = {
2982
3141
  Pay: {
2983
3142
  value: 'Betala',
2984
3143
  },
3144
+ Payment: {
3145
+ value: 'Betalning',
3146
+ },
2985
3147
  'Payment failed': {
2986
3148
  value: 'Betalningen misslyckades',
2987
3149
  },
@@ -3102,9 +3264,15 @@ const stringsTurkish = {
3102
3264
  'Continue to shipping': {
3103
3265
  value: 'Kargoya devam et',
3104
3266
  },
3267
+ Customer: {
3268
+ value: 'Müşteri',
3269
+ },
3105
3270
  'Customer information': {
3106
3271
  value: 'Müşteri bilgileri',
3107
3272
  },
3273
+ Delivery: {
3274
+ value: 'Teslimat',
3275
+ },
3108
3276
  'Duties and taxes will be applied to items and shipping.': {
3109
3277
  value: 'Ürünlere ve kargoya vergi ve gümrük vergisi uygulanacak.',
3110
3278
  },
@@ -3153,6 +3321,9 @@ const stringsTurkish = {
3153
3321
  Pay: {
3154
3322
  value: 'Öde',
3155
3323
  },
3324
+ Payment: {
3325
+ value: 'Ödeme',
3326
+ },
3156
3327
  'Payment failed': {
3157
3328
  value: 'Ödeme başarısız',
3158
3329
  },
@@ -3273,9 +3444,15 @@ const stringsVietnamese = {
3273
3444
  'Continue to shipping': {
3274
3445
  value: 'Tiếp tục đến vận chuyển',
3275
3446
  },
3447
+ Customer: {
3448
+ value: 'Khách hàng',
3449
+ },
3276
3450
  'Customer information': {
3277
3451
  value: 'Thông tin khách hàng',
3278
3452
  },
3453
+ Delivery: {
3454
+ value: 'Giao hàng',
3455
+ },
3279
3456
  'Duties and taxes will be applied to items and shipping.': {
3280
3457
  value: 'Thuế và phí sẽ được áp dụng cho hàng hóa và vận chuyển.',
3281
3458
  },
@@ -3324,6 +3501,9 @@ const stringsVietnamese = {
3324
3501
  Pay: {
3325
3502
  value: 'Thanh toán',
3326
3503
  },
3504
+ Payment: {
3505
+ value: 'Thanh toán',
3506
+ },
3327
3507
  'Payment failed': {
3328
3508
  value: 'Thanh toán thất bại',
3329
3509
  },
@@ -4637,6 +4817,7 @@ const getDaysDifference = (targetDate) => {
4637
4817
  const { onChange, reset, state: cartStore, } = createStore(() => ({
4638
4818
  checkoutSessionId: sessionStorage.getItem('zonos--checkout-session-id') || null,
4639
4819
  currency: 'USD',
4820
+ doneSteps: [],
4640
4821
  dutiesTaxFees: 0,
4641
4822
  error: null,
4642
4823
  exchangeRate: null,
@@ -4652,6 +4833,27 @@ const { onChange, reset, state: cartStore, } = createStore(() => ({
4652
4833
  shippingData: null,
4653
4834
  step: 'customer-info',
4654
4835
  subtotal: 0,
4836
+ tabItems: {
4837
+ 'customer-info': {
4838
+ index: 1,
4839
+ isDone: false,
4840
+ label: 'Customer',
4841
+ value: 'customer-info',
4842
+ },
4843
+ shipping: {
4844
+ index: 2,
4845
+ isDone: false,
4846
+ label: 'Delivery',
4847
+ value: 'shipping',
4848
+ },
4849
+ // eslint-disable-next-line sort-keys/sort-keys-fix
4850
+ payment: {
4851
+ index: 3,
4852
+ isDone: false,
4853
+ label: 'Payment',
4854
+ value: 'payment',
4855
+ },
4856
+ },
4655
4857
  total: 0,
4656
4858
  }));
4657
4859
  /**
@@ -4801,37 +5003,20 @@ const cartStoreUpdateItems = async (items) => {
4801
5003
  });
4802
5004
  stripeStore.isFetchingSession = false;
4803
5005
  };
4804
- const cartStoreResetSelectedShippingOption = () => {
4805
- cartStore.selectedShippingOption = null;
4806
- cartStore.isSelectedShippingAboveDeminimis = false;
4807
- cartStore.isSelectedShippingGuarantee = false;
4808
- cartStore.selectedShippingOptionExpectedDate = '';
4809
- cartStore.selectedShippingOptionTransitTime = '';
4810
- cartStore.dutiesTaxFees = 0;
4811
- cartStore.shipping = 0;
4812
- // reset total to subtotal
4813
- cartStore.total = cartStore.subtotal;
4814
- };
4815
5006
  const cartStoreNextStep = () => {
4816
5007
  if (cartStore.step === 'customer-info') {
4817
5008
  cartStore.step = 'shipping';
5009
+ // set customer-info step to done
5010
+ cartStore.tabItems = Object.assign(Object.assign({}, cartStore.tabItems), { 'customer-info': Object.assign(Object.assign({}, cartStore.tabItems['customer-info']), { isDone: true }) });
4818
5011
  }
4819
5012
  else if (cartStore.step === 'shipping') {
4820
5013
  cartStore.step = 'payment';
5014
+ // set shipping step to done
5015
+ cartStore.tabItems = Object.assign(Object.assign({}, cartStore.tabItems), { shipping: Object.assign(Object.assign({}, cartStore.tabItems.shipping), { isDone: true }) });
4821
5016
  }
4822
5017
  else if (cartStore.step === 'payment') {
4823
5018
  cartStore.step = 'finish';
4824
5019
  }
4825
5020
  };
4826
- const cartStorePreviousStep = () => {
4827
- if (cartStore.step === 'payment') {
4828
- cartStore.step = 'shipping';
4829
- }
4830
- else if (cartStore.step === 'shipping') {
4831
- cartStore.step = 'customer-info';
4832
- // reset selected shipping option
4833
- cartStoreResetSelectedShippingOption();
4834
- }
4835
- };
4836
5021
 
4837
- export { currencyConvertAndFormat as A, currencyConvert as B, currencyFormat as C, stripeStoreRetrievePayment as D, cartStoreUpdateSelectedShippingOption as E, cartStoreGetShippingTransitInfo as F, localizationStoreUpdateSelectedLocale as G, log as a, localizationStoreUpdateSelectedCountryCode as b, stripeStoreCleanupDomesticShippingSession as c, logError as d, stripeStoreSaveDomesticShippingSession as e, cartStore as f, cartStoreUpdateItems as g, cartStoreReset as h, initStripeElements as i, stripeStore as j, stripeStoreInitCheckoutSession as k, localizationStore as l, cartStoreUpdateToErrorState as m, stripeStorePrefetchLandedCost as n, cartStoreNextStep as o, stripeStoreConfirmPayment as p, stripeStoreReset as q, cartStorePreviousStep as r, stripeStoreGetDomesticShippingSession as s, translate as t, handleFetch as u, isValidSelector as v, initLocalizationStore as w, getZCountryUrlParam as x, setZCountryUrlParam as y, currencyDisplay as z };
5022
+ export { currencyConvert as A, currencyFormat as B, stripeStoreRetrievePayment as C, cartStoreUpdateSelectedShippingOption as D, cartStoreGetShippingTransitInfo as E, localizationStoreUpdateSelectedLocale as F, log as a, localizationStoreUpdateSelectedCountryCode as b, stripeStoreCleanupDomesticShippingSession as c, logError as d, stripeStoreSaveDomesticShippingSession as e, cartStore as f, cartStoreUpdateItems as g, cartStoreReset as h, initStripeElements as i, stripeStore as j, stripeStoreInitCheckoutSession as k, localizationStore as l, cartStoreUpdateToErrorState as m, stripeStorePrefetchLandedCost as n, cartStoreNextStep as o, stripeStoreConfirmPayment as p, stripeStoreReset as q, handleFetch as r, stripeStoreGetDomesticShippingSession as s, translate as t, isValidSelector as u, initLocalizationStore as v, getZCountryUrlParam as w, setZCountryUrlParam as x, currencyDisplay as y, currencyConvertAndFormat as z };
@@ -1,4 +1,4 @@
1
- import { z as zonosStore } from './zonosStore-aac7c6ac.js';
1
+ import { z as zonosStore } from './zonosStore-e5f3d4da.js';
2
2
 
3
3
  /**
4
4
  * Get the border radius for the elements based on the style
@@ -0,0 +1,18 @@
1
+ import { t as tinycolor, i as isDarkColor } from './isDarkColor-810fcaa5.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
@@ -1,4 +1,4 @@
1
- import { a as commonjsGlobal } from './zonosStore-aac7c6ac.js';
1
+ import { a as commonjsGlobal } from './zonosStore-e5f3d4da.js';
2
2
 
3
3
  var tinycolor$1 = {exports: {}};
4
4
 
@@ -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 };