@zonos/elements 1.3.281 → 1.3.282

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 (341) hide show
  1. package/dist/cjs/{cart-3313cb0c.js → cart-dc31b242.js} +2 -1
  2. package/dist/cjs/{collect-2659c5af.js → collect-463ab3d7.js} +2 -2
  3. package/dist/cjs/getMissingRequiredShippingFields-7cd21100.js +50 -0
  4. package/dist/cjs/{hasInclusivePrice-d132daaa.js → hasInclusivePrice-d14b9d71.js} +1 -1
  5. package/dist/cjs/index.cjs.js +7 -7
  6. package/dist/cjs/{invoice-26f52c07.js → invoice-8c995041.js} +2 -2
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{localization-6189080f.js → localization-491121ad.js} +240 -0
  9. package/dist/cjs/{paypal-f6a256b5.js → paypal-2a4c374c.js} +2 -2
  10. package/dist/cjs/{placeTestOrder-695f2b32.js → placeTestOrder-a940a2e9.js} +2 -2
  11. package/dist/cjs/{renderCheckoutCurrency-fe56094f.js → renderCheckoutCurrency-ab39875a.js} +2 -2
  12. package/dist/cjs/{zonos-address-display_8.cjs.entry.js → zonos-address-completion-dialog_7.cjs.entry.js} +141 -149
  13. package/dist/cjs/zonos-address-display_2.cjs.entry.js +150 -0
  14. package/dist/cjs/zonos-address_4.cjs.entry.js +73 -12
  15. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  17. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  18. package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
  19. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +89 -20
  20. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
  21. package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
  22. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  23. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
  24. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +19 -19
  25. package/dist/cjs/zonos-collect.cjs.entry.js +4 -4
  26. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  27. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  28. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  30. package/dist/cjs/zonos-elements.cjs.js +1 -1
  31. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
  32. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  33. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  34. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
  35. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -14
  36. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  37. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  38. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  39. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  40. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +3 -3
  41. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  42. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  43. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  44. package/dist/collection/collection-manifest.json +1 -0
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.css +105 -0
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.js +341 -0
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +5 -5
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +3 -3
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
  50. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
  51. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  52. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +52 -2
  53. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
  54. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
  58. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
  59. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
  60. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
  61. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  62. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
  63. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  64. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  65. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  66. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  67. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  68. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  69. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  70. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  71. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  72. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  73. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  74. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  75. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  76. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  77. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  78. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  79. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  80. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  81. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  82. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  83. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  84. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  85. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  86. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  87. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  88. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  89. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  90. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  91. package/dist/collection/components/main/zonos-controller.js +1 -1
  92. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  93. package/dist/collection/components/store/checkout/stripe.js +1 -1
  94. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  95. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  96. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  97. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  98. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  99. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  100. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  101. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  102. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  103. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  104. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  105. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  106. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  107. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  108. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  109. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  110. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  111. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  112. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  113. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  114. package/dist/collection/components/stripe/zonos-address/zonos-address.js +11 -6
  115. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  116. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  117. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  118. package/dist/collection/components/utils/checkout/applyAddressCompletion.js +23 -0
  119. package/dist/collection/components/utils/checkout/buildAddressContacts.js +57 -0
  120. package/dist/collection/components/utils/checkout/getMissingRequiredShippingFields.js +44 -0
  121. package/dist/esm/{cart-c66ec17e.js → cart-5282f6c1.js} +2 -2
  122. package/dist/esm/{collect-915fd59d.js → collect-fdbab973.js} +2 -2
  123. package/dist/esm/getMissingRequiredShippingFields-bdeecbff.js +47 -0
  124. package/dist/esm/{hasInclusivePrice-6fd935f3.js → hasInclusivePrice-161e203f.js} +1 -1
  125. package/dist/esm/index.js +7 -7
  126. package/dist/esm/{invoice-2a17c93c.js → invoice-cf6ad79e.js} +2 -2
  127. package/dist/esm/loader.js +1 -1
  128. package/dist/esm/{localization-6d36209f.js → localization-0953a048.js} +240 -0
  129. package/dist/esm/{paypal-cae1d404.js → paypal-7c82eac4.js} +2 -2
  130. package/dist/esm/{placeTestOrder-955269d2.js → placeTestOrder-6a746207.js} +2 -2
  131. package/dist/esm/{renderCheckoutCurrency-951386a5.js → renderCheckoutCurrency-44f897a1.js} +2 -2
  132. package/dist/esm/{zonos-address-display_8.entry.js → zonos-address-completion-dialog_7.entry.js} +142 -149
  133. package/dist/esm/zonos-address-display_2.entry.js +145 -0
  134. package/dist/esm/zonos-address_4.entry.js +73 -12
  135. package/dist/esm/zonos-airwallex-payment.entry.js +3 -3
  136. package/dist/esm/zonos-badge.entry.js +3 -3
  137. package/dist/esm/zonos-button_3.entry.js +3 -3
  138. package/dist/esm/zonos-card_5.entry.js +9 -9
  139. package/dist/esm/zonos-cart-items_12.entry.js +90 -21
  140. package/dist/esm/zonos-checkbox_2.entry.js +5 -5
  141. package/dist/esm/zonos-checkout.entry.js +3 -3
  142. package/dist/esm/zonos-collapse.entry.js +2 -2
  143. package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
  144. package/dist/esm/zonos-collect-finish_6.entry.js +19 -19
  145. package/dist/esm/zonos-collect.entry.js +4 -4
  146. package/dist/esm/zonos-component.entry.js +1 -1
  147. package/dist/esm/zonos-controller.entry.js +3 -3
  148. package/dist/esm/zonos-country-flag.entry.js +1 -1
  149. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  150. package/dist/esm/zonos-elements.js +1 -1
  151. package/dist/esm/zonos-hello-dialog.entry.js +6 -6
  152. package/dist/esm/zonos-hello.entry.js +1 -1
  153. package/dist/esm/zonos-input.entry.js +4 -4
  154. package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
  155. package/dist/esm/zonos-invoice-finish_5.entry.js +14 -14
  156. package/dist/esm/zonos-invoice.entry.js +4 -4
  157. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  158. package/dist/esm/zonos-link.entry.js +1 -1
  159. package/dist/esm/zonos-logo.entry.js +2 -2
  160. package/dist/esm/zonos-policy-consent_2.entry.js +3 -3
  161. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  162. package/dist/esm/zonos-tooltip.entry.js +2 -2
  163. package/dist/esm/zonos-v-stack.entry.js +2 -2
  164. package/dist/esm-es5/{cart-c66ec17e.js → cart-5282f6c1.js} +1 -1
  165. package/dist/esm-es5/{collect-915fd59d.js → collect-fdbab973.js} +1 -1
  166. package/dist/esm-es5/getMissingRequiredShippingFields-bdeecbff.js +1 -0
  167. package/dist/esm-es5/{hasInclusivePrice-6fd935f3.js → hasInclusivePrice-161e203f.js} +1 -1
  168. package/dist/esm-es5/index.js +1 -1
  169. package/dist/esm-es5/{invoice-2a17c93c.js → invoice-cf6ad79e.js} +1 -1
  170. package/dist/esm-es5/loader.js +1 -1
  171. package/dist/esm-es5/localization-0953a048.js +1 -0
  172. package/dist/esm-es5/{paypal-cae1d404.js → paypal-7c82eac4.js} +1 -1
  173. package/dist/esm-es5/{placeTestOrder-955269d2.js → placeTestOrder-6a746207.js} +1 -1
  174. package/dist/esm-es5/{renderCheckoutCurrency-951386a5.js → renderCheckoutCurrency-44f897a1.js} +1 -1
  175. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -0
  176. package/dist/esm-es5/zonos-address-display_2.entry.js +1 -0
  177. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  178. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  179. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  180. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  181. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  182. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  183. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  184. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  185. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  186. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  187. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  188. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  189. package/dist/esm-es5/zonos-component.entry.js +1 -1
  190. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  191. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  192. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  193. package/dist/esm-es5/zonos-elements.js +1 -1
  194. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  195. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  196. package/dist/esm-es5/zonos-input.entry.js +1 -1
  197. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  198. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  199. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  200. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  201. package/dist/esm-es5/zonos-link.entry.js +1 -1
  202. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  203. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  204. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  205. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  206. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  207. package/dist/scripts/index.d.ts +123 -0
  208. package/dist/scripts/index.js +1 -1
  209. package/dist/scripts/loadZonos.js +1 -1
  210. package/dist/scripts/zonos.js +1 -1
  211. package/dist/types/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.d.ts +75 -0
  212. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +16 -0
  213. package/dist/types/components/store/checkout/stripe.d.ts +4 -0
  214. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  215. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  216. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  217. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  218. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  219. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  220. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  221. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  222. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  223. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  224. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  225. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  226. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  227. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  228. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  229. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  230. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  231. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  232. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  233. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  234. package/dist/types/components/utils/checkout/applyAddressCompletion.d.ts +25 -0
  235. package/dist/types/components/utils/checkout/buildAddressContacts.d.ts +21 -0
  236. package/dist/types/components/utils/checkout/getMissingRequiredShippingFields.d.ts +35 -0
  237. package/dist/types/components.d.ts +97 -0
  238. package/dist/zonos-elements/index.esm.js +1 -1
  239. package/dist/zonos-elements/p-0287f9cd.system.js +1 -0
  240. package/dist/zonos-elements/{p-5aee5de5.system.entry.js → p-05cb0a0d.system.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-03fda4a8.entry.js → p-0fb4e032.entry.js} +1 -1
  242. package/dist/zonos-elements/{p-727387ed.entry.js → p-10584546.entry.js} +1 -1
  243. package/dist/zonos-elements/p-193fc2da.entry.js +1 -0
  244. package/dist/zonos-elements/p-1977f4b5.js +1 -0
  245. package/dist/zonos-elements/p-1cf5e2ce.system.entry.js +1 -0
  246. package/dist/zonos-elements/p-1cf76dd3.entry.js +1 -0
  247. package/dist/zonos-elements/p-1d31b966.system.js +1 -0
  248. package/dist/zonos-elements/{p-0ad6a92b.system.entry.js → p-21489ff1.system.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-734d646b.entry.js → p-21f7d57b.entry.js} +1 -1
  250. package/dist/zonos-elements/p-2394b186.system.js +1 -0
  251. package/dist/zonos-elements/{p-edf613ea.entry.js → p-23eee868.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-b5f67807.entry.js → p-26bf0c31.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-ddf68916.system.js → p-28ee0860.system.js} +1 -1
  254. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  255. package/dist/zonos-elements/{p-6df6cb8a.entry.js → p-30cfc9f4.entry.js} +1 -1
  256. package/dist/zonos-elements/{p-5677d31f.entry.js → p-323279b8.entry.js} +1 -1
  257. package/dist/zonos-elements/{p-8c54aaec.entry.js → p-32b53999.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-c15476a1.system.entry.js → p-333f6018.system.entry.js} +1 -1
  259. package/dist/zonos-elements/p-3642dd99.entry.js +1 -0
  260. package/dist/zonos-elements/p-3c62acbd.js +1 -0
  261. package/dist/zonos-elements/{p-4441c451.entry.js → p-4417475f.entry.js} +1 -1
  262. package/dist/zonos-elements/p-543b25f9.entry.js +1 -0
  263. package/dist/zonos-elements/{p-1992fd91.entry.js → p-55c5977b.entry.js} +1 -1
  264. package/dist/zonos-elements/{p-b406bb39.entry.js → p-56e9a29e.entry.js} +1 -1
  265. package/dist/zonos-elements/{p-5e1aad7d.entry.js → p-59518657.entry.js} +1 -1
  266. package/dist/zonos-elements/p-5953208b.js +1 -0
  267. package/dist/zonos-elements/p-5987dea1.js +1 -0
  268. package/dist/zonos-elements/{p-a44591f6.system.entry.js → p-5a37683b.system.entry.js} +1 -1
  269. package/dist/zonos-elements/{p-36b311f9.system.entry.js → p-5b11bbca.system.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-a34269b1.system.entry.js → p-5d6b018c.system.entry.js} +1 -1
  271. package/dist/zonos-elements/p-63b462dd.system.entry.js +1 -0
  272. package/dist/zonos-elements/p-646e6b47.system.entry.js +1 -0
  273. package/dist/zonos-elements/{p-060c521b.system.entry.js → p-68631285.system.entry.js} +1 -1
  274. package/dist/zonos-elements/{p-683ec0bf.entry.js → p-6f874ed9.entry.js} +1 -1
  275. package/dist/zonos-elements/p-71fc8a22.js +1 -0
  276. package/dist/zonos-elements/{p-a6773627.entry.js → p-76e36d6d.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-a3d3ce5d.system.entry.js → p-781b3345.system.entry.js} +1 -1
  278. package/dist/zonos-elements/{p-156891c5.js → p-7ab15d20.js} +1 -1
  279. package/dist/zonos-elements/{p-3246d120.js → p-7c70e0c7.js} +1 -1
  280. package/dist/zonos-elements/p-8418aa07.entry.js +1 -0
  281. package/dist/zonos-elements/{p-99e8743e.system.entry.js → p-8fa3a8f8.system.entry.js} +1 -1
  282. package/dist/zonos-elements/{p-5a61c301.system.entry.js → p-8fb15a6b.system.entry.js} +1 -1
  283. package/dist/zonos-elements/{p-30067eed.entry.js → p-95042e71.entry.js} +1 -1
  284. package/dist/zonos-elements/p-987b5d8f.js +1 -0
  285. package/dist/zonos-elements/{p-39695a8b.system.js → p-a4eddf6c.system.js} +1 -1
  286. package/dist/zonos-elements/{p-3e6bbf0b.system.entry.js → p-aa1f3060.system.entry.js} +1 -1
  287. package/dist/zonos-elements/p-aa37f436.system.entry.js +1 -0
  288. package/dist/zonos-elements/{p-f314217a.system.js → p-ab61ef19.system.js} +1 -1
  289. package/dist/zonos-elements/{p-4c3f5fda.system.entry.js → p-b91a8f31.system.entry.js} +1 -1
  290. package/dist/zonos-elements/{p-15097876.system.entry.js → p-b93013f7.system.entry.js} +1 -1
  291. package/dist/zonos-elements/{p-746bdebe.entry.js → p-c121b2b8.entry.js} +1 -1
  292. package/dist/zonos-elements/{p-54a8d4cf.system.entry.js → p-c12ca8fe.system.entry.js} +1 -1
  293. package/dist/zonos-elements/p-c5bfe522.system.js +1 -0
  294. package/dist/zonos-elements/{p-732e7373.system.entry.js → p-c634546a.system.entry.js} +1 -1
  295. package/dist/zonos-elements/{p-a5f8dc19.js → p-c8bc4ede.js} +1 -1
  296. package/dist/zonos-elements/{p-f156e2e5.system.entry.js → p-c8df5eee.system.entry.js} +1 -1
  297. package/dist/zonos-elements/{p-e0ec0aa3.system.entry.js → p-c9e44c77.system.entry.js} +1 -1
  298. package/dist/zonos-elements/{p-179caaea.system.entry.js → p-ca9231a0.system.entry.js} +1 -1
  299. package/dist/zonos-elements/{p-3e058b4e.entry.js → p-cb376f03.entry.js} +1 -1
  300. package/dist/zonos-elements/{p-717cbe90.system.js → p-cd3f7fd7.system.js} +1 -1
  301. package/dist/zonos-elements/{p-ee3c7b11.system.entry.js → p-d06486ba.system.entry.js} +1 -1
  302. package/dist/zonos-elements/{p-e7a45f6c.entry.js → p-d0767f88.entry.js} +1 -1
  303. package/dist/zonos-elements/{p-8308f7d6.system.entry.js → p-d2cb99ee.system.entry.js} +1 -1
  304. package/dist/zonos-elements/p-ddd0e703.system.entry.js +1 -0
  305. package/dist/zonos-elements/{p-09da3c76.entry.js → p-dfd83cff.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-4efd7178.entry.js → p-e0cbc7c7.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-3f6fe80a.system.entry.js → p-e101b0de.system.entry.js} +1 -1
  308. package/dist/zonos-elements/{p-dd6da3de.entry.js → p-e3d0d8ff.entry.js} +1 -1
  309. package/dist/zonos-elements/{p-8005e102.system.js → p-e57f862d.system.js} +1 -1
  310. package/dist/zonos-elements/{p-38879af9.entry.js → p-e6e3a303.entry.js} +1 -1
  311. package/dist/zonos-elements/{p-5d4201d5.entry.js → p-ef2c264c.entry.js} +1 -1
  312. package/dist/zonos-elements/{p-40b96482.system.entry.js → p-f1298203.system.entry.js} +1 -1
  313. package/dist/zonos-elements/{p-86d6961c.system.entry.js → p-f1aa60fd.system.entry.js} +1 -1
  314. package/dist/zonos-elements/{p-429ab545.system.entry.js → p-f1dbeb85.system.entry.js} +1 -1
  315. package/dist/zonos-elements/{p-2825431d.entry.js → p-f2431e47.entry.js} +1 -1
  316. package/dist/zonos-elements/{p-29c1703c.system.entry.js → p-f2511b86.system.entry.js} +1 -1
  317. package/dist/zonos-elements/{p-08e78d79.entry.js → p-fa80a973.entry.js} +1 -1
  318. package/dist/zonos-elements/p-fb8dc23f.system.js +1 -0
  319. package/dist/zonos-elements/{p-f59514e9.entry.js → p-fc45b3a5.entry.js} +1 -1
  320. package/dist/zonos-elements/{p-a23d3b3f.system.entry.js → p-fdd7ec44.system.entry.js} +1 -1
  321. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  322. package/package.json +1 -1
  323. package/dist/esm-es5/localization-6d36209f.js +0 -1
  324. package/dist/esm-es5/zonos-address-display_8.entry.js +0 -1
  325. package/dist/zonos-elements/p-0ac1aa87.system.js +0 -1
  326. package/dist/zonos-elements/p-1577a739.js +0 -1
  327. package/dist/zonos-elements/p-1ee5f392.entry.js +0 -1
  328. package/dist/zonos-elements/p-26ca8ce7.js +0 -1
  329. package/dist/zonos-elements/p-56fc3210.js +0 -1
  330. package/dist/zonos-elements/p-6df034d6.entry.js +0 -1
  331. package/dist/zonos-elements/p-71cb16da.system.entry.js +0 -1
  332. package/dist/zonos-elements/p-8051403a.js +0 -1
  333. package/dist/zonos-elements/p-9448d960.js +0 -1
  334. package/dist/zonos-elements/p-a6535773.system.entry.js +0 -1
  335. package/dist/zonos-elements/p-ae30e6c0.system.entry.js +0 -1
  336. package/dist/zonos-elements/p-bf942ef0.system.js +0 -1
  337. package/dist/zonos-elements/p-c345d1f5.system.js +0 -1
  338. package/dist/zonos-elements/p-d4337686.entry.js +0 -1
  339. package/dist/zonos-elements/p-df8b8827.entry.js +0 -1
  340. package/dist/zonos-elements/p-e210edd9.system.js +0 -1
  341. package/dist/zonos-elements/p-f3e1a6a7.system.entry.js +0 -1
