@zonos/elements 1.3.265 → 1.3.267

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-c325b9e4.js → cart-ed2de167.js} +1 -1
  2. package/dist/cjs/getContrastColor-ce80dbe7.js +54 -0
  3. package/dist/cjs/{hasInclusivePrice-40358cb1.js → hasInclusivePrice-bf31fbdb.js} +1 -1
  4. package/dist/cjs/index.cjs.js +7 -7
  5. package/dist/cjs/{invoice-ac9414df.js → invoice-542c23e7.js} +2 -2
  6. package/dist/cjs/{isCollectMobileTablet-92fa5e8f.js → isCollectMobileTablet-fe8149a5.js} +2 -2
  7. package/dist/cjs/{localization-06cc0379.js → localization-66d378ab.js} +52 -1
  8. package/dist/cjs/{paypal-b52e1f24.js → paypal-d8282578.js} +2 -2
  9. package/dist/cjs/{placeTestOrder-d93a6f2b.js → placeTestOrder-0a4b9dd7.js} +2 -2
  10. package/dist/cjs/{renderCheckoutCurrency-1f521ea7.js → renderCheckoutCurrency-ac9083d9.js} +2 -2
  11. package/dist/cjs/zonos-address-display_8.cjs.entry.js +19 -19
  12. package/dist/cjs/zonos-address_4.cjs.entry.js +6 -6
  13. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  15. package/dist/cjs/zonos-card_5.cjs.entry.js +7 -7
  16. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +20 -20
  17. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +3 -3
  18. package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
  19. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  20. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
  21. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +19 -19
  22. package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
  23. package/dist/cjs/zonos-controller.cjs.entry.js +122 -3
  24. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  25. package/dist/cjs/zonos-country-select_4.cjs.entry.js +6 -6
  26. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +2 -2
  27. package/dist/cjs/zonos-hello.cjs.entry.js +2 -2
  28. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  29. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
  30. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -14
  31. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  32. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  33. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  34. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  35. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +1 -1
  36. package/dist/cjs/zonos-store-credit.cjs.entry.js +3 -3
  37. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  38. package/dist/collection/collection-manifest.json +1 -1
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  43. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
  44. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
  45. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
  46. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  47. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
  48. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
  49. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
  50. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
  51. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  52. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
  53. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  54. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  55. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  56. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  57. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  58. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  59. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  60. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  61. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  62. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  63. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  64. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  65. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  66. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  67. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  68. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  69. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  70. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  71. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  72. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  73. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +6 -6
  74. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +8 -7
  75. package/dist/collection/components/hello/zonos-hello/zonos-hello.css +2 -0
  76. package/dist/collection/components/main/zonos-controller.js +6 -2
  77. package/dist/collection/components/store/hello/localization.js +6 -0
  78. package/dist/collection/components/utils/checkout/injectDomesticElementHideStyle.js +116 -0
  79. package/dist/collection/components/utils/getContrastColor.js +27 -10
  80. package/dist/collection/components/utils/hello/currencyConversion/defaultCurrencyConverter.js +1 -1
  81. package/dist/collection/types/generated/graphql.internal.types.js +287 -73
  82. package/dist/collection/utils/toggleBigcommerceNativeCurrencySelector.js +48 -0
  83. package/dist/esm/{cart-0625a766.js → cart-49082718.js} +1 -1
  84. package/dist/esm/getContrastColor-0aa643c1.js +52 -0
  85. package/dist/esm/{hasInclusivePrice-afc0dd6e.js → hasInclusivePrice-2323d514.js} +1 -1
  86. package/dist/esm/index.js +7 -7
  87. package/dist/esm/{invoice-0daa7f74.js → invoice-16c688e7.js} +2 -2
  88. package/dist/esm/{isCollectMobileTablet-8d3fb5f4.js → isCollectMobileTablet-910aea2e.js} +2 -2
  89. package/dist/esm/{localization-ee06df70.js → localization-33a9f7ff.js} +52 -1
  90. package/dist/esm/{paypal-78c3572c.js → paypal-2e9aa4ba.js} +2 -2
  91. package/dist/esm/{placeTestOrder-18de7b6f.js → placeTestOrder-35c9b460.js} +2 -2
  92. package/dist/esm/{renderCheckoutCurrency-ba1702db.js → renderCheckoutCurrency-b84a6da7.js} +2 -2
  93. package/dist/esm/zonos-address-display_8.entry.js +19 -19
  94. package/dist/esm/zonos-address_4.entry.js +6 -6
  95. package/dist/esm/zonos-badge.entry.js +3 -3
  96. package/dist/esm/zonos-button_3.entry.js +3 -3
  97. package/dist/esm/zonos-card_5.entry.js +7 -7
  98. package/dist/esm/zonos-cart-items_12.entry.js +20 -20
  99. package/dist/esm/zonos-checkbox_2.entry.js +3 -3
  100. package/dist/esm/zonos-checkout.entry.js +3 -3
  101. package/dist/esm/zonos-collapse.entry.js +2 -2
  102. package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
  103. package/dist/esm/zonos-collect-finish_6.entry.js +19 -19
  104. package/dist/esm/zonos-collect.entry.js +4 -4
  105. package/dist/esm/zonos-controller.entry.js +122 -3
  106. package/dist/esm/zonos-country-flag.entry.js +1 -1
  107. package/dist/esm/zonos-country-select_4.entry.js +6 -6
  108. package/dist/esm/zonos-hello-dialog.entry.js +2 -2
  109. package/dist/esm/zonos-hello.entry.js +2 -2
  110. package/dist/esm/zonos-input.entry.js +4 -4
  111. package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
  112. package/dist/esm/zonos-invoice-finish_5.entry.js +14 -14
  113. package/dist/esm/zonos-invoice.entry.js +4 -4
  114. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  115. package/dist/esm/zonos-link.entry.js +1 -1
  116. package/dist/esm/zonos-logo.entry.js +2 -2
  117. package/dist/esm/zonos-shipping-rich-radio.entry.js +1 -1
  118. package/dist/esm/zonos-store-credit.entry.js +3 -3
  119. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  120. package/dist/esm-es5/{cart-0625a766.js → cart-49082718.js} +1 -1
  121. package/dist/esm-es5/getContrastColor-0aa643c1.js +1 -0
  122. package/dist/esm-es5/{hasInclusivePrice-afc0dd6e.js → hasInclusivePrice-2323d514.js} +1 -1
  123. package/dist/esm-es5/index.js +1 -1
  124. package/dist/esm-es5/{invoice-0daa7f74.js → invoice-16c688e7.js} +1 -1
  125. package/dist/esm-es5/{isCollectMobileTablet-8d3fb5f4.js → isCollectMobileTablet-910aea2e.js} +1 -1
  126. package/dist/esm-es5/{localization-ee06df70.js → localization-33a9f7ff.js} +1 -1
  127. package/dist/esm-es5/{paypal-78c3572c.js → paypal-2e9aa4ba.js} +1 -1
  128. package/dist/esm-es5/{placeTestOrder-18de7b6f.js → placeTestOrder-35c9b460.js} +1 -1
  129. package/dist/esm-es5/{renderCheckoutCurrency-ba1702db.js → renderCheckoutCurrency-b84a6da7.js} +1 -1
  130. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  131. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  132. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  133. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  134. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  135. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  136. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  137. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  138. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  139. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  140. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  141. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  142. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  143. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  144. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  145. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  146. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  147. package/dist/esm-es5/zonos-input.entry.js +1 -1
  148. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  149. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  150. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  151. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  152. package/dist/esm-es5/zonos-link.entry.js +1 -1
  153. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  154. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  155. package/dist/esm-es5/zonos-store-credit.entry.js +1 -1
  156. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  157. package/dist/scripts/index.d.ts +38 -13
  158. package/dist/scripts/index.js +1 -1
  159. package/dist/scripts/loadZonos.js +1 -1
  160. package/dist/scripts/zonos.js +1 -1
  161. package/dist/types/components/common/zonos-stripe-select/zonos-stripe-select.d.ts +1 -2
  162. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  163. package/dist/types/components/utils/checkout/injectDomesticElementHideStyle.d.ts +18 -0
  164. package/dist/types/components.d.ts +2 -0
  165. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +14 -13
  166. package/dist/types/types/checkout/CheckoutConfig.d.ts +9 -0
  167. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  168. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  169. package/dist/types/types/generated/graphql.internal.types.d.ts +341 -106
  170. package/dist/types/types/generated/graphql.internal.types.ts +419 -141
  171. package/dist/types/types/utils/ZonosSettings.d.ts +9 -0
  172. package/dist/types/utils/toggleBigcommerceNativeCurrencySelector.d.ts +17 -0
  173. package/dist/zonos-elements/index.esm.js +1 -1
  174. package/dist/zonos-elements/{p-41f2e301.entry.js → p-01497a20.entry.js} +1 -1
  175. package/dist/zonos-elements/p-029be4a8.entry.js +1 -0
  176. package/dist/zonos-elements/{p-72058aac.system.entry.js → p-034ab928.system.entry.js} +1 -1
  177. package/dist/zonos-elements/{p-b32cd0c5.system.js → p-07a76716.system.js} +1 -1
  178. package/dist/zonos-elements/{p-e89a411c.system.entry.js → p-087520f2.system.entry.js} +1 -1
  179. package/dist/zonos-elements/{p-e6cc5a25.system.entry.js → p-0b46f3bd.system.entry.js} +1 -1
  180. package/dist/zonos-elements/{p-d1ff24f5.entry.js → p-0e8c4a29.entry.js} +1 -1
  181. package/dist/zonos-elements/{p-eaa79ed8.entry.js → p-0ed70279.entry.js} +1 -1
  182. package/dist/zonos-elements/{p-407b49f1.system.entry.js → p-1325bbd6.system.entry.js} +1 -1
  183. package/dist/zonos-elements/{p-f4f71ae4.system.js → p-175c04a4.system.js} +1 -1
  184. package/dist/zonos-elements/{p-34dc7755.entry.js → p-180d3e3d.entry.js} +1 -1
  185. package/dist/zonos-elements/{p-0529a06b.system.entry.js → p-1957af5a.system.entry.js} +1 -1
  186. package/dist/zonos-elements/{p-ac54de99.entry.js → p-1ec9b3b0.entry.js} +1 -1
  187. package/dist/zonos-elements/{p-d2b91bb9.entry.js → p-1f256673.entry.js} +1 -1
  188. package/dist/zonos-elements/{p-4477556a.system.entry.js → p-22ba60f6.system.entry.js} +1 -1
  189. package/dist/zonos-elements/{p-32ecece3.entry.js → p-26c85188.entry.js} +1 -1
  190. package/dist/zonos-elements/{p-cc481c69.entry.js → p-27061873.entry.js} +1 -1
  191. package/dist/zonos-elements/{p-59aa5785.entry.js → p-28e2ac3b.entry.js} +1 -1
  192. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  193. package/dist/zonos-elements/{p-8a21ed2d.entry.js → p-2a6be4a5.entry.js} +1 -1
  194. package/dist/zonos-elements/{p-26374593.system.entry.js → p-2a8fcb71.system.entry.js} +1 -1
  195. package/dist/zonos-elements/p-2c854197.system.entry.js +1 -0
  196. package/dist/zonos-elements/{p-a054c5eb.system.js → p-311ba000.system.js} +1 -1
  197. package/dist/zonos-elements/{p-aaf9d8a4.system.entry.js → p-3516340a.system.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-8753cb36.system.js → p-3b1b3598.system.js} +1 -1
  199. package/dist/zonos-elements/p-40284821.system.js +1 -0
  200. package/dist/zonos-elements/p-458df669.js +1 -0
  201. package/dist/zonos-elements/{p-66edcaa4.entry.js → p-46071125.entry.js} +1 -1
  202. package/dist/zonos-elements/{p-59e16c6f.system.js → p-4f718ef9.system.js} +1 -1
  203. package/dist/zonos-elements/{p-3a23ec5f.system.entry.js → p-55fb4ea3.system.entry.js} +1 -1
  204. package/dist/zonos-elements/p-5d823ea7.system.js +1 -0
  205. package/dist/zonos-elements/{p-4baa51ef.entry.js → p-5e1799bc.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-86ed51fd.entry.js → p-601bb27e.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-f9c715ad.entry.js → p-648f3ada.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-dfe45cfd.js → p-6987f9c9.js} +1 -1
  209. package/dist/zonos-elements/{p-5678c044.system.entry.js → p-6b6cfc59.system.entry.js} +1 -1
  210. package/dist/zonos-elements/{p-6b9ad020.entry.js → p-703fc360.entry.js} +1 -1
  211. package/dist/zonos-elements/p-71c7a1ff.entry.js +1 -0
  212. package/dist/zonos-elements/{p-e5582c35.entry.js → p-71fb6126.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-24aae506.system.js → p-77c2e465.system.js} +1 -1
  214. package/dist/zonos-elements/{p-0f9a04fe.system.entry.js → p-79e5a629.system.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-3686190f.js → p-843ced6c.js} +1 -1
  216. package/dist/zonos-elements/{p-3d6ce58a.js → p-84dbf474.js} +1 -1
  217. package/dist/zonos-elements/{p-9bd63d7a.system.js → p-8570e88a.system.js} +1 -1
  218. package/dist/zonos-elements/{p-4a4c3af1.system.entry.js → p-8d5f413c.system.entry.js} +1 -1
  219. package/dist/zonos-elements/p-8f9e95c2.entry.js +1 -0
  220. package/dist/zonos-elements/{p-c3ee352b.entry.js → p-90c932fd.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-1cc651e8.entry.js → p-928291e5.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-a52ddeb5.js → p-9a5a2043.js} +1 -1
  223. package/dist/zonos-elements/{p-85cc83e5.system.entry.js → p-9b0a6fe5.system.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-19a1cc70.system.entry.js → p-9e0cb5b3.system.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-8a01157e.system.entry.js → p-a1bad0c3.system.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-72833da8.system.entry.js → p-a49ba3ae.system.entry.js} +1 -1
  227. package/dist/zonos-elements/{p-3fbdb83f.entry.js → p-a6db8883.entry.js} +1 -1
  228. package/dist/zonos-elements/{p-30a0aed1.entry.js → p-a78bc004.entry.js} +1 -1
  229. package/dist/zonos-elements/{p-37f47658.js → p-adb9827c.js} +1 -1
  230. package/dist/zonos-elements/p-b2d276e1.js +1 -0
  231. package/dist/zonos-elements/p-b5a26334.system.entry.js +1 -0
  232. package/dist/zonos-elements/{p-62db5d7c.system.js → p-b6a36c25.system.js} +1 -1
  233. package/dist/zonos-elements/{p-274a7c0e.system.entry.js → p-b6df4cc2.system.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-90a19f4c.system.entry.js → p-b7e4a020.system.entry.js} +1 -1
  235. package/dist/zonos-elements/{p-ec6472c9.system.entry.js → p-baf0b24c.system.entry.js} +1 -1
  236. package/dist/zonos-elements/p-becac995.js +1 -0
  237. package/dist/zonos-elements/{p-e98e4c0b.system.entry.js → p-bf5c3dd7.system.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-6ef88d96.system.entry.js → p-c9c17d08.system.entry.js} +1 -1
  239. package/dist/zonos-elements/{p-42518502.system.entry.js → p-cb966d16.system.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-a5f5993f.system.entry.js → p-ce103c66.system.entry.js} +1 -1
  241. package/dist/zonos-elements/p-cfb0059f.js +1 -0
  242. package/dist/zonos-elements/{p-7c312bc2.entry.js → p-d950b0b4.entry.js} +1 -1
  243. package/dist/zonos-elements/{p-1ed2827f.entry.js → p-db5f6b8c.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-2555ba6b.system.entry.js → p-deaf0e38.system.entry.js} +1 -1
  245. package/dist/zonos-elements/{p-bb0ce525.entry.js → p-e056ae6b.entry.js} +1 -1
  246. package/dist/zonos-elements/{p-281063f4.system.entry.js → p-e850e6e7.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-105b7ebe.entry.js → p-fb712719.entry.js} +1 -1
  248. package/dist/zonos-elements/zonos-elements.css +1 -1
  249. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  250. package/package.json +1 -1
  251. package/dist/cjs/getContrastColor-68058615.js +0 -37
  252. package/dist/esm/getContrastColor-2340485f.js +0 -35
  253. package/dist/esm-es5/getContrastColor-2340485f.js +0 -1
  254. package/dist/zonos-elements/p-1ce71a7d.entry.js +0 -1
  255. package/dist/zonos-elements/p-349bdc03.system.entry.js +0 -1
  256. package/dist/zonos-elements/p-5353cfa4.entry.js +0 -1
  257. package/dist/zonos-elements/p-595e2a7d.system.entry.js +0 -1
  258. package/dist/zonos-elements/p-69e2a7dd.js +0 -1
  259. package/dist/zonos-elements/p-6f8abf4f.js +0 -1
  260. package/dist/zonos-elements/p-9b2d6f06.entry.js +0 -1
  261. package/dist/zonos-elements/p-9f7e7148.system.js +0 -1
  262. package/dist/zonos-elements/p-a901d002.js +0 -1
  263. package/dist/zonos-elements/p-c9a1f774.js +0 -1
  264. package/dist/zonos-elements/p-e755ab57.system.js +0 -1
