@zonos/elements 1.5.0 → 1.5.1

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 (388) hide show
  1. package/dist/cjs/{TaxId-Q6aDqqWv.js → TaxId-ChhNwG04.js} +36 -0
  2. package/dist/cjs/{cart-B6Aty-21.js → cart-CiXlehwQ.js} +88 -52
  3. package/dist/cjs/{collect-DnrvaXUI.js → collect-Drr8fY-q.js} +3 -3
  4. package/dist/cjs/{debounce-Cd2emZPn.js → debounce-BhgA8_3W.js} +2 -2
  5. package/dist/cjs/{debounce-vY0QYT6o.js → debounce-DRPMxNew.js} +1 -1
  6. package/dist/cjs/{getBorderRadius-CyYZw4qq.js → getBorderRadius-CJ_95w3o.js} +1 -1
  7. package/dist/cjs/{getMissingRequiredShippingFields-D03ICqss.js → getMissingRequiredShippingFields-DI6qF1z3.js} +1 -1
  8. package/dist/cjs/{hasInclusivePrice-CPCoVeU3.js → hasInclusivePrice-84KS94yH.js} +1 -1
  9. package/dist/cjs/index.cjs.js +19 -8
  10. package/dist/cjs/{invoice-Cj8W7NW0.js → invoice-5hVfSXpb.js} +3 -3
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/cjs/{localization-BzNeXeDe.js → localization-B2mjW0Xa.js} +701 -41
  13. package/dist/cjs/{paypal-CuKshRmZ.js → paypal-pd8Nz_R_.js} +4 -4
  14. package/dist/cjs/{placeTestOrder-7czjwkjm.js → placeTestOrder-DrI8rD9o.js} +2 -2
  15. package/dist/cjs/{renderCheckoutCurrency-BH8t2b2x.js → renderCheckoutCurrency-u5q8YdUb.js} +2 -2
  16. package/dist/cjs/shouldRenderShortAddressCodeInput-gpu_bMfp.js +21 -0
  17. package/dist/cjs/{shouldShowLanguageSelect-yAbtCmd8.js → shouldShowLanguageSelect-gBg4KeTQ.js} +1 -1
  18. package/dist/cjs/{submitGtag-D79e8u6s.js → submitGtag-Rc-S3PnH.js} +1 -1
  19. package/dist/cjs/{throttle-zSVRQLC0.js → taxIdFields-BrIaPTcd.js} +57 -2
  20. package/dist/cjs/taxIdRules-BBj8kQxJ.js +58 -0
  21. package/dist/cjs/{updateCheckoutSessionAttributes-jMtfOL2m.js → updateCheckoutSessionAttributes-d0IKpwW8.js} +1 -1
  22. package/dist/cjs/zonos-address-completion-dialog_7.cjs.entry.js +25 -30
  23. package/dist/cjs/zonos-address-display_2.cjs.entry.js +3 -3
  24. package/dist/cjs/zonos-address_4.cjs.entry.js +27 -30
  25. package/dist/cjs/zonos-airwallex-payment.cjs.entry.js +7 -6
  26. package/dist/cjs/zonos-badge.cjs.entry.js +1 -1
  27. package/dist/cjs/zonos-banner.cjs.entry.js +1 -1
  28. package/dist/cjs/zonos-button_3.cjs.entry.js +2 -2
  29. package/dist/cjs/zonos-card_5.cjs.entry.js +8 -7
  30. package/dist/cjs/zonos-cart-items_12.cjs.entry.js +83 -78
  31. package/dist/cjs/zonos-checkbox_2.cjs.entry.js +2 -2
  32. package/dist/cjs/zonos-checkout.cjs.entry.js +11 -10
  33. package/dist/cjs/zonos-collapse.cjs.entry.js +1 -1
  34. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +6 -5
  35. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +12 -11
  36. package/dist/cjs/zonos-collect.cjs.entry.js +9 -8
  37. package/dist/cjs/zonos-controller.cjs.entry.js +7 -6
  38. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -2
  39. package/dist/cjs/zonos-country-select_4.cjs.entry.js +3 -3
  40. package/dist/cjs/zonos-elements.cjs.js +1 -1
  41. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  42. package/dist/cjs/zonos-hello.cjs.entry.js +4 -4
  43. package/dist/cjs/zonos-input.cjs.entry.js +2 -2
  44. package/dist/cjs/zonos-invoice-cart-items_2.cjs.entry.js +8 -7
  45. package/dist/cjs/zonos-invoice-finish_5.cjs.entry.js +12 -11
  46. package/dist/cjs/zonos-invoice.cjs.entry.js +9 -8
  47. package/dist/cjs/zonos-language-select_2.cjs.entry.js +2 -2
  48. package/dist/cjs/zonos-logo.cjs.entry.js +1 -1
  49. package/dist/cjs/zonos-policy-consent_2.cjs.entry.js +7 -6
  50. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +2 -2
  51. package/dist/cjs/zonos-stripe-input.cjs.entry.js +2 -2
  52. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  53. package/dist/cjs/zonos-v-stack.cjs.entry.js +1 -1
  54. package/dist/cjs/{zonosStore-Bx9jK82G.js → zonosStore-CDV83QyK.js} +2 -0
  55. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +12 -4
  56. package/dist/collection/components/store/checkout/stripe.js +10 -12
  57. package/dist/collection/components/store/translationStore/strings.arabic.js +35 -2
  58. package/dist/collection/components/store/translationStore/strings.base.js +35 -2
  59. package/dist/collection/components/store/translationStore/strings.chinese.js +35 -2
  60. package/dist/collection/components/store/translationStore/strings.danish.js +35 -2
  61. package/dist/collection/components/store/translationStore/strings.dutch.js +35 -2
  62. package/dist/collection/components/store/translationStore/strings.french.js +35 -2
  63. package/dist/collection/components/store/translationStore/strings.german.js +35 -2
  64. package/dist/collection/components/store/translationStore/strings.hebrew.js +35 -2
  65. package/dist/collection/components/store/translationStore/strings.indonesian.js +35 -2
  66. package/dist/collection/components/store/translationStore/strings.italian.js +35 -2
  67. package/dist/collection/components/store/translationStore/strings.japanese.js +35 -2
  68. package/dist/collection/components/store/translationStore/strings.korean.js +35 -2
  69. package/dist/collection/components/store/translationStore/strings.norwegian.js +35 -2
  70. package/dist/collection/components/store/translationStore/strings.polish.js +35 -2
  71. package/dist/collection/components/store/translationStore/strings.portuguese.js +35 -2
  72. package/dist/collection/components/store/translationStore/strings.russian.js +35 -2
  73. package/dist/collection/components/store/translationStore/strings.spanish.js +35 -2
  74. package/dist/collection/components/store/translationStore/strings.swedish.js +35 -2
  75. package/dist/collection/components/store/translationStore/strings.turkish.js +35 -2
  76. package/dist/collection/components/store/translationStore/strings.vietnamese.js +35 -2
  77. package/dist/collection/components/store/zonosStore.js +2 -1
  78. package/dist/collection/components/stripe/zonos-address/zonos-address.css +5 -0
  79. package/dist/collection/components/stripe/zonos-address/zonos-address.js +37 -22
  80. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.css +5 -0
  81. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +34 -21
  82. package/dist/collection/components/utils/api/prepCalculateLandedCost.js +24 -35
  83. package/dist/collection/components/utils/checkout/getCheckoutTaxIdPayload.js +16 -0
  84. package/dist/collection/components/utils/checkout/getTaxIdFieldState.js +26 -0
  85. package/dist/collection/components/utils/checkout/resolveTaxIdSelection.js +23 -0
  86. package/dist/collection/components/utils/checkout/shouldRenderTaxIdInput.js +7 -11
  87. package/dist/collection/components/utils/checkout/taxIdFields.js +29 -0
  88. package/dist/collection/components/utils/taxId/taxIdRules.js +44 -0
  89. package/dist/collection/components/utils/taxIdValidationResult.js +57 -58
  90. package/dist/collection/index.js +1 -0
  91. package/dist/collection/types/checkout/TaxId.js +31 -0
  92. package/dist/esm/{TaxId-Cye-evFK.js → TaxId-DMIgN_sT.js} +32 -1
  93. package/dist/esm/{cart-BoQp8Ema.js → cart-DmJkjiDE.js} +88 -53
  94. package/dist/esm/{collect-Eo4gtyql.js → collect-BV5GTPmh.js} +3 -3
  95. package/dist/esm/{debounce-BR3PaG8X.js → debounce-DHj2iHA1.js} +1 -1
  96. package/dist/esm/{debounce-CrmpwbEE.js → debounce-DWqMT4lo.js} +2 -2
  97. package/dist/esm/{getBorderRadius-DYfkeXdx.js → getBorderRadius-BiGd45jw.js} +1 -1
  98. package/dist/esm/{getMissingRequiredShippingFields-Ks6_tpjn.js → getMissingRequiredShippingFields-DljgpDZe.js} +1 -1
  99. package/dist/esm/{hasInclusivePrice-CbEfIhI5.js → hasInclusivePrice-DhGXpH2D.js} +1 -1
  100. package/dist/esm/index.js +9 -8
  101. package/dist/esm/{invoice-S1KahJ_Z.js → invoice-CO-iqlni.js} +3 -3
  102. package/dist/esm/loader.js +1 -1
  103. package/dist/esm/{localization-BIh-4pc_.js → localization-DHM91diu.js} +701 -41
  104. package/dist/esm/{paypal-DNfvnuUU.js → paypal-BfW5aLJw.js} +4 -4
  105. package/dist/esm/{placeTestOrder-CQaMKFOg.js → placeTestOrder-CyWUFhxD.js} +2 -2
  106. package/dist/esm/{renderCheckoutCurrency-C2Tw73uR.js → renderCheckoutCurrency-B31ZNkUv.js} +2 -2
  107. package/dist/esm/shouldRenderShortAddressCodeInput-Bc8k2vN0.js +19 -0
  108. package/dist/esm/{shouldShowLanguageSelect-CCD7gpSY.js → shouldShowLanguageSelect-DwSfSHar.js} +1 -1
  109. package/dist/esm/{submitGtag-df9AQ2zL.js → submitGtag-BEFrutel.js} +1 -1
  110. package/dist/esm/taxIdFields-ByEYfsO5.js +139 -0
  111. package/dist/esm/taxIdRules-xYlx7ZXW.js +47 -0
  112. package/dist/esm/{updateCheckoutSessionAttributes-4Jq6V4pO.js → updateCheckoutSessionAttributes-B0bQH0uw.js} +1 -1
  113. package/dist/esm/zonos-address-completion-dialog_7.entry.js +23 -28
  114. package/dist/esm/zonos-address-display_2.entry.js +3 -3
  115. package/dist/esm/zonos-address_4.entry.js +25 -28
  116. package/dist/esm/zonos-airwallex-payment.entry.js +7 -6
  117. package/dist/esm/zonos-badge.entry.js +1 -1
  118. package/dist/esm/zonos-banner.entry.js +1 -1
  119. package/dist/esm/zonos-button_3.entry.js +2 -2
  120. package/dist/esm/zonos-card_5.entry.js +8 -7
  121. package/dist/esm/zonos-cart-items_12.entry.js +82 -77
  122. package/dist/esm/zonos-checkbox_2.entry.js +2 -2
  123. package/dist/esm/zonos-checkout.entry.js +11 -10
  124. package/dist/esm/zonos-collapse.entry.js +1 -1
  125. package/dist/esm/zonos-collect-cart-items_3.entry.js +6 -5
  126. package/dist/esm/zonos-collect-finish_6.entry.js +12 -11
  127. package/dist/esm/zonos-collect.entry.js +9 -8
  128. package/dist/esm/zonos-controller.entry.js +7 -6
  129. package/dist/esm/zonos-country-flag.entry.js +2 -2
  130. package/dist/esm/zonos-country-select_4.entry.js +3 -3
  131. package/dist/esm/zonos-elements.js +1 -1
  132. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  133. package/dist/esm/zonos-hello.entry.js +4 -4
  134. package/dist/esm/zonos-input.entry.js +2 -2
  135. package/dist/esm/zonos-invoice-cart-items_2.entry.js +8 -7
  136. package/dist/esm/zonos-invoice-finish_5.entry.js +12 -11
  137. package/dist/esm/zonos-invoice.entry.js +9 -8
  138. package/dist/esm/zonos-language-select_2.entry.js +2 -2
  139. package/dist/esm/zonos-logo.entry.js +1 -1
  140. package/dist/esm/zonos-policy-consent_2.entry.js +7 -6
  141. package/dist/esm/zonos-shipping-rich-radio.entry.js +2 -2
  142. package/dist/esm/zonos-stripe-input.entry.js +2 -2
  143. package/dist/esm/zonos-text.entry.js +1 -1
  144. package/dist/esm/zonos-v-stack.entry.js +1 -1
  145. package/dist/esm/{zonosStore-msUlqmSD.js → zonosStore-BXP9FvIt.js} +2 -1
  146. package/dist/esm-es5/{TaxId-Cye-evFK.js → TaxId-DMIgN_sT.js} +2 -1
  147. package/dist/esm-es5/{cart-BoQp8Ema.js → cart-DmJkjiDE.js} +64 -53
  148. package/dist/esm-es5/{collect-Eo4gtyql.js → collect-BV5GTPmh.js} +1 -1
  149. package/dist/esm-es5/{debounce-BR3PaG8X.js → debounce-DHj2iHA1.js} +7 -7
  150. package/dist/esm-es5/debounce-DWqMT4lo.js +1 -0
  151. package/dist/esm-es5/getBorderRadius-BiGd45jw.js +8 -0
  152. package/dist/esm-es5/{getMissingRequiredShippingFields-Ks6_tpjn.js → getMissingRequiredShippingFields-DljgpDZe.js} +3 -3
  153. package/dist/esm-es5/{hasInclusivePrice-CbEfIhI5.js → hasInclusivePrice-DhGXpH2D.js} +1 -1
  154. package/dist/esm-es5/index.js +11 -11
  155. package/dist/esm-es5/{invoice-S1KahJ_Z.js → invoice-CO-iqlni.js} +1 -1
  156. package/dist/esm-es5/loader.js +1 -1
  157. package/dist/esm-es5/localization-DHM91diu.js +348 -0
  158. package/dist/esm-es5/{paypal-DNfvnuUU.js → paypal-BfW5aLJw.js} +1 -1
  159. package/dist/esm-es5/{placeTestOrder-CQaMKFOg.js → placeTestOrder-CyWUFhxD.js} +1 -1
  160. package/dist/esm-es5/{renderCheckoutCurrency-C2Tw73uR.js → renderCheckoutCurrency-B31ZNkUv.js} +2 -2
  161. package/dist/esm-es5/shouldRenderShortAddressCodeInput-Bc8k2vN0.js +8 -0
  162. package/dist/esm-es5/{shouldShowLanguageSelect-CCD7gpSY.js → shouldShowLanguageSelect-DwSfSHar.js} +1 -1
  163. package/dist/esm-es5/{submitGtag-df9AQ2zL.js → submitGtag-BEFrutel.js} +1 -1
  164. package/dist/esm-es5/taxIdFields-ByEYfsO5.js +46 -0
  165. package/dist/esm-es5/taxIdRules-xYlx7ZXW.js +6 -0
  166. package/dist/esm-es5/{updateCheckoutSessionAttributes-4Jq6V4pO.js → updateCheckoutSessionAttributes-B0bQH0uw.js} +1 -1
  167. package/dist/esm-es5/zonos-address-completion-dialog_7.entry.js +253 -254
  168. package/dist/esm-es5/zonos-address-display_2.entry.js +1 -1
  169. package/dist/esm-es5/zonos-address_4.entry.js +8 -9
  170. package/dist/esm-es5/zonos-airwallex-payment.entry.js +1 -1
  171. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  172. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  173. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  174. package/dist/esm-es5/zonos-card_5.entry.js +1 -1
  175. package/dist/esm-es5/zonos-cart-items_12.entry.js +19 -18
  176. package/dist/esm-es5/zonos-checkbox_2.entry.js +1 -1
  177. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  178. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  179. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -1
  180. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -1
  181. package/dist/esm-es5/zonos-collect.entry.js +1 -1
  182. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  183. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  184. package/dist/esm-es5/zonos-country-select_4.entry.js +2 -2
  185. package/dist/esm-es5/zonos-elements.js +1 -1
  186. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  187. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  188. package/dist/esm-es5/zonos-input.entry.js +1 -1
  189. package/dist/esm-es5/zonos-invoice-cart-items_2.entry.js +2 -2
  190. package/dist/esm-es5/zonos-invoice-finish_5.entry.js +1 -1
  191. package/dist/esm-es5/zonos-invoice.entry.js +1 -1
  192. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  193. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  194. package/dist/esm-es5/zonos-policy-consent_2.entry.js +1 -1
  195. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  196. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  197. package/dist/esm-es5/zonos-text.entry.js +1 -1
  198. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  199. package/dist/esm-es5/{zonosStore-msUlqmSD.js → zonosStore-BXP9FvIt.js} +1 -1
  200. package/dist/scripts/index.d.ts +97 -1
  201. package/dist/scripts/index.js +1 -1
  202. package/dist/scripts/loadZonos.js +1 -1
  203. package/dist/scripts/zonos.js +1 -1
  204. package/dist/types/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.d.ts +4 -0
  205. package/dist/types/components/store/checkout/stripe.d.ts +9 -0
  206. package/dist/types/components/store/translationStore/strings.arabic.d.ts +34 -1
  207. package/dist/types/components/store/translationStore/strings.base.d.ts +34 -1
  208. package/dist/types/components/store/translationStore/strings.chinese.d.ts +34 -1
  209. package/dist/types/components/store/translationStore/strings.danish.d.ts +34 -1
  210. package/dist/types/components/store/translationStore/strings.dutch.d.ts +34 -1
  211. package/dist/types/components/store/translationStore/strings.french.d.ts +34 -1
  212. package/dist/types/components/store/translationStore/strings.german.d.ts +34 -1
  213. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +34 -1
  214. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +34 -1
  215. package/dist/types/components/store/translationStore/strings.italian.d.ts +34 -1
  216. package/dist/types/components/store/translationStore/strings.japanese.d.ts +34 -1
  217. package/dist/types/components/store/translationStore/strings.korean.d.ts +34 -1
  218. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +34 -1
  219. package/dist/types/components/store/translationStore/strings.polish.d.ts +34 -1
  220. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +34 -1
  221. package/dist/types/components/store/translationStore/strings.russian.d.ts +34 -1
  222. package/dist/types/components/store/translationStore/strings.spanish.d.ts +34 -1
  223. package/dist/types/components/store/translationStore/strings.swedish.d.ts +34 -1
  224. package/dist/types/components/store/translationStore/strings.turkish.d.ts +34 -1
  225. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +34 -1
  226. package/dist/types/components/store/zonosStore.d.ts +2 -1
  227. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +4 -1
  228. package/dist/types/components/stripe/zonos-custom-address/zonos-custom-address.d.ts +4 -1
  229. package/dist/types/components/utils/checkout/getCheckoutTaxIdPayload.d.ts +6 -0
  230. package/dist/types/components/utils/checkout/getTaxIdFieldState.d.ts +18 -0
  231. package/dist/types/components/utils/checkout/resolveTaxIdSelection.d.ts +12 -0
  232. package/dist/types/components/utils/checkout/shouldRenderTaxIdInput.d.ts +2 -1
  233. package/dist/types/components/utils/checkout/taxIdFields.d.ts +11 -0
  234. package/dist/types/components/utils/taxId/taxIdRules.d.ts +37 -0
  235. package/dist/types/components/utils/taxIdValidationResult.d.ts +8 -2
  236. package/dist/types/components.d.ts +22 -0
  237. package/dist/types/index.d.ts +1 -0
  238. package/dist/types/types/checkout/TaxId.d.ts +45 -0
  239. package/dist/types/types/checkout/api/CalculateLandedCost.d.ts +11 -0
  240. package/dist/types/types/checkout/api/CreateParty.d.ts +2 -0
  241. package/dist/types/types/utils/ZonosSettings.d.ts +5 -0
  242. package/dist/zonos-elements/index.esm.js +1 -1
  243. package/dist/zonos-elements/{p-7bd99479.system.entry.js → p-064d8829.system.entry.js} +26 -26
  244. package/dist/zonos-elements/p-107f287b.entry.js +1 -0
  245. package/dist/zonos-elements/{p-51400242.system.entry.js → p-1199baef.system.entry.js} +3 -3
  246. package/dist/zonos-elements/p-12b24ebb.entry.js +1 -0
  247. package/dist/zonos-elements/{p-9c33f7ed.system.entry.js → p-189cc594.system.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-d3d0656a.entry.js → p-1a5acbcd.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-11defdca.system.entry.js → p-1cc42a98.system.entry.js} +18 -18
  250. package/dist/zonos-elements/p-1e6db427.entry.js +1 -0
  251. package/dist/zonos-elements/{p-d82fd8a9.system.entry.js → p-1fda4aec.system.entry.js} +116 -115
  252. package/dist/zonos-elements/{p-756d303f.system.entry.js → p-20eb00de.system.entry.js} +1 -1
  253. package/dist/zonos-elements/{p-5967a1c1.system.entry.js → p-216a908d.system.entry.js} +5 -5
  254. package/dist/zonos-elements/p-25eb99d4.entry.js +1 -0
  255. package/dist/zonos-elements/{p-23352709.system.entry.js → p-2b63865a.system.entry.js} +4 -4
  256. package/dist/zonos-elements/{p-6db7c0b1.system.entry.js → p-2ca826b9.system.entry.js} +2 -2
  257. package/dist/zonos-elements/{p-6c41b00c.entry.js → p-2d513aa3.entry.js} +1 -1
  258. package/dist/zonos-elements/{p-c961caaf.entry.js → p-3e705c9b.entry.js} +1 -1
  259. package/dist/zonos-elements/{p-acd50b0b.entry.js → p-4612facd.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-5b80aff2.system.entry.js → p-46a839d2.system.entry.js} +24 -24
  261. package/dist/zonos-elements/p-46b9f0cf.entry.js +1 -0
  262. package/dist/zonos-elements/{p-244e0302.system.entry.js → p-4715045c.system.entry.js} +1 -1
  263. package/dist/zonos-elements/{p-d168023b.entry.js → p-4917b74d.entry.js} +1 -1
  264. package/dist/zonos-elements/{p-0b81f8b9.system.entry.js → p-53eac12f.system.entry.js} +14 -14
  265. package/dist/zonos-elements/{p-17c7ea4a.system.entry.js → p-55813e9f.system.entry.js} +3 -3
  266. package/dist/zonos-elements/{p-06030d3b.system.entry.js → p-5585db86.system.entry.js} +45 -45
  267. package/dist/zonos-elements/p-59fc32af.entry.js +1 -0
  268. package/dist/zonos-elements/{p-193d9722.entry.js → p-61312d5b.entry.js} +1 -1
  269. package/dist/zonos-elements/p-636b71d4.entry.js +1 -0
  270. package/dist/zonos-elements/{p-155ed3d3.system.entry.js → p-6410fa11.system.entry.js} +24 -24
  271. package/dist/zonos-elements/{p-0fca452b.entry.js → p-65817880.entry.js} +1 -1
  272. package/dist/zonos-elements/p-678b9214.entry.js +1 -0
  273. package/dist/zonos-elements/p-6e691736.entry.js +1 -0
  274. package/dist/zonos-elements/p-6vSUiBfr.system.js +348 -0
  275. package/dist/zonos-elements/p-74659d88.entry.js +1 -0
  276. package/dist/zonos-elements/p-7dc7f328.entry.js +1 -0
  277. package/dist/zonos-elements/{p-55916c90.entry.js → p-7f1bea9b.entry.js} +1 -1
  278. package/dist/zonos-elements/{p-1c150f26.entry.js → p-821e413a.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-c403f004.system.entry.js → p-82e45d0c.system.entry.js} +1 -1
  280. package/dist/zonos-elements/p-84e76348.entry.js +1 -0
  281. package/dist/zonos-elements/{p-1409de3b.system.entry.js → p-88e20e99.system.entry.js} +1 -1
  282. package/dist/zonos-elements/{p-195f6e38.system.entry.js → p-89a3c4db.system.entry.js} +1 -1
  283. package/dist/zonos-elements/{p-4679f0ec.entry.js → p-8f9d8795.entry.js} +1 -1
  284. package/dist/zonos-elements/p-8fa6cfff.entry.js +1 -0
  285. package/dist/zonos-elements/{p-92fe9a1f.system.entry.js → p-902cca23.system.entry.js} +1 -1
  286. package/dist/zonos-elements/{p-0a4a7742.system.entry.js → p-93860183.system.entry.js} +1 -1
  287. package/dist/zonos-elements/{p-69c3e367.system.entry.js → p-941a95a1.system.entry.js} +10 -10
  288. package/dist/zonos-elements/{p-b5882fbb.system.entry.js → p-9449b4f4.system.entry.js} +1 -1
  289. package/dist/zonos-elements/{p-6abec43f.system.entry.js → p-960070d0.system.entry.js} +3 -3
  290. package/dist/zonos-elements/{p-1bac5ac1.system.entry.js → p-990fcf81.system.entry.js} +1 -1
  291. package/dist/zonos-elements/p-BD-9rD53.js +1 -0
  292. package/dist/zonos-elements/p-BMPYH-LT.js +1 -0
  293. package/dist/zonos-elements/{p-DI2vXnXc.system.js → p-BrQ8n8NS.system.js} +3 -3
  294. package/dist/zonos-elements/p-Bu9WCfUC.system.js +2 -2
  295. package/dist/zonos-elements/{p-CUaf1cEg.js → p-C70h5mKA.js} +1 -1
  296. package/dist/zonos-elements/{p-B4Ufchqh.system.js → p-C9XLkmmb.system.js} +3 -3
  297. package/dist/zonos-elements/{p-CZD8WvyY.system.js → p-CBUz18kA.system.js} +1 -1
  298. package/dist/zonos-elements/{p-kaOxUR9u.system.js → p-CGNVm52g.system.js} +6 -6
  299. package/dist/zonos-elements/p-CHKKvuiz.js +1 -0
  300. package/dist/zonos-elements/{p-0mGRBGcf.js → p-CMo3ZweU.js} +1 -1
  301. package/dist/zonos-elements/p-CTiqplrr.js +1 -0
  302. package/dist/zonos-elements/p-CYxMfUL7.system.js +1 -0
  303. package/dist/zonos-elements/{p-D4MevhAL.system.js → p-CbhN65lj.system.js} +3 -3
  304. package/dist/zonos-elements/p-Ch1w0Lr7.js +1 -0
  305. package/dist/zonos-elements/{p-W82paT5F.js → p-CqB9AfBf.js} +1 -1
  306. package/dist/zonos-elements/p-CzKlS3E-.system.js +6 -0
  307. package/dist/zonos-elements/p-D1SmY_fZ.js +1 -0
  308. package/dist/zonos-elements/{p-sz4L-ZnB.js → p-D1e9zNDA.js} +1 -1
  309. package/dist/zonos-elements/{p-c9QtIdJX.js → p-D6xXnsM_.js} +1 -1
  310. package/dist/zonos-elements/{p-8PPEbm_0.system.js → p-DIab60nK.system.js} +12 -12
  311. package/dist/zonos-elements/{p-Cye-evFK.js → p-DMIgN_sT.js} +1 -1
  312. package/dist/zonos-elements/{p-CXxvn4GX.system.js → p-DQrMfUzi.system.js} +41 -41
  313. package/dist/zonos-elements/{p-BuU_p5DP.system.js → p-DTgUqgwV.system.js} +2 -2
  314. package/dist/zonos-elements/p-DW7I0zOF.js +1 -0
  315. package/dist/zonos-elements/p-DZdkJHK9.system.js +7 -0
  316. package/dist/zonos-elements/{p-XqkqjeNV.system.js → p-DgUrB-1a.system.js} +1 -1
  317. package/dist/zonos-elements/p-DiMEP3mh.js +1 -0
  318. package/dist/zonos-elements/p-DprOoI2W.system.js +528 -0
  319. package/dist/zonos-elements/{p-7abqRc9V.js → p-DpwmHU8R.js} +2 -2
  320. package/dist/zonos-elements/p-DqVePqqx.system.js +8 -0
  321. package/dist/zonos-elements/{p-Cby4EkFu.system.js → p-DsBuZ6ob.system.js} +2 -1
  322. package/dist/zonos-elements/{p-XDxdMlQl.system.js → p-Dtu_Japy.system.js} +39 -39
  323. package/dist/zonos-elements/p-Dwg61Ft_.js +1 -0
  324. package/dist/zonos-elements/p-U33isUJG.js +1 -0
  325. package/dist/zonos-elements/{p-Be3Hpms1.system.js → p-XoQH3S7Z.system.js} +1 -1
  326. package/dist/zonos-elements/{p-474e8a92.system.entry.js → p-a1022808.system.entry.js} +1 -1
  327. package/dist/zonos-elements/{p-83aa1c8c.entry.js → p-ad04bba2.entry.js} +1 -1
  328. package/dist/zonos-elements/{p-a938c174.entry.js → p-b51010b9.entry.js} +1 -1
  329. package/dist/zonos-elements/{p-dfc87b10.system.entry.js → p-c33b8f6a.system.entry.js} +1 -1
  330. package/dist/zonos-elements/{p-a40fd99b.system.entry.js → p-cccaad60.system.entry.js} +39 -40
  331. package/dist/zonos-elements/p-d3345b2c.entry.js +1 -0
  332. package/dist/zonos-elements/{p-249c1ee1.system.entry.js → p-d8f375da.system.entry.js} +3 -3
  333. package/dist/zonos-elements/{p-2603dce0.entry.js → p-e216cc8c.entry.js} +1 -1
  334. package/dist/zonos-elements/{p-b79036fc.entry.js → p-e7fdb2c9.entry.js} +1 -1
  335. package/dist/zonos-elements/p-ebe157b5.entry.js +1 -0
  336. package/dist/zonos-elements/p-ef5344ea.entry.js +1 -0
  337. package/dist/zonos-elements/{p-7f031592.system.entry.js → p-f3d9a380.system.entry.js} +73 -73
  338. package/dist/zonos-elements/{p-31043c2e.system.entry.js → p-f5f95990.system.entry.js} +296 -297
  339. package/dist/zonos-elements/p-fda89981.system.entry.js +13 -0
  340. package/dist/zonos-elements/{p-d4d2b39e.entry.js → p-fddf3556.entry.js} +1 -1
  341. package/dist/zonos-elements/p-iAIzUA4k.js +1 -0
  342. package/dist/zonos-elements/{p-BpDCLBwW.js → p-n5PZKz1k.js} +1 -1
  343. package/dist/zonos-elements/{p-DoEHepOc.system.js → p-ojtNq-r5.system.js} +1 -1
  344. package/dist/zonos-elements/{p-C_z9WL8a.js → p-r-YGHhLa.js} +1 -1
  345. package/dist/zonos-elements/{p-CBx5nYet.system.js → p-vTIygnHq.system.js} +1 -1
  346. package/dist/zonos-elements/{p-DQZncB2d.system.js → p-zsTASoh2.system.js} +3 -3
  347. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  348. package/package.json +1 -1
  349. package/dist/cjs/shouldRenderTaxIdInput-TxekHCp7.js +0 -43
  350. package/dist/esm/shouldRenderTaxIdInput-CKyZ6Zni.js +0 -40
  351. package/dist/esm/throttle-Cvlvb-dm.js +0 -85
  352. package/dist/esm-es5/debounce-CrmpwbEE.js +0 -1
  353. package/dist/esm-es5/getBorderRadius-DYfkeXdx.js +0 -8
  354. package/dist/esm-es5/localization-BIh-4pc_.js +0 -348
  355. package/dist/esm-es5/shouldRenderTaxIdInput-CKyZ6Zni.js +0 -17
  356. package/dist/esm-es5/throttle-Cvlvb-dm.js +0 -46
  357. package/dist/zonos-elements/p-06fe2939.entry.js +0 -1
  358. package/dist/zonos-elements/p-24f3c547.entry.js +0 -1
  359. package/dist/zonos-elements/p-30b3c9d3.entry.js +0 -1
  360. package/dist/zonos-elements/p-39ee1558.entry.js +0 -1
  361. package/dist/zonos-elements/p-3a2da031.entry.js +0 -1
  362. package/dist/zonos-elements/p-4806b264.system.entry.js +0 -13
  363. package/dist/zonos-elements/p-5873ab8e.entry.js +0 -1
  364. package/dist/zonos-elements/p-725e29bb.entry.js +0 -1
  365. package/dist/zonos-elements/p-BGktDPwA.system.js +0 -1
  366. package/dist/zonos-elements/p-Bi-s0fp_.system.js +0 -17
  367. package/dist/zonos-elements/p-CEK_Wk6v.system.js +0 -7
  368. package/dist/zonos-elements/p-CFbfEmjN.js +0 -1
  369. package/dist/zonos-elements/p-CcJF6xhQ.js +0 -1
  370. package/dist/zonos-elements/p-Cxuiqv1I.js +0 -1
  371. package/dist/zonos-elements/p-D-bZg-Pc.js +0 -1
  372. package/dist/zonos-elements/p-DOD2I44l.system.js +0 -348
  373. package/dist/zonos-elements/p-DS-qw_qc.system.js +0 -517
  374. package/dist/zonos-elements/p-DZ2mevDK.js +0 -1
  375. package/dist/zonos-elements/p-DnjGkbEy.js +0 -1
  376. package/dist/zonos-elements/p-FRWZayxL.js +0 -1
  377. package/dist/zonos-elements/p-Mrz_lnC1.js +0 -1
  378. package/dist/zonos-elements/p-ad9ff14c.entry.js +0 -1
  379. package/dist/zonos-elements/p-bb3546c0.entry.js +0 -1
  380. package/dist/zonos-elements/p-c1cbfdba.entry.js +0 -1
  381. package/dist/zonos-elements/p-c47ce656.entry.js +0 -1
  382. package/dist/zonos-elements/p-c9d5d8f1.entry.js +0 -1
  383. package/dist/zonos-elements/p-clDfq9AL.js +0 -1
  384. package/dist/zonos-elements/p-d74bc3e8.entry.js +0 -1
  385. package/dist/zonos-elements/p-d8b312e5.entry.js +0 -1
  386. package/dist/zonos-elements/p-db87b0dd.entry.js +0 -1
  387. package/dist/zonos-elements/p-defc2d18.entry.js +0 -1
  388. package/dist/zonos-elements/p-rVp8hgWw.js +0 -1
