@zonos/elements 1.3.218 → 1.3.219

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 (397) hide show
  1. package/dist/cjs/buildCartItemsByTempCart-309fcebf.js +28 -0
  2. package/dist/cjs/{cart-c54d05ce.js → cart-9a2b32e4.js} +90 -47
  3. package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
  4. package/dist/cjs/index.cjs.js +19 -9
  5. package/dist/cjs/isCollectMobileTablet-7e57fd90.js +172 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/localization-b12edb2a.js +738 -0
  8. package/dist/cjs/{paypal-d36b5dd1.js → paypal-e80871d0.js} +12 -8
  9. package/dist/cjs/placeTestOrder-8222fe95.js +93 -0
  10. package/dist/cjs/{localization-ab7e1902.js → translationStore-20a6d8bf.js} +963 -734
  11. package/dist/cjs/zonos-address_11.cjs.entry.js +102 -72
  12. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  13. package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  15. package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +73 -1292
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +25 -48
  17. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
  19. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +810 -0
  20. package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
  21. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
  23. package/dist/cjs/zonos-controller.cjs.entry.js +84 -28
  24. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
  25. package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -10
  26. package/dist/cjs/zonos-elements.cjs.js +1 -1
  27. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +15 -5
  28. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +34 -33
  29. package/dist/cjs/zonos-hello.cjs.entry.js +8 -7
  30. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -5
  32. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  33. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
  35. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  36. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  37. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  38. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  39. package/dist/collection/collection-manifest.json +10 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +3 -0
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
  43. package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
  44. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
  45. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
  46. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
  47. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
  48. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
  49. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +84 -0
  50. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +403 -0
  51. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
  52. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
  53. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
  54. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
  58. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
  59. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
  60. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
  61. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
  62. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
  63. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
  64. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
  65. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
  66. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +68 -0
  67. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
  68. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
  69. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
  70. package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
  71. package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
  72. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  73. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  74. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  75. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  76. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  77. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  78. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  79. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  80. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  81. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  82. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.css +38 -0
  83. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
  84. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  85. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  86. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  87. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  88. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  89. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  90. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  91. package/dist/collection/components/common/zonos-skeleton/assets/RemoveLineIcon.svg +3 -0
  92. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
  93. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
  94. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
  95. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  96. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  97. package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
  98. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  99. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  100. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  101. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  102. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  103. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  104. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  105. package/dist/collection/components/main/zonos-controller.js +91 -25
  106. package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
  107. package/dist/collection/components/store/checkout/cart.js +36 -15
  108. package/dist/collection/components/store/checkout/collect.js +157 -0
  109. package/dist/collection/components/store/checkout/paypal.js +4 -2
  110. package/dist/collection/components/store/checkout/stripe.js +31 -12
  111. package/dist/collection/components/store/translationStore/strings.arabic.js +48 -0
  112. package/dist/collection/components/store/translationStore/strings.base.js +48 -0
  113. package/dist/collection/components/store/translationStore/strings.chinese.js +48 -0
  114. package/dist/collection/components/store/translationStore/strings.danish.js +48 -0
  115. package/dist/collection/components/store/translationStore/strings.dutch.js +48 -0
  116. package/dist/collection/components/store/translationStore/strings.french.js +48 -0
  117. package/dist/collection/components/store/translationStore/strings.german.js +48 -0
  118. package/dist/collection/components/store/translationStore/strings.hebrew.js +48 -0
  119. package/dist/collection/components/store/translationStore/strings.indonesian.js +48 -0
  120. package/dist/collection/components/store/translationStore/strings.italian.js +48 -0
  121. package/dist/collection/components/store/translationStore/strings.japanese.js +48 -0
  122. package/dist/collection/components/store/translationStore/strings.korean.js +48 -0
  123. package/dist/collection/components/store/translationStore/strings.norwegian.js +48 -0
  124. package/dist/collection/components/store/translationStore/strings.polish.js +48 -0
  125. package/dist/collection/components/store/translationStore/strings.portuguese.js +48 -0
  126. package/dist/collection/components/store/translationStore/strings.russian.js +48 -0
  127. package/dist/collection/components/store/translationStore/strings.spanish.js +48 -0
  128. package/dist/collection/components/store/translationStore/strings.swedish.js +48 -0
  129. package/dist/collection/components/store/translationStore/strings.turkish.js +48 -0
  130. package/dist/collection/components/store/translationStore/strings.vietnamese.js +48 -0
  131. package/dist/collection/components/store/translationStore.js +2 -1
  132. package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
  133. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  134. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  135. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +15 -2
  136. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  137. package/dist/collection/components/utils/checkout/initCollect.js +15 -0
  138. package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
  139. package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
  140. package/dist/collection/components/utils/renderFallback.js +7 -0
  141. package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
  142. package/dist/collection/scripts/_zonosBase.js +7 -1
  143. package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
  144. package/dist/collection/types/generated/graphql.internal.types.js +103 -0
  145. package/dist/collection/types/index.js +1 -0
  146. package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
  147. package/dist/esm/{cart-bb0ee971.js → cart-acf4ebf5.js} +68 -27
  148. package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
  149. package/dist/esm/index.js +19 -9
  150. package/dist/esm/isCollectMobileTablet-b72b81c5.js +165 -0
  151. package/dist/esm/loader.js +1 -1
  152. package/dist/esm/localization-8646f526.js +719 -0
  153. package/dist/esm/{paypal-bd4520eb.js → paypal-2fa930eb.js} +7 -4
  154. package/dist/esm/placeTestOrder-d1ad9cf6.js +90 -0
  155. package/dist/esm/{localization-d8326254.js → translationStore-c9743292.js} +963 -718
  156. package/dist/esm/zonos-address_11.entry.js +71 -41
  157. package/dist/esm/zonos-badge.entry.js +3 -3
  158. package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
  159. package/dist/esm/zonos-button_3.entry.js +3 -3
  160. package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +23 -1240
  161. package/dist/esm/zonos-checkout.entry.js +6 -29
  162. package/dist/esm/zonos-collapse.entry.js +2 -2
  163. package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
  164. package/dist/esm/zonos-collect-finish_6.entry.js +801 -0
  165. package/dist/esm/zonos-collect.entry.js +464 -0
  166. package/dist/esm/zonos-component.entry.js +1 -1
  167. package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
  168. package/dist/esm/zonos-controller.entry.js +84 -28
  169. package/dist/esm/zonos-country-flag.entry.js +2 -1
  170. package/dist/esm/zonos-country-select_4.entry.js +11 -10
  171. package/dist/esm/zonos-elements.js +1 -1
  172. package/dist/esm/zonos-empty-state-payment_4.entry.js +15 -5
  173. package/dist/esm/zonos-hello-dialog.entry.js +6 -5
  174. package/dist/esm/zonos-hello.entry.js +2 -1
  175. package/dist/esm/zonos-input.entry.js +4 -4
  176. package/dist/esm/zonos-language-select_2.entry.js +6 -5
  177. package/dist/esm/zonos-link.entry.js +1 -1
  178. package/dist/esm/zonos-logo.entry.js +2 -2
  179. package/dist/esm/zonos-stripe-input.entry.js +9 -6
  180. package/dist/esm/zonos-text.entry.js +1 -1
  181. package/dist/esm/zonos-toggle.entry.js +2 -2
  182. package/dist/esm/zonos-tooltip.entry.js +2 -2
  183. package/dist/esm/zonos-v-stack.entry.js +2 -2
  184. package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
  185. package/dist/esm-es5/cart-acf4ebf5.js +1 -0
  186. package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
  187. package/dist/esm-es5/index.js +1 -1
  188. package/dist/esm-es5/isCollectMobileTablet-b72b81c5.js +1 -0
  189. package/dist/esm-es5/loader.js +1 -1
  190. package/dist/esm-es5/localization-8646f526.js +1 -0
  191. package/dist/esm-es5/paypal-2fa930eb.js +17 -0
  192. package/dist/esm-es5/placeTestOrder-d1ad9cf6.js +1 -0
  193. package/dist/esm-es5/translationStore-c9743292.js +1 -0
  194. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  195. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  196. package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
  197. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  198. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  199. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  200. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  201. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
  202. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
  203. package/dist/esm-es5/zonos-collect.entry.js +1 -0
  204. package/dist/esm-es5/zonos-component.entry.js +1 -1
  205. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
  206. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  207. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  208. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  209. package/dist/esm-es5/zonos-elements.js +1 -1
  210. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  211. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  212. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  213. package/dist/esm-es5/zonos-input.entry.js +1 -1
  214. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  215. package/dist/esm-es5/zonos-link.entry.js +1 -1
  216. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  217. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  218. package/dist/esm-es5/zonos-text.entry.js +1 -1
  219. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  220. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  221. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  222. package/dist/scripts/index.d.ts +470 -3
  223. package/dist/scripts/index.js +1 -1
  224. package/dist/scripts/loadZonos.js +1 -1
  225. package/dist/scripts/zonos.js +1 -1
  226. package/dist/types/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
  227. package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +49 -0
  228. package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
  229. package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
  230. package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
  231. package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
  232. package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
  233. package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
  234. package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
  235. package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
  236. package/dist/types/components/main/zonos-controller.d.ts +5 -0
  237. package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
  238. package/dist/types/components/store/checkout/cart.d.ts +23 -3
  239. package/dist/types/components/store/checkout/collect.d.ts +21 -0
  240. package/dist/types/components/store/checkout/paypal.d.ts +4 -3
  241. package/dist/types/components/store/checkout/stripe.d.ts +6 -2
  242. package/dist/types/components/store/translationStore/strings.arabic.d.ts +48 -0
  243. package/dist/types/components/store/translationStore/strings.base.d.ts +48 -0
  244. package/dist/types/components/store/translationStore/strings.chinese.d.ts +48 -0
  245. package/dist/types/components/store/translationStore/strings.danish.d.ts +48 -0
  246. package/dist/types/components/store/translationStore/strings.dutch.d.ts +48 -0
  247. package/dist/types/components/store/translationStore/strings.french.d.ts +48 -0
  248. package/dist/types/components/store/translationStore/strings.german.d.ts +48 -0
  249. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +48 -0
  250. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +48 -0
  251. package/dist/types/components/store/translationStore/strings.italian.d.ts +48 -0
  252. package/dist/types/components/store/translationStore/strings.japanese.d.ts +48 -0
  253. package/dist/types/components/store/translationStore/strings.korean.d.ts +48 -0
  254. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +48 -0
  255. package/dist/types/components/store/translationStore/strings.polish.d.ts +48 -0
  256. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +48 -0
  257. package/dist/types/components/store/translationStore/strings.russian.d.ts +48 -0
  258. package/dist/types/components/store/translationStore/strings.spanish.d.ts +48 -0
  259. package/dist/types/components/store/translationStore/strings.swedish.d.ts +48 -0
  260. package/dist/types/components/store/translationStore/strings.turkish.d.ts +48 -0
  261. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +48 -0
  262. package/dist/types/components/store/translationStore.d.ts +2 -1
  263. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
  264. package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +2 -0
  265. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  266. package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
  267. package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
  268. package/dist/types/components/utils/renderFallback.d.ts +6 -0
  269. package/dist/types/components.d.ts +401 -2
  270. package/dist/types/scripts/_zonosBase.d.ts +5 -0
  271. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
  272. package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
  273. package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
  274. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
  275. package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
  276. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  277. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  278. package/dist/types/types/generated/graphql.internal.types.d.ts +431 -9
  279. package/dist/types/types/generated/graphql.internal.types.ts +428 -10
  280. package/dist/types/types/index.d.ts +1 -0
  281. package/dist/zonos-elements/index.esm.js +1 -1
  282. package/dist/zonos-elements/{p-288761b1.system.entry.js → p-009c3ac5.system.entry.js} +1 -1
  283. package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-03980f76.entry.js} +1 -1
  284. package/dist/zonos-elements/p-07bea979.system.js +1 -0
  285. package/dist/zonos-elements/p-0cec2dd2.system.entry.js +1 -0
  286. package/dist/zonos-elements/p-0d6c6a38.entry.js +1 -0
  287. package/dist/zonos-elements/p-0ef2a242.js +1 -0
  288. package/dist/zonos-elements/p-106ae0f1.entry.js +1 -0
  289. package/dist/zonos-elements/p-10797d2b.system.entry.js +1 -0
  290. package/dist/zonos-elements/p-195b33b6.system.entry.js +1 -0
  291. package/dist/zonos-elements/p-1fe5d4da.system.entry.js +1 -0
  292. package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-2323ff0f.system.entry.js} +1 -1
  293. package/dist/zonos-elements/p-23293a0b.entry.js +1 -0
  294. package/dist/zonos-elements/{p-62813488.entry.js → p-23735db6.entry.js} +1 -1
  295. package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-26573347.entry.js} +1 -1
  296. package/dist/zonos-elements/{p-e640e8b8.entry.js → p-29499a5f.entry.js} +1 -1
  297. package/dist/zonos-elements/p-29c80a34.js +1 -0
  298. package/dist/zonos-elements/{p-edc77ea1.entry.js → p-2a9681b4.entry.js} +1 -1
  299. package/dist/zonos-elements/{p-3f31901f.entry.js → p-2c9381be.entry.js} +1 -1
  300. package/dist/zonos-elements/p-2cc031b3.js +17 -0
  301. package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-34a37ce7.system.entry.js} +1 -1
  302. package/dist/zonos-elements/p-3c9714a8.system.entry.js +1 -0
  303. package/dist/zonos-elements/p-485416ec.js +1 -0
  304. package/dist/zonos-elements/p-56ee6d4b.system.entry.js +1 -0
  305. package/dist/zonos-elements/p-58afbe2b.entry.js +1 -0
  306. package/dist/zonos-elements/p-5e372fb9.entry.js +1 -0
  307. package/dist/zonos-elements/p-5ff4f9df.system.js +1 -0
  308. package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-60c61982.system.entry.js} +1 -1
  309. package/dist/zonos-elements/p-61c2c336.entry.js +1 -0
  310. package/dist/zonos-elements/p-6696617a.system.entry.js +1 -0
  311. package/dist/zonos-elements/p-6761091e.entry.js +1 -0
  312. package/dist/zonos-elements/p-6761286d.js +1 -0
  313. package/dist/zonos-elements/p-69451a50.system.js +1 -0
  314. package/dist/zonos-elements/p-69fd1b88.js +1 -0
  315. package/dist/zonos-elements/p-6dd63754.system.js +1 -0
  316. package/dist/zonos-elements/p-6e8aae27.system.entry.js +1 -0
  317. package/dist/zonos-elements/{p-1c45cd15.entry.js → p-70b81bbc.entry.js} +1 -1
  318. package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-750b7f32.system.entry.js} +1 -1
  319. package/dist/zonos-elements/p-772ac0b7.js +1 -0
  320. package/dist/zonos-elements/p-81b357f7.system.js +1 -1
  321. package/dist/zonos-elements/p-81e23f30.system.js +1 -0
  322. package/dist/zonos-elements/p-873b698a.entry.js +1 -0
  323. package/dist/zonos-elements/p-87e2a777.entry.js +1 -0
  324. package/dist/zonos-elements/p-8ca25e6c.entry.js +1 -0
  325. package/dist/zonos-elements/p-909d36bf.entry.js +1 -0
  326. package/dist/zonos-elements/p-95461a1b.system.entry.js +1 -0
  327. package/dist/zonos-elements/p-986ebccc.js +1 -0
  328. package/dist/zonos-elements/p-9c0b78bf.system.entry.js +1 -0
  329. package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
  330. package/dist/zonos-elements/p-a7204d41.entry.js +1 -0
  331. package/dist/zonos-elements/p-aca272ea.entry.js +1 -0
  332. package/dist/zonos-elements/p-b12ec9f2.system.entry.js +1 -0
  333. package/dist/zonos-elements/p-b1bd9fe7.system.entry.js +1 -0
  334. package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
  335. package/dist/zonos-elements/{p-77666360.entry.js → p-b5406d26.entry.js} +1 -1
  336. package/dist/zonos-elements/p-bfbc081f.entry.js +1 -0
  337. package/dist/zonos-elements/p-c0a54cf6.system.js +1 -0
  338. package/dist/zonos-elements/p-c3c9b089.entry.js +1 -0
  339. package/dist/zonos-elements/p-c8784a01.system.entry.js +1 -0
  340. package/dist/zonos-elements/{p-7b5de646.entry.js → p-d045e2e5.entry.js} +1 -1
  341. package/dist/zonos-elements/p-d26cffba.entry.js +1 -0
  342. package/dist/zonos-elements/{p-544c173a.system.entry.js → p-d351ece6.system.entry.js} +1 -1
  343. package/dist/zonos-elements/p-d63696ac.system.js +17 -0
  344. package/dist/zonos-elements/p-ddb29c2a.system.entry.js +1 -0
  345. package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-dfb92907.entry.js} +1 -1
  346. package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-e2a45188.system.entry.js} +1 -1
  347. package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-e455f060.system.entry.js} +1 -1
  348. package/dist/zonos-elements/p-eb54ece4.system.entry.js +1 -0
  349. package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
  350. package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-f0be0ca9.system.entry.js} +1 -1
  351. package/dist/zonos-elements/p-f129a83b.system.entry.js +1 -0
  352. package/dist/zonos-elements/p-f17fde5f.system.js +1 -0
  353. package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-f74a6b78.system.entry.js} +1 -1
  354. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  355. package/package.json +1 -1
  356. package/dist/cjs/zonos-card.cjs.entry.js +0 -49
  357. package/dist/esm/zonos-card.entry.js +0 -45
  358. package/dist/esm-es5/cart-bb0ee971.js +0 -1
  359. package/dist/esm-es5/localization-d8326254.js +0 -1
  360. package/dist/esm-es5/paypal-bd4520eb.js +0 -17
  361. package/dist/esm-es5/zonos-banner.entry.js +0 -1
  362. package/dist/esm-es5/zonos-card.entry.js +0 -1
  363. package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
  364. package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
  365. package/dist/zonos-elements/p-0631d2b9.js +0 -1
  366. package/dist/zonos-elements/p-0a6ac265.system.js +0 -1
  367. package/dist/zonos-elements/p-0f041dc5.system.entry.js +0 -1
  368. package/dist/zonos-elements/p-1432a217.system.entry.js +0 -1
  369. package/dist/zonos-elements/p-1b51b738.system.entry.js +0 -1
  370. package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
  371. package/dist/zonos-elements/p-3b8d11dd.entry.js +0 -1
  372. package/dist/zonos-elements/p-4333afcb.entry.js +0 -1
  373. package/dist/zonos-elements/p-4d0d89da.system.entry.js +0 -1
  374. package/dist/zonos-elements/p-5dd9cb44.system.entry.js +0 -1
  375. package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
  376. package/dist/zonos-elements/p-674981ad.system.js +0 -1
  377. package/dist/zonos-elements/p-6d090b53.entry.js +0 -1
  378. package/dist/zonos-elements/p-73c8c551.system.entry.js +0 -1
  379. package/dist/zonos-elements/p-795d223d.entry.js +0 -1
  380. package/dist/zonos-elements/p-8218ff62.system.entry.js +0 -1
  381. package/dist/zonos-elements/p-82f80c8a.entry.js +0 -1
  382. package/dist/zonos-elements/p-88f7256d.js +0 -1
  383. package/dist/zonos-elements/p-8b083884.entry.js +0 -1
  384. package/dist/zonos-elements/p-a449940d.entry.js +0 -1
  385. package/dist/zonos-elements/p-a5a4ad2f.entry.js +0 -1
  386. package/dist/zonos-elements/p-a5d45585.system.entry.js +0 -1
  387. package/dist/zonos-elements/p-a751e819.system.entry.js +0 -1
  388. package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
  389. package/dist/zonos-elements/p-b4792af0.entry.js +0 -1
  390. package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
  391. package/dist/zonos-elements/p-d3dbae8c.system.js +0 -1
  392. package/dist/zonos-elements/p-d55aec11.system.entry.js +0 -1
  393. package/dist/zonos-elements/p-ebb9b902.system.js +0 -17
  394. package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
  395. package/dist/zonos-elements/p-ef75da6f.js +0 -17
  396. package/dist/zonos-elements/p-f3dbe934.entry.js +0 -1
  397. package/dist/zonos-elements/p-f741407e.system.entry.js +0 -1
