@zonos/elements 1.3.272 → 1.3.274

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 (347) hide show
  1. package/dist/cjs/{cart-f1374a56.js → cart-660e115c.js} +32 -2
  2. package/dist/cjs/collect-286a9d04.js +3107 -0
  3. package/dist/cjs/{hasInclusivePrice-2f1232e3.js → hasInclusivePrice-b35e81aa.js} +1 -1
  4. package/dist/cjs/index.cjs.js +7 -7
  5. package/dist/cjs/{invoice-3760bec0.js → invoice-f032089f.js} +2 -2
  6. package/dist/cjs/isCollectMobileTablet-884d4280.js +15 -0
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{localization-503c8477.js → localization-f4a64f6f.js} +120 -0
  9. package/dist/cjs/{paypal-5e9b8224.js → paypal-125259ab.js} +2 -2
  10. package/dist/cjs/{placeTestOrder-d1be2c8e.js → placeTestOrder-02001a99.js} +2 -2
  11. package/dist/cjs/{renderCheckoutCurrency-4486b06e.js → renderCheckoutCurrency-cad156a7.js} +2 -2
  12. package/dist/cjs/zonos-address-display_8.cjs.entry.js +18 -18
  13. package/dist/cjs/zonos-address_4.cjs.entry.js +8 -8
  14. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +170 -0
  15. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  16. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  17. package/dist/cjs/zonos-card_5.cjs.entry.js +9 -9
  18. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +19 -19
  19. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +5 -5
  20. package/dist/cjs/zonos-checkout.cjs.entry.js +3 -3
  21. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  22. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -6
  23. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +150 -36
  24. package/dist/cjs/zonos-collect.cjs.entry.js +176 -38
  25. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  26. package/dist/cjs/zonos-controller.cjs.entry.js +3 -3
  27. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -1
  28. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -10
  29. package/dist/cjs/zonos-elements.cjs.js +1 -1
  30. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +6 -6
  31. package/dist/cjs/zonos-hello.cjs.entry.js +1 -1
  32. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  33. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -8
  34. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +14 -14
  35. package/dist/cjs/zonos-invoice.cjs.entry.js +4 -4
  36. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -5
  37. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  38. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +3 -3
  40. package/dist/cjs/zonos-stripe-input.cjs.entry.js +4 -4
  41. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  42. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  43. package/dist/collection/collection-manifest.json +1 -0
  44. package/dist/collection/components/airwallex/zonos-airwallex-payment/zonos-airwallex-payment.css +43 -0
  45. package/dist/collection/components/airwallex/zonos-airwallex-payment/zonos-airwallex-payment.js +215 -0
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.js +1 -1
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +4 -4
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +2 -2
  50. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +1 -1
  51. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +1 -1
  52. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +110 -2
  53. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +3 -3
  54. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +1 -1
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +1 -17
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +21 -0
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +3 -3
  58. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +5 -5
  59. package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +167 -29
  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/airwallex.js +195 -0
  96. package/dist/collection/components/store/checkout/collect.js +4 -1
  97. package/dist/collection/components/store/checkout/stripe.js +26 -1
  98. package/dist/collection/components/store/translationStore/strings.arabic.js +6 -0
  99. package/dist/collection/components/store/translationStore/strings.base.js +6 -0
  100. package/dist/collection/components/store/translationStore/strings.chinese.js +6 -0
  101. package/dist/collection/components/store/translationStore/strings.danish.js +6 -0
  102. package/dist/collection/components/store/translationStore/strings.dutch.js +6 -0
  103. package/dist/collection/components/store/translationStore/strings.french.js +6 -0
  104. package/dist/collection/components/store/translationStore/strings.german.js +6 -0
  105. package/dist/collection/components/store/translationStore/strings.hebrew.js +6 -0
  106. package/dist/collection/components/store/translationStore/strings.indonesian.js +6 -0
  107. package/dist/collection/components/store/translationStore/strings.italian.js +6 -0
  108. package/dist/collection/components/store/translationStore/strings.japanese.js +6 -0
  109. package/dist/collection/components/store/translationStore/strings.korean.js +6 -0
  110. package/dist/collection/components/store/translationStore/strings.norwegian.js +6 -0
  111. package/dist/collection/components/store/translationStore/strings.polish.js +6 -0
  112. package/dist/collection/components/store/translationStore/strings.portuguese.js +6 -0
  113. package/dist/collection/components/store/translationStore/strings.russian.js +6 -0
  114. package/dist/collection/components/store/translationStore/strings.spanish.js +6 -0
  115. package/dist/collection/components/store/translationStore/strings.swedish.js +6 -0
  116. package/dist/collection/components/store/translationStore/strings.turkish.js +6 -0
  117. package/dist/collection/components/store/translationStore/strings.vietnamese.js +6 -0
  118. package/dist/collection/components/stripe/zonos-address/zonos-address.js +2 -2
  119. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  120. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  121. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  122. package/dist/collection/types/generated/graphql.internal.types.js +3 -0
  123. package/dist/esm/{cart-1415dcf0.js → cart-23e29950.js} +32 -2
  124. package/dist/esm/collect-a235299d.js +3092 -0
  125. package/dist/esm/{hasInclusivePrice-a3b0f71c.js → hasInclusivePrice-5e106f84.js} +1 -1
  126. package/dist/esm/index.js +7 -7
  127. package/dist/esm/{invoice-117efa2c.js → invoice-78f069c7.js} +2 -2
  128. package/dist/esm/isCollectMobileTablet-111b0dd7.js +12 -0
  129. package/dist/esm/loader.js +1 -1
  130. package/dist/esm/{localization-29723d89.js → localization-17546792.js} +120 -0
  131. package/dist/esm/{paypal-cb5559d4.js → paypal-5bc6b0d0.js} +2 -2
  132. package/dist/esm/{placeTestOrder-443376eb.js → placeTestOrder-e842854a.js} +2 -2
  133. package/dist/esm/{renderCheckoutCurrency-8390b5bf.js → renderCheckoutCurrency-e3953f67.js} +2 -2
  134. package/dist/esm/zonos-address-display_8.entry.js +18 -18
  135. package/dist/esm/zonos-address_4.entry.js +8 -8
  136. package/dist/esm/zonos-airwallex-payment.entry.js +166 -0
  137. package/dist/esm/zonos-badge.entry.js +3 -3
  138. package/dist/esm/zonos-button_3.entry.js +3 -3
  139. package/dist/esm/zonos-card_5.entry.js +9 -9
  140. package/dist/esm/zonos-cart-items_12.entry.js +19 -19
  141. package/dist/esm/zonos-checkbox_2.entry.js +5 -5
  142. package/dist/esm/zonos-checkout.entry.js +3 -3
  143. package/dist/esm/zonos-collapse.entry.js +2 -2
  144. package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -6
  145. package/dist/esm/zonos-collect-finish_6.entry.js +135 -21
  146. package/dist/esm/zonos-collect.entry.js +171 -33
  147. package/dist/esm/zonos-component.entry.js +1 -1
  148. package/dist/esm/zonos-controller.entry.js +3 -3
  149. package/dist/esm/zonos-country-flag.entry.js +1 -1
  150. package/dist/esm/zonos-country-select_4.entry.js +10 -10
  151. package/dist/esm/zonos-elements.js +1 -1
  152. package/dist/esm/zonos-hello-dialog.entry.js +6 -6
  153. package/dist/esm/zonos-hello.entry.js +1 -1
  154. package/dist/esm/zonos-input.entry.js +4 -4
  155. package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -8
  156. package/dist/esm/zonos-invoice-finish_5.entry.js +14 -14
  157. package/dist/esm/zonos-invoice.entry.js +4 -4
  158. package/dist/esm/zonos-language-select_2.entry.js +5 -5
  159. package/dist/esm/zonos-link.entry.js +1 -1
  160. package/dist/esm/zonos-logo.entry.js +2 -2
  161. package/dist/esm/zonos-policy-consent_2.entry.js +3 -3
  162. package/dist/esm/zonos-stripe-input.entry.js +4 -4
  163. package/dist/esm/zonos-tooltip.entry.js +2 -2
  164. package/dist/esm/zonos-v-stack.entry.js +2 -2
  165. package/dist/esm-es5/cart-23e29950.js +1 -0
  166. package/dist/esm-es5/collect-a235299d.js +1 -0
  167. package/dist/esm-es5/{hasInclusivePrice-a3b0f71c.js → hasInclusivePrice-5e106f84.js} +1 -1
  168. package/dist/esm-es5/index.js +1 -1
  169. package/dist/esm-es5/{invoice-117efa2c.js → invoice-78f069c7.js} +1 -1
  170. package/dist/esm-es5/isCollectMobileTablet-111b0dd7.js +1 -0
  171. package/dist/esm-es5/loader.js +1 -1
  172. package/dist/esm-es5/localization-17546792.js +1 -0
  173. package/dist/esm-es5/{paypal-cb5559d4.js → paypal-5bc6b0d0.js} +1 -1
  174. package/dist/esm-es5/{placeTestOrder-443376eb.js → placeTestOrder-e842854a.js} +1 -1
  175. package/dist/esm-es5/{renderCheckoutCurrency-8390b5bf.js → renderCheckoutCurrency-e3953f67.js} +1 -1
  176. package/dist/esm-es5/zonos-address-display_8.entry.js +1 -1
  177. package/dist/esm-es5/zonos-address_4.entry.js +1 -1
  178. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -0
  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/generated/countryFieldLabels.json +1 -0
  208. package/dist/scripts/index.d.ts +61 -0
  209. package/dist/scripts/index.js +1 -1
  210. package/dist/scripts/loadZonos.js +1 -1
  211. package/dist/scripts/zonos.js +1 -1
  212. package/dist/types/components/airwallex/zonos-airwallex-payment/zonos-airwallex-payment.d.ts +46 -0
  213. package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +7 -0
  214. package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +4 -0
  215. package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +29 -0
  216. package/dist/types/components/store/checkout/airwallex.d.ts +83 -0
  217. package/dist/types/components/store/checkout/collect.d.ts +12 -1
  218. package/dist/types/components/store/checkout/stripe.d.ts +1 -1
  219. package/dist/types/components/store/translationStore/strings.arabic.d.ts +6 -0
  220. package/dist/types/components/store/translationStore/strings.base.d.ts +6 -0
  221. package/dist/types/components/store/translationStore/strings.chinese.d.ts +6 -0
  222. package/dist/types/components/store/translationStore/strings.danish.d.ts +6 -0
  223. package/dist/types/components/store/translationStore/strings.dutch.d.ts +6 -0
  224. package/dist/types/components/store/translationStore/strings.french.d.ts +6 -0
  225. package/dist/types/components/store/translationStore/strings.german.d.ts +6 -0
  226. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +6 -0
  227. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +6 -0
  228. package/dist/types/components/store/translationStore/strings.italian.d.ts +6 -0
  229. package/dist/types/components/store/translationStore/strings.japanese.d.ts +6 -0
  230. package/dist/types/components/store/translationStore/strings.korean.d.ts +6 -0
  231. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +6 -0
  232. package/dist/types/components/store/translationStore/strings.polish.d.ts +6 -0
  233. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +6 -0
  234. package/dist/types/components/store/translationStore/strings.russian.d.ts +6 -0
  235. package/dist/types/components/store/translationStore/strings.spanish.d.ts +6 -0
  236. package/dist/types/components/store/translationStore/strings.swedish.d.ts +6 -0
  237. package/dist/types/components/store/translationStore/strings.turkish.d.ts +6 -0
  238. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +6 -0
  239. package/dist/types/components.d.ts +42 -0
  240. package/dist/types/types/checkout/api/CheckoutSession.d.ts +11 -1
  241. package/dist/types/types/checkout/api/PartyInfo.d.ts +6 -0
  242. package/dist/types/types/generated/graphql.internal.types.d.ts +20 -0
  243. package/dist/types/types/generated/graphql.internal.types.ts +29 -0
  244. package/dist/types/types/utils/ZonosSettings.d.ts +6 -0
  245. package/dist/zonos-elements/index.esm.js +1 -1
  246. package/dist/zonos-elements/p-013575f2.entry.js +1 -0
  247. package/dist/zonos-elements/{p-344a1fee.entry.js → p-055ef910.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-3efe0875.entry.js → p-08b48608.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-26ae4ee7.system.entry.js → p-0a54dae6.system.entry.js} +1 -1
  250. package/dist/zonos-elements/{p-aafc2155.system.entry.js → p-0b59076d.system.entry.js} +1 -1
  251. package/dist/zonos-elements/{p-c92a5ae5.system.entry.js → p-10571f94.system.entry.js} +1 -1
  252. package/dist/zonos-elements/{p-658ab5e2.entry.js → p-12a05647.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-b453ae2b.system.js → p-14018649.system.js} +2 -2
  254. package/dist/zonos-elements/{p-d2ba9e3c.system.entry.js → p-1678d8b4.system.entry.js} +1 -1
  255. package/dist/zonos-elements/p-171d0f9f.system.js +1 -0
  256. package/dist/zonos-elements/{p-5bd47a30.system.entry.js → p-1a105d6e.system.entry.js} +1 -1
  257. package/dist/zonos-elements/p-1a4083be.system.js +1 -0
  258. package/dist/zonos-elements/{p-792fce17.system.entry.js → p-1f31f5a0.system.entry.js} +1 -1
  259. package/dist/zonos-elements/p-2197d6ab.js +1 -0
  260. package/dist/zonos-elements/{p-536cbab5.system.entry.js → p-27e50593.system.entry.js} +1 -1
  261. package/dist/zonos-elements/{p-0b4ba025.entry.js → p-2825431d.entry.js} +1 -1
  262. package/dist/zonos-elements/p-29b60bf3.system.js +1 -1
  263. package/dist/zonos-elements/{p-73730eb9.system.entry.js → p-2a1247f4.system.entry.js} +1 -1
  264. package/dist/zonos-elements/p-2adbbce7.system.js +1 -0
  265. package/dist/zonos-elements/{p-f98cdb98.system.entry.js → p-306e5499.system.entry.js} +1 -1
  266. package/dist/zonos-elements/{p-831bcfb6.entry.js → p-31577ebd.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-889a44fc.entry.js → p-328fd90e.entry.js} +1 -1
  268. package/dist/zonos-elements/p-33910e8b.js +1 -0
  269. package/dist/zonos-elements/{p-fb684748.system.entry.js → p-36b311f9.system.entry.js} +1 -1
  270. package/dist/zonos-elements/{p-5b4e5608.system.entry.js → p-3eba657b.system.entry.js} +1 -1
  271. package/dist/zonos-elements/p-41619f29.js +1 -0
  272. package/dist/zonos-elements/{p-cdea0f7d.js → p-42948a52.js} +1 -1
  273. package/dist/zonos-elements/{p-eb77dd11.system.js → p-45d74be2.system.js} +1 -1
  274. package/dist/zonos-elements/p-46e72a90.entry.js +1 -0
  275. package/dist/zonos-elements/p-49d8a10f.entry.js +1 -0
  276. package/dist/zonos-elements/{p-54a9c772.system.entry.js → p-4a960329.system.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-93324ee5.entry.js → p-4b371b65.entry.js} +1 -1
  278. package/dist/zonos-elements/p-539bc46c.js +1 -0
  279. package/dist/zonos-elements/p-579932a7.js +1 -0
  280. package/dist/zonos-elements/{p-2afecda7.entry.js → p-59b10526.entry.js} +1 -1
  281. package/dist/zonos-elements/{p-98bea13e.system.entry.js → p-5aa35d1c.system.entry.js} +1 -1
  282. package/dist/zonos-elements/{p-fd849c69.system.js → p-62c68aee.system.js} +1 -1
  283. package/dist/zonos-elements/{p-48f3e2d2.system.entry.js → p-6c19310e.system.entry.js} +1 -1
  284. package/dist/zonos-elements/{p-16948eea.system.entry.js → p-732e7373.system.entry.js} +1 -1
  285. package/dist/zonos-elements/{p-0e8c4a29.entry.js → p-734d646b.entry.js} +1 -1
  286. package/dist/zonos-elements/{p-60f0ff42.entry.js → p-7eb47eb0.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-eb254a96.system.entry.js → p-86a9f048.system.entry.js} +1 -1
  288. package/dist/zonos-elements/p-8af57c2a.js +1 -0
  289. package/dist/zonos-elements/{p-18c9565b.system.entry.js → p-8c4761d1.system.entry.js} +1 -1
  290. package/dist/zonos-elements/{p-c45df586.system.entry.js → p-8e77a3cd.system.entry.js} +1 -1
  291. package/dist/zonos-elements/p-919c5500.entry.js +1 -0
  292. package/dist/zonos-elements/p-91b921a4.system.js +1 -0
  293. package/dist/zonos-elements/{p-3b600b89.system.js → p-9574695a.system.js} +1 -1
  294. package/dist/zonos-elements/p-97917371.system.entry.js +1 -0
  295. package/dist/zonos-elements/{p-7ce6b8f7.system.entry.js → p-9b003a15.system.entry.js} +1 -1
  296. package/dist/zonos-elements/{p-53be08c8.entry.js → p-9c3276c8.entry.js} +1 -1
  297. package/dist/zonos-elements/p-9cd41234.system.entry.js +1 -0
  298. package/dist/zonos-elements/{p-5f92db80.system.entry.js → p-a1a05de4.system.entry.js} +1 -1
  299. package/dist/zonos-elements/{p-4c94cfd3.entry.js → p-a968ccba.entry.js} +1 -1
  300. package/dist/zonos-elements/{p-ee00f232.entry.js → p-abd485df.entry.js} +1 -1
  301. package/dist/zonos-elements/{p-7d859914.entry.js → p-ad961f5d.entry.js} +1 -1
  302. package/dist/zonos-elements/{p-6b87101d.system.entry.js → p-b5c01288.system.entry.js} +1 -1
  303. package/dist/zonos-elements/p-bf8c98ab.system.js +1 -0
  304. package/dist/zonos-elements/{p-2d1055d5.entry.js → p-c13d2e3f.entry.js} +1 -1
  305. package/dist/zonos-elements/{p-0b46f3bd.system.entry.js → p-c15476a1.system.entry.js} +1 -1
  306. package/dist/zonos-elements/{p-0e36a7cf.system.entry.js → p-c6823974.system.entry.js} +1 -1
  307. package/dist/zonos-elements/{p-dae881f2.entry.js → p-c83bc4b3.entry.js} +1 -1
  308. package/dist/zonos-elements/{p-134c5010.system.entry.js → p-c846a5f3.system.entry.js} +1 -1
  309. package/dist/zonos-elements/{p-7aca66cd.entry.js → p-cc508de8.entry.js} +1 -1
  310. package/dist/zonos-elements/{p-6609467e.entry.js → p-ccd14aa5.entry.js} +1 -1
  311. package/dist/zonos-elements/{p-318e704a.system.js → p-d25759fb.system.js} +1 -1
  312. package/dist/zonos-elements/{p-a956e28f.entry.js → p-d5e66ea6.entry.js} +1 -1
  313. package/dist/zonos-elements/{p-7536cf94.system.entry.js → p-daf57db3.system.entry.js} +1 -1
  314. package/dist/zonos-elements/{p-b35a0b1e.entry.js → p-dcef2202.entry.js} +1 -1
  315. package/dist/zonos-elements/{p-283ffaad.entry.js → p-dd6da3de.entry.js} +1 -1
  316. package/dist/zonos-elements/{p-bd2daace.entry.js → p-df6fbf3f.entry.js} +1 -1
  317. package/dist/zonos-elements/{p-c16c7978.entry.js → p-e643346a.entry.js} +1 -1
  318. package/dist/zonos-elements/{p-b375372e.entry.js → p-e8cb382e.entry.js} +1 -1
  319. package/dist/zonos-elements/{p-f4be6ce5.system.entry.js → p-e8ec88a9.system.entry.js} +1 -1
  320. package/dist/zonos-elements/p-e9afd736.system.entry.js +1 -0
  321. package/dist/zonos-elements/{p-c425d3d9.js → p-e9c8a235.js} +1 -1
  322. package/dist/zonos-elements/{p-ccc8d669.system.entry.js → p-f0eb6317.system.entry.js} +1 -1
  323. package/dist/zonos-elements/p-f1cc659c.js +1 -0
  324. package/dist/zonos-elements/{p-b1b7d786.entry.js → p-f53c8a9f.entry.js} +1 -1
  325. package/dist/zonos-elements/{p-777d396e.entry.js → p-f72642de.entry.js} +1 -1
  326. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  327. package/package.json +4 -2
  328. package/dist/cjs/isCollectMobileTablet-d5c1a9ea.js +0 -176
  329. package/dist/esm/isCollectMobileTablet-2c62fdaa.js +0 -169
  330. package/dist/esm-es5/cart-1415dcf0.js +0 -1
  331. package/dist/esm-es5/isCollectMobileTablet-2c62fdaa.js +0 -1
  332. package/dist/esm-es5/localization-29723d89.js +0 -1
  333. package/dist/zonos-elements/p-0fa932e6.system.js +0 -1
  334. package/dist/zonos-elements/p-15c2dfea.entry.js +0 -1
  335. package/dist/zonos-elements/p-17c7a727.system.js +0 -1
  336. package/dist/zonos-elements/p-24aa6708.js +0 -1
  337. package/dist/zonos-elements/p-2585034d.entry.js +0 -1
  338. package/dist/zonos-elements/p-2cda42d5.system.js +0 -1
  339. package/dist/zonos-elements/p-53b65b80.js +0 -1
  340. package/dist/zonos-elements/p-58521b25.js +0 -1
  341. package/dist/zonos-elements/p-9259e19b.system.entry.js +0 -1
  342. package/dist/zonos-elements/p-99ef86c3.js +0 -1
  343. package/dist/zonos-elements/p-aa3a7538.js +0 -1
  344. package/dist/zonos-elements/p-c935390d.js +0 -1
  345. package/dist/zonos-elements/p-e77dd304.system.js +0 -1
  346. package/dist/zonos-elements/p-ea91600a.entry.js +0 -1
  347. package/dist/zonos-elements/p-f5d9e5e5.system.entry.js +0 -1