@@ -1,25 +1,28 @@
1
- var __awaiter=this&&this.__awaiter||function(n,t,e,i){function o(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,s){function a(n){try{l(i.next(n))}catch(n){s(n)}}function r(n){try{l(i["throw"](n))}catch(n){s(n)}}function l(n){n.done?e(n.value):o(n.value).then(a,r)}l((i=i.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=r(0),a["throw"]=r(1),a["return"]=r(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(n){return function(t){return l([n,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,r[0]&&(e=0)),e)try{if(i=1,o&&(s=r[0]&2?o["return"]:r[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,r[1])).done)return s;if(o=0,s)r=[r[0]&2,s.value];switch(r[0]){case 0:case 1:s=r;break;case 4:e.label++;return{value:r[1],done:false};case 5:e.label++;o=r[1];r=[0];continue;case 7:r=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(r[0]===6||r[0]===2)){e=0;continue}if(r[0]===3&&(!s||r[1]>s[0]&&r[1]<s[3])){e.label=r[1];break}if(r[0]===6&&e.label<s[1]){e.label=s[1];s=r;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(r);break}if(s[2])e.ops.pop();e.trys.pop();continue}r=t.call(n,e)}catch(n){r=[6,n];o=0}finally{i=s=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(n,t,e){if(e||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++){if(s||!(i in t)){if(!s)s=Array.prototype.slice.call(t,0,i);s[i]=t[i]}}return n.concat(s||Array.prototype.slice.call(t))};System.register(["./p-CIevpRv_.system.js","./p-B4Ufchqh.system.js","./p-DS-qw_qc.system.js","./p-DOD2I44l.system.js","./p-BuU_p5DP.system.js","./p-zVLAvre1.system.js","./p-Bi-s0fp_.system.js","./p-C2j7R11h.system.js","./p-BbgqQIHv.system.js","./p-Cby4EkFu.system.js","./p-DQZncB2d.system.js","./p-8PPEbm_0.system.js","./p-DW-fW8yR.system.js","./p-C29tlYn0.system.js"],(function(n){"use strict";var t,e,i,o,s,a,r,l,c,d,h,u,f,v,p,m,z,b,y,g,k,w,x,_,C,I,j,A,E,S;return{setters:[function(n){t=n.r;e=n.d;i=n.h;o=n.a;s=n.g},function(n){a=n.t},function(n){r=n.U;l=n.w;c=n.b;d=n.t;h=n.J;u=n.d},function(n){f=n.s;v=n.l;p=n.C;m=n.t;z=n.z},function(n){b=n.z;y=n.g;g=n.a},function(n){k=n.l;w=n.i;x=n.s},function(n){_=n.a;C=n.s},function(n){I=n.c},function(n){j=n.l},function(n){A=n.c;E=n.s},function(n){S=n.g},null,null,null],execute:function(){
1
+ var __awaiter=this&&this.__awaiter||function(n,t,e,i){function o(n){return n instanceof e?n:new e((function(t){t(n)}))}return new(e||(e=Promise))((function(e,s){function a(n){try{l(i.next(n))}catch(n){s(n)}}function r(n){try{l(i["throw"](n))}catch(n){s(n)}}function l(n){n.done?e(n.value):o(n.value).then(a,r)}l((i=i.apply(n,t||[])).next())}))};var __generator=this&&this.__generator||function(n,t){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,a=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return a.next=r(0),a["throw"]=r(1),a["return"]=r(2),typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function r(n){return function(t){return l([n,t])}}function l(r){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,r[0]&&(e=0)),e)try{if(i=1,o&&(s=r[0]&2?o["return"]:r[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,r[1])).done)return s;if(o=0,s)r=[r[0]&2,s.value];switch(r[0]){case 0:case 1:s=r;break;case 4:e.label++;return{value:r[1],done:false};case 5:e.label++;o=r[1];r=[0];continue;case 7:r=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(r[0]===6||r[0]===2)){e=0;continue}if(r[0]===3&&(!s||r[1]>s[0]&&r[1]<s[3])){e.label=r[1];break}if(r[0]===6&&e.label<s[1]){e.label=s[1];s=r;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(r);break}if(s[2])e.ops.pop();e.trys.pop();continue}r=t.call(n,e)}catch(n){r=[6,n];o=0}finally{i=s=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(n,t,e){if(e||arguments.length===2)for(var i=0,o=t.length,s;i<o;i++){if(s||!(i in t)){if(!s)s=Array.prototype.slice.call(t,0,i);s[i]=t[i]}}return n.concat(s||Array.prototype.slice.call(t))};System.register(["./p-CIevpRv_.system.js","./p-C9XLkmmb.system.js","./p-DprOoI2W.system.js","./p-6vSUiBfr.system.js","./p-DTgUqgwV.system.js","./p-zVLAvre1.system.js","./p-DqVePqqx.system.js","./p-C2j7R11h.system.js","./p-BbgqQIHv.system.js","./p-zsTASoh2.system.js","./p-DIab60nK.system.js","./p-CzKlS3E-.system.js","./p-DsBuZ6ob.system.js","./p-DW-fW8yR.system.js","./p-C29tlYn0.system.js"],(function(n){"use strict";var t,e,i,o,s,a,r,l,c,d,h,u,f,v,p,m,z,b,y,g,k,w,x,I,C,_,j,A,E;return{setters:[function(n){t=n.r;e=n.d;i=n.h;o=n.a;s=n.g},function(n){a=n.t;r=n.r},function(n){l=n.U;c=n.w;d=n.b;h=n.t;u=n.J;f=n.d},function(n){v=n.s;p=n.l;m=n.C;z=n.t;b=n.z},function(n){y=n.e;g=n.z;k=n.g;w=n.a},function(n){x=n.l;I=n.i;C=n.s},function(n){_=n.s},function(n){j=n.c},function(n){A=n.l},function(n){E=n.g},null,null,null,null,null],execute:function(){
2
2
  /**
3
3
  * Map a Stripe address change event value into a Stripe `ContactOption`, used to
4
4
  * pre-seed the address element's saved-address (contacts) list on remount.
5
5
  */
6
- var O=function(n){var t=r({firstName:n.firstName,lastName:n.lastName,name:n.name}),e=t.firstName,i=t.lastName;return{address:{city:n.address.city,country:n.address.country,line1:n.address.line1,line2:n.address.line2||undefined,postal_code:n.address.postal_code,state:n.address.state},name:(n.name||"".concat(e," ").concat(i)).trim(),phone:n.phone||undefined}};
6
+ var S=function(n){var t=l({firstName:n.firstName,lastName:n.lastName,name:n.name}),e=t.firstName,i=t.lastName;return{address:{city:n.address.city,country:n.address.country,line1:n.address.line1,line2:n.address.line2||undefined,postal_code:n.address.postal_code,state:n.address.state},name:(n.name||"".concat(e," ").concat(i)).trim(),phone:n.phone||undefined}};
7
7
  /**
8
8
  * Build a dedupe key for a contact so we don't add a duplicate saved address. Compared
9
9
  * case- and whitespace-insensitively on the distinguishing fields.
10
- */var B=function(n){var t,e,i;return[n.name,(t=n.address)===null||t===void 0?void 0:t.line1,(e=n.address)===null||e===void 0?void 0:e.postal_code,(i=n.address)===null||i===void 0?void 0:i.country].map((function(n){return(n||"").trim().toLowerCase()})).join("|")};
10
+ */var O=function(n){var t,e,i;return[n.name,(t=n.address)===null||t===void 0?void 0:t.line1,(e=n.address)===null||e===void 0?void 0:e.postal_code,(i=n.address)===null||i===void 0?void 0:i.country].map((function(n){return(n||"").trim().toLowerCase()})).join("|")};
11
11
  /**
12
12
  * Prepend the currently selected address (from the latest Stripe address event) to the
13
13
  * list of default saved addresses so it stays selected when the address element is
14
14
  * remounted (e.g. navigating between the customer and shipping steps). Avoids adding a
15
15
  * duplicate contact when the current address already exists in the list.
16
- */var D=function(n){var t=n.currentEvent,e=n.defaultAddress;if(!t){return e}var i=O(t.value);var o=B(i);var s=e.some((function(n){return B(n)===o}));if(s){return e}return __spreadArray([i],e,true)};var L=function(){return".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h .zonos--company-name-input.sc-zonos-address,.sc-zonos-address-h .zonos--tax-id-input.sc-zonos-address,.sc-zonos-address-h .zonos--short-address-code-input.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}"};var Z=n("zonos_address",/** @class */function(){function n(n){t(this,n);this.invalidCharacters=e(this,"invalidCharacters",7);this.taxIdChanged=e(this,"taxIdChanged",7);this.storeUnsubscribeList=[];
16
+ */var D=function(n){var t=n.currentEvent,e=n.defaultAddress;if(!t){return e}var i=S(t.value);var o=O(i);var s=e.some((function(n){return O(n)===o}));if(s){return e}return __spreadArray([i],e,true)};var L=function(){return".sc-zonos-address-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h .zonos--company-name-input.sc-zonos-address,.sc-zonos-address-h .zonos--tax-id-input.sc-zonos-address,.sc-zonos-address-h .zonos--short-address-code-input.sc-zonos-address{margin-bottom:16px}.sc-zonos-address-h .zonos--tax-id-input.sc-zonos-address{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}"};var Z=n("zonos_address",/** @class */function(){function n(n){t(this,n);this.invalidCharacters=e(this,"invalidCharacters",7);this.taxIdChanged=e(this,"taxIdChanged",7);this.storeUnsubscribeList=[];
17
17
  /**
18
18
  * Google autocomplete overlay is conflict with our button, this is to adjust z index of the autocomplete
19
19
  */this.isAutoCompleteAdjusted=false;
20
20
  /**
21
21
  * Default address for stripe
22
22
  */this.defaultAddress=[];
23
+ /**
24
+ * Which tax id control the error belongs on. Empty when there is no error.
25
+ */this.taxIdErrorField="";
23
26
  /**
24
27
  * Error message for tax id input
25
28
  */this.taxIdErrorMessage="";
@@ -34,21 +37,21 @@ var O=function(n){var t=r({firstName:n.firstName,lastName:n.lastName,name:n.name
34
37
  */this.isAddressFilled=false;
35
38
  /**
36
39
  * Local checkout session id to check if the address is filled after checkout is loaded
37
- */this.checkoutSessionId=f.checkoutSessionId;
40
+ */this.checkoutSessionId=v.checkoutSessionId;
38
41
  /**
39
42
  * Track previous country and postal code to detect changes
40
43
  */this.prevCountry=null;this.prevPostalCode=null;
41
44
  /**
42
45
  * Check if the tracking event is sent
43
- */this.trackingSent=false;this.prefetchLandedCost=a(l,1e3)}n.prototype.getStripeAddressInstance=function(){if(this.type==="billing"){return{stripeAddressElement:c.stripeBillingAddressElement,stripeAddressEventData:c.stripeBillingAddressEventData,stripeElements:c.stripeElementsForBillingAddress}}return{stripeAddressElement:c.stripeAddressElement,stripeAddressEventData:c.stripeAddressEventData,stripeElements:c.stripeElements}};n.prototype.updateAddressEventData=function(n){var t=n.event,e=n.type;switch(e){case"billing":c.stripeBillingAddressEventData=t;break;default:{c.stripeAddressEventData=t;break}}
46
+ */this.trackingSent=false;this.prefetchLandedCost=a(c,1e3)}n.prototype.getStripeAddressInstance=function(){if(this.type==="billing"){return{stripeAddressElement:d.stripeBillingAddressElement,stripeAddressEventData:d.stripeBillingAddressEventData,stripeElements:d.stripeElementsForBillingAddress}}return{stripeAddressElement:d.stripeAddressElement,stripeAddressEventData:d.stripeAddressEventData,stripeElements:d.stripeElements}};n.prototype.updateAddressEventData=function(n){var t=n.event,e=n.type;switch(e){case"billing":d.stripeBillingAddressEventData=t;break;default:{d.stripeAddressEventData=t;break}}
44
47
  // Only trigger landed cost prefetch for shipping address
45
48
  if(e==="shipping"){
46
49
  // if line 1 has something, trigger prefetch
47
50
  if(t.value.address.line1.length){void this.prefetchLandedCost()}}};n.prototype.isAddressFilledChanged=function(){
48
51
  // 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
49
- if(!f.checkoutSessionId){return}
52
+ if(!v.checkoutSessionId){return}
50
53
  // Only need to track the event if the shipping address is filled
51
- if(this.isAddressFilled&&!this.trackingSent&&this.type==="shipping"){this.trackingSent=true;var n=f.checkoutSessionId;void d({checkoutSessionId:n,eventName:"checkout_customerInfoFilled"})}};n.prototype.updateAddressElement=function(n){var t=n.stripeAddressElement,e=n.type;if(e==="shipping"){c.stripeAddressElement=t;return}c.stripeBillingAddressElement=t};n.prototype.watchInitStripe=function(){return __awaiter(this,void 0,void 0,(function(){var n,t,e,i,o,s,a,l,c,d;var h=this;return __generator(this,(function(u){this.stripe=window.Zonos.stripe;n=this.getStripeAddressInstance(),t=n.stripeAddressEventData,e=n.stripeElements;if(!this.stripe||!e){k("Stripe is not initialized. Couldn't load stripe element.");return[2/*return*/]}i=this.defaultAddress.map((function(n){return Object.assign(Object.assign({},n),{name:n.name,phone:n.phone||undefined})}));o=v.shippingZoneCountries;s=o?Object.values(o).map((function(n){return n.code})):[];a=new URLSearchParams(window.location.search).has("zonosCheckoutAllCountries");l=this.type==="shipping"?s:[];c=(t===null||t===void 0?void 0:t.value.address.country)||p(l);j("Stripe country code: ".concat(c),"info");d=e.create("address",{allowedCountries:a?[]:l,
54
+ if(this.isAddressFilled&&!this.trackingSent&&this.type==="shipping"){this.trackingSent=true;var n=v.checkoutSessionId;void h({checkoutSessionId:n,eventName:"checkout_customerInfoFilled"})}};n.prototype.updateAddressElement=function(n){var t=n.stripeAddressElement,e=n.type;if(e==="shipping"){d.stripeAddressElement=t;return}d.stripeBillingAddressElement=t};n.prototype.watchInitStripe=function(){return __awaiter(this,void 0,void 0,(function(){var n,t,e,i,o,s,a,r,c,d;var h=this;return __generator(this,(function(u){this.stripe=window.Zonos.stripe;n=this.getStripeAddressInstance(),t=n.stripeAddressEventData,e=n.stripeElements;if(!this.stripe||!e){x("Stripe is not initialized. Couldn't load stripe element.");return[2/*return*/]}i=this.defaultAddress.map((function(n){return Object.assign(Object.assign({},n),{name:n.name,phone:n.phone||undefined})}));o=p.shippingZoneCountries;s=o?Object.values(o).map((function(n){return n.code})):[];a=new URLSearchParams(window.location.search).has("zonosCheckoutAllCountries");r=this.type==="shipping"?s:[];c=(t===null||t===void 0?void 0:t.value.address.country)||m(r);A("Stripe country code: ".concat(c),"info");d=e.create("address",{allowedCountries:a?[]:r,
52
55
  // Prepend the currently selected address so it stays selected across remounts
53
56
  // (customer <-> shipping step navigation), de-duped against the default addresses.
54
57
  // Contacts are computed once here at create() time and never mutated afterwards—
@@ -59,53 +62,49 @@ if(t===null||t===void 0?void 0:t.value.address){this.prevCountry=t.value.address
59
62
  // stripe element started with just address line 1, so scroll bar is not yet available. Wait for a moment before scrolling
60
63
  setTimeout((function(){
61
64
  // scroll directly into view if it's mobile
62
- if(w()){h.el.scrollIntoView({behavior:"smooth",block:"end"})}else{
65
+ if(I()){h.el.scrollIntoView({behavior:"smooth",block:"end"})}else{
63
66
  // scroll into the end of the page so the address placeholder won't be hidden
64
- var n=h.type==="shipping"?100:600;var t=h.el.closest(".zonos--group");var e=h.el.getBoundingClientRect().top+n;t===null||t===void 0?void 0:t.scrollTo({behavior:"smooth",top:e})}}),600)}var i=r({firstName:t.firstName,lastName:t.lastName,name:t.name}),o=i.firstName,s=i.lastName;h.updateAddressEventData({event:Object.assign(Object.assign({},n),{elementMode:h.type,elementType:"address",value:Object.assign(Object.assign({},t),{firstName:o,lastName:s})}),type:h.type})}));this.updateAddressElement({stripeAddressElement:d,type:this.type});return[2/*return*/]}))}))};n.prototype.defaultAddressChanged=function(n,t){
67
+ var n=h.type==="shipping"?100:600;var t=h.el.closest(".zonos--group");var e=h.el.getBoundingClientRect().top+n;t===null||t===void 0?void 0:t.scrollTo({behavior:"smooth",top:e})}}),600)}var i=l({firstName:t.firstName,lastName:t.lastName,name:t.name}),o=i.firstName,s=i.lastName;h.updateAddressEventData({event:Object.assign(Object.assign({},n),{elementMode:h.type,elementType:"address",value:Object.assign(Object.assign({},t),{firstName:o,lastName:s})}),type:h.type})}));this.updateAddressElement({stripeAddressElement:d,type:this.type});return[2/*return*/]}))}))};n.prototype.defaultAddressChanged=function(n,t){
65
68
  // check if stringified json of oldAddress is different from newAddress
66
69
  var e=JSON.stringify(t);var i=JSON.stringify(n);
67
70
  // No need to reset address element if the default address is the same
68
- if(e===i){return}j("Reset address element when default address property is changed","info",{defaultAddress:this.defaultAddress});var o=this.getStripeAddressInstance().stripeAddressElement;o===null||o===void 0?void 0:o.clear();o===null||o===void 0?void 0:o.destroy();
71
+ if(e===i){return}A("Reset address element when default address property is changed","info",{defaultAddress:this.defaultAddress});var o=this.getStripeAddressInstance().stripeAddressElement;o===null||o===void 0?void 0:o.clear();o===null||o===void 0?void 0:o.destroy();
69
72
  // Reset stripe address event data
70
- if(this.type==="shipping"){c.stripeAddressEventData=null}else{c.stripeBillingAddressEventData=null}void this.watchInitStripe()};n.prototype.isInTaxIdCountry=function(n){return A.includes(n)};
73
+ if(this.type==="shipping"){d.stripeAddressEventData=null}else{d.stripeBillingAddressEventData=null}void this.watchInitStripe()};
71
74
  /**
72
75
  * Render tax id input based on ship to country code
73
76
  */n.prototype.renderTaxIdInput=function(){var n=this;var t;
74
77
  // No need to render tax id input for billing address
75
- if(this.type==="billing"){return null}var e=(t=c.stripeAddressEventData)===null||t===void 0?void 0:t.value.address.country;
78
+ if(this.type==="billing"){return null}var e=(t=d.stripeAddressEventData)===null||t===void 0?void 0:t.value.address.country;
76
79
  // Don't render tax id input if the country is not provided
77
- if(!e){return null}
78
- // 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
79
- if(!this.isInTaxIdCountry(e)){return null}var o=_({companyName:c.companyName,countryCode:e});
80
- // Don't render tax id input if the country doesn't require tax id
81
- if(!o){return null}var s=E[e];return i("div",{class:"zonos--tax-id-input"},i("zonos-stripe-input",{inputLabel:m(s.friendlyName),inputPlaceholder:s.placeholder,inputValue:c.taxId||"",isError:!!this.taxIdErrorMessage,onInputChange:function(t){c.taxId=t.detail;n.taxIdChanged.emit(t.detail)}}),this.taxIdErrorMessage&&i("zonos-text",{textColor:"red-600",type:"caption"},this.taxIdErrorMessage))};
80
+ if(!e){return null}return r({companyName:d.companyName,countryCode:e,errorField:this.taxIdErrorField,errorMessage:this.taxIdErrorMessage,onTaxIdChange:function(t){n.taxIdChanged.emit(t)},shouldRequirePeruTaxId:y(),taxId:d.taxId||"",taxIdType:d.taxIdType})};
82
81
  /**
83
82
  * Render short address code input based on ship to country code
84
83
  */n.prototype.renderShortAddressCodeInput=function(){var n;
85
84
  // No need to render short address code input for billing address
86
- if(this.type==="billing"){return null}var t=(n=c.stripeAddressEventData)===null||n===void 0?void 0:n.value.address.country;
85
+ if(this.type==="billing"){return null}var t=(n=d.stripeAddressEventData)===null||n===void 0?void 0:n.value.address.country;
87
86
  // Don't render short address code input if the country is not provided
88
- if(!t){return null}var e=C({countryCode:t});
87
+ if(!t){return null}var e=_({countryCode:t});
89
88
  // Don't render short address code input if the country doesn't require short address code
90
- if(!e){return null}return i("div",{class:"zonos--short-address-code-input"},i("zonos-stripe-input",{inputLabel:m("Short address code"),inputPlaceholder:"RRRD2929",inputValue:c.shortAddressCode||"",isError:!!this.shortAddressCodeErrorMessage,onInputChange:function(n){c.shortAddressCode=n.detail}}),this.shortAddressCodeErrorMessage&&i("zonos-text",{textColor:"red-600",type:"caption"},this.shortAddressCodeErrorMessage))};n.prototype.renderCompanyNameInput=function(){
89
+ if(!e){return null}return i("div",{class:"zonos--short-address-code-input"},i("zonos-stripe-input",{inputLabel:z("Short address code"),inputPlaceholder:"RRRD2929",inputValue:d.shortAddressCode||"",isError:!!this.shortAddressCodeErrorMessage,onInputChange:function(n){d.shortAddressCode=n.detail}}),this.shortAddressCodeErrorMessage&&i("zonos-text",{textColor:"red-600",type:"caption"},this.shortAddressCodeErrorMessage))};n.prototype.renderCompanyNameInput=function(){
91
90
  // No need to render company name for billing address (only allow for Collect and Invoice)
92
91
  if(this.type==="billing"&&!window.Zonos.isCollect&&!window.Zonos.isInvoice){return null}
93
92
  // only render the company input if the setting is enabled or the cart is collect
94
- var n=b.checkoutSettings.companyFieldsStatus==="ENABLED"||!!window.Zonos.isCollect||!!window.Zonos.isInvoice;
93
+ var n=g.checkoutSettings.companyFieldsStatus==="ENABLED"||!!window.Zonos.isCollect||!!window.Zonos.isInvoice;
95
94
  // No need to render company name for billing address (only allow for Collect)
96
- if(!n){return null}return i("zonos-stripe-input",{class:"zonos--company-name-input",inputLabel:m("Company name (optional)"),inputValue:c.companyName,onInputChange:function(n){c.companyName=n.detail}})};n.prototype.disconnectedCallback=function(){
95
+ if(!n){return null}return i("zonos-stripe-input",{class:"zonos--company-name-input",inputLabel:z("Company name (optional)"),inputValue:d.companyName,onInputChange:function(n){d.companyName=n.detail}})};n.prototype.disconnectedCallback=function(){
97
96
  // destroy the stripe element when this component is removed from the DOM, so that we can re-create the new one with previous value
98
97
  var n=this.getStripeAddressInstance().stripeAddressElement;n===null||n===void 0?void 0:n.destroy();
99
98
  // unsubscribe from store subscriptions
100
99
  try{this.storeUnsubscribeList.forEach((function(n){return n()}))}catch(n){}};n.prototype.componentDidLoad=function(){var n=this;var t=this.getStripeAddressInstance().stripeAddressEventData;this.isDirtyAddress=!!t&&t.value.address.line1.length>0;
101
100
  // @Watch doesn't get trigger on initial load
102
- void this.watchInitStripe();this.checkoutSessionId=f.checkoutSessionId;this.storeUnsubscribeList=[z("checkoutSessionId",(function(){n.checkoutSessionId=f.checkoutSessionId})),h("stripeElements",(function(){if(n.type==="shipping"){void n.watchInitStripe()}})),h("stripeElementsForBillingAddress",(function(){if(n.type==="billing"){void n.watchInitStripe()}}))]};n.prototype.render=function(){var n;this.checkoutSessionId=f.checkoutSessionId;if((n=c.stripeAddressEventData)===null||n===void 0?void 0:n.complete){this.isAddressFilled=true}
101
+ void this.watchInitStripe();this.checkoutSessionId=v.checkoutSessionId;this.storeUnsubscribeList=[b("checkoutSessionId",(function(){n.checkoutSessionId=v.checkoutSessionId})),u("stripeElements",(function(){if(n.type==="shipping"){void n.watchInitStripe()}})),u("stripeElementsForBillingAddress",(function(){if(n.type==="billing"){void n.watchInitStripe()}}))]};n.prototype.render=function(){var n;this.checkoutSessionId=v.checkoutSessionId;if((n=d.stripeAddressEventData)===null||n===void 0?void 0:n.complete){this.isAddressFilled=true}
103
102
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
104
- return i(o,{key:"302dafde973c4bf2d847640d8f0e064d88f350f8",class:I(["zonos--address","zonos--elements","zonos--".concat(this.type,"-address")])},this.titleText&&i("zonos-text",{key:"706204604ad32eed710e38adbe8133b3384044eb",class:"zonos--title",type:"semiBoldLabel"},this.titleText),i("slot",{key:"0edc4c5d6c3ff965be6edbf680acaed892c71a16",name:"below-title"}),this.renderCompanyNameInput(),this.renderTaxIdInput(),this.renderShortAddressCodeInput(),i("div",{key:"6aa6e4e86a76f1081c5af1f2b5f3282dfd91f3c5",class:"zonos--address-component"}))};Object.defineProperty(n.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{checkoutSessionId:[{isAddressFilledChanged:0}],isAddressFilled:[{isAddressFilledChanged:0}],stripe:[{watchInitStripe:0}],defaultAddress:[{defaultAddressChanged:0}]}},enumerable:false,configurable:true});return n}());Z.style=L();var N='<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">\n <path d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-400)"></path>\n <path d="M12.75 9a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V9Zm0 5.5a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0v-.5Z" fill="currentColor"></path>\n</svg>';var V='<svg color="var(--zonos-elements-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">\n <path d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z" data-is-secondary-color="true" fill="var(--zonos-elements-blue-400)"></path>\n <path d="M10.25 10.25a1.75 1.75 0 1 1 2.431 1.613c-.616.26-1.431.885-1.431 1.887a.75.75 0 0 0 1.5 0c0-.053.02-.128.108-.228.092-.104.236-.205.408-.278A3.25 3.25 0 1 0 8.75 10.25a.75.75 0 0 0 1.5 0Zm2.5 5.75a.75.75 0 0 0-1.5 0v.25a.75.75 0 0 0 1.5 0V16Z" fill="currentColor"></path>\n</svg>';var M='<svg color="var(--zonos-elements-orange-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">\n <path d="M14.46 5.492c-1.014-2.027-3.906-2.027-4.92 0L4.276 16.02c-.914 1.83.416 3.98 2.46 3.98h10.528c2.044 0 3.374-2.151 2.46-3.98L14.46 5.492Z" data-is-secondary-color="true" fill="var(--zonos-elements-orange-400)"></path>\n <path d="M12.75 10a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V10Zm0 5.5a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0v-.5Z" fill="currentColor"></path>\n</svg>';var P=function(){return":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--backdrop,:host .zonos--confirm-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:opacity 0.3s, visibility 0.3s;transition:opacity 0.3s, visibility 0.3s}:host .zonos--backdrop{width:100vw;height:100vh;left:0;top:0;background:var(--zonos-elements-backdrop-color);position:fixed}:host .zonos--confirm-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--zonos-elements-text-color)}:host .zonos--confirm-dialog{position:relative;background:var(--zonos-elements-gray-0);max-width:90vw;max-height:90vh;width:var(--zonos--dialog-width);border-radius:var(--zonos--border-radius, 10px);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:24px;gap:24px}:host .icon-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:40px;width:40px;border-radius:50%;background:var(--zonos-elements-blue-100)}:host .warn .icon-wrapper{background:var(--zonos-elements-orange-100)}:host .danger .icon-wrapper{background:var(--zonos-elements-red-100)}:host .footer{display:-ms-flexbox;display:flex;width:100%;gap:8px}:host .footer zonos-button{-ms-flex:1;flex:1}:host .content{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}:host .content zonos-text{text-align:center}:host(.open) .zonos--confirm-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:2147483009;opacity:0.65}:host(.open) .zonos--confirm-layout{opacity:1;z-index:2147483010;-webkit-transform:scale(1);transform:scale(1)}"};var R=n("zonos_confirm_dialog",/** @class */function(){function n(n){var i=this;t(this,n);this.confirmClicked=e(this,"confirmClicked",7);this.cancelClicked=e(this,"cancelClicked",7);
103
+ return i(o,{key:"bbf12ad9213fbbbaf6c14ecb0cb7acb0679f3d6e",class:j(["zonos--address","zonos--elements","zonos--".concat(this.type,"-address")])},this.titleText&&i("zonos-text",{key:"a81550755a359e1a9c46acc99eef7749959187ee",class:"zonos--title",type:"semiBoldLabel"},this.titleText),i("slot",{key:"bdba9c19992622bcf0354366080b1932c0e28bb2",name:"below-title"}),this.renderCompanyNameInput(),this.renderTaxIdInput(),this.renderShortAddressCodeInput(),i("div",{key:"b376efea8ef5d57f525be9b6eed3f98c67b2834e",class:"zonos--address-component"}))};Object.defineProperty(n.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{checkoutSessionId:[{isAddressFilledChanged:0}],isAddressFilled:[{isAddressFilledChanged:0}],stripe:[{watchInitStripe:0}],defaultAddress:[{defaultAddressChanged:0}]}},enumerable:false,configurable:true});return n}());Z.style=L();var B='<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">\n <path d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-400)"></path>\n <path d="M12.75 9a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V9Zm0 5.5a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0v-.5Z" fill="currentColor"></path>\n</svg>';var N='<svg color="var(--zonos-elements-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">\n <path d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z" data-is-secondary-color="true" fill="var(--zonos-elements-blue-400)"></path>\n <path d="M10.25 10.25a1.75 1.75 0 1 1 2.431 1.613c-.616.26-1.431.885-1.431 1.887a.75.75 0 0 0 1.5 0c0-.053.02-.128.108-.228.092-.104.236-.205.408-.278A3.25 3.25 0 1 0 8.75 10.25a.75.75 0 0 0 1.5 0Zm2.5 5.75a.75.75 0 0 0-1.5 0v.25a.75.75 0 0 0 1.5 0V16Z" fill="currentColor"></path>\n</svg>';var T='<svg color="var(--zonos-elements-orange-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg" style="display: block;">\n <path d="M14.46 5.492c-1.014-2.027-3.906-2.027-4.92 0L4.276 16.02c-.914 1.83.416 3.98 2.46 3.98h10.528c2.044 0 3.374-2.151 2.46-3.98L14.46 5.492Z" data-is-secondary-color="true" fill="var(--zonos-elements-orange-400)"></path>\n <path d="M12.75 10a.75.75 0 0 0-1.5 0v2.5a.75.75 0 0 0 1.5 0V10Zm0 5.5a.75.75 0 0 0-1.5 0v.5a.75.75 0 0 0 1.5 0v-.5Z" fill="currentColor"></path>\n</svg>';var V=function(){return":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--backdrop,:host .zonos--confirm-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:opacity 0.3s, visibility 0.3s;transition:opacity 0.3s, visibility 0.3s}:host .zonos--backdrop{width:100vw;height:100vh;left:0;top:0;background:var(--zonos-elements-backdrop-color);position:fixed}:host .zonos--confirm-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--zonos-elements-text-color)}:host .zonos--confirm-dialog{position:relative;background:var(--zonos-elements-gray-0);max-width:90vw;max-height:90vh;width:var(--zonos--dialog-width);border-radius:var(--zonos--border-radius, 10px);outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;padding:24px;gap:24px}:host .icon-wrapper{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:40px;width:40px;border-radius:50%;background:var(--zonos-elements-blue-100)}:host .warn .icon-wrapper{background:var(--zonos-elements-orange-100)}:host .danger .icon-wrapper{background:var(--zonos-elements-red-100)}:host .footer{display:-ms-flexbox;display:flex;width:100%;gap:8px}:host .footer zonos-button{-ms-flex:1;flex:1}:host .content{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}:host .content zonos-text{text-align:center}:host(.open) .zonos--confirm-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:2147483009;opacity:0.65}:host(.open) .zonos--confirm-layout{opacity:1;z-index:2147483010;-webkit-transform:scale(1);transform:scale(1)}"};var M=n("zonos_confirm_dialog",/** @class */function(){function n(n){var i=this;t(this,n);this.confirmClicked=e(this,"confirmClicked",7);this.cancelClicked=e(this,"cancelClicked",7);
105
104
  /**
106
105
  * Dialog title text
107
106
  * @default "Are you sure?"
108
- */this.dialogTitle=m("Are you sure?");
107
+ */this.dialogTitle=z("Are you sure?");
109
108
  /**
110
109
  * Dialog intent (for icon and button color)
111
110
  * @default "info"
@@ -140,41 +139,41 @@ this.confirmClicked.emit()};n.prototype.closeDialogHandler=function(){
140
139
  // Only do the action if the dialog is open
141
140
  if(!this.dialogOpen){return}
142
141
  // Emit cancel event
143
- this.cancelClicked.emit()};n.prototype.renderIcon=function(){switch(this.dialogIntent){case"info":return i("zonos-icon",{content:V,iconColor:"blue-800"});case"danger":return i("zonos-icon",{content:N,iconColor:"red-800"});case"warn":return i("zonos-icon",{content:M,iconColor:"orange-800"})}};n.prototype.getButtonConfirmVariant=function(){switch(this.dialogIntent){case"warn":return"warning";case"danger":return"danger";default:return"primary"}};n.prototype.render=function(){var n=this;this.focusDialog();var t=S();
142
+ this.cancelClicked.emit()};n.prototype.renderIcon=function(){switch(this.dialogIntent){case"info":return i("zonos-icon",{content:N,iconColor:"blue-800"});case"danger":return i("zonos-icon",{content:B,iconColor:"red-800"});case"warn":return i("zonos-icon",{content:T,iconColor:"orange-800"})}};n.prototype.getButtonConfirmVariant=function(){switch(this.dialogIntent){case"warn":return"warning";case"danger":return"danger";default:return"primary"}};n.prototype.render=function(){var n=this;this.focusDialog();var t=E();
144
143
  // Get theme for the update dialog, inherit from the theme, no from this component theme
145
- var e=y(b.appearance.theme);return i(o,{key:"9ad8aff8631692fa53ef172869d98e9fbfbdc059",class:I([this.dialogOpen&&"open","zonos--elements"]),"data-dialog-type":this.dialogType,"data-theme":e,style:{"--zonos--border-radius":t,"--zonos--dialog-width":"".concat(this.dialogWidth,"px"),"--zonos--font-family":g()}},i("div",{key:"6d7c55b90bfb05890d876a0243558eb9a2e7a772",class:"zonos--backdrop",tabIndex:-1}),i("div",{key:"abf306ddd70cefd64aa6804aeccf700506c175d7",class:I(["zonos--confirm-layout",this.dialogIntent]),onClick:function(t){return n.clickOutsideDialogHandler(t)}},i("div",{key:"dc7e9e6d501872597928603ded57d82c15c26710",class:"zonos--confirm-dialog",onBlur:function(){n.focusDialog()}},i("div",{key:"5c1fa9ec8b59cba68ccbc5dc36e66e2fdefdeae5",class:"wrapper"},i("div",{key:"0ce48c41c78e393a181fd5e9beeac90622b5c620",class:"icon-wrapper"},this.renderIcon()),i("div",{key:"b42157f8e76de8a60190e384d7d53a36d8051c67",class:"content"},i("div",{key:"bd8eb897f15a6d095df8fbd1803f62a11b9d5d7b",class:"title"},i("zonos-text",{key:"d1c06b89d4917b2366f881dda7da9e1369722126",type:"subheader"},this.dialogTitle)),this.dialogSubtitle&&i("div",{key:"4f1269aaab5ad3965d6ddfc0949341d4f202f296",class:"subtitle"},i("zonos-text",{key:"f784b5dd86ff684e790f27a586e3eeb4ac683884",textColor:"gray-800"},this.dialogSubtitle))),i("div",{key:"e0403a968aee6ff878c9e916e9ff216e2052ab0c",class:"footer"},this.dialogType==="confirm"&&i("zonos-button",{key:"66e34a9d61f677786bfe286f377854c9ebc780ed",backgroundColor:"gray-0",class:"cancel-button",onClick:function(){return n.closeDialogHandler()},size:"lg",withBoxShadow:true},this.dialogCancelBtnText||m("Cancel")),i("zonos-button",{key:"3652507591e3055856a044e191525ea36b6042ca",class:"confirm-button",onClick:function(){return n.confirmDialogHandler()},size:"lg",variant:this.getButtonConfirmVariant()},this.dialogConfirmBtnText))))))};Object.defineProperty(n,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(n.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return n}());R.style=P();var T=function(n){var t=/^[a-zA-Z0-9.%_+-]*@[a-zA-Z0-9][a-zA-Z0-9.-]*\.[a-zA-Z0-9]{2,}$/;return t.test(n)};var F=function(){return".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)}"};var q=51;var U=n("zonos_link_authentication",/** @class */function(){function n(n){var i=this;t(this,n);this.linkAuthenticationChange=e(this,"linkAuthenticationChange",7);this.storeUnsubscribeList=[];
144
+ var e=k(g.appearance.theme);return i(o,{key:"9ad8aff8631692fa53ef172869d98e9fbfbdc059",class:j([this.dialogOpen&&"open","zonos--elements"]),"data-dialog-type":this.dialogType,"data-theme":e,style:{"--zonos--border-radius":t,"--zonos--dialog-width":"".concat(this.dialogWidth,"px"),"--zonos--font-family":w()}},i("div",{key:"6d7c55b90bfb05890d876a0243558eb9a2e7a772",class:"zonos--backdrop",tabIndex:-1}),i("div",{key:"abf306ddd70cefd64aa6804aeccf700506c175d7",class:j(["zonos--confirm-layout",this.dialogIntent]),onClick:function(t){return n.clickOutsideDialogHandler(t)}},i("div",{key:"dc7e9e6d501872597928603ded57d82c15c26710",class:"zonos--confirm-dialog",onBlur:function(){n.focusDialog()}},i("div",{key:"5c1fa9ec8b59cba68ccbc5dc36e66e2fdefdeae5",class:"wrapper"},i("div",{key:"0ce48c41c78e393a181fd5e9beeac90622b5c620",class:"icon-wrapper"},this.renderIcon()),i("div",{key:"b42157f8e76de8a60190e384d7d53a36d8051c67",class:"content"},i("div",{key:"bd8eb897f15a6d095df8fbd1803f62a11b9d5d7b",class:"title"},i("zonos-text",{key:"d1c06b89d4917b2366f881dda7da9e1369722126",type:"subheader"},this.dialogTitle)),this.dialogSubtitle&&i("div",{key:"4f1269aaab5ad3965d6ddfc0949341d4f202f296",class:"subtitle"},i("zonos-text",{key:"f784b5dd86ff684e790f27a586e3eeb4ac683884",textColor:"gray-800"},this.dialogSubtitle))),i("div",{key:"e0403a968aee6ff878c9e916e9ff216e2052ab0c",class:"footer"},this.dialogType==="confirm"&&i("zonos-button",{key:"66e34a9d61f677786bfe286f377854c9ebc780ed",backgroundColor:"gray-0",class:"cancel-button",onClick:function(){return n.closeDialogHandler()},size:"lg",withBoxShadow:true},this.dialogCancelBtnText||z("Cancel")),i("zonos-button",{key:"3652507591e3055856a044e191525ea36b6042ca",class:"confirm-button",onClick:function(){return n.confirmDialogHandler()},size:"lg",variant:this.getButtonConfirmVariant()},this.dialogConfirmBtnText))))))};Object.defineProperty(n,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(n.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return n}());M.style=V();var R=function(n){var t=/^[a-zA-Z0-9.%_+-]*@[a-zA-Z0-9][a-zA-Z0-9.-]*\.[a-zA-Z0-9]{2,}$/;return t.test(n)};var q=function(){return".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)}"};var P=51;var F=n("zonos_link_authentication",/** @class */function(){function n(n){var i=this;t(this,n);this.linkAuthenticationChange=e(this,"linkAuthenticationChange",7);this.storeUnsubscribeList=[];
146
145
  /**
147
146
  * Default email for stripe
148
147
  */this.defaultEmail=null;
149
148
  /**
150
149
  * Email error text to dispaly
151
- */this.isEmailError=false;this.stripe=c.stripe;this.isStagingMode=u.isStagingMode;this.clientSecret=c.clientSecret;this.retriesInitializeLink=0;this.setCustomEmailInputToLinkEvent=function(n){
150
+ */this.isEmailError=false;this.stripe=d.stripe;this.isStagingMode=f.isStagingMode;this.clientSecret=d.clientSecret;this.retriesInitializeLink=0;this.setCustomEmailInputToLinkEvent=function(n){
152
151
  // check if the email is valid
153
- var t=T(n);var e={complete:!!t,elementType:"linkAuthentication",empty:!n,value:{email:n}};c.stripeLinkEventData=e};this.handleNormalEmailInput=function(n){var t;var e=n.detail;i.setCustomEmailInputToLinkEvent(e);(t=i.linkAuthenticationChange)===null||t===void 0?void 0:t.emit()}}n.prototype.watchIsStagingMode=function(){var n=this;
152
+ var t=R(n);var e={complete:!!t,elementType:"linkAuthentication",empty:!n,value:{email:n}};d.stripeLinkEventData=e};this.handleNormalEmailInput=function(n){var t;var e=n.detail;i.setCustomEmailInputToLinkEvent(e);(t=i.linkAuthenticationChange)===null||t===void 0?void 0:t.emit()}}n.prototype.watchIsStagingMode=function(){var n=this;
154
153
  // Wait for the DOM to be ready before re-initializing Link element
155
- setTimeout((function(){void n.watchInitStripe()}),0)};n.prototype.watchInitStripe=function(){return __awaiter(this,void 0,void 0,(function(){var n,t,e,i;var o=this;return __generator(this,(function(s){switch(s.label){case 0:if(!this.stripe||!c.stripeElements){return[2/*return*/]}
154
+ setTimeout((function(){void n.watchInitStripe()}),0)};n.prototype.watchInitStripe=function(){return __awaiter(this,void 0,void 0,(function(){var n,t,e,i;var o=this;return __generator(this,(function(s){switch(s.label){case 0:if(!this.stripe||!d.stripeElements){return[2/*return*/]}
156
155
  // No need to initialize link if this is staging mode since we will render the email input field
157
- if(u.isStagingMode||!this.clientSecret){return[2/*return*/]}n=this.defaultEmail?{email:this.defaultEmail}:undefined;s.label=1;case 1:s.trys.push([1,2,,6]);t=c.stripeLinkElement||c.stripeElements.create("linkAuthentication",{defaultValues:n});e=this.el.querySelector(".zonos--link-authentication-component");if(!e){k("Cannot find container element for linkAuthenticationElement");return[2/*return*/]}t.mount(e);t.on("change",(function(n){var t;c.stripeLinkEventData=n;(t=o.linkAuthenticationChange)===null||t===void 0?void 0:t.emit()}));c.stripeLinkElement=t;this.retriesInitializeLink=0;
156
+ if(f.isStagingMode||!this.clientSecret){return[2/*return*/]}n=this.defaultEmail?{email:this.defaultEmail}:undefined;s.label=1;case 1:s.trys.push([1,2,,6]);t=d.stripeLinkElement||d.stripeElements.create("linkAuthentication",{defaultValues:n});e=this.el.querySelector(".zonos--link-authentication-component");if(!e){x("Cannot find container element for linkAuthenticationElement");return[2/*return*/]}t.mount(e);t.on("change",(function(n){var t;d.stripeLinkEventData=n;(t=o.linkAuthenticationChange)===null||t===void 0?void 0:t.emit()}));d.stripeLinkElement=t;this.retriesInitializeLink=0;
158
157
  // 10 seconds
159
- if(this.retriesInitializeLink>11){j("Stripe link element initialized","info",{retriesInitializeLink:this.retriesInitializeLink,stripe:this.stripe});void x({endpoint:"stripe-link-authentication-init-long-running",errors:["Stripe link element initialized after 20 retries - 10 seconds"],metadata:{retriesInitializeLink:this.retriesInitializeLink}})}return[3/*break*/,6];case 2:i=s.sent();if(!(i instanceof Error))return[3/*break*/,5];
158
+ if(this.retriesInitializeLink>11){A("Stripe link element initialized","info",{retriesInitializeLink:this.retriesInitializeLink,stripe:this.stripe});void C({endpoint:"stripe-link-authentication-init-long-running",errors:["Stripe link element initialized after 20 retries - 10 seconds"],metadata:{retriesInitializeLink:this.retriesInitializeLink}})}return[3/*break*/,6];case 2:i=s.sent();if(!(i instanceof Error))return[3/*break*/,5];
160
159
  // Wait for the stripe elements to be ready with the new client secret
161
- this.retriesInitializeLink++;if(!(this.retriesInitializeLink<q))return[3/*break*/,4];return[4/*yield*/,new Promise((function(n){return setTimeout(n,500)}))];case 3:s.sent();void this.watchInitStripe();s.label=4;case 4:if(this.retriesInitializeLink===q){void x({endpoint:"stripe-link-authentication-init-error",errors:[i.message],metadata:{retriesInitializeLink:this.retriesInitializeLink}})}s.label=5;case 5:return[3/*break*/,6];case 6:return[2/*return*/]}}))}))};n.prototype.watchDefaultEmail=function(n,t){var e,i;j("Default email is changed","info",{newDefaultEmail:n,oldDefaultEmail:t});if(t===n){return}if(!n){c.stripeLinkEventData=null}
160
+ this.retriesInitializeLink++;if(!(this.retriesInitializeLink<P))return[3/*break*/,4];return[4/*yield*/,new Promise((function(n){return setTimeout(n,500)}))];case 3:s.sent();void this.watchInitStripe();s.label=4;case 4:if(this.retriesInitializeLink===P){void C({endpoint:"stripe-link-authentication-init-error",errors:[i.message],metadata:{retriesInitializeLink:this.retriesInitializeLink}})}s.label=5;case 5:return[3/*break*/,6];case 6:return[2/*return*/]}}))}))};n.prototype.watchDefaultEmail=function(n,t){var e,i;A("Default email is changed","info",{newDefaultEmail:n,oldDefaultEmail:t});if(t===n){return}if(!n){d.stripeLinkEventData=null}
162
161
  // Only set value for Stripe input input to stripeLinkEventData when checkout is in staging mode
163
- if(u.isStagingMode){this.setCustomEmailInputToLinkEvent(n||"");return}(e=c.stripeLinkElement)===null||e===void 0?void 0:e.clear();(i=c.stripeLinkElement)===null||i===void 0?void 0:i.destroy();c.stripeLinkElement=null;c.stripeLinkEventData=null;j("Reset stripe link element when default email is changed","info",{defaultEmail:n});void this.watchInitStripe()};n.prototype.disconnectedCallback=function(){
162
+ if(f.isStagingMode){this.setCustomEmailInputToLinkEvent(n||"");return}(e=d.stripeLinkElement)===null||e===void 0?void 0:e.clear();(i=d.stripeLinkElement)===null||i===void 0?void 0:i.destroy();d.stripeLinkElement=null;d.stripeLinkEventData=null;A("Reset stripe link element when default email is changed","info",{defaultEmail:n});void this.watchInitStripe()};n.prototype.disconnectedCallback=function(){
164
163
  // unsubscribe from store subscriptions
165
- try{this.storeUnsubscribeList.forEach((function(n){return n()}))}catch(n){}};n.prototype.componentDidLoad=function(){var n=this;this.storeUnsubscribeList=[h("stripeElements",(function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){void this.watchInitStripe();return[2/*return*/]}))}))})),h("clientSecret",(function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){this.clientSecret=c.clientSecret;return[2/*return*/]}))}))})),h("stripe",(function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){this.stripe=c.stripe;return[2/*return*/]}))}))}))];
164
+ try{this.storeUnsubscribeList.forEach((function(n){return n()}))}catch(n){}};n.prototype.componentDidLoad=function(){var n=this;this.storeUnsubscribeList=[u("stripeElements",(function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){void this.watchInitStripe();return[2/*return*/]}))}))})),u("clientSecret",(function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){this.clientSecret=d.clientSecret;return[2/*return*/]}))}))})),u("stripe",(function(){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(n){this.stripe=d.stripe;return[2/*return*/]}))}))}))];
166
165
  // @Watch doesn't get trigger on initial load
