@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
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-0662b95f.js');
4
- const localization = require('./localization-06cc0379.js');
4
+ const localization = require('./localization-66d378ab.js');
5
5
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
6
6
  const handleFetch = require('./handleFetch-954f30e1.js');
7
7
  const isDarkColor = require('./isDarkColor-e317bb06.js');
@@ -0,0 +1,54 @@
1
+ 'use strict';
2
+
3
+ const isDarkColor = require('./isDarkColor-e317bb06.js');
4
+ const isContrastColor = require('./isContrastColor-a02c4889.js');
5
+
6
+ const getContrastColor = ({ backgroundColor, color, }) => {
7
+ if (backgroundColor === color) {
8
+ if (isDarkColor.isDarkColor(color)) {
9
+ const ligherColor = isDarkColor.tinycolor(color).lighten(40).toHexString();
10
+ return ligherColor;
11
+ }
12
+ const darkerColor = isDarkColor.tinycolor(color).darken(40).toHexString();
13
+ return darkerColor;
14
+ }
15
+ // get readibility of the color
16
+ const isContrastEnough = isContrastColor.isContrastColor({
17
+ backgroundColor1: backgroundColor,
18
+ backgroundColor2: color,
19
+ });
20
+ if (isContrastEnough) {
21
+ // no need to change the color if it's already contrast enough
22
+ return color;
23
+ }
24
+ // Try both darker and lighter shifts of the same hue at increasing
25
+ // amounts; at each step prefer the candidate with higher contrast against
26
+ // the background and return as soon as one meets the threshold. This keeps
27
+ // the result close to the original color whenever possible and handles
28
+ // both light-on-light and dark-on-dark pairings symmetrically.
29
+ const adjustAmounts = [25, 50, 70];
30
+ for (const amount of adjustAmounts) {
31
+ const candidates = [
32
+ isDarkColor.tinycolor(color).darken(amount).toHexString(),
33
+ isDarkColor.tinycolor(color).lighten(amount).toHexString(),
34
+ ];
35
+ candidates.sort((a, b) => isDarkColor.tinycolor.readability(backgroundColor, b) -
36
+ isDarkColor.tinycolor.readability(backgroundColor, a));
37
+ for (const candidate of candidates) {
38
+ if (isContrastColor.isContrastColor({
39
+ backgroundColor1: backgroundColor,
40
+ backgroundColor2: candidate,
41
+ })) {
42
+ return candidate;
43
+ }
44
+ }
45
+ }
46
+ // Last resort: pick whichever absolute extreme is more readable against
47
+ // the background.
48
+ return isDarkColor.tinycolor.readability(backgroundColor, '#000000') >=
49
+ isDarkColor.tinycolor.readability(backgroundColor, '#ffffff')
50
+ ? '#000000'
51
+ : '#ffffff';
52
+ };
53
+
54
+ exports.getContrastColor = getContrastColor;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const localization = require('./localization-06cc0379.js');
3
+ const localization = require('./localization-66d378ab.js');
4
4
 
