@zonos/elements 1.3.232 → 1.3.234

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 (415) hide show
  1. package/dist/cjs/{cart-bc615014.js → cart-22ced7cc.js} +33 -29
  2. package/dist/cjs/{shouldRenderTaxIdInput-9b8a8de1.js → containsNonLatinChars-2be5129b.js} +0 -23
  3. package/dist/cjs/{hasInclusivePrice-84145546.js → hasInclusivePrice-ca85cabd.js} +1 -1
  4. package/dist/cjs/index.cjs.js +11 -7
  5. package/dist/cjs/invoice-8fd4242c.js +151 -0
  6. package/dist/cjs/{renderFallback-c2576fbe.js → isCollectMobileTablet-7962c57f.js} +2 -11
  7. package/dist/cjs/isInvoiceMobileTablet-dde41e4e.js +15 -0
  8. package/dist/cjs/loader.cjs.js +1 -1
  9. package/dist/cjs/{translationStore-08d3ff9c.js → localization-8ef6250a.js} +1059 -1
  10. package/dist/cjs/{paypal-1d6f1a71.js → paypal-4a086f84.js} +7 -8
  11. package/dist/cjs/placeTestOrder-f25d08ee.js +45 -0
  12. package/dist/cjs/{placeTestOrder-a5469e40.js → renderCheckoutCurrency-5494e45b.js} +2 -42
  13. package/dist/cjs/renderFallback-78b54537.js +12 -0
  14. package/dist/cjs/shouldRenderTaxIdInput-eda13ef8.js +25 -0
  15. package/dist/cjs/throttle-7dd64984.js +76 -0
  16. package/dist/cjs/{zonos-address_11.cjs.entry.js → zonos-address-display_9.cjs.entry.js} +62 -668
  17. package/dist/cjs/zonos-address_4.cjs.entry.js +715 -0
  18. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  19. package/dist/cjs/{zonos-banner_2.cjs.entry.js → zonos-banner.cjs.entry.js} +0 -40
  20. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  21. package/dist/cjs/{zonos-empty-state-payment_4.cjs.entry.js → zonos-card_5.cjs.entry.js} +44 -6
  22. package/dist/cjs/{zonos-cart-items_13.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +81 -94
  23. package/dist/cjs/zonos-checkout.cjs.entry.js +20 -21
  24. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +5 -6
  26. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +66 -65
  27. package/dist/cjs/zonos-collect.cjs.entry.js +25 -25
  28. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  29. package/dist/cjs/zonos-controller.cjs.entry.js +39 -10
  30. package/dist/cjs/zonos-country-flag.cjs.entry.js +1 -2
  31. package/dist/cjs/zonos-country-select_4.cjs.entry.js +10 -11
  32. package/dist/cjs/zonos-elements.cjs.js +1 -1
  33. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +30 -31
  34. package/dist/cjs/zonos-hello.cjs.entry.js +7 -8
  35. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  36. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +94 -0
  37. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +686 -0
  38. package/dist/cjs/zonos-invoice.cjs.entry.js +466 -0
  39. package/dist/cjs/zonos-language-select_2.cjs.entry.js +5 -6
  40. package/dist/cjs/zonos-link.cjs.entry.js +24 -0
  41. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  42. package/dist/cjs/zonos-stripe-input.cjs.entry.js +5 -5
  43. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  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 +8 -0
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -1
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +3 -1
  49. package/dist/collection/components/checkout/zonos-invoice/assets/ChevronDownIcon.svg +1 -0
  50. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/assets/empty-item.jpeg +0 -0
  51. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.css +72 -0
  52. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.js +87 -0
  53. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/assets/RemoveIcon.svg +1 -0
  54. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/assets/SuccessIcon.svg +1 -0
  55. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.css +90 -0
  56. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.js +405 -0
  57. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/chevronDownIcon.svg +1 -0
  58. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/globe.svg +3 -0
  59. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosIconDark.svg +10 -0
  60. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosIconLight.svg +10 -0
  61. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/assets/zonosWordmark.svg +7 -0
  62. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.css +155 -0
  63. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.js +165 -0
  64. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/assets/ChevronDownIcon.svg +1 -0
  65. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/assets/ChevronUpIcon.svg +1 -0
  66. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.css +117 -0
  67. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.js +175 -0
  68. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/assets/CheckmarkLineIcon.svg +1 -0
  69. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/assets/RemoveLineIcon.svg +1 -0
  70. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.css +98 -0
  71. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.js +368 -0
  72. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.css +71 -0
  73. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.js +151 -0
  74. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.css +83 -0
  75. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.js +65 -0
  76. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.css +350 -0
  77. package/dist/collection/components/checkout/zonos-invoice/zonos-invoice.js +545 -0
  78. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  79. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  80. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  81. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  82. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  83. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  84. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  85. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  86. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  87. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  88. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +2 -2
  89. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  90. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  91. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  92. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  93. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  94. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  95. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  96. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +1 -1
  97. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +5 -5
  98. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  99. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  100. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  101. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  102. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  103. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  104. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  105. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  106. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  107. package/dist/collection/components/main/zonos-controller.js +45 -4
  108. package/dist/collection/components/paypal/zonos-paypal-payment.js +1 -1
  109. package/dist/collection/components/store/checkout/invoice.js +148 -0
  110. package/dist/collection/components/store/checkout/stripe.js +8 -3
  111. package/dist/collection/components/store/translationStore/strings.arabic.js +9 -0
  112. package/dist/collection/components/store/translationStore/strings.base.js +9 -0
  113. package/dist/collection/components/store/translationStore/strings.chinese.js +9 -0
  114. package/dist/collection/components/store/translationStore/strings.danish.js +9 -0
  115. package/dist/collection/components/store/translationStore/strings.dutch.js +9 -0
  116. package/dist/collection/components/store/translationStore/strings.french.js +9 -0
  117. package/dist/collection/components/store/translationStore/strings.german.js +9 -0
  118. package/dist/collection/components/store/translationStore/strings.hebrew.js +9 -0
  119. package/dist/collection/components/store/translationStore/strings.indonesian.js +9 -0
  120. package/dist/collection/components/store/translationStore/strings.italian.js +9 -0
  121. package/dist/collection/components/store/translationStore/strings.japanese.js +9 -0
  122. package/dist/collection/components/store/translationStore/strings.korean.js +9 -0
  123. package/dist/collection/components/store/translationStore/strings.norwegian.js +9 -0
  124. package/dist/collection/components/store/translationStore/strings.polish.js +9 -0
  125. package/dist/collection/components/store/translationStore/strings.portuguese.js +9 -0
  126. package/dist/collection/components/store/translationStore/strings.russian.js +9 -0
  127. package/dist/collection/components/store/translationStore/strings.spanish.js +9 -0
  128. package/dist/collection/components/store/translationStore/strings.swedish.js +9 -0
  129. package/dist/collection/components/store/translationStore/strings.turkish.js +9 -0
  130. package/dist/collection/components/store/translationStore/strings.vietnamese.js +9 -0
  131. package/dist/collection/components/stripe/zonos-address/zonos-address.js +8 -5
  132. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  133. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  134. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  135. package/dist/collection/components/utils/checkout/initInvoice.js +15 -0
  136. package/dist/collection/components/utils/checkout/isInvoiceMobileTablet.js +10 -0
  137. package/dist/collection/scripts/_zonosBase.js +4 -0
  138. package/dist/esm/{cart-14f305b3.js → cart-66aecbb3.js} +9 -5
  139. package/dist/esm/{shouldRenderTaxIdInput-8bc112bb.js → containsNonLatinChars-2d8810c3.js} +1 -23
  140. package/dist/esm/{hasInclusivePrice-0eda8ba9.js → hasInclusivePrice-2a1bf474.js} +1 -1
  141. package/dist/esm/index.js +11 -7
  142. package/dist/esm/invoice-c7452847.js +146 -0
  143. package/dist/esm/{renderFallback-dbf1e3ae.js → isCollectMobileTablet-921002b0.js} +3 -11
  144. package/dist/esm/isInvoiceMobileTablet-1f7b614e.js +12 -0
  145. package/dist/esm/loader.js +1 -1
  146. package/dist/esm/{translationStore-690c4e04.js → localization-04b05867.js} +1041 -2
  147. package/dist/esm/{paypal-fded8844.js → paypal-56564874.js} +2 -3
  148. package/dist/esm/placeTestOrder-6b9eda9e.js +43 -0
  149. package/dist/esm/{placeTestOrder-2250f719.js → renderCheckoutCurrency-cb808110.js} +3 -42
  150. package/dist/esm/renderFallback-3f010b48.js +10 -0
  151. package/dist/esm/shouldRenderTaxIdInput-d45ceeb4.js +23 -0
  152. package/dist/esm/throttle-ce2432ab.js +74 -0
  153. package/dist/esm/{zonos-address_11.entry.js → zonos-address-display_9.entry.js} +32 -636
  154. package/dist/esm/zonos-address_4.entry.js +708 -0
  155. package/dist/esm/zonos-badge.entry.js +3 -3
  156. package/dist/esm/{zonos-banner_2.entry.js → zonos-banner.entry.js} +1 -40
  157. package/dist/esm/zonos-button_3.entry.js +3 -3
  158. package/dist/esm/{zonos-empty-state-payment_4.entry.js → zonos-card_5.entry.js} +44 -7
  159. package/dist/esm/{zonos-cart-items_13.entry.js → zonos-cart-items_12.entry.js} +21 -33
  160. package/dist/esm/zonos-checkout.entry.js +3 -4
  161. package/dist/esm/zonos-collapse.entry.js +2 -2
  162. package/dist/esm/zonos-collect-cart-items_3.entry.js +5 -6
  163. package/dist/esm/zonos-collect-finish_6.entry.js +7 -6
  164. package/dist/esm/zonos-collect.entry.js +5 -5
  165. package/dist/esm/zonos-component.entry.js +1 -1
  166. package/dist/esm/zonos-controller.entry.js +39 -10
  167. package/dist/esm/zonos-country-flag.entry.js +1 -2
  168. package/dist/esm/zonos-country-select_4.entry.js +10 -11
  169. package/dist/esm/zonos-elements.js +1 -1
  170. package/dist/esm/zonos-hello-dialog.entry.js +6 -7
  171. package/dist/esm/zonos-hello.entry.js +1 -2
  172. package/dist/esm/zonos-input.entry.js +4 -4
  173. package/dist/esm/zonos-invoice-cart-items_2.entry.js +89 -0
  174. package/dist/esm/zonos-invoice-finish_5.entry.js +678 -0
  175. package/dist/esm/zonos-invoice.entry.js +462 -0
  176. package/dist/esm/zonos-language-select_2.entry.js +5 -6
  177. package/dist/esm/zonos-link.entry.js +20 -0
  178. package/dist/esm/zonos-logo.entry.js +2 -2
  179. package/dist/esm/zonos-stripe-input.entry.js +5 -5
  180. package/dist/esm/zonos-toggle.entry.js +2 -2
  181. package/dist/esm/zonos-tooltip.entry.js +2 -2
  182. package/dist/esm/zonos-v-stack.entry.js +2 -2
  183. package/dist/esm-es5/cart-66aecbb3.js +1 -0
  184. package/dist/esm-es5/containsNonLatinChars-2d8810c3.js +1 -0
  185. package/dist/esm-es5/{hasInclusivePrice-0eda8ba9.js → hasInclusivePrice-2a1bf474.js} +1 -1
  186. package/dist/esm-es5/index.js +1 -1
  187. package/dist/esm-es5/invoice-c7452847.js +1 -0
  188. package/dist/esm-es5/isCollectMobileTablet-921002b0.js +1 -0
  189. package/dist/esm-es5/isInvoiceMobileTablet-1f7b614e.js +1 -0
  190. package/dist/esm-es5/loader.js +1 -1
  191. package/dist/esm-es5/localization-04b05867.js +1 -0
  192. package/dist/esm-es5/{paypal-fded8844.js → paypal-56564874.js} +1 -1
  193. package/dist/esm-es5/placeTestOrder-6b9eda9e.js +1 -0
  194. package/dist/esm-es5/renderCheckoutCurrency-cb808110.js +1 -0
  195. package/dist/esm-es5/renderFallback-3f010b48.js +1 -0
  196. package/dist/esm-es5/shouldRenderTaxIdInput-d45ceeb4.js +1 -0
  197. package/dist/esm-es5/throttle-ce2432ab.js +1 -0
  198. package/dist/esm-es5/zonos-address-display_9.entry.js +1 -0
  199. package/dist/esm-es5/zonos-address_4.entry.js +1 -0
  200. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  201. package/dist/esm-es5/zonos-banner.entry.js +1 -0
  202. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  203. package/dist/esm-es5/zonos-card_5.entry.js +1 -0
  204. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  205. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  206. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  207. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  208. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  209. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  210. package/dist/esm-es5/zonos-component.entry.js +1 -1
  211. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  212. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  213. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  214. package/dist/esm-es5/zonos-elements.js +1 -1
  215. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  216. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  217. package/dist/esm-es5/zonos-input.entry.js +1 -1
  218. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +1 -0
  219. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -0
  220. package/dist/esm-es5/zonos-invoice.entry.js +1 -0
  221. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  222. package/dist/esm-es5/zonos-link.entry.js +1 -0
  223. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  224. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  225. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  226. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  227. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  228. package/dist/scripts/index.d.ts +356 -0
  229. package/dist/scripts/index.js +1 -1
  230. package/dist/scripts/loadZonos.js +1 -1
  231. package/dist/scripts/zonos.js +1 -1
  232. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-cart-items/zonos-invoice-cart-items.d.ts +10 -0
  233. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-finish/zonos-invoice-finish.d.ts +50 -0
  234. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-footer/zonos-invoice-footer.d.ts +25 -0
  235. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-order-details/zonos-invoice-order-details.d.ts +28 -0
  236. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-payment/zonos-invoice-payment.d.ts +62 -0
  237. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-review/zonos-invoice-review.d.ts +22 -0
  238. package/dist/types/components/checkout/zonos-invoice/zonos-invoice-subtotal/zonos-invoice-subtotal.d.ts +7 -0
  239. package/dist/types/components/checkout/zonos-invoice/zonos-invoice.d.ts +86 -0
  240. package/dist/types/components/main/zonos-controller.d.ts +4 -0
  241. package/dist/types/components/store/checkout/invoice.d.ts +19 -0
  242. package/dist/types/components/store/translationStore/strings.arabic.d.ts +9 -0
  243. package/dist/types/components/store/translationStore/strings.base.d.ts +9 -0
  244. package/dist/types/components/store/translationStore/strings.chinese.d.ts +9 -0
  245. package/dist/types/components/store/translationStore/strings.danish.d.ts +9 -0
  246. package/dist/types/components/store/translationStore/strings.dutch.d.ts +9 -0
  247. package/dist/types/components/store/translationStore/strings.french.d.ts +9 -0
  248. package/dist/types/components/store/translationStore/strings.german.d.ts +9 -0
  249. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +9 -0
  250. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +9 -0
  251. package/dist/types/components/store/translationStore/strings.italian.d.ts +9 -0
  252. package/dist/types/components/store/translationStore/strings.japanese.d.ts +9 -0
  253. package/dist/types/components/store/translationStore/strings.korean.d.ts +9 -0
  254. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +9 -0
  255. package/dist/types/components/store/translationStore/strings.polish.d.ts +9 -0
  256. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +9 -0
  257. package/dist/types/components/store/translationStore/strings.russian.d.ts +9 -0
  258. package/dist/types/components/store/translationStore/strings.spanish.d.ts +9 -0
  259. package/dist/types/components/store/translationStore/strings.swedish.d.ts +9 -0
  260. package/dist/types/components/store/translationStore/strings.turkish.d.ts +9 -0
  261. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +9 -0
  262. package/dist/types/components/utils/checkout/initInvoice.d.ts +1 -0
  263. package/dist/types/components/utils/checkout/isInvoiceMobileTablet.d.ts +4 -0
  264. package/dist/types/components.d.ts +351 -0
  265. package/dist/types/scripts/_zonosBase.d.ts +5 -0
  266. package/dist/types/types/checkout/api/CheckoutSession.d.ts +4 -0
  267. package/dist/types/types/checkout/api/PartyInfo.d.ts +21 -0
  268. package/dist/zonos-elements/index.esm.js +1 -1
  269. package/dist/zonos-elements/p-00719e49.entry.js +1 -0
  270. package/dist/zonos-elements/p-01b0a2e2.js +1 -0
  271. package/dist/zonos-elements/p-01dada4e.js +1 -0
  272. package/dist/zonos-elements/p-0c64dbbb.js +1 -0
  273. package/dist/zonos-elements/p-0cd5bcb3.entry.js +1 -0
  274. package/dist/zonos-elements/p-0e82fcea.entry.js +1 -0
  275. package/dist/zonos-elements/p-10316d4d.system.entry.js +1 -0
  276. package/dist/zonos-elements/{p-0a90dd80.system.entry.js → p-121c60c1.system.entry.js} +1 -1
  277. package/dist/zonos-elements/{p-bf9d889f.entry.js → p-14314ad3.entry.js} +1 -1
  278. package/dist/zonos-elements/p-170314a3.js +1 -0
  279. package/dist/zonos-elements/p-17a09191.entry.js +1 -0
  280. package/dist/zonos-elements/p-18bc6c7a.entry.js +1 -0
  281. package/dist/zonos-elements/{p-a25428eb.system.js → p-18d20206.system.js} +2 -2
  282. package/dist/zonos-elements/p-1a30fe18.system.entry.js +1 -0
  283. package/dist/zonos-elements/{p-c7b658cb.entry.js → p-1c4d12f0.entry.js} +1 -1
  284. package/dist/zonos-elements/p-1f3549c6.js +1 -0
  285. package/dist/zonos-elements/p-2250e585.entry.js +1 -0
  286. package/dist/zonos-elements/p-248dd596.system.entry.js +1 -0
  287. package/dist/zonos-elements/{p-5f398c28.entry.js → p-264690d7.entry.js} +1 -1
  288. package/dist/zonos-elements/p-2670438c.system.js +1 -0
  289. package/dist/zonos-elements/p-27f6930b.js +1 -0
  290. package/dist/zonos-elements/{p-eea0eb57.system.entry.js → p-2f869f2c.system.entry.js} +1 -1
  291. package/dist/zonos-elements/p-30c661b3.system.entry.js +1 -0
  292. package/dist/zonos-elements/p-34bf7bbe.system.js +1 -0
  293. package/dist/zonos-elements/p-38913b2f.entry.js +1 -0
  294. package/dist/zonos-elements/p-3bec13dd.system.js +1 -0
  295. package/dist/zonos-elements/{p-00ec22b2.entry.js → p-43a22d85.entry.js} +1 -1
  296. package/dist/zonos-elements/p-44b50260.entry.js +1 -0
  297. package/dist/zonos-elements/p-48dc96f9.system.entry.js +1 -0
  298. package/dist/zonos-elements/p-4aa86184.system.entry.js +1 -0
  299. package/dist/zonos-elements/p-4d594c8e.system.js +1 -0
  300. package/dist/zonos-elements/p-4ffbb0d6.system.js +1 -0
  301. package/dist/zonos-elements/{p-452fb638.system.entry.js → p-5062dcf3.system.entry.js} +1 -1
  302. package/dist/zonos-elements/{p-c5cb2364.system.entry.js → p-57cee1b5.system.entry.js} +1 -1
  303. package/dist/zonos-elements/p-59a76f73.entry.js +1 -0
  304. package/dist/zonos-elements/{p-d556c6d1.system.entry.js → p-5afb9260.system.entry.js} +1 -1
  305. package/dist/zonos-elements/p-5e9b45f7.entry.js +1 -0
  306. package/dist/zonos-elements/{p-88ea9f82.entry.js → p-6626d240.entry.js} +1 -1
  307. package/dist/zonos-elements/p-6688473e.entry.js +1 -0
  308. package/dist/zonos-elements/p-6f23a26a.system.js +1 -0
  309. package/dist/zonos-elements/{p-82739127.js → p-73c737aa.js} +2 -2
  310. package/dist/zonos-elements/p-757d4c62.system.entry.js +1 -0
  311. package/dist/zonos-elements/p-7aa50ef2.entry.js +1 -0
  312. package/dist/zonos-elements/p-7e17667d.js +1 -0
  313. package/dist/zonos-elements/p-7e469c5c.entry.js +1 -0
  314. package/dist/zonos-elements/p-7f91617c.system.entry.js +1 -0
  315. package/dist/zonos-elements/p-81e3eb5b.js +1 -0
  316. package/dist/zonos-elements/p-82febf70.system.js +1 -0
  317. package/dist/zonos-elements/{p-770852bf.system.entry.js → p-836db369.system.entry.js} +1 -1
  318. package/dist/zonos-elements/p-83b3f824.system.entry.js +1 -0
  319. package/dist/zonos-elements/p-851011aa.system.entry.js +1 -0
  320. package/dist/zonos-elements/{p-936b54c1.entry.js → p-865536f0.entry.js} +1 -1
  321. package/dist/zonos-elements/{p-b1fd1ec2.system.entry.js → p-8792fef2.system.entry.js} +1 -1
  322. package/dist/zonos-elements/p-890bfc42.system.entry.js +1 -0
  323. package/dist/zonos-elements/{p-c288c6da.system.entry.js → p-89a5e936.system.entry.js} +1 -1
  324. package/dist/zonos-elements/p-8af188f8.system.js +1 -0
  325. package/dist/zonos-elements/p-8d3a62fb.entry.js +1 -0
  326. package/dist/zonos-elements/{p-00ac999f.system.entry.js → p-8dc025c7.system.entry.js} +1 -1
  327. package/dist/zonos-elements/p-944d00da.entry.js +1 -0
  328. package/dist/zonos-elements/p-9479f155.system.js +1 -0
  329. package/dist/zonos-elements/p-95dc475b.system.js +1 -0
  330. package/dist/zonos-elements/p-976afc17.system.js +1 -0
  331. package/dist/zonos-elements/p-97d56c21.system.entry.js +1 -0
  332. package/dist/zonos-elements/p-9b9bfb6d.entry.js +1 -0
  333. package/dist/zonos-elements/{p-55e2e4ed.entry.js → p-9f1bd9b8.entry.js} +1 -1
  334. package/dist/zonos-elements/p-9fa32fdf.js +1 -0
  335. package/dist/zonos-elements/p-a2a0bf4e.js +1 -0
  336. package/dist/zonos-elements/p-a610c24e.system.entry.js +1 -0
  337. package/dist/zonos-elements/{p-9b8750f3.entry.js → p-aedd3911.entry.js} +1 -1
  338. package/dist/zonos-elements/{p-db628e49.system.entry.js → p-b5c31ca4.system.entry.js} +1 -1
  339. package/dist/zonos-elements/p-ba456282.system.entry.js +1 -0
  340. package/dist/zonos-elements/{p-31af91f0.entry.js → p-bd603c1a.entry.js} +1 -1
  341. package/dist/zonos-elements/p-c2442878.system.js +1 -1
  342. package/dist/zonos-elements/p-dc5fb21c.js +1 -0
  343. package/dist/zonos-elements/p-dc94d7eb.js +1 -0
  344. package/dist/zonos-elements/p-e5e64e16.system.js +1 -0
  345. package/dist/zonos-elements/{p-540cec7e.system.entry.js → p-e9e6bea7.system.entry.js} +1 -1
  346. package/dist/zonos-elements/p-eb9ee025.system.js +1 -0
  347. package/dist/zonos-elements/p-ed8ae947.system.entry.js +1 -0
  348. package/dist/zonos-elements/p-f1d9dd4e.entry.js +1 -0
  349. package/dist/zonos-elements/p-f3962950.system.entry.js +1 -0
  350. package/dist/zonos-elements/p-f4e976ae.entry.js +1 -0
  351. package/dist/zonos-elements/p-f513b231.entry.js +1 -0
  352. package/dist/zonos-elements/p-f64207fa.system.entry.js +1 -0
  353. package/dist/zonos-elements/{p-31975752.entry.js → p-fa322dc1.entry.js} +1 -1
  354. package/dist/zonos-elements/p-fb9fb873.system.entry.js +1 -0
  355. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  356. package/package.json +1 -1
  357. package/dist/cjs/localization-39516612.js +0 -884
  358. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +0 -168
  359. package/dist/esm/localization-c5029ffc.js +0 -863
  360. package/dist/esm/zonos-confirm-dialog_2.entry.js +0 -163
  361. package/dist/esm-es5/cart-14f305b3.js +0 -1
  362. package/dist/esm-es5/localization-c5029ffc.js +0 -1
  363. package/dist/esm-es5/placeTestOrder-2250f719.js +0 -1
  364. package/dist/esm-es5/renderFallback-dbf1e3ae.js +0 -1
  365. package/dist/esm-es5/shouldRenderTaxIdInput-8bc112bb.js +0 -1
  366. package/dist/esm-es5/translationStore-690c4e04.js +0 -1
  367. package/dist/esm-es5/zonos-address_11.entry.js +0 -1
  368. package/dist/esm-es5/zonos-banner_2.entry.js +0 -1
  369. package/dist/esm-es5/zonos-cart-items_13.entry.js +0 -1
  370. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +0 -1
  371. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +0 -1
  372. package/dist/zonos-elements/p-03ff7b01.system.entry.js +0 -1
  373. package/dist/zonos-elements/p-100f6a88.system.entry.js +0 -1
  374. package/dist/zonos-elements/p-143d706b.entry.js +0 -1
  375. package/dist/zonos-elements/p-14d7489d.js +0 -1
  376. package/dist/zonos-elements/p-1d5aa016.system.js +0 -1
  377. package/dist/zonos-elements/p-1eae4987.entry.js +0 -1
  378. package/dist/zonos-elements/p-23b45714.system.entry.js +0 -1
  379. package/dist/zonos-elements/p-2557b96b.js +0 -1
  380. package/dist/zonos-elements/p-2ca8b037.entry.js +0 -1
  381. package/dist/zonos-elements/p-2dbcecf4.entry.js +0 -1
  382. package/dist/zonos-elements/p-30e835a8.entry.js +0 -1
  383. package/dist/zonos-elements/p-316f9052.system.entry.js +0 -1
  384. package/dist/zonos-elements/p-3185968f.entry.js +0 -1
  385. package/dist/zonos-elements/p-4e41143a.system.entry.js +0 -1
  386. package/dist/zonos-elements/p-52b87408.system.entry.js +0 -1
  387. package/dist/zonos-elements/p-561be3a2.system.js +0 -1
  388. package/dist/zonos-elements/p-5c680f72.js +0 -1
  389. package/dist/zonos-elements/p-5f77d19e.js +0 -1
  390. package/dist/zonos-elements/p-60469388.system.entry.js +0 -1
  391. package/dist/zonos-elements/p-652e80f0.system.js +0 -1
  392. package/dist/zonos-elements/p-74ca7739.entry.js +0 -1
  393. package/dist/zonos-elements/p-767a31a8.system.js +0 -1
  394. package/dist/zonos-elements/p-78a6e775.system.js +0 -1
  395. package/dist/zonos-elements/p-7c705c76.system.js +0 -1
  396. package/dist/zonos-elements/p-81ba2820.system.entry.js +0 -1
  397. package/dist/zonos-elements/p-8a23bbf5.js +0 -1
  398. package/dist/zonos-elements/p-905d2490.entry.js +0 -1
  399. package/dist/zonos-elements/p-93f2e1ee.system.entry.js +0 -1
  400. package/dist/zonos-elements/p-a0a4e43d.system.entry.js +0 -1
  401. package/dist/zonos-elements/p-a2819807.system.entry.js +0 -1
  402. package/dist/zonos-elements/p-a6e74856.entry.js +0 -1
  403. package/dist/zonos-elements/p-ae940a99.js +0 -1
  404. package/dist/zonos-elements/p-b7ea5f4f.system.entry.js +0 -1
  405. package/dist/zonos-elements/p-c1ecab92.entry.js +0 -1
  406. package/dist/zonos-elements/p-c50cc926.entry.js +0 -1
  407. package/dist/zonos-elements/p-cf765af3.system.js +0 -1
  408. package/dist/zonos-elements/p-e03e1a62.entry.js +0 -1
  409. package/dist/zonos-elements/p-e7874318.system.entry.js +0 -1
  410. package/dist/zonos-elements/p-e8949e7e.entry.js +0 -1
  411. package/dist/zonos-elements/p-ea0b5d10.system.js +0 -1
  412. package/dist/zonos-elements/p-eae3462c.entry.js +0 -1
  413. package/dist/zonos-elements/p-eeb1081e.js +0 -1
  414. package/dist/zonos-elements/p-f892595d.system.entry.js +0 -1
  415. package/dist/zonos-elements/p-fd3b46ee.entry.js +0 -1
@@ -1,413 +1,19 @@
1
- import { r as registerInstance, c as createEvent, h, H as Host, a as getElement } from './index-0bbe9693.js';
2
- import { d as debounce_1 } from './debounce-c4785346.js';
3
- import { d as isObject_1, z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
4
- import { c as stripeStore, t as trackConversionEvent, K as extractName, B as stripeStoreOnChange, q as stripeStorePrefetchLandedCost, e as cartStore } from './cart-14f305b3.js';
5
- import { s as storageStore, p as getFallbackDefaultCountryCode, q as storageStoreOnChange, l as localizationStore } from './localization-c5029ffc.js';
6
- import { t as translate } from './translationStore-690c4e04.js';
7
- import { l as logError, i as isCheckoutMobile, s as sendErrorLog } from './handleFetch-a844cac1.js';
8
- import { s as shouldRenderTaxIdInput, i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './shouldRenderTaxIdInput-8bc112bb.js';
1
+ import { r as registerInstance, h, H as Host, c as createEvent, a as getElement } from './index-0bbe9693.js';
2
+ import { t as translate, l as localizationStore, s as storageStore, q as storageStoreOnChange } from './localization-04b05867.js';
3
+ import { i as isTextContainsNonLatinChars, c as containsNonLatinChars } from './containsNonLatinChars-2d8810c3.js';
4
+ import { K as extractName, c as stripeStore, q as stripeStorePrefetchLandedCost, t as trackConversionEvent } from './cart-66aecbb3.js';
9
5
  import { c as classes } from './classes-0d95c529.js';
10
- import { l as log } from './VarianceTest-572cecf5.js';
11
- import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
12
6
  import { g as getBorderRadius } from './getBorderRadius-877f6389.js';
7
+ import { z as zonosStore, f as zonosStoreFontFamily } from './zonosStore-b434e436.js';
13
8
  import { R as RemoveIcon$2 } from './RemoveIcon-9dc5dd1a.js';
14
9
  import { i as isDarkColor } from './isDarkColor-9ddd90cc.js';
10
+ import { t as throttle_1 } from './throttle-ce2432ab.js';
11
+ import { i as isCheckoutMobile } from './handleFetch-a844cac1.js';
12
+ import { s as shouldRenderTaxIdInput } from './shouldRenderTaxIdInput-d45ceeb4.js';
13
+ import { l as log } from './VarianceTest-572cecf5.js';
14
+ import { c as countryRequireTaxId, s as shipToTaxIdLabels } from './TaxId-50d72254.js';
15
15
  import { i as inheritAriaAttributes, a as inheritAttributes } from './helpers-2f6955b1.js';
16
-
17
- var debounce = debounce_1,
18
- isObject$1 = isObject_1;
19
-
20
- /** Error message constants. */
21
- var FUNC_ERROR_TEXT = 'Expected a function';
22
-
23
- /**
24
- * Creates a throttled function that only invokes `func` at most once per
25
- * every `wait` milliseconds. The throttled function comes with a `cancel`
26
- * method to cancel delayed `func` invocations and a `flush` method to
27
- * immediately invoke them. Provide `options` to indicate whether `func`
28
- * should be invoked on the leading and/or trailing edge of the `wait`
29
- * timeout. The `func` is invoked with the last arguments provided to the
30
- * throttled function. Subsequent calls to the throttled function return the
31
- * result of the last `func` invocation.
32
- *
33
- * **Note:** If `leading` and `trailing` options are `true`, `func` is
34
- * invoked on the trailing edge of the timeout only if the throttled function
35
- * is invoked more than once during the `wait` timeout.
36
- *
37
- * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred
38
- * until to the next tick, similar to `setTimeout` with a timeout of `0`.
39
- *
40
- * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)
41
- * for details over the differences between `_.throttle` and `_.debounce`.
42
- *
43
- * @static
44
- * @memberOf _
45
- * @since 0.1.0
46
- * @category Function
47
- * @param {Function} func The function to throttle.
48
- * @param {number} [wait=0] The number of milliseconds to throttle invocations to.
49
- * @param {Object} [options={}] The options object.
50
- * @param {boolean} [options.leading=true]
51
- * Specify invoking on the leading edge of the timeout.
52
- * @param {boolean} [options.trailing=true]
53
- * Specify invoking on the trailing edge of the timeout.
54
- * @returns {Function} Returns the new throttled function.
55
- * @example
56
- *
57
- * // Avoid excessively updating the position while scrolling.
58
- * jQuery(window).on('scroll', _.throttle(updatePosition, 100));
59
- *
60
- * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.
61
- * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });
62
- * jQuery(element).on('click', throttled);
63
- *
64
- * // Cancel the trailing throttled invocation.
65
- * jQuery(window).on('popstate', throttled.cancel);
66
- */
67
- function throttle(func, wait, options) {
68
- var leading = true,
69
- trailing = true;
70
-
71
- if (typeof func != 'function') {
72
- throw new TypeError(FUNC_ERROR_TEXT);
73
- }
74
- if (isObject$1(options)) {
75
- leading = 'leading' in options ? !!options.leading : leading;
76
- trailing = 'trailing' in options ? !!options.trailing : trailing;
77
- }
78
- return debounce(func, wait, {
79
- 'leading': leading,
80
- 'maxWait': wait,
81
- 'trailing': trailing
82
- });
83
- }
84
-
85
- var throttle_1 = throttle;
86
-
87
- 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{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";
88
- const ZonosAddressStyle0 = zonosAddressCss;
89
-
90
- const ZonosAddress$1 = class {
91
- constructor(hostRef) {
92
- registerInstance(this, hostRef);
93
- this.invalidCharacters = createEvent(this, "invalidCharacters", 7);
94
- this.taxIdChanged = createEvent(this, "taxIdChanged", 7);
95
- this.storeUnsubscribeList = [];
96
- /**
97
- * Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
98
- */
99
- this.isAutoCompleteAdjusted = false;
100
- /**
101
- * Default address for stripe
102
- */
103
- this.defaultAddress = [];
104
- /**
105
- * Error message for tax id input
106
- */
107
- this.taxIdErrorMessage = '';
108
- this.stripe = window.Zonos.stripe;
109
- /**
110
- * Check if the address is dirty or not to scroll into view. When the component is mounted, if the data is filled with address line 1, it's considered dirty
111
- */
112
- this.isDirtyAddress = false;
113
- /**
114
- * Local address event for stripe address element
115
- */
116
- this.isAddressFilled = false;
117
- /**
118
- * Local checkout session id to check if the address is filled after checkout is loaded
119
- */
120
- this.checkoutSessionId = storageStore.checkoutSessionId;
121
- /**
122
- * Track previous country and postal code to detect changes
123
- */
124
- this.prevCountry = null;
125
- this.prevPostalCode = null;
126
- /**
127
- * Check if the tracking event is sent
128
- */
129
- this.trackingSent = false;
130
- this.prefetchLandedCost = throttle_1(stripeStorePrefetchLandedCost, 1000);
131
- }
132
- getStripeAddressInstance() {
133
- if (this.type === 'billing') {
134
- return {
135
- stripeAddressElement: stripeStore.stripeBillingAddressElement,
136
- stripeAddressEventData: stripeStore.stripeBillingAddressEventData,
137
- stripeElements: stripeStore.stripeElementsForBillingAddress,
138
- };
139
- }
140
- return {
141
- stripeAddressElement: stripeStore.stripeAddressElement,
142
- stripeAddressEventData: stripeStore.stripeAddressEventData,
143
- stripeElements: stripeStore.stripeElements,
144
- };
145
- }
146
- updateAddressEventData({ event, type, }) {
147
- switch (type) {
148
- case 'billing':
149
- stripeStore.stripeBillingAddressEventData = event;
150
- break;
151
- default: {
152
- stripeStore.stripeAddressEventData = event;
153
- break;
154
- }
155
- }
156
- // Only trigger landed cost prefetch for shipping address
157
- if (type === 'shipping') {
158
- // if line 1 has something, trigger prefetch
159
- if (event.value.address.line1.length) {
160
- void this.prefetchLandedCost();
161
- }
162
- }
163
- }
164
- isAddressFilledChanged() {
165
- // Sometimes address elements is loaded with prefilled data before checkout is loaded, need to not send the event if checkout session id is not available, and send the event after checkout is loaded
166
- if (!storageStore.checkoutSessionId) {
167
- return;
168
- }
169
- // Only need to track the event if the shipping address is filled
170
- if (this.isAddressFilled &&
171
- !this.trackingSent &&
172
- this.type === 'shipping') {
173
- this.trackingSent = true;
174
- const checkoutSessionId = storageStore.checkoutSessionId;
175
- void trackConversionEvent({
176
- checkoutSessionId,
177
- eventName: 'checkout_customerInfoFilled',
178
- });
179
- }
180
- }
181
- updateAddressElement({ stripeAddressElement, type, }) {
182
- if (type === 'shipping') {
183
- stripeStore.stripeAddressElement = stripeAddressElement;
184
- return;
185
- }
186
- stripeStore.stripeBillingAddressElement = stripeAddressElement;
187
- }
188
- async watchInitStripe() {
189
- this.stripe = window.Zonos.stripe;
190
- const { stripeAddressEventData, stripeElements } = this.getStripeAddressInstance();
191
- if (!this.stripe || !stripeElements) {
192
- logError("Stripe is not initialized. Couldn't load stripe element.");
193
- return;
194
- }
195
- // remove phone from default address if it's not provided, stripe
196
- // will throw error if key phone exist and its value is empty or 'undefined'.
197
- const defaultAddress = this.defaultAddress.map(address => (Object.assign(Object.assign({}, address), { name: address.name, phone: address.phone || undefined })));
198
- const shippableCountries = localizationStore.shippingZoneCountries;
199
- const shippingZone = shippableCountries
200
- ? Object.values(shippableCountries).map(country => country.code)
201
- : [];
202
- // Show all countries in checkout if the query param is present
203
- const checkoutAllCountries = new URLSearchParams(window.location.search).has('zonosCheckoutAllCountries');
204
- const allowedCountries = this.type === 'shipping' ? shippingZone : [];
205
- const defaultAddressCountry = (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address.country) ||
206
- getFallbackDefaultCountryCode(allowedCountries);
207
- log(`Stripe country code: ${defaultAddressCountry}`, 'info');
208
- const addressElement = stripeElements.create('address', {
209
- allowedCountries: checkoutAllCountries ? [] : allowedCountries,
210
- // only show the default address if stripeAddressEventData is not provided
211
- contacts: defaultAddress.length && !stripeAddressEventData
212
- ? this.defaultAddress
213
- : [],
214
- defaultValues: {
215
- address: Object.assign(Object.assign({}, stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address), { country: defaultAddressCountry }),
216
- firstName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.firstName,
217
- lastName: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.lastName,
218
- phone: stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.phone,
219
- },
220
- display: {
221
- name: 'split',
222
- },
223
- fields: {
224
- phone: 'always',
225
- },
226
- mode: this.type,
227
- validation: {
228
- phone: {
229
- required: 'always',
230
- },
231
- },
232
- });
233
- addressElement.mount(this.el.querySelector('.zonos--address-component'));
234
- // Initialize previous values if address data exists
235
- if (stripeAddressEventData === null || stripeAddressEventData === void 0 ? void 0 : stripeAddressEventData.value.address) {
236
- this.prevCountry = stripeAddressEventData.value.address.country;
237
- this.prevPostalCode = stripeAddressEventData.value.address.postal_code;
238
- }
239
- addressElement.on('change', event => {
240
- const eventValue = event.value;
241
- if (!this.isDirtyAddress && eventValue.address.line1.length >= 3) {
242
- this.isDirtyAddress = true;
243
- if (!this.isAutoCompleteAdjusted) {
244
- const googleAutoComplete = this.el.querySelector('iframe[src*="autocomplete-suggestions"]');
245
- if (googleAutoComplete) {
246
- googleAutoComplete.style.zIndex = '3';
247
- }
248
- this.isAutoCompleteAdjusted = true;
249
- }
250
- // stripe element started with just address line 1, so scroll bar is not yet available. Wait for a moment before scrolling
251
- setTimeout(() => {
252
- // scroll directly into view if it's mobile
253
- if (isCheckoutMobile()) {
254
- this.el.scrollIntoView({ behavior: 'smooth', block: 'end' });
255
- }
256
- else {
257
- // scroll into the end of the page so the address placeholder won't be hidden
258
- const yOffset = this.type === 'shipping' ? 100 : 600;
259
- const parentWrapper = this.el.closest('.zonos--group');
260
- const y = this.el.getBoundingClientRect().top + yOffset;
261
- parentWrapper === null || parentWrapper === void 0 ? void 0 : parentWrapper.scrollTo({ behavior: 'smooth', top: y });
262
- }
263
- }, 600);
264
- }
265
- const { firstName, lastName } = extractName({
266
- firstName: eventValue.firstName,
267
- lastName: eventValue.lastName,
268
- name: eventValue.name,
269
- });
270
- this.updateAddressEventData({
271
- event: Object.assign(Object.assign({}, event), { elementMode: this.type, elementType: 'address', value: Object.assign(Object.assign({}, eventValue), { firstName,
272
- lastName }) }),
273
- type: this.type,
274
- });
275
- });
276
- this.updateAddressElement({
277
- stripeAddressElement: addressElement,
278
- type: this.type,
279
- });
280
- }
281
- defaultAddressChanged(newAddress, oldAddress) {
282
- // check if stringified json of oldAddress is different from newAddress
283
- const oldAddressString = JSON.stringify(oldAddress);
284
- const newAddressString = JSON.stringify(newAddress);
285
- // No need to reset address element if the default address is the same
286
- if (oldAddressString === newAddressString) {
287
- return;
288
- }
289
- log('Reset address element when default address property is changed', 'info', {
290
- defaultAddress: this.defaultAddress,
291
- });
292
- const stripeElement = this.getStripeAddressInstance().stripeAddressElement;
293
- stripeElement === null || stripeElement === void 0 ? void 0 : stripeElement.clear();
294
- stripeElement === null || stripeElement === void 0 ? void 0 : stripeElement.destroy();
295
- // Reset stripe address event data
296
- if (this.type === 'shipping') {
297
- stripeStore.stripeAddressEventData = null;
298
- }
299
- else {
300
- stripeStore.stripeBillingAddressEventData = null;
301
- }
302
- void this.watchInitStripe();
303
- }
304
- isInTaxIdCountry(countryCode) {
305
- return countryRequireTaxId.includes(countryCode);
306
- }
307
- /**
308
- * Render tax id input based on ship to country code
309
- */
310
- renderTaxIdInput() {
311
- var _a;
312
- // No need to render tax id input for billing address
313
- if (this.type === 'billing') {
314
- return null;
315
- }
316
- const countryCode = (_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.value.address.country;
317
- // Don't render tax id input if the country is not provided
318
- if (!countryCode) {
319
- return null;
320
- }
321
- // This just to type guard the countryCode, if it's able to get to this point it should already be in country that has tax id input
322
- if (!this.isInTaxIdCountry(countryCode)) {
323
- return null;
324
- }
325
- const taxIdInputRendered = shouldRenderTaxIdInput({
326
- companyName: stripeStore.companyName,
327
- countryCode,
328
- });
329
- // Don't render tax id input if the country doesn't require tax id
330
- if (!taxIdInputRendered) {
331
- return null;
332
- }
333
- const taxIdInputInfo = shipToTaxIdLabels[countryCode];
334
- return (h("div", { class: "zonos--tax-id-input" }, h("zonos-stripe-input", { inputLabel: translate(taxIdInputInfo.friendlyName), inputPlaceholder: taxIdInputInfo.placeholder, inputValue: stripeStore.taxId || '', isError: !!this.taxIdErrorMessage, onInputChange: (event) => {
335
- stripeStore.taxId = event.detail;
336
- this.taxIdChanged.emit(event.detail);
337
- } }), this.taxIdErrorMessage && (h("zonos-text", { textColor: 'red-600', type: "caption" }, this.taxIdErrorMessage))));
338
- }
339
- renderCompanyNameInput() {
340
- // No need to render company name for billing address (only allow for Collect)
341
- if (this.type === 'billing' && !window.Zonos.isCollect) {
342
- return null;
343
- }
344
- // only render the company input if the setting is enabled or the cart is collect
345
- const isCompanyNameEnabled = zonosStore.checkoutSettings.companyFieldsStatus === 'ENABLED' ||
346
- !!window.Zonos.isCollect;
347
- // No need to render company name for billing address (only allow for Collect)
348
- if (!isCompanyNameEnabled) {
349
- return null;
350
- }
351
- return (h("zonos-stripe-input", { class: "zonos--company-name-input", inputLabel: translate('Company name (optional)'), inputValue: stripeStore.companyName, onInputChange: (event) => {
352
- stripeStore.companyName = event.detail;
353
- } }));
354
- }
355
- disconnectedCallback() {
356
- // destroy the stripe element when this component is removed from the DOM, so that we can re-create the new one with previous value
357
- const stripeElement = this.getStripeAddressInstance().stripeAddressElement;
358
- stripeElement === null || stripeElement === void 0 ? void 0 : stripeElement.destroy();
359
- // unsubscribe from store subscriptions
360
- try {
361
- this.storeUnsubscribeList.forEach(subscription => subscription());
362
- }
363
- catch (_a) { }
364
- }
365
- componentDidLoad() {
366
- const stripeAddressEventData = this.getStripeAddressInstance().stripeAddressEventData;
367
- this.isDirtyAddress =
368
- !!stripeAddressEventData &&
369
- stripeAddressEventData.value.address.line1.length > 0;
370
- // @Watch doesn't get trigger on initial load
371
- void this.watchInitStripe();
372
- this.checkoutSessionId = storageStore.checkoutSessionId;
373
- this.storeUnsubscribeList = [
374
- storageStoreOnChange('checkoutSessionId', () => {
375
- this.checkoutSessionId = storageStore.checkoutSessionId;
376
- }),
377
- stripeStoreOnChange('stripeElements', () => {
378
- if (this.type === 'shipping') {
379
- void this.watchInitStripe();
380
- }
381
- }),
382
- stripeStoreOnChange('stripeElementsForBillingAddress', () => {
383
- if (this.type === 'billing') {
384
- void this.watchInitStripe();
385
- }
386
- }),
387
- ];
388
- }
389
- render() {
390
- var _a;
391
- this.checkoutSessionId = storageStore.checkoutSessionId;
392
- if ((_a = stripeStore.stripeAddressEventData) === null || _a === void 0 ? void 0 : _a.complete) {
393
- this.isAddressFilled = true;
394
- }
395
- // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
396
- return (h(Host, { key: '15928518601e48825589ce4de4580263fec6a745', class: classes([
397
- 'zonos--address',
398
- 'zonos--elements',
399
- `zonos--${this.type}-address`,
400
- ]) }, this.titleText && (h("zonos-text", { key: '2e666ed81597ac95d3de575a2d901d083e9100cc', class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), h("slot", { key: '8ca6987aa7d70093c078e3afca20ac0b1484bd77', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), h("div", { key: '23345f2b61e387c57a363be8df8aa54ab6461a88', class: "zonos--address-component" })));
401
- }
402
- get el() { return getElement(this); }
403
- static get watchers() { return {
404
- "checkoutSessionId": ["isAddressFilledChanged"],
405
- "isAddressFilled": ["isAddressFilledChanged"],
406
- "stripe": ["watchInitStripe"],
407
- "defaultAddress": ["defaultAddressChanged"]
408
- }; }
409
- };
410
- ZonosAddress$1.style = ZonosAddressStyle0;
16
+ import './debounce-c4785346.js';
411
17
 
412
18
  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}";
413
19
  const ZonosAddressDisplayStyle0 = zonosAddressDisplayCss;
@@ -559,9 +165,9 @@ const ZonosAddressSuggestions = class {
559
165
  return segments;
560
166
  }
561
167
  render() {
562
- return (h(Host, { key: '466084b61818244ec8b18aecad34cdf1c3ce07d0', class: "zonos--address-suggestions", role: "group", style: {
168
+ return (h(Host, { key: '7ab44ba24fdcc22c2f3dd06985d1d6e8e3c64cbc', class: "zonos--address-suggestions", role: "group", style: {
563
169
  '--zonos--border-radius': getBorderRadius(),
564
- } }, h("ul", { key: '6d683213f5a4ffe06ba1292234753060a75ddf55', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: '10765017862170072ec33afae156f87c63bab39b', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '8660904e473b17ae5643aacab3d0fba3858c6632', class: "powered-by-container" }, h("zonos-text", { key: 'a310c0e5014e061470eee2c1ce17df59d5cb3cbd', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: 'a156fa8d30df760a3c87d6519a630ee5c7224525', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '634f7ea46f1f210ecd8b11711eb29e100ae95d76', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
170
+ } }, h("ul", { key: 'e23aa07baa70336a9f37752d0de3725580684c88', "aria-label": "Suggestions", class: "wrapper", role: "listbox" }, !!this.localSuggestions.length && (h("li", { key: 'd2208ef720bdff1d57937394266046edd7ef9e3b', "aria-selected": false, class: "powered-by option", role: "option" }, h("div", { key: '4f834a0f3e8fa8c378e824894a51171543b61339', class: "powered-by-container" }, h("zonos-text", { key: '8f92d8f3e4421048881036ba3e43de25e9cfe005', type: "caption" }, "Suggestions powered by"), h("zonos-text", { key: 'efe2dcb973a7fd34a76d107dca1f7a6ac4d7112b', type: "semiBoldLabel" }, "Google")), h("zonos-button", { key: '8f59caa99bec12c4ac4c42e5b4108443f6e90446', "aria-label": "Clear suggestions", icon: h("zonos-icon", { content: RemoveIcon$1 }), noBackground: true, onClick: () => {
565
171
  this.localSuggestions = [];
566
172
  } }))), this.localSuggestions.map(suggestion => (
567
173
  // eslint-disable-next-line jsx-a11y/click-events-have-key-events
@@ -831,14 +437,14 @@ const ZonosCheckbox = class {
831
437
  customRoundRadius: '4px',
832
438
  overrideBorderStyle: this.borderStyle,
833
439
  });
834
- return (h(Host, { key: 'bef392ce775e35da3f0640dcbb8271437995daa7', class: classes(['zonos--elements zonos--checkbox']), style: {
440
+ return (h(Host, { key: 'c2a9023becafd6d19ad769d449383924c85c641f', class: classes(['zonos--elements zonos--checkbox']), style: {
835
441
  '--zonos--background-color': backgroundColor,
836
442
  '--zonos--border-radius': borderStyle,
837
443
  '--zonos--font-family': zonosStoreFontFamily(),
838
444
  '--zonos--size': `${this.size}px`,
839
- } }, h("label", { key: '059e2eabc4825738a6607cd307694b252ba55905', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: 'a35c086ae478d5ac932608859e6b3250738c870f', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
445
+ } }, h("label", { key: '352e8bda93f1ac9a7a55ba7038e922626c3a9594', class: classes([this.isDisabled && 'disabled']), htmlFor: this.inputId }, h("input", { key: '71d664f9d83345ad4c143f71209bdb0a2cb16745', checked: this.isChecked, disabled: this.isDisabled, hidden: true, id: this.inputId, onChange: e => {
840
446
  this.checkboxSelected.emit(e.target.checked);
841
- }, type: "checkbox" }), h("span", { key: '2482799b470a2ef5050709b6de36469ec8321b04', class: "checkmark-container" }, h("svg", { key: '1034db2d054e98fe06688b602346097b3e7c7d9d', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: 'b926b486910470ea3180a904e8ec5ca2cf8e452f', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: '5a31f075fb462c7419597f0d15b5e4a2f4e40148', size: this.fontSize }, this.label)))));
447
+ }, type: "checkbox" }), h("span", { key: 'c772c4e8dbbbef8035874616a0254fb4114a97c8', class: "checkmark-container" }, h("svg", { key: 'd497191975edeca268cc014431535f4befdd7b2c', class: "checkmark", color: checkmarkColor, fill: "none", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" }, h("path", { key: '15b26fdf72a058e81d4472d0c757a725c04e3f47', "clip-rule": "evenodd", d: "M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z", fill: "currentColor", "fill-rule": "evenodd" }))), this.label && (h("zonos-text", { key: '2d6015d16eda08dc39eff677f4858d2aed620891', size: this.fontSize }, this.label)))));
842
448
  }
843
449
  };
844
450
  ZonosCheckbox.style = ZonosCheckboxStyle0;
@@ -1751,10 +1357,10 @@ const ZonosAddress = class {
1751
1357
  this.country = localizationStore.selectedCountryCode;
1752
1358
  }
1753
1359
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
1754
- return (h(Host, { key: 'fed5a2350a7c3f3d83e21d4538c2ab1fc41fb397', class: classes([
1360
+ return (h(Host, { key: 'dc41846f9f8cb0b10e4148ad5523f26186970888', class: classes([
1755
1361
  'zonos--address zonos--elements',
1756
1362
  `zonos--${this.type}-address`,
1757
- ]) }, h("zonos-text", { key: '08a95944a1cc34b50fc7f1c3356e7853a8eb83b0', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: '7275e2aa1fe566e43fb223f68257ec0df9fbf5af', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1363
+ ]) }, h("zonos-text", { key: '38e4bc053824f1f7f6c15bb3ade74b16e0f977e1', class: "zonos--title", type: "semiBoldLabel" }, this.titleText), h("slot", { key: 'e7b702568f26e4cff082ba88a3f68bc9d32d6bd2', name: "below-title" }), this.renderCompanyNameInput(), this.renderTaxIdInput(), this.renderCustomAddressForm()));
1758
1364
  }
1759
1365
  get el() { return getElement(this); }
1760
1366
  static get watchers() { return {
@@ -1864,7 +1470,7 @@ const ZonosDialog = class {
1864
1470
  const borderStyle = getBorderRadius({
1865
1471
  overrideBorderStyle: this.borderStyle,
1866
1472
  });
1867
- return (h(Host, { key: '6e673f681a3111d8e33c8cf4e8ab0c8f27c75d48', class: classes([
1473
+ return (h(Host, { key: '1b53109e3598536674ab0a2cac4c5fa52c2e501d', class: classes([
1868
1474
  'zonos--elements',
1869
1475
  this.open && 'open',
1870
1476
  this.isLoading && 'is-loading',
@@ -1876,225 +1482,15 @@ const ZonosDialog = class {
1876
1482
  '--zonos--height': this.height || 'initial',
1877
1483
  '--zonos--min-height': this.minHeight || '500px',
1878
1484
  '--zonos--width': this.width,
1879
- } }, h("div", { key: 'f245de30fb680fd673bd8531f3982b73ed506308', class: "zonos--backdrop" }), h("div", { key: 'ee75ecd48e28f38be08b5db9078c0b3b28b9bd9f', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: 'ce7d2273f358001b5899ba7a6ea8d5bd91ab55cb', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'e2cd0f877ed4f8b78b549a4aaedf1e67a234b0f7', class: "zonos--loading" }, h("zonos-spinner", { key: 'e0507e5fea599494979287fc4f13a7da08be758b', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '8d6cac393a445febf36cc6fb1811c00223518481', class: "zonos--header" }, this.headerText && (h("h3", { key: 'cb634d14db0a14144a370d66e3d5aa9147914038', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: 'd11ff8473046b201bad444c9b81a0566dd400829', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: '356588fe85cce5298e4c2e862c31dab3018602a5', class: classes([
1485
+ } }, h("div", { key: '3fcaf891d98fad2a7bb0b0eb7285c991a9df7610', class: "zonos--backdrop" }), h("div", { key: '16fe5c3ad017d19c52e85cf18eec31fe3960f61d', class: "zonos--dialog-layout", inert: !this.open, onClick: this.clickOutsideDialogHandler }, h("div", { key: '1fae701967b41b2d96e709078f6958867a7ef1c0', class: "zonos--dialog" }, this.isLoading && (h("div", { key: 'ba0bc9a7bf0f8fd097e874b371fc563ee9fab255', class: "zonos--loading" }, h("zonos-spinner", { key: 'c4599e9093de3e0ee56f094fc9bbe33d474cf966', size: 30 }))), (this.headerText || !this.noCloseButton) && (h("div", { key: '827ff1f3a08f9efe7e1cb10315e62b68ed634087', class: "zonos--header" }, this.headerText && (h("h3", { key: 'd6e000b787d758080aa9283f59a3b577ef9d9bde', class: "zonos--header-text" }, this.headerText)), !this.noCloseButton && (h("zonos-button", { key: '8efcb22ad294f4feab8f1a89e893a4f3d8a48d05', class: "zonos--close-button", icon: h("zonos-icon", { "aria-label": "Close dialog", content: RemoveIcon }), noBackground: true, onClick: this.closeButtonHandler, title: "Close dialog", variant: "subtle" })))), h("div", { key: '2bf643dcdcd2fdffdaccba0169386cd0a5a4ccd6', class: classes([
1880
1486
  'zonos--body',
1881
1487
  this.noBodyPadding && 'zonos--no-body-padding',
1882
- ]) }, h("slot", { key: 'd525f4fab2449a219d42ccb45b4497076b5973c9' })), h("slot", { key: 'febb4e4ab0cb950b3a346052d60fa70ec8346be4', name: "dialog-footer" })))));
1488
+ ]) }, h("slot", { key: '1b8886abbfac00704f004c6ca14d96fdbe87e751' })), h("slot", { key: '85c94e23f5686e4f91af598bffb14e38a09855a4', name: "dialog-footer" })))));
1883
1489
  }
1884
1490
  static get assetsDirs() { return ["assets"]; }
1885
1491
  };
1886
1492
  ZonosDialog.style = ZonosDialogStyle0;
1887
1493
 
1888
- const validateEmailValue = (value) => {
1889
- const emailRegex = /^[a-zA-Z0-9.%_+-]*@[a-zA-Z0-9][a-zA-Z0-9.-]*\.[a-zA-Z0-9]{2,}$/;
1890
- return emailRegex.test(value);
1891
- };
1892
-
1893
- const zonosLinkAuthenticationCss = ".sc-zonos-link-authentication-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:16px}.sc-zonos-link-authentication-h .zonos--input-invalid.sc-zonos-link-authentication{border:2px solid var(--zonos-elements-red-600);border-radius:var(--zonos--border-radius)}";
1894
- const ZonosLinkAuthenticationStyle0 = zonosLinkAuthenticationCss;
1895
-
1896
- const MAX_RETRIES_INITIALIZE_LINK = 51;
1897
- const ZonosLinkAuthentication = class {
1898
- constructor(hostRef) {
1899
- registerInstance(this, hostRef);
1900
- this.linkAuthenticationChange = createEvent(this, "linkAuthenticationChange", 7);
1901
- this.storeUnsubscribeList = [];
1902
- /**
1903
- * Default email for stripe
1904
- */
1905
- this.defaultEmail = null;
1906
- /**
1907
- * Email error text to dispaly
1908
- */
1909
- this.isEmailError = false;
1910
- this.stripe = stripeStore.stripe;
1911
- this.isStagingMode = cartStore.isStagingMode;
1912
- this.clientSecret = stripeStore.clientSecret;
1913
- this.retriesInitializeLink = 0;
1914
- this.setCustomEmailInputToLinkEvent = (emailValue) => {
1915
- // check if the email is valid
1916
- const isValid = validateEmailValue(emailValue);
1917
- const simulateLinkEvent = {
1918
- complete: !!isValid,
1919
- elementType: 'linkAuthentication',
1920
- empty: !emailValue,
1921
- value: {
1922
- email: emailValue,
1923
- },
1924
- };
1925
- stripeStore.stripeLinkEventData = simulateLinkEvent;
1926
- };
1927
- this.handleNormalEmailInput = (event) => {
1928
- var _a;
1929
- const inputValue = event.detail;
1930
- this.setCustomEmailInputToLinkEvent(inputValue);
1931
- (_a = this.linkAuthenticationChange) === null || _a === void 0 ? void 0 : _a.emit();
1932
- };
1933
- }
1934
- watchIsStagingMode() {
1935
- // Wait for the DOM to be ready before re-initializing Link element
1936
- setTimeout(() => {
1937
- void this.watchInitStripe();
1938
- }, 0);
1939
- }
1940
- async watchInitStripe() {
1941
- if (!this.stripe || !stripeStore.stripeElements) {
1942
- return;
1943
- }
1944
- // No need to initialize link if this is staging mode since we will render the email input field
1945
- if (cartStore.isStagingMode || !this.clientSecret) {
1946
- return;
1947
- }
1948
- const defaultValues = this.defaultEmail
1949
- ? {
1950
- email: this.defaultEmail,
1951
- }
1952
- : undefined;
1953
- try {
1954
- // Create and mount the Authentication Element in ${type} mode
1955
- const linkAuthenticationElement = stripeStore.stripeLinkElement ||
1956
- stripeStore.stripeElements.create('linkAuthentication', {
1957
- defaultValues: defaultValues,
1958
- });
1959
- const linkAuthenticationElementContainer = this.el.querySelector('.zonos--link-authentication-component');
1960
- if (!linkAuthenticationElementContainer) {
1961
- logError('Cannot find container element for linkAuthenticationElement');
1962
- return;
1963
- }
1964
- linkAuthenticationElement.mount(linkAuthenticationElementContainer);
1965
- linkAuthenticationElement.on('change', event => {
1966
- var _a;
1967
- stripeStore.stripeLinkEventData = event;
1968
- (_a = this.linkAuthenticationChange) === null || _a === void 0 ? void 0 : _a.emit();
1969
- });
1970
- stripeStore.stripeLinkElement = linkAuthenticationElement;
1971
- this.retriesInitializeLink = 0;
1972
- // 10 seconds
1973
- if (this.retriesInitializeLink > 11) {
1974
- log('Stripe link element initialized', 'info', {
1975
- retriesInitializeLink: this.retriesInitializeLink,
1976
- stripe: this.stripe,
1977
- });
1978
- void sendErrorLog({
1979
- endpoint: 'stripe-link-authentication-init-long-running',
1980
- errors: [
1981
- 'Stripe link element initialized after 20 retries - 10 seconds',
1982
- ],
1983
- metadata: {
1984
- retriesInitializeLink: this.retriesInitializeLink,
1985
- },
1986
- });
1987
- }
1988
- }
1989
- catch (error) {
1990
- if (error instanceof Error) {
1991
- // Wait for the stripe elements to be ready with the new client secret
1992
- this.retriesInitializeLink++;
1993
- if (this.retriesInitializeLink < MAX_RETRIES_INITIALIZE_LINK) {
1994
- await new Promise(resolve => setTimeout(resolve, 500));
1995
- void this.watchInitStripe();
1996
- }
1997
- if (this.retriesInitializeLink === MAX_RETRIES_INITIALIZE_LINK) {
1998
- void sendErrorLog({
1999
- endpoint: 'stripe-link-authentication-init-error',
2000
- errors: [error.message],
2001
- metadata: {
2002
- retriesInitializeLink: this.retriesInitializeLink,
2003
- },
2004
- });
2005
- }
2006
- }
2007
- }
2008
- }
2009
- watchDefaultEmail(newDefaultEmail, oldDefaultEmail) {
2010
- var _a, _b;
2011
- log('Default email is changed', 'info', {
2012
- newDefaultEmail,
2013
- oldDefaultEmail,
2014
- });
2015
- if (oldDefaultEmail === newDefaultEmail) {
2016
- return;
2017
- }
2018
- if (!newDefaultEmail) {
2019
- stripeStore.stripeLinkEventData = null;
2020
- }
2021
- // Only set value for Stripe input input to stripeLinkEventData when checkout is in staging mode
2022
- if (cartStore.isStagingMode) {
2023
- this.setCustomEmailInputToLinkEvent(newDefaultEmail || '');
2024
- return;
2025
- }
2026
- (_a = stripeStore.stripeLinkElement) === null || _a === void 0 ? void 0 : _a.clear();
2027
- (_b = stripeStore.stripeLinkElement) === null || _b === void 0 ? void 0 : _b.destroy();
2028
- stripeStore.stripeLinkElement = null;
2029
- stripeStore.stripeLinkEventData = null;
2030
- log('Reset stripe link element when default email is changed', 'info', {
2031
- defaultEmail: newDefaultEmail,
2032
- });
2033
- void this.watchInitStripe();
2034
- }
2035
- disconnectedCallback() {
2036
- // unsubscribe from store subscriptions
2037
- try {
2038
- this.storeUnsubscribeList.forEach(subscription => subscription());
2039
- }
2040
- catch (_a) { }
2041
- }
2042
- componentDidLoad() {
2043
- this.storeUnsubscribeList = [
2044
- stripeStoreOnChange('stripeElements', async () => {
2045
- void this.watchInitStripe();
2046
- }),
2047
- stripeStoreOnChange('clientSecret', async () => {
2048
- this.clientSecret = stripeStore.clientSecret;
2049
- }),
2050
- stripeStoreOnChange('stripe', async () => {
2051
- this.stripe = stripeStore.stripe;
2052
- }),
2053
- ];
2054
- // @Watch doesn't get trigger on initial load
2055
- void this.watchInitStripe();
2056
- if (!this.defaultEmail) {
2057
- return;
2058
- }
2059
- // set default email value to stripeLinkEventData if default email is provided
2060
- this.setCustomEmailInputToLinkEvent(this.defaultEmail);
2061
- }
2062
- render() {
2063
- this.isStagingMode = cartStore.isStagingMode;
2064
- this.clientSecret = stripeStore.clientSecret;
2065
- const renderEmailAddress = () => {
2066
- var _a;
2067
- if (cartStore.isStagingMode) {
2068
- return (h("zonos-stripe-input", { inputLabel: translate('Email'), inputValue: this.defaultEmail ||
2069
- ((_a = stripeStore.stripeLinkEventData) === null || _a === void 0 ? void 0 : _a.value.email) ||
2070
- '', isError: this.isEmailError, onBlur: () => {
2071
- var _a;
2072
- const emailValue = ((_a = stripeStore.stripeLinkEventData) === null || _a === void 0 ? void 0 : _a.value.email) || '';
2073
- if (!emailValue) {
2074
- return;
2075
- }
2076
- // check if the email is valid
2077
- const isValid = validateEmailValue(emailValue);
2078
- this.isEmailError = !isValid;
2079
- }, onInputChange: this.handleNormalEmailInput }));
2080
- }
2081
- return (h("div", { class: `zonos--link-authentication-component ${this.isEmailError && 'zonos--input-invalid'}` }));
2082
- };
2083
- // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
2084
- return (h(Host, { class: "zonos--link-authentication zonos--elements", style: {
2085
- '--zonos--border-radius': getBorderRadius(),
2086
- } }, this.titleText && (h("zonos-text", { class: "zonos--title", type: "semiBoldLabel" }, this.titleText)), renderEmailAddress(), this.isEmailError && (h("zonos-text", { textColor: "red-600" }, translate('Please enter a valid email address.')))));
2087
- }
2088
- get el() { return getElement(this); }
2089
- static get watchers() { return {
2090
- "isStagingMode": ["watchIsStagingMode"],
2091
- "stripe": ["watchInitStripe"],
2092
- "clientSecret": ["watchInitStripe"],
2093
- "defaultEmail": ["watchDefaultEmail"]
2094
- }; }
2095
- };
2096
- ZonosLinkAuthentication.style = ZonosLinkAuthenticationStyle0;
2097
-
2098
1494
  // This file is a workaround for a bug in web browsers' "native"
2099
1495
  // ES6 importing system which is uncapable of importing "*.json" files.
2100
1496
  // https://github.com/catamphetamine/libphonenumber-js/issues/239
@@ -8119,24 +7515,24 @@ const ZonosStripePhoneInput = class {
8119
7515
  .filter(Boolean)
8120
7516
  .sort((a, b) => a.displayName.localeCompare(b.displayName))
8121
7517
  : [];
8122
- return (h(Host, { key: 'ed5b02d0f617b0611ecba382cf8447570c3cee76', class: classes([
7518
+ return (h(Host, { key: '93c761af05a92758af8d5b76c3c9630a8c45c46a', class: classes([
8123
7519
  'zonos--phone-input zonos--elements',
8124
7520
  isDark && 'dark',
8125
- ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '8644eb1a24b4a2cdf491a8176f70e2fa35389fa6', class: classes([
7521
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '0c814da4f10b83027d2a91429c44aae0b2ae851f', class: classes([
8126
7522
  'zonos--label-wrapper',
8127
7523
  this.disabled && 'disabled',
8128
7524
  this.isFocused && 'focused',
8129
7525
  hasContent && 'has-content',
8130
7526
  this.error && 'has-error',
8131
7527
  this.inputLabel && 'has-label',
8132
- ]) }, h("select", { key: '747109b80d3d02778ded01392d853a050f675114', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
7528
+ ]) }, h("select", { key: 'f18e02540fc979f090ec9e8445a9c24a726bd3c5', class: "zonos--select", disabled: this.disabled, onBlur: this.handleBlur, onChange: this.handleCountryChange, onFocus: this.handleFocus }, countryOptionsList.map(option => {
8133
7529
  var _a;
8134
7530
  return (h("option", { key: option.countryCode, selected: option.countryCode === ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.countryCode), value: option.countryCode }, option.displayName, " (+", option.phoneCode, ")"));
8135
- })), h("div", { key: '399beecaead5791d81ffd1db679f5b235c056769', class: "zonos--input-group" }, h("div", { key: '599a287f610935762e3229577bf35cfaee8ffe7f', class: "zonos--select-wrapper" }, h("div", { key: 'a1402a12ffa599e4dd42523696121d0a1cec60b6', class: "zonos--country-select" }, h("div", { key: 'a798cf4e8f4f5cfef5554404c578076f507d0dd2', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: '6a0313b6cd969a095002b18830fcbbd104e42570', class: "zonos--country-select-selected" }, h("div", { key: 'b6d2403854632f40dfd23d15b1eb8ef5625e1059', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: '60397bbbbc9c6083064de1427cedeb148f36a35d', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: 'effc1b9bc5fa1cd832e686b6e87ccac87e41ffb8', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: '8e5aa3603dc4a869ce7335c2903a15903d5e61d4', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '8b9ea89b5234a345d556d06649add11401baa184', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '21514d3e3f66095b79eb53e47fff6a98fbf12fba', class: classes([
7531
+ })), h("div", { key: 'c0bc6f60fede12a27057b64c699701dc311a3c2b', class: "zonos--input-group" }, h("div", { key: '3329b43c5ff8b267d01dfc6611736f8fda70d30e', class: "zonos--select-wrapper" }, h("div", { key: 'f43b2ba959ef2f7e616b3930df5eba5bf73ab0c6', class: "zonos--country-select" }, h("div", { key: '357bcd7ec8d96df1e115820f26444422ef683a86', class: "zonos--country-select-content" }, this.selectedCountry && (h("div", { key: '050444251b375b60ab7de9cf8220b6270a1e7681', class: "zonos--country-select-selected" }, h("div", { key: '37653be1e802cf065827bde91b46a4a650ab153e', class: "zonos--country-flag-wrapper" }, h("zonos-country-flag", { key: '2d1cde80d3b5a8248a2b824e5cacb438026d3d6f', class: "zonos--country-flag", countryCode: this.selectedCountry.countryCode })), h("div", { key: 'c75d6600d1ba864b7e8e8b3ae60faaa459d7578f', class: "zonos--country-code" }, "+", this.selectedCountry.phoneCode))), h("div", { key: 'da61185205072f591ab0f21e1f09e6ba87f3b49d', class: "zonos--select-chevron-wrapper" }, h("zonos-icon", { key: '6f9fd827cba11e442ec96d9706efb939aa3164e3', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon$1, iconColor: "gray-800" }))))), h("div", { key: '795d59db0eb10fa4ab31b9939a9f0522004c71b1', class: classes([
8136
7532
  'zonos--input-container',
8137
7533
  this.inputLabel && 'has-label',
8138
7534
  hasContent && 'has-content',
8139
- ]) }, h("input", Object.assign({ key: '50421e7a8343203ee623a4e61f957abd115d0495' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (h("div", { key: '5025154c17fc9145b1b2bf2036ec7796287094ea', class: "zonos--floated-label" }, h("label", { key: '9af81cc3320de319ea84637bbb923c4b81a506d1', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: '523df8b2d650663ac43516d8ae9954ffd208c5e8', textColor: "red-600" }, this.error))));
7535
+ ]) }, h("input", Object.assign({ key: '64aa071d2e28691bf12493703b32657c45d9d9ae' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: "zonos--floated-input", disabled: this.disabled, id: this.inputId, onBlur: this.handleBlur, onFocus: this.handleFocus, onInput: this.handlePhoneChange, placeholder: ((_a = this.selectedCountry) === null || _a === void 0 ? void 0 : _a.phonePlaceholder) || '', ref: el => (this.inputRef = el), type: "tel" })), this.inputLabel && (h("div", { key: 'd543673e6cbc526ffcebf6eca0cf8ab2edda644b', class: "zonos--floated-label" }, h("label", { key: '432a710de6b9af0c97bc6c50f57079e12806f62d', htmlFor: this.inputId }, this.inputLabel || translate('Phone number'))))))), this.error && (h("zonos-text", { key: '719f193ea85683b50d1fa7a7855bae22241b0693', textColor: "red-600" }, this.error))));
8140
7536
  }
8141
7537
  get el() { return getElement(this); }
8142
7538
  static get watchers() { return {
@@ -8252,14 +7648,14 @@ const ZonosStripeSelect = class {
8252
7648
  const fontSize = zonosStore.appearance.fontSizeInputValue || 16;
8253
7649
  const hasContent = this.internalValue || this.selectPlaceholder;
8254
7650
  const showClearButton = this.isClearable && this.internalValue && !this.isDisabled;
8255
- return (h(Host, { key: 'e781d691f1f1f72ceed06c488af7f427ed4f82d0', class: classes([
7651
+ return (h(Host, { key: 'c43f75cfc3d57e8d31f7ec06fb66eff71a5c87b9', class: classes([
8256
7652
  'zonos--select zonos--elements',
8257
7653
  isDark && 'dark',
8258
7654
  this.isError && 'has-error',
8259
- ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '4df83fa9bcb12e94e2d4bba3d6f31a4f56006097', class: classes([
7655
+ ]), "data-theme": isDark ? 'DARK' : 'LIGHT', style: Object.assign({ '--zonos--border-radius': getBorderRadius(), '--zonos--font-family': zonosStoreFontFamily(), '--zonos--font-size': `${fontSize}px`, '--zonos--primary-color': secondaryColor }, (this.minWidth ? { '--zonos--min-width': this.minWidth } : {})) }, h("div", { key: '818e99e207482930dcccc26e55fcda5a283e366f', class: classes([
8260
7656
  'zonos--label-wrapper',
8261
7657
  this.isDisabled && 'disabled',
8262
- ]) }, h("select", Object.assign({ key: '31daa88fdaeb8a35055b97ade6aa10bbd234568a' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
7658
+ ]) }, h("select", Object.assign({ key: 'c67ba73746f8cfd05801033a6620b25c82b86069' }, this.inheritedAttributes, { autoComplete: this.autoComplete, class: classes([
8263
7659
  'zonos--floated-select',
8264
7660
  !!this.selectLabel && 'has-label',
8265
7661
  hasContent && 'has-content',
@@ -8269,9 +7665,9 @@ const ZonosStripeSelect = class {
8269
7665
  this.selectChange.emit(select.value);
8270
7666
  this.selectedValue = select.value;
8271
7667
  this.el.dispatchEvent(new Event('change'));
8272
- }, required: this.required }), h("option", { key: '4c5c09493d0e9d38bc56860682c092017dc927ff', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
7668
+ }, required: this.required }), h("option", { key: 'f7969953300914c34ad3d76c69586e30e12c3117', disabled: true, selected: !this.internalValue, value: "" }, this.selectPlaceholder || translate('Select')), this.internalOptions.map(option => (h("option", { key: option.value, selected: this.internalValue === option.value ||
8273
7669
  // Sometimes google returns the label not the code for some countries
8274
- this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: 'abe6ea181a207b8b85232226078c92ab1a8b6618', class: "zonos--floated-label" }, h("label", { key: 'c079f2f21289e5ba06906fd7e29b3c8216c6ae01', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: '3cad61609828a9b38a4a38625629481c9fb5411e', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: 'f24323bdbd652cff52bec827f3a93a2e343e35c4', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: 'e8fe204b510477855de4dfee29d1200f30c50933', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: 'f071765d705d67b741f9381bbe96e2e8beb0968d', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: '7425ced4032df77a7f1219f9c03caedcd1a55841', textColor: "red-600" }, this.error))));
7670
+ this.internalValue === option.label, value: option.value }, option.label)))), h("div", { key: 'c093e68c826469ec22e69f154d5edfb342047d94', class: "zonos--floated-label" }, h("label", { key: 'b04836cba30a354efaf1a367cd7f5c629bc5ddc2', htmlFor: this.selectId }, this.selectLabel)), h("div", { key: '0a1bf1ce6b64f3a0c37495d8ad716078bceb757b', class: "zonos--actions-wrapper" }, showClearButton && (h("button", { key: '3e690372f4df9d21754a2903819b17186d26654f', "aria-label": "Clear selection", class: "zonos--clear-button", onClick: this.handleClear, tabIndex: 0, type: "button" }, h("zonos-icon", { key: '9f761f5e9b416356ec7c4681d144adcf01fb8149', class: "zonos--clear-icon", content: RemoveLineIcon, iconColor: "gray-1200" }))), h("zonos-icon", { key: 'f5594d827dcb7f9812df7479bb8d199e2fcc4a1a', "aria-label": "Expand collapsed section", class: "zonos--select-chevron", content: ChevronDownIcon, iconColor: "gray-800" }))), this.error && (h("zonos-text", { key: '79dce6ac5a8183ad68eaf1a6e60b15864df65d25', textColor: "red-600" }, this.error))));
8275
7671
  }
8276
7672
  get el() { return getElement(this); }
8277
7673
  static get watchers() { return {
@@ -8282,4 +7678,4 @@ const ZonosStripeSelect = class {
8282
7678
  };
8283
7679
  ZonosStripeSelect.style = ZonosStripeSelectStyle0;
8284
7680
 
8285
- export { ZonosAddress$1 as zonos_address, ZonosAddressDisplay as zonos_address_display, ZonosAddressForm as zonos_address_form, ZonosAddressSuggestions as zonos_address_suggestions, ZonosAddressUpdateDialog as zonos_address_update_dialog, ZonosCheckbox as zonos_checkbox, ZonosAddress as zonos_custom_address, ZonosDialog as zonos_dialog, ZonosLinkAuthentication as zonos_link_authentication, ZonosStripePhoneInput as zonos_stripe_phone_input, ZonosStripeSelect as zonos_stripe_select };
7681
+ export { ZonosAddressDisplay as zonos_address_display, ZonosAddressForm as zonos_address_form, ZonosAddressSuggestions as zonos_address_suggestions, ZonosAddressUpdateDialog as zonos_address_update_dialog, ZonosCheckbox as zonos_checkbox, ZonosAddress as zonos_custom_address, ZonosDialog as zonos_dialog, ZonosStripePhoneInput as zonos_stripe_phone_input, ZonosStripeSelect as zonos_stripe_select };