167
166
  void this.watchInitStripe();if(!this.defaultEmail){return}
168
167
  // set default email value to stripeLinkEventData if default email is provided
169
- this.setCustomEmailInputToLinkEvent(this.defaultEmail)};n.prototype.render=function(){var n=this;this.isStagingMode=u.isStagingMode;this.clientSecret=c.clientSecret;var t=function(){var t;if(u.isStagingMode){return i("zonos-stripe-input",{inputLabel:m("Email"),inputValue:n.defaultEmail||((t=c.stripeLinkEventData)===null||t===void 0?void 0:t.value.email)||"",isError:n.isEmailError,onBlur:function(){var t;var e=((t=c.stripeLinkEventData)===null||t===void 0?void 0:t.value.email)||"";if(!e){return}
168
+ this.setCustomEmailInputToLinkEvent(this.defaultEmail)};n.prototype.render=function(){var n=this;this.isStagingMode=f.isStagingMode;this.clientSecret=d.clientSecret;var t=function(){var t;if(f.isStagingMode){return i("zonos-stripe-input",{inputLabel:z("Email"),inputValue:n.defaultEmail||((t=d.stripeLinkEventData)===null||t===void 0?void 0:t.value.email)||"",isError:n.isEmailError,onBlur:function(){var t;var e=((t=d.stripeLinkEventData)===null||t===void 0?void 0:t.value.email)||"";if(!e){return}
170
169
  // check if the email is valid
171
- var i=T(e);n.isEmailError=!i},onInputChange:n.handleNormalEmailInput})}return i("div",{class:"zonos--link-authentication-component ".concat(n.isEmailError&&"zonos--input-invalid")})};
170
+ var i=R(e);n.isEmailError=!i},onInputChange:n.handleNormalEmailInput})}return i("div",{class:"zonos--link-authentication-component ".concat(n.isEmailError&&"zonos--input-invalid")})};
172
171
  // this component loads iframe from the stripe elements and puts here, so we don't need to do anything here
173
- return i(o,{class:"zonos--link-authentication zonos--elements",style:{"--zonos--border-radius":S()}},this.titleText&&i("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},this.titleText),t(),this.isEmailError&&i("zonos-text",{textColor:"red-600"},m("Please enter a valid email address.")))};Object.defineProperty(n.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{isStagingMode:[{watchIsStagingMode:0}],stripe:[{watchInitStripe:0}],clientSecret:[{watchInitStripe:0}],defaultEmail:[{watchDefaultEmail:0}]}},enumerable:false,configurable:true});return n}());U.style=F();var J=function(){return":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{position:fixed;inset:0;z-index:2147483010;pointer-events:none;display:block}:host .zonos--loading-overlay{position:fixed;inset:0;width:100vw;height:100vh;background:var(--zonos-elements-backdrop-color);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;opacity:0;visibility:hidden;-webkit-transition:opacity 0.3s ease, visibility 0.3s ease;transition:opacity 0.3s ease, visibility 0.3s ease;z-index:2147483010}:host(.zonos--open){pointer-events:auto}:host(.zonos--open) .zonos--loading-overlay{opacity:0.65;visibility:visible}"};var Q=n("zonos_loading_overlay",/** @class */function(){function n(n){t(this,n);
172
+ return i(o,{class:"zonos--link-authentication zonos--elements",style:{"--zonos--border-radius":E()}},this.titleText&&i("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},this.titleText),t(),this.isEmailError&&i("zonos-text",{textColor:"red-600"},z("Please enter a valid email address.")))};Object.defineProperty(n.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(n,"watchers",{get:function(){return{isStagingMode:[{watchIsStagingMode:0}],stripe:[{watchInitStripe:0}],clientSecret:[{watchInitStripe:0}],defaultEmail:[{watchDefaultEmail:0}]}},enumerable:false,configurable:true});return n}());F.style=q();var U=function(){return":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{position:fixed;inset:0;z-index:2147483010;pointer-events:none;display:block}:host .zonos--loading-overlay{position:fixed;inset:0;width:100vw;height:100vh;background:var(--zonos-elements-backdrop-color);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;opacity:0;visibility:hidden;-webkit-transition:opacity 0.3s ease, visibility 0.3s ease;transition:opacity 0.3s ease, visibility 0.3s ease;z-index:2147483010}:host(.zonos--open){pointer-events:auto}:host(.zonos--open) .zonos--loading-overlay{opacity:0.65;visibility:visible}"};var W=n("zonos_loading_overlay",/** @class */function(){function n(n){t(this,n);
174
173
  /**
175
174
  * Whether or not the overlay is open
176
175
  * @default false
177
176
  */this.open=false;
178
177
  /**
179
178
  * Spinner size (optional, default 40)
180
- */this.size=40}n.prototype.render=function(){return i(o,{key:"8cafd99b309b04da5cf1b26b0f0804f4699c06b2",class:I(["zonos--elements",this.open&&"zonos--open"])},i("div",{key:"9ce7ac9b7e6956a5f76fc2105fa7f5d05299fd36",class:"zonos--loading-overlay"},i("zonos-spinner",{key:"4be3a8d471e3aead2e4194c4ecbf66878a7a3f17",size:this.size,spinnerColor:this.spinnerColor})))};return n}());Q.style=J()}}}));
179
+ */this.size=40}n.prototype.render=function(){return i(o,{key:"8cafd99b309b04da5cf1b26b0f0804f4699c06b2",class:j(["zonos--elements",this.open&&"zonos--open"])},i("div",{key:"9ce7ac9b7e6956a5f76fc2105fa7f5d05299fd36",class:"zonos--loading-overlay"},i("zonos-spinner",{key:"4be3a8d471e3aead2e4194c4ecbf66878a7a3f17",size:this.size,spinnerColor:this.spinnerColor})))};return n}());W.style=U()}}}));
@@ -0,0 +1 @@
1
+ import{r as o,e as t,h as s,a as e}from"./p-_lt63o7c.js";import{d as a}from"./p-BMPYH-LT.js";import{c as n}from"./p-ByGDytaN.js";import{a as r}from"./p-CqB9AfBf.js";import{c as i}from"./p-BJHSB96f.js";import{s as h}from"./p-BTIeCf3T.js";import"./p-CTiqplrr.js";import"./p-DE4a-QD5.js";import"./p-BJmZPrZl.js";import"./p-Dwg61Ft_.js";import"./p-DMIgN_sT.js";import"./p-YdrG78th.js";import"./p-r-YGHhLa.js";const l=class{constructor(t){o(this,t),this.errorImages=[]}render(){const o=t("./assets/empty-item.jpeg"),r=a.items.filter((o=>!o.isRestricted));return s(e,{key:"5a60fed50f3e58629cb85103d9c0ba52a3b88aa0",class:"zonos--collect-cart-items zonos--elements"},s("table",{key:"b1c10fa45ebe5404354284d64abb6460242f1463",class:"zonos--cart-table"},s("tbody",{key:"1306747328419b524058be1cb04b6c0098c9ea89"},r.map((t=>{const e=t.imageUrl,a=n(t.name);return s("tr",{class:"zonos--collect-cart-item"},s("td",{class:"zonos--column zonos--cart-item-image"},e&&!this.errorImages.includes(e)?s("img",{alt:t.name,onError:()=>{this.errorImages=[...this.errorImages,e]},src:t.imageUrl,style:{"min-width":"40px"},width:40}):s("img",{alt:t.name,src:o,width:40})),s("td",{class:"zonos--column zonos--cart-item-name"},s("div",null,a.map((o=>s("zonos-text",{type:"semiBoldLabel"},o))))))})))))}static get assetsDirs(){return["assets"]}};l.style=":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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:first-child{width:48px}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px;-webkit-box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);box-shadow:0 0 0 1px rgba(110, 110, 120, 0.1), 0 1px 2px 0 rgba(10, 10, 11, 0.06), 0 1px 3px 0 rgba(10, 10, 11, 0.1);border-radius:10px}";const m=class{constructor(t){o(this,t),this.spacing=24}render(){return s(e,{key:"1b810737fd49ee23a1d9ce845049efa6782f5a16",style:{"--spacing":`${this.spacing}px`,"--zonos--font-family":r()}},s("slot",{key:"64b114c99ecd5d6b953e5ce77f7d2a820f32cd36"}))}};m.style=":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{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--spacing, 24px)}";const c=class{constructor(t){o(this,t),this.skeletonWidth="100%",this.skeletonHeight="14px"}render(){return s(e,{key:"ba8efa50f345f97a2cf905068ff2d8d05557209e",class:i(["zonos--elements zonos--skeleton"]),style:h({"--zonos--skeleton-height":this.skeletonHeight,"--zonos--skeleton-width":this.skeletonWidth})})}};c.style=":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{display:inline-block;background:var(--zonos-elements-gray-200);border-radius:var(--zonos-elements-radius-12);width:var(--zonos--skeleton-width);height:var(--zonos--skeleton-height);min-height:var(--zonos--skeleton-height);max-width:100%}";export{l as zonos_collect_cart_items,m as zonos_h_stack,c as zonos_skeleton}
@@ -1,7 +1,7 @@
1
- System.register(["./p-CIevpRv_.system.js","./p-DS-qw_qc.system.js","./p-DOD2I44l.system.js","./p-kaOxUR9u.system.js","./p-C2j7R11h.system.js","./p-D4MevhAL.system.js","./p-CeLaK0Ff.system.js","./p-BuU_p5DP.system.js","./p-BbgqQIHv.system.js","./p-zVLAvre1.system.js","./p-DW-fW8yR.system.js","./p-DQZncB2d.system.js","./p-Cby4EkFu.system.js"],(function(o){"use strict";var t,s,e,n,i,a,l,c,r;return{setters:[function(o){t=o.r;s=o.h;e=o.a},function(o){n=o.d},function(o){i=o.t},function(o){a=o.r},function(o){l=o.c},function(o){c=o.c},function(o){r=o.r},null,null,null,null,null,null],execute:function(){var h=function(){return":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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right;padding-right:0}:host .zonos--cart-table .zonos--column:first-child{padding-left:0;width:50px}:host .zonos--cart-table .zonos--cart-item-link{text-align:left}:host .zonos--cart-table .zonos--cart-item-created-at{text-align:right}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host(.mobile) table{margin-top:16px}:host(.mobile) table td{vertical-align:top}"};var f=o("zonos_invoice_cart_items",/** @class */function(){function o(o){t(this,o);
1
+ System.register(["./p-CIevpRv_.system.js","./p-DprOoI2W.system.js","./p-6vSUiBfr.system.js","./p-CGNVm52g.system.js","./p-C2j7R11h.system.js","./p-CbhN65lj.system.js","./p-CeLaK0Ff.system.js","./p-DTgUqgwV.system.js","./p-BbgqQIHv.system.js","./p-CzKlS3E-.system.js","./p-DsBuZ6ob.system.js","./p-zVLAvre1.system.js","./p-DW-fW8yR.system.js","./p-zsTASoh2.system.js"],(function(o){"use strict";var t,s,e,n,i,a,l,c,r;return{setters:[function(o){t=o.r;s=o.h;e=o.a},function(o){n=o.d},function(o){i=o.t},function(o){a=o.r},function(o){l=o.c},function(o){c=o.c},function(o){r=o.r},null,null,null,null,null,null,null],execute:function(){var h=function(){return":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--cart-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column{padding:8px;padding-left:0;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right;padding-right:0}:host .zonos--cart-table .zonos--column:first-child{padding-left:0;width:50px}:host .zonos--cart-table .zonos--cart-item-link{text-align:left}:host .zonos--cart-table .zonos--cart-item-created-at{text-align:right}:host .zonos--cart-table td{vertical-align:middle}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host(.mobile) table{margin-top:16px}:host(.mobile) table td{vertical-align:top}"};var f=o("zonos_invoice_cart_items",/** @class */function(){function o(o){t(this,o);
2
2
  /**
3
3
  * Whether the component is mobile
4
- */this.isMobile=false;this.errorImages=[];this.locale=null}o.prototype.componentWillLoad=function(){var o=navigator.language;this.locale=o};o.prototype.render=function(){var o=this;var t=n.items.filter((function(o){return!o.isRestricted}));return s(e,{key:"48cbe765b1096303cf0f2b051b0bac3911fba19b",class:l(["zonos--invoice-cart-items zonos--elements",this.isMobile&&"mobile"])},s("table",{key:"83a2f9d2de381d1f941f5d09681b3a8e58a38a08",class:"zonos--cart-table"},s("tbody",{key:"5fbce46a1069457eb578ea737b42f05982aa5867"},t.map((function(t){var e,n,l,c;var r=(n=(e=t.attributes)===null||e===void 0?void 0:e.find((function(o){return o.key==="invoiceId"||o.key==="INVOICE_ID"})))===null||n===void 0?void 0:n.value;var h=(c=(l=t.attributes)===null||l===void 0?void 0:l.find((function(o){return o.key==="invoiceCreatedAt"})))===null||c===void 0?void 0:c.value;var f=h&&o.locale?new Date(h).toLocaleDateString(o.locale,{day:"numeric",month:"long",year:"numeric"}):null;var d=r?"https://dashboard.zonos.com/billing/invoices/".concat(r):null;return s("tr",{class:"zonos--invoice-cart-item"},s("td",{class:"zonos--column zonos--cart-item-title"},s("zonos-text",{type:"semiBoldLabel"},i("Invoice:"))),s("td",{class:"zonos--column zonos--cart-item-link"},d&&r&&s("zonos-link",{href:d},r),o.isMobile&&s("zonos-text",{type:"caption"},f)),s("td",{class:"zonos--column zonos--cart-item-created-at"},!o.isMobile&&s("zonos-text",{type:"label"},f)),s("td",{class:"zonos--column zonos--cart-item-price"},s("zonos-text",{type:"label"},a({amount:t.amount,isForeign:false}))))})))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());f.style=h();var d=function(){return":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{position:-webkit-sticky;position:sticky;bottom:60px}:host .zonos--invoice-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--invoice-table .zonos--column{padding:8px 8px;vertical-align:top}:host .zonos--invoice-table .zonos--column:last-child{text-align:right;padding-right:0}:host .zonos--invoice-table .zonos--column:first-child{width:60px;max-width:100px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px}:host .zonos--invoice-subtotal-price{text-align:right}:host .zonos--invoice-subtotal-price zonos-text{white-space:nowrap}:host .zonos--invoice-total .zonos--column{padding:16px 0}:host .zonos--invoice-total .zonos--invoice-subtotal-title,:host .zonos--invoice-total .zonos--invoice-subtotal-price{border-top:1px solid var(--zonos-elements-gray-200)}:host .zonos--invoice-subtotal-price zonos-text,:host .zonos--invoice-pay-total zonos-text{white-space:nowrap}:host(.mobile){position:relative;bottom:0}"};var u=o("zonos_invoice_subtotal",/** @class */function(){function o(o){t(this,o);
4
+ */this.isMobile=false;this.errorImages=[];this.locale=null}o.prototype.componentWillLoad=function(){var o=navigator.language;this.locale=o};o.prototype.render=function(){var o=this;var t=n.items.filter((function(o){return!o.isRestricted}));return s(e,{key:"48cbe765b1096303cf0f2b051b0bac3911fba19b",class:l(["zonos--invoice-cart-items zonos--elements",this.isMobile&&"mobile"])},s("table",{key:"83a2f9d2de381d1f941f5d09681b3a8e58a38a08",class:"zonos--cart-table"},s("tbody",{key:"5fbce46a1069457eb578ea737b42f05982aa5867"},t.map((function(t){var e,n,l,c;var r=(n=(e=t.attributes)===null||e===void 0?void 0:e.find((function(o){return o.key==="invoiceId"||o.key==="INVOICE_ID"})))===null||n===void 0?void 0:n.value;var h=(c=(l=t.attributes)===null||l===void 0?void 0:l.find((function(o){return o.key==="invoiceCreatedAt"})))===null||c===void 0?void 0:c.value;var f=h&&o.locale?new Date(h).toLocaleDateString(o.locale,{day:"numeric",month:"long",year:"numeric"}):null;var d=r?"https://dashboard.zonos.com/billing/invoices/".concat(r):null;return s("tr",{class:"zonos--invoice-cart-item"},s("td",{class:"zonos--column zonos--cart-item-title"},s("zonos-text",{type:"semiBoldLabel"},i("Invoice:"))),s("td",{class:"zonos--column zonos--cart-item-link"},d&&r&&s("zonos-link",{href:d},r),o.isMobile&&s("zonos-text",{type:"caption"},f)),s("td",{class:"zonos--column zonos--cart-item-created-at"},!o.isMobile&&s("zonos-text",{type:"label"},f)),s("td",{class:"zonos--column zonos--cart-item-price"},s("zonos-text",{type:"label"},a({amount:t.amount,isForeign:false}))))})))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());f.style=h();var d=function(){return":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{position:-webkit-sticky;position:sticky;bottom:60px}:host .zonos--invoice-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--invoice-table .zonos--column{padding:8px 8px;vertical-align:top}:host .zonos--invoice-table .zonos--column:last-child{text-align:right;padding-right:0}:host .zonos--invoice-table .zonos--column:first-child{width:60px;max-width:100px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px}:host .zonos--invoice-subtotal-price{text-align:right}:host .zonos--invoice-subtotal-price zonos-text{white-space:nowrap}:host .zonos--invoice-total .zonos--column{padding:16px 0}:host .zonos--invoice-total .zonos--invoice-subtotal-title,:host .zonos--invoice-total .zonos--invoice-subtotal-price{border-top:1px solid var(--zonos-elements-gray-200)}:host .zonos--invoice-subtotal-price zonos-text,:host .zonos--invoice-pay-total zonos-text{white-space:nowrap}:host(.mobile){position:relative;bottom:0}"};var m=o("zonos_invoice_subtotal",/** @class */function(){function o(o){t(this,o);
5
5
  /**
6
6
  * Whether the component is mobile
7
- */this.isMobile=false}o.prototype.render=function(){return s(e,{key:"b98712b01891581bb2b64f5afd82711f7d41b585",class:l(["zonos--invoice-subtotal zonos--elements",this.isMobile&&"mobile"])},s("table",{key:"ea7242545b5aa891a5214d426a96fa51ed8d5b5c",class:"zonos--invoice-table"},s("tr",{key:"7aef27c5154017fd322869c514dc20c42009a855",class:"zonos--row zonos--invoice-total"},s("td",{key:"60c5689c39d962b6c5a415bb93243259c815bfad",class:"zonos--column"}),s("td",{key:"b5886f54449738b01fa7a2884f7101a2f910dd21",class:"zonos--column zonos--invoice-subtotal-title"},s("zonos-text",{key:"1689b03f73918e7c2b6d3e1ef458473e817ac54c",type:"semiBoldLabel"},i("Payment total"))),s("td",{key:"f456cd24f03fe451814a7f0de609eed2ad761530",class:"zonos--column zonos--invoice-subtotal-price"},r({content:s("zonos-text",{type:"semiBoldLabel"},a({amount:c.amountTotalDue||0,isForeign:true})),isLoading:c.isFetchingPayorInfo,skeletonHeight:"14px",skeletonWidth:"150px"})))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());u.style=d()}}}));
7
+ */this.isMobile=false}o.prototype.render=function(){return s(e,{key:"b98712b01891581bb2b64f5afd82711f7d41b585",class:l(["zonos--invoice-subtotal zonos--elements",this.isMobile&&"mobile"])},s("table",{key:"ea7242545b5aa891a5214d426a96fa51ed8d5b5c",class:"zonos--invoice-table"},s("tr",{key:"7aef27c5154017fd322869c514dc20c42009a855",class:"zonos--row zonos--invoice-total"},s("td",{key:"60c5689c39d962b6c5a415bb93243259c815bfad",class:"zonos--column"}),s("td",{key:"b5886f54449738b01fa7a2884f7101a2f910dd21",class:"zonos--column zonos--invoice-subtotal-title"},s("zonos-text",{key:"1689b03f73918e7c2b6d3e1ef458473e817ac54c",type:"semiBoldLabel"},i("Payment total"))),s("td",{key:"f456cd24f03fe451814a7f0de609eed2ad761530",class:"zonos--column zonos--invoice-subtotal-price"},r({content:s("zonos-text",{type:"semiBoldLabel"},a({amount:c.amountTotalDue||0,isForeign:true})),isLoading:c.isFetchingPayorInfo,skeletonHeight:"14px",skeletonWidth:"150px"})))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}());m.style=d()}}}));
@@ -1 +1 @@
1
- import{r as e,h as s,a as t}from"./p-_lt63o7c.js";import{z as o,a as i}from"./p-W82paT5F.js";import{c as n}from"./p-BJHSB96f.js";import{i as a}from"./p-DXXUq2Lv.js";import{s as l}from"./p-BTIeCf3T.js";import"./p-BJmZPrZl.js";const h={pageHeader:{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",weight:900},secondaryPageHeader:{label:'Secondary Page Header (3XL) • 34px, 500 "Medium"',size:"3xl",tag:"h2",weight:500},header:{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},descriptionHeader:{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},title:{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",weight:600},boldSubheader:{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:700},semiBoldSubheader:{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",weight:600},subheader:{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:500},boldLabel:{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:700},semiBoldLabel:{label:"Semi Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:600},label:{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:500},body:{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",weight:400},smallHeader:{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",weight:600},caption:{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",weight:400},hintText:{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",weight:400}},z=class{constructor(s){e(this,s),this.textColor="gray-1000",this.type="body",this.ready=!1}componentDidRender(){setTimeout((()=>{this.ready=!0}),100)}render(){const{size:e,tag:z,weight:r}=h.body,{size:x,tag:g,weight:m}=h[this.type],p=this.size||x||e,f=this.weight||m||r,d=g||z,b=a(this.textColor)?`var(--zonos-elements-${this.textColor})`:this.textColor;return s(t,{class:n(["zonos--elements",`zonos--text-size-${p}`,`zonos--text-weight-${f}`]),style:l({"--zonos--color":b,"--zonos--font-family":i(),"--zonos--font-size-2xl":o.appearance.fontSize2XL?`${o.appearance.fontSize2XL}px`:void 0,"--zonos--font-size-3xl":o.appearance.fontSize3XL?`${o.appearance.fontSize3XL}px`:void 0,"--zonos--font-size-base":o.appearance.fontSizeBase?`${o.appearance.fontSizeBase}px`:void 0,"--zonos--font-size-l":o.appearance.fontSizeL?`${o.appearance.fontSizeL}px`:void 0,"--zonos--font-size-s":o.appearance.fontSizeS?`${o.appearance.fontSizeS}px`:void 0,"--zonos--font-size-xl":o.appearance.fontSizeXL?`${o.appearance.fontSizeXL}px`:void 0,"--zonos--font-size-xs":o.appearance.fontSizeXS?`${o.appearance.fontSizeXS}px`:void 0})},(()=>{switch(d){case"h2":return s("h2",null,s("slot",null));case"h3":return s("h3",null,s("slot",null));case"h4":return s("h4",null,s("slot",null));case"h5":return s("h5",null,s("slot",null));default:return s("span",null,s("slot",null))}})())}};z.style=":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{color:var(--zonos--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos--font-size-3xl, var(--zonos-elements-font-size-3xl))}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos--font-size-2xl, var(--zonos-elements-font-size-2xl));line-height:32px}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos--font-size-xl, var(--zonos-elements-font-size-xl))}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos--font-size-l, var(--zonos-elements-font-size-l))}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos--font-size-base, var(--zonos-elements-font-size-base))}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos--font-size-s, var(--zonos-elements-font-size-s))}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos--font-size-xs, var(--zonos-elements-font-size-xs))}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";export{z as zonos_text}
1
+ import{r as e,h as s,a as t}from"./p-_lt63o7c.js";import{z as o,a as i}from"./p-CqB9AfBf.js";import{c as n}from"./p-BJHSB96f.js";import{i as a}from"./p-DXXUq2Lv.js";import{s as l}from"./p-BTIeCf3T.js";import"./p-BJmZPrZl.js";const h={pageHeader:{label:"Page Header (3XL) · 34px (2.125rem)",size:"3xl",tag:"h2",weight:900},secondaryPageHeader:{label:'Secondary Page Header (3XL) • 34px, 500 "Medium"',size:"3xl",tag:"h2",weight:500},header:{label:"Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},descriptionHeader:{label:"Description Header (2XL) · 28px (1.75rem)",size:"2xl",tag:"h3",weight:700},title:{label:"Title (XL) • 22px (1.375rem)",size:"xl",tag:"h4",weight:600},boldSubheader:{label:"Bold Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:700},semiBoldSubheader:{label:"Semi Bold Subheader (L / H4) • 18px (1.125rem)",size:"l",tag:"h5",weight:600},subheader:{label:"Subheader (L) • 18px (1.125rem)",size:"l",tag:"h5",weight:500},boldLabel:{label:"Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:700},semiBoldLabel:{label:"Semi Bold Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:600},label:{label:"Label (Base) • 14px (.875rem)",size:"base",tag:"span",weight:500},body:{label:"Body (Base) • 14px (.875rem)",size:"base",tag:"span",weight:400},smallHeader:{label:"Small header (S) • 12px (.75rem)",size:"s",tag:"span",weight:600},caption:{label:"Caption (S) • 12px (.75rem)",size:"s",tag:"span",weight:400},hintText:{label:"Hint text (XS) • 10px (.625rem)",size:"xs",tag:"span",weight:400}},z=class{constructor(s){e(this,s),this.textColor="gray-1000",this.type="body",this.ready=!1}componentDidRender(){setTimeout((()=>{this.ready=!0}),100)}render(){const{size:e,tag:z,weight:r}=h.body,{size:x,tag:g,weight:f}=h[this.type],m=this.size||x||e,p=this.weight||f||r,d=g||z,b=a(this.textColor)?`var(--zonos-elements-${this.textColor})`:this.textColor;return s(t,{class:n(["zonos--elements",`zonos--text-size-${m}`,`zonos--text-weight-${p}`]),style:l({"--zonos--color":b,"--zonos--font-family":i(),"--zonos--font-size-2xl":o.appearance.fontSize2XL?`${o.appearance.fontSize2XL}px`:void 0,"--zonos--font-size-3xl":o.appearance.fontSize3XL?`${o.appearance.fontSize3XL}px`:void 0,"--zonos--font-size-base":o.appearance.fontSizeBase?`${o.appearance.fontSizeBase}px`:void 0,"--zonos--font-size-l":o.appearance.fontSizeL?`${o.appearance.fontSizeL}px`:void 0,"--zonos--font-size-s":o.appearance.fontSizeS?`${o.appearance.fontSizeS}px`:void 0,"--zonos--font-size-xl":o.appearance.fontSizeXL?`${o.appearance.fontSizeXL}px`:void 0,"--zonos--font-size-xs":o.appearance.fontSizeXS?`${o.appearance.fontSizeXS}px`:void 0})},(()=>{switch(d){case"h2":return s("h2",null,s("slot",null));case"h3":return s("h3",null,s("slot",null));case"h4":return s("h4",null,s("slot",null));case"h5":return s("h5",null,s("slot",null));default:return s("span",null,s("slot",null))}})())}};z.style=":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{color:var(--zonos--color)}:host(.zonos--text-size-3xl)>*,:host(.zonos--text-size-3xl){font-size:var(--zonos--font-size-3xl, var(--zonos-elements-font-size-3xl))}:host(.zonos--text-size-2xl)>*,:host(.zonos--text-size-2xl){font-size:var(--zonos--font-size-2xl, var(--zonos-elements-font-size-2xl));line-height:32px}:host(.zonos--text-size-xl)>*,:host(.zonos--text-size-xl){font-size:var(--zonos--font-size-xl, var(--zonos-elements-font-size-xl))}:host(.zonos--text-size-l)>*,:host(.zonos--text-size-l){font-size:var(--zonos--font-size-l, var(--zonos-elements-font-size-l))}:host(.zonos--text-size-base)>*,:host(.zonos--text-size-base){font-size:var(--zonos--font-size-base, var(--zonos-elements-font-size-base))}:host(.zonos--text-size-s)>*,:host(.zonos--text-size-s){font-size:var(--zonos--font-size-s, var(--zonos-elements-font-size-s))}:host(.zonos--text-size-xs)>*,:host(.zonos--text-size-xs){font-size:var(--zonos--font-size-xs, var(--zonos-elements-font-size-xs))}:host(.zonos--text-weight-900)>*,:host(.zonos--text-weight-900){font-weight:900}:host(.zonos--text-weight-700)>*,:host(.zonos--text-weight-700){font-weight:700}:host(.zonos--text-weight-600)>*,:host(.zonos--text-weight-600){font-weight:600}:host(.zonos--text-weight-500)>*,:host(.zonos--text-weight-500){font-weight:500}:host(.zonos--text-weight-400)>*,:host(.zonos--text-weight-400){font-weight:400}";export{z as zonos_text}
@@ -1 +1 @@
1
- import{r as e,h as o,a as s}from"./p-_lt63o7c.js";import{D as t,t as a,A as n,l}from"./p-clDfq9AL.js";import{a as i}from"./p-W82paT5F.js";import"./p-DE4a-QD5.js";import"./p-BJmZPrZl.js";const c=class{constructor(o){e(this,o),this.handleOnClose=()=>{},this.languageSelected=e=>{t(e),this.handleOnClose()}}render(){const{selectedLocale:e}=l;return o(s,{key:"b557082e699209af33ab25715d5cb23fb8a20f56",class:"zonos--elements",style:{"--zonos--font-family":i()}},o("div",{key:"f5fa8a8163aa46589d67df8d7b69a9b60c7c3994",class:"zonos--language-select"},o("zonos-select-dialog-header",{key:"7ffc14b7fab4014352361424de6ea6e2fc8d7f6c",handleOnClose:()=>this.handleOnClose(),label:a("Select a language")}),o("div",{key:"ab06dd27d199ef7223ce4421ab4d4e7a5816e402",class:"zonos--language-select-content"},n().map((s=>o("button",{class:"zonos--language-select-button",onClick:()=>this.languageSelected(s.code)},o("zonos-text",{textColor:"gray-800"},s.translatedLabel),s.code===e&&o("zonos-icon",{content:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n',size:16})))))))}};c.style=":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--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";const d=class{constructor(o){e(this,o),this.handleOnClose=()=>{},this.label=""}render(){return o(s,{key:"2c3fe65b8226875d1e543d87d622a2356c975bae",class:"zonos--elements",style:{"--zonos--font-family":i()}},o("zonos-v-stack",{key:"7e065cce508376405350d8cf0b90437c5bbbd6e9",class:"zonos--select-dialog-header-wrapper",spacing:8},o("div",{key:"363ff8e4b18b50497b904af45bcf62ae374f90de",class:"zonos--select-dialog-header"},o("zonos-text",{key:"5b3833d7186579859d067c205ab3cb70bf01ed99",type:"boldLabel"},this.label),o("zonos-button",{key:"7dd27337e33c3d97544696a8d850204296474f5e",class:"zonos--close-button",icon:o("zonos-icon",{"aria-label":"Close select dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>',size:20}),noBackground:!0,onClick:()=>this.handleOnClose()})),o("slot",{key:"a5f6b16ecc6a1fb8c24bd783f0384d3506656f01"})))}};d.style=":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--select-dialog-header-wrapper{position:-webkit-sticky;position:sticky;top:0;background:var(--zonos-elements-surface-color);padding:16px}:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header{position:relative;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";export{c as zonos_language_select,d as zonos_select_dialog_header}
1
+ import{r as e,h as o,a as s}from"./p-_lt63o7c.js";import{D as t,t as a,A as n,l}from"./p-CTiqplrr.js";import{a as i}from"./p-CqB9AfBf.js";import"./p-DE4a-QD5.js";import"./p-BJmZPrZl.js";const c=class{constructor(o){e(this,o),this.handleOnClose=()=>{},this.languageSelected=e=>{t(e),this.handleOnClose()}}render(){const{selectedLocale:e}=l;return o(s,{key:"b557082e699209af33ab25715d5cb23fb8a20f56",class:"zonos--elements",style:{"--zonos--font-family":i()}},o("div",{key:"f5fa8a8163aa46589d67df8d7b69a9b60c7c3994",class:"zonos--language-select"},o("zonos-select-dialog-header",{key:"7ffc14b7fab4014352361424de6ea6e2fc8d7f6c",handleOnClose:()=>this.handleOnClose(),label:a("Select a language")}),o("div",{key:"ab06dd27d199ef7223ce4421ab4d4e7a5816e402",class:"zonos--language-select-content"},n().map((s=>o("button",{class:"zonos--language-select-button",onClick:()=>this.languageSelected(s.code)},o("zonos-text",{textColor:"gray-800"},s.translatedLabel),s.code===e&&o("zonos-icon",{content:'<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.99996 2.6665C5.05444 2.6665 2.66663 5.05432 2.66663 7.99984C2.66663 10.9454 5.05444 13.3332 7.99996 13.3332C10.9455 13.3332 13.3333 10.9454 13.3333 7.99984C13.3333 5.05432 10.9455 2.6665 7.99996 2.6665Z" fill="#AFF8C3"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.1403 6.10535C10.3582 6.27488 10.3975 6.58902 10.228 6.80699L8.01055 9.65797C7.76436 9.97449 7.29646 10.0036 7.01291 9.72008L5.81307 8.52024C5.61781 8.32498 5.61781 8.0084 5.81307 7.81314C6.00833 7.61787 6.32492 7.61787 6.52018 7.81314L7.45301 8.74597L9.43862 6.19305C9.60815 5.97508 9.92229 5.93581 10.1403 6.10535Z" fill="#246627"/>\n</svg>\n',size:16})))))))}};c.style=":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--language-select{width:100%}:host .zonos--language-select .zonos--language-select-content{display:grid;grid-template-columns:repeat(3, minmax(-webkit-max-content, 1fr));grid-template-columns:repeat(3, minmax(max-content, 1fr));padding:16px;padding-top:0px}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button{display:-ms-flexbox;display:flex;padding:8px;gap:4px;-ms-flex-align:center;align-items:center;border-radius:var(--zonos-elements-radius-4);cursor:pointer;width:100%;border:none;background:none}:host .zonos--language-select .zonos--language-select-content .zonos--language-select-button:hover{background:var(--zonos-elements-gray-100)}@media (max-width: 400px){:host .zonos--language-select .zonos--language-select-content{grid-template-columns:1fr 1fr}}";const r=class{constructor(o){e(this,o),this.handleOnClose=()=>{},this.label=""}render(){return o(s,{key:"2c3fe65b8226875d1e543d87d622a2356c975bae",class:"zonos--elements",style:{"--zonos--font-family":i()}},o("zonos-v-stack",{key:"7e065cce508376405350d8cf0b90437c5bbbd6e9",class:"zonos--select-dialog-header-wrapper",spacing:8},o("div",{key:"363ff8e4b18b50497b904af45bcf62ae374f90de",class:"zonos--select-dialog-header"},o("zonos-text",{key:"5b3833d7186579859d067c205ab3cb70bf01ed99",type:"boldLabel"},this.label),o("zonos-button",{key:"7dd27337e33c3d97544696a8d850204296474f5e",class:"zonos--close-button",icon:o("zonos-icon",{"aria-label":"Close select dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>',size:20}),noBackground:!0,onClick:()=>this.handleOnClose()})),o("slot",{key:"a5f6b16ecc6a1fb8c24bd783f0384d3506656f01"})))}};r.style=":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--select-dialog-header-wrapper{position:-webkit-sticky;position:sticky;top:0;background:var(--zonos-elements-surface-color);padding:16px}:host .zonos--select-dialog-header-wrapper .zonos--select-dialog-header{position:relative;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}";export{c as zonos_language_select,r as zonos_select_dialog_header}
@@ -0,0 +1 @@
1
+ import{r as t,d as e,h as o,a as i}from"./p-_lt63o7c.js";import{b as n}from"./p-BMPYH-LT.js";import{m as s,n as r,o as c,s as l,d as a}from"./p-CTiqplrr.js";import{z as d,a as u,b as h}from"./p-CqB9AfBf.js";import{g as p,i as m,a as f}from"./p-HeAZDwVW.js";import{h as w,l as v}from"./p-DE4a-QD5.js";import{l as g}from"./p-BJmZPrZl.js";import{e as y}from"./p-D1e9zNDA.js";import"./p-Dwg61Ft_.js";import"./p-DMIgN_sT.js";import"./p-YdrG78th.js";import"./p-r-YGHhLa.js";const S="zonos-domestic-element-hide-style",b="undefined"!=typeof document&&(()=>{try{return document.querySelector(":is(.zonos-is-probe)"),!0}catch(t){return!1}})(),z=t=>{const e=document.querySelector(t);if(!document.querySelector("zonos-hello")&&e){const t=document.createElement("zonos-hello");return e.appendChild(t),!0}return!1},j=t=>{switch(t){case"BOTTOM_RIGHT":default:return"bottom-right";case"BOTTOM_LEFT":return"bottom-left";case"TOP_LEFT":return"top-left";case"TOP_RIGHT":return"top-right"}},I=({position:t="bottom-right"})=>{const e=".zonos--hello-mobile-wrapper";if(document.querySelector(e))return e;const o=document.createElement("div");return o.className="zonos--hello-mobile-wrapper",o.style.position="fixed","top-right"===t&&(o.style.top="72px",o.style.right="24px"),"top-left"===t&&(o.style.top="72px",o.style.left="24px"),"bottom-right"===t&&(o.style.bottom="72px",o.style.right="24px"),"bottom-left"===t&&(o.style.bottom="72px",o.style.left="24px"),o.style.zIndex="2147483647",document.body.appendChild(o),e},O=async t=>{if(window.Zonos.isLegacyCheckout)return void g("Hello is disabled when isLegacyCheckout","info");const{anchorElementSelector:e}=t;let o=e;if(!t.anchorElementSelector&&t.desktopLocation){const t=I({position:"bottom-right"});o=t}if(o&&r(o)){if(g("Hello init complete"),!z(o)){const e=new MutationObserver((()=>{z(o)&&e.disconnect()}));e.observe(document.body,{childList:!0,subtree:!0}),setTimeout((()=>{z(o)}),1e3),setTimeout((()=>{if(t.notFoundElementFallback){g(`Hello anchor selector ${t.anchorElementSelector} not found after 3 seconds, falling back to 'notFoundElementFallback': ${t.notFoundElementFallback}`,"info");const e=I({position:j(t.notFoundElementFallback)});z(e)}}),3e3)}}else v(`Selector anchorElementSelector "${t.anchorElementSelector}" is not a valid selector.`)};class C{constructor(t,e){this.targetId=t,this.allowedEvents=e,this.listeners=new Map,this.handleMessage=t=>{var e,o,i;const n=t.data,s=(null===(e=this.iframe)||void 0===e?void 0:e.contentWindow)||(null===(i=null===(o=this.iframe)||void 0===o?void 0:o.contentDocument)||void 0===i?void 0:i.defaultView);if(t.source!==s)return;if(!this.isValidMessage(n))return;const r=this.listeners.get(n.type);null==r||r.forEach((t=>{try{t(n.payload)}catch(t){v("Error in event listener:",t)}}))},this.initializeEventListeners(),this.iframe=document.getElementById(this.targetId)}initializeEventListeners(){window.addEventListener("message",this.handleMessage)}isValidMessage(t){if(!t||"object"!=typeof t)return!1;const e=t;return e.id===this.targetId&&"string"==typeof e.type&&this.allowedEvents.includes(e.type)&&void 0!==e.payload}on(t,e){this.listeners.has(t)||this.listeners.set(t,new Set),g(`[CheckoutAddressService] listening to ${t}`,"info");const o=e,i=this.listeners.get(t);return i&&i.add(o),()=>{const e=this.listeners.get(t);e&&e.delete(o)}}destroy(){window.removeEventListener("message",this.handleMessage),this.listeners.clear()}}class k extends C{constructor(){g("=== [Google Places Service] Initializing","info"),super(m.GOOGLE_PLACES,["fetchAutocompleteSuggestions","initializeGooglePlacesService","placeSelected","onFetchAutocompleteSuggestions","onInitializeGooglePlacesService","onPlaceSelected"])}sendMessage(t,e){var o;if(!(null===(o=this.iframe)||void 0===o?void 0:o.contentWindow))return;const i={id:this.targetId,logType:window.Zonos.iframeLogType,payload:e,type:t};g(`GooglePlacesService] parent --\x3e ${t}`,"info",e),this.iframe.contentWindow.postMessage(i,"*")}initialize(){this.sendMessage("initializeGooglePlacesService",{})}fetchSuggestions({country:t,query:e,type:o}){t&&this.sendMessage("fetchAutocompleteSuggestions",{request:{includedRegionCodes:[t],input:e},type:o})}selectPlace({placeId:t,type:e}){this.sendMessage("placeSelected",{placeId:t,type:e})}}class A{constructor(){this.googlePlaceInitialized=!1,g("=== [CheckoutAddressService] Initializing","info"),this.googlePlaces=new k,this.googlePlaces.on("onInitializeGooglePlacesService",(()=>{g("=== [CheckoutAddressService] parent <-- onInitializeGooglePlacesService","info"),this.googlePlaceInitialized=!0})),this.initialize()}initialize(){this.googlePlaces.initialize()}onInitializeGooglePlacesService(t){return this.googlePlaces.on("onInitializeGooglePlacesService",(()=>{g("[CheckoutAddressService] parent <-- onInitializeGooglePlacesService"),t()}))}isGooglePlaceInitialized(){return this.googlePlaceInitialized}onAddressSuggestions(t){return this.suggestionsCallback=t,this.googlePlaces.on("onFetchAutocompleteSuggestions",((...e)=>{g(`[CheckoutAddressService] parent <-- onFetchAutocompleteSuggestions ${e[0].type}`,"info",...e),t(...e)}))}onAddressSelected(t){return this.placeSelectedCallback=t,this.googlePlaces.on("onPlaceSelected",((...e)=>{g(`[CheckoutAddressService] parent <-- onPlaceSelected ${e[0].type}`,"info",...e),t(...e)}))}getAddressSuggestions({country:t,query:e,type:o}){this.googlePlaceInitialized&&this.googlePlaces.fetchSuggestions({country:t,query:e,type:o})}selectAddress({placeId:t,type:e}){this.googlePlaces.selectPlace({placeId:t,type:e})}destroy(){this.googlePlaces.destroy(),this.suggestionsCallback&&(this.suggestionsCallback=void 0),this.placeSelectedCallback&&(this.placeSelectedCallback=void 0)}}const E=class{constructor(o){t(this,o),this.paypalInitEvent=e(this,"paypalInitEvent",7),this.stripeInitEvent=e(this,"stripeInitEvent",7)}async initCheckoutElement(t){var e;t?(n.stripe=t,((e=d.checkoutSettings).placeOrderButtonSelector||e.alwaysTriggerInternationalCheckoutSelector||window.Zonos.cartData)&&(!e.placeOrderButtonSelector||r(e.placeOrderButtonSelector)?!e.alwaysTriggerInternationalCheckoutSelector||r(e.alwaysTriggerInternationalCheckoutSelector)?(()=>{if(!document.querySelector("zonos-checkout")){const t=document.createElement("zonos-checkout");document.body.appendChild(t)}})():v(`Selector alwaysTriggerInternationalCheckoutSelector "${e.alwaysTriggerInternationalCheckoutSelector}" is not a valid selector`):v(`Selector checkoutButtonAnchor "${e.placeOrderButtonSelector}" is not a valid selector`)),g("init checkout element")):g("Stripe is not loaded yet - cannot init checkout element","warn")}async initCollectElement(t){t?(n.stripe=t,window.Zonos.cartData&&(()=>{if(!document.querySelector("zonos-collect")){const t=document.createElement("zonos-collect");document.body.appendChild(t)}})(),g("init Collect element")):g("Stripe is not loaded yet - cannot init Collect element","warn")}async initInvoiceElement(t){t?(n.stripe=t,window.Zonos.cartData&&(()=>{if(!document.querySelector("zonos-invoice")){const t=document.createElement("zonos-invoice");document.body.appendChild(t)}})(),g("init Invoice element")):g("Stripe is not loaded yet - cannot init Invoice element","warn")}initZonosNotification(){if(document.querySelector("zonos-notification"))return;const t=document.createElement("zonos-notification");document.body.appendChild(t)}async setupGoogleFont(t){var e,o;const i=t||u();if("Inter"===i){if(!t)return;g("[FONT] Just applied Inter , but no need to inject since we already inject Inter on start","warn"),d.appearance=Object.assign(Object.assign({},d.appearance),{fontFamily:t})}const n=new URLSearchParams;n.set("family",i);const{errors:s,json:r}=await w(`/api/zonos-elements/get-font-detail?${n.toString()}`);if(s.length>0)return g(`Failed to load font ${i}`,"warn"),void(d.appearance=Object.assign(Object.assign({},d.appearance),{fontFamily:"Inter"}));const c=null==r?void 0:r.fontUrl;c&&(null===(o=(e=window.Zonos).injectSupportGoogleFont)||void 0===o||o.call(e,c)),t&&(g(`[FONT] ${t} font override applied`),d.appearance=Object.assign(Object.assign({},d.appearance),{fontFamily:t}))}handleLocationChange(){O(d.helloSettings)}initHistoryListener(){const t=history.pushState;history.pushState=function(){return window.dispatchEvent(new window.Event("pushstate")),window.dispatchEvent(new window.Event("locationchange")),t.apply(this,arguments)};const e=history.replaceState;history.replaceState=function(){return window.dispatchEvent(new window.Event("replacestate")),window.dispatchEvent(new window.Event("locationchange")),e.apply(this,arguments)}}injectCustomHTML(t){if(!t)return;if(!window.Zonos.isLegacyCheckout||window.Zonos.isCollect||window.Zonos.isInvoice)return void g("=== Skip injecting custom HTML for hosted checkout","info");g("=== Injecting custom HTML for hosted checkout");const e=document.createElement("template");e.innerHTML=t,e.content.querySelectorAll("script").forEach((t=>{const e=document.createElement("script");t.src?(e.src=t.src,e.async=t.async):e.textContent=t.innerHTML,document.body.appendChild(e)})),y()}async initGooglePlacesService(t){const e=null==t?void 0:t.genericSettings;if(!e)return;const o=e.signedTokenGooglePlaces;o&&f({id:m.GOOGLE_PLACES,onload:()=>{d.checkoutAddressService=new A},src:`https://route.elements.zonos.com/iframe/google-maps?signedToken=${o}`})}buildBaseConfig(t){var e,o;const i=Object.assign(Object.assign({},this.config.checkoutSettings),{allowedSettlementCurrencies:void 0,captureDelay:void 0,subscriptionStatus:void 0});if(window.Zonos.isCollect||window.Zonos.isInvoice)return Object.assign(Object.assign({},this.config),{checkoutSettings:i,helloSettings:Object.assign(Object.assign({},this.config.helloSettings),{visibilityStatus:"DISABLED"})});if(!this.config.checkoutSettings)return Object.assign(Object.assign({},this.config),{checkoutSettings:void 0});const n=window.Zonos.isLegacyCheckout&&!!window.Zonos.cartData&&"CLOSE_MODAL"===(null===(e=this.config.checkoutSettings)||void 0===e?void 0:e.successBehavior);return Object.assign(Object.assign({},this.config),{checkoutSettings:Object.assign(Object.assign({},i),{successBehavior:n?"ZONOS_SUCCESS_PAGE":this.config.checkoutSettings.successBehavior,successRedirectUrl:n?(null===(o=window.Zonos.cartData)||void 0===o?void 0:o.storeBaseUrl)||(null==t?void 0:t.onlineStoreSettings.url):this.config.checkoutSettings.successRedirectUrl})})}async componentWillLoad(){this.initHistoryListener(),d.zonosApiKey=this.zonosApiKey,(async()=>{var t,e,o,i,n,r;const{errors:l,json:a,zonosMode:u}=await(async()=>{if(window.Zonos.cartSettings)return g("Reusing cached zonos settings"),{errors:[],json:window.Zonos.cartSettings,zonosMode:window.Zonos.zonosMode};const t=p(),e=new URLSearchParams;t.overrideShouldEnabledCustomAddress&&e.set("overrideShouldEnabledCustomAddress",t.overrideShouldEnabledCustomAddress);const o=s();o&&e.set("zCountry",o);const{errors:i,json:n,zonosMode:r}=await w(`/api/zonos-elements/zonos-settings?${e.toString()}`);return i.length?(v("Error occurred when getting zonos settings. If this is not an unauthorized error, it will use user settings or default settings"),{errors:i,json:null,zonosMode:r}):{errors:[],json:n,zonosMode:r}})();if("403"===(null===(e=null===(t=l[0])||void 0===t?void 0:t.type)||void 0===e?void 0:e.toString()))return void g("Failed to load zonos settings. This domain may not have access","warn");const m=(null===(o=null==a?void 0:a.checkoutSettings)||void 0===o?void 0:o.customHTML)||"";this.injectCustomHTML(m),this.initZonosNotification();const f=this.buildBaseConfig(a),y=Object.assign(Object.assign(Object.assign({},this.config),{appearance:Object.assign(Object.assign({},this.config.appearance),{logoUrl:(()=>{var t,e,o;return window.Zonos.isLegacyCheckout?(null===(t=null==a?void 0:a.appearanceSettings)||void 0===t?void 0:t.logoUrl)||(null===(e=this.config.appearance)||void 0===e?void 0:e.logoUrl):null===(o=this.config.appearance)||void 0===o?void 0:o.logoUrl})()})}),f);h({overrideSettings:y,zonosSettings:a}),d.zonosMode=u,(t=>{if("undefined"==typeof document||!t)return;const e=(({merchantSelector:t,supportsIs:e})=>e?`body.z-intl :is(${t})`:(t=>{const e=[];let o=0,i=0,n="";for(let s=0;s<t.length;s++){const r=t[s];if("("===r?o++:")"===r?o--:"["===r?i++:"]"===r&&i--,","===r&&0===o&&0===i){const t=n.trim();t&&e.push(t),n=""}else n+=r}const s=n.trim();return s&&e.push(s),e})(t).map((t=>`body.z-intl ${t}`)).join(", "))({merchantSelector:t,supportsIs:b});if(e.includes("<"))return void g(`Skip domesticElementSelector injection: "${t}" contains "<"`,"warn");try{document.querySelector(e)}catch(o){return void g(`Skip domesticElementSelector injection: "${t}" produced an invalid CSS selector ("${e}")`,"warn")}if(document.getElementById(S))return;const o=document.createElement("style");o.id=S,o.textContent=`${e} { display: none !important; }`,(document.head||document.body).appendChild(o),g("Zonos domestic element hide style injected")})(d.checkoutSettings.domesticElementSelector),this.setupGoogleFont(),"DISABLED"===d.helloSettings.visibilityStatus&&g("=== Hello is disabled by store owner ===","warn"),d.helloSettings&&"ENABLED"===d.helloSettings.visibilityStatus&&(g("Initializing hello"),O(d.helloSettings)),await c();const z=(null===(i=null==a?void 0:a.checkoutSettings)||void 0===i?void 0:i.externalServiceTokens.find((t=>"STRIPE_PUBLISHABLE_TOKEN"===t.type)))||null;if(!z||!this.stripeInitEvent)return void g("Checkout failed to load -- missing publishable key","warn");if(window.Zonos.isCollect||window.Zonos.isInvoice)return this.stripeInitEvent.emit({publishableKey:z.token}),void this.initGooglePlacesService(a);if("INACTIVE"===d.checkoutSettings.subscriptionStatus)return g('=== Checkout subscription is "INACTIVE" - Cancel initializing for Checkout ===',"warn"),void g("zonos controller loaded");if("DISABLED"===d.checkoutSettings.visibilityStatus)return g("=== Checkout is disabled by store owner ===","warn"),void g("zonos controller loaded");const j="function"==typeof(null===(n=d.checkoutSettings)||void 0===n?void 0:n.buildCartDetail)||"function"==typeof(null===(r=d.checkoutSettings)||void 0===r?void 0:r.createCartId),I=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret"),C=!(!window.Zonos.cartId||!window.Zonos.cartData)||!!I;j||C?(this.stripeInitEvent.emit({publishableKey:z.token}),this.initGooglePlacesService(a)):g("Skip loading Stripe because no cart callback (buildCartDetail/createCartId), prefetched cart, or payment client secret is present","warn")})()}async showNotification(t){const e=document.querySelector("zonos-notification");e?e.showNotification(t):g("Failed to show notification - zonos-notification not found","warn")}async reset(){l.checkoutSessionId=null,n.clientSecret=""}async overrideConfig(t){h({overrideSettings:t,zonosSettings:null})}async overrideCountry(t){g(`Override country code to ${t}`),a({isInitializing:!1,newSelectedCountryCode:t})}async getAppearanceSetting(){return d.appearance}async updateOrganizationName(t){d.organizationName=t}render(){return o(i,{key:"1714865012d806892f03e03896ee2f04aa1a729d",class:"zonos--elements"})}};E.style=":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{visibility:hidden;opacity:0;height:0}";export{E as zonos_controller}
@@ -0,0 +1 @@
1
+ import{r as o,d as e,h as t,F as s,a as n,g as l}from"./p-_lt63o7c.js";import{b as a,d as i,j as c,e as r,k as d,c as h}from"./p-CMo3ZweU.js";import{b as p,c as m,t as f,P as u,H as b,Q as z,d as y,x as g,I as x}from"./p-BMPYH-LT.js";import{s as v,c as w,a as k,b as C}from"./p-DpwmHU8R.js";import{t as L,s as I,k as S,l as H,y as j}from"./p-CTiqplrr.js";import{z as P}from"./p-CqB9AfBf.js";import{h as M,s as D,g as _,i as Z,a as B}from"./p-DE4a-QD5.js";import{c as U}from"./p-XQfWgQLB.js";import{g as W}from"./p-r-YGHhLa.js";import{l as F,b as T}from"./p-BJmZPrZl.js";import{i as V,a as $}from"./p-DGlnuxEX.js";import{c as R}from"./p-BJHSB96f.js";import{s as E}from"./p-U33isUJG.js";import{r as A}from"./p-D1SmY_fZ.js";import{p as N}from"./p-DiMEP3mh.js";import{r as O}from"./p-BXjdMMUy.js";import"./p-Dwg61Ft_.js";import"./p-DMIgN_sT.js";import"./p-YdrG78th.js";import"./p-CICjAi70.js";import"./p-D1e9zNDA.js";const Y=class{constructor(t){o(this,t),this.closeClick=e(this,"closeClick",7),this.borderRadius="ROUNDED",this.confirmationId=null,this.isLoading=!0,this.notificationType="success",this.notificationTitle="",this.notificationMessages=[],this.notificationActionText=L("Keep shopping"),this.order=null,this.isWaitingToRedirect=!0,this.pullOrder=async()=>{var o,e;const t=I.checkoutSessionId,s=new URLSearchParams;s.set("checkoutSessionId",t||"");const{baseUrl:n,errors:l,json:a}=await M(`/api/zonos-elements/get-order?${s.toString()}`);return l.length||!(null==a?void 0:a.id)?{baseUrl:n,order:null}:(await(null===(e=(o=P.checkoutSettings).onOrderSuccess)||void 0===e?void 0:e.call(o,{zonosApiRoute:n,zonosOrder:a})),{baseUrl:n,order:a})},this.handleSuccessBehavior=async()=>{this.isLoading=!1,await this.getPullOrder()},this.getPullOrder=async(o=0)=>{var e,t;0===o&&F("=== Start to poll for order info","info");const{baseUrl:s,order:n}=await this.pullOrder(),l=!!(null===(t=null===(e=null==n?void 0:n.references)||void 0===e?void 0:e.find((o=>"zonosOrderNumber"===(null==o?void 0:o.key))))||void 0===t?void 0:t.value),a=I.checkoutSessionId,i=parseFloat(new URLSearchParams(window.location.search).get("maxPollingRetries")||"0")||30;F(`=== Polling order (${o} attemps)`,"info"),n?(F("=== CollectOrder info found","info"),o>10&&D({endpoint:`${s}/api/zonos-elements/get-order?checkoutSessionId=${a}&orderId=${n.id}`,errors:[`Collect order found after ${o} attempts`],metadata:{allLogs:T,checkoutSessionId:I.checkoutSessionId||"",orderId:n.id,storeId:P.storeId}}),this.order=n):n&&l||!(o<i)?D({endpoint:`${s}/api/zonos-elements/get-order?checkoutSessionId=${a}`,errors:[`Collect order not found after ${i} attempts`],metadata:{allLogs:T,checkoutSessionId:I.checkoutSessionId||"",storeId:P.storeId}}):(await new Promise((o=>setTimeout(o,1e3))),await this.getPullOrder(o+1))},this.checkStripePaymentStatus=async()=>{const o=new URLSearchParams(window.location.search).get("payment_intent_client_secret")||p.clientSecret;if(o||this.storybookForceStatus){const{error:e,messages:t,status:s}=await m({clientSecret:o,storybookForceStatus:this.storybookForceStatus}),n="requires_action"===s||e;this.notificationType=n?"error":"success",this.notificationMessages=t||[],this.notificationTitle=L(n?"Payment failed":"You're all set!"),F("=== Payment intent retrieve status","info",{clientSecret:o,error:e,messages:t,status:s});const l=new URL(window.location.href);if(l.searchParams.delete("payment_intent_client_secret"),l.searchParams.delete("payment_intent"),l.searchParams.delete("redirect_status"),l.searchParams.delete("zonosCheckoutSessionId"),window.history.replaceState({},"",l.toString()),e&&(null==t?void 0:t.length))v({event:"zonos-checkout-payment-fail"}),D({endpoint:"Stripe payment failed",errors:[`Payment intent "${o.split("_secret_")[0]||o}" status: ${s} - checkout session: ${I.checkoutSessionId}`],metadata:{allLogs:T,credentialToken:window.Zonos.zonosApiKey}});else{v({event:"zonos-checkout-success"}),f({checkoutSessionId:I.checkoutSessionId,eventName:"checkout_orderCompleted"});const o=U("zonos-checkout-success",{message:"Zonos Checkout successfully processed order"});document.dispatchEvent(o),await this.handleSuccessBehavior()}}this.isLoading=!1,u(),b(),I.checkoutSessionId=null},this.getAirwallexSessionInfo=async()=>{if(a.paymentIntentId)return{isCompleted:!1,paymentIntentId:a.paymentIntentId};const o=I.checkoutSessionId;if(!o)return{isCompleted:!1,paymentIntentId:null};const{json:e}=await M("/api/zonos-elements/collect/get-checkout-session",{body:{checkoutSessionId:o},method:"POST"}),t=null==e?void 0:e.checkoutSession;return{isCompleted:!(!(null==t?void 0:t.completedAt)&&!(null==t?void 0:t.order)),paymentIntentId:(null==t?void 0:t.paymentIntentId)||null}},this.checkAirwallexPaymentStatus=async()=>{const o=a.paymentConfirmed,e="succeeded"===this.storybookForceStatus,{isCompleted:t,paymentIntentId:s}=await this.getAirwallexSessionInfo(),{status:n}=s?await i(s):{status:null},l=o||e||t||r(n),{messages:h}=c(o||e||t?"SUCCEEDED":n);if(F("=== Airwallex payment intent retrieve status","info",{forcedSuccess:e,isCompleted:t,isPaid:l,paymentIntentId:s,sdkConfirmed:o,status:n}),this.notificationType=l?"success":"error",this.notificationTitle=L(l?"You're all set!":"Payment failed"),this.notificationMessages=h,l){v({event:"zonos-checkout-success"}),f({checkoutSessionId:I.checkoutSessionId,eventName:"checkout_orderCompleted"});const o=U("zonos-checkout-success",{message:"Zonos Checkout successfully processed order"});document.dispatchEvent(o),await this.handleSuccessBehavior()}else v({event:"zonos-checkout-payment-fail"}),D({endpoint:"Airwallex payment failed",errors:[`Payment intent "${s}" status: ${n} - checkout session: ${I.checkoutSessionId}`],metadata:{allLogs:T,credentialToken:window.Zonos.zonosApiKey}});this.isLoading=!1,u(),b(),d(),I.checkoutSessionId=null},this.checkStagingOrderStatus=async()=>{this.notificationType="success",this.notificationTitle=L("You're all set!"),this.notificationMessages=z("succeeded").messages,await this.handleSuccessBehavior(),u(),b(),w(),I.checkoutSessionId=null},this.checkPaypalPaymentStatus=async()=>{if(k.paypalErrorMessage)return this.notificationType="error",this.notificationTitle=L("Payment failed"),this.notificationMessages=[k.paypalErrorMessage],void(this.isLoading=!1);this.isLoading=!1,k.orderIdCreated&&(v({event:"zonos-checkout-success"}),f({checkoutSessionId:I.checkoutSessionId,eventName:"checkout_orderCompleted"}),this.notificationType="success",this.notificationTitle=L("You're all set!"),this.notificationMessages=z("succeeded").messages,await this.handleSuccessBehavior()),u(),b(),w(),I.checkoutSessionId=null},this.getReceiptUrl=({cartId:o})=>{const e=new URL(`${window.location.origin}/receipt`);e.searchParams.set("referenceId",o),_()&&e.searchParams.set("zonosTestMode","1");const t=new URLSearchParams(window.location.search).get("zonosQaUrl");return t&&e.searchParams.set("zonosQaUrl",t),e.toString()}}componentDidLoad(){if(this.overrideNotification)return this.notificationType=this.overrideNotification.type,this.notificationTitle=this.overrideNotification.title,this.notificationMessages=this.overrideNotification.messages,void(this.isLoading=!1);y.isStagingMode?this.checkStagingOrderStatus():"AIRWALLEX"===h.paymentProcessor?this.checkAirwallexPaymentStatus():k.orderIdCreated?this.checkPaypalPaymentStatus():this.checkStripePaymentStatus()}render(){const o=window.Zonos.cartId;return t(n,{key:"af26499a2062cf495d4c46a7763ed988a4da0669",class:"zonos--checkout-finish zonos--elements",style:{"--zonos--border-radius":W({overrideBorderStyle:this.borderRadius})}},!this.isLoading&&t("div",{key:"54fb28be3daee7dd1d63f1dcbdb9a84354fcdb6c",class:"zonos--finish-details"},t("div",{key:"9c71e5dbd23e613e1038924f14c0465d94dbad07",class:"zonos--group"},t("zonos-icon","success"===this.notificationType?{"aria-label":"Order success",content:'<svg color="var(--zonos-elements-blue-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M2 12C2 6.477 6.477 2 12 2s10 4.477 10 10-4.477 10-10 10S2 17.523 2 12Z" data-is-secondary-color="true" fill="var(--zonos-elements-blue-100)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M15.707 9.293a1 1 0 0 1 0 1.414l-3.646 3.647a1.5 1.5 0 0 1-2.122 0l-1.646-1.647a1 1 0 1 1 1.414-1.414L11 12.586l3.293-3.293a1 1 0 0 1 1.414 0Z" fill="currentColor" fill-rule="evenodd"></path></svg>',iconColor:"blue-800",size:50}:{"aria-label":"Order failed",content:'<svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>',iconColor:"red-800",size:50}),t("zonos-text",{key:"3285f4bb8854d5bab6eef487d2b2ae3556794998",class:"zonos--title",type:"semiBoldSubheader"},this.notificationTitle),this.confirmationId&&t("zonos-badge",{key:"4cecd6f15ed26fe1e525c01a48e3961845e6f6d8",badgeColor:"gray"},this.confirmationId),t("zonos-text",{key:"dd7c4011d4d7f92fcd19d53e945adf42f2b3f05e",class:"zonos--subtitle",textColor:"gray-600"},this.notificationMessages.map((o=>t(s,null,o,t("br",null))))),this.order&&o&&t("div",{key:"a11bd49a754d32dd15dc34f2311f9706d459f07b",class:"zonos--button-container"},t("zonos-button",{key:"305bcf958a1772cc123414285522e9e0f0b1a839",onClick:()=>{window.open(this.getReceiptUrl({cartId:o}),"_blank")},size:"lg",variant:"primary"},L("View receipt"))))))}static get assetsDirs(){return["assets"]}};Y.style=":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{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}:host .zonos--group{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-bottom:24px;border-radius:var(--zonos--border-radius, 10px);gap:24px;margin-top:24px;background-color:var(--zonos-elements-gray-50);padding:48px}:host .zonos--finish-details{max-width:640px;min-width:300px;line-height:24px;width:0 auto;margin:auto}:host zonos-button{width:100%}:host .loading-wrapper{min-height:300px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}:host .zonos--finish-button-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto;margin-top:48px;max-width:300px}:host .zonos--button-container{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;gap:16px;margin:0 auto}:host .zonos--subtitle{text-align:center}:host .zonos--order-number{background-color:var(--zonos-elements-gray-0);border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800);border-radius:var(--zonos-elements-radius-6);padding:4px 8px}";const Q=class{constructor(e){o(this,e),this.mobile=!1,this.tablet=!1,this.showLanguageDialog=!1,this.isMobile=!1,this.isTablet=!1}handleGlobalClick(o){!this.el.contains(o.target)&&this.showLanguageDialog&&(this.showLanguageDialog=!1)}toggleLanguageDialog(){this.showLanguageDialog=!this.showLanguageDialog}handleMobileChange(){this.isMobile=V(this.mobile)}handleTabletChange(){this.isTablet=$(this.tablet)}componentWillLoad(){this.isMobile=V(this.mobile),this.isTablet=$(this.tablet)}render(){var o;const e=null===(o=S.find((o=>o.code===H.selectedLocale)))||void 0===o?void 0:o.label,l="gray-1000";return t(n,{key:"7733eba3e2253cc976484a9da290f66afd6ef93d",class:R(["zonos--elements",this.isMobile&&"mobile",this.isTablet&&"tablet"])},t("div",{key:"2c5a058034844d818010f4002704fa17e6fd9a46",class:"zonos--collect-footer"},t("div",{key:"bffe2afd93ca0531b7eea825a7fd69d68b7aa308",class:"zonos--collect-locale-wrapper"},E()&&t(s,{key:"5469f522ea7b4b3f25fd7c0a63e717c29e34a84c"},t("zonos-button",{key:"1c88778482c2960cf2a5e55beeda3f3c7f21b950",buttonColor:l,class:"zonos--collect-footer-language-button",icon:t("zonos-icon",{"aria-label":"Language select",content:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM11.4709 5.80634C11.7686 5.53723 11.9541 5.5 12 5.5C12.0459 5.5 12.2314 5.53723 12.5291 5.80634C12.8115 6.06164 13.1289 6.46913 13.4271 7.03651C13.9505 8.03191 14.3838 9.46098 14.48 11.25H9.51996C9.61624 9.46098 10.0495 8.03191 10.5729 7.03651C10.8711 6.46913 11.1885 6.06164 11.4709 5.80634ZM8.01802 11.25C8.11591 9.23031 8.60319 7.55958 9.24516 6.33849C9.29983 6.23451 9.35585 6.13335 9.41312 6.03514C7.32916 6.94017 5.81218 8.90533 5.5428 11.25H8.01802ZM5.5428 12.75H8.01802C8.11591 14.7697 8.60319 16.4404 9.24516 17.6615C9.29983 17.7655 9.35585 17.8666 9.41312 17.9649C7.32916 17.0598 5.81218 15.0947 5.5428 12.75ZM9.51996 12.75H14.48C14.3838 14.539 13.9505 15.9681 13.4271 16.9635C13.1289 17.5309 12.8115 17.9384 12.5291 18.1937C12.2314 18.4628 12.0459 18.5 12 18.5C11.9541 18.5 11.7686 18.4628 11.4709 18.1937C11.1885 17.9384 10.8711 17.5309 10.5729 16.9635C10.0495 15.9681 9.61624 14.539 9.51996 12.75ZM15.982 12.75C15.8841 14.7697 15.3968 16.4404 14.7548 17.6615C14.7002 17.7655 14.6441 17.8666 14.5869 17.9649C16.6708 17.0598 18.1878 15.0947 18.4572 12.75H15.982ZM18.4572 11.25C18.1878 8.90533 16.6708 6.94017 14.5869 6.03514C14.6441 6.13335 14.7002 6.23451 14.7548 6.33849C15.3968 7.55958 15.8841 9.23031 15.982 11.25H18.4572Z" fill="currentColor"/>\n</svg>\n',iconColor:l}),onClick:()=>this.toggleLanguageDialog(),variant:"subtle"},t("span",{key:"451485445df5f34ca64a36dddd5007ce9f229173",class:"zonos--collect-locale-label"},e,t("zonos-icon",{key:"a395943215ca541f3db4d3aa6e111c87930a6d08","aria-hidden":"true",class:"zonos--collect-locale-chevron",content:'<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>',iconColor:l,size:18}))),t("div",{key:"46edba3f7fc8f9316b69626872e0cb478e72cbd4",class:R(["zonos--collect-language-dialog",this.showLanguageDialog&&"zonos--collect-language-dialog-open"])},t("zonos-language-select",{key:"e77a7197a218755149ee6b7f3e07a646bc95e930",handleOnClose:()=>this.toggleLanguageDialog()})))),t("div",{key:"b18dcfe4f0806f3abb6b5855321381334e5206a7",class:"zonos--collect-footer-icon-wrapper"},t("div",{key:"5c6c376fe1174cec16e9b6c029172138bc8b180a",class:"zonos--collect-footer-logo"},t("zonos-text",{key:"0899e6990f8f37cf2d604ef15ffd3db0571d5389",textColor:l},"Powered by"),t("a",{key:"853891db2db1a4d1297597a9857772503e5b4d10",href:"https://zonos.com",target:"_blank",title:"Zonos website"},t("zonos-icon",{key:"d8731023822bffdec3cfe821c67387df651de13a",autoHeight:!0,content:'<svg width="43" height="10" viewBox="0 0 43 10" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M7.35896 0.0640869H0.30768C0.166068 0.0640869 0.0512695 0.178886 0.0512695 0.320497V1.85896C0.0512695 2.00057 0.166068 2.11537 0.30768 2.11537H4.44439C4.54964 2.11537 4.61005 2.2352 4.54745 2.31982L0.151823 8.2615C0.0865163 8.34978 0.0512695 8.45669 0.0512695 8.56649V9.67947C0.0512695 9.82108 0.166068 9.93588 0.30768 9.93588H7.35896C7.50057 9.93588 7.61537 9.82108 7.61537 9.67947V8.14101C7.61537 7.9994 7.50057 7.8846 7.35896 7.8846H3.22226C3.117 7.8846 3.05659 7.76477 3.11919 7.68015L7.51482 1.73847C7.58013 1.65019 7.61537 1.54328 7.61537 1.43348V0.320497C7.61537 0.178886 7.50057 0.0640869 7.35896 0.0640869Z" fill="var(--zonos-elements-gray-800)"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M11.718 0C10.1602 0 8.89746 1.26279 8.89746 2.82051V7.17949C8.89746 8.73721 10.1602 10 11.718 10H13.6411C15.1988 10 16.4616 8.73721 16.4616 7.17949V2.82051C16.4616 1.26279 15.1988 0 13.6411 0H11.718ZM11.718 2.05128C11.2931 2.05128 10.9487 2.39568 10.9487 2.82051V7.17949C10.9487 7.60432 11.2931 7.94872 11.718 7.94872H13.6411C14.0659 7.94872 14.4103 7.60432 14.4103 7.17949V5V2.82051C14.4103 2.39568 14.0659 2.05128 13.6411 2.05128H11.718Z" fill="var(--zonos-elements-gray-800)"/>\n<path d="M17.7437 0.436316V9.71132C17.7437 9.85293 17.8585 9.96773 18.0001 9.96773H19.5385C19.6801 9.96773 19.7949 9.85293 19.7949 9.71132V3.74801C19.7949 3.44829 19.969 3.17587 20.241 3.04996L22.1641 2.15964C22.6739 1.92363 23.2565 2.29592 23.2565 2.85769V9.71132C23.2565 9.85293 23.3713 9.96773 23.5129 9.96773H25.0513C25.193 9.96773 25.3078 9.85293 25.3078 9.71132V2.85595C25.3078 0.79631 23.1718 -0.568775 21.3027 0.296257L19.9742 0.911055C19.8685 0.959946 19.7432 0.931536 19.669 0.84187L19.2748 0.365697C19.1773 0.248019 19.0325 0.179905 18.8797 0.179905H18.0001C17.8585 0.179905 17.7437 0.294704 17.7437 0.436316Z" fill="var(--zonos-elements-gray-800)"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M29.4104 0C27.8526 0 26.5898 1.26279 26.5898 2.82051V7.17949C26.5898 8.73721 27.8526 10 29.4104 10H31.3334C32.8912 10 34.1539 8.73721 34.1539 7.17949V2.82051C34.1539 1.26279 32.8912 0 31.3334 0H29.4104ZM29.4104 2.05128C28.9855 2.05128 28.6411 2.39568 28.6411 2.82051V7.17949C28.6411 7.60432 28.9855 7.94872 29.4104 7.94872H31.3334C31.7583 7.94872 32.1027 7.60432 32.1027 7.17949V2.82051C32.1027 2.39568 31.7583 2.05128 31.3334 2.05128H29.4104Z" fill="var(--zonos-elements-gray-800)"/>\n<path d="M38.2085 0.0640869H40.3889C41.8309 0.0640869 42.9999 1.23306 42.9999 2.67506C42.9999 2.79477 42.9108 2.89574 42.792 2.91059L41.1732 3.11293C41.054 3.12784 40.9486 3.03485 40.9486 2.91466C40.9486 2.47322 40.5908 2.11537 40.1493 2.11537H38.3397C37.8688 2.11537 37.4871 2.49712 37.4871 2.96803C37.4871 3.3685 37.7658 3.71501 38.1569 3.80087L40.7916 4.37922C42.0811 4.66229 42.9999 5.80462 42.9999 7.12486C42.9999 8.67735 41.7414 9.93588 40.1889 9.93588H38.0468C36.6048 9.93588 35.4358 8.76691 35.4358 7.32491C35.4358 7.2052 35.5249 7.10423 35.6437 7.08938L37.2625 6.88703C37.3817 6.87213 37.4871 6.96512 37.4871 7.08531C37.4871 7.52675 37.8449 7.8846 38.2864 7.8846H40.1176C40.5765 7.8846 40.9486 7.51252 40.9486 7.05354C40.9486 6.67478 40.6925 6.34394 40.3258 6.24901L37.5136 5.52093C36.2902 5.20422 35.4358 4.10042 35.4358 2.83676C35.4358 1.30545 36.6772 0.0640869 38.2085 0.0640869Z" fill="var(--zonos-elements-gray-700)"/>\n</svg>\n',size:42}))),t("div",{key:"ba5ae7870c1ed277142ceccf1d44276270b967d0",class:"dot"}),t("a",{key:"253dd9112d0626981473d0d0a3309cc577ea5b54",href:"https://zonos.com/docs/legal/zonos-privacy-policy",target:"_blank"},t("zonos-text",{key:"a5117f4e2194a4b5d1a5de1696763ca1e174b004",textColor:l},"Privacy policy")))))}get el(){return l(this)}static get watchers(){return{mobile:[{handleMobileChange:0}],tablet:[{handleTabletChange:0}]}}};Q.style=":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{position:absolute;bottom:0;left:32px;right:32px;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;z-index:2}:host .zonos--collect-footer{gap:16px;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;padding:12px;padding-left:0;-ms-flex-align:center;align-items:center;width:100%}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:16px}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper .zonos--collect-footer-logo{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-align:center;align-items:center}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper .zonos--collect-footer-logo a{line-height:0}:host .zonos--collect-footer .zonos--collect-footer-icon-wrapper a{text-decoration:none}:host .zonos--collect-footer zonos-button button.outline{outline:1px solid var(--zonos-elements-gray-800)}:host .zonos--collect-footer .zonos--collect-locale-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;position:relative}@media (max-width: 400px){:host .zonos--collect-footer .zonos--collect-locale-wrapper{gap:4px}}:host .zonos--collect-footer .zonos--collect-locale-wrapper .zonos--collect-locale-label{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;gap:4px}:host .zonos--collect-footer .zonos--collect-language-dialog{position:absolute;bottom:36px;left:var(--language-dialog-left);background:var(--zonos-elements-surface-color);-webkit-box-shadow:var(--zonos-elements-v3-shadow-xl);box-shadow:var(--zonos-elements-v3-shadow-xl);border-radius:var(--zonos-elements-radius-12);width:360px;max-width:100vw;max-height:500px;z-index:2147483011;overflow:auto;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:bottom left;transform-origin:bottom left;opacity:0;-webkit-transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out;transition:transform 0.3s ease-out, opacity 0.3s ease-out, -webkit-transform 0.3s ease-out;-ms-scroll-chaining:none;overscroll-behavior:contain}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar{width:10px}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--collect-footer .zonos--collect-language-dialog::-webkit-scrollbar-track{border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--collect-footer .zonos--collect-language-dialog.zonos--collect-language-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .dot{display:-ms-inline-flexbox;display:inline-flex;background:var(--zonos-elements-gray-400);width:6px;height:6px;border-radius:50%}:host(.mobile),:host(.tablet){background-color:var(--zonos-elements-gray-0);width:100%;position:-webkit-sticky;position:sticky;bottom:0}:host(.tablet) .zonos--collect-footer{width:100%;max-width:800px;-ms-flex-pack:justify;justify-content:space-between;display:-ms-flexbox;display:flex}:host(.mobile) .zonos--collect-locale-wrapper{display:none}:host(.mobile) .zonos--collect-footer{-ms-flex-pack:center;justify-content:center}";const G=class{constructor(t){o(this,t),this.collapseClicked=e(this,"collapseClicked",7),this.mobile=!0,this.landedCostId="",this.isMobile=!1,this.collapseState=this.collapsed}handleCollapseChangeFromProp(o){this.collapseState=o}handleCollapseChange(o){this.collapseClicked.emit(o)}handleWindowResize(){this.isMobile=Z(this.mobile)}componentWillLoad(){this.handleWindowResize()}renderShippingAddress(){if(h.isFetchingShippingInfo)return t("div",{class:"zonos--collect-order-details-column"},t("zonos-text",{type:"smallHeader"},t("zonos-skeleton",{skeletonWidth:"99px"})),t("div",{class:"zonos--collect-order-shipping-info"},t("zonos-skeleton",{skeletonWidth:"152px"}),t("zonos-h-stack",{spacing:8},t("zonos-skeleton",{skeletonWidth:"75px"}),t("zonos-skeleton",{skeletonWidth:"75px"})),t("zonos-skeleton",{skeletonWidth:"50px"})));const o=h.shippingAddress;return o?t("div",{class:"zonos--collect-order-details-column"},t("zonos-text",{type:"smallHeader"},L("Shipping address")),t("div",{class:"zonos--collect-order-shipping-info"},[[o.location.line1,o.location.line2].filter(Boolean).join(" "),[o.location.locality,o.location.administrativeAreaCode,o.location.postalCode].filter(Boolean).join(", "),o.location.countryCode].map((o=>t("zonos-text",null,o))))):null}render(){return t(n,{class:R(["zonos--collect-order-details zonos--elements",this.isMobile&&"mobile"])},t("div",{class:"zonos--wrapper"},t("button",{class:"zonos--order-details-header",onClick:()=>{this.collapseState=!this.collapseState},type:"button"},t("zonos-text",{type:"semiBoldLabel"},L("Shipment details")),(()=>t("zonos-icon",this.collapseState?{"aria-label":"Collapse expanded section",content:'<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M6.293 9.293a1 1 0 0 1 1.414 0L12 13.586l4.293-4.293a1 1 0 0 1 1.414 1.414l-4.93 4.93a1.1 1.1 0 0 1-1.555 0l-4.93-4.93a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>',iconColor:"gray-1200"}:{"aria-label":"Expand collapsed section",content:'<svg color="var(--zonos-elements-gray-400)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M17.707 14.707a1 1 0 0 1-1.414 0L12 10.414l-4.293 4.293a1 1 0 0 1-1.414-1.414l4.93-4.93a1.1 1.1 0 0 1 1.555 0l4.93 4.93a1 1 0 0 1 0 1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>',iconColor:"gray-1200"}))()),t("div",{class:"zonos--order-details-wrapper"},t("zonos-collapse",{collapsed:this.collapseState},t("div",{class:"zonos--collect-order-details-content"},t("zonos-collect-cart-items",null),t("div",{class:"zonos--collect-order-info"},t("div",{class:"zonos--collect-order-details-row"},null!==h.amountTotalPaid&&t("div",{class:"zonos--collect-order-details-column"},t("zonos-text",{type:"smallHeader"},L("Total paid")),t("zonos-text",null,A({amount:h.amountTotalPaid||0,isForeign:!0}))),h.originCompanyName&&t("div",{class:"zonos--collect-order-details-column"},t("zonos-text",{type:"smallHeader"},L("Ordered from")),t("zonos-text",null,h.originCompanyName||""))),this.renderShippingAddress()))))))}static get assetsDirs(){return["assets"]}static get watchers(){return{collapsed:[{handleCollapseChangeFromProp:0}],collapseState:[{handleCollapseChange:0}]}}};G.style=":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{height:100%}:host *{-ms-scroll-chaining:none;overscroll-behavior:contain}:host *::-webkit-scrollbar{width:10px}:host *::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host *::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host *::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--wrapper{overflow:auto;background-color:var(--zonos-elements-gray-50);border-radius:16px;height:100%;min-height:56px}:host .zonos--order-details-header{position:-webkit-sticky;position:sticky;top:0;z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--zonos-elements-gray-50);border:none;display:-ms-flexbox;display:flex;padding:16px 16px 0 16px;width:100%;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center}:host .zonos--order-details-header:focus-visible{outline:none}:host .zonos--order-details-wrapper{position:relative;padding:0 16px 16px 16px}:host .zonos--collect-order-details-content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:28px}:host .zonos--collect-order-info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:32px}:host .zonos--collect-order-info .zonos--collect-order-details-row{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:16px}:host .zonos--collect-order-info .zonos--collect-order-details-row>*{-ms-flex:1 1 150px;flex:1 1 150px}:host .zonos--collect-order-info .zonos--collect-order-details-column{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}:host .zonos--collect-order-info .zonos--collect-order-shipping-info{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:0}";const X=class{constructor(t){o(this,t),this.continueClicked=e(this,"continueClicked",7),this.paypalSessionFailed=e(this,"paypalSessionFailed",7),this.paypalSessionDone=e(this,"paypalSessionDone",7),this.airwallexPaymentDone=e(this,"airwallexPaymentDone",7),this.storeUnsubscribeList=[],this.continueLoading=!1,this.showErrorBanner=!1,this.hasStripePaymentError=!1,this.stagingOrderCreateErrorMessage="",this.internalContinueLoading=this.continueLoading,this.handleValidate=()=>{var o;return!!(null===(o=p.stripePaymentEventData)||void 0===o?void 0:o.complete)},this.continueClickHandler=async({currencyCode:o})=>{var e,t;if(!this.handleValidate())return null===(e=p.stripeBillingAddressElement)||void 0===e||e.getValue(),this.showErrorBanner=!0,null===(t=p.stripeElements)||void 0===t||t.submit(),void setTimeout((()=>{var o;null===(o=this.ele.querySelector("zonos-banner"))||void 0===o||o.scrollIntoView({behavior:"smooth"})}),10);p.checkoutSettlementCurrency=o,v({event:"zonos-checkout-payment-info"}),this.continueClicked.emit()},this.copyCardToClipboard=async o=>{try{await navigator.clipboard.writeText(o)}catch(e){const t=document.createElement("textarea");t.style.position="fixed",t.style.left="-1000px",t.style.top="-1000px",t.style.width="1px",t.style.height="1px",t.value=o,t.id="zonos-copy-card-number",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}window.Zonos.showNotification({message:L("Card number copied to clipboard"),timeout:4e3,type:"success"})},this.placeTestOrder=async()=>{this.internalContinueLoading=!0;const{errors:o}=await N();if(o.length)return this.stagingOrderCreateErrorMessage=o[0]||"Failed to create staging order. Please try again.",void(this.internalContinueLoading=!1);this.internalContinueLoading=!1,g()}}continueLoadingWatcher(){this.internalContinueLoading=this.continueLoading}stripePaymentErrorWatcher(){this.hasStripePaymentError&&setTimeout((()=>{var o;null===(o=this.ele.querySelector("zonos-banner"))||void 0===o||o.scrollIntoView({behavior:"smooth"})}),50)}componentWillLoad(){this.storeUnsubscribeList=[x("currency",(()=>{C({currency:y.currency})}))],C({currency:y.currency})}disconnectedCallback(){this.storeUnsubscribeList.forEach((o=>o()))}render(){var o;if("AIRWALLEX"===h.paymentProcessor)return t(n,{class:"zonos--checkout-payment zonos--elements"},t("div",{class:"zonos--group"},t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},L("Payment method")),t("zonos-airwallex-payment",{onAirwallexPaymentSuccess:()=>this.airwallexPaymentDone.emit()})));if(this.hasStripePaymentError=p.hasPaymentError,!p.stripeElements)return null;if(!p.clientSecret)return null;this.showErrorBanner&&(this.showErrorBanner=!this.handleValidate());const e=_(),l=y.isStagingMode||B(),a="external_paypal"===(null===(o=p.stripePaymentEventData)||void 0===o?void 0:o.value.type);return t(n,{class:"zonos--checkout-payment zonos--elements"},t("div",{class:"zonos--group"},t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},L("Payment method")),(()=>{if(l){const o=P.appearance.theme;return t(s,null,this.stagingOrderCreateErrorMessage&&t("zonos-banner",{class:"zonos--error-banner",intent:"error"},this.stagingOrderCreateErrorMessage),t("zonos-empty-state-payment",{emptyStateText:L("No payment method needed for staging"),theme:o}),t("div",{class:"zonos--group-btn"},t("zonos-button",{backgroundColor:this.submitBtnColor,loading:this.internalContinueLoading,onClick:()=>{this.placeTestOrder()},size:"lg",variant:this.submitBtnType},L("Place test order"))))}return p.isFetchingSession||h.isFetchingShippingInfo?null:t(s,null,this.showErrorBanner&&t("zonos-banner",{class:"zonos--error-banner",intent:"error"},L("Missing required fields. Make sure all fields are completed.")),this.hasStripePaymentError&&t("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},p.customErrorMessage||L("We couldn't complete your payment. Please verify the payment details and try again.")),k.paypalErrorMessage&&t("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},k.paypalErrorMessage),t("zonos-payment",null),t("div",{class:"zonos--group-btn"},!a&&t(s,null,t("zonos-button",{backgroundColor:this.submitBtnColor,bold:!0,isDisabled:this.continueLoading&&"USD"===p.checkoutSettlementCurrency,loading:this.continueLoading&&"USD"!==p.checkoutSettlementCurrency,onClick:async()=>{y.checkoutSession?await this.continueClickHandler({currencyCode:y.checkoutSession.subtotals.presentmentCurrencyCode}):F("Checkout session is not found")},size:"lg",variant:this.submitBtnType},L("Pay [orderTotal]",{orderTotal:A({amount:h.amountDutyTaxFeeTotal||0,isForeign:!0})})),p.shouldRenderPayInUsdButton&&t("zonos-button",{class:"zonos--pay-in-base-currency-btn",isDisabled:this.continueLoading&&"USD"!==p.checkoutSettlementCurrency,loading:this.continueLoading&&"USD"===p.checkoutSettlementCurrency,onClick:async()=>{await this.continueClickHandler({currencyCode:"USD"})},size:"lg",variant:"subtle"},L("Click to pay in USD"))),t("zonos-paypal-payment",{onPaypalSessionDone:({detail:{orderId:o}})=>{this.paypalSessionDone.emit(o)},onPaypalSessionFail:()=>this.paypalSessionFailed.emit(),style:{display:a?"block":"none"}})),e&&t("zonos-card",{backgroundColor:"gray-100",borderRadius:12,class:"zonos--test-cards"},t("zonos-v-stack",{spacing:16},t("div",null,t("zonos-text",{type:"semiBoldLabel"},L("Test cards")),t("zonos-text",{textColor:"gray-700"},L("Click to copy the card number. Use any future expiration date and three number CVC."))),t("zonos-button",{icon:t("zonos-icon",{content:'<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M15.342 10.21a.75.75 0 0 0-1.184-.92l-2.978 3.829-1.4-1.4a.75.75 0 1 0-1.06 1.061l1.8 1.8a1 1 0 0 0 1.496-.093l3.326-4.277Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>'}),justifyContent:"flex-start",onClick:()=>this.copyCardToClipboard("4242424242424242")},L("Success")," (****4242)"),t("zonos-button",{icon:t("zonos-icon",{content:'<svg color="var(--zonos-elements-gray-1000)" xmlns="http://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="var(--zonos-elements-gray-1000)" d="M14.475 10.586a.75.75 0 1 0-1.06-1.06L12 10.938l-1.414-1.414a.75.75 0 0 0-1.06 1.06L10.938 12l-1.414 1.414a.75.75 0 1 0 1.06 1.06L12 13.062l1.414 1.414a.75.75 0 0 0 1.06-1.06L13.062 12l1.414-1.414Z"/><path fill="var(--zonos-elements-gray-1000)" fill-rule="evenodd" d="M12 4a8 8 0 1 0 0 16 8 8 0 0 0 0-16Zm-6.5 8a6.5 6.5 0 1 1 13 0 6.5 6.5 0 0 1-13 0Z" clip-rule="evenodd"/></svg>'}),justifyContent:"flex-start",onClick:()=>this.copyCardToClipboard("4000000000000002")},L("Failure")," (****0002)")),t("zonos-notification",null)))})()))}get ele(){return l(this)}static get watchers(){return{continueLoading:[{continueLoadingWatcher:0}],hasStripePaymentError:[{stripePaymentErrorWatcher:0}]}}};X.style=".sc-zonos-collect-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-collect-payment-h *.sc-zonos-collect-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-collect-payment-h img.sc-zonos-collect-payment{max-width:100%}.sc-zonos-collect-payment-h dl.sc-zonos-collect-payment,.sc-zonos-collect-payment-h dd.sc-zonos-collect-payment,.sc-zonos-collect-payment-h h1.sc-zonos-collect-payment,.sc-zonos-collect-payment-h h2.sc-zonos-collect-payment,.sc-zonos-collect-payment-h h3.sc-zonos-collect-payment,.sc-zonos-collect-payment-h h4.sc-zonos-collect-payment,.sc-zonos-collect-payment-h h5.sc-zonos-collect-payment,.sc-zonos-collect-payment-h h6.sc-zonos-collect-payment,.sc-zonos-collect-payment-h hr.sc-zonos-collect-payment,.sc-zonos-collect-payment-h figure.sc-zonos-collect-payment,.sc-zonos-collect-payment-h p.sc-zonos-collect-payment,.sc-zonos-collect-payment-h pre.sc-zonos-collect-payment{margin:0}.sc-zonos-collect-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-collect-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.sc-zonos-collect-payment-h .zonos--title.sc-zonos-collect-payment{margin-bottom:24px}.sc-zonos-collect-payment-h .zonos--group.sc-zonos-collect-payment{margin-bottom:20px;overflow:visible;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.sc-zonos-collect-payment-h .zonos--payment-error-banner.sc-zonos-collect-payment{margin-bottom:8px}.sc-zonos-collect-payment-h .zonos--error-banner.sc-zonos-collect-payment{margin-bottom:16px}.sc-zonos-collect-payment-h zonos-button.sc-zonos-collect-payment{-webkit-box-shadow:0 0 1px 0 var(--zonos-elements-gray-600);box-shadow:0 0 1px 0 var(--zonos-elements-gray-600)}.sc-zonos-collect-payment-h .zonos--pay-in-base-currency-btn.sc-zonos-collect-payment{-webkit-box-shadow:none;box-shadow:none}.sc-zonos-collect-payment-h .zonos--group-btn.sc-zonos-collect-payment{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;gap:12px;bottom:-4px;padding-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-collect-payment-h .zonos--group-btn.sc-zonos-collect-payment zonos-text.sc-zonos-collect-payment{text-align:center}.sc-zonos-collect-payment-h .zonos--group-btn.sc-zonos-collect-payment zonos-button.sc-zonos-collect-payment{width:100%}.sc-zonos-collect-payment-h .zonos--test-cards.sc-zonos-collect-payment{margin-top:auto;padding-top:16px}";const q=class{constructor(e){o(this,e),this.mobile=!1,this.tablet=!1,this.collapsed=!1,this.isMobile=!1,this.isTablet=!1,this.isLoading=!0}handleWindowResize(){this.isMobile=V(this.mobile),this.isTablet=$(this.tablet)}componentWillLoad(){this.handleWindowResize(),setTimeout((()=>{this.isLoading=!1}),1e3)}render(){const o=this.isMobile?"gray-1000":"gray-800";return t(n,{key:"2ed81c7a0a16b9414fe1ce3799efa3b85679f982",class:R(["zonos--collect-review zonos--elements",this.isMobile&&"mobile",this.isTablet&&"tablet"])},t("div",{key:"fcf9fbc8dd807289bcd1c70406495b0c3396bfb8",class:"zonos--title"},t("zonos-text",{key:"44cfb3b82b8e617687c212e108cacafb45713243",textColor:o,type:"semiBoldLabel"},L("Pay [organizationName] duties, taxes and fees for your shipment",{organizationName:P.organizationName}))),t("div",{key:"5472a1ccc61b49ce8c9578a4c3f801386cab1e7d",class:"zonos--total-pay"},O({content:t("zonos-text",{type:"secondaryPageHeader"},A({amount:h.amountDutyTaxFeeTotal||0,isForeign:!0})),isLoading:h.isFetchingShippingInfo,skeletonHeight:"36px",skeletonWidth:"150px"})))}static get assetsDirs(){return["assets"]}};q.style=':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{position:-webkit-sticky;position:sticky;top:0;background-color:var(--zonos-elements-gray-0);z-index:1}:host .zonos--total-pay{margin:8px 0 24px;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;-ms-flex-align:center;align-items:center;gap:48px}:host .zonos--total-pay zonos-text{-ms-flex-negative:0;flex-shrink:0}:host .zonos--total-pay::after{content:"";position:relative;height:1px;width:100%;background:var(--zonos-elements-gray-200)}:host(.mobile),:host(.tablet){display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px;padding:4px 0;background-color:transparent;position:relative}:host(.mobile) .zonos--total-pay,:host(.tablet) .zonos--total-pay{margin:0}';const J=class{constructor(e){o(this,e),this.storeUnsubscribeList=[],this.subtotals={},this.initSubtotalData=()=>{var o;const e=null===(o=y.checkoutSession)||void 0===o?void 0:o.subtotals;if(!e)return;const t=L("Duties"),s=L("Taxes"),n=L("Fees"),l={[t]:0,[n]:0,[s]:0},a=e.duties,i=e.taxes,c=e.fees;void 0!==a&&(l[t]||(l[t]=0),l[t]+=a),void 0!==i&&(l[s]||(l[s]=0),l[s]+=i),void 0!==c&&(l[n]||(l[n]=0),l[n]+=c),this.subtotals=l}}disconnectedCallback(){this.storeUnsubscribeList.forEach((o=>o()))}componentWillLoad(){this.storeUnsubscribeList=[x("checkoutSession",this.initSubtotalData),j("translatedChunks",this.initSubtotalData)]}render(){return this.initSubtotalData(),t(n,{key:"f014c2ae733fe652d7d74349c0e12f93f46d71f5",class:"zonos--collect-subtotal zonos--elements"},t("table",{key:"0bab186aa957c29f026151f5a112ff66bb42cb04",class:"zonos--collect-table"},!!this.subtotals[L("Duties")]&&t("tr",{key:"97c24d5f179f5b59bcb91bc156b1d3e15b811262",class:"zonos--row zonos--collect-duty"},t("td",{key:"cba67296a6d17c0cd665981eb19ba95706f68843",class:"zonos--column zonos--collect-subtotal-title"},t("zonos-text",{key:"6665f531a8656c4a1e0f9761d919c150587a36fb",type:"semiBoldLabel"},L("Duties"))),t("td",{key:"20aeeee1fde0e63aaa168f32a5400ea82758a14c",class:"zonos--column"}),t("td",{key:"14994ca56e814f68fa3511098f5299a0942a295a",class:"zonos--column zonos--collect-subtotal-price"},O({content:t("zonos-text",{type:"label"},A({amount:this.subtotals[L("Duties")]||0,isForeign:!0})),isLoading:h.isFetchingShippingInfo,skeletonHeight:"14px",skeletonWidth:"150px"}))),!!this.subtotals[L("Taxes")]&&t("tr",{key:"cbbe4ddf13aabca9ff86b21317b067191f4155b8",class:"zonos--row zonos--collect-tax"},t("td",{key:"675a36a92e136f3afd1960616e842e152cba6256",class:"zonos--column zonos--collect-subtotal-title"},t("zonos-text",{key:"8896868f1e7f545d5b92c148a0f9812936ac2a9a",type:"semiBoldLabel"},L("Taxes"))),t("td",{key:"8a4c29f6d2d513fd7da8be7b1ab695794f3a99ab",class:"zonos--column"}),t("td",{key:"c15f7a872e59cce222a674acb55388dd18bfb74a",class:"zonos--column zonos--collect-subtotal-price"},O({content:t("zonos-text",{type:"label"},A({amount:this.subtotals[L("Taxes")]||0,isForeign:!0})),isLoading:h.isFetchingShippingInfo,skeletonHeight:"14px",skeletonWidth:"150px"}))),!!this.subtotals[L("Fees")]&&t("tr",{key:"4cf155874e4446b9ecab121cbaceba2328323359",class:"zonos--row zonos--collect-fee"},t("td",{key:"3efcb4779f34f35a2398eb661f4b799b6b4480c7",class:"zonos--column zonos--collect-subtotal-title"},t("zonos-text",{key:"41d30bb15d216663cd507f2c92d6639b5559708c",type:"semiBoldLabel"},L("Fees"))),t("td",{key:"ef8259d337fb047d8979f5008d2d46f3fc76b007",class:"zonos--column"}),t("td",{key:"e0430efffbe23880a776953ba6a05b0cea268df4",class:"zonos--column zonos--collect-subtotal-price"},O({content:t("zonos-text",{type:"label"},A({amount:this.subtotals[L("Fees")]||0,isForeign:!0})),isLoading:h.isFetchingShippingInfo,skeletonHeight:"14px",skeletonWidth:"150px"}))),t("tr",{key:"279ddddfc6e9fe88bc1f16aeaeb6464737ec212f",class:"zonos--row zonos--collect-spacing"},t("td",{key:"de88842e26eb39938b573fc2ac89915d9f6708ba",class:"zonos--column",colSpan:3})),t("tr",{key:"48ecfc5852f1cb25b7816503f3279a3cffc1a581",class:"zonos--row zonos--collect-total zonos--collect-total-subtotal"},t("td",{key:"06e65acfd5dd213481f415dc2475d9353e18ee53",class:"zonos--column"}),t("td",{key:"b5ae37799d471defdb983a9167b96aa5e176f78e",class:"zonos--column zonos--collect-subtotal-title"},t("zonos-text",{key:"52afa80c7b0eeda13093c26ce031dab4e4a62ee8",type:"label"},L("Subtotal"))),t("td",{key:"840e0413b9c0d651ba7de6529d7c6581f165c047",class:"zonos--column zonos--collect-subtotal-price"},O({content:t("zonos-text",{type:"label"},A({amount:h.amountDutyTaxFeeTotal||0,isForeign:!0})),isLoading:h.isFetchingShippingInfo,skeletonHeight:"14px",skeletonWidth:"150px"}))),t("tr",{key:"62ffc4102084c920e8bde4527415ea93d8ae8292",class:"zonos--row zonos--collect-total"},t("td",{key:"ef199898aa67686f1c36d2d0c73d1695443e81a9",class:"zonos--column"}),t("td",{key:"1bd5949e640823841ac7425a46b519482b975c37",class:"zonos--column zonos--collect-subtotal-title"},t("zonos-text",{key:"96d53a1ffd935ac98cd5560419cc7d5395945da4",type:"semiBoldLabel"},L("Customs fees total"))),t("td",{key:"008f69a34b557f2660426acccafe925f6b554293",class:"zonos--column zonos--collect-subtotal-price"},O({content:t("zonos-text",{type:"semiBoldLabel"},A({amount:h.amountDutyTaxFeeTotal||0,isForeign:!0})),isLoading:h.isFetchingShippingInfo,skeletonHeight:"14px",skeletonWidth:"150px"})))))}static get assetsDirs(){return["assets"]}};J.style=":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{position:-webkit-sticky;position:sticky;bottom:60px}:host .zonos--collect-table{width:100%;border:none;border-collapse:collapse;overflow:auto;font-size:var(--zonos-elements-font-size-base)}:host .zonos--collect-table .zonos--column{padding:8px 8px;vertical-align:top}:host .zonos--collect-table .zonos--column:last-child{text-align:right;padding-right:0}:host .zonos--collect-table .zonos--column:first-child{width:60px;max-width:100px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px}:host .zonos--collect-subtotal-price{text-align:right}:host .zonos--collect-subtotal-price zonos-text{white-space:nowrap}:host .zonos--collect-total .zonos--column{padding:16px 0}:host .zonos--collect-total-subtotal .zonos--collect-subtotal-title,:host .zonos--collect-total-subtotal .zonos--collect-subtotal-price{border-bottom:1px solid var(--zonos-elements-gray-200)}:host .zonos--collect-subtotal-price zonos-text,:host .zonos--collect-pay-total zonos-text{white-space:nowrap}";export{Y as zonos_collect_finish,Q as zonos_collect_footer,G as zonos_collect_order_details,X as zonos_collect_payment,q as zonos_collect_review,J as zonos_collect_subtotal}