@zonos/elements 1.3.280 → 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 (355) hide show
  1. package/dist/cjs/{TaxId-12acedde.js → TaxId-cd9d490e.js} +1 -1
  2. package/dist/cjs/{cart-0fa312a5.js → cart-dc31b242.js} +3 -2
  3. package/dist/cjs/{collect-f9c4ca7c.js → collect-463ab3d7.js} +2 -2
  4. package/dist/cjs/getMissingRequiredShippingFields-7cd21100.js +50 -0
  5. package/dist/cjs/{hasInclusivePrice-95431bca.js → hasInclusivePrice-d14b9d71.js} +1 -1
  6. package/dist/cjs/index.cjs.js +8 -8
  7. package/dist/cjs/{invoice-ce757565.js → invoice-8c995041.js} +2 -2
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{localization-7fded969.js → localization-491121ad.js} +320 -80
  10. package/dist/cjs/{paypal-57ab3ab6.js → paypal-2a4c374c.js} +2 -2
  11. package/dist/cjs/{placeTestOrder-35e0d3bd.js → placeTestOrder-a940a2e9.js} +2 -2
  12. package/dist/cjs/{renderCheckoutCurrency-41d48407.js → renderCheckoutCurrency-ab39875a.js} +2 -2
  13. package/dist/cjs/{shouldRenderTaxIdInput-b8abf6de.js → shouldRenderTaxIdInput-7d19556c.js} +1 -1
  14. package/dist/cjs/{zonos-address-display_8.cjs.entry.js → zonos-address-completion-dialog_7.cjs.entry.js} +143 -151
  15. package/dist/cjs/zonos-address-display_2.cjs.entry.js +150 -0
  16. package/dist/cjs/zonos-address_4.cjs.entry.js +75 -14
  17. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +4 -4
  18. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  19. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  20. package/dist/cjs/zonos-card_5.cjs.entry.js +10 -10
  21. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +97 -25
  22. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-checkout.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +7 -7
  26. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +20 -20
  27. package/dist/cjs/zonos-collect.cjs.entry.js +5 -5
  28. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-controller.cjs.entry.js +4 -4
  30. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  31. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  32. package/dist/cjs/zonos-elements.cjs.js +1 -1
  33. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +7 -7
  34. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  35. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  36. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +9 -9
  37. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +15 -15
  38. package/dist/cjs/zonos-invoice.cjs.entry.js +5 -5
  39. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  40. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  41. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  42. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +4 -4
  43. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  44. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  45. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  46. package/dist/collection/collection-manifest.json +1 -0
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.css +105 -0
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.js +341 -0
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +5 -5
  50. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +3 -3
  51. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
  52. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
  53. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  54. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +52 -2
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +2 -2
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
  58. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  59. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
  60. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +2 -2
  61. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +2 -2
  62. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +3 -3
  63. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +3 -3
  64. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +2 -2
  65. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  66. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  67. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  68. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  69. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  70. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  71. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  72. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  73. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  74. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  75. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  76. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  77. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  78. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  79. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  80. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  81. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  82. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  83. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  84. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +4 -4
  85. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  86. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  87. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  88. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  89. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  90. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  91. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  92. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  93. package/dist/collection/components/main/zonos-controller.js +1 -1
  94. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  95. package/dist/collection/components/store/checkout/stripe.js +1 -1
  96. package/dist/collection/components/store/translationStore/strings.arabic.js +16 -4
  97. package/dist/collection/components/store/translationStore/strings.base.js +16 -4
  98. package/dist/collection/components/store/translationStore/strings.chinese.js +16 -4
  99. package/dist/collection/components/store/translationStore/strings.danish.js +16 -4
  100. package/dist/collection/components/store/translationStore/strings.dutch.js +16 -4
  101. package/dist/collection/components/store/translationStore/strings.french.js +16 -4
  102. package/dist/collection/components/store/translationStore/strings.german.js +16 -4
  103. package/dist/collection/components/store/translationStore/strings.hebrew.js +16 -4
  104. package/dist/collection/components/store/translationStore/strings.indonesian.js +16 -4
  105. package/dist/collection/components/store/translationStore/strings.italian.js +16 -4
  106. package/dist/collection/components/store/translationStore/strings.japanese.js +16 -4
  107. package/dist/collection/components/store/translationStore/strings.korean.js +16 -4
  108. package/dist/collection/components/store/translationStore/strings.norwegian.js +16 -4
  109. package/dist/collection/components/store/translationStore/strings.polish.js +16 -4
  110. package/dist/collection/components/store/translationStore/strings.portuguese.js +16 -4
  111. package/dist/collection/components/store/translationStore/strings.russian.js +16 -4
  112. package/dist/collection/components/store/translationStore/strings.spanish.js +16 -4
  113. package/dist/collection/components/store/translationStore/strings.swedish.js +16 -4
  114. package/dist/collection/components/store/translationStore/strings.turkish.js +16 -4
  115. package/dist/collection/components/store/translationStore/strings.vietnamese.js +16 -4
  116. package/dist/collection/components/stripe/zonos-address/zonos-address.js +11 -6
  117. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  118. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  119. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  120. package/dist/collection/components/utils/checkout/applyAddressCompletion.js +23 -0
  121. package/dist/collection/components/utils/checkout/buildAddressContacts.js +57 -0
  122. package/dist/collection/components/utils/checkout/getMissingRequiredShippingFields.js +44 -0
  123. package/dist/collection/components/utils/taxIdValidationResult.js +6 -3
  124. package/dist/collection/types/checkout/TaxId.js +1 -1
  125. package/dist/esm/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
  126. package/dist/esm/{cart-4699e6ab.js → cart-5282f6c1.js} +3 -3
  127. package/dist/esm/{collect-24cc2e12.js → collect-fdbab973.js} +2 -2
  128. package/dist/esm/getMissingRequiredShippingFields-bdeecbff.js +47 -0
  129. package/dist/esm/{hasInclusivePrice-f81ddcd6.js → hasInclusivePrice-161e203f.js} +1 -1
  130. package/dist/esm/index.js +8 -8
  131. package/dist/esm/{invoice-575dc93d.js → invoice-cf6ad79e.js} +2 -2
  132. package/dist/esm/loader.js +1 -1
  133. package/dist/esm/{localization-da2f407f.js → localization-0953a048.js} +320 -80
  134. package/dist/esm/{paypal-d4436abd.js → paypal-7c82eac4.js} +2 -2
  135. package/dist/esm/{placeTestOrder-d87b2c6a.js → placeTestOrder-6a746207.js} +2 -2
  136. package/dist/esm/{renderCheckoutCurrency-08526996.js → renderCheckoutCurrency-44f897a1.js} +2 -2
  137. package/dist/esm/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
  138. package/dist/esm/{zonos-address-display_8.entry.js → zonos-address-completion-dialog_7.entry.js} +144 -151
  139. package/dist/esm/zonos-address-display_2.entry.js +145 -0
  140. package/dist/esm/zonos-address_4.entry.js +75 -14
  141. package/dist/esm/zonos-airwallex-payment.entry.js +4 -4
  142. package/dist/esm/zonos-badge.entry.js +3 -3
  143. package/dist/esm/zonos-button_3.entry.js +3 -3
  144. package/dist/esm/zonos-card_5.entry.js +10 -10
  145. package/dist/esm/zonos-cart-items_12.entry.js +98 -26
  146. package/dist/esm/zonos-checkbox_2.entry.js +5 -5
  147. package/dist/esm/zonos-checkout.entry.js +4 -4
  148. package/dist/esm/zonos-collapse.entry.js +2 -2
  149. package/dist/esm/zonos-collect-cart-items_3.entry.js +7 -7
  150. package/dist/esm/zonos-collect-finish_6.entry.js +20 -20
  151. package/dist/esm/zonos-collect.entry.js +5 -5
  152. package/dist/esm/zonos-component.entry.js +1 -1
  153. package/dist/esm/zonos-controller.entry.js +4 -4
  154. package/dist/esm/zonos-country-flag.entry.js +1 -1
  155. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  156. package/dist/esm/zonos-elements.js +1 -1
  157. package/dist/esm/zonos-hello-dialog.entry.js +7 -7
  158. package/dist/esm/zonos-hello.entry.js +1 -1
  159. package/dist/esm/zonos-input.entry.js +4 -4
  160. package/dist/esm/zonos-invoice-cart-items_2.entry.js +9 -9
  161. package/dist/esm/zonos-invoice-finish_5.entry.js +15 -15
  162. package/dist/esm/zonos-invoice.entry.js +5 -5
  163. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  164. package/dist/esm/zonos-link.entry.js +1 -1
  165. package/dist/esm/zonos-logo.entry.js +2 -2
  166. package/dist/esm/zonos-policy-consent_2.entry.js +4 -4
  167. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  168. package/dist/esm/zonos-tooltip.entry.js +2 -2
  169. package/dist/esm/zonos-v-stack.entry.js +2 -2
  170. package/dist/esm-es5/{TaxId-50d72254.js → TaxId-63a14057.js} +1 -1
  171. package/dist/esm-es5/{cart-4699e6ab.js → cart-5282f6c1.js} +1 -1
  172. package/dist/esm-es5/{collect-24cc2e12.js → collect-fdbab973.js} +1 -1
  173. package/dist/esm-es5/getMissingRequiredShippingFields-bdeecbff.js +1 -0
  174. package/dist/esm-es5/{hasInclusivePrice-f81ddcd6.js → hasInclusivePrice-161e203f.js} +1 -1
  175. package/dist/esm-es5/index.js +1 -1
  176. package/dist/esm-es5/{invoice-575dc93d.js → invoice-cf6ad79e.js} +1 -1
  177. package/dist/esm-es5/loader.js +1 -1
  178. package/dist/esm-es5/localization-0953a048.js +1 -0
  179. package/dist/esm-es5/{paypal-d4436abd.js → paypal-7c82eac4.js} +1 -1
  180. package/dist/esm-es5/{placeTestOrder-d87b2c6a.js → placeTestOrder-6a746207.js} +1 -1
  181. package/dist/esm-es5/{renderCheckoutCurrency-08526996.js → renderCheckoutCurrency-44f897a1.js} +1 -1
  182. package/dist/esm-es5/{shouldRenderTaxIdInput-2572bf77.js → shouldRenderTaxIdInput-ef7b5860.js} +1 -1
  183. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +1 -0
  184. package/dist/esm-es5/zonos-address-display_2.entry.js +1 -0
  185. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  186. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  187. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  188. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  189. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  190. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -1
  191. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  192. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  193. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  194. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  195. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  196. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  197. package/dist/esm-es5/zonos-component.entry.js +1 -1
  198. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  199. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  200. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  201. package/dist/esm-es5/zonos-elements.js +1 -1
  202. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  203. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  204. package/dist/esm-es5/zonos-input.entry.js +1 -1
  205. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -1
  206. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  207. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  208. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  209. package/dist/esm-es5/zonos-link.entry.js +1 -1
  210. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  211. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  212. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  213. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  214. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  215. package/dist/scripts/index.d.ts +125 -2
  216. package/dist/scripts/index.js +1 -1
  217. package/dist/scripts/loadZonos.js +1 -1
  218. package/dist/scripts/zonos.js +1 -1
  219. package/dist/types/components/checkout/zonos-checkout/zonos-address-completion-dialog/zonos-address-completion-dialog.d.ts +75 -0
  220. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +16 -0
  221. package/dist/types/components/store/checkout/stripe.d.ts +4 -0
  222. package/dist/types/components/store/translationStore/strings.arabic.d.ts +14 -2
  223. package/dist/types/components/store/translationStore/strings.base.d.ts +14 -2
  224. package/dist/types/components/store/translationStore/strings.chinese.d.ts +14 -2
  225. package/dist/types/components/store/translationStore/strings.danish.d.ts +14 -2
  226. package/dist/types/components/store/translationStore/strings.dutch.d.ts +14 -2
  227. package/dist/types/components/store/translationStore/strings.french.d.ts +14 -2
  228. package/dist/types/components/store/translationStore/strings.german.d.ts +14 -2
  229. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +14 -2
  230. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +14 -2
  231. package/dist/types/components/store/translationStore/strings.italian.d.ts +14 -2
  232. package/dist/types/components/store/translationStore/strings.japanese.d.ts +14 -2
  233. package/dist/types/components/store/translationStore/strings.korean.d.ts +14 -2
  234. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +14 -2
  235. package/dist/types/components/store/translationStore/strings.polish.d.ts +14 -2
  236. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +14 -2
  237. package/dist/types/components/store/translationStore/strings.russian.d.ts +14 -2
  238. package/dist/types/components/store/translationStore/strings.spanish.d.ts +14 -2
  239. package/dist/types/components/store/translationStore/strings.swedish.d.ts +14 -2
  240. package/dist/types/components/store/translationStore/strings.turkish.d.ts +14 -2
  241. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +14 -2
  242. package/dist/types/components/utils/checkout/applyAddressCompletion.d.ts +25 -0
  243. package/dist/types/components/utils/checkout/buildAddressContacts.d.ts +21 -0
  244. package/dist/types/components/utils/checkout/getMissingRequiredShippingFields.d.ts +35 -0
  245. package/dist/types/components/utils/taxIdValidationResult.d.ts +1 -1
  246. package/dist/types/components.d.ts +97 -0
  247. package/dist/types/types/checkout/TaxId.d.ts +1 -1
  248. package/dist/zonos-elements/index.esm.js +1 -1
  249. package/dist/zonos-elements/{p-b330e451.system.js → p-0287f9cd.system.js} +1 -1
  250. package/dist/zonos-elements/{p-5aee5de5.system.entry.js → p-05cb0a0d.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-3f90cb36.entry.js → p-0fb4e032.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-dbd5be5d.entry.js → p-10584546.entry.js} +1 -1
  253. package/dist/zonos-elements/p-193fc2da.entry.js +1 -0
  254. package/dist/zonos-elements/p-1977f4b5.js +1 -0
  255. package/dist/zonos-elements/p-1cf5e2ce.system.entry.js +1 -0
  256. package/dist/zonos-elements/p-1cf76dd3.entry.js +1 -0
  257. package/dist/zonos-elements/p-1d31b966.system.js +1 -0
  258. package/dist/zonos-elements/{p-0ad6a92b.system.entry.js → p-21489ff1.system.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-734d646b.entry.js → p-21f7d57b.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-b8c019b9.system.js → p-2394b186.system.js} +1 -1
  261. package/dist/zonos-elements/{p-5b54f10c.entry.js → p-23eee868.entry.js} +1 -1
  262. package/dist/zonos-elements/{p-b5f67807.entry.js → p-26bf0c31.entry.js} +1 -1
  263. package/dist/zonos-elements/{p-40a0c1d3.system.js → p-28ee0860.system.js} +1 -1
  264. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  265. package/dist/zonos-elements/{p-6bea1787.entry.js → p-30cfc9f4.entry.js} +1 -1
  266. package/dist/zonos-elements/{p-aff7112b.entry.js → p-323279b8.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-8c54aaec.entry.js → p-32b53999.entry.js} +1 -1
  268. package/dist/zonos-elements/{p-c15476a1.system.entry.js → p-333f6018.system.entry.js} +1 -1
  269. package/dist/zonos-elements/p-3642dd99.entry.js +1 -0
  270. package/dist/zonos-elements/p-3c62acbd.js +1 -0
  271. package/dist/zonos-elements/{p-fc2d5dd9.entry.js → p-4417475f.entry.js} +1 -1
  272. package/dist/zonos-elements/p-543b25f9.entry.js +1 -0
  273. package/dist/zonos-elements/{p-1992fd91.entry.js → p-55c5977b.entry.js} +1 -1
  274. package/dist/zonos-elements/{p-72c1bd64.entry.js → p-56e9a29e.entry.js} +1 -1
  275. package/dist/zonos-elements/p-59518657.entry.js +1 -0
  276. package/dist/zonos-elements/p-5953208b.js +1 -0
  277. package/dist/zonos-elements/p-5987dea1.js +1 -0
  278. package/dist/zonos-elements/{p-a44591f6.system.entry.js → p-5a37683b.system.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-36b311f9.system.entry.js → p-5b11bbca.system.entry.js} +1 -1
  280. package/dist/zonos-elements/{p-b05da593.system.entry.js → p-5d6b018c.system.entry.js} +1 -1
  281. package/dist/zonos-elements/p-63b462dd.system.entry.js +1 -0
  282. package/dist/zonos-elements/p-646e6b47.system.entry.js +1 -0
  283. package/dist/zonos-elements/{p-81c4f04a.system.entry.js → p-68631285.system.entry.js} +1 -1
  284. package/dist/zonos-elements/{p-12452213.entry.js → p-6f874ed9.entry.js} +1 -1
  285. package/dist/zonos-elements/p-71fc8a22.js +1 -0
  286. package/dist/zonos-elements/{p-c4a479ad.entry.js → p-76e36d6d.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-a3d3ce5d.system.entry.js → p-781b3345.system.entry.js} +1 -1
  288. package/dist/zonos-elements/{p-275fa2da.js → p-7ab15d20.js} +1 -1
  289. package/dist/zonos-elements/{p-48d55793.system.js → p-7ac8846c.system.js} +1 -1
  290. package/dist/zonos-elements/{p-96e7b465.js → p-7c70e0c7.js} +1 -1
  291. package/dist/zonos-elements/p-8418aa07.entry.js +1 -0
  292. package/dist/zonos-elements/{p-99e8743e.system.entry.js → p-8fa3a8f8.system.entry.js} +1 -1
  293. package/dist/zonos-elements/{p-944148db.system.entry.js → p-8fb15a6b.system.entry.js} +1 -1
  294. package/dist/zonos-elements/{p-6451537c.entry.js → p-95042e71.entry.js} +1 -1
  295. package/dist/zonos-elements/p-987b5d8f.js +1 -0
  296. package/dist/zonos-elements/{p-2b8345d8.system.js → p-989cb22b.system.js} +1 -1
  297. package/dist/zonos-elements/{p-2dbdf883.system.js → p-a4eddf6c.system.js} +1 -1
  298. package/dist/zonos-elements/p-a553e132.js +1 -0
  299. package/dist/zonos-elements/{p-6197aa73.system.entry.js → p-aa1f3060.system.entry.js} +1 -1
  300. package/dist/zonos-elements/p-aa37f436.system.entry.js +1 -0
  301. package/dist/zonos-elements/{p-788a16bb.system.js → p-ab61ef19.system.js} +1 -1
  302. package/dist/zonos-elements/{p-362215b6.system.entry.js → p-b91a8f31.system.entry.js} +1 -1
  303. package/dist/zonos-elements/{p-15097876.system.entry.js → p-b93013f7.system.entry.js} +1 -1
  304. package/dist/zonos-elements/{p-6b361d2b.js → p-bcf5cffb.js} +1 -1
  305. package/dist/zonos-elements/{p-807e7ebc.entry.js → p-c121b2b8.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-66223935.system.entry.js → p-c12ca8fe.system.entry.js} +1 -1
  307. package/dist/zonos-elements/p-c5bfe522.system.js +1 -0
  308. package/dist/zonos-elements/{p-732e7373.system.entry.js → p-c634546a.system.entry.js} +1 -1
  309. package/dist/zonos-elements/{p-f3759c70.js → p-c8bc4ede.js} +1 -1
  310. package/dist/zonos-elements/{p-a7f0e824.system.entry.js → p-c8df5eee.system.entry.js} +1 -1
  311. package/dist/zonos-elements/{p-43a14674.system.entry.js → p-c9e44c77.system.entry.js} +1 -1
  312. package/dist/zonos-elements/{p-cf0c8c77.system.entry.js → p-ca9231a0.system.entry.js} +1 -1
  313. package/dist/zonos-elements/{p-3e058b4e.entry.js → p-cb376f03.entry.js} +1 -1
  314. package/dist/zonos-elements/{p-016b5bde.system.js → p-cd3f7fd7.system.js} +1 -1
  315. package/dist/zonos-elements/{p-b6cd6e62.system.entry.js → p-d06486ba.system.entry.js} +1 -1
  316. package/dist/zonos-elements/{p-db9cb522.entry.js → p-d0767f88.entry.js} +1 -1
  317. package/dist/zonos-elements/{p-46f88c11.system.entry.js → p-d2cb99ee.system.entry.js} +1 -1
  318. package/dist/zonos-elements/p-ddd0e703.system.entry.js +1 -0
  319. package/dist/zonos-elements/{p-85796e67.entry.js → p-dfd83cff.entry.js} +1 -1
  320. package/dist/zonos-elements/{p-4efd7178.entry.js → p-e0cbc7c7.entry.js} +1 -1
  321. package/dist/zonos-elements/{p-b6049eef.system.entry.js → p-e101b0de.system.entry.js} +1 -1
  322. package/dist/zonos-elements/{p-dd6da3de.entry.js → p-e3d0d8ff.entry.js} +1 -1
  323. package/dist/zonos-elements/{p-a30f03d6.system.js → p-e57f862d.system.js} +1 -1
  324. package/dist/zonos-elements/{p-1bb85ff1.entry.js → p-e6e3a303.entry.js} +1 -1
  325. package/dist/zonos-elements/{p-5d4201d5.entry.js → p-ef2c264c.entry.js} +1 -1
  326. package/dist/zonos-elements/{p-564c7bb5.system.entry.js → p-f1298203.system.entry.js} +1 -1
  327. package/dist/zonos-elements/{p-0adab1d5.system.entry.js → p-f1aa60fd.system.entry.js} +1 -1
  328. package/dist/zonos-elements/{p-429ab545.system.entry.js → p-f1dbeb85.system.entry.js} +1 -1
  329. package/dist/zonos-elements/{p-2825431d.entry.js → p-f2431e47.entry.js} +1 -1
  330. package/dist/zonos-elements/{p-29c1703c.system.entry.js → p-f2511b86.system.entry.js} +1 -1
  331. package/dist/zonos-elements/{p-08e78d79.entry.js → p-fa80a973.entry.js} +1 -1
  332. package/dist/zonos-elements/p-fb8dc23f.system.js +1 -0
  333. package/dist/zonos-elements/{p-f59514e9.entry.js → p-fc45b3a5.entry.js} +1 -1
  334. package/dist/zonos-elements/{p-3068247c.system.entry.js → p-fdd7ec44.system.entry.js} +1 -1
  335. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  336. package/package.json +1 -1
  337. package/dist/esm-es5/localization-da2f407f.js +0 -1
  338. package/dist/esm-es5/zonos-address-display_8.entry.js +0 -1
  339. package/dist/zonos-elements/p-19f4e77a.entry.js +0 -1
  340. package/dist/zonos-elements/p-28b1c189.entry.js +0 -1
  341. package/dist/zonos-elements/p-39e2642f.js +0 -1
  342. package/dist/zonos-elements/p-3f8f4c78.js +0 -1
  343. package/dist/zonos-elements/p-63a383f4.js +0 -1
  344. package/dist/zonos-elements/p-65fe75e1.entry.js +0 -1
  345. package/dist/zonos-elements/p-67b2e46c.js +0 -1
  346. package/dist/zonos-elements/p-7237ec6f.system.entry.js +0 -1
  347. package/dist/zonos-elements/p-75da4ba0.entry.js +0 -1
  348. package/dist/zonos-elements/p-79b6070a.js +0 -1
  349. package/dist/zonos-elements/p-94329e56.js +0 -1
  350. package/dist/zonos-elements/p-a5afcea1.system.entry.js +0 -1
  351. package/dist/zonos-elements/p-c2014d57.system.entry.js +0 -1
  352. package/dist/zonos-elements/p-dff1d3be.entry.js +0 -1
  353. package/dist/zonos-elements/p-ec53c436.system.entry.js +0 -1
  354. package/dist/zonos-elements/p-f55a2352.system.js +0 -1
  355. package/dist/zonos-elements/p-fd2d4d04.system.js +0 -1