@@ -1,12 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-55a03023.js';
2
2
  import { d as debounce_1 } from './debounce-c34d1270.js';
3
3
  import { d as isObject_1, z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-c456b933.js';
4
- import { c as stripeStore, t as trackConversionEvent, G as extractName, q as stripeStorePrefetchLandedCost, e as cartStore } from './cart-bb0ee971.js';
5
- import { s as storageStore, n as storageStoreOnChange, o as getFallbackDefaultCountryCode, t as translate, l as localizationStore } from './localization-d8326254.js';
4
+ import { c as stripeStore, t as trackConversionEvent, J as extractName, A as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, e as cartStore } from './cart-acf4ebf5.js';
5
+ import { s as storageStore, n as getFallbackDefaultCountryCode, o as storageStoreOnChange, l as localizationStore } from './localization-8646f526.js';
6
+ import { t as translate } from './translationStore-c9743292.js';
6
7
  import { b as logError, l as log, i as isCheckoutMobile } from './handleFetch-99218189.js';
7
8
  import { s as shouldRenderTaxIdInput, i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './shouldRenderTaxIdInput-8bc112bb.js';
8
- import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
9
9
  import { c as classes } from './classes-0d95c529.js';
10
+ import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
10
11
  import { g as getBorderRadius } from './getBorderRadius-87593ff4.js';
11
12
  import { R as RemoveIcon$2 } from './RemoveIcon-9dc5dd1a.js';
12
13
  import { i as isDarkColor } from './isDarkColor-1f58b6be.js';
@@ -91,7 +92,7 @@ const ZonosAddress$1 = class {
91
92
  registerInstance(this, hostRef);
92
93
  this.invalidCharacters = createEvent(this, "invalidCharacters", 7);
93
94
  this.taxIdChanged = createEvent(this, "taxIdChanged", 7);
94
- this.onStoreCheckoutSessionIdChangedSubscription = () => { };
95
+ this.storeUnsubscribeList = [];
95
96
  /**
96
97
  * Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
97
98
  */
@@ -127,14 +128,6 @@ const ZonosAddress$1 = class {
127
128
  */
128
129
  this.trackingSent = false;
129
130
  this.prefetchLandedCost = throttle_1(stripeStorePrefetchLandedCost, 1000);
130
- this.onStoreCheckoutSessionIdChanged = () => {
131
- const onCheckoutSessionIdChange = () => {
132
- this.checkoutSessionId = storageStore.checkoutSessionId;
133
- };
134
- // Trigger it once on init because onChange doesn't get triggered on initial load
135
- onCheckoutSessionIdChange();
136
- this.onStoreCheckoutSessionIdChangedSubscription = storageStoreOnChange('checkoutSessionId', onCheckoutSessionIdChange);
137
- };
138
131
  }
139
132
  getStripeAddressInstance() {
140
133
  if (this.type === 'billing') {
@@ -344,12 +337,14 @@ const ZonosAddress$1 = class {
344
337
  } }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
345
338
  }
346
339
  renderCompanyNameInput() {
347
- // No need to render company name for billing address
348
- if (this.type === 'billing') {
340
+ // No need to render company name for billing address (only allow for Collect)
341
+ if (this.type === 'billing' && !window.Zonos.isCollect) {
349
342
  return null;
350
343
  }
351
- // only render the company input if the setting is enabled
352
- const isCompanyNameEnabled = zonosStore.checkoutSettings.companyFieldsStatus === 'ENABLED';
344
+ // only render the company input if the setting is enabled or the cart is collect
345
+ const isCompanyNameEnabled = zonosStore.checkoutSettings.companyFieldsStatus === 'ENABLED' ||
346
+ !!window.Zonos.isCollect;
347
+ // No need to render company name for billing address (only allow for Collect)
353
348
  if (!isCompanyNameEnabled) {
354
349
  return null;
355
350
  }
@@ -361,8 +356,11 @@ const ZonosAddress$1 = class {
361
356
  // destroy the stripe element when this component is removed from the DOM, so that we can re-create the new one with previous value
362
357
  const stripeElement = this.getStripeAddressInstance().stripeAddressElement;
363
358
  stripeElement === null || stripeElement === void 0 ? void 0 : stripeElement.destroy();
364
- // cleanup checkout session id subscription
365
- this.onStoreCheckoutSessionIdChangedSubscription();
359
+ // unsubscribe from store subscriptions
360
+ try {
361
+ this.storeUnsubscribeList.forEach(subscription => subscription());
362
+ }
363
+ catch (_a) { }
366
364
  }
367
365
  componentDidLoad() {
368
366
  const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
@@ -371,7 +369,22 @@ const ZonosAddress$1 = class {
371
369
  stripeAddressEventData.value.address.line1.length > 0;
372
370
  // @Watch doesn't get trigger on initial load
373
371
  void this.watchInitStripe();
374
- this.onStoreCheckoutSessionIdChanged();
372
+ this.checkoutSessionId = storageStore.checkoutSessionId;
373
+ this.storeUnsubscribeList = [
374
+ storageStoreOnChange('checkoutSessionId', () => {
375
+ this.checkoutSessionId = storageStore.checkoutSessionId;
376
+ }),
377
+ stripeStoreOnChange('stripeElements', () => {
378
+ if (this.type === 'shipping') {
379
+ void this.watchInitStripe();
380
+ }
381
+ }),
382
+ stripeStoreOnChange('stripeElementsForBillingAddress', () => {
383
+ if (this.type === 'billing') {
384
+ void this.watchInitStripe();
385
+ }
386
+ }),
387
+ ];
375
388
  }
376
389
  render() {
377
390
  var _a;
@@ -380,7 +393,11 @@ const ZonosAddress$1 = class {
380
393
  this.isAddressFilled = true;
381
394
  }
382
395
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
383
- return (h(Host, { key: '13b9fdc214b7ffeacaa180f1ba0d49032b417b6f', class: "zonos--address zonos--elements" }, h("zonos-text", { key: '7a6ec3c462293e85926b0f379860d8d4edfe6120', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '36c094186e6ce2ce1d1c4e8f56823fd032b3ad9e', class: "zonos--address-component" })));
396
+ return (h(Host, { key: 'ef89e6e083ce9c9bed0bed4653cbc40d451456c0', class: classes([
397
+ 'zonos--address',
398
+ 'zonos--elements',
399
+ `zonos--${this.type}-address`,
400
+ ]) }, this.titleText && (h("zonos-text", { key: '62e73e9284617c5e4f78f25f7160bb4e23246554', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: 'b268422f6e4aa09e74ebac9d3a4c0d7a6594e95e', class: "zonos--address-component" })));
384
401
  }
385
402
  get el() { return getElement(this); }
386
403
  static get watchers() { return {
@@ -542,9 +559,9 @@ const ZonosAddressSuggestions = class {
542
559
  return segments;
543
560
  }
544
561
  render() {
545
- return (h(Host, { key: 'eeb520d24c5cebca1f425c9648a2bdf0269f74c9', class: "zonos--address-suggestions", role: "group", style: {
562
+ return (h(Host, { key: '3f22f5bcf968d02e34fe46101b8ea4cf4e89051f', class: "zonos--address-suggestions", role: "group", style: {
546
563
  '--zonos--border-radius': getBorderRadius(),
547
- } }, h("ul", { key: 'f7ac29ef14417f8c86dbafcf840204f4c964b3ad', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: '13d34e64d8bd7711268a1f5641d0c868a89b949c', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '00f20bd5568762ee581462826410031273e808da', class: "powered-by-container" }, h("zonos-text", { key: 'fc61a8ec973fc2cdf1e137563617cfed0badbb12', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '96343fe696ec0d3990ffebaf450306ca91624d04', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: 'e7c6a9e64c8976a3c3a521b0794d2e82c1919ce2', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
564
+ } }, h("ul", { key: 'fc77bda0480b2b2ef0d2b89cc36413d56f84f90b', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: '0981dd0c7e522605417fb72c61d88bde629fada4', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: 'c307293f2d06cb7ea0e9c8d6ee0dd9b017ff2e5e', class: "powered-by-container" }, h("zonos-text", { key: 'a0776ea17615339f10ea7d623a40d9de90fcdbb4', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: '6ffdc7d0475a8718372c760b51f2128b0b81e78e', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '6c168c20f1906ba4658998c7bd1e0b0eba860da1', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
548
565
  this.localSuggestions = [];
549
566
  } }))), this.localSuggestions.map(suggestion => (
550
567
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -814,14 +831,14 @@ const ZonosCheckbox = class {
814
831
  customRoundRadius: '4px',
815
832
  overrideBorderStyle: this.borderStyle,
816
833
  });
817
- return (h(Host, { key: '177059d9f1ad06324719d97e02a48bb582fcc3d4', class: classes(['zonos--elements zonos--checkbox']), style: {
834
+ return (h(Host, { key: 'ed6ed1ac5c6074f98774ada05250e1d983780a70', class: classes(['zonos--elements zonos--checkbox']), style: {
818
835
  '--zonos--background-color': backgroundColor,
819
836
  '--zonos--border-radius': borderStyle,
820
837
  '--zonos--font-family': zonosStoreFontFamily(),
821
838
  '--zonos--size': `${this.size}px`,
822
- } }, h("label", { key: '15c39a6c58b9d70e5174bb4d51ab6b8b8a48cabc', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: '1a6c85de7ca83822cc8e648a84f49580f520429a', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
839
+ } }, h("label", { key: 'f46fe447e995ca0df8f82046d2a37f31b62df3e2', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: '8708ce90dc7451b5961dff73bf4b5dbedb3c7644', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
823
840
  this.checkboxSelected.emit(e.target.checked);
824
- }, type: "checkbox" }), h("span", { key: '8b498b0a271f07de4e2481a173aecb732a935c5b', class: "checkmark-container" }, h("svg", { key: '5d98f7b34f424942dfbd1071f82a5c4f481ac5a9', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'ed79a224a05fa5bfa5f08f71e374d595e7e4c480', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: '6af368e40ed1a260f76aa014591e472004978d0c', size: this.fontSize }, this.label)))));
841
+ }, type: "checkbox" }), h("span", { key: '22b016bfadb12f57d9bd955b2d0e0179d927c8d3', class: "checkmark-container" }, h("svg", { key: '9a973d0b7179afee009660bc9d92b7b76799b716', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '147c9637eb74a77b65e53d56a9a3ab9551f7dd5e', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: '766b3ecb99db3d3b04669141515feed892103211', size: this.fontSize }, this.label)))));
825
842
  }
826
843
  };
827
844
  ZonosCheckbox.style = ZonosCheckboxStyle0;
@@ -1734,10 +1751,10 @@ const ZonosAddress = class {
1734
1751
  this.country = localizationStore.selectedCountryCode;
1735
1752
  }
1736
1753
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
1737
- return (h(Host, { key: '9e1d9e1ed3fca30876ba8310510873a5b10c6552', class: classes([
1754
+ return (h(Host, { key: '29e26b9b269ea277ae508671f0c63483910ad50b', class: classes([
1738
1755
  'zonos--address zonos--elements',
1739
1756
  `zonos--${this.type}-address`,
1740
- ]) }, h("zonos-text", { key: '2356d42946b3ed93c4670fb876101a1371ac5c14', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1757
+ ]) }, h("zonos-text", { key: 'db6f6cb94da02e5f2c9aca8112ab20e11148281e', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1741
1758
  }
1742
1759
  get el() { return getElement(this); }
1743
1760
  static get watchers() { return {
@@ -1847,7 +1864,7 @@ const ZonosDialog = class {
1847
1864
  const borderStyle = getBorderRadius({
1848
1865
  overrideBorderStyle: this.borderStyle,
1849
1866
  });
1850
- return (h(Host, { key: 'a9932187bccf8e7fa505c7e07175d03541d66852', class: classes([
1867
+ return (h(Host, { key: 'ba80fedf4f3e98c4de3d81a36104de00366cbb1a', class: classes([
1851
1868
  'zonos--elements',
1852
1869
  this.open && 'open',
1853
1870
  this.isLoading && 'is-loading',
@@ -1859,10 +1876,10 @@ const ZonosDialog = class {
1859
1876
  '--zonos--height': this.height || 'initial',
1860
1877
  '--zonos--min-height': this.minHeight || '500px',
1861
1878
  '--zonos--width': this.width,
1862
- } }, h("div", { key: '0298cf365a50e3544656a6d27ae59e922b9e3aed', class: "zonos--backdrop" }), h("div", { key: '9fce580a07147d51f17c898a22204c3d9ce6ac7b', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: 'b168439cd985cc5c0166a653db206688504cf7dd', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'e0b6215f3c7bc939721669069bc294e08558d8b5', class: "zonos--loading" }, h("zonos-spinner", { key: '687bcd6d2695933de828484c34aff1230bf71d49', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '04a57a4add896e3d96faca8b77321bba5f00b889', class: "zonos--header" }, this.headerText && (h("h3", { key: 'd084cb3aedcb7e5bb8fd82012b57f441d7dce4a2', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: 'c62701d002586d92f80d1d30644ae3948afc18f6', 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: 'a8aa531565e52672573785a613ab87a970189616', class: classes([
1879
+ } }, h("div", { key: '7e61114b6ceb1b39a4f0bb1a0719851d4035bfd3', class: "zonos--backdrop" }), h("div", { key: '459a309060ff4ef98cc0eb2a80363394218f07b7', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: '3c4299b298ed8eb163ac5a70153347741032726f', class: "zonos--dialog" }, this.isLoading && (h("div", { key: '0cfd40a79ed8916a47eaaa914ef1ccdd623e8efc', class: "zonos--loading" }, h("zonos-spinner", { key: 'ca3aeb6aa6586a01763b6170814e30a325428508', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '61824114fbb326d323ea2dda14ed28209567d4d6', class: "zonos--header" }, this.headerText && (h("h3", { key: '9c4916f1787d0157f130aeb0ca29e2e871d1dfc6', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: 'e80895fa1d8ea6d945cebb97392c5fb4b6df7c7b', 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: '5cfd70cd4c22b44494c4e62ed6c7af0f3a81f955', class: classes([
1863
1880
  'zonos--body',
1864
1881
  this.noBodyPadding && 'zonos--no-body-padding',
1865
- ]) }, h("slot", { key: 'ede82b27d9e73f27ad0212203e0483a8294f72e5' })), h("slot", { key: '084c3a055462fbf8f25e336891e0dbb5faed7ed7', name: "dialog-footer" })))));
1882
+ ]) }, h("slot", { key: 'c5e818b28959cd89c466cc355cba40e56b49be7f' })), h("slot", { key: '4ded95d727eea855fa7af8a1c34fb0de9dfb7fca', name: "dialog-footer" })))));
1866
1883
  }
1867
1884
  static get assetsDirs() { return ["assets"]; }
1868
1885
  };
@@ -1880,6 +1897,7 @@ const ZonosLinkAuthentication = class {
1880
1897
  constructor(hostRef) {
1881
1898
  registerInstance(this, hostRef);
1882
1899
  this.linkAuthenticationChange = createEvent(this, "linkAuthenticationChange", 7);
1900
+ this.storeUnsubscribeList = [];
1883
1901
  /**
1884
1902
  * Default email for stripe
1885
1903
  */
@@ -1976,7 +1994,19 @@ const ZonosLinkAuthentication = class {
1976
1994
  void this.watchInitStripe();
1977
1995
  }, 5);
1978
1996
  }
1997
+ disconnectedCallback() {
1998
+ // unsubscribe from store subscriptions
1999
+ try {
2000
+ this.storeUnsubscribeList.forEach(subscription => subscription());
2001
+ }
2002
+ catch (_a) { }
2003
+ }
1979
2004
  componentDidLoad() {
2005
+ this.storeUnsubscribeList = [
2006
+ stripeStoreOnChange('stripeElements', () => {
2007
+ void this.watchInitStripe();
2008
+ }),
2009
+ ];
1980
2010
  // @Watch doesn't get trigger on initial load
1981
2011
  this.watchInitStripe();
1982
2012
  if (!this.defaultEmail) {
@@ -2009,7 +2039,7 @@ const ZonosLinkAuthentication = class {
2009
2039
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
2010
2040
  return (h(Host, { class: "zonos--link-authentication zonos--elements", style: {
2011
2041
  '--zonos--border-radius': getBorderRadius(),
2012
- } }, h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText), renderEmailAddress(), this.isEmailError && (h("zonos-text", { textColor: "red-600" }, translate('Please enter a valid email address.')))));
2042
+ } }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), renderEmailAddress(), this.isEmailError && (h("zonos-text", { textColor: "red-600" }, translate('Please enter a valid email address.')))));
2013
2043
  }
2014
2044
  get el() { return getElement(this); }
2015
2045
  static get watchers() { return {
@@ -8045,24 +8075,24 @@ const ZonosStripePhoneInput = class {
8045
8075
  .filter(Boolean)
8046
8076
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
8047
8077
  : [];
8048
- return (h(Host, { key: '0d4501947787cbafe38acb60fb5ee7519b6d1c73', class: classes([
8078
+ return (h(Host, { key: 'f357f000b98bfd0e23731df7d253ffc47f404c30', class: classes([
8049
8079
  'zonos--phone-input zonos--elements',
8050
8080
  isDark && 'dark',
8051
- ]), "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: 'c3e0f9655a39a5bb3d838634754be2af60a24a10', class: classes([
8081
+ ]), "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: 'cd201f36c0dddac8669ec8272f0fe7ee49b5b0a2', class: classes([
8052
8082
  'zonos--label-wrapper',
8053
8083
  this.disabled && 'disabled',
8054
8084
  this.isFocused && 'focused',
8055
8085
  hasContent && 'has-content',
8056
8086
  this.error && 'has-error',
8057
8087
  this.inputLabel && 'has-label',
8058
- ]) }, h("select", { key: '1a58471117f6748d511498e016814bd907e8775f', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
8088
+ ]) }, h("select", { key: '4ce5b03c7d4ac4736af7b11f1823d48c53556558', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
8059
8089
  var _a;
8060
8090
  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, ")"));
8061
- })), h("div", { key: '9c785521e095aae0cfc8af3ea90e4924c97202ac', class: "zonos--input-group" }, h("div", { key: 'b7fdd9db255ce33f3b6d3a982162c8286963324c', class: "zonos--select-wrapper" }, h("div", { key: '5d378436580df53793b1508af5e34bd43ba33ddf', class: "zonos--country-select" }, h("div", { key: '94628459db88e355b1c62b74cfcb48ec03022d4e', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: '96b332ed9c62413887f96f38ce26cb05b81a3132', class: "zonos--country-select-selected" }, h("div", { key: 'b9e5bda55328f57e15afd349789233e3c28d2bf9', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: 'fc595df21c09553dc8ffb7fe79c3043831e65298', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: '6c792c383acf3ccac02be6b954a7eb18bcdda817', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: '970b9f6e18152e04375a248669fd7314088bcd2e', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '1da5919014eee0e34b60d1df08e83d44ad20d5c2', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '7f0c215ddfb59c8e3c4413e44941a477a8adc6d6', class: classes([
8091
+ })), h("div", { key: 'efca78810bebc70a51f49c6f1720168717253b74', class: "zonos--input-group" }, h("div", { key: 'c785838e12d00237cb9a0fff97e1c2b0e2faf692', class: "zonos--select-wrapper" }, h("div", { key: '30d97ae277344d381a2fdf3fedf1f006ce66f801', class: "zonos--country-select" }, h("div", { key: '44d4488d45067e11acb2d8279cdb12eeffddd5c0', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: 'bbeadca415fb4aab84b8fddf92e143df70700444', class: "zonos--country-select-selected" }, h("div", { key: '2aed839d75ebde1c9423e9075ed84e005e8697c3', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: 'c1117e4b9d58cb1010b95c0aeb8b7fe102b13a2c', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: '63609f20f44a7d8171ece2afc9995c21b1eda697', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: 'e0c46b926f5cda986793d8e60f49625219a21354', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '3e2ceaf3df3e6767ad25551ae090dcc9288000c2', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '10751ee273ad5d6531afc7fb700718605e32cbcd', class: classes([
8062
8092
  'zonos--input-container',
8063
8093
  this.inputLabel && 'has-label',
8064
8094
  hasContent && 'has-content',
8065
- ]) }, h("input", Object.assign({ key: 'e3ce0b598baf78452eddaab38c80bb4f0c548a5a' }, 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: 'a108f2796571f9d8a4201d1906b2381b89d14bc2', class: "zonos--floated-label" }, h("label", { key: '50d308311270bbd8635bb7848495ee4aaa2a0cac', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: '27b0233f9241ce68348b2efd1c1b525d083363e5', textColor: "red-600" }, this.error))));
8095
+ ]) }, h("input", Object.assign({ key: '506609e5191068451bc47968a232846df4c17724' }, 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: '35f9894f905c8617564d3fc11f78cd3fbfef7a3c', class: "zonos--floated-label" }, h("label", { key: '9c768de7833455c630803f1ef1b4d7babc4f3cae', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: 'dd78d93a0ca2ae1384059cb08b839a1573a03e29', textColor: "red-600" }, this.error))));
8066
8096
  }
8067
8097
  get el() { return getElement(this); }
8068
8098
  static get watchers() { return {
@@ -8178,14 +8208,14 @@ const ZonosStripeSelect = class {
8178
8208
  const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
8179
8209
  const hasContent = this.internalValue || this.selectPlaceholder;
8180
8210
  const showClearButton = this.isClearable && this.internalValue && !this.isDisabled;
8181
- return (h(Host, { key: '18d7ba03b9136af8614874b13b9ac3ce85f7c0d0', class: classes([
8211
+ return (h(Host, { key: 'bbc6df8df4a9cce0ad94cc48a99cba74ac116873', class: classes([
8182
8212
  'zonos--select zonos--elements',
8183
8213
  isDark && 'dark',
8184
8214
  this.isError && 'has-error',
8185
- ]), "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: '88b8d885c11bc0776bd0c25b5f0a08f91cfb7c72', class: classes([
8215
+ ]), "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: '757ff4b0b9be9206d03a917a07cc2af6f43152f5', class: classes([
8186
8216
  'zonos--label-wrapper',
8187
8217
  this.isDisabled && 'disabled',
8188
- ]) }, h("select", Object.assign({ key: 'd972a6a7b91bb51f2d5ed291a686d521c1bf82a3' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
8218
+ ]) }, h("select", Object.assign({ key: '1a6cc4dcb3bc97879fb6a78c8323c9d32c0bac6d' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
8189
8219
  'zonos--floated-select',
8190
8220
  !!this.selectLabel && 'has-label',
8191
8221
  hasContent && 'has-content',
@@ -8195,9 +8225,9 @@ const ZonosStripeSelect = class {
8195
8225
  this.selectChange.emit(select.value);
8196
8226
  this.selectedValue = select.value;
8197
8227
  this.el.dispatchEvent(new Event('change'));
8198
- }, required: this.required }), h("option", { key: 'b67730b2c3e77ba60221320519f55e67d7d2b127', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
8228
+ }, required: this.required }), h("option", { key: '1f19c659824019af0a922c8f2ccde33364e0d566', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
8199
8229
  // Sometimes google returns the label not the code for some countries
8200
- this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: '088c104006e983b5ec1680067af32c0479dde13b', class: "zonos--floated-label" }, h("label", { key: 'faf3bf337253d205265b181d65d8f8024ffd6124', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: '7ce8d36b84b08df139877cd2e12a26b8157ce83b', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: 'b0a1af08afd9792ba4e7989361219c5cf7d5d8bc', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: '50ae86d5e9d9722b5546997f9fd52a997cac3add', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: '30034030f97f7ed6b3027cbc5220c73cde4bbbc2', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: 'cd02da8b1a1cb81581ac7285af84193000692eaa', textColor: "red-600" }, this.error))));
8230
+ this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: '88d5729ef8d458d4a925eecb691fafaeaca51dff', class: "zonos--floated-label" }, h("label", { key: '9c8a9f0777649765a725a275c24385742017ea9d', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: 'cfbf4de8d163b8151a3715847c0de73cb44a3104', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: 'b39e96fc0667d2526efbe3af89473801c0c33b89', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: '6f8e626dbcbb17ac103ed9bd9998b3cc6e063d8d', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: '13f3cb171d1e4cc0678204a7fdeabcb801b9ef70', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: '45c44644373adf202f88629171fdf9d32e6c2871', textColor: "red-600" }, this.error))));
8201
8231
  }
8202
8232
  get el() { return getElement(this); }
8203
8233
  static get watchers() { return {
@@ -46,16 +46,16 @@ const ZonosBadge = class {
46
46
  this.loading = false;
47
47
  }
48
48
  render() {
49
- return (h(Host, { key: 'd8a6a11f10c36a272ecdb52c54919f9ad45e1a9a', class: classes(['zonos--elements zonos--badge']), style: {
49
+ return (h(Host, { key: '1da500c8477b6f425f2a7ac11a66f598dceba5d0', class: classes(['zonos--elements zonos--badge']), style: {
50
50
  '--zonos--font-family': zonosStoreFontFamily(),
51
- } }, h("div", { key: 'c7573446a478f9b9e45a4787593ba9ecaf595fdc', class: classes([
51
+ } }, h("div", { key: 'b3692740733f6d0745164763b334d8ca06a25220', 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: '578f7cf2f27be3306fc7c776dc82a7a324a8b3ca', textColor: `${this.badgeColor}-800` }, h("slot", { key: '0b59f674e40454dcf07bea704f38c9df7d68cb43' })), this.dismissHandler && (h("zonos-icon", { key: 'ff4e2ee7511940df9ec27830e406502d7acf5209', "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: '4db8c88a1f0623f3dd575529b787eff8e5fcc8da', textColor: `${this.badgeColor}-800` }, h("slot", { key: 'bd288d8425236a176b33f71710ee7ecaf952a0e9' })), this.dismissHandler && (h("zonos-icon", { key: '095187937379f1df13b2ff09178ed0b7847fc2ee', "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;
@@ -1,6 +1,7 @@
1
1
  import { r as registerInstance, h, H as Host } from './index-55a03023.js';
2
2
  import { f as zonosStoreFontFamily } from './zonosStore-c456b933.js';
3
3
  import { c as classes } from './classes-0d95c529.js';
4
+ import { g as getBorderRadius } from './getBorderRadius-87593ff4.js';
4
5
  import './VarianceTest-fef2d958.js';
5
6
 
6
7
  const zonosBannerCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:\"icon header\" \". content\";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}";
@@ -69,4 +70,42 @@ const ZonosBanner = class {
69
70
  };
70
71
  ZonosBanner.style = ZonosBannerStyle0;
71
72
 
72
- export { ZonosBanner as zonos_banner };
73
+ const zonosCardCss = ":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";
74
+ const ZonosCardStyle0 = zonosCardCss;
75
+
76
+ const ZonosCard = class {
77
+ constructor(hostRef) {
78
+ registerInstance(this, hostRef);
79
+ /**
80
+ * The border radius of the card
81
+ * @default 6
82
+ */
83
+ this.borderRadius = 6;
84
+ /**
85
+ * The spacing to apply between elements in the card
86
+ */
87
+ this.spacing = '24px';
88
+ }
89
+ render() {
90
+ const backgroundColor = this.backgroundColor
91
+ ? `var(--zonos-elements-${this.backgroundColor})`
92
+ : 'transparent';
93
+ const borderRadius = getBorderRadius({
94
+ customRoundRadius: `${this.borderRadius}px`,
95
+ overrideBorderStyle: 'ROUNDED',
96
+ });
97
+ return (h(Host, { key: '78d54ed310efdfe81e04b74ec950035399db94bd', style: {
98
+ '--zonos--font-family': zonosStoreFontFamily(),
99
+ } }, h("div", { key: 'd32389820440988adb75b0fcd5b4e3da766d00d7', class: classes(['styled-card']), style: {
100
+ '--zonos--background-color': backgroundColor,
101
+ '--zonos--border-radius': borderRadius,
102
+ padding: this.spacing,
103
+ } }, this.label && (h("header", { key: '4f68ebe6493cb839ad863ab663a12480cbdcbb52', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '85aece20f1a0028be6e1839ea87caff7a2f07973', type: "subheader" }, this.label), h("h-stack", { key: '54342a00a12daddda98948d7905de77e3754625a', spacing: 8 }, this.actions))), h("slot", { key: '8fc09c873f0c9437d334c0b374aa778fa7b54ab9' }), (this.footerActions || this.footerContent) && (h("footer", { key: '70a2d11a92149e38c5ad3f3c393c2f13d4b4d356', class: "card-footer", style: {
104
+ height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
105
+ padding: this.spacing,
106
+ } }, h("div", { key: 'a6cb5f0d7700072ad00437d17772611219bd871e' }, this.footerContent), h("h-stack", { key: '88b62d9969204756c26b27da1575059894e491a9', spacing: 8 }, this.footerActions))))));
107
+ }
108
+ };
109
+ ZonosCard.style = ZonosCardStyle0;
110
+
111
+ export { ZonosBanner as zonos_banner, ZonosCard as zonos_card };
@@ -207,13 +207,13 @@ const ZonosButton = class {
207
207
  const borderStyle = getBorderRadius({
208
208
  overrideBorderStyle: this.borderStyle,
209
209
  });
210
- return (h(Host, { key: '88cc4ce2ac8a82e62ac4a5a3828724b92da1db60', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
210
+ return (h(Host, { key: 'aa9addffbd4d082cd46259078b2d6b02bf79e0b2', 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: '4037731e2337e441a2eeb5e28433ba8426cb75b2' }, this.inheritedAttributes, { class: classes([
216
+ }) }, h("button", Object.assign({ key: 'afc39851d100fee8868d1977e19e0cca59c493ac' }, 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: '09f824b2106313200deaa1bdcb7afc3e3b161911', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: 'b094e740a91c49a14a31fc56142dccf1062a584b', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '8bfc81ae6f5f114a0255854aa79db32a5ee39259', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
231
+ } }), this.loading && (h("div", { key: '2bedbc66b1e3aa14217ee9043cd8b49c60fe7e02', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '0f0cc196919a08927fc18a384a2722cc3020220f', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'fec8347641037537c56399970f840c064d0363df', 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); }