@@ -40,10 +40,10 @@ export class ZonosCheckoutFooter {
40
40
  const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
41
41
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
42
42
  const colorDesktop = this.dataTheme === 'LIGHT' && !this.mobile ? 'gray-0' : 'gray-1000';
43
- return (h(Host, { key: 'edf9d7cfd7375fcd4f335caedccc2928f84a594e', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: '14f359b70f1f4610be37571ae5d32ae7791be012', class: "zonos--checkout-footer" }, h("div", { key: 'ae803331487f9759403633a8e27cc6e480b40f93', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: 'f173841a4c1b3af79a2c21ad9195b509f2891964', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: '7148d2a6076b786954cb9a02e41c760ba4719d6b', class: "zonos--checkout-locale-label" }, languageLabel, h("zonos-icon", { key: '0a759d42576bf657893e6e2349cc3938855de6fc', "aria-hidden": "true", class: "zonos--checkout-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: '63b1ac3440c35349341272b051c4a3e04e19f818', class: classes([
43
+ return (h(Host, { key: '3a463ea949a4c94be594297c2d7151e5dac16242', class: classes(['zonos--elements', this.isMobile && 'mobile']) }, h("div", { key: '7e34187328438ad3d48748917740a8676cca4969', class: "zonos--checkout-footer" }, h("div", { key: '5570ef60246917331cc043c5b12933aa8032f009', class: "zonos--checkout-locale-wrapper" }, h("zonos-button", { key: '37ffa31d7c49fede9d0938827fdc6533839cc7b0', buttonColor: colorDesktop, class: "zonos--checkout-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: 'bfce982c3285039125a37c3be266752fea03b4ce', class: "zonos--checkout-locale-label" }, languageLabel, h("zonos-icon", { key: 'd5c1a5e5a43df15a3fcfb8e7cf9635ce369de158', "aria-hidden": "true", class: "zonos--checkout-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: '15ed2186739391725783bdef158d80d961e0ba92', class: classes([
44
44
  'zonos--checkout-footer-dialog',
45
45
  this.showLanguageDialog && 'zonos--checkout-footer-dialog-open',
46
- ]) }, h("zonos-language-select", { key: '5cad0220d288b722355715c5418928f065af07c1', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '30ec30fd80133525889fea8ab0567179f3ffdd3a', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: 'a6900165737de98bed8fee21d88b4e269ad209e3', href: "https://zonos.com/docs/legal/zonos-privacy-policy", rel: "noopener noreferrer", target: "_blank" }, h("zonos-text", { key: 'ca88bc63b702dcb651530f41aee4764734a5ee84', textColor: colorDesktop }, translate('Privacy policy'))), h("div", { key: '8caa023f3aca229e464a27f55c289985114cc641', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: '9a3b6097c157dd86bd8a03c41887915051852930', textColor: colorDesktop }, translate('Powered by')), h("a", { key: '5e0657c052e71ce12c5717b8a5473e4fc5ca2926', href: "https://zonos.com", rel: "noopener noreferrer", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '1c6a13757a62a14a9898b3de06aaa1f717f3035d', autoHeight: true, content: colorDesktop === 'gray-1000'
46
+ ]) }, h("zonos-language-select", { key: '4857e62f7c7026a2ea5962e24bff0c3eb8528ec9', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '5b30864dae419059892700b83680ed7a00ac0f3c', class: "zonos--checkout-footer-icon-wrapper" }, h("a", { key: '26ef022e181d72ad959b17acd4ab0e8870edf48f', href: "https://zonos.com/docs/legal/zonos-privacy-policy", rel: "noopener noreferrer", target: "_blank" }, h("zonos-text", { key: 'b4c804c21a5a5fc6904aa969976c24b7c833bcdb', textColor: colorDesktop }, translate('Privacy policy'))), h("div", { key: '142c042ef81891b74e18fe303a50be2a8363e0ce', class: "zonos--checkout-footer-logo" }, h("zonos-text", { key: '90f54daa4476cbdb3b934f9d6127e1c9245df9a5', textColor: colorDesktop }, translate('Powered by')), h("a", { key: 'bc6ef3c56a9a3550898f96ae04eeb0444d56e10a', href: "https://zonos.com", rel: "noopener noreferrer", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '21ec5a15e996e2ff925593823ee583832bac4ab5', autoHeight: true, content: colorDesktop === 'gray-1000'
47
47
  ? ZonosIconLight
48
48
  : ZonosIconDark, size: 108 })))))));
49
49
  }
@@ -1,15 +1,18 @@
1
1
  import { h, Host, } from "@stencil/core";
2
2
  import { cartStore, cartStoreOnChange, } from "../../../store/checkout/cart";
3
- import { stripeStore, stripeStoreTranslateAddressToLatin, } from "../../../store/checkout/stripe";
3
+ import { getCountryField, stripeStore, stripeStoreTranslateAddressToLatin, } from "../../../store/checkout/stripe";
4
4
  import { localizationStore, localizationStoreOnChange, } from "../../../store/hello/localization";
5
5
  import { storageStore } from "../../../store/storageStore";
6
6
  import { translate } from "../../../store/translationStore";
7
7
  import { getZonosStoreTheme, zonosStore, zonosStoreOnChange, } from "../../../store/zonosStore";
8
8
  import { updateCheckoutSessionAttributes } from "../../../utils/api/updateCheckoutSessionAttributes";
9
+ import { applyAddressCompletion } from "../../../utils/checkout/applyAddressCompletion";
10
+ import { getMissingRequiredShippingFields } from "../../../utils/checkout/getMissingRequiredShippingFields";
9
11
  import { classes } from "../../../utils/classes";
10
12
  import { containsNonLatinChars } from "../../../utils/containsNonLatinChars";
11
13
  import { extractName } from "../../../utils/extractName";
12
14
  import { log } from "../../../utils/logging/log";
15
+ import { logError } from "../../../utils/logging/logError";
13
16
  import { sendErrorLog } from "../../../utils/logging/sendErrorLog";
14
17
  import { shortAddressCodeValidationResult } from "../../../utils/shortAddressCodeValidationResult";
15
18
  import { taxIdValidationResult } from "../../../utils/taxIdValidationResult";
@@ -66,6 +69,15 @@ export class ZonosCustomerInfo {
66
69
  * Handler for the dialog close button
67
70
  */
68
71
  this.openAddressValidationDialog = false;
72
+ /**
73
+ * Whether the "complete your shipping address" dialog is open. Shown when Stripe reports
74
+ * the address complete but Zonos still needs fields Link didn't provide (e.g. last name).
75
+ */
76
+ this.openCompletionDialog = false;
77
+ /**
78
+ * Zonos-required shipping fields still missing from the selected Stripe address
79
+ */
80
+ this.missingShippingFields = [];
69
81
  /**
70
82
  * Handler for the email error state
71
83
  */
@@ -157,6 +169,30 @@ export class ZonosCustomerInfo {
157
169
  return;
158
170
  }
159
171
  this.showErrorBanner = false;
172
+ // Stripe reports the address complete, but Link's single name input (and, for some
173
+ // countries, a missing state/postal code) can leave Zonos short of what it needs to ship
174
+ // internationally. Capture only those missing fields before proceeding. Custom ('zonos')
175
+ // address forms enforce their own required fields, so this only applies to the Stripe form.
176
+ if (this.addressFormRenderType !== 'zonos') {
177
+ const missingShippingFields = getMissingRequiredShippingFields({
178
+ countryField: stripeStore.stripeAddressEventData
179
+ ? getCountryField(stripeStore.stripeAddressEventData.value.address.country)
180
+ : null,
181
+ event: stripeStore.stripeAddressEventData,
182
+ });
183
+ if (missingShippingFields.length) {
184
+ this.missingShippingFields = missingShippingFields;
185
+ this.openCompletionDialog = true;
186
+ return;
187
+ }
188
+ }
189
+ await this.continueAfterValidation();
190
+ };
191
+ /**
192
+ * Continue past the customer step once the address is validated and complete. Runs the
193
+ * non-Latin character check (which may open the translate dialog) before emitting.
194
+ */
195
+ this.continueAfterValidation = async () => {
160
196
  // check if the address contains invalid characters
161
197
  const { hasInvalidCharacters } = await this.handleInvalidCharacters();
162
198
  if (hasInvalidCharacters) {
@@ -168,6 +204,18 @@ export class ZonosCustomerInfo {
168
204
  shippingAddress: stripeStore.stripeAddressEventData,
169
205
  });
170
206
  };
207
+ this.completionSubmitHandler = (data) => {
208
+ const eventData = stripeStore.stripeAddressEventData;
209
+ if (eventData) {
210
+ // Merge the captured fields back into the stored shipping address event.
211
+ stripeStore.stripeAddressEventData = applyAddressCompletion({
212
+ data,
213
+ event: eventData,
214
+ });
215
+ }
216
+ this.openCompletionDialog = false;
217
+ void this.continueAfterValidation().catch(logError);
218
+ };
171
219
  /**
172
220
  * Validate the custom address form, turn the flag showError to false if the form is valid, or vice versa
173
221
  */
@@ -524,7 +572,7 @@ export class ZonosCustomerInfo {
524
572
  submitData,
525
573
  type: 'billingAddress',
526
574
  });
527
- }, shippingAddress: this.prepareAddressObject(stripeStore.stripeAddressEventData), translatedBillingAddress: stripeStore.translatedAddress.billingAddress, translatedShippingAddress: stripeStore.translatedAddress.address }))));
575
+ }, shippingAddress: this.prepareAddressObject(stripeStore.stripeAddressEventData), translatedBillingAddress: stripeStore.translatedAddress.billingAddress, translatedShippingAddress: stripeStore.translatedAddress.address })), stripeStore.stripeAddressEventData && (h("zonos-address-completion-dialog", { continueLoading: this.continueLoading, "data-theme": theme, dialogOpen: this.openCompletionDialog, isMobile: this.isMobile, missingFields: this.missingShippingFields, onCloseCompletionDialog: () => (this.openCompletionDialog = false), onCompletionSubmit: e => this.completionSubmitHandler(e.detail), shippingAddress: this.prepareAddressObject(stripeStore.stripeAddressEventData), submitBtnColor: this.submitBtnColor, submitBtnType: this.submitBtnType }))));
528
576
  }