5
5
  /**
6
6
  * Since the backend and the frontend are using the same keys,
@@ -133,7 +133,7 @@ const getZonosQaUrl = () => {
133
133
  return null;
134
134
  }
135
135
  const qaUrl = extractZonosQaUrl(window.location.href);
136
- const cdnUrl = "https://v1.3.265.js.zonos.com";
136
+ const cdnUrl = "https://v1.3.267.js.zonos.com";
137
137
  // when the qaUrl is not set and the built URL is from the test domain, use the test domain for testing
138
138
  if (!qaUrl &&
139
139
  (cdnUrl.includes('test.') ||
@@ -381,10 +381,10 @@ const zonosLoadUrl = (() => {
381
381
  return null;
382
382
  })();
383
383
  const startLoadTime = Date.now();
384
- const ZONOS_URL = "https://v1.3.265.js.zonos.com";
385
- const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.265";
386
- const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.265";
387
- const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.265";
384
+ const ZONOS_URL = "https://v1.3.267.js.zonos.com";
385
+ const JS_DELIVR_ZONOS_URL = zonosLoadUrl || "https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.267";
386
+ const UNPKG_ZONOS_URL = "https://unpkg.com/@zonos/elements@1.3.267";
387
+ const CDNJS_ZONOS_URL = "https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.267";
388
388
  const GOOGLE_FONT_URL = 'https://fonts.googleapis.com';
389
389
  const GOOGLE_FONT_REGEX = /^https:\/\/fonts\.googleapis\.com/;
390
390
  class Zonos {
@@ -402,7 +402,7 @@ Zonos.iframeLogType = typeof window !== 'undefined'
402
402
  ? new URLSearchParams(window.location.search).get('iframeLogType')
403
403
  : null;
404
404
  Zonos.isBigCommerce = false;
405
- Zonos.releaseDate = "1779136884210";
405
+ Zonos.releaseDate = "1779911513615";
406
406
  Zonos.isLegacyCheckout = false;
407
407
  Zonos.googleAnalyticId = null;
408
408
  Zonos.googleAnalyticReady = false;
@@ -427,7 +427,7 @@ Zonos.isNpm = true;
427
427
  Zonos.zonosQaUrl = null;
428
428
  Zonos.zonosQaUrlApi = null;
429
429
  Zonos.trackEventLogs = [];
430
- Zonos.version = `v${"1.3.265"}`;
430
+ Zonos.version = `v${"1.3.267"}`;
431
431
  Zonos.modeAlerted = false;
432
432
  Zonos.cartData = null;
433
433
  Zonos.paypal = null;
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-0662b95f.js');
4
- const cart = require('./cart-c325b9e4.js');
5
- const localization = require('./localization-06cc0379.js');
4
+ const cart = require('./cart-ed2de167.js');
5
+ const localization = require('./localization-66d378ab.js');
6
6
  const handleFetch = require('./handleFetch-954f30e1.js');
7
7
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
8
8
 
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-0662b95f.js');
4
- const cart = require('./cart-c325b9e4.js');
5
- const localization = require('./localization-06cc0379.js');
4
+ const cart = require('./cart-ed2de167.js');
5
+ const localization = require('./localization-66d378ab.js');
6
6
  const handleFetch = require('./handleFetch-954f30e1.js');
7
7
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
8
8
 
@@ -17008,7 +17008,7 @@ const performBlurCurrency = () => {
17008
17008
  const convertCurrency = (element) => {
17009
17009
  var _a;
17010
17010
  const amount = getInitialElementAmount(element);
17011
- if (!amount || isNaN(amount)) {
17011
+ if (amount === null || isNaN(amount)) {
17012
17012
  return;
17013
17013
  }
17014
17014
  const currentIntlValue = element.getAttribute('data-zintl');
@@ -17127,6 +17127,52 @@ const setZCountryUrlParam = (selectedCountryCode) => {
17127
17127
  }
17128
17128
  };
17129
17129
 
17130
+ const HIDE_CLASSNAME = 'z--bc-currency-hide';
17131
+ /**
17132
+ * Hides BigCommerce's native currency selector while Hello is actively
17133
+ * converting prices, and restores it otherwise. The selector is hidden
17134
+ * only when all of the following hold:
17135
+ *
17136
+ * - the host storefront is BigCommerce (`window.Zonos.isBigCommerce`),
17137
+ * - the shopper is in a Zonos shipping zone
17138
+ * (`localizationStore.isShippableCountry`), and
17139
+ * - BC's currently selected native currency
17140
+ * (`document.body.dataset.currencyCode`) equals `zonosStore.sourceCurrency`
17141
+ * — i.e. BC has not pre-converted the prices Hello reads from the DOM.
17142
+ *
17143
+ * If those conditions don't hold (non-BC platform, non-shippable country,
17144
+ * BC currency differs from source, or the selector is not configured), the
17145
+ * function removes the class so any previously hidden element re-appears.
17146
+ */
17147
+ const toggleBigcommerceNativeCurrencySelector = () => {
17148
+ var _a, _b;
17149
+ if (typeof window === 'undefined' || !((_a = window.Zonos) === null || _a === void 0 ? void 0 : _a.isBigCommerce)) {
17150
+ return;
17151
+ }
17152
+ const selector = (_b = zonosStore.zonosStore.genericSettings) === null || _b === void 0 ? void 0 : _b.bigcommerceNativeCurrencySelector;
17153
+ if (!selector) {
17154
+ return;
17155
+ }
17156
+ const bigcommerceCurrencyCode = document.body.dataset.currencyCode;
17157
+ const shouldHide = localizationStore.isShippableCountry &&
17158
+ !!bigcommerceCurrencyCode &&
17159
+ bigcommerceCurrencyCode === zonosStore.zonosStore.sourceCurrency;
17160
+ try {
17161
+ const elements = document.querySelectorAll(selector);
17162
+ elements.forEach(element => {
17163
+ if (shouldHide) {
17164
+ element.classList.add(HIDE_CLASSNAME);
17165
+ }
17166
+ else {
17167
+ element.classList.remove(HIDE_CLASSNAME);
17168
+ }
17169
+ });
17170
+ }
17171
+ catch (error) {
17172
+ handleFetch.logError(`Error toggling BigCommerce native currency selector: ${error}`);
17173
+ }
17174
+ };
17175
+
17130
17176
  const { dispose: localizationDispose, onChange: localizationStoreOnChange, state: localizationStore, } = zonosStore.createStore({
17131
17177
  countryLandedCost: null,
17132
17178
  customMessages: [],
@@ -17288,6 +17334,11 @@ const localizationStoreUpdateSelectedCountryCode = ({ isInitializing, newSelecte
17288
17334
  localizationStore.isDisabledCountry = isDisabledCountry;
17289
17335
  VarianceTest.log(`${localizationStore.selectedCountryCode} is a disabled country: ${localizationStore.isDisabledCountry}`);
17290
17336
  addInternationalHideClass();
17337
+ // Hide / restore BC's native currency selector based on the new
17338
+ // shipping-zone state. Runs here (rather than inside `currencyDisplay`)
17339
+ // because `currencyDisplay` is also invoked from the price-mutation
17340
+ // observer in `zonos-hello.tsx`, which fires on every DOM render.
17341
+ toggleBigcommerceNativeCurrencySelector();
17291
17342
  if (!selectedCountryCode) {
17292
17343
  return;
17293
17344
  }
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  const zonosStore = require('./zonosStore-0662b95f.js');
4
- const cart = require('./cart-c325b9e4.js');
5
- const localization = require('./localization-06cc0379.js');
4
+ const cart = require('./cart-ed2de167.js');
5
+ const localization = require('./localization-66d378ab.js');
6
6
  const handleFetch = require('./handleFetch-954f30e1.js');
7
7
  const isContrastColor = require('./isContrastColor-a02c4889.js');
8
8
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-c325b9e4.js');
4
- const localization = require('./localization-06cc0379.js');
3
+ const cart = require('./cart-ed2de167.js');
4
+ const localization = require('./localization-66d378ab.js');
5
5
  const handleFetch = require('./handleFetch-954f30e1.js');
6
6
 
7
7
  const placeTestOrder = async () => {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
- const cart = require('./cart-c325b9e4.js');
4
- const localization = require('./localization-06cc0379.js');
3
+ const cart = require('./cart-ed2de167.js');
4
+ const localization = require('./localization-66d378ab.js');
5
5
 
6
6
  const getDisplayCurrency = () => {
7
7
  var _a, _b;
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const localization = require('./localization-06cc0379.js');
6
+ const localization = require('./localization-66d378ab.js');
7
7
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
8
- const cart = require('./cart-c325b9e4.js');
8
+ const cart = require('./cart-ed2de167.js');
9
9
  const classes = require('./classes-b7918f56.js');
10
10
  const getBorderRadius = require('./getBorderRadius-a91911e7.js');
11
11
  const zonosStore = require('./zonosStore-0662b95f.js');
@@ -76,15 +76,15 @@ const ZonosAddressForm = class {
76
76
  const { firstName, lastName } = cart.extractName({
77
77
  name,
78
78
  });
79
- return (index.h(index.Host, { key: '22d085e462e69a4100a8cb1763367f53b933ed1d', class: "zonos--address-form zonos--elements" }, index.h("div", { key: '17d6c92370343ffbd1b4a85b3c49055a5a7f9d72', class: "zonos--title" }, index.h("zonos-text", { key: 'a4cb01bd8fed154567e0b7ade87777a1552ea815', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
79
+ return (index.h(index.Host, { key: '7daab005bebe43bc506b8da0fc3603f87f5cc07e', class: "zonos--address-form zonos--elements" }, index.h("div", { key: '61e8f1447408a10c42cbb6dfe1e5cd2986c34824', class: "zonos--title" }, index.h("zonos-text", { key: 'd8b0298a92731c5d7e8297f00036cbf6a6b7e8db', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
80
80
  ? localization.translate('Shipping')
81
- : localization.translate('Billing'))), index.h("div", { key: '4a1dddabc011e465d295b5c2994fda3a2531c96e', class: "zonos--address-group" }, index.h("div", { key: '60df882b5717b2f557a5051f492b2c838f938cd9', class: "zonos--contact" }, index.h("zonos-text", { key: '90b6613ccf1b2a445baae5f700f392d195924688', type: "label" }, localization.translate('Contact')), index.h("zonos-input", { key: '125815769a366e113b61d5581578ef6ecbdffa79', class: "zonos--form-email", inputLabel: localization.translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), index.h("div", { key: 'd0d331fb33f40243ce23824db5ba9551fd5636f8', class: "zonos--name zonos--address-row" }, index.h("zonos-input", { key: '46323db8f305e491215df03ef2092e76eec38355', class: "zonos--form-first-name", inputLabel: localization.translate('First name'), inputValue: firstName, isError: containsNonLatinChars.isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
81
+ : localization.translate('Billing'))), index.h("div", { key: 'b6fd70d9ee4cc61159e55a079649c79f48e4a98c', class: "zonos--address-group" }, index.h("div", { key: '3f163fd25a4c3a36c0fbe97b2578c9fbfbebc8e6', class: "zonos--contact" }, index.h("zonos-text", { key: '40ec47d730083b242fba7ed45711fa19bc1a3a73', type: "label" }, localization.translate('Contact')), index.h("zonos-input", { key: '980d9afd5143a4be16b61fdd44b8badd26c0551f', class: "zonos--form-email", inputLabel: localization.translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), index.h("div", { key: 'd3b7937d5c172a9aa1fb6fb294f7518702c42782', class: "zonos--name zonos--address-row" }, index.h("zonos-input", { key: '1cda2417557992ff1e018470f49bc553570e7ab8', class: "zonos--form-first-name", inputLabel: localization.translate('First name'), inputValue: firstName, isError: containsNonLatinChars.isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
82
82
  key: 'name',
83
83
  value: `${e.detail} ${lastName}`,
84
- }) }), index.h("zonos-input", { key: '3c055ee2f1fcaf93ebcbd8f11ad6609cd33e9e14', class: "zonos--form-last-name", inputLabel: localization.translate('Last name'), inputValue: lastName, isError: containsNonLatinChars.isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
84
+ }) }), index.h("zonos-input", { key: 'faf4991bde56989dc613d321660a3084b0e9a8e6', class: "zonos--form-last-name", inputLabel: localization.translate('Last name'), inputValue: lastName, isError: containsNonLatinChars.isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
85
85
  key: 'name',
86
86
  value: `${firstName} ${e.detail}`,
87
- }) }))), index.h("div", { key: 'ce30f816d03b497eb4491d2554eb63c0aabf110c', class: "zonos--address" }, index.h("zonos-text", { key: '304867c5354ac55071c88944a63bba88ea3fb86f', type: "label" }, localization.translate('Address')), index.h("zonos-input", { key: 'f0efe937603a38761643af1486b53359a19593e5', class: "zonos--form-country", inputLabel: localization.translate('Country'), inputValue: country, isDisabled: true }), index.h("zonos-input", { key: '8360a4ae65c8963e886a3fb8322e0e539d121142', class: "zonos--form-line1", inputLabel: localization.translate('Address line 1'), inputValue: line1, isError: containsNonLatinChars.isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), index.h("zonos-input", { key: '2c9374917b705c2c9306d3d4d7fc4b4043c2b73b', class: "zonos--form-line2", inputLabel: localization.translate('Address line 2'), inputValue: line2, isError: containsNonLatinChars.isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), index.h("div", { key: 'fd067074070cadba3d895503f35c344ff817fec2', class: "zonos--address-row" }, index.h("zonos-input", { key: 'a565bee68e2498403df2801eb90005e8cb2d6f44', class: "zonos--form-city", inputLabel: localization.translate('City'), inputValue: city, isError: containsNonLatinChars.isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (index.h("zonos-input", { key: 'c5a14d96cef1d48cc82dcedaef21949a77251843', class: "zonos--form-state", inputLabel: localization.translate('State/Province'), inputValue: state, isError: containsNonLatinChars.isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), index.h("zonos-input", { key: 'a3359119c246a906f0c2305207b522324ccb16bf', class: "zonos--form-postal-code", inputLabel: localization.translate('Postal code'), inputValue: postal_code, isError: containsNonLatinChars.isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), index.h("zonos-input", { key: '0196f951181a52f923ffb7cd5d4395e42b86cd8a', class: "zonos--form-phone", inputLabel: localization.translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
87
+ }) }))), index.h("div", { key: '831483d5496ded27e71c1b4eb78bfb5ee8af52fb', class: "zonos--address" }, index.h("zonos-text", { key: '4d31ee6171c36401dda6653cedb43b81cf85a3cb', type: "label" }, localization.translate('Address')), index.h("zonos-input", { key: '9134efbee8a46c04873dded9985d4437766aba61', class: "zonos--form-country", inputLabel: localization.translate('Country'), inputValue: country, isDisabled: true }), index.h("zonos-input", { key: '4db075bee380c24ddfc706d7e72f631c9d451af3', class: "zonos--form-line1", inputLabel: localization.translate('Address line 1'), inputValue: line1, isError: containsNonLatinChars.isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), index.h("zonos-input", { key: '6866187e5de8caaed307b4ad3e49048ccf8b08af', class: "zonos--form-line2", inputLabel: localization.translate('Address line 2'), inputValue: line2, isError: containsNonLatinChars.isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), index.h("div", { key: '485f219a65abda705b20c4fdad0ec06d7b640f4c', class: "zonos--address-row" }, index.h("zonos-input", { key: '755a75893aaba7fd3be6842a4b29886f77a691bc', class: "zonos--form-city", inputLabel: localization.translate('City'), inputValue: city, isError: containsNonLatinChars.isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (index.h("zonos-input", { key: 'd66f0cf58169adb5c53a2c0e2cf308e66cd639ac', class: "zonos--form-state", inputLabel: localization.translate('State/Province'), inputValue: state, isError: containsNonLatinChars.isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), index.h("zonos-input", { key: '7fb5821a69f45779e616ef714c3774745b7cb0ca', class: "zonos--form-postal-code", inputLabel: localization.translate('Postal code'), inputValue: postal_code, isError: containsNonLatinChars.isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), index.h("zonos-input", { key: 'a45be76f3e8073c5ea152f2814c52201c12f6d3b', class: "zonos--form-phone", inputLabel: localization.translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
88
88
  }
89
89
  static get watchers() { return {
90
90
  "translatedAddress": ["watchCurrentAddress"]
@@ -1429,7 +1429,7 @@ const ZonosDialog = class {
1429
1429
  const borderStyle = getBorderRadius.getBorderRadius({
1430
1430
  overrideBorderStyle: this.borderStyle,
1431
1431
  });
1432
- return (index.h(index.Host, { key: 'a5e865f6ef72282447404923a8c1b9920ead47b1', class: classes.classes([
1432
+ return (index.h(index.Host, { key: '590c4e4902e0dbe713126b9ff156d063e8f8f8ad', class: classes.classes([
1433
1433
  'zonos--elements',
1434
1434
  this.open && 'open',
1435
1435
  this.isLoading && 'is-loading',
@@ -1441,10 +1441,10 @@ const ZonosDialog = class {
1441
1441
  '--zonos--height': this.height || 'initial',
1442
1442
  '--zonos--min-height': this.minHeight || '500px',
1443
1443
  '--zonos--width': this.width,
1444
- } }, index.h("div", { key: 'de67001c33a779ed467502d3f2300844034f9559', class: "zonos--backdrop" }), index.h("div", { key: 'ebdca7ccb32fcf7b4c60bf3d04b5de38b0668b75', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '668aa0ed4b56d7a8bfb2c93fbf045b60ae91c3e5', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: '2f7a7471b2665de6c33f194799a890756949a555', class: "zonos--loading" }, index.h("zonos-spinner", { key: '30432f6ab8ca578896138bcdc1bac0ed737fadb1', size: 30 }), this.loadingTitle && (index.h("zonos-text", { key: '17fc6c0e541f62118c6ce9dc5670b7023c99372c', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (index.h("zonos-text", { key: '8f278c76b5109c5b048c8c99f559c41240f2f2c0', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: '9967ec60be44a768192afc7afd09064001f2881e', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '12daab9cff11f16b396c8595c76e9e82cea790b2', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: '9ba377e1078166e81b3edb7a6f0925602bd271c5', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), index.h("div", { key: 'a467dd66e0feea9a2e035bf8af6ef4c5d43e88eb', class: classes.classes([
1444
+ } }, index.h("div", { key: '14a99268f7f0ab8c6c70764c8c1d5757e66b9dbf', class: "zonos--backdrop" }), index.h("div", { key: '05cddc36b2189cf234f6e83c39a83220c11ec43f', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '3b7160e77e0eedda0d01f46e338cc3923de4153d', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: '3257270ad5e27e55a4d5b68700c924c4d69a0aaa', class: "zonos--loading" }, index.h("zonos-spinner", { key: 'f9a3e2452daa08f8fd0a889a08ad39da3f28b1cc', size: 30 }), this.loadingTitle && (index.h("zonos-text", { key: 'a342fae51f881c7686e577769850d5105722d722', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (index.h("zonos-text", { key: '17e69ab28563fff1a2289dd1598b542d18a9350d', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: '2e9f0db72356193bd9789a21adbe35f29b456d9f', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '8f7e92cbf2ab27442f4b8901ce2f8ec826939bf0', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: 'da358aa5942534abaf67a065e6ccce4722f91f27', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), index.h("div", { key: '6abd9c5d6f7e1b8a533bdd878550009191905ff9', class: classes.classes([
1445
1445
  'zonos--body',
1446
1446
  this.noBodyPadding && 'zonos--no-body-padding',
1447
- ]) }, index.h("slot", { key: '7cb10ba057870384afa85d4492a39c2f01766641' })), index.h("slot", { key: 'e8a90958c50234218123ffbc65fe16980a35a169', name: "dialog-footer" })))));
1447
+ ]) }, index.h("slot", { key: 'a3bc9604905f1c1ff53a5dc5c022ad6145a98735' })), index.h("slot", { key: '717b33f0583845613702e989570a41e5a8b54f08', name: "dialog-footer" })))));
1448
1448
  }
1449
1449
  static get assetsDirs() { return ["assets"]; }
1450
1450
  };
@@ -7180,24 +7180,24 @@ const ZonosStripePhoneInput = class {
7180
7180
  .filter(Boolean)
7181
7181
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
7182
7182
  : [];
7183
- return (index.h(index.Host, { key: 'eb23ab75a61aa94b7d4299f39b77d38ec1cbec20', class: classes.classes([
7183
+ return (index.h(index.Host, { key: '35155697da59924b76afa4e5e23ef658ceb69bd7', class: classes.classes([
7184
7184
  'zonos--phone-input zonos--elements',
7185
7185
  isDark && 'dark',
7186
- ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '4690d6346d04820fa677e02483164f1e39c348ad', class: classes.classes([
7186
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '66c66da60fded977af4d5ef597a831ac117b3ed1', class: classes.classes([
7187
7187
  'zonos--label-wrapper',
7188
7188
  this.disabled && 'disabled',
7189
7189
  this.isFocused && 'focused',
7190
7190
  hasContent && 'has-content',
7191
7191
  this.error && 'has-error',
7192
7192
  this.inputLabel && 'has-label',
7193
- ]) }, index.h("select", { key: 'be7fab230afd6e19cb133d13f9d1f946893dd85e', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7193
+ ]) }, index.h("select", { key: 'a76b59a558272bda11c091bf977c90a1abd1fdbc', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7194
7194
  var _a;
7195
7195
  return (index.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, ")"));
7196
- })), index.h("div", { key: '2da719a561ed71bdaf6563249ceff2556b6a8323', class: "zonos--input-group" }, index.h("div", { key: 'bb533773af30f0c8c4be47f76ee642fd589a40b6', class: "zonos--select-wrapper" }, index.h("div", { key: '465e9b7b41ba99852cee2a36822e2a753d401337', class: "zonos--country-select" }, index.h("div", { key: '5f2ba6cd1937831f3b5cb61f98d501497534b758', class: "zonos--country-select-content" }, this.selectedCountry && (index.h("div", { key: '4f5861174efa761ec9285b5e8721b3b46d5979cb', class: "zonos--country-select-selected" }, index.h("div", { key: '47c28fd20118f92c9ee18e82ebdafdf212e6740e', class: "zonos--country-flag-wrapper" }, index.h("zonos-country-flag", { key: '28fae4f5074ca62d7592142878e3c8d48229a83e', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), index.h("div", { key: '9d940039033f7d09b9d6e2ac9f005e3b21060b70', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), index.h("div", { key: '5cbbee5f1405d05717873f287b3b6d3bb0f92ede', class: "zonos--select-chevron-wrapper" }, index.h("zonos-icon", { key: 'd6c493e07ee068a848e10debda7549f4cd4fc28b', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), index.h("div", { key: '2c4ec88e83d61e0305d53285c8bd5107f98eb15f', class: classes.classes([
7196
+ })), index.h("div", { key: '56cc5d0e6eedc76282df9f43f9384d5ea6eacf86', class: "zonos--input-group" }, index.h("div", { key: '28e2e4e627e3f7439e2d5b474632585da41d531a', class: "zonos--select-wrapper" }, index.h("div", { key: 'bb2e59a82ca9cb497efa705361d996debc424f60', class: "zonos--country-select" }, index.h("div", { key: '14b7d08d477383dc16db4c15bd6132a71206226c', class: "zonos--country-select-content" }, this.selectedCountry && (index.h("div", { key: 'e8a0cde2b080bf30314069656c132d21e4b3ac89', class: "zonos--country-select-selected" }, index.h("div", { key: '13c3a5947263770aa8fd15126dc386c6ea51ca79', class: "zonos--country-flag-wrapper" }, index.h("zonos-country-flag", { key: 'f9861e6165265b3095889bd1158ac9791032628c', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), index.h("div", { key: 'e0c54a4e62f6b5aa2d01c8bfdd8dac3338dbb45a', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), index.h("div", { key: 'e2c309de467ed0e4d7b26ea2a3bca4443e254b82', class: "zonos--select-chevron-wrapper" }, index.h("zonos-icon", { key: '36848392b8467f3118222ae9c22b1b02071a3350', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), index.h("div", { key: '3dba6c65337a2f36b16b7f8d0284c0fccade7846', class: classes.classes([
7197
7197
  'zonos--input-container',
7198
7198
  this.inputLabel && 'has-label',
7199
7199
  hasContent && 'has-content',
7200
- ]) }, index.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 && (index.h("div", { key: '4ff0d61108d5cc56381eec6f94a50485c149f360', class: "zonos--floated-label" }, index.h("label", { key: '37db631b0d55253787c0f2d8ae455bbf3ebfc8bb', htmlFor: this.inputId }, this.inputLabel || localization.translate('Phone number'))))))), this.error && (index.h("zonos-text", { key: '260b115c3efc9ece71cf31eb24a39efc4c21a64c', textColor: "red-600" }, this.error))));
7200
+ ]) }, index.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 && (index.h("div", { key: 'dc2f3d2b183f2e6ae24806c00c2e0d5852344287', class: "zonos--floated-label" }, index.h("label", { key: 'd039a17ad718f85e3566f83b8ceced43cac01b83', htmlFor: this.inputId }, this.inputLabel || localization.translate('Phone number'))))))), this.error && (index.h("zonos-text", { key: 'a15dcd089b02a952d4f29fdb6e9d88390ef2d2c2', textColor: "red-600" }, this.error))));
7201
7201
  }
7202
7202
  get el() { return index.getElement(this); }
7203
7203
  static get watchers() { return {
@@ -7313,14 +7313,14 @@ const ZonosStripeSelect = class {
7313
7313
  const fontSize = zonosStore.zonosStore.appearance.fontSizeInputValue || 16;
7314
7314
  const hasContent = this.internalValue || this.selectPlaceholder;
7315
7315
  const showClearButton = this.isClearable && this.internalValue && !this.isDisabled;
7316
- return (index.h(index.Host, { key: '62511439918e73ea4404c4b077c5da143b1459a7', class: classes.classes([
7316
+ return (index.h(index.Host, { key: 'c6bf5ed45fd7756985bd97b542933d25a472aa2c', class: classes.classes([
7317
7317
  'zonos--select zonos--elements',
7318
7318
  isDark && 'dark',
7319
7319
  this.isError && 'has-error',
7320
- ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: 'cc826990fe112f66682e522e2fbbe808b3017537', class: classes.classes([
7320
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '7ff61460b6ac3c5b3e6e35000f3713609a26ebe2', class: classes.classes([
7321
7321
  'zonos--label-wrapper',
7322
7322
  this.isDisabled && 'disabled',
7323
- ]) }, index.h("select", Object.assign({ key: '2803799a7226bf79d173093a4b1773ef57e122f8' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes.classes([
7323
+ ]) }, index.h("select", Object.assign({ key: '9d644b04d7b46621245581c5143d7310e1d5396d' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes.classes([
7324
7324
  'zonos--floated-select',
7325
7325
  !!this.selectLabel && 'has-label',
7326
7326
  hasContent && 'has-content',
@@ -7330,9 +7330,9 @@ const ZonosStripeSelect = class {
7330
7330
  this.selectChange.emit(select.value);
7331
7331
  this.selectedValue = select.value;
7332
7332
  this.el.dispatchEvent(new Event('change'));
7333
- }, required: this.required }), index.h("option", { key: 'ab93bc1a38ab1c897fc57c1b6a55941c021f6944', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || localization.translate('Select')), this.internalOptions.map(option => (index.h("option", { key: option.value, selected: this.internalValue === option.value ||
7333
+ }, required: this.required }), index.h("option", { key: 'b448bc3c2a083334108afad566feff22bf89547a', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || localization.translate('Select')), this.internalOptions.map(option => (index.h("option", { key: option.value, selected: this.internalValue === option.value ||
7334
7334
  // Sometimes google returns the label not the code for some countries
7335
- this.internalValue === option.label, value: option.value }, option.label)))), index.h("div", { key: '4d4995d1770bf99e05c0d1b6dbdddbe828f2b3b0', class: "zonos--floated-label" }, index.h("label", { key: '2b352cf1413f4a539c6f62d7df285dbea1629b77', htmlFor: this.selectId }, this.selectLabel)), index.h("div", { key: '707a0df092ed2196fa8e503d79448890a9e36616', class: "zonos--actions-wrapper" }, showClearButton && (index.h("button", { key: '83a605fd7d3799a1ce6f4300193c63722f3f8b7e', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, index.h("zonos-icon", { key: 'da9e65471ec1b4f89119a71db657f06903a11a3d', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), index.h("zonos-icon", { key: '4b479d3f9fae286e0ebb6290d9954f08982a4e5e', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (index.h("zonos-text", { key: '6c9e2fa9747064203763c00f39dbb08fb413cf0c', textColor: "red-600" }, this.error))));
7335
+ this.internalValue === option.label, value: option.value }, option.label)))), index.h("div", { key: '14b3c9dad1202d432ba2a30d03e8335aebaafa89', class: "zonos--floated-label" }, index.h("label", { key: '4e7870ce3eeaf4ea6fd116e3a486537bebb88c87', htmlFor: this.selectId }, this.selectLabel)), index.h("div", { key: '4567ca19c1e018d483105c23ca781e0bbd1d2c3a', class: "zonos--actions-wrapper" }, showClearButton && (index.h("button", { key: 'cdceea7255fdd19177b82c42878a6c4a20690a1a', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, index.h("zonos-icon", { key: '099b2f1a4fb475bfa76b0f4aeee9e66f27d473f3', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), index.h("zonos-icon", { key: '8c7fdaf2de40a14e4fa0f8f3598851edac1c1ae6', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (index.h("zonos-text", { key: '1cb569a7feeea85874c852a1c69cf88076fd6856', textColor: "red-600" }, this.error))));
7336
7336
  }
7337
7337
  get el() { return index.getElement(this); }
7338
7338
  static get watchers() { return {
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
6
  const throttle = require('./throttle-8aebac7d.js');
7
- const cart = require('./cart-c325b9e4.js');
8
- const localization = require('./localization-06cc0379.js');
7
+ const cart = require('./cart-ed2de167.js');
8
+ const localization = require('./localization-66d378ab.js');
9
9
  const zonosStore = require('./zonosStore-0662b95f.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
11
  const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-b8abf6de.js');
@@ -494,13 +494,13 @@ const ZonosConfirmDialog = class {
494
494
  const borderStyle = getBorderRadius.getBorderRadius();
495
495
  // Get theme for the update dialog, inherit from the theme, no from this component theme
496
496
  const theme = zonosStore.getZonosStoreTheme(zonosStore.zonosStore.appearance.theme);
497
- return (index.h(index.Host, { key: 'ae8a2dd88cbeeb8865f1ed67eae5d42356359d53', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
497
+ return (index.h(index.Host, { key: '459abd25f9719554dc3b4387a660618056909846', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
498
498
  '--zonos--border-radius': borderStyle,
499
499
  '--zonos--dialog-width': `${this.dialogWidth}px`,
500
500
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
501
- } }, index.h("div", { key: 'c0622ae7cbbe469554716558eb56c452f9693568', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: '3c42ad4fb2b793d65f564484126a519e97297743', class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: '18b46b2281cdf26b4dce3784b91a0ccd45cde7f2', class: "zonos--confirm-dialog", onBlur: () => {
501
+ } }, index.h("div", { key: 'f8a3c9bdbad91b046b3579eb140aad74e2784f8d', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: 'b41d27616223f89adb523269a3a8b982cd3559c7', class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: '69e7837a2aaaeea468e4887d14cbb0ea61d5f24a', class: "zonos--confirm-dialog", onBlur: () => {
502
502
  this.focusDialog();
503
- } }, index.h("div", { key: '9455881ea4d3c557b4de814235b0f66519e6fc6b', class: "wrapper" }, index.h("div", { key: '51f52ec83eb9fdbe1af20fdb0d149ce291597468', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: 'cdd954985d40e509eab4c15d063e1e7c9ebec839', class: "content" }, index.h("div", { key: '0ffddb684d1c33d421e2bf077fec01dba934a1e4', class: "title" }, index.h("zonos-text", { key: '5d778ebc6795ca69caf7df33503b6ec8ea3636c0', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: 'fab99060495ebeb545477e06417816c7fc8f9f3c', class: "subtitle" }, index.h("zonos-text", { key: 'c4baa52a5b53497db336018f62d5999e298d3ccf', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: '5d92f093bd1ee37ee54c4e771e73a1d2b6b7bb39', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: '0aa3788620a75732d72fca23c16b6b1a2fb694a0', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || localization.translate('Cancel'))), index.h("zonos-button", { key: 'a7195241b38061b363cae7b99828b714c96dbbff', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
503
+ } }, index.h("div", { key: '28ed6e2da0c8c56a00c46df985f21cf74c551894', class: "wrapper" }, index.h("div", { key: 'f20b3f00aeaef6fc306766a52607253554005cf4', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: '7bb44bb7a880c599a8cc4615df48257fd0f9c19d', class: "content" }, index.h("div", { key: '584603b01b26b5d242f14c67a14d7b092d54b668', class: "title" }, index.h("zonos-text", { key: '028e06e106587778f6da2301ee44727ab1bf487f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: 'c986563425dc6130fa154ce3c8e15c2aa03fb6cb', class: "subtitle" }, index.h("zonos-text", { key: '675899ceea2fd2de38ca8f87aa6ca69e4c7d8fc7', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: '8a034df1cd91f07e870fd6eccebc2f382edf59fb', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: '72e643fff73dabe0d5381e6ffc7f2237ef00f322', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || localization.translate('Cancel'))), index.h("zonos-button", { key: 'e247f450feef41b44688b937b38df8e061f386a3', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
504
504
  }
505
505
  static get assetsDirs() { return ["assets"]; }
506
506
  get el() { return index.getElement(this); }
@@ -734,7 +734,7 @@ const ZonosLoadingOverlay = class {
734
734
  this.size = 40;
735
735
  }
736
736
  render() {
737
- return (index.h(index.Host, { key: '3f830d0014a8988893b2cbde578035b1b8727ac5', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: '84371b0bb118aef5c4ec5e1c6903d699d5402c14', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: 'cf53766a1bbdf7433c5f7a1cf46e00bbd63f08b3', size: this.size, spinnerColor: this.spinnerColor }))));
737
+ return (index.h(index.Host, { key: '8216ba7271f4eb12153620d0268fd7b5dea632ad', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: 'ad3ab1b7e51b2de173e1b1a489bce3cdacc798f1', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: 'dc1dd642825268c01c5df120165a7aec85d121e9', size: this.size, spinnerColor: this.spinnerColor }))));
738
738
  }
739
739
  };
740
740
  ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
@@ -50,16 +50,16 @@ const ZonosBadge = class {
50
50
  this.loading = false;
51
51
  }
52
52
  render() {
53
- return (index.h(index.Host, { key: '76d8a0655e3d4009085f34ea0cbc56c180076081', class: classes.classes(['zonos--elements zonos--badge']), style: {
53
+ return (index.h(index.Host, { key: '219feb5a48098f89db6f6f338b54404a0d5368c6', class: classes.classes(['zonos--elements zonos--badge']), style: {
54
54
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
55
- } }, index.h("div", { key: 'c512b84c92030ad81f1a6180304fd79c2a3c3708', class: classes.classes([
55
+ } }, index.h("div", { key: '9e37e1cdeef718fcdd8ee8243ef29bebd42bbc71', class: classes.classes([
56
56
  'zonos--badge-content',
57
57
  this.badgeColor,
58
58
  this.rounded && 'rounded',
59
59
  this.iconRight && 'icon-right',
60
60
  this.size,
61
61
  this.bold && 'bold',
62
- ]) }, this.icon, index.h("zonos-text", { key: '680812e8220ca3ad0a18a90c5bb614b5fea13c38', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: 'e939a288add6c2936746ed4b40721d13c38e793c' })), this.dismissHandler && (index.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); } })))));
62
+ ]) }, this.icon, index.h("zonos-text", { key: '9c538e2fe65246332655820eee13b10e7c50327b', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: 'df06a399a7541a63703383b8340c594541cb8067' })), this.dismissHandler && (index.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); } })))));
63
63
  }
64
64
  };
65
65
  ZonosBadge.style = ZonosBadgeStyle0;
@@ -211,13 +211,13 @@ const ZonosButton = class {
211
211
  const borderStyle = getBorderRadius.getBorderRadius({
212
212
  overrideBorderStyle: this.borderStyle,
213
213
  });
214
- return (index.h(index.Host, { key: '0e8c9eaa41b5769793e8b598e675f74e76061a7d', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles.styles({
214
+ return (index.h(index.Host, { key: '8172735394435d60f27ff0b55d3bcd57c7327487', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles.styles({
215
215
  '--zonos--background-color': backgroundColor,
216
216
  '--zonos--border-radius': borderStyle,
217
217
  '--zonos--color': color,
218
218
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
219
219
  '--zonos--font-weight': this.bold ? 'bold' : 'normal',
220
- }) }, index.h("button", Object.assign({ key: '5de21db7f0fb00f327ffb9d9da450269e8493b43' }, this.inheritedAttributes, { class: classes.classes([
220
+ }) }, index.h("button", Object.assign({ key: 'c0afe56a3a2740aab6ed98311d6ea5d8a40fc390' }, this.inheritedAttributes, { class: classes.classes([
221
221
  this.hasIcon && 'has-icon',
222
222
  this.hasContent && 'has-content',
223
223
  this.noBackground && 'no-background',
@@ -232,7 +232,7 @@ const ZonosButton = class {
232
232
  backgroundColor && variant === 'standard' && 'override-background',
233
233
  ]), disabled: disabled, style: {
234
234
  justifyContent: this.justifyContent,
235
- } }), this.loading && (index.h("div", { key: 'ff288d4a7ab7fc79e7e66328e413034e653ddc13', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: '14f473f5f16407c020ae6163e5ccba00b6b8ea76', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: '3fdd8e722cf4cb730f3227fe0562011af106da28', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
235
+ } }), this.loading && (index.h("div", { key: '042ee0a9b02356aaf5b9332121e810782a3efff3', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: '2973bb0afdddcfffd1d17bf423776dace52d9f7f', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: '45c56c5839daf9bff44b424f2de43f02d37ca7cc', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
236
236
  }
237
237
  static get delegatesFocus() { return true; }
238
238
  get ele() { return index.getElement(this); }
@@ -6,10 +6,10 @@ const index = require('./index-b1f95d96.js');
6
6
  const zonosStore = require('./zonosStore-0662b95f.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const getBorderRadius = require('./getBorderRadius-a91911e7.js');
9
- const cart = require('./cart-c325b9e4.js');
10
- const localization = require('./localization-06cc0379.js');
9
+ const cart = require('./cart-ed2de167.js');
10
+ const localization = require('./localization-66d378ab.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
12
- const paypal = require('./paypal-b52e1f24.js');
12
+ const paypal = require('./paypal-d8282578.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
14
  require('./isDarkColor-e317bb06.js');
15
15
  require('./isContrastColor-a02c4889.js');
@@ -39,16 +39,16 @@ const ZonosCard = class {
39
39
  customRoundRadius: `${this.borderRadius}px`,
40
40
  overrideBorderStyle: 'ROUNDED',
41
41
  });
42
- return (index.h(index.Host, { key: '04b66449d19c5862587b5ef4b2f7cb32524b03bd', style: {
42
+ return (index.h(index.Host, { key: 'ae124207be3fbddbd445d74cdf31085401a09c67', style: {
43
43
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
44
- } }, index.h("div", { key: '218a1def4d384b3bf589e87ca657168de2cea3e5', class: classes.classes(['styled-card']), style: {
44
+ } }, index.h("div", { key: '43fe2ffcb7caa0754c93f6d94898156f5169139b', class: classes.classes(['styled-card']), style: {
45
45
  '--zonos--background-color': backgroundColor,
46
46
  '--zonos--border-radius': borderRadius,
47
47
  padding: this.spacing,
48
- } }, this.label && (index.h("header", { key: 'bc5f2eaa90786860e20e40987df70e0cc9c527bb', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: '90be1e3b9cd28f5a7aacf79c65c56e14a37bc019', type: "subheader" }, this.label), index.h("h-stack", { key: 'c25845c181e02eadca3cacb2d73c7173ba0a1a50', spacing: 8 }, this.actions))), index.h("slot", { key: '1e875f0fc6d86ae7cc5bdcdc0fc509bdcc1e1862' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: '8fdca089c61d02ca14946dc3aaa8cb62c2feae99', class: "card-footer", style: {
48
+ } }, this.label && (index.h("header", { key: '6839065e2e630a841d6ecd7f03b19a93a988e49a', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: '498435bbbb60cc6d1d13a304aad321107bd6feaf', type: "subheader" }, this.label), index.h("h-stack", { key: '4de3f042a72b16be374209b393cb174fc7d1b670', spacing: 8 }, this.actions))), index.h("slot", { key: 'add9dac3d8b9a50c0caa37d245f632c6a5e64d7f' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: 'e83f37ed24b44d9b7316579ee28ea51a3da119d8', class: "card-footer", style: {
49
49
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
50
50
  padding: this.spacing,
51
- } }, index.h("div", { key: '801f46a84cbb1185185ee35f51bf211f09d5aaee' }, this.footerContent), index.h("h-stack", { key: 'c995fab1c343973cf5da3079b99baa8b11af2903', spacing: 8 }, this.footerActions))))));
51
+ } }, index.h("div", { key: '685721d5f7f51c99438f4ddf23cf75122db3223c' }, this.footerContent), index.h("h-stack", { key: '61a44c918aea4994c10b16045564b45135296852', spacing: 8 }, this.footerActions))))));
52
52
  }
53
53
  };
54
54
  ZonosCard.style = ZonosCardStyle0;