@@ -3,9 +3,9 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
- const localization = require('./localization-503c8477.js');
6
+ const localization = require('./localization-f4a64f6f.js');
7
7
  const containsNonLatinChars = require('./containsNonLatinChars-2be5129b.js');
8
- const cart = require('./cart-f1374a56.js');
8
+ const cart = require('./cart-660e115c.js');
9
9
  const classes = require('./classes-b7918f56.js');
10
10
  const getBorderRadius = require('./getBorderRadius-fc683d94.js');
11
11
  const zonosStore = require('./zonosStore-45a87908.js');
@@ -76,15 +76,15 @@ const ZonosAddressForm = class {
76
76
  const { firstName, lastName } = cart.extractName({
77
77
  name,
78
78
  });
79
- return (index.h(index.Host, { key: '7daab005bebe43bc506b8da0fc3603f87f5cc07e', class: "zonos--address-form zonos--elements" }, index.h("div", { key: '61e8f1447408a10c42cbb6dfe1e5cd2986c34824', class: "zonos--title" }, index.h("zonos-text", { key: 'd8b0298a92731c5d7e8297f00036cbf6a6b7e8db', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
79
+ return (index.h(index.Host, { key: '45d9837eb2fa1799686031aae55b7a5b56683f44', class: "zonos--address-form zonos--elements" }, index.h("div", { key: '021635c62ccf3956099fbc4111a7cccacf87e6a1', class: "zonos--title" }, index.h("zonos-text", { key: 'f8a7f4423c3e1fe85d99f7a4baadfd8ec92c5e91', textColor: "gray-700", type: "smallHeader" }, this.addressType === 'shipping'
80
80
  ? localization.translate('Shipping')
81
- : localization.translate('Billing'))), index.h("div", { key: 'b6fd70d9ee4cc61159e55a079649c79f48e4a98c', class: "zonos--address-group" }, index.h("div", { key: '3f163fd25a4c3a36c0fbe97b2578c9fbfbebc8e6', class: "zonos--contact" }, index.h("zonos-text", { key: '40ec47d730083b242fba7ed45711fa19bc1a3a73', type: "label" }, localization.translate('Contact')), index.h("zonos-input", { key: '980d9afd5143a4be16b61fdd44b8badd26c0551f', class: "zonos--form-email", inputLabel: localization.translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), index.h("div", { key: 'd3b7937d5c172a9aa1fb6fb294f7518702c42782', class: "zonos--name zonos--address-row" }, index.h("zonos-input", { key: '1cda2417557992ff1e018470f49bc553570e7ab8', class: "zonos--form-first-name", inputLabel: localization.translate('First name'), inputValue: firstName, isError: containsNonLatinChars.isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
81
+ : localization.translate('Billing'))), index.h("div", { key: '3989feba67adc4921dc27f4b245391c933065d78', class: "zonos--address-group" }, index.h("div", { key: '909ef4b8f44902a16334051fb8cde1edd4f87f8b', class: "zonos--contact" }, index.h("zonos-text", { key: '301eb71e15a331a7423d547486b668009ce19bd0', type: "label" }, localization.translate('Contact')), index.h("zonos-input", { key: '473f22469d0628db079298abb02a18f908225350', class: "zonos--form-email", inputLabel: localization.translate('Email'), inputValue: this.currentAddress.email, isDisabled: true }), index.h("div", { key: 'eaa32450d028bfd8a197a3b1172a1316d6080962', class: "zonos--name zonos--address-row" }, index.h("zonos-input", { key: '82b3b902539cd2eb67bddfccc9146f91f7061538', class: "zonos--form-first-name", inputLabel: localization.translate('First name'), inputValue: firstName, isError: containsNonLatinChars.isTextContainsNonLatinChars(firstName), onInputChange: e => this.onInputChange({
82
82
  key: 'name',
83
83
  value: `${e.detail} ${lastName}`,
84
- }) }), index.h("zonos-input", { key: 'faf4991bde56989dc613d321660a3084b0e9a8e6', class: "zonos--form-last-name", inputLabel: localization.translate('Last name'), inputValue: lastName, isError: containsNonLatinChars.isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
84
+ }) }), index.h("zonos-input", { key: 'cf32104d4d575eb9d5843cf5d8701aebb02c4e3c', class: "zonos--form-last-name", inputLabel: localization.translate('Last name'), inputValue: lastName, isError: containsNonLatinChars.isTextContainsNonLatinChars(lastName), onInputChange: e => this.onInputChange({
85
85
  key: 'name',
86
86
  value: `${firstName} ${e.detail}`,
87
- }) }))), index.h("div", { key: '831483d5496ded27e71c1b4eb78bfb5ee8af52fb', class: "zonos--address" }, index.h("zonos-text", { key: '4d31ee6171c36401dda6653cedb43b81cf85a3cb', type: "label" }, localization.translate('Address')), index.h("zonos-input", { key: '9134efbee8a46c04873dded9985d4437766aba61', class: "zonos--form-country", inputLabel: localization.translate('Country'), inputValue: country, isDisabled: true }), index.h("zonos-input", { key: '4db075bee380c24ddfc706d7e72f631c9d451af3', class: "zonos--form-line1", inputLabel: localization.translate('Address line 1'), inputValue: line1, isError: containsNonLatinChars.isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), index.h("zonos-input", { key: '6866187e5de8caaed307b4ad3e49048ccf8b08af', class: "zonos--form-line2", inputLabel: localization.translate('Address line 2'), inputValue: line2, isError: containsNonLatinChars.isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), index.h("div", { key: '485f219a65abda705b20c4fdad0ec06d7b640f4c', class: "zonos--address-row" }, index.h("zonos-input", { key: '755a75893aaba7fd3be6842a4b29886f77a691bc', class: "zonos--form-city", inputLabel: localization.translate('City'), inputValue: city, isError: containsNonLatinChars.isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (index.h("zonos-input", { key: 'd66f0cf58169adb5c53a2c0e2cf308e66cd639ac', class: "zonos--form-state", inputLabel: localization.translate('State/Province'), inputValue: state, isError: containsNonLatinChars.isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), index.h("zonos-input", { key: '7fb5821a69f45779e616ef714c3774745b7cb0ca', class: "zonos--form-postal-code", inputLabel: localization.translate('Postal code'), inputValue: postal_code, isError: containsNonLatinChars.isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), index.h("zonos-input", { key: 'a45be76f3e8073c5ea152f2814c52201c12f6d3b', class: "zonos--form-phone", inputLabel: localization.translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
87
+ }) }))), index.h("div", { key: 'd570f7e1849bcc9a8e1bc13a15195bb5ee9bf8f2', class: "zonos--address" }, index.h("zonos-text", { key: 'dec7847247e97ffa3dde6d04a1ccd17347d9e8c1', type: "label" }, localization.translate('Address')), index.h("zonos-input", { key: '595f540e7feb57dada3ebcf93202a75492ff447f', class: "zonos--form-country", inputLabel: localization.translate('Country'), inputValue: country, isDisabled: true }), index.h("zonos-input", { key: 'c7fa3e7736ceee4c23195179f9e50b9cd43aa25a', class: "zonos--form-line1", inputLabel: localization.translate('Address line 1'), inputValue: line1, isError: containsNonLatinChars.isTextContainsNonLatinChars(line1), onInputChange: e => this.onInputChange({ key: 'line1', value: e.detail }) }), index.h("zonos-input", { key: 'e455495f96667f7228a5ed51fc67d080df0b7991', class: "zonos--form-line2", inputLabel: localization.translate('Address line 2'), inputValue: line2, isError: containsNonLatinChars.isTextContainsNonLatinChars(line2), onInputChange: e => this.onInputChange({ key: 'line2', value: e.detail }) }), index.h("div", { key: '5312af811975d9a2e2809896d51ce992317af54d', class: "zonos--address-row" }, index.h("zonos-input", { key: '49537f098a054787550266d6a7698e6fe102cad6', class: "zonos--form-city", inputLabel: localization.translate('City'), inputValue: city, isError: containsNonLatinChars.isTextContainsNonLatinChars(city), onInputChange: e => this.onInputChange({ key: 'city', value: e.detail }) }), this.currentAddress.state && (index.h("zonos-input", { key: '06d1c8c2e21300c300ddfbdaa4abaffef006793d', class: "zonos--form-state", inputLabel: localization.translate('State/Province'), inputValue: state, isError: containsNonLatinChars.isTextContainsNonLatinChars(state), onInputChange: e => this.onInputChange({ key: 'state', value: e.detail }) }))), index.h("zonos-input", { key: '94081e11a3184e86eef1add3eee392c3e3afb11a', class: "zonos--form-postal-code", inputLabel: localization.translate('Postal code'), inputValue: postal_code, isError: containsNonLatinChars.isTextContainsNonLatinChars(postal_code), onInputChange: e => this.onInputChange({ key: 'postal_code', value: e.detail }) }), index.h("zonos-input", { key: '00ce7f0931179ff2c86e2da0fc82eed71cd6af19', class: "zonos--form-phone", inputLabel: localization.translate('Phone number'), inputValue: phone, onInputChange: e => this.onInputChange({ key: 'phone', value: e.detail }) })))));
88
88
  }
89
89
  static get watchers() { return {
90
90
  "translatedAddress": ["watchCurrentAddress"]
@@ -170,9 +170,9 @@ const ZonosAddressSuggestions = class {
170
170
  return segments;
171
171
  }
172
172
  render() {
173
- return (index.h(index.Host, { key: '95f0fa0a1a5eb62ae2f08f305216a365f166af96', class: "zonos--address-suggestions", role: "group", style: {
173
+ return (index.h(index.Host, { key: '93cce2d783f3b0eba378027d2450d13451e6ce18', class: "zonos--address-suggestions", role: "group", style: {
174
174
  '--zonos--border-radius': getBorderRadius.getBorderRadius(),
175
- } }, index.h("ul", { key: 'd76493f93428da65b645b8bf16ee82b780b2eb97', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (index.h("li", { key: 'b7d4a61c717a2df1057a81ff2e6517a0b7a7869a', "aria-selected": false, class: "powered-by option", role: "option" }, index.h("div", { key: '0dca2094920653d6205dd79e717290536e7ae1c9', class: "powered-by-container" }, index.h("zonos-text", { key: 'baa29ec5e43286d4df28eb418c7b2ccc4bf7d1e7', type: "caption" }, "Suggestions powered by"), index.h("zonos-text", { key: '2b544408cc75a9c50750072b1efb63e4cd4f1323', type: "semiBoldLabel" }, "Google")), index.h("zonos-button", { key: '939ba84809ce8f113a8d13cc75cb8a3c23013847', "aria-label": "Clear suggestions", icon: index.h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
175
+ } }, index.h("ul", { key: 'e577d8dea6fb9a225f8361e5ba48601a74b8614d', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (index.h("li", { key: '8f4c74b030f50ed03133a443e4b9a41869c18571', "aria-selected": false, class: "powered-by option", role: "option" }, index.h("div", { key: '0288a70a89c25ce227e918ad91db0b77efa42a82', class: "powered-by-container" }, index.h("zonos-text", { key: '2d2fe2711d2b72a4077a417ed37d9b6897184525', type: "caption" }, "Suggestions powered by"), index.h("zonos-text", { key: 'a7ef3f738fc67a03fa2c935c128666945ad838a0', type: "semiBoldLabel" }, "Google")), index.h("zonos-button", { key: 'ebe5ccc2e0315867c4dbe3c030cf4e44312d691c', "aria-label": "Clear suggestions", icon: index.h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
176
176
  this.localSuggestions = [];
177
177
  } }))), this.localSuggestions.map(suggestion => (
178
178
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -1316,10 +1316,10 @@ const ZonosAddress = class {
1316
1316
  this.country = localization.localizationStore.selectedCountryCode;
1317
1317
  }
1318
1318
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
1319
- return (index.h(index.Host, { key: 'ce15e47889c185c72b9f79327ebbd24950da1811', class: classes.classes([
1319
+ return (index.h(index.Host, { key: 'dae45101b0b661fb0f392507cbc2642c65e72499', class: classes.classes([
1320
1320
  'zonos--address zonos--elements',
1321
1321
  `zonos--${this.type}-address`,
1322
- ]) }, index.h("zonos-text", { key: '91d1a627a89b8114075f5ecc1dff7bd8d52dd0b7', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("slot", { key: '1a69664bc17a2d59cff241bbb0917714340e006e', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), this.renderCustomAddressForm()));
1322
+ ]) }, index.h("zonos-text", { key: '73081aa1f08f5617bc10fcd57f057abd3efd0c35', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), index.h("slot", { key: '4cfd89cca3254564b51f45a4a29d1f8a13bf03d1', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), this.renderCustomAddressForm()));
1323
1323
  }
1324
1324
  get el() { return index.getElement(this); }
1325
1325
  static get watchers() { return {
@@ -1429,7 +1429,7 @@ const ZonosDialog = class {
1429
1429
  const borderStyle = getBorderRadius.getBorderRadius({
1430
1430
  overrideBorderStyle: this.borderStyle,
1431
1431
  });
1432
- return (index.h(index.Host, { key: '590c4e4902e0dbe713126b9ff156d063e8f8f8ad', class: classes.classes([
1432
+ return (index.h(index.Host, { key: '75ec5025b26d1c68daa95198bfe4defa9b4fccbb', class: classes.classes([
1433
1433
  'zonos--elements',
1434
1434
  this.open && 'open',
1435
1435
  this.isLoading && 'is-loading',
@@ -1441,10 +1441,10 @@ const ZonosDialog = class {
1441
1441
  '--zonos--height': this.height || 'initial',
1442
1442
  '--zonos--min-height': this.minHeight || '500px',
1443
1443
  '--zonos--width': this.width,
1444
- } }, index.h("div", { key: '14a99268f7f0ab8c6c70764c8c1d5757e66b9dbf', class: "zonos--backdrop" }), index.h("div", { key: '05cddc36b2189cf234f6e83c39a83220c11ec43f', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: '3b7160e77e0eedda0d01f46e338cc3923de4153d', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: '3257270ad5e27e55a4d5b68700c924c4d69a0aaa', class: "zonos--loading" }, index.h("zonos-spinner", { key: 'f9a3e2452daa08f8fd0a889a08ad39da3f28b1cc', size: 30 }), this.loadingTitle && (index.h("zonos-text", { key: 'a342fae51f881c7686e577769850d5105722d722', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (index.h("zonos-text", { key: '17e69ab28563fff1a2289dd1598b542d18a9350d', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: '2e9f0db72356193bd9789a21adbe35f29b456d9f', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '8f7e92cbf2ab27442f4b8901ce2f8ec826939bf0', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: 'da358aa5942534abaf67a065e6ccce4722f91f27', class: "zonos--close-button", icon: index.h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), index.h("div", { key: '6abd9c5d6f7e1b8a533bdd878550009191905ff9', class: classes.classes([
1444
+ } }, index.h("div", { key: '5d10176ce2b772fb8fd29f43ff45eb8ec0e4f891', class: "zonos--backdrop" }), index.h("div", { key: '2aa211aebf328b30d69cc32030964c68d9114380', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, index.h("div", { key: 'ae077f398158ca708065bf3f2cc60c36730e16df', class: "zonos--dialog" }, this.isLoading && (index.h("div", { key: 'b11ef43cb4a663495bfd5dfe636df98fb692f2e3', class: "zonos--loading" }, index.h("zonos-spinner", { key: 'df7b43c923a59ab16d56c56034f19e2ebf367c68', size: 30 }), this.loadingTitle && (index.h("zonos-text", { key: 'c2a9c49f41272ae535a2dfc3f6c97d91552729a2', class: "zonos--loading-title", size: "l", weight: 700 }, this.loadingTitle)), this.loadingText && (index.h("zonos-text", { key: 'c5a4be389ec0c5c8b9e7b126d69f39b334bd9c7c', class: "zonos--loading-text" }, this.loadingText)))), (this.headerText || !this.noCloseButton) && (index.h("div", { key: '21884f1a119c2b1d241b746ae27f9ebe68795b94', class: "zonos--header" }, this.headerText && (index.h("h3", { key: '77036606a70a57f250facdd1b95726c35807c151', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (index.h("zonos-button", { key: '93eafa70b68ebbc0be89b6cec54aadba9bdb91ef', 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: '182ed04b1a14981aa5b679da8a1a556fcc413137', class: classes.classes([
1445
1445
  'zonos--body',
1446
1446
  this.noBodyPadding && 'zonos--no-body-padding',
1447
- ]) }, index.h("slot", { key: 'a3bc9604905f1c1ff53a5dc5c022ad6145a98735' })), index.h("slot", { key: '717b33f0583845613702e989570a41e5a8b54f08', name: "dialog-footer" })))));
1447
+ ]) }, index.h("slot", { key: '65ad39c50b318b39e585301de2aeea6ef61db487' })), index.h("slot", { key: 'a60bb6eeee719852350584d6ff983d699f6ae84e', name: "dialog-footer" })))));
1448
1448
  }
1449
1449
  static get assetsDirs() { return ["assets"]; }
1450
1450
  };
@@ -7180,24 +7180,24 @@ const ZonosStripePhoneInput = class {
7180
7180
  .filter(Boolean)
7181
7181
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
7182
7182
  : [];
7183
- return (index.h(index.Host, { key: '35155697da59924b76afa4e5e23ef658ceb69bd7', class: classes.classes([
7183
+ return (index.h(index.Host, { key: 'e1bde9efe262f4605448b6ae6f9e18070090e6c8', class: classes.classes([
7184
7184
  'zonos--phone-input zonos--elements',
7185
7185
  isDark && 'dark',
7186
- ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '66c66da60fded977af4d5ef597a831ac117b3ed1', class: classes.classes([
7186
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius.getBorderRadius(), '--zonos--font-family': zonosStore.zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, index.h("div", { key: '17b929a5e37d86964c23f2954bf1aed3ca3e0b4f', class: classes.classes([
7187
7187
  'zonos--label-wrapper',
7188
7188
  this.disabled && 'disabled',
7189
7189
  this.isFocused && 'focused',
7190
7190
  hasContent && 'has-content',
7191
7191
  this.error && 'has-error',
7192
7192
  this.inputLabel && 'has-label',
7193
- ]) }, index.h("select", { key: 'a76b59a558272bda11c091bf977c90a1abd1fdbc', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7193
+ ]) }, index.h("select", { key: '75f827c7fa3bec95a441d75b04f815736f63d075', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7194
7194
  var _a;
7195
7195
  return (index.h("option", { key: option.countryCode, selected: option.countryCode === ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode), value: option.countryCode }, option.displayName, " (+", option.phoneCode, ")"));
7196
- })), index.h("div", { key: '56cc5d0e6eedc76282df9f43f9384d5ea6eacf86', class: "zonos--input-group" }, index.h("div", { key: '28e2e4e627e3f7439e2d5b474632585da41d531a', class: "zonos--select-wrapper" }, index.h("div", { key: 'bb2e59a82ca9cb497efa705361d996debc424f60', class: "zonos--country-select" }, index.h("div", { key: '14b7d08d477383dc16db4c15bd6132a71206226c', class: "zonos--country-select-content" }, this.selectedCountry && (index.h("div", { key: 'e8a0cde2b080bf30314069656c132d21e4b3ac89', class: "zonos--country-select-selected" }, index.h("div", { key: '13c3a5947263770aa8fd15126dc386c6ea51ca79', class: "zonos--country-flag-wrapper" }, index.h("zonos-country-flag", { key: 'f9861e6165265b3095889bd1158ac9791032628c', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), index.h("div", { key: 'e0c54a4e62f6b5aa2d01c8bfdd8dac3338dbb45a', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), index.h("div", { key: 'e2c309de467ed0e4d7b26ea2a3bca4443e254b82', class: "zonos--select-chevron-wrapper" }, index.h("zonos-icon", { key: '36848392b8467f3118222ae9c22b1b02071a3350', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), index.h("div", { key: '3dba6c65337a2f36b16b7f8d0284c0fccade7846', class: classes.classes([
7196
+ })), index.h("div", { key: '7299389121bb37f5444c8feecc349fc7663fd645', class: "zonos--input-group" }, index.h("div", { key: 'ffd81d520f2ffeeb0473606ffe529704d0539999', class: "zonos--select-wrapper" }, index.h("div", { key: '66a8c7b1fc41c8ced6ebe2b5d87d93d3fb34283a', class: "zonos--country-select" }, index.h("div", { key: 'e938804c0e0aa9e52810b8d07cb0d7948c451eb5', class: "zonos--country-select-content" }, this.selectedCountry && (index.h("div", { key: '1883e18a2318bf871e061c744a095dd8e5a905cc', class: "zonos--country-select-selected" }, index.h("div", { key: 'ae46b163ef58d71398c317ed5ceba1844fc52edc', class: "zonos--country-flag-wrapper" }, index.h("zonos-country-flag", { key: 'f4d18cf60a089675852f8f0fca82055fa879a7b7', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), index.h("div", { key: '1724ccaef84c39504ee9f2fb364d38c2b979185d', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), index.h("div", { key: 'e5c45c7d4ca3fd5244803f083e6fae502e4253fa', class: "zonos--select-chevron-wrapper" }, index.h("zonos-icon", { key: '9cfb2da1d454c6b9e0a64b4327ce515cf6aa72da', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), index.h("div", { key: '8324ec965cf0b637d4d7151728217407307b8707', class: classes.classes([
7197
7197
  'zonos--input-container',
7198
7198
  this.inputLabel && 'has-label',
7199
7199
  hasContent && 'has-content',
7200
- ]) }, index.h("input", Object.assign({ key: '4241efa2b016079e7107050bccd7866cb98a9e49' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (index.h("div", { key: 'dc2f3d2b183f2e6ae24806c00c2e0d5852344287', class: "zonos--floated-label" }, index.h("label", { key: 'd039a17ad718f85e3566f83b8ceced43cac01b83', htmlFor: this.inputId }, this.inputLabel || localization.translate('Phone number'))))))), this.error && (index.h("zonos-text", { key: 'a15dcd089b02a952d4f29fdb6e9d88390ef2d2c2', textColor: "red-600" }, this.error))));
7200
+ ]) }, index.h("input", Object.assign({ key: 'eace24d4a50271012b8bb95609842edcc7f8926f' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (index.h("div", { key: '9c1b5249fa2a9041e8c3ed9adbf3de8af4e1f29f', class: "zonos--floated-label" }, index.h("label", { key: '6535de344f98dc6148ef17ffdcb6354f1e1014e1', htmlFor: this.inputId }, this.inputLabel || localization.translate('Phone number'))))))), this.error && (index.h("zonos-text", { key: '0d696d74191e3738ceb94e6adb018589fa4ad9f3', textColor: "red-600" }, this.error))));
7201
7201
  }
7202
7202
  get el() { return index.getElement(this); }
7203
7203
  static get watchers() { return {
@@ -4,8 +4,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-b1f95d96.js');
6
6
  const throttle = require('./throttle-02c2e917.js');
7
- const cart = require('./cart-f1374a56.js');
8
- const localization = require('./localization-503c8477.js');
7
+ const cart = require('./cart-660e115c.js');
8
+ const localization = require('./localization-f4a64f6f.js');
9
9
  const zonosStore = require('./zonosStore-45a87908.js');
10
10
  const handleFetch = require('./handleFetch-954f30e1.js');
11
11
  const shouldRenderTaxIdInput = require('./shouldRenderTaxIdInput-b8abf6de.js');
@@ -358,11 +358,11 @@ const ZonosAddress = class {
358
358
  this.isAddressFilled = true;
359
359
  }
360
360
  // 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: 'ebba5be32c456e8b71d397db63e666e5d5df1543', class: classes.classes([
361
+ return (index.h(index.Host, { key: '9e66c8b7ba80d28aa430d6f5397d5eca16596e1a', class: classes.classes([
362
362
  'zonos--address',
363
363
  'zonos--elements',
364
364
  `zonos--${this.type}-address`,
365
- ]) }, this.titleText && (index.h("zonos-text", { key: '25f15ea17b50ed055eb98b072850296312785b06', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("slot", { key: '631bc324d1bb96fb9e796b38a6da42ef6ca601a3', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderShortAddressCodeInput(), index.h("div", { key: '25f88c72f8fc9b788b042f2df2f1b8085132f683', class: "zonos--address-component" })));
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" })));
366
366
  }
367
367
  get el() { return index.getElement(this); }
368
368
  static get watchers() { return {
@@ -494,13 +494,13 @@ const ZonosConfirmDialog = class {
494
494
  const borderStyle = getBorderRadius.getBorderRadius();
495
495
  // Get theme for the update dialog, inherit from the theme, no from this component theme
496
496
  const theme = zonosStore.getZonosStoreTheme(zonosStore.zonosStore.appearance.theme);
497
- return (index.h(index.Host, { key: '459abd25f9719554dc3b4387a660618056909846', class: classes.classes([this.dialogOpen && 'open', 'zonos--elements']), "data-dialog-type": this.dialogType, "data-theme": theme, style: {
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: {
498
498
  '--zonos--border-radius': borderStyle,
499
499
  '--zonos--dialog-width': `${this.dialogWidth}px`,
500
500
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
501
- } }, index.h("div", { key: 'f8a3c9bdbad91b046b3579eb140aad74e2784f8d', class: "zonos--backdrop", tabIndex: -1 }), index.h("div", { key: 'b41d27616223f89adb523269a3a8b982cd3559c7', class: classes.classes(['zonos--confirm-layout', this.dialogIntent]), onClick: e => this.clickOutsideDialogHandler(e) }, index.h("div", { key: '69e7837a2aaaeea468e4887d14cbb0ea61d5f24a', class: "zonos--confirm-dialog", onBlur: () => {
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: () => {
502
502
  this.focusDialog();
503
- } }, index.h("div", { key: '28ed6e2da0c8c56a00c46df985f21cf74c551894', class: "wrapper" }, index.h("div", { key: 'f20b3f00aeaef6fc306766a52607253554005cf4', class: "icon-wrapper" }, this.renderIcon()), index.h("div", { key: '7bb44bb7a880c599a8cc4615df48257fd0f9c19d', class: "content" }, index.h("div", { key: '584603b01b26b5d242f14c67a14d7b092d54b668', class: "title" }, index.h("zonos-text", { key: '028e06e106587778f6da2301ee44727ab1bf487f', type: "subheader" }, this.dialogTitle)), this.dialogSubtitle && (index.h("div", { key: 'c986563425dc6130fa154ce3c8e15c2aa03fb6cb', class: "subtitle" }, index.h("zonos-text", { key: '675899ceea2fd2de38ca8f87aa6ca69e4c7d8fc7', textColor: "gray-800" }, this.dialogSubtitle)))), index.h("div", { key: '8a034df1cd91f07e870fd6eccebc2f382edf59fb', class: "footer" }, this.dialogType === 'confirm' && (index.h("zonos-button", { key: '72e643fff73dabe0d5381e6ffc7f2237ef00f322', backgroundColor: "gray-0", class: "cancel-button", onClick: () => this.closeDialogHandler(), size: "lg", withBoxShadow: true }, this.dialogCancelBtnText || localization.translate('Cancel'))), index.h("zonos-button", { key: 'e247f450feef41b44688b937b38df8e061f386a3', class: "confirm-button", onClick: () => this.confirmDialogHandler(), size: "lg", variant: this.getButtonConfirmVariant() }, this.dialogConfirmBtnText)))))));
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)))))));
504
504
  }
505
505
  static get assetsDirs() { return ["assets"]; }
506
506
  get el() { return index.getElement(this); }
@@ -734,7 +734,7 @@ const ZonosLoadingOverlay = class {
734
734
  this.size = 40;
735
735
  }
736
736
  render() {
737
- return (index.h(index.Host, { key: '8216ba7271f4eb12153620d0268fd7b5dea632ad', class: classes.classes(['zonos--elements', this.open && 'zonos--open']) }, index.h("div", { key: 'ad3ab1b7e51b2de173e1b1a489bce3cdacc798f1', class: "zonos--loading-overlay" }, index.h("zonos-spinner", { key: 'dc1dd642825268c01c5df120165a7aec85d121e9', size: this.size, spinnerColor: this.spinnerColor }))));
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 }))));
738
738
  }
739
739
  };
740
740
  ZonosLoadingOverlay.style = ZonosLoadingOverlayStyle0;
@@ -0,0 +1,170 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-b1f95d96.js');
6
+ const collect = require('./collect-286a9d04.js');
7
+ const cart = require('./cart-660e115c.js');
8
+ const localization = require('./localization-f4a64f6f.js');
9
+ const zonosStore = require('./zonosStore-45a87908.js');
10
+ const VarianceTest = require('./VarianceTest-bec00ea8.js');
11
+ const handleFetch = require('./handleFetch-954f30e1.js');
12
+ require('./isDarkColor-5d6ca405.js');
13
+ require('./getBorderRadius-fc683d94.js');
14
+
15
+ 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}";
16
+ const ZonosAirwallexPaymentStyle0 = zonosAirwallexPaymentCss;
17
+
18
+ const ZonosAirwallexPayment = class {
19
+ constructor(hostRef) {
20
+ index.registerInstance(this, hostRef);
21
+ this.airwallexPaymentSuccess = index.createEvent(this, "airwallexPaymentSuccess", 7);
22
+ this.airwallexPaymentError = index.createEvent(this, "airwallexPaymentError", 7);
23
+ this.element = null;
24
+ this.storeUnsubscribeList = [];
25
+ /** Client secret currently being mounted, to avoid overlapping mounts. */
26
+ this.mountingClientSecret = null;
27
+ /**
28
+ * Whether the SDK failed to load or the element failed to mount.
29
+ */
30
+ this.hasError = false;
31
+ /**
32
+ * Mirror of the store client secret so the element (re)mounts once it becomes
33
+ * available. The client secret is fetched asynchronously and is usually not yet
34
+ * set when this component first mounts.
35
+ */
36
+ this.clientSecret = collect.airwallexStore.clientSecret;
37
+ /**
38
+ * Build the full set of drop-in options. The SDK's `element.update` requires the
39
+ * first argument to contain the most up-to-date version of everything that was
40
+ * originally passed to `createElement`, so both calls share this.
41
+ */
42
+ this.getDropInOptions = (clientSecret) => {
43
+ var _a;
44
+ // Authorize (hold) when a capture delay is configured, otherwise capture
45
+ // immediately — mirrors the PayPal intent logic in paypalInitScript.
46
+ const hasAuthorizeSettingSet = zonosStore.zonosStore.checkoutSettings.captureDelay &&
47
+ zonosStore.zonosStore.checkoutSettings.captureDelay > 0;
48
+ return {
49
+ autoCapture: !hasAuthorizeSettingSet,
50
+ client_secret: clientSecret,
51
+ // The shopper's ship-to country (from the collect shipping info).
52
+ country_code: ((_a = collect.collectStore.shippingAddress) === null || _a === void 0 ? void 0 : _a.location.countryCode) || undefined,
53
+ currency: collect.airwallexStore.currency || cart.cartStore.currency,
54
+ intent_id: collect.airwallexStore.paymentIntentId || undefined,
55
+ };
56
+ };
57
+ this.mountPaymentElement = async () => {
58
+ var _a;
59
+ const clientSecret = this.clientSecret;
60
+ // The client secret arrives asynchronously — wait for it instead of erroring.
61
+ if (!clientSecret) {
62
+ return;
63
+ }
64
+ // Skip if we are already mounting (or have mounted) this exact client secret.
65
+ if (this.mountingClientSecret === clientSecret) {
66
+ return;
67
+ }
68
+ this.mountingClientSecret = clientSecret;
69
+ const isReady = await collect.airwallexStoreInitSdk();
70
+ if (!isReady) {
71
+ this.hasError = true;
72
+ this.mountingClientSecret = null;
73
+ return;
74
+ }
75
+ const container = this.el.querySelector('.zonos--airwallex-payment-component');
76
+ if (!container) {
77
+ handleFetch.logError('Cannot find container element for Airwallex payment element');
78
+ this.hasError = true;
79
+ this.mountingClientSecret = null;
80
+ return;
81
+ }
82
+ try {
83
+ // Tear down any previously mounted element before remounting.
84
+ (_a = this.element) === null || _a === void 0 ? void 0 : _a.destroy();
85
+ this.element = null;
86
+ const element = await collect.createElement('dropIn', this.getDropInOptions(clientSecret));
87
+ if (!element) {
88
+ handleFetch.logError('Failed to create Airwallex payment element');
89
+ this.hasError = true;
90
+ this.mountingClientSecret = null;
91
+ return;
92
+ }
93
+ element.mount(container);
94
+ element.on('success', () => {
95
+ VarianceTest.log('Airwallex payment succeeded');
96
+ collect.airwallexStore.hasPaymentError = false;
97
+ // The drop-in confirmed the payment — the finish step trusts this over a
98
+ // possibly-lagging payment intent status lookup.
99
+ collect.airwallexStore.paymentConfirmed = true;
100
+ this.airwallexPaymentSuccess.emit();
101
+ });
102
+ element.on('error', payload => {
103
+ handleFetch.logError(payload);
104
+ collect.airwallexStore.hasPaymentError = true;
105
+ this.airwallexPaymentError.emit();
106
+ });
107
+ this.element = element;
108
+ this.hasError = false;
109
+ }
110
+ catch (err) {
111
+ handleFetch.logError(err);
112
+ this.hasError = true;
113
+ this.mountingClientSecret = null;
114
+ }
115
+ };
116
+ /**
117
+ * Update the mounted element's locale whenever the shopper changes language.
118
+ */
119
+ this.localeChangeHandler = () => {
120
+ if (!this.element || !this.clientSecret) {
121
+ return;
122
+ }
123
+ // `update`'s first argument must carry the most up-to-date version of all the
124
+ // options originally passed to `createElement`.
125
+ this.element.update(this.getDropInOptions(this.clientSecret), {
126
+ locale: collect.airwallexStoreGetLocale(localization.localizationStore.selectedLocale),
127
+ });
128
+ };
129
+ }
130
+ /**
131
+ * (Re)mount the payment element whenever the client secret becomes available
132
+ * or changes.
133
+ */
134
+ clientSecretWatcher() {
135
+ void this.mountPaymentElement();
136
+ }
137
+ componentWillLoad() {
138
+ this.storeUnsubscribeList = [
139
+ // Keep the local state in sync with the store so the @Watch above fires
140
+ // once the asynchronously-fetched client secret becomes available.
141
+ collect.airwallexStoreOnChange('clientSecret', clientSecret => {
142
+ this.clientSecret = clientSecret;
143
+ }),
144
+ // Keep the Airwallex element locale in sync with the selected language.
145
+ localization.localizationStoreOnChange('selectedLocale', this.localeChangeHandler),
146
+ ];
147
+ }
148
+ componentDidLoad() {
149
+ // If the client secret is already available on first render, mount now —
150
+ // @Watch does not fire for the initial value.
151
+ void this.mountPaymentElement();
152
+ }
153
+ disconnectedCallback() {
154
+ var _a;
155
+ // unsubscribe from store subscriptions
156
+ this.storeUnsubscribeList.forEach(subscription => subscription());
157
+ (_a = this.element) === null || _a === void 0 ? void 0 : _a.destroy();
158
+ this.element = null;
159
+ }
160
+ render() {
161
+ return (index.h(index.Host, { key: '3d5f4aaea91533348ae6273757b8af6f17a7ab59', class: "zonos--airwallex-payment zonos--elements" }, this.hasError && (index.h("zonos-banner", { key: '27fe7775145b9ff4f9b572ee592eb0cdc5f2ef13', class: "zonos--payment-error-banner", intent: "error" }, localization.translate("We couldn't complete your payment. Please verify the payment details and try again."))), index.h("div", { key: '48a50ebcc6ad1e3b3cbf807ef5d466030995a171', class: "zonos--airwallex-payment-component" })));
162
+ }
163
+ get el() { return index.getElement(this); }
164
+ static get watchers() { return {
165
+ "clientSecret": ["clientSecretWatcher"]
166
+ }; }
167
+ };
168
+ ZonosAirwallexPayment.style = ZonosAirwallexPaymentStyle0;
169
+
170
+ exports.zonos_airwallex_payment = ZonosAirwallexPayment;
@@ -50,16 +50,16 @@ const ZonosBadge = class {
50
50
  this.loading = false;
51
51
  }
52
52
  render() {
53
- return (index.h(index.Host, { key: '219feb5a48098f89db6f6f338b54404a0d5368c6', class: classes.classes(['zonos--elements zonos--badge']), style: {
53
+ return (index.h(index.Host, { key: '91ff0cbf64075ac1cb47691dd114b4205253b8e9', class: classes.classes(['zonos--elements zonos--badge']), style: {
54
54
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
55
- } }, index.h("div", { key: '9e37e1cdeef718fcdd8ee8243ef29bebd42bbc71', class: classes.classes([
55
+ } }, index.h("div", { key: '129b78caecaab54f8eb0dcb42fb2e398c2cfe2e6', 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: '9c538e2fe65246332655820eee13b10e7c50327b', textColor: `${this.badgeColor}-800` }, index.h("slot", { key: 'df06a399a7541a63703383b8340c594541cb8067' })), this.dismissHandler && (index.h("zonos-icon", { key: 'bc972c68bb3eb511282bd8988b6602f4604d3e39', "aria-label": "Remove action", class: "zonos--badge-dismiss", content: RemoveLineIcon, onClick: () => { var _a; return (_a = this.dismissHandler) === null || _a === void 0 ? void 0 : _a.call(this); } })))));
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); } })))));
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: '8172735394435d60f27ff0b55d3bcd57c7327487', class: classes.classes(['zonos--elements']), "data-theme": this.theme || buttonTheme, disabled: disabled, style: styles.styles({
214
+ return (index.h(index.Host, { key: 'd07f698c62e64fe404dc346e17aa4ebb23af635a', 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: 'c0afe56a3a2740aab6ed98311d6ea5d8a40fc390' }, this.inheritedAttributes, { class: classes.classes([
220
+ }) }, index.h("button", Object.assign({ key: '721b3b8c4dbc0666de04510c091b7be558a7ede3' }, 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: '042ee0a9b02356aaf5b9332121e810782a3efff3', class: "zonos--spinner-wrapper" }, index.h("zonos-spinner", { key: '2973bb0afdddcfffd1d17bf423776dace52d9f7f', size: 16, spinnerColor: spinnerColor }))), !this.loading && !this.iconRight && this.icon, index.h("slot", { key: '45c56c5839daf9bff44b424f2de43f02d37ca7cc', onSlotchange: this.handleSlotChange }), !this.loading && this.iconRight && this.icon)));
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)));
236
236
  }
237
237
  static get delegatesFocus() { return true; }
238
238
  get ele() { return index.getElement(this); }
@@ -6,10 +6,10 @@ const index = require('./index-b1f95d96.js');
6
6
  const zonosStore = require('./zonosStore-45a87908.js');
7
7
  const classes = require('./classes-b7918f56.js');
8
8
  const getBorderRadius = require('./getBorderRadius-fc683d94.js');
9
- const cart = require('./cart-f1374a56.js');
10
- const localization = require('./localization-503c8477.js');
9
+ const cart = require('./cart-660e115c.js');
10
+ const localization = require('./localization-f4a64f6f.js');
11
11
  const handleFetch = require('./handleFetch-954f30e1.js');
12
- const paypal = require('./paypal-5e9b8224.js');
12
+ const paypal = require('./paypal-125259ab.js');
13
13
  const VarianceTest = require('./VarianceTest-bec00ea8.js');
14
14
  require('./isDarkColor-5d6ca405.js');
15
15
  require('./isContrastColor-76592c92.js');
@@ -39,16 +39,16 @@ const ZonosCard = class {
39
39
  customRoundRadius: `${this.borderRadius}px`,
40
40
  overrideBorderStyle: 'ROUNDED',
41
41
  });
42
- return (index.h(index.Host, { key: 'ae124207be3fbddbd445d74cdf31085401a09c67', style: {
42
+ return (index.h(index.Host, { key: '9abda7f00c442317f63521444b6eeb21f294d2bb', style: {
43
43
  '--zonos--font-family': zonosStore.zonosStoreFontFamily(),
44
- } }, index.h("div", { key: '43fe2ffcb7caa0754c93f6d94898156f5169139b', class: classes.classes(['styled-card']), style: {
44
+ } }, index.h("div", { key: '2e1f1e4b59ce9ce87c7a22e58f0ae6c5dd0f0388', class: classes.classes(['styled-card']), style: {
45
45
  '--zonos--background-color': backgroundColor,
46
46
  '--zonos--border-radius': borderRadius,
47
47
  padding: this.spacing,
48
- } }, this.label && (index.h("header", { key: '6839065e2e630a841d6ecd7f03b19a93a988e49a', class: "card-header", style: { padding: this.spacing } }, index.h("zonos-text", { key: '498435bbbb60cc6d1d13a304aad321107bd6feaf', type: "subheader" }, this.label), index.h("h-stack", { key: '4de3f042a72b16be374209b393cb174fc7d1b670', spacing: 8 }, this.actions))), index.h("slot", { key: 'add9dac3d8b9a50c0caa37d245f632c6a5e64d7f' }), (this.footerActions || this.footerContent) && (index.h("footer", { key: 'e83f37ed24b44d9b7316579ee28ea51a3da119d8', class: "card-footer", style: {
48
+ } }, 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
49
  height: this.footerHeight ? `${this.footerHeight}px` : 'auto',
50
50
  padding: this.spacing,
51
- } }, index.h("div", { key: '685721d5f7f51c99438f4ddf23cf75122db3223c' }, this.footerContent), index.h("h-stack", { key: '61a44c918aea4994c10b16045564b45135296852', spacing: 8 }, this.footerActions))))));
51
+ } }, index.h("div", { key: 'fd2680f6ba67a7afcb8001ba2d9e0eff49b74675' }, this.footerContent), index.h("h-stack", { key: 'f7c716b48b470082b5196ddaeac189e476a4c3fd', spacing: 8 }, this.footerActions))))));
52
52
  }
53
53
  };
54
54
  ZonosCard.style = ZonosCardStyle0;
@@ -261,7 +261,7 @@ const ZonosPayment = class {
261
261
  }
262
262
  render() {
263
263
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
264
- return (index.h(index.Host, { key: '6bc25553430c9e23c77a0607ad28dc4c9efa66e6', class: "zonos--payment zonos--elements" }, this.titleText && (index.h("zonos-text", { key: 'e4ba3f581697a799e50fe066e7cc922a206af8e5', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), index.h("div", { key: '0247eecadf083f09b67c5f668da845431234750d', class: "zonos--payment-component" }), index.h("div", { key: '7f63abd0a2c1cbc62f931e44fc44c69b57a4f8ed', class: "zonos--payment-paypal-container" })));
264
+ 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
265
  }
266
266
  get el() { return index.getElement(this); }
267
267
  static get watchers() { return {
@@ -325,7 +325,7 @@ const ZonosPaypalPayment = class {
325
325
  this.storeUnsubscribeList.forEach(unsubscribe => unsubscribe());
326
326
  }
327
327
  render() {
328
- return (index.h(index.Host, { key: 'c01e031b29e0089389be2a16e888bd0b7c24dcd8', class: "zonos--paypal-payment zonos--elements" }, index.h("div", { key: 'f03c880bde17291f083cfe1f0db6a918f92d720b', class: "zonos--payment-paypal-container" })));
328
+ return (index.h(index.Host, { key: '283f26fced92fbc16064967cf6d0cf8e7a8d34d4', class: "zonos--paypal-payment zonos--elements" }, index.h("div", { key: '31f4639edea489f91bb43c4c00b9019f949acaa4', class: "zonos--payment-paypal-container" })));
329
329
  }
330
330
  get el() { return index.getElement(this); }
331
331
  };