529
577
  static get is() { return "zonos-customer-info"; }
530
578
  static get encapsulation() { return "scoped"; }
@@ -680,6 +728,8 @@ export class ZonosCustomerInfo {
680
728
  "invalidShippingCharacterList": {},
681
729
  "invalidBillingCharacterList": {},
682
730
  "openAddressValidationDialog": {},
731
+ "openCompletionDialog": {},
732
+ "missingShippingFields": {},
683
733
  "isEmailError": {},
684
734
  "recordedFormTypeUsed": {},
685
735
  "selectedCountryCode": {},
@@ -8,7 +8,7 @@ export class ZonosCollectCartItems {
8
8
  render() {
9
9
  const emptyItemImg = getAssetPath('./assets/empty-item.jpeg');
10
10
  const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
11
- return (h(Host, { key: 'b59fc5d56e5672ed47312fa930a1f35bf987b58d', class: "zonos--collect-cart-items zonos--elements" }, h("table", { key: '1f1020fd843fc2e86a12f426786f275e2c45c7c6', class: "zonos--cart-table" }, h("tbody", { key: 'b383812ea0967e3715701c09753fda8b3dbfe612' }, nonRestrictedItems.map(item => {
11
+ return (h(Host, { key: '1ce09299c7be0b28d85a5bf5b6d0cd1272b305a2', class: "zonos--collect-cart-items zonos--elements" }, h("table", { key: 'a964c41a141ad4490e3213054d25dd688dca6d18', class: "zonos--cart-table" }, h("tbody", { key: 'dbc155d72b4de43839b0e2fc8b8704e5c885a5ec' }, nonRestrictedItems.map(item => {
12
12
  const itemImg = item.imageUrl;
13
13
  const cleanedItemNames = cleanHtmlMarkdown(item.name);
14
14
  return (h("tr", { class: "zonos--collect-cart-item" }, h("td", { class: "zonos--column zonos--cart-item-image" }, itemImg && !this.errorImages.includes(itemImg) ? (h("img", { alt: item.name, onError: () => {
@@ -368,11 +368,11 @@ export class ZonosCollectFinish {
368
368
  }
369
369
  render() {
370
370
  const cartId = window.Zonos.cartId;
371
- return (h(Host, { key: 'fe3107670230caeaacc834983d9215422a7828ae', class: "zonos--checkout-finish zonos--elements", style: {
371
+ return (h(Host, { key: '79369b0b697b1ab4e4b320442452bcf1f942f57c', class: "zonos--checkout-finish zonos--elements", style: {
372
372
  '--zonos--border-radius': getBorderRadius({
373
373
  overrideBorderStyle: this.borderRadius,
374
374
  }),
375
- } }, !this.isLoading && (h("div", { key: 'fefefedc7ec022318cbc6da23b327079afec981b', class: "zonos--finish-details" }, h("div", { key: '4428271e11c3a96db732726719c5747364a18097', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: '0c3371b3bed8fd83e437075f1c35179fbb7e5e09', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'dbb263f0f95a62d93ae3c5ac455625512eb1f63e', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: '07e2733ad91ced8e5260e0f8fea627610b864ebf', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: 'ecb7332cb4b7c28d398f2957d3b521c6328163eb', class: "zonos--button-container" }, h("zonos-button", { key: 'c8303e2a61d573b6e028ab38df2427fa98471e9f', onClick: () => {
375
+ } }, !this.isLoading && (h("div", { key: 'd7685ab3248308469d186f96384f4c3d4b1994df', class: "zonos--finish-details" }, h("div", { key: '45e8b49c5bba2022a1033c4496ed6f910a66af55', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'ead6f0af19b569c0e38c0ed10a553d17487f7950', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: '81007111e84420a27a390dd4e4146434b6fa371d', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: '5b8343c8d75242d8beead8d75dd3826e139aaf02', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '46d3f8184caefe2f5b143d9d7269a428b73dd7da', class: "zonos--button-container" }, h("zonos-button", { key: '9923fc08076ddd03053b0ef0ff77af6debee749c', onClick: () => {
376
376
  window.open(this.getReceiptUrl({ cartId }), '_blank');
377
377
  }, size: "lg", variant: "primary" }, translate('View receipt')))))))));
378
378
  }
@@ -46,15 +46,15 @@ export class ZonosCollectFooter {
46
46
  const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
47
47
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
48
48
  const colorDesktop = 'gray-1000';
49
- return (h(Host, { key: '52908f4538918641b708887436e1cfe3b643376f', class: classes([
49
+ return (h(Host, { key: '8ab700c2f2b1a05379fd75e879c818e2adb8afd1', class: classes([
50
50
  'zonos--elements',
51
51
  this.isMobile && 'mobile',
52
52
  this.isTablet && 'tablet',
53
- ]) }, h("div", { key: '46a1c762d78396a7f993bad323c93f8e6bc71f1b', class: "zonos--collect-footer" }, h("div", { key: 'a6a98539cdb901ecd162f5e5b98591c9b8b7321a', class: "zonos--collect-locale-wrapper" }, h("zonos-button", { key: '8a5c4a18bc1030c3e74e412ff14a59c299f59e9a', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: '03bc4235862d1382cd8f0cdb007fd708bf2bfe87', class: "zonos--collect-locale-label" }, languageLabel, h("zonos-icon", { key: '4b3bbcd5bcd4039f3cb1f1c4c12698cba1894308', "aria-hidden": "true", class: "zonos--collect-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: '5508629b0cdc334b81ad4d4d5a034ced133d6744', class: classes([
53
+ ]) }, h("div", { key: 'e4de4b99e01ecc9aec961067af0f295a64616f13', class: "zonos--collect-footer" }, h("div", { key: '154b2c963f4154174bb9ec74ce7fd9fbd50fba80', class: "zonos--collect-locale-wrapper" }, h("zonos-button", { key: '45bce389798236f0827e2a3adbc185cd93d08541', buttonColor: colorDesktop, class: "zonos--collect-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: '0cdf082f147e03893e50d882794a4330716c351d', class: "zonos--collect-locale-label" }, languageLabel, h("zonos-icon", { key: '4a32f8d8dd7e3bfc7117dbb9821ce76e9556cd26', "aria-hidden": "true", class: "zonos--collect-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: 'da0241df9b3729f615690671a9470fa632d766f7', class: classes([
54
54
  'zonos--collect-language-dialog',
55
55
  this.showLanguageDialog &&
56
56
  'zonos--collect-language-dialog-open',
57
- ]) }, h("zonos-language-select", { key: 'ca4b77d72dfd9db8743290d333b7fcde15d090d6', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '98f0d0c35e3c6b4fde833e4b9ae334549fe46f1f', class: "zonos--collect-footer-icon-wrapper" }, h("div", { key: 'b3039948472d797bf04a23d3aca839472f6c6946', class: "zonos--collect-footer-logo" }, h("zonos-text", { key: '75123a6fb2bcdce07e0ebe433a28d81eefaec9ea', textColor: colorDesktop }, "Powered by"), h("a", { key: '2a0f4e2bc5df9d383ac4b91c589d2ce7149c6b3d', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '436005434f2a9d2ff1228cd36d873b8de7d339f2', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'c488b5eefba54424a0e66af61415d78d8f3d46fa', class: "dot" }), h("a", { key: 'd98fc7646d4877179b94bee6d3f8a7a283bbc756', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '54fe3d9316ee5b22f5620b7acde145627b66cbe3', textColor: colorDesktop }, "Privacy policy"))))));
57
+ ]) }, h("zonos-language-select", { key: 'a29977d98d3a4db1230c9fab41d4f84485aee2a7', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: 'cb7881f46838f5f6639e444f524292aec43df8d6', class: "zonos--collect-footer-icon-wrapper" }, h("div", { key: '3d3d435a3607762a4004819670367d19d81f4607', class: "zonos--collect-footer-logo" }, h("zonos-text", { key: 'e56373f0f1f7c97a8a47dcc29ddebcaa0b1e9b06', textColor: colorDesktop }, "Powered by"), h("a", { key: '1dce741207bdd3c5f9f3a36486d361ba5b0b8683', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'bda31cd75b162b66acad3ab888b69e042e195f1e', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: '896509762127608a50bca02a01051c05ce17c172', class: "dot" }), h("a", { key: 'dcff1c02f80665e9b52527b9c8019af5cbf68bd3', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: 'dab8c359011952955a64c20c3fe17977cf286848', textColor: colorDesktop }, "Privacy policy"))))));
58
58
  }
59
59
  static get is() { return "zonos-collect-footer"; }
60
60
  static get encapsulation() { return "shadow"; }
@@ -39,13 +39,13 @@ export class ZonosCollectReview {
39
39
  }
40
40
  render() {
41
41
  const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
42
- return (h(Host, { key: '7f1709df3a42ae9917e26a86e9c90703b2243ab7', class: classes([
42
+ return (h(Host, { key: '3a3a7d5291db82d260d85446ce4ef97bbb8034d1', class: classes([
43
43
  'zonos--collect-review zonos--elements',
44
44
  this.isMobile && 'mobile',
45
45
  this.isTablet && 'tablet',
46
- ]) }, h("div", { key: '5ed5f5c7da922a9393501b5e31da9a20b9724d9c', class: "zonos--title" }, h("zonos-text", { key: 'd54511663bb32405e16349b20807b9ccddb5fd03', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName] duties, taxes and fees for your shipment', {
46
+ ]) }, h("div", { key: 'cb74e4a870e73eadbbbba7590d765f97db8450ba', class: "zonos--title" }, h("zonos-text", { key: '1e4cdd77f6102369ac57a836d82431119001a053', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName] duties, taxes and fees for your shipment', {
47
47
  organizationName: zonosStore.organizationName,
48
- }))), h("div", { key: '82967c3614ee91cf95955372bb013837f93822d1', class: "zonos--total-pay" }, renderFallback({
48
+ }))), h("div", { key: '6c1a8207d2f148c155d50e7e2ff80c1153d86eec', class: "zonos--total-pay" }, renderFallback({
49
49
  content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
50
50
  amount: collectStore.amountDutyTaxFeeTotal || 0,
51
51
  isForeign: true,
@@ -52,7 +52,7 @@ export class ZonosCollectSubtotal {
52
52
  }
53
53
  render() {
54
54
  this.initSubtotalData();
55
- return (h(Host, { key: 'fea37a2a4dd32592b88703c37d901fee65408bed', class: "zonos--collect-subtotal zonos--elements" }, h("table", { key: 'be501438b0101c4b13421450dad99ec12f7c5a0b', class: "zonos--collect-table" }, !!this.subtotals[translate('Duties')] && (h("tr", { key: '2c61bf6e958a199d4b8ae3aff00b74a9889ab491', class: "zonos--row zonos--collect-duty" }, h("td", { key: 'd6fc30c58fcc42c282b7dfb03c83b0b7feb0dd82', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '5909abeeed4a5f90df5a79be09383842137a175c', type: "semiBoldLabel" }, translate('Duties'))), h("td", { key: '68d06c4e8732363e0e5e36d77f9d4b363c0adc3c', class: "zonos--column" }), h("td", { key: 'fd23e46a4ed44fadc31472e38a15f7579ebed160', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
55
+ return (h(Host, { key: '873283e3bcbed910a71ec1a45c814a7ea05bcac5', class: "zonos--collect-subtotal zonos--elements" }, h("table", { key: '0df7eed4bd29a79e9065599859317fa2837803c3', class: "zonos--collect-table" }, !!this.subtotals[translate('Duties')] && (h("tr", { key: '8d7e641c65cae73a38f182b2775686816eeea853', class: "zonos--row zonos--collect-duty" }, h("td", { key: 'cd85fe2eeebc447cb844be0e9ae2ca3acfbb988f', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '6bf01a7f93b0a097648b7284a5a32aa51311a588', type: "semiBoldLabel" }, translate('Duties'))), h("td", { key: '981f35ab9dd6d7519a77465b6bd9fa53e21ddbe7', class: "zonos--column" }), h("td", { key: '5bc30957e829731d8d18bdbd468eff56abe1527e', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
56
56
  content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
57
57
  amount: this.subtotals[translate('Duties')] || 0,
58
58
  isForeign: true,
@@ -60,7 +60,7 @@ export class ZonosCollectSubtotal {
60
60
  isLoading: collectStore.isFetchingShippingInfo,
61
61
  skeletonHeight: '14px',
62
62
  skeletonWidth: '150px',
63
- })))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: '3960ae24df8093e1bb7e904bba82b774dc32103c', class: "zonos--row zonos--collect-tax" }, h("td", { key: 'cdfb4bd23f8b3f0545170a05a3b060533db22f26', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'bbbdaade160358cc94a9347f835d2e8bc759866d', type: "semiBoldLabel" }, translate('Taxes'))), h("td", { key: '032c233f3301289c89791d78a5624d9409292041', class: "zonos--column" }), h("td", { key: 'b96dc16ecbff5add3adb0236c794c7a71c48800b', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
63
+ })))), !!this.subtotals[translate('Taxes')] && (h("tr", { key: 'aba01d5cd377a972c409971bfa6261101a2aca58', class: "zonos--row zonos--collect-tax" }, h("td", { key: 'c016dafb4c6b92cfc715159249d4c0ed663fc301', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'afab7f0757f4f7e1941a81f2831bdbd4460ba3fa', type: "semiBoldLabel" }, translate('Taxes'))), h("td", { key: '0b6ee1a4a59db701e17caaad5c69da01156f7cff', class: "zonos--column" }), h("td", { key: 'a5c0ad551408a7c760048f6660fead6d71f9ba89', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
64
64
  content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
65
65
  amount: this.subtotals[translate('Taxes')] || 0,
66
66
  isForeign: true,
@@ -68,7 +68,7 @@ export class ZonosCollectSubtotal {
68
68
  isLoading: collectStore.isFetchingShippingInfo,
69
69
  skeletonHeight: '14px',
70
70
  skeletonWidth: '150px',
71
- })))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '056890bb4d5394aea10f618c97c6d22d0ed63d3b', class: "zonos--row zonos--collect-fee" }, h("td", { key: '920bbbc49538bf61a4b3a180454a904996448b22', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '3609ef98b6fe12f11d16a9176321321fa450c482', type: "semiBoldLabel" }, translate('Fees'))), h("td", { key: 'c7393e334a5d229f879094aa10356740676a412a', class: "zonos--column" }), h("td", { key: '799e621fbeda831fd2181a362d9ace49a39b69e4', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
71
+ })))), !!this.subtotals[translate('Fees')] && (h("tr", { key: '794f30fc44ea873b4e242e17b5d647f80bf7dd2b', class: "zonos--row zonos--collect-fee" }, h("td", { key: '0290e97bb88893eda374f62e93e9876900932182', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'b789da8295e4069fd3a5f5b6dee0b0457fc31a51', type: "semiBoldLabel" }, translate('Fees'))), h("td", { key: '38a80da4106ce87ad7dabf6de3b1b1eba710b71e', class: "zonos--column" }), h("td", { key: '0fbfa990caf302692dfe1e8c27ddaea51df99660', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
72
72
  content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
73
73
  amount: this.subtotals[translate('Fees')] || 0,
74
74
  isForeign: true,
@@ -76,7 +76,7 @@ export class ZonosCollectSubtotal {
76
76
  isLoading: collectStore.isFetchingShippingInfo,
77
77
  skeletonHeight: '14px',
78
78
  skeletonWidth: '150px',
79
- })))), h("tr", { key: 'b9cc1a5aa049ccefb48dc5d1627bdb8093ffe29f', class: "zonos--row zonos--collect-spacing" }, h("td", { key: '439b7508f723ed01efd63e499de979a84e136b21', class: "zonos--column", colSpan: 3 })), h("tr", { key: '6c3db4c263f849b9f1ad25a1ce1cfb23dcf03b10', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, h("td", { key: '3fac71f137d3d5af8a40d7aaa0ad36c31a827a5b', class: "zonos--column" }), h("td", { key: '45084572c966e849b69dd4f10d065fd3f0aa5544', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '5c09a882998169f59baa30a59574d1ca919ab1c6', type: "label" }, translate('Subtotal'))), h("td", { key: 'd8debe70bbc2394f95581409a1db5cb8055383eb', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
79
+ })))), h("tr", { key: '5427b75fa3f55701713bc837c4e75fac31bd5c53', class: "zonos--row zonos--collect-spacing" }, h("td", { key: 'd543700b03631be1b95cc5cca39c9239abaf147c', class: "zonos--column", colSpan: 3 })), h("tr", { key: 'ddf127c847f6261cb2658e164a58e01f5db47b90', class: "zonos--row zonos--collect-total zonos--collect-total-subtotal" }, h("td", { key: '1dcb250d978b55e5d999796cf39dcef885e0b145', class: "zonos--column" }), h("td", { key: '4299cfc2a589c61878c660e6cc60dc0a44162b2f', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '359d4e0dfec0717cc67d611a561f8e530e387863', type: "label" }, translate('Subtotal'))), h("td", { key: '07f45c0222553309ca503b1eef283b96156e19a5', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
80
80
  content: (h("zonos-text", { type: "label" }, renderCheckoutCurrency({
81
81
  amount: collectStore.amountDutyTaxFeeTotal || 0,
82
82
  isForeign: true,
@@ -84,7 +84,7 @@ export class ZonosCollectSubtotal {
84
84
  isLoading: collectStore.isFetchingShippingInfo,
85
85
  skeletonHeight: '14px',
86
86
  skeletonWidth: '150px',
87
- }))), h("tr", { key: 'db55f0a9600bff78e582609f17ac561fb30ec85f', class: "zonos--row zonos--collect-total" }, h("td", { key: '8b77eb9db155a44591bce58fd24ee46110b9a407', class: "zonos--column" }), h("td", { key: '5c1b6df053e202f60d1d3fa4ff5d8c53fb1762ce', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: '393f436b62e9b49d52598896b2913f08e953987b', type: "semiBoldLabel" }, translate('Customs fees total'))), h("td", { key: 'c2bc51d66b8490652c6f6df8fac0194544785706', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
87
+ }))), h("tr", { key: '0de126a7c6083b28ecd13a99828d3e9a37a04ba2', class: "zonos--row zonos--collect-total" }, h("td", { key: '2b5be6f49d700c545b25a603d0a9caafa42e3a70', class: "zonos--column" }), h("td", { key: 'da833751a18f408b0d2d17cb9b812497e43360a8', class: "zonos--column zonos--collect-subtotal-title" }, h("zonos-text", { key: 'b6cf2a310f40274d9633825471e16f429152a994', type: "semiBoldLabel" }, translate('Customs fees total'))), h("td", { key: 'f93207f749dc584419b542a31dcae1a0c279f6e3', class: "zonos--column zonos--collect-subtotal-price" }, renderFallback({
88
88
  content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
89
89
  amount: collectStore.amountDutyTaxFeeTotal || 0,
90
90
  isForeign: true,
@@ -18,10 +18,10 @@ export class ZonosInvoiceCartItems {
18
18
  }
19
19
  render() {
20
20
  const nonRestrictedItems = cartStore.items.filter(item => !item.isRestricted);
21
- return (h(Host, { key: 'e6626df96493b9cd9110036f203492c008c8c802', class: classes([
21
+ return (h(Host, { key: '725ec1640ea2e6342529a0143e1b43374cb67c9c', class: classes([
22
22
  'zonos--invoice-cart-items zonos--elements',
23
23
  this.isMobile && 'mobile',
24
- ]) }, h("table", { key: '9a03b7868010f52560725fb4139a329b2b96066c', class: "zonos--cart-table" }, h("tbody", { key: 'f1aae5d161654014e4e5e5fd56383664c7fe5635' }, nonRestrictedItems.map(item => {
24
+ ]) }, h("table", { key: 'c908da0c7a02eda9c5f14bf59da7a0e3b882b076', class: "zonos--cart-table" }, h("tbody", { key: 'bf2e01afac20f2804cd3f99c966c94172eabb3c3' }, nonRestrictedItems.map(item => {
25
25
  var _a, _b, _c, _d;
26
26
  const invoiceId = (_b = (_a = item.attributes) === null || _a === void 0 ? void 0 : _a.find(metadata => metadata.key === 'invoiceId' || metadata.key === 'INVOICE_ID')) === null || _b === void 0 ? void 0 : _b.value;
27
27
  const invoiceCreatedAt = (_d = (_c = item.attributes) === null || _c === void 0 ? void 0 : _c.find(metadata => metadata.key === 'invoiceCreatedAt')) === null || _d === void 0 ? void 0 : _d.value;
@@ -260,11 +260,11 @@ export class ZonosInvoiceFinish {
260
260
  }
261
261
  render() {
262
262
  const cartId = window.Zonos.cartId;
263
- return (h(Host, { key: 'fc28974043d0f3661919e85aa6cc3839debbac4e', class: "zonos--checkout-finish zonos--elements", style: {
263
+ return (h(Host, { key: 'f3a8642f7372184047ee007498af82d45254beef', class: "zonos--checkout-finish zonos--elements", style: {
264
264
  '--zonos--border-radius': getBorderRadius({
265
265
  overrideBorderStyle: this.borderRadius,
266
266
  }),
267
- } }, !this.isLoading && (h("div", { key: '7a6f37edfde51802035afde1e47184603a81e869', class: "zonos--finish-details" }, h("div", { key: '0242af14a36960e490411712bf1c345975d22e28', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'ac0bbc63089b78868a2dea35c2d55699e0c677fc', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: 'cce14998b08c79a87b5aaf9701d1132e558c0bc6', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'c4970d76cbeb63f6dd661bc2c0950ace271f9aac', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: 'c79a6fe5bfe1398244a7fbf611430be6f42de16b', class: "zonos--button-container" }, h("zonos-button", { key: 'c5ab942d9ced619c068b7398a38af5995a8f43ee', onClick: () => {
267
+ } }, !this.isLoading && (h("div", { key: '02a93031a3031cd9ee3fd3695c84e8b8b84f496e', class: "zonos--finish-details" }, h("div", { key: '448c895e0068475da8e37f51ecf46d3686037499', class: "zonos--group" }, this.notificationType === 'success' ? (h("zonos-icon", { "aria-label": "Order success", content: SuccessIcon, iconColor: 'blue-800', size: 50 })) : (h("zonos-icon", { "aria-label": "Order failed", content: RemoveIcon, iconColor: 'red-800', size: 50 })), h("zonos-text", { key: 'ec0690fb66d80b43f082a9372f995c5be12935ef', class: "zonos--title", type: "semiBoldSubheader" }, this.notificationTitle), this.confirmationId && (h("zonos-badge", { key: '9cc0bfef51003d1cd03f8dba82c71e5ee2bafdf4', badgeColor: "gray" }, this.confirmationId)), h("zonos-text", { key: 'f6939aa032ccd82b2e6be113a294750e574ac72d', class: "zonos--subtitle", textColor: "gray-600" }, this.notificationMessages.map(message => (h(Fragment, null, message, h("br", null))))), this.order && cartId && (h("div", { key: '0141c1eabc7fed40cd571a138cd2a3aba7c5120c', class: "zonos--button-container" }, h("zonos-button", { key: 'bf126325f964ce22862583abd8a0f911712ff72c', onClick: () => {
268
268
  window.open(this.getReceiptUrl({ cartId }), '_blank');
269
269
  }, size: "lg", variant: "primary" }, translate('View receipt')))))))));
270
270
  }
@@ -47,15 +47,15 @@ export class ZonosInvoiceFooter {
47
47
  const languageLabel = (_a = languages.find(x => x.code === localizationStore.selectedLocale)) === null || _a === void 0 ? void 0 : _a.label;
48
48
  // reverse color when on desktop. With the coversheet backdrop, the color should be white
49
49
  const colorDesktop = 'gray-1000';
50
- return (h(Host, { key: 'edea53dbca2832f4f718fd54b74225d9a64b8d01', class: classes([
50
+ return (h(Host, { key: 'e0a86a84127a3dd9b269468ce4ae8fc7a00617ce', class: classes([
51
51
  'zonos--elements',
52
52
  this.isMobile && 'mobile',
53
53
  this.isTablet && 'tablet',
54
- ]) }, h("div", { key: 'd2594dfbc8cfff20539e94c279c6096042ee6d00', class: "zonos--invoice-footer" }, h("div", { key: '927668578baf306674f56dce375acd1a5e1f335e', class: "zonos--invoice-locale-wrapper" }, h("zonos-button", { key: '022b7cb00f7c9ab6305a6ab874f16531f9ab017f', buttonColor: colorDesktop, class: "zonos--invoice-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: '88c1b732f19daaace304214d9028f3b6a131e0d2', class: "zonos--invoice-locale-label" }, languageLabel, h("zonos-icon", { key: 'ac383ce2fbcba6b0bd366b8c8126ce10df11d817', "aria-hidden": "true", class: "zonos--invoice-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: 'a89f540cdbeb921640f4f466df4c48e12065d90b', class: classes([
54
+ ]) }, h("div", { key: 'bf29c34fad93397f1882fe5fb1539fa9e9c557b5', class: "zonos--invoice-footer" }, h("div", { key: '271888bef61a2f66f8dde97877a816c4ddda77e6', class: "zonos--invoice-locale-wrapper" }, h("zonos-button", { key: 'afcb5fbde86cb96995f606be4ae1fa69a40eac8e', buttonColor: colorDesktop, class: "zonos--invoice-footer-language-button", icon: h("zonos-icon", { "aria-label": "Language select", content: Globe, iconColor: colorDesktop }), onClick: () => this.toggleLanguageDialog(), variant: "subtle" }, h("span", { key: '9d6c3ef03ce90dc48523a443f4a1716e1ad66309', class: "zonos--invoice-locale-label" }, languageLabel, h("zonos-icon", { key: '95d8e579e46178eda82d0e0a31b78e2f2e47b416', "aria-hidden": "true", class: "zonos--invoice-locale-chevron", content: ChevronDownIcon, iconColor: colorDesktop, size: 18 }))), h("div", { key: '49b226ab4efbb2b6e94d78b5170b7979fd13989f', class: classes([
55
55
  'zonos--invoice-language-dialog',
56
56
  this.showLanguageDialog &&
57
57
  'zonos--invoice-language-dialog-open',
58
- ]) }, h("zonos-language-select", { key: 'fe017a6300484fc2e657b9f286438f23861a9a96', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: 'b9513e7ab5ee4e809d52074fb2c0950a7ac4bfe5', class: "zonos--invoice-footer-icon-wrapper" }, h("div", { key: '55ee92bab8cc5dc6983705b925089cca4083fe42', class: "zonos--invoice-footer-logo" }, h("zonos-text", { key: 'c8bc7791da058aee313b02797b4555ef5b6ff689', textColor: colorDesktop }, translate('Powered by')), h("a", { key: '4493b09d84504d4f797fa0d391cae79ba2266611', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: '8c79f8ef0c16d4bb0210e9b7481bc519b97bbddb', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'ee6b57b36973750637e0f66f4e883fe7c32acf23', class: "dot" }), h("a", { key: '7aebd09ef1aea4bd9b4a4ed48ffb207e8ed32978', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '11e7cbb7531b396255374dbf0528f603145bc0b5', textColor: colorDesktop }, translate('Privacy policy')))))));
58
+ ]) }, h("zonos-language-select", { key: '4980a84db5e4ea95ab3baf633b1d1191c3f62a9c', handleOnClose: () => this.toggleLanguageDialog() }))), h("div", { key: '9c401453c01fa66cd3f2b03a831ed35673023ffb', class: "zonos--invoice-footer-icon-wrapper" }, h("div", { key: '7431183058403f1b9436bc8b30b07a84c56dc077', class: "zonos--invoice-footer-logo" }, h("zonos-text", { key: 'f7c58460b204b9a52edf5724fe446f7128cd489e', textColor: colorDesktop }, translate('Powered by')), h("a", { key: '316357e0fafb72eee94cf76885b5e70ef3f2df77', href: "https://zonos.com", target: "_blank", title: "Zonos website" }, h("zonos-icon", { key: 'e893e1bb00475fa2a93625db529d5231b8eb6bac', autoHeight: true, content: ZonosWordmark, size: 42 }))), h("div", { key: 'e884f0e31e771252acf5ce7cee6ba825a3686c2e', class: "dot" }), h("a", { key: 'a569168b5990f64c87ceb8b38c03f76370ef0631', href: "https://zonos.com/docs/legal/zonos-privacy-policy", target: "_blank" }, h("zonos-text", { key: '62a907ad3213dd9469e4845c2fd36312a4dba1e4', textColor: colorDesktop }, translate('Privacy policy')))))));
59
59
  }
60
60
  static get is() { return "zonos-invoice-footer"; }
61
61
  static get encapsulation() { return "shadow"; }
@@ -39,13 +39,13 @@ export class ZonosInvoiceReview {
39
39
  }
40
40
  render() {
41
41
  const titleTextColor = this.isMobile ? 'gray-1000' : 'gray-800';
42
- return (h(Host, { key: 'b1dbfed233d47a45ee1e37408d086593049c64d6', class: classes([
42
+ return (h(Host, { key: 'bba78735609377a64fafe9e30dd6dd908b6b85ef', class: classes([
43
43
  'zonos--invoice-review zonos--elements',
44
44
  this.isMobile && 'mobile',
45
45
  this.isTablet && 'tablet',
46
- ]) }, h("div", { key: 'fa1cb0796cc5ffd31488c730da1e21f6a7c93c8d', class: "zonos--title" }, h("zonos-text", { key: '3759a2ebb1ae8456139fb053d32a64ace12917e7', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
46
+ ]) }, h("div", { key: 'c71ea7456d76c9f156931501a48eb268432366d8', class: "zonos--title" }, h("zonos-text", { key: 'd069d2cc81b6228e69bacc44596702a9259dd9a0', textColor: titleTextColor, type: 'semiBoldLabel' }, translate('Pay [organizationName]', {
47
47
  organizationName: zonosStore.organizationName,
48
- }))), h("div", { key: 'b5b0c86569fdc26465ea9ac585c5ea5c2b9172bc', class: "zonos--total-pay" }, renderFallback({
48
+ }))), h("div", { key: 'd9c1f63517ca7859297fe12115292dd737758daa', class: "zonos--total-pay" }, renderFallback({
49
49
  content: (h("zonos-text", { type: 'secondaryPageHeader' }, renderCheckoutCurrency({
50
50
  amount: invoiceStore.amountTotalDue || 0,
51
51
  isForeign: true,
@@ -12,10 +12,10 @@ export class ZonosInvoiceSubtotal {
12
12
  this.isMobile = false;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '869e194bb991686647a27c85e3287f8c87013697', class: classes([
15
+ return (h(Host, { key: '79c93a4ee4be967b78b0a20c422fe18e1dde1e62', class: classes([
16
16
  'zonos--invoice-subtotal zonos--elements',
17
17
  this.isMobile && 'mobile',
18
- ]) }, h("table", { key: '4e3a87b6ceeba8663c7d41797826e92a1d8df873', class: "zonos--invoice-table" }, h("tr", { key: '4cc0be3427ded6e3dfc92fca9d6acf69915a5d96', class: "zonos--row zonos--invoice-total" }, h("td", { key: 'ca4cefc97914df89530a6ba06f93412773685d13', class: "zonos--column" }), h("td", { key: '7cad6266e244446fef196403f4e1628b4656c680', class: "zonos--column zonos--invoice-subtotal-title" }, h("zonos-text", { key: '311ce310181fec1db2cd31e92e210d345e0c2871', type: "semiBoldLabel" }, translate('Payment total'))), h("td", { key: '2aa6e7fb76e8a7c0d2b1c56fdcdf63ed2b3bed82', class: "zonos--column zonos--invoice-subtotal-price" }, renderFallback({
18
+ ]) }, h("table", { key: '3ad275ada5248c59f39433fde8929216a4da1cf0', class: "zonos--invoice-table" }, h("tr", { key: '097673030be4002c7cb67494aa33804f13e2a318', class: "zonos--row zonos--invoice-total" }, h("td", { key: '581cbb1e86c7e31867b3e6ba981db5d129341fd6', class: "zonos--column" }), h("td", { key: '85979f2c25fb4e0076fc5d454dd570f92a4bedbc', class: "zonos--column zonos--invoice-subtotal-title" }, h("zonos-text", { key: 'e98f3bf6a6f76340c588f704674cccf7d44fd141', type: "semiBoldLabel" }, translate('Payment total'))), h("td", { key: 'a6938a3cd48b4885debda015850bbf9bb467139c', class: "zonos--column zonos--invoice-subtotal-price" }, renderFallback({
19
19
  content: (h("zonos-text", { type: "semiBoldLabel" }, renderCheckoutCurrency({
20
20
  amount: invoiceStore.amountTotalDue || 0,
21
21
  isForeign: true,
@@ -37,16 +37,16 @@ export class ZonosBadge {
37
37
  this.loading = false;
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: '91ff0cbf64075ac1cb47691dd114b4205253b8e9', class: classes(['zonos--elements zonos--badge']), style: {
40
+ return (h(Host, { key: 'c8d29084d1a10f985bcb52409881fff004a73118', class: classes(['zonos--elements zonos--badge']), style: {
41
41
  '--zonos--font-family': zonosStoreFontFamily(),
42
- } }, h("div", { key: '129b78caecaab54f8eb0dcb42fb2e398c2cfe2e6', class: classes([
42
+ } }, h("div", { key: '28cd3711c8e8d6b362c56589553401707456fdc6', class: classes([
43
43
  'zonos--badge-content',
44
44
  this.badgeColor,
45
45
  this.rounded && 'rounded',
46
46
  this.iconRight && 'icon-right',
47
47
  this.size,
48
48
  this.bold && 'bold',
49
- ]) }, this.icon, h("zonos-text", { key: '69b9ef2d3d15e6753625aea7c96fe492583e50fe', textColor: `${this.badgeColor}-800` }, h("slot", { key: '7237a96503ebdd708a03f3571dc5f68abe6af496' })), this.dismissHandler && (h("zonos-icon", { key: '021350687aa80ccae8c32b2f4b7af5acc4469608', "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); } })))));
49
+ ]) }, this.icon, h("zonos-text", { key: '9dcb72621037e37fc11d5cabe915f6dad9798c2a', textColor: `${this.badgeColor}-800` }, h("slot", { key: '7599b4c4689100dc637a3842287a93a42b4edd41' })), this.dismissHandler && (h("zonos-icon", { key: '861156179b8c8a8d8db1b4ee72717581d2eb7222', "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); } })))));
50
50
  }
51
51
  static get is() { return "zonos-badge"; }
52
52
  static get encapsulation() { return "shadow"; }
@@ -184,13 +184,13 @@ export class ZonosButton {
184
184
  const borderStyle = getBorderRadius({
185
185
  overrideBorderStyle: this.borderStyle,
186
186
  });
187
- return (h(Host, { key: 'd07f698c62e64fe404dc346e17aa4ebb23af635a', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
187
+ return (h(Host, { key: '6e6b961c9215370bdbfce09715d1a16d878d2d85', class: classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles({
188
188
  '--zonos--background-color': backgroundColor,
189
189
  '--zonos--border-radius': borderStyle,
190
190
  '--zonos--color': color,
191
191
  '--zonos--font-family': zonosStoreFontFamily(),
192
192
  '--zonos--font-weight': this.bold ? 'bold' : 'normal',
193
- }) }, h("button", Object.assign({ key: '721b3b8c4dbc0666de04510c091b7be558a7ede3' }, this.inheritedAttributes, { class: classes([
193
+ }) }, h("button", Object.assign({ key: '3941358241e37fb19b2ace0fa0d892002c6967f0' }, this.inheritedAttributes, { class: classes([
194
194
  this.hasIcon && 'has-icon',
195
195
  this.hasContent && 'has-content',
196
196
  this.noBackground && 'no-background',
@@ -205,7 +205,7 @@ export class ZonosButton {
205
205
  backgroundColor && variant === 'standard' && 'override-background',
206
206
  ]), disabled: disabled, style: {
207
207
  justifyContent: this.justifyContent,
208
- } }), this.loading && (h("div", { key: 'c60e5e9d71ddf3750fbbcb911badca7885710518', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: '3c863893cf81663c5a13dfdbd44b27828f01de31', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: '7856e2a360552702a19ca58a0de763763c158749', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
208
+ } }), this.loading && (h("div", { key: '769b699dd66e0e5f960efe018b0be7fed2a2ecd3', class: "zonos--spinner-wrapper" }, h("zonos-spinner", { key: 'e7be35423da99ccc0bf9ba2269f030f0c2ea9223', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, h("slot", { key: 'cacea287ce83b46f57aae7753805d8bf4e580f82', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
209
209
  }
210
210
  static get is() { return "zonos-button"; }
211
211
  static get encapsulation() { return "shadow"; }
@@ -23,16 +23,16 @@ export class ZonosCard {
23
23
  customRoundRadius: `${this.borderRadius}px`,
24
24
  overrideBorderStyle: 'ROUNDED',
25
25
  });
26
- return (h(Host, { key: '9abda7f00c442317f63521444b6eeb21f294d2bb', style: {
26
+ return (h(Host, { key: '2e397f11a2f497f2bafcf5f6a0f5922e66488845', style: {
27
27
  '--zonos--font-family': zonosStoreFontFamily(),
28
- } }, h("div", { key: '2e1f1e4b59ce9ce87c7a22e58f0ae6c5dd0f0388', class: classes(['styled-card']), style: {
28
+ } }, h("div", { key: '300923b5b9b7db94cad3e47060174245ea61b75e', class: classes(['styled-card']), style: {
29
29
  '--zonos--background-color': backgroundColor,
30
30
  '--zonos--border-radius': borderRadius,
31
31
  padding: this.spacing,
32
- } }, this.label && (h("header", { key: '215b106d17a37b8eb28e5ae730f0ff5401c02331', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '31363bdd23ac0ad625c6442fcf7110e559fa0201', type: "subheader" }, this.label), h("h-stack", { key: '10b338eaf67a92b84d7a9434f52e4c111a15f561', spacing: 8 }, this.actions))), h("slot", { key: 'afd067cc47d74d109f4fb4768fc8e0dfa4d88e70' }), (this.footerActions || this.footerContent) && (h("footer", { key: '17ee21b433ca723724c74e379b03b9c63a7b53eb', class: "card-footer", style: {
32
+ } }, this.label && (h("header", { key: '021cc3d1e0b79ab31c19212891d17fbaf5a5b77a', class: "card-header", style: { padding: this.spacing } }, h("zonos-text", { key: '82f3d6ea4a52d822801d80b2a3c9cf35ed574464', type: "subheader" }, this.label), h("h-stack", { key: 'c272945368a1074513bcc06b7c306ca5c62ae8e9', spacing: 8 }, this.actions))), h("slot", { key: 'f1c1a3360eb8331e4f4ab69aec8c1dbd7dca2119' }), (this.footerActions || this.footerContent) && (h("footer", { key: '13f8e6d12545203c8a8a9ec5056e38df691eb907', class: "card-footer", style: {
33
33
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
34
34
  padding: this.spacing,
35
- } }, h("div", { key: 'fd2680f6ba67a7afcb8001ba2d9e0eff49b74675' }, this.footerContent), h("h-stack", { key: 'f7c716b48b470082b5196ddaeac189e476a4c3fd', spacing: 8 }, this.footerActions))))));
35
+ } }, h("div", { key: 'aad83f26fe6816d98edd96ffc28c24b82085a5e9' }, this.footerContent), h("h-stack", { key: 'fd6bf6f1069f9e85d7b17fb944d26dd5fc7e0151', spacing: 8 }, this.footerActions))))));
36
36
  }
37
37
  static get is() { return "zonos-card"; }
38
38
  static get encapsulation() { return "shadow"; }
@@ -51,14 +51,14 @@ export class ZonosCheckbox {
51
51
  customRoundRadius: '4px',
52
52
  overrideBorderStyle: this.borderStyle,
53
53
  });
54
- return (h(Host, { key: '2021966f1236912bd2970023fbc44165c7b6ed7c', class: classes(['zonos--elements zonos--checkbox']), style: {
54
+ return (h(Host, { key: 'e85da15e441564d911fc0cf3927d4bbfcd151570', class: classes(['zonos--elements zonos--checkbox']), style: {
55
55
  '--zonos--background-color': backgroundColor,
56
56
  '--zonos--border-radius': borderStyle,
57
57
  '--zonos--font-family': zonosStoreFontFamily(),
58
58
  '--zonos--size': `${this.size}px`,
59
- } }, h("label", { key: 'b49919481676d8360a07d9cd456ce149559b9a09', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: '5d3382b19c8f5207e5a505ff09248441969aa5c7', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
59
+ } }, h("label", { key: 'f0dd01f615792e9c2cd2051a8a3aa04d8f6f1f53', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: '503709370926204f7d4c7ac3e75853a832a73401', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
60
60
  this.checkboxSelected.emit(e.target.checked);
61
- }, type: "checkbox" }), h("span", { key: 'fc35e3d6c1a3380b8f2b012951b5cf50e42e9735', class: "checkmark-container" }, h("svg", { key: 'c134d6444c50ff2294c7685f2a3ed52a6ef070b6', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '635394bdaa83c0d222f995a805128b3ccfae71a0', "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: '0626598dc95151a065a615ffaf99fd59030d2a29', size: this.fontSize }, this.label)))));
61
+ }, type: "checkbox" }), h("span", { key: '228d3d5cabdcd5633bd0fabea9997a787fdca0ae', class: "checkmark-container" }, h("svg", { key: '42ab50560eb8fde3dcb3d0d0325ba05c57c5e30f', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '63f95aec780a449cb03896ee3a2d2e039355af18', "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: 'fad4553fae51c0dffc77443c08439c8076a9dfbd', size: this.fontSize }, this.label)))));
62
62
  }
63
63
  static get is() { return "zonos-checkbox"; }
64
64
  static get encapsulation() { return "shadow"; }
@@ -77,17 +77,17 @@ export class ZonosCheckoutProgressTabs {
77
77
  color: labelSelectedColor,
78
78
  })
79
79
  : labelSelectedColor;
80
- return (h(Host, { key: 'e5c68ba81756351ca14ee7cecc1fc31070aea2f6', class: "zonos--elements", style: {
80
+ return (h(Host, { key: 'b6a80cfc838ca16ce76be381fcde573a0d6db0cc', class: "zonos--elements", style: {
81
81
  '--zonos--color': contrastLabelColor,
82
82
  '--zonos--progress-percent': this.getTotalSuccessStep(),
83
- } }, h("div", { key: '64c20db4eb660505af2e97c07e9658f9866cfd57', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
83
+ } }, h("div", { key: '6002136139ac0349c9dca75fc4c24dc258599551', class: "zonos--tab-wrapper" }, Object.values(cartStore.tabItems).map((tab, index) => {
84
84
  const isSelected = tab.value === selectedStep;
85
85
  return (h("button", { "aria-label": `Tab ${tab.label}`, class: classes([
86
86
  'zonos--tab-item',
87
87
  tab.value === selectedStep && 'selected',
88
88
  tab.isDone && 'done',
89
89
  ]), disabled: !this.isTabClickable(tab.value), key: tab.value, onClick: () => this.setTabSelected(tab.value) }, h("div", { class: "zonos--tab-index" }, h("zonos-text", { class: "zonos--tab-index-label", textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, index + 1), h("zonos-icon", { class: "zonos--tab-index-done-icon", content: TabCheckmark, iconColor: isSelected ? contrastLabelColor : 'gray-1000' })), h("zonos-text", { textColor: isSelected ? contrastLabelColor : 'gray-1000', type: "label" }, translate(tab.label))));
90
- })), h("div", { key: 'e3257fb953c3c76e946a47334a16a2bd802ceb10', class: "zonos--tab-progress" }, h("div", { key: '2e8a3905cf361d1138846aa8f8153b92e80c5fca', class: "zonos--progress-bar-fill" }))));
90
+ })), h("div", { key: '5b834399f95b66f5ae076e721acb51f50c068551', class: "zonos--tab-progress" }, h("div", { key: '267bf0a5b8911eadcca75147d625201115b7de8b', class: "zonos--progress-bar-fill" }))));
91
91
  }
92
92
  static get is() { return "zonos-checkout-progress-tabs"; }
93
93
  static get encapsulation() { return "shadow"; }
@@ -48,10 +48,10 @@ export class ZonosCollapse {
48
48
  // set overflow to hidden to prevent content from showing when collapsed
49
49
  this.el.style.overflow = 'hidden';
50
50
  }
51
- return (h(Host, { key: '9a7c1c2e4f960e34fa81af1ce3bc509857082a27', class: 'zonos--elements zonos--collapse', style: {
51
+ return (h(Host, { key: '89b15e5cd4fc45b07cd185c076b239dddc7398f1', class: 'zonos--elements zonos--collapse', style: {
52
52
  '--zonos--font-family': zonosStoreFontFamily(),
53
53
  height: this.getElementHeight(),
54
- } }, h("div", { key: 'e68bac246e123eaf18d3b0a47c38b60ddd9c297a' }, h("iframe", { key: '011961e0e1608ba664ba366a16347c843d4280b3', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: '8234271563b9a56b8507374e4aa9881ae8f699ba' }))));
54
+ } }, h("div", { key: '21f33e337c456f9706eb4ac05e97e80b1a79b56d' }, h("iframe", { key: '2a2dd65f575471f7a0c6bbb407d063103ace77ab', class: "height-change-listener", tabindex: "-1", title: "collapse-height-change-listener" }), h("slot", { key: '6e09930a27e8c5278eea633f0998d4441fc3599c' }))));
55
55
  }
56
56
  static get is() { return "zonos-collapse"; }
57
57
  static get encapsulation() { return "shadow"; }
@@ -108,13 +108,13 @@ export class ZonosConfirmDialog {
108
108
  const borderStyle = getBorderRadius();
109
109
  // Get theme for the update dialog, inherit from the theme, no from this component theme
110
110
  const theme = getZonosStoreTheme(zonosStore.appearance.theme);
111
- return (h(Host, { key: 'a91852d7fabd934497c5a87ad42b206dcee15ae7', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
111
+ return (h(Host, { key: 'dc074c5b88b642e06edd8942408a3aeed05e5cdb', class: classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
112
112
  '--zonos--border-radius': borderStyle,
113
113
  '--zonos--dialog-width': `${this.dialogWidth}px`,
114
114
  '--zonos--font-family': zonosStoreFontFamily(),
115
- } }, h("div", { key: '3074b85548fd1dc5023611423c52fbbd77a3e959', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: 'f326b54e65bddf562d4b9649b8964831d0545db6', class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: '0ab0ae9fecdca87acb7adc33c14408978a40a009', class: "zonos--confirm-dialog", onBlur: () => {
115
+ } }, h("div", { key: '119a9c201e44a670fb1df61f6663d96f7148ecc6', class: "zonos--backdrop", tabIndex: -1 }), h("div", { key: '9534a92f69dd3d692c1a2fd86fa1cf148f68cdfa', class: classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, h("div", { key: 'e79aaf3a80b57634f78575b15a75d7b549ed20ee', class: "zonos--confirm-dialog", onBlur: () => {
116
116
  this.focusDialog();
117
- } }, h("div", { key: 'd168c39fa5a31a107cbe4ff325cf4184ee8b2ad3', class: "wrapper" }, h("div", { key: 'c7cdca4f45e22e36393616fa3970556477902ead', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: '1dcf75c8657a414662271a4c93b0698bd174b010', class: "content" }, h("div", { key: '191344284e3173b22a37c3383c49cb51e0fb54a5', class: "title" }, h("zonos-text", { key: '539b24aa36afa5a6fe046ac37eda57ccc1170124', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '53d54141bdcc1f0df661df450f5393e657410025', class: "subtitle" }, h("zonos-text", { key: '0a8b74eceb87355ad6869e1338a708bb0182cab8', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: '68fd8147f7834074392be28f0053cf2f802faf69', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: 'a8be0abcfc980ec720d64ec0dc5cdacf5d19dadb', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: 'c72ea83faa9cd24c5e6f5894045e07d4639a5fc4', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
117
+ } }, h("div", { key: '44367b178f46c66dfb236485e05f6832ae63a63b', class: "wrapper" }, h("div", { key: '42d10d17180ec7364710682c27d6cd4fef0b8abe', class: "icon-wrapper" }, this.renderIcon()), h("div", { key: 'b5f7563fb43e1b147db669e1df71f4fafb5284df', class: "content" }, h("div", { key: '38b78e383833b5e49908c8e95c35b9ad23c0f956', class: "title" }, h("zonos-text", { key: '726f5308881671e7e17bd0591521485bd7142c1e', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (h("div", { key: '58d663842d51a512b3c8799a907bd1ed58e4fb31', class: "subtitle" }, h("zonos-text", { key: '4411400d8906a22fd5f31652a1eeb314cae8ad68', textColor: "gray-800" }, this.dialogSubtitle)))), h("div", { key: 'df0452b2af633dd558858db824336fd5925aef50', class: "footer" }, this.dialogType === 'confirm' && (h("zonos-button", { key: '50f88e85e18129ef4ee209615b951683c5ff6fa8', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || translate('Cancel'))), h("zonos-button", { key: '314b8be8954241b8c261c62d5a4bbe8155cc6914', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
118
118
  }
119
119
  static get is() { return "zonos-confirm-dialog"; }
120
120
  static get encapsulation() { return "shadow"; }
@@ -51,13 +51,13 @@ export class ZonosCountrySelect {
51
51
  ? fuseObject.map(country => country.item)
52
52
  : countries.sort((a, b) => a.displayName.localeCompare(b.displayName));
53
53
  const isEmpty = !filteredCountries.length;
54
- return (h(Host, { key: 'ecf967940a24637a058097f80a96fd6edc94b9c0', class: "zonos--elements", style: {
54
+ return (h(Host, { key: '3581b885b6d8d220d4c38769658b25ccf473b012', class: "zonos--elements", style: {
55
55
  '--zonos--font-family': zonosStoreFontFamily(),
56
- } }, h("div", { key: 'e78f7272547b779ea3185900ada2522372e2d9de', class: "zonos--country-select" }, h("zonos-v-stack", { key: '41e720a4f9afba443f9ddf219342d49478cfc04e', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '7242a2f93d8107900d04487fbf4847427c5f1812', handleOnClose: () => this.handleOnClose(), label: translate('Select a country') }, h("input", { key: '3e2e884865f6fcfd5d7854a365159f467833960b', autoComplete: "off", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translate('Search countries'), ref: el => {
56
+ } }, h("div", { key: '231cd93711e1e379d196944140c44c0e77332e30', class: "zonos--country-select" }, h("zonos-v-stack", { key: '8a3768ee37ad892960104c6f04e54ed977f5ba2e', class: "zonos--country-select-header", spacing: 8 }, h("zonos-select-dialog-header", { key: '4535301af6a7fa62b101ee5913842c4d1dbec6a2', handleOnClose: () => this.handleOnClose(), label: translate('Select a country') }, h("input", { key: '9a15c15c77c7a193934a4d656f613120266e3f38', autoComplete: "off", class: "zonos--country-select-input", onInput: this.handleInputChange, placeholder: translate('Search countries'), ref: el => {
57
57
  if (el) {
58
58
  this.inputRef = el;
59
59
  }
60
- }, type: "text", value: this.inputValue }))), h("div", { key: 'edaa250ac7a379145877564bb5d6e532dd17fff1', class: "zonos--country-select-content" }, isEmpty && (h("zonos-text", { key: 'b536663c9d506c4a80f23d49451c222e3ee2817a', class: "no-country", textColor: "gray-800" }, translate('No countries found'))), h("zonos-virtual-scroll", { key: '0c3285a82391723ed1c8a0138f3de69051c6dad9', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index => {
60
+ }, type: "text", value: this.inputValue }))), h("div", { key: '14e511287916d98676083c3f3118223073ce6a19', class: "zonos--country-select-content" }, isEmpty && (h("zonos-text", { key: 'd5f14c5e652938fbf9ee18a31b421f406599db7f', class: "no-country", textColor: "gray-800" }, translate('No countries found'))), h("zonos-virtual-scroll", { key: 'ee2b4d3a2feefda0be007b174b85e368292dc868', class: "zonos--country-filter-content", fallbackItemHeight: 34, itemHeights: filteredCountries.map(() => 34), renderItem: index => {
61
61
  const country = filteredCountries[index];
62
62
  if (!country) {
63
63
  return null;
@@ -14,9 +14,9 @@ export class ZonosCustomMessage {
14
14
  }
15
15
  render() {
16
16
  const messageWithLinks = formatStringWithLinks(this.message);
17
- return (h(Host, { key: '85b38bdb1a0df11df6979340596118039e145cca', class: "zonos--elements", style: {
17
+ return (h(Host, { key: '5e87669fad207a56da569c72c5b6b1e86fed0d29', class: "zonos--elements", style: {
18
18
  '--zonos--font-family': zonosStoreFontFamily(),
19
- } }, this.message && (h("zonos-card", { key: 'a14efc2f6d297c0ce83d4a4d53beaa15f4e1c35f', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '98fedfaaea8200bf785201ae9cfc7d8eda9a8379', class: "zonos--flex-message" }, h("zonos-icon", { key: '4cee7b48a7675e7fa5f106ce2ed7fbfbab7c7365', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: 'd8705005a356174752c6a78581c90cd88100c66f', innerHTML: messageWithLinks }))))));
19
+ } }, this.message && (h("zonos-card", { key: '4c9216e22dd3ceb35e647a6e43fc8f1b7c9a4da1', class: "zonos--custom-message", spacing: "12px" }, h("div", { key: '36dc67b55580fbdcf668a6b16a4a1b9fa5f477b6', class: "zonos--flex-message" }, h("zonos-icon", { key: 'b4f26b0b8fd35d7593e84d9abfe69a0dacfa5c20', "aria-label": "Custom message icon", content: this.icon }), h("zonos-text", { key: '74a9b55e87a0e244dc02481112abf26851e6722d', innerHTML: messageWithLinks }))))));
20
20
  }
21
21
  static get is() { return "zonos-custom-message"; }
22
22
  static get encapsulation() { return "shadow"; }