@@ -0,0 +1,48 @@
1
+ import { localizationStore } from "../components/store/hello/localization";
2
+ import { zonosStore } from "../components/store/zonosStore";
3
+ import { logError } from "../components/utils/logging/logError";
4
+ const HIDE_CLASSNAME = 'z--bc-currency-hide';
5
+ /**
6
+ * Hides BigCommerce's native currency selector while Hello is actively
7
+ * converting prices, and restores it otherwise. The selector is hidden
8
+ * only when all of the following hold:
9
+ *
10
+ * - the host storefront is BigCommerce (`window.Zonos.isBigCommerce`),
11
+ * - the shopper is in a Zonos shipping zone
12
+ * (`localizationStore.isShippableCountry`), and
13
+ * - BC's currently selected native currency
14
+ * (`document.body.dataset.currencyCode`) equals `zonosStore.sourceCurrency`
15
+ * — i.e. BC has not pre-converted the prices Hello reads from the DOM.
16
+ *
17
+ * If those conditions don't hold (non-BC platform, non-shippable country,
18
+ * BC currency differs from source, or the selector is not configured), the
19
+ * function removes the class so any previously hidden element re-appears.
20
+ */
21
+ export const toggleBigcommerceNativeCurrencySelector = () => {
22
+ var _a, _b;
23
+ if (typeof window === 'undefined' || !((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.isBigCommerce)) {
24
+ return;
25
+ }
26
+ const selector = (_b = zonosStore.genericSettings) === null || _b === void 0 ? void 0 : _b.bigcommerceNativeCurrencySelector;
27
+ if (!selector) {
28
+ return;
29
+ }
30
+ const bigcommerceCurrencyCode = document.body.dataset.currencyCode;
31
+ const shouldHide = localizationStore.isShippableCountry &&
32
+ !!bigcommerceCurrencyCode &&
33
+ bigcommerceCurrencyCode === zonosStore.sourceCurrency;
34
+ try {
35
+ const elements = document.querySelectorAll(selector);
36
+ elements.forEach(element => {
37
+ if (shouldHide) {
38
+ element.classList.add(HIDE_CLASSNAME);
39
+ }
40
+ else {
41
+ element.classList.remove(HIDE_CLASSNAME);
42
+ }
43
+ });
44
+ }
45
+ catch (error) {
46
+ logError(`Error toggling BigCommerce native currency selector: ${error}`);
47
+ }
48
+ };
@@ -1,5 +1,5 @@
1
1
  import { c as createStore, z as zonosStore } from './zonosStore-9662b071.js';
2
- import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-ee06df70.js';
2
+ import { s as storageStore, l as localizationStore, e as getOverridenZCountry, t as translate, f as filterValidTests, b as storageStoreSetEnabledVariantTestKeys } from './localization-33a9f7ff.js';
3
3
  import { l as log, b as allLogs } from './VarianceTest-572cecf5.js';
4
4
  import { h as handleFetch, l as logError, f as fallbackApiList, g as getIsTestMode, a as getIsStagingMode, s as sendErrorLog, j as jsonParse } from './handleFetch-a844cac1.js';
5
5
  import { i as isDarkColor } from './isDarkColor-0a8453e7.js';
@@ -0,0 +1,52 @@
1
+ import { i as isDarkColor, t as tinycolor } from './isDarkColor-0a8453e7.js';
2
+ import { i as isContrastColor } from './isContrastColor-6bad285e.js';
3
+
4
+ const getContrastColor = ({ backgroundColor, color, }) => {
5
+ if (backgroundColor === color) {
6
+ if (isDarkColor(color)) {
7
+ const ligherColor = tinycolor(color).lighten(40).toHexString();
8
+ return ligherColor;
9
+ }
10
+ const darkerColor = tinycolor(color).darken(40).toHexString();
11
+ return darkerColor;
12
+ }
13
+ // get readibility of the color
14
+ const isContrastEnough = isContrastColor({
15
+ backgroundColor1: backgroundColor,
16
+ backgroundColor2: color,
17
+ });
18
+ if (isContrastEnough) {
19
+ // no need to change the color if it's already contrast enough
20
+ return color;
21
+ }
22
+ // Try both darker and lighter shifts of the same hue at increasing
23
+ // amounts; at each step prefer the candidate with higher contrast against
24
+ // the background and return as soon as one meets the threshold. This keeps
25
+ // the result close to the original color whenever possible and handles
26
+ // both light-on-light and dark-on-dark pairings symmetrically.
27
+ const adjustAmounts = [25, 50, 70];
28
+ for (const amount of adjustAmounts) {
29
+ const candidates = [
30
+ tinycolor(color).darken(amount).toHexString(),
31
+ tinycolor(color).lighten(amount).toHexString(),
32
+ ];
33
+ candidates.sort((a, b) => tinycolor.readability(backgroundColor, b) -
34
+ tinycolor.readability(backgroundColor, a));
35
+ for (const candidate of candidates) {
36
+ if (isContrastColor({
37
+ backgroundColor1: backgroundColor,
38
+ backgroundColor2: candidate,
39
+ })) {
40
+ return candidate;
41
+ }
42
+ }
43
+ }
44
+ // Last resort: pick whichever absolute extreme is more readable against
45
+ // the background.
46
+ return tinycolor.readability(backgroundColor, '#000000') >=
47
+ tinycolor.readability(backgroundColor, '#ffffff')
48
+ ? '#000000'
49
+ : '#ffffff';
50
+ };
51
+
52
+ export { getContrastColor as g };
@@ -1,4 +1,4 @@
1
- import { l as localizationStore } from './localization-ee06df70.js';
1
+ import { l as localizationStore } from './localization-33a9f7ff.js';
2
2
 
3
3
  /**
4
4
  * Since the backend and the frontend are using the same keys,
package/dist/esm/index.js CHANGED
@@ -131,7 +131,7 @@ const getZonosQaUrl = () => {
131
131
  return null;
132
132
  }
133
133
  const qaUrl = extractZonosQaUrl(window.location.href);
134
- const cdnUrl = "https://v1.3.265.js.zonos.com";
134
+ const cdnUrl = "https://v1.3.267.js.zonos.com";
135
135
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
136
136
  if (!qaUrl &&
137
137
  (cdnUrl.includes('test.') ||
@@ -379,10 +379,10 @@ const zonosLoadUrl = (() => {
379
379
  return null;
380
380
  })();
381
381
  const startLoadTime = Date.now();
382
- const ZONOS_URL = "https://v1.3.265.js.zonos.com";
383
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.265";
384
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.265";
385
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.265";
382
+ const ZONOS_URL = "https://v1.3.267.js.zonos.com";
383
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.267";
384
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.267";
385
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.267";
386
386
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
387
387
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
388
388
  class Zonos {
@@ -400,7 +400,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
400
400
  ? new URLSearchParams(window.location.search).get('iframeLogType')
401
401
  : null;
402
402
  Zonos.isBigCommerce = false;
403
- Zonos.releaseDate = "1779136884210";
403
+ Zonos.releaseDate = "1779911513615";
404
404
  Zonos.isLegacyCheckout = false;
405
405
  Zonos.googleAnalyticId = null;
406
406
  Zonos.googleAnalyticReady = false;
@@ -425,7 +425,7 @@ Zonos.isNpm = true;
425
425
  Zonos.zonosQaUrl = null;
426
426
  Zonos.zonosQaUrlApi = null;
427
427
  Zonos.trackEventLogs = [];
428
- Zonos.version = `v${"1.3.265"}`;
428
+ Zonos.version = `v${"1.3.267"}`;
429
429
  Zonos.modeAlerted = false;
430
430
  Zonos.cartData = null;
431
431
  Zonos.paypal = null;
@@ -1,6 +1,6 @@
1
1
  import { c as createStore, z as zonosStore } from './zonosStore-9662b071.js';
2
- import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-0625a766.js';
3
- import { s as storageStore } from './localization-ee06df70.js';
2
+ import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-49082718.js';
3
+ import { s as storageStore } from './localization-33a9f7ff.js';
4
4
  import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
5
5
  import { b as allLogs } from './VarianceTest-572cecf5.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import { c as createStore, z as zonosStore } from './zonosStore-9662b071.js';
2
- import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-0625a766.js';
3
- import { s as storageStore } from './localization-ee06df70.js';
2
+ import { b as stripeStore, G as stripeStoreBuildAddressForPartyCreate, d as cartStore, H as cartStoreUpdateSelectedShippingOption } from './cart-49082718.js';
3
+ import { s as storageStore } from './localization-33a9f7ff.js';
4
4
  import { h as handleFetch, s as sendErrorLog, l as logError } from './handleFetch-a844cac1.js';
5
5
  import { b as allLogs } from './VarianceTest-572cecf5.js';
6
6
 
@@ -17006,7 +17006,7 @@ const performBlurCurrency = () => {
17006
17006
  const convertCurrency = (element) => {
17007
17007
  var _a;
17008
17008
  const amount = getInitialElementAmount(element);
17009
- if (!amount || isNaN(amount)) {
17009
+ if (amount === null || isNaN(amount)) {
17010
17010
  return;
17011
17011
  }
17012
17012
  const currentIntlValue = element.getAttribute('data-zintl');
@@ -17125,6 +17125,52 @@ const setZCountryUrlParam = (selectedCountryCode) => {
17125
17125
  }
17126
17126
  };
17127
17127
 
17128
+ const HIDE_CLASSNAME = 'z--bc-currency-hide';
17129
+ /**
17130
+ * Hides BigCommerce's native currency selector while Hello is actively
17131
+ * converting prices, and restores it otherwise. The selector is hidden
17132
+ * only when all of the following hold:
17133
+ *
17134
+ * - the host storefront is BigCommerce (`window.Zonos.isBigCommerce`),
17135
+ * - the shopper is in a Zonos shipping zone
17136
+ * (`localizationStore.isShippableCountry`), and
17137
+ * - BC's currently selected native currency
17138
+ * (`document.body.dataset.currencyCode`) equals `zonosStore.sourceCurrency`
17139
+ * — i.e. BC has not pre-converted the prices Hello reads from the DOM.
17140
+ *
17141
+ * If those conditions don't hold (non-BC platform, non-shippable country,
17142
+ * BC currency differs from source, or the selector is not configured), the
17143
+ * function removes the class so any previously hidden element re-appears.
17144
+ */
17145
+ const toggleBigcommerceNativeCurrencySelector = () => {
17146
+ var _a, _b;
17147
+ if (typeof window === 'undefined' || !((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.isBigCommerce)) {
17148
+ return;
17149
+ }
17150
+ const selector = (_b = zonosStore.genericSettings) === null || _b === void 0 ? void 0 : _b.bigcommerceNativeCurrencySelector;
17151
+ if (!selector) {
17152
+ return;
17153
+ }
17154
+ const bigcommerceCurrencyCode = document.body.dataset.currencyCode;
17155
+ const shouldHide = localizationStore.isShippableCountry &&
17156
+ !!bigcommerceCurrencyCode &&
17157
+ bigcommerceCurrencyCode === zonosStore.sourceCurrency;
17158
+ try {
17159
+ const elements = document.querySelectorAll(selector);
17160
+ elements.forEach(element => {
17161
+ if (shouldHide) {
17162
+ element.classList.add(HIDE_CLASSNAME);
17163
+ }
17164
+ else {
17165
+ element.classList.remove(HIDE_CLASSNAME);
17166
+ }
17167
+ });
17168
+ }
17169
+ catch (error) {
17170
+ logError(`Error toggling BigCommerce native currency selector: ${error}`);
17171
+ }
17172
+ };
17173
+
17128
17174
  const { dispose: localizationDispose, onChange: localizationStoreOnChange, state: localizationStore, } = createStore({
17129
17175
  countryLandedCost: null,
17130
17176
  customMessages: [],
@@ -17286,6 +17332,11 @@ const localizationStoreUpdateSelectedCountryCode = ({ isInitializing, newSelecte
17286
17332
  localizationStore.isDisabledCountry = isDisabledCountry;
17287
17333
  log(`${localizationStore.selectedCountryCode} is a disabled country: ${localizationStore.isDisabledCountry}`);
17288
17334
  addInternationalHideClass();
17335
+ // Hide / restore BC's native currency selector based on the new
17336
+ // shipping-zone state. Runs here (rather than inside `currencyDisplay`)
17337
+ // because `currencyDisplay` is also invoked from the price-mutation
17338
+ // observer in `zonos-hello.tsx`, which fires on every DOM render.
17339
+ toggleBigcommerceNativeCurrencySelector();
17289
17340
  if (!selectedCountryCode) {
17290
17341
  return;
17291
17342
  }
@@ -1,6 +1,6 @@
1
1
  import { z as zonosStore, c as createStore } from './zonosStore-9662b071.js';
2
- import { t as trackConversionEvent, y as validateCheckoutSession, b as stripeStore, d as cartStore, v as stripeStoreHandleInventoryCheck, w as storeCreditStoreApplyCredit, x as storeCreditStoreCoversFullAmount, z as storeCreditStoreCreateOrder, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval, F as storeCreditStoreGetEffectiveAmount } from './cart-0625a766.js';
3
- import { t as translate, s as storageStore } from './localization-ee06df70.js';
2
+ import { t as trackConversionEvent, y as validateCheckoutSession, b as stripeStore, d as cartStore, v as stripeStoreHandleInventoryCheck, w as storeCreditStoreApplyCredit, x as storeCreditStoreCoversFullAmount, z as storeCreditStoreCreateOrder, r as cartStoreNextStep, h as cartStoreClearCheckoutInterval, F as storeCreditStoreGetEffectiveAmount } from './cart-49082718.js';
3
+ import { t as translate, s as storageStore } from './localization-33a9f7ff.js';
4
4
  import { h as handleFetch, g as getIsTestMode, l as logError, j as jsonParse } from './handleFetch-a844cac1.js';
5
5
  import { i as isContrastColor } from './isContrastColor-6bad285e.js';
6
6
  import { l as log } from './VarianceTest-572cecf5.js';
@@ -1,5 +1,5 @@
1
- import { d as cartStore } from './cart-0625a766.js';
2
- import { s as storageStore } from './localization-ee06df70.js';
1
+ import { d as cartStore } from './cart-49082718.js';
2
+ import { s as storageStore } from './localization-33a9f7ff.js';
3
3
  import { l as logError, h as handleFetch } from './handleFetch-a844cac1.js';
4
4
 
5
5
  const placeTestOrder = async () => {
@@ -1,5 +1,5 @@
1
- import { d as cartStore } from './cart-0625a766.js';
2
- import { o as applyInclusiveEffectiveRate, d as currencyFormat } from './localization-ee06df70.js';
1
+ import { d as cartStore } from './cart-49082718.js';
2
+ import { o as applyInclusiveEffectiveRate, d as currencyFormat } from './localization-33a9f7ff.js';
3
3
 
4
4
  const getDisplayCurrency = () => {
5
5
  var _a, _b;
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, h, a as Host, d as createEvent, g as getElement } from './index-cfd394c8.js';
2
- import { t as translate, l as localizationStore, s as storageStore, q as storageStoreOnChange } from './localization-ee06df70.js';
2
+ import { t as translate, l as localizationStore, s as storageStore, q as storageStoreOnChange } from './localization-33a9f7ff.js';
3
3
  import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
4
- import { Q as extractName, b as stripeStore, q as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-0625a766.js';
4
+ import { Q as extractName, b as stripeStore, q as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-49082718.js';
5
5
  import { c as classes } from './classes-0d95c529.js';
6
6
  import { g as getBorderRadius } from './getBorderRadius-98c64be8.js';
7
7
  import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
@@ -72,15 +72,15 @@ const ZonosAddressForm = class {
72
72
  const { firstName, lastName } = extractName({
73
73
  name,
74
74
  });
75
- return (h(Host, { key: '22d085e462e69a4100a8cb1763367f53b933ed1d', class: "zonos--address-form zonos--elements" }, h("div", { key: '17d6c92370343ffbd1b4a85b3c49055a5a7f9d72', class: "zonos--title" }, h("zonos-text", { key: 'a4cb01bd8fed154567e0b7ade87777a1552ea815', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
75
+ return (h(Host, { key: '7daab005bebe43bc506b8da0fc3603f87f5cc07e', class: "zonos--address-form zonos--elements" }, h("div", { key: '61e8f1447408a10c42cbb6dfe1e5cd2986c34824', class: "zonos--title" }, h("zonos-text", { key: 'd8b0298a92731c5d7e8297f00036cbf6a6b7e8db', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
76
76
  ? translate('Shipping')
77
- : translate('Billing'))), h("div", { key: '4a1dddabc011e465d295b5c2994fda3a2531c96e', class: "zonos--address-group" }, h("div", { key: '60df882b5717b2f557a5051f492b2c838f938cd9', class: "zonos--contact" }, h("zonos-text", { key: '90b6613ccf1b2a445baae5f700f392d195924688', type: "label" }, translate('Contact')), h("zonos-input", { key: '125815769a366e113b61d5581578ef6ecbdffa79', class: "zonos--form-email", inputLabel: translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), h("div", { key: 'd0d331fb33f40243ce23824db5ba9551fd5636f8', class: "zonos--name zonos--address-row" }, h("zonos-input", { key: '46323db8f305e491215df03ef2092e76eec38355', class: "zonos--form-first-name", inputLabel: translate('First name'), inputValue: firstName, isError: isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
77
+ : translate('Billing'))), h("div", { key: 'b6fd70d9ee4cc61159e55a079649c79f48e4a98c', class: "zonos--address-group" }, h("div", { key: '3f163fd25a4c3a36c0fbe97b2578c9fbfbebc8e6', class: "zonos--contact" }, h("zonos-text", { key: '40ec47d730083b242fba7ed45711fa19bc1a3a73', type: "label" }, translate('Contact')), h("zonos-input", { key: '980d9afd5143a4be16b61fdd44b8badd26c0551f', class: "zonos--form-email", inputLabel: translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), h("div", { key: 'd3b7937d5c172a9aa1fb6fb294f7518702c42782', class: "zonos--name zonos--address-row" }, h("zonos-input", { key: '1cda2417557992ff1e018470f49bc553570e7ab8', class: "zonos--form-first-name", inputLabel: translate('First name'), inputValue: firstName, isError: isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
78
78
  key: 'name',
79
79
  value: `${e.detail} ${lastName}`,
80
- }) }), h("zonos-input", { key: '3c055ee2f1fcaf93ebcbd8f11ad6609cd33e9e14', class: "zonos--form-last-name", inputLabel: translate('Last name'), inputValue: lastName, isError: isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
80
+ }) }), h("zonos-input", { key: 'faf4991bde56989dc613d321660a3084b0e9a8e6', class: "zonos--form-last-name", inputLabel: translate('Last name'), inputValue: lastName, isError: isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
81
81
  key: 'name',
82
82
  value: `${firstName} ${e.detail}`,
83
- }) }))), h("div", { key: 'ce30f816d03b497eb4491d2554eb63c0aabf110c', class: "zonos--address" }, h("zonos-text", { key: '304867c5354ac55071c88944a63bba88ea3fb86f', type: "label" }, translate('Address')), h("zonos-input", { key: 'f0efe937603a38761643af1486b53359a19593e5', class: "zonos--form-country", inputLabel: translate('Country'), inputValue: country, isDisabled: true }), h("zonos-input", { key: '8360a4ae65c8963e886a3fb8322e0e539d121142', class: "zonos--form-line1", inputLabel: translate('Address line 1'), inputValue: line1, isError: isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), h("zonos-input", { key: '2c9374917b705c2c9306d3d4d7fc4b4043c2b73b', class: "zonos--form-line2", inputLabel: translate('Address line 2'), inputValue: line2, isError: isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), h("div", { key: 'fd067074070cadba3d895503f35c344ff817fec2', class: "zonos--address-row" }, h("zonos-input", { key: 'a565bee68e2498403df2801eb90005e8cb2d6f44', class: "zonos--form-city", inputLabel: translate('City'), inputValue: city, isError: isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (h("zonos-input", { key: 'c5a14d96cef1d48cc82dcedaef21949a77251843', class: "zonos--form-state", inputLabel: translate('State/Province'), inputValue: state, isError: isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), h("zonos-input", { key: 'a3359119c246a906f0c2305207b522324ccb16bf', class: "zonos--form-postal-code", inputLabel: translate('Postal code'), inputValue: postal_code, isError: isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), h("zonos-input", { key: '0196f951181a52f923ffb7cd5d4395e42b86cd8a', class: "zonos--form-phone", inputLabel: translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
83
+ }) }))), h("div", { key: '831483d5496ded27e71c1b4eb78bfb5ee8af52fb', class: "zonos--address" }, h("zonos-text", { key: '4d31ee6171c36401dda6653cedb43b81cf85a3cb', type: "label" }, translate('Address')), h("zonos-input", { key: '9134efbee8a46c04873dded9985d4437766aba61', class: "zonos--form-country", inputLabel: translate('Country'), inputValue: country, isDisabled: true }), h("zonos-input", { key: '4db075bee380c24ddfc706d7e72f631c9d451af3', class: "zonos--form-line1", inputLabel: translate('Address line 1'), inputValue: line1, isError: isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), h("zonos-input", { key: '6866187e5de8caaed307b4ad3e49048ccf8b08af', class: "zonos--form-line2", inputLabel: translate('Address line 2'), inputValue: line2, isError: isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), h("div", { key: '485f219a65abda705b20c4fdad0ec06d7b640f4c', class: "zonos--address-row" }, h("zonos-input", { key: '755a75893aaba7fd3be6842a4b29886f77a691bc', class: "zonos--form-city", inputLabel: translate('City'), inputValue: city, isError: isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (h("zonos-input", { key: 'd66f0cf58169adb5c53a2c0e2cf308e66cd639ac', class: "zonos--form-state", inputLabel: translate('State/Province'), inputValue: state, isError: isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), h("zonos-input", { key: '7fb5821a69f45779e616ef714c3774745b7cb0ca', class: "zonos--form-postal-code", inputLabel: translate('Postal code'), inputValue: postal_code, isError: isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), h("zonos-input", { key: 'a45be76f3e8073c5ea152f2814c52201c12f6d3b', class: "zonos--form-phone", inputLabel: translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
84
84
  }
85
85
  static get watchers() { return {
86
86
  "translatedAddress": ["watchCurrentAddress"]
@@ -1425,7 +1425,7 @@ const ZonosDialog = class {
1425
1425
  const borderStyle = getBorderRadius({
1426
1426
  overrideBorderStyle: this.borderStyle,
1427
1427
  });
1428
- return (h(Host, { key: 'a5e865f6ef72282447404923a8c1b9920ead47b1', class: classes([
1428
+ return (h(Host, { key: '590c4e4902e0dbe713126b9ff156d063e8f8f8ad', class: classes([
1429
1429
  'zonos--elements',
1430
1430
  this.open && 'open',
1431
1431
  this.isLoading && 'is-loading',
@@ -1437,10 +1437,10 @@ const ZonosDialog = class {
1437
1437
  '--zonos--height': this.height || 'initial',
1438
1438
  '--zonos--min-height': this.minHeight || '500px',
1439
1439
  '--zonos--width': this.width,
1440
- } }, h("div", { key: 'de67001c33a779ed467502d3f2300844034f9559', class: "zonos--backdrop" }), h("div", { key: 'ebdca7ccb32fcf7b4c60bf3d04b5de38b0668b75', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: '668aa0ed4b56d7a8bfb2c93fbf045b60ae91c3e5', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '2f7a7471b2665de6c33f194799a890756949a555', class: "zonos--loading" }, h("zonos-spinner", { key: '30432f6ab8ca578896138bcdc1bac0ed737fadb1', size: 30 }), this.loadingTitle && (h("zonos-text", { key: '17fc6c0e541f62118c6ce9dc5670b7023c99372c', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (h("zonos-text", { key: '8f278c76b5109c5b048c8c99f559c41240f2f2c0', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (h("div", { key: '9967ec60be44a768192afc7afd09064001f2881e', class: "zonos--header" }, this.headerText && (h("h3", { key: '12daab9cff11f16b396c8595c76e9e82cea790b2', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '9ba377e1078166e81b3edb7a6f0925602bd271c5', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: 'a467dd66e0feea9a2e035bf8af6ef4c5d43e88eb', class: classes([
1440
+ } }, h("div", { key: '14a99268f7f0ab8c6c70764c8c1d5757e66b9dbf', class: "zonos--backdrop" }), h("div", { key: '05cddc36b2189cf234f6e83c39a83220c11ec43f', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: '3b7160e77e0eedda0d01f46e338cc3923de4153d', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '3257270ad5e27e55a4d5b68700c924c4d69a0aaa', class: "zonos--loading" }, h("zonos-spinner", { key: 'f9a3e2452daa08f8fd0a889a08ad39da3f28b1cc', size: 30 }), this.loadingTitle && (h("zonos-text", { key: 'a342fae51f881c7686e577769850d5105722d722', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (h("zonos-text", { key: '17e69ab28563fff1a2289dd1598b542d18a9350d', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (h("div", { key: '2e9f0db72356193bd9789a21adbe35f29b456d9f', class: "zonos--header" }, this.headerText && (h("h3", { key: '8f7e92cbf2ab27442f4b8901ce2f8ec826939bf0', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: 'da358aa5942534abaf67a065e6ccce4722f91f27', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: '6abd9c5d6f7e1b8a533bdd878550009191905ff9', class: classes([
1441
1441
  'zonos--body',
1442
1442
  this.noBodyPadding && 'zonos--no-body-padding',
1443
- ]) }, h("slot", { key: '7cb10ba057870384afa85d4492a39c2f01766641' })), h("slot", { key: 'e8a90958c50234218123ffbc65fe16980a35a169', name: "dialog-footer" })))));
1443
+ ]) }, h("slot", { key: 'a3bc9604905f1c1ff53a5dc5c022ad6145a98735' })), h("slot", { key: '717b33f0583845613702e989570a41e5a8b54f08', name: "dialog-footer" })))));
1444
1444
  }
1445
1445
  static get assetsDirs() { return ["assets"]; }
1446
1446
  };
@@ -7176,24 +7176,24 @@ const ZonosStripePhoneInput = class {
7176
7176
  .filter(Boolean)
7177
7177
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
7178
7178
  : [];
7179
- return (h(Host, { key: 'eb23ab75a61aa94b7d4299f39b77d38ec1cbec20', class: classes([
7179
+ return (h(Host, { key: '35155697da59924b76afa4e5e23ef658ceb69bd7', class: classes([
7180
7180
  'zonos--phone-input zonos--elements',
7181
7181
  isDark && 'dark',
7182
- ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '4690d6346d04820fa677e02483164f1e39c348ad', class: classes([
7182
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '66c66da60fded977af4d5ef597a831ac117b3ed1', class: classes([
7183
7183
  'zonos--label-wrapper',
7184
7184
  this.disabled && 'disabled',
7185
7185
  this.isFocused && 'focused',
7186
7186
  hasContent && 'has-content',
7187
7187
  this.error && 'has-error',
7188
7188
  this.inputLabel && 'has-label',
7189
- ]) }, h("select", { key: 'be7fab230afd6e19cb133d13f9d1f946893dd85e', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7189
+ ]) }, h("select", { key: 'a76b59a558272bda11c091bf977c90a1abd1fdbc', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7190
7190
  var _a;
7191
7191
  return (h("option", { key: option.countryCode, selected: option.countryCode === ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode), value: option.countryCode }, option.displayName, " (+", option.phoneCode, ")"));
7192
- })), h("div", { key: '2da719a561ed71bdaf6563249ceff2556b6a8323', class: "zonos--input-group" }, h("div", { key: 'bb533773af30f0c8c4be47f76ee642fd589a40b6', class: "zonos--select-wrapper" }, h("div", { key: '465e9b7b41ba99852cee2a36822e2a753d401337', class: "zonos--country-select" }, h("div", { key: '5f2ba6cd1937831f3b5cb61f98d501497534b758', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: '4f5861174efa761ec9285b5e8721b3b46d5979cb', class: "zonos--country-select-selected" }, h("div", { key: '47c28fd20118f92c9ee18e82ebdafdf212e6740e', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: '28fae4f5074ca62d7592142878e3c8d48229a83e', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: '9d940039033f7d09b9d6e2ac9f005e3b21060b70', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: '5cbbee5f1405d05717873f287b3b6d3bb0f92ede', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: 'd6c493e07ee068a848e10debda7549f4cd4fc28b', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '2c4ec88e83d61e0305d53285c8bd5107f98eb15f', class: classes([
7192
+ })), h("div", { key: '56cc5d0e6eedc76282df9f43f9384d5ea6eacf86', class: "zonos--input-group" }, h("div", { key: '28e2e4e627e3f7439e2d5b474632585da41d531a', class: "zonos--select-wrapper" }, h("div", { key: 'bb2e59a82ca9cb497efa705361d996debc424f60', class: "zonos--country-select" }, h("div", { key: '14b7d08d477383dc16db4c15bd6132a71206226c', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: 'e8a0cde2b080bf30314069656c132d21e4b3ac89', class: "zonos--country-select-selected" }, h("div", { key: '13c3a5947263770aa8fd15126dc386c6ea51ca79', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: 'f9861e6165265b3095889bd1158ac9791032628c', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: 'e0c54a4e62f6b5aa2d01c8bfdd8dac3338dbb45a', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: 'e2c309de467ed0e4d7b26ea2a3bca4443e254b82', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '36848392b8467f3118222ae9c22b1b02071a3350', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '3dba6c65337a2f36b16b7f8d0284c0fccade7846', class: classes([
7193
7193
  'zonos--input-container',
7194
7194
  this.inputLabel && 'has-label',
7195
7195
  hasContent && 'has-content',
7196
- ]) }, h("input", Object.assign({ key: '434232fdedebf3c4cd6f7e2c70d41a4cd5ad8104' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (h("div", { key: '4ff0d61108d5cc56381eec6f94a50485c149f360', class: "zonos--floated-label" }, h("label", { key: '37db631b0d55253787c0f2d8ae455bbf3ebfc8bb', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: '260b115c3efc9ece71cf31eb24a39efc4c21a64c', textColor: "red-600" }, this.error))));
7196
+ ]) }, h("input", Object.assign({ key: '4241efa2b016079e7107050bccd7866cb98a9e49' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (h("div", { key: 'dc2f3d2b183f2e6ae24806c00c2e0d5852344287', class: "zonos--floated-label" }, h("label", { key: 'd039a17ad718f85e3566f83b8ceced43cac01b83', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: 'a15dcd089b02a952d4f29fdb6e9d88390ef2d2c2', textColor: "red-600" }, this.error))));
7197
7197
  }
7198
7198
  get el() { return getElement(this); }
7199
7199
  static get watchers() { return {
@@ -7309,14 +7309,14 @@ const ZonosStripeSelect = class {
7309
7309
  const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
7310
7310
  const hasContent = this.internalValue || this.selectPlaceholder;
7311
7311
  const showClearButton = this.isClearable && this.internalValue && !this.isDisabled;
7312
- return (h(Host, { key: '62511439918e73ea4404c4b077c5da143b1459a7', class: classes([
7312
+ return (h(Host, { key: 'c6bf5ed45fd7756985bd97b542933d25a472aa2c', class: classes([
7313
7313
  'zonos--select zonos--elements',
7314
7314
  isDark && 'dark',
7315
7315
  this.isError && 'has-error',
7316
- ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: 'cc826990fe112f66682e522e2fbbe808b3017537', class: classes([
7316
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '7ff61460b6ac3c5b3e6e35000f3713609a26ebe2', class: classes([
7317
7317
  'zonos--label-wrapper',
7318
7318
  this.isDisabled && 'disabled',
7319
- ]) }, h("select", Object.assign({ key: '2803799a7226bf79d173093a4b1773ef57e122f8' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
7319
+ ]) }, h("select", Object.assign({ key: '9d644b04d7b46621245581c5143d7310e1d5396d' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
7320
7320
  'zonos--floated-select',
7321
7321
  !!this.selectLabel && 'has-label',
7322
7322
  hasContent && 'has-content',
@@ -7326,9 +7326,9 @@ const ZonosStripeSelect = class {
7326
7326
  this.selectChange.emit(select.value);
7327
7327
  this.selectedValue = select.value;
7328
7328
  this.el.dispatchEvent(new Event('change'));
7329
- }, required: this.required }), h("option", { key: 'ab93bc1a38ab1c897fc57c1b6a55941c021f6944', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
7329
+ }, required: this.required }), h("option", { key: 'b448bc3c2a083334108afad566feff22bf89547a', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
7330
7330
  // Sometimes google returns the label not the code for some countries
7331
- this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: '4d4995d1770bf99e05c0d1b6dbdddbe828f2b3b0', class: "zonos--floated-label" }, h("label", { key: '2b352cf1413f4a539c6f62d7df285dbea1629b77', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: '707a0df092ed2196fa8e503d79448890a9e36616', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: '83a605fd7d3799a1ce6f4300193c63722f3f8b7e', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: 'da9e65471ec1b4f89119a71db657f06903a11a3d', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: '4b479d3f9fae286e0ebb6290d9954f08982a4e5e', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: '6c9e2fa9747064203763c00f39dbb08fb413cf0c', textColor: "red-600" }, this.error))));
7331
+ this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: '14b3c9dad1202d432ba2a30d03e8335aebaafa89', class: "zonos--floated-label" }, h("label", { key: '4e7870ce3eeaf4ea6fd116e3a486537bebb88c87', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: '4567ca19c1e018d483105c23ca781e0bbd1d2c3a', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: 'cdceea7255fdd19177b82c42878a6c4a20690a1a', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: '099b2f1a4fb475bfa76b0f4aeee9e66f27d473f3', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: '8c7fdaf2de40a14e4fa0f8f3598851edac1c1ae6', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: '1cb569a7feeea85874c852a1c69cf88076fd6856', textColor: "red-600" }, this.error))));
7332
7332
  }
7333
7333
  get el() { return getElement(this); }
7334
7334
  static get watchers() { return {
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, d as createEvent, h, a as Host, g as getElement } from './index-cfd394c8.js';
2
2
  import { t as throttle_1 } from './throttle-882b1f47.js';
3
- import { b as stripeStore, t as trackConversionEvent, Q as extractName, E as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-0625a766.js';
4
- import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-ee06df70.js';
3
+ import { b as stripeStore, t as trackConversionEvent, Q as extractName, E as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, d as cartStore } from './cart-49082718.js';
4
+ import { s as storageStore, r as getFallbackDefaultCountryCode, t as translate, q as storageStoreOnChange, l as localizationStore } from './localization-33a9f7ff.js';
5
5
  import { z as zonosStore, g as getZonosStoreTheme, f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
6
6
  import { l as logError, i as isCheckoutMobile, s as sendErrorLog } from './handleFetch-a844cac1.js';
7
7
  import { a as shouldRenderTaxIdInput, s as shouldRenderShortAddressCodeInput } from './shouldRenderTaxIdInput-2572bf77.js';
@@ -490,13 +490,13 @@ const ZonosConfirmDialog = class {
490
490
  const borderStyle = getBorderRadius();
491
491
  // Get theme for the update dialog, inherit from the theme, no from this component theme
492
492
  const theme = getZonosStoreTheme(zonosStore.appearance.theme);
493
- return (h(Host, { key: 'ae8a2dd88cbeeb8865f1ed67eae5d42356359d53', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
493
+ return (h(Host, { key: '459abd25f9719554dc3b4387a660618056909846', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
494
494
  '--zonos--border-radius': borderStyle,
495
495
  '--zonos--dialog-width': `${this.dialogWidth}px`,
496
496
  '--zonos--font-family': zonosStoreFontFamily(),
497
- } }, h("div", { key: 'c0622ae7cbbe469554716558eb56c452f9693568', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '3c42ad4fb2b793d65f564484126a519e97297743', class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '18b46b2281cdf26b4dce3784b91a0ccd45cde7f2', class: "zonos--confirm-dialog", onBlur: () => {
497
+ } }, h("div", { key: 'f8a3c9bdbad91b046b3579eb140aad74e2784f8d', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'b41d27616223f89adb523269a3a8b982cd3559c7', class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '69e7837a2aaaeea468e4887d14cbb0ea61d5f24a', class: "zonos--confirm-dialog", onBlur: () => {
498
498
  this.focusDialog();
499
- } }, h("div", { key: '9455881ea4d3c557b4de814235b0f66519e6fc6b', class: "wrapper" }, h("div", { key: '51f52ec83eb9fdbe1af20fdb0d149ce291597468', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: 'cdd954985d40e509eab4c15d063e1e7c9ebec839', class: "content" }, h("div", { key: '0ffddb684d1c33d421e2bf077fec01dba934a1e4', class: "title" }, h("zonos-text", { key: '5d778ebc6795ca69caf7df33503b6ec8ea3636c0', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: 'fab99060495ebeb545477e06417816c7fc8f9f3c', class: "subtitle" }, h("zonos-text", { key: 'c4baa52a5b53497db336018f62d5999e298d3ccf', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '5d92f093bd1ee37ee54c4e771e73a1d2b6b7bb39', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: '0aa3788620a75732d72fca23c16b6b1a2fb694a0', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: 'a7195241b38061b363cae7b99828b714c96dbbff', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
499
+ } }, h("div", { key: '28ed6e2da0c8c56a00c46df985f21cf74c551894', class: "wrapper" }, h("div", { key: 'f20b3f00aeaef6fc306766a52607253554005cf4', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '7bb44bb7a880c599a8cc4615df48257fd0f9c19d', class: "content" }, h("div", { key: '584603b01b26b5d242f14c67a14d7b092d54b668', class: "title" }, h("zonos-text", { key: '028e06e106587778f6da2301ee44727ab1bf487f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: 'c986563425dc6130fa154ce3c8e15c2aa03fb6cb', class: "subtitle" }, h("zonos-text", { key: '675899ceea2fd2de38ca8f87aa6ca69e4c7d8fc7', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '8a034df1cd91f07e870fd6eccebc2f382edf59fb', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: '72e643fff73dabe0d5381e6ffc7f2237ef00f322', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: 'e247f450feef41b44688b937b38df8e061f386a3', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
500
500
  }
501
501
  static get assetsDirs() { return ["assets"]; }
502
502
  get el() { return getElement(this); }
@@ -730,7 +730,7 @@ const ZonosLoadingOverlay = class {
730
730
  this.size = 40;
731
731
  }
732
732
  render() {
733
- return (h(Host, { key: '3f830d0014a8988893b2cbde578035b1b8727ac5', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: '84371b0bb118aef5c4ec5e1c6903d699d5402c14', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: 'cf53766a1bbdf7433c5f7a1cf46e00bbd63f08b3', size: this.size, spinnerColor: this.spinnerColor }))));
733
+ return (h(Host, { key: '8216ba7271f4eb12153620d0268fd7b5dea632ad', class: classes(['zonos--elements', this.open && 'zonos--open']) }, h("div", { key: 'ad3ab1b7e51b2de173e1b1a489bce3cdacc798f1', class: "zonos--loading-overlay" }, h("zonos-spinner", { key: 'dc1dd642825268c01c5df120165a7aec85d121e9', size: this.size, spinnerColor: this.spinnerColor }))));
734
734
  }
735
735
  };
736
736
  ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
@@ -46,16 +46,16 @@ const ZonosBadge = class {
46
46
  this.loading = false;
47
47
  }
48
48
  render() {
49
- return (h(Host, { key: '76d8a0655e3d4009085f34ea0cbc56c180076081', class: classes(['zonos--elements zonos--badge']), style: {
49
+ return (h(Host, { key: '219feb5a48098f89db6f6f338b54404a0d5368c6', class: classes(['zonos--elements zonos--badge']), style: {
50
50
  '--zonos--font-family': zonosStoreFontFamily(),
51
- } }, h("div", { key: 'c512b84c92030ad81f1a6180304fd79c2a3c3708', class: classes([
51
+ } }, h("div", { key: '9e37e1cdeef718fcdd8ee8243ef29bebd42bbc71', class: classes([
52
52
  'zonos--badge-content',
53
53
  this.badgeColor,
54
54
  this.rounded && 'rounded',
55
55
  this.iconRight && 'icon-right',
56
56
  this.size,
57
57
  this.bold && 'bold',
58
- ]) }, this.icon, h("zonos-text", { key: '680812e8220ca3ad0a18a90c5bb614b5fea13c38', textColor: `${this.badgeColor}-800` }, h("slot", { key: 'e939a288add6c2936746ed4b40721d13c38e793c' })), this.dismissHandler && (h("zonos-icon", { key: 'fddf84b6af4dda95c6937273d6168fc17290d747', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
58
+ ]) }, this.icon, h("zonos-text", { key: '9c538e2fe65246332655820eee13b10e7c50327b', textColor: `${this.badgeColor}-800` }, h("slot", { key: 'df06a399a7541a63703383b8340c594541cb8067' })), this.dismissHandler && (h("zonos-icon", { key: 'bc972c68bb3eb511282bd8988b6602f4604d3e39', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
59
59
  }
60
60
  };
61
61
  ZonosBadge.style = ZonosBadgeStyle0;
@@ -207,13 +207,13 @@ const ZonosButton = class {
207
207
  const borderStyle = getBorderRadius({
208
208
  overrideBorderStyle: this.borderStyle,
209
209
  });
210
- return (h(Host, { key: '0e8c9eaa41b5769793e8b598e675f74e76061a7d', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
210
+ return (h(Host, { key: '8172735394435d60f27ff0b55d3bcd57c7327487', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
211
211
  '--zonos--background-color': backgroundColor,
212
212
  '--zonos--border-radius': borderStyle,
213
213
  '--zonos--color': color,
214
214
  '--zonos--font-family': zonosStoreFontFamily(),
215
215
  '--zonos--font-weight': this.bold ? 'bold' : 'normal',
216
- }) }, h("button", Object.assign({ key: '5de21db7f0fb00f327ffb9d9da450269e8493b43' }, this.inheritedAttributes, { class: classes([
216
+ }) }, h("button", Object.assign({ key: 'c0afe56a3a2740aab6ed98311d6ea5d8a40fc390' }, this.inheritedAttributes, { class: classes([
217
217
  this.hasIcon && 'has-icon',
218
218
  this.hasContent && 'has-content',
219
219
  this.noBackground && 'no-background',
@@ -228,7 +228,7 @@ const ZonosButton = class {
228
228
  backgroundColor && variant === 'standard' && 'override-background',
229
229
  ]), disabled: disabled, style: {
230
230
  justifyContent: this.justifyContent,
231
- } }), this.loading && (h("div", { key: 'ff288d4a7ab7fc79e7e66328e413034e653ddc13', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '14f473f5f16407c020ae6163e5ccba00b6b8ea76', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '3fdd8e722cf4cb730f3227fe0562011af106da28', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
231
+ } }), this.loading && (h("div", { key: '042ee0a9b02356aaf5b9332121e810782a3efff3', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '2973bb0afdddcfffd1d17bf423776dace52d9f7f', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '45c56c5839daf9bff44b424f2de43f02d37ca7cc', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
232
232
  }
233
233
  static get delegatesFocus() { return true; }
234
234
  get ele() { return getElement(this); }
@@ -2,10 +2,10 @@ import { r as registerInstance, h, a as Host, g as getElement, d as createEvent
2
2
  import { f as zonosStoreFontFamily } from './zonosStore-9662b071.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
4
  import { g as getBorderRadius } from './getBorderRadius-98c64be8.js';
5
- import { b as stripeStore, t as trackConversionEvent } from './cart-0625a766.js';
6
- import { s as storageStore } from './localization-ee06df70.js';
5
+ import { b as stripeStore, t as trackConversionEvent } from './cart-49082718.js';
6
+ import { s as storageStore } from './localization-33a9f7ff.js';
7
7
  import { l as logError } from './handleFetch-a844cac1.js';
8
- import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-78c3572c.js';
8
+ import { d as paypalStoreInitButtons, e as paypalStoreOnChange } from './paypal-2e9aa4ba.js';
9
9
  import { l as log } from './VarianceTest-572cecf5.js';
10
10
  import './isDarkColor-0a8453e7.js';
11
11
  import './isContrastColor-6bad285e.js';
@@ -35,16 +35,16 @@ const ZonosCard = class {
35
35
  customRoundRadius: `${this.borderRadius}px`,
36
36
  overrideBorderStyle: 'ROUNDED',
37
37
  });
38
- return (h(Host, { key: '04b66449d19c5862587b5ef4b2f7cb32524b03bd', style: {
38
+ return (h(Host, { key: 'ae124207be3fbddbd445d74cdf31085401a09c67', style: {
39
39
  '--zonos--font-family': zonosStoreFontFamily(),
40
- } }, h("div", { key: '218a1def4d384b3bf589e87ca657168de2cea3e5', class: classes(['styled-card']), style: {
40
+ } }, h("div", { key: '43fe2ffcb7caa0754c93f6d94898156f5169139b', class: classes(['styled-card']), style: {
41
41
  '--zonos--background-color': backgroundColor,
42
42
  '--zonos--border-radius': borderRadius,
43
43
  padding: this.spacing,
44
- } }, this.label && (h("header", { key: 'bc5f2eaa90786860e20e40987df70e0cc9c527bb', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '90be1e3b9cd28f5a7aacf79c65c56e14a37bc019', type: "subheader" }, this.label), h("h-stack", { key: 'c25845c181e02eadca3cacb2d73c7173ba0a1a50', spacing: 8 }, this.actions))), h("slot", { key: '1e875f0fc6d86ae7cc5bdcdc0fc509bdcc1e1862' }), (this.footerActions || this.footerContent) && (h("footer", { key: '8fdca089c61d02ca14946dc3aaa8cb62c2feae99', class: "card-footer", style: {
44
+ } }, this.label && (h("header", { key: '6839065e2e630a841d6ecd7f03b19a93a988e49a', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '498435bbbb60cc6d1d13a304aad321107bd6feaf', type: "subheader" }, this.label), h("h-stack", { key: '4de3f042a72b16be374209b393cb174fc7d1b670', spacing: 8 }, this.actions))), h("slot", { key: 'add9dac3d8b9a50c0caa37d245f632c6a5e64d7f' }), (this.footerActions || this.footerContent) && (h("footer", { key: 'e83f37ed24b44d9b7316579ee28ea51a3da119d8', class: "card-footer", style: {
45
45
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
46
46
  padding: this.spacing,
47
- } }, h("div", { key: '801f46a84cbb1185185ee35f51bf211f09d5aaee' }, this.footerContent), h("h-stack", { key: 'c995fab1c343973cf5da3079b99baa8b11af2903', spacing: 8 }, this.footerActions))))));
47
+ } }, h("div", { key: '685721d5f7f51c99438f4ddf23cf75122db3223c' }, this.footerContent), h("h-stack", { key: '61a44c918aea4994c10b16045564b45135296852', spacing: 8 }, this.footerActions))))));
48
48
  }
49
49
  };
50
50
  ZonosCard.style = ZonosCardStyle0;