@@ -0,0 +1,150 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-b1f95d96.js');
6
+ const localization = require('./localization-491121ad.js');
7
+ const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
8
+ const zonosStore = require('./zonosStore-fee716c9.js');
9
+ const classes = require('./classes-b7918f56.js');
10
+ const getBorderRadius = require('./getBorderRadius-4da24d7c.js');
11
+ require('./handleFetch-954f30e1.js');
12
+ require('./VarianceTest-bec00ea8.js');
13
+
14
+ const zonosAddressDisplayCss = ":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 .zonos--title{margin-bottom:12px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:4px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-line{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .zonos--address-line zonos-text+zonos-text::before{content:\", \";color:var(--zonos-elements-gray-1000);margin-right:4px}:host .zonos--country-flag{width:20px;height:14px;border-radius:2px;margin:1px;position:relative;overflow:hidden;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);margin-right:8px;z-index:10;justify-self:center}";
15
+ const ZonosAddressDisplayStyle0 = zonosAddressDisplayCss;
16
+
17
+ const ZonosAddressDisplay = class {
18
+ constructor(hostRef) {
19
+ index.registerInstance(this, hostRef);
20
+ }
21
+ render() {
22
+ var _a;
23
+ const { city, country, email, line1, line2, name, phone, postal_code, state, } = this.currentAddress;
24
+ const shippingZoneCountry = (_a = localization.localizationStore.shippingZoneCountries) === null || _a === void 0 ? void 0 : _a[country];
25
+ const renderEnteredInfoText = ({ bold, content, }) => {
26
+ const textColor = containsNonLatinChars.isTextContainsNonLatinChars(content)
27
+ ? 'red-600'
28
+ : 'gray-1000';
29
+ return (index.h("zonos-text", { textColor: textColor, type: bold ? 'boldLabel' : 'body' }, content));
30
+ };
31
+ return (index.h(index.Host, { class: "zonos--address-form zonos--elements" }, index.h("div", { class: "zonos--title" }, index.h("zonos-text", { textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
32
+ ? localization.translate('Shipping')
33
+ : localization.translate('Billing'))), index.h("div", { class: "zonos--address-group" }, name && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ bold: true, content: name }))), email && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: email }))), phone && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: phone }))), line1 && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: line1 }))), line2 && (index.h("div", { class: "zonos--address-line" }, renderEnteredInfoText({ content: line2 }))), index.h("div", { class: "zonos--address-line" }, city && renderEnteredInfoText({ content: city }), state && renderEnteredInfoText({ content: state }), postal_code && renderEnteredInfoText({ content: postal_code })), shippingZoneCountry && (index.h("div", { class: "zonos--address-line" }, index.h("zonos-country-flag", { class: "zonos--country-flag", countryCode: shippingZoneCountry.code }), ' ', renderEnteredInfoText({
34
+ content: shippingZoneCountry.displayName,
35
+ }))))));
36
+ }
37
+ };
38
+ ZonosAddressDisplay.style = ZonosAddressDisplayStyle0;
39
+
40
+ const RemoveIcon = `<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>`;
41
+
42
+ const zonosDialogCss = ":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 .zonos--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0;top:0;background:var(--zonos-elements-backdrop-color);position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:4px;z-index:2147483009;background:var(--zonos-elements-gray-0);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--loading-text,:host .zonos--loading-title{max-width:100%;padding:0 32px;text-align:center}:host .zonos--dialog-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--zonos-elements-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:2147483008;background:var(--zonos-elements-gray-0);max-width:90vw;max-height:90vh;min-height:var(--zonos--min-height, auto);height:var(--zonos--height, auto);width:var(--zonos--width, auto);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:16px 24px}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--zonos-elements-size-md);height:var(--zonos-elements-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--zonos-elements-radius-10);-ms-flex-item-align:start;align-self:flex-start}:host .zonos--header .zonos--close-button:hover{background:var(--zonos-elements-hover-color)}:host .zonos--body{padding:8px 24px;max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:16px 24px}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:2147483008;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:2147483009;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";
43
+ const ZonosDialogStyle0 = zonosDialogCss;
44
+
45
+ const ZonosDialog = class {
46
+ constructor(hostRef) {
47
+ index.registerInstance(this, hostRef);
48
+ this.closeDialog = index.createEvent(this, "closeDialog", 3);
49
+ /**
50
+ * Whether or not the dialog is open
51
+ * @default false
52
+ */
53
+ this.open = false;
54
+ /**
55
+ * The header text for the dialog
56
+ */
57
+ this.headerText = '';
58
+ /**
59
+ * The width of the dialog
60
+ * @default 460px
61
+ */
62
+ this.width = '460px';
63
+ /**
64
+ * Whether or not to show the header
65
+ * @default false
66
+ */
67
+ this.noHeader = false;
68
+ /**
69
+ * Whether or not to have body padding
70
+ * @default false
71
+ */
72
+ this.noBodyPadding = false;
73
+ /**
74
+ * Whether or not to have body padding
75
+ * @default false
76
+ */
77
+ this.noBorder = false;
78
+ /**
79
+ * Whether or not to show the close button
80
+ * @default false
81
+ */
82
+ this.noCloseButton = false;
83
+ /**
84
+ * Whether or not to close the dialog when clicking outside of it
85
+ * @default false
86
+ */
87
+ this.noClickOutside = false;
88
+ /**
89
+ * Flag to determine if the checkout is on mobile
90
+ */
91
+ this.mobile = false;
92
+ /**
93
+ * Load loading spinner for the dialog or not
94
+ */
95
+ this.isLoading = true;
96
+ this.isMobile = false;
97
+ this.isMobileMode = () => {
98
+ return this.mobile || window.innerWidth <= 768;
99
+ };
100
+ this.closeButtonHandler = () => {
101
+ // Only do the action if the dialog is open
102
+ if (!this.open) {
103
+ return;
104
+ }
105
+ this.closeDialog.emit();
106
+ };
107
+ this.clickOutsideDialogHandler = (event) => {
108
+ if (event.target === event.currentTarget && !this.noClickOutside) {
109
+ this.closeDialog.emit();
110
+ }
111
+ };
112
+ }
113
+ handleWindowResize() {
114
+ this.isMobile = this.isMobileMode();
115
+ }
116
+ handleKeyDown(ev) {
117
+ if (ev.key === 'Escape') {
118
+ this.closeButtonHandler();
119
+ }
120
+ }
121
+ componentDidLoad() {
122
+ this.isMobile = this.isMobileMode();
123
+ }
124
+ render() {
125
+ const borderStyle = getBorderRadius.getBorderRadius({
126
+ overrideBorderStyle: this.borderStyle,
127
+ });
128
+ return (index.h(index.Host, { key: '93de5ea91ebef1927a2d7dc91a00f87277755ac7', class: classes.classes([
129
+ 'zonos--elements',
130
+ this.open && 'open',
131
+ this.isLoading && 'is-loading',
132
+ this.noBorder && 'no-border',
133
+ this.isMobile && 'mobile',
134
+ ]), style: {
135
+ '--zonos--border-radius': borderStyle,
136
+ '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
137
+ '--zonos--height': this.height || 'initial',
138
+ '--zonos--min-height': this.minHeight || '500px',
139
+ '--zonos--width': this.width,
140
+ } }, index.h("div", { key: '86330a3de751f262a3f0f80fbeb436bb6e2b206f', class: "zonos--backdrop" }), index.h("div", { key: 'a6702c9a9b5bba9f3523503cd85ba6e6ae77fc9d', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '2c4d6e9170fbe80a2ea249d3f40cbc72e5df05d3', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: 'e83dcb53e9cd7504d588b124c6468535e81ce71d', class: "zonos--loading" }, index.h("zonos-spinner", { key: '5e8b3451b5358c76c2fdf47a0ad5eecc8394d012', size: 30 }), this.loadingTitle && (index.h("zonos-text", { key: '671203125d8fd7e8cb811b61b7190f826221507a', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (index.h("zonos-text", { key: '791a95ed2bdad0c3bfb136c9e42d7d8e920110d9', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: '8d4f7a2e12cd56d6341cf5aa17be1a7f151ca45b', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '4bdd26b40a2209ccf44d85440cfbf173724f9aaa', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: 'c8f5d7eaff8c9ba94d60d587b5601472e80ea79a', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), index.h("div", { key: 'e5d91fb3bb3546e559566f8782aa9d939d0f1d04', class: classes.classes([
141
+ 'zonos--body',
142
+ this.noBodyPadding && 'zonos--no-body-padding',
143
+ ]) }, index.h("slot", { key: '2da7a3c7a978bb520c255a0043f96bf15b2dd006' })), index.h("slot", { key: '38ec2165a11c9cc2b121122124482590f9cd31e9', name: "dialog-footer" })))));
144
+ }
145
+ static get assetsDirs() { return ["assets"]; }
146
+ };
147
+ ZonosDialog.style = ZonosDialogStyle0;
148
+
149
+ exports.zonos_address_display = ZonosAddressDisplay;
150
+ exports.zonos_dialog = ZonosDialog;
@@ -4,19 +4,76 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
6
  const throttle = require('./throttle-34f7abf1.js');
7
- const cart = require('./cart-0fa312a5.js');
8
- const localization = require('./localization-7fded969.js');
7
+ const cart = require('./cart-dc31b242.js');
8
+ const localization = require('./localization-491121ad.js');
9
9
  const zonosStore = require('./zonosStore-fee716c9.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
- const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-b8abf6de.js');
11
+ const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-7d19556c.js');
12
12
  const classes = require('./classes-b7918f56.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
- const TaxId = require('./TaxId-12acedde.js');
14
+ const TaxId = require('./TaxId-cd9d490e.js');
15
15
  const getBorderRadius = require('./getBorderRadius-4da24d7c.js');
16
16
  require('./debounce-9a712c79.js');
17
17
  require('./isDarkColor-ebc74b4d.js');
18
18
  require('./ShortAddressCode-bec338b0.js');
19
19
 
20
+ /**
21
+ * Map a Stripe address change event value into a Stripe `ContactOption`, used to
22
+ * pre-seed the address element's saved-address (contacts) list on remount.
23
+ */
24
+ const mapAddressEventToContact = (value) => {
25
+ const { firstName, lastName } = cart.extractName({
26
+ firstName: value.firstName,
27
+ lastName: value.lastName,
28
+ name: value.name,
29
+ });
30
+ return {
31
+ address: {
32
+ city: value.address.city,
33
+ country: value.address.country,
34
+ line1: value.address.line1,
35
+ line2: value.address.line2 || undefined,
36
+ postal_code: value.address.postal_code,
37
+ state: value.address.state,
38
+ },
39
+ name: (value.name || `${firstName} ${lastName}`).trim(),
40
+ phone: value.phone || undefined,
41
+ };
42
+ };
43
+ /**
44
+ * Build a dedupe key for a contact so we don't add a duplicate saved address. Compared
45
+ * case- and whitespace-insensitively on the distinguishing fields.
46
+ */
47
+ const getContactDedupKey = (contact) => {
48
+ var _a, _b, _c;
49
+ return [
50
+ contact.name,
51
+ (_a = contact.address) === null || _a === void 0 ? void 0 : _a.line1,
52
+ (_b = contact.address) === null || _b === void 0 ? void 0 : _b.postal_code,
53
+ (_c = contact.address) === null || _c === void 0 ? void 0 : _c.country,
54
+ ]
55
+ .map(value => (value || '').trim().toLowerCase())
56
+ .join('|');
57
+ };
58
+ /**
59
+ * Prepend the currently selected address (from the latest Stripe address event) to the
60
+ * list of default saved addresses so it stays selected when the address element is
61
+ * remounted (e.g. navigating between the customer and shipping steps). Avoids adding a
62
+ * duplicate contact when the current address already exists in the list.
63
+ */
64
+ const buildAddressContacts = ({ currentEvent, defaultAddress, }) => {
65
+ if (!currentEvent) {
66
+ return defaultAddress;
67
+ }
68
+ const currentContact = mapAddressEventToContact(currentEvent.value);
69
+ const currentKey = getContactDedupKey(currentContact);
70
+ const alreadyExists = defaultAddress.some(contact => getContactDedupKey(contact) === currentKey);
71
+ if (alreadyExists) {
72
+ return defaultAddress;
73
+ }
74
+ return [currentContact, ...defaultAddress];
75
+ };
76
+
20
77
  const zonosAddressCss = ".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h .zonos--company-name-input.sc-zonos-address,.sc-zonos-address-h .zonos--tax-id-input.sc-zonos-address,.sc-zonos-address-h .zonos--short-address-code-input.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
21
78
  const ZonosAddressStyle0 = zonosAddressCss;
22
79
 
@@ -144,10 +201,14 @@ const ZonosAddress = class {
144
201
  VarianceTest.log(`Stripe country code: ${defaultAddressCountry}`, 'info');
145
202
  const addressElement = stripeElements.create('address', {
146
203
  allowedCountries: checkoutAllCountries ? [] : allowedCountries,
147
- // only show the default address if stripeAddressEventData is not provided
148
- contacts: defaultAddress.length && !stripeAddressEventData
149
- ? this.defaultAddress
150
- : [],
204
+ // Prepend the currently selected address so it stays selected across remounts
205
+ // (customer <-> shipping step navigation), de-duped against the default addresses.
206
+ // Contacts are computed once here at create() time and never mutated afterwards—
207
+ // mutating the contacts value after a remount breaks the element's onChange events.
208
+ contacts: buildAddressContacts({
209
+ currentEvent: stripeAddressEventData,
210
+ defaultAddress,
211
+ }),
151
212
  defaultValues: {
152
213
  address: Object.assign(Object.assign({}, stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address), { country: defaultAddressCountry }),
153
214
  firstName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.firstName,
@@ -358,11 +419,11 @@ const ZonosAddress = class {
358
419
  this.isAddressFilled = true;
359
420
  }
360
421
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
361
- return (index.h(index.Host, { key: '9e66c8b7ba80d28aa430d6f5397d5eca16596e1a', class: classes.classes([
422
+ return (index.h(index.Host, { key: '195940efdd29696d99b1ab6524a53e6a03776c6a', class: classes.classes([
362
423
  'zonos--address',
363
424
  'zonos--elements',
364
425
  `zonos--${this.type}-address`,
365
- ]) }, this.titleText && (index.h("zonos-text", { key: 'a731814dbada28f16699efe8bc23a18c7b6e04ff', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("slot", { key: '138f499157a6628970042d14d89c3420936a5811', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), index.h("div", { key: '51451d40580d128e3c38ab5f3f2cd471c21aaf01', class: "zonos--address-component" })));
426
+ ]) }, this.titleText && (index.h("zonos-text", { key: '968d5990fce9c1eb22cd10b58744e6d00f2e622d', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("slot", { key: 'ae6dd70dcaa5ecd3465c065736e0f31fb40e72d3', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), index.h("div", { key: '0bf3075670d3fcd945f9ddcbe096399e2dc213ed', class: "zonos--address-component" })));
366
427
  }
367
428
  get el() { return index.getElement(this); }
368
429
  static get watchers() { return {
@@ -494,13 +555,13 @@ const ZonosConfirmDialog = class {
494
555
  const borderStyle = getBorderRadius.getBorderRadius();
495
556
  // Get theme for the update dialog, inherit from the theme, no from this component theme
496
557
  const theme = zonosStore.getZonosStoreTheme(zonosStore.zonosStore.appearance.theme);
497
- return (index.h(index.Host, { key: 'a91852d7fabd934497c5a87ad42b206dcee15ae7', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
558
+ return (index.h(index.Host, { key: 'dc074c5b88b642e06edd8942408a3aeed05e5cdb', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
498
559
  '--zonos--border-radius': borderStyle,
499
560
  '--zonos--dialog-width': `${this.dialogWidth}px`,
500
561
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
501
- } }, index.h("div", { key: '3074b85548fd1dc5023611423c52fbbd77a3e959', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: 'f326b54e65bddf562d4b9649b8964831d0545db6', class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: '0ab0ae9fecdca87acb7adc33c14408978a40a009', class: "zonos--confirm-dialog", onBlur: () => {
562
+ } }, index.h("div", { key: '119a9c201e44a670fb1df61f6663d96f7148ecc6', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: '9534a92f69dd3d692c1a2fd86fa1cf148f68cdfa', class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: 'e79aaf3a80b57634f78575b15a75d7b549ed20ee', class: "zonos--confirm-dialog", onBlur: () => {
502
563
  this.focusDialog();
503
- } }, index.h("div", { key: 'd168c39fa5a31a107cbe4ff325cf4184ee8b2ad3', class: "wrapper" }, index.h("div", { key: 'c7cdca4f45e22e36393616fa3970556477902ead', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: '1dcf75c8657a414662271a4c93b0698bd174b010', class: "content" }, index.h("div", { key: '191344284e3173b22a37c3383c49cb51e0fb54a5', class: "title" }, index.h("zonos-text", { key: '539b24aa36afa5a6fe046ac37eda57ccc1170124', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: '53d54141bdcc1f0df661df450f5393e657410025', class: "subtitle" }, index.h("zonos-text", { key: '0a8b74eceb87355ad6869e1338a708bb0182cab8', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: '68fd8147f7834074392be28f0053cf2f802faf69', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: 'a8be0abcfc980ec720d64ec0dc5cdacf5d19dadb', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || localization.translate('Cancel'))), index.h("zonos-button", { key: 'c72ea83faa9cd24c5e6f5894045e07d4639a5fc4', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
564
+ } }, index.h("div", { key: '44367b178f46c66dfb236485e05f6832ae63a63b', class: "wrapper" }, index.h("div", { key: '42d10d17180ec7364710682c27d6cd4fef0b8abe', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: 'b5f7563fb43e1b147db669e1df71f4fafb5284df', class: "content" }, index.h("div", { key: '38b78e383833b5e49908c8e95c35b9ad23c0f956', class: "title" }, index.h("zonos-text", { key: '726f5308881671e7e17bd0591521485bd7142c1e', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: '58d663842d51a512b3c8799a907bd1ed58e4fb31', class: "subtitle" }, index.h("zonos-text", { key: '4411400d8906a22fd5f31652a1eeb314cae8ad68', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: 'df0452b2af633dd558858db824336fd5925aef50', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: '50f88e85e18129ef4ee209615b951683c5ff6fa8', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || localization.translate('Cancel'))), index.h("zonos-button", { key: '314b8be8954241b8c261c62d5a4bbe8155cc6914', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
504
565
  }
505
566
  static get assetsDirs() { return ["assets"]; }
506
567
  get el() { return index.getElement(this); }
@@ -734,7 +795,7 @@ const ZonosLoadingOverlay = class {
734
795
  this.size = 40;
735
796
  }
736
797
  render() {
737
- return (index.h(index.Host, { key: 'e9d9db9623f268cc66c39130607819fa8abede22', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: 'e766d339b90425e7379de4b773ae8f1da98992cb', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: '32a61d38a106367bd4d54cffd8aba2e6c4b1e933', size: this.size, spinnerColor: this.spinnerColor }))));
798
+ return (index.h(index.Host, { key: 'e284a5ada0945f1895dbd9b40039e9d2ef600111', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: 'fb68155fe133ba8cd1d923a0fbb37a382ecabc34', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: '50dc3d4b1f53173240d23ffeac966f7463546fde', size: this.size, spinnerColor: this.spinnerColor }))));
738
799
  }
739
800
  };
740
801
  ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
@@ -3,15 +3,15 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const collect = require('./collect-f9c4ca7c.js');
7
- const cart = require('./cart-0fa312a5.js');
8
- const localization = require('./localization-7fded969.js');
6
+ const collect = require('./collect-463ab3d7.js');
7
+ const cart = require('./cart-dc31b242.js');
8
+ const localization = require('./localization-491121ad.js');
9
9
  const zonosStore = require('./zonosStore-fee716c9.js');
10
10
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
12
12
  require('./isDarkColor-ebc74b4d.js');
13
13
  require('./getBorderRadius-4da24d7c.js');
14
- require('./TaxId-12acedde.js');
14
+ require('./TaxId-cd9d490e.js');
15
15
 
16
16
  const zonosAirwallexPaymentCss = ".sc-zonos-airwallex-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-airwallex-payment-h *.sc-zonos-airwallex-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-airwallex-payment-h img.sc-zonos-airwallex-payment{max-width:100%}.sc-zonos-airwallex-payment-h dl.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h dd.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h1.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h2.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h3.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h4.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h5.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h h6.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h hr.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h figure.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h p.sc-zonos-airwallex-payment,.sc-zonos-airwallex-payment-h pre.sc-zonos-airwallex-payment{margin:0}.sc-zonos-airwallex-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-airwallex-payment-h{display:block}.sc-zonos-airwallex-payment-h .zonos--payment-error-banner.sc-zonos-airwallex-payment{margin-bottom:16px}.sc-zonos-airwallex-payment-h .zonos--airwallex-payment-component.sc-zonos-airwallex-payment{margin-bottom:4px;min-height:40px}";
17
17
  const ZonosAirwallexPaymentStyle0 = zonosAirwallexPaymentCss;
@@ -50,16 +50,16 @@ const ZonosBadge = class {
50
50
  this.loading = false;
51
51
  }
52
52
  render() {
53
- return (index.h(index.Host, { key: '91ff0cbf64075ac1cb47691dd114b4205253b8e9', class: classes.classes(['zonos--elements zonos--badge']), style: {
53
+ return (index.h(index.Host, { key: 'c8d29084d1a10f985bcb52409881fff004a73118', class: classes.classes(['zonos--elements zonos--badge']), style: {
54
54
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
55
- } }, index.h("div", { key: '129b78caecaab54f8eb0dcb42fb2e398c2cfe2e6', class: classes.classes([
55
+ } }, index.h("div", { key: '28cd3711c8e8d6b362c56589553401707456fdc6', class: classes.classes([
56
56
  'zonos--badge-content',
57
57
  this.badgeColor,
58
58
  this.rounded && 'rounded',
59
59
  this.iconRight && 'icon-right',
60
60
  this.size,
61
61
  this.bold && 'bold',
62
- ]) }, this.icon, index.h("zonos-text", { key: '69b9ef2d3d15e6753625aea7c96fe492583e50fe', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: '7237a96503ebdd708a03f3571dc5f68abe6af496' })), this.dismissHandler && (index.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); } })))));
62
+ ]) }, this.icon, index.h("zonos-text", { key: '9dcb72621037e37fc11d5cabe915f6dad9798c2a', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: '7599b4c4689100dc637a3842287a93a42b4edd41' })), this.dismissHandler && (index.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); } })))));
63
63
  }
64
64
  };
65
65
  ZonosBadge.style = ZonosBadgeStyle0;
@@ -211,13 +211,13 @@ const ZonosButton = class {
211
211
  const borderStyle = getBorderRadius.getBorderRadius({
212
212
  overrideBorderStyle: this.borderStyle,
213
213
  });
214
- return (index.h(index.Host, { key: 'd07f698c62e64fe404dc346e17aa4ebb23af635a', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles.styles({
214
+ return (index.h(index.Host, { key: '6e6b961c9215370bdbfce09715d1a16d878d2d85', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles.styles({
215
215
  '--zonos--background-color': backgroundColor,
216
216
  '--zonos--border-radius': borderStyle,
217
217
  '--zonos--color': color,
218
218
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
219
219
  '--zonos--font-weight': this.bold ? 'bold' : 'normal',
220
- }) }, index.h("button", Object.assign({ key: '721b3b8c4dbc0666de04510c091b7be558a7ede3' }, this.inheritedAttributes, { class: classes.classes([
220
+ }) }, index.h("button", Object.assign({ key: '3941358241e37fb19b2ace0fa0d892002c6967f0' }, this.inheritedAttributes, { class: classes.classes([
221
221
  this.hasIcon && 'has-icon',
222
222
  this.hasContent && 'has-content',
223
223
  this.noBackground && 'no-background',
@@ -232,7 +232,7 @@ const ZonosButton = class {
232
232
  backgroundColor && variant === 'standard' && 'override-background',
233
233
  ]), disabled: disabled, style: {
234
234
  justifyContent: this.justifyContent,
235
- } }), this.loading && (index.h("div", { key: 'c60e5e9d71ddf3750fbbcb911badca7885710518', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: '3c863893cf81663c5a13dfdbd44b27828f01de31', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: '7856e2a360552702a19ca58a0de763763c158749', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
235
+ } }), this.loading && (index.h("div", { key: '769b699dd66e0e5f960efe018b0be7fed2a2ecd3', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: 'e7be35423da99ccc0bf9ba2269f030f0c2ea9223', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: 'cacea287ce83b46f57aae7753805d8bf4e580f82', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
236
236
  }
237
237
  static get delegatesFocus() { return true; }
238
238
  get ele() { return index.getElement(this); }
@@ -6,13 +6,13 @@ const index = require('./index-b1f95d96.js');
6
6
  const zonosStore = require('./zonosStore-fee716c9.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const getBorderRadius = require('./getBorderRadius-4da24d7c.js');
9
- const cart = require('./cart-0fa312a5.js');
10
- const localization = require('./localization-7fded969.js');
9
+ const cart = require('./cart-dc31b242.js');
10
+ const localization = require('./localization-491121ad.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
12
- const paypal = require('./paypal-57ab3ab6.js');
12
+ const paypal = require('./paypal-2a4c374c.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
14
  require('./isDarkColor-ebc74b4d.js');
15
- require('./TaxId-12acedde.js');
15
+ require('./TaxId-cd9d490e.js');
16
16
  require('./isContrastColor-ef24b7aa.js');
17
17
  require('./submitGtag-74762255.js');
18
18
 
@@ -40,16 +40,16 @@ const ZonosCard = class {
40
40
  customRoundRadius: `${this.borderRadius}px`,
41
41
  overrideBorderStyle: 'ROUNDED',
42
42
  });
43
- return (index.h(index.Host, { key: '9abda7f00c442317f63521444b6eeb21f294d2bb', style: {
43
+ return (index.h(index.Host, { key: '2e397f11a2f497f2bafcf5f6a0f5922e66488845', style: {
44
44
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
45
- } }, index.h("div", { key: '2e1f1e4b59ce9ce87c7a22e58f0ae6c5dd0f0388', class: classes.classes(['styled-card']), style: {
45
+ } }, index.h("div", { key: '300923b5b9b7db94cad3e47060174245ea61b75e', class: classes.classes(['styled-card']), style: {
46
46
  '--zonos--background-color': backgroundColor,
47
47
  '--zonos--border-radius': borderRadius,
48
48
  padding: this.spacing,
49
- } }, this.label && (index.h("header", { key: '215b106d17a37b8eb28e5ae730f0ff5401c02331', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: '31363bdd23ac0ad625c6442fcf7110e559fa0201', type: "subheader" }, this.label), index.h("h-stack", { key: '10b338eaf67a92b84d7a9434f52e4c111a15f561', spacing: 8 }, this.actions))), index.h("slot", { key: 'afd067cc47d74d109f4fb4768fc8e0dfa4d88e70' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: '17ee21b433ca723724c74e379b03b9c63a7b53eb', class: "card-footer", style: {
49
+ } }, this.label && (index.h("header", { key: '021cc3d1e0b79ab31c19212891d17fbaf5a5b77a', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: '82f3d6ea4a52d822801d80b2a3c9cf35ed574464', type: "subheader" }, this.label), index.h("h-stack", { key: 'c272945368a1074513bcc06b7c306ca5c62ae8e9', spacing: 8 }, this.actions))), index.h("slot", { key: 'f1c1a3360eb8331e4f4ab69aec8c1dbd7dca2119' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: '13f8e6d12545203c8a8a9ec5056e38df691eb907', class: "card-footer", style: {
50
50
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
51
51
  padding: this.spacing,
52
- } }, index.h("div", { key: 'fd2680f6ba67a7afcb8001ba2d9e0eff49b74675' }, this.footerContent), index.h("h-stack", { key: 'f7c716b48b470082b5196ddaeac189e476a4c3fd', spacing: 8 }, this.footerActions))))));
52
+ } }, index.h("div", { key: 'aad83f26fe6816d98edd96ffc28c24b82085a5e9' }, this.footerContent), index.h("h-stack", { key: 'fd6bf6f1069f9e85d7b17fb944d26dd5fc7e0151', spacing: 8 }, this.footerActions))))));
53
53
  }
54
54
  };
55
55
  ZonosCard.style = ZonosCardStyle0;
@@ -262,7 +262,7 @@ const ZonosPayment = class {
262
262
  }
263
263
  render() {
264
264
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
265
- return (index.h(index.Host, { key: 'd349d019e557fd0070a9470d3bb81a0e563fea49', class: "zonos--payment zonos--elements" }, this.titleText && (index.h("zonos-text", { key: '59429c85323dc6ffb1a5a7bc1f8a825318cc2da7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("div", { key: 'a5af87c08e853790ae41f65d9514e35f094f2bf0', class: "zonos--payment-component" }), index.h("div", { key: '9314981cd377b893c569824068988aa1990b882e', class: "zonos--payment-paypal-container" })));
265
+ return (index.h(index.Host, { key: '8ccf61c2c78fac6b3d981b18dedae1e32921eb14', class: "zonos--payment zonos--elements" }, this.titleText && (index.h("zonos-text", { key: '5ae4d0452d284b793ac179254b1891c183d63f03', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("div", { key: '251e74ccefed8ee31135cc29cdd71497f7cb1a8a', class: "zonos--payment-component" }), index.h("div", { key: 'b32c007382c63482f3e7f9af7c60afaaf8b4dbb9', class: "zonos--payment-paypal-container" })));
266
266
  }
267
267
  get el() { return index.getElement(this); }
268
268
  static get watchers() { return {
@@ -326,7 +326,7 @@ const ZonosPaypalPayment = class {
326
326
  this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
327
327
  }
328
328
  render() {
329
- return (index.h(index.Host, { key: '283f26fced92fbc16064967cf6d0cf8e7a8d34d4', class: "zonos--paypal-payment zonos--elements" }, index.h("div", { key: '31f4639edea489f91bb43c4c00b9019f949acaa4', class: "zonos--payment-paypal-container" })));
329
+ return (index.h(index.Host, { key: 'd652adf83bc2620a8c21a7b2e6d8c0c419be8a1b', class: "zonos--paypal-payment zonos--elements" }, index.h("div", { key: 'd6fdb79be6b31b5a2fb5ad6cc11c6001d4ac31e9', class: "zonos--payment-paypal-container" })));
330
330
  }
331
331
  get el() { return index.getElement(this); }
332
332
  };