@zonos/elements 1.3.218 → 1.3.220

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 (395) hide show
  1. package/dist/cjs/buildCartItemsByTempCart-309fcebf.js +28 -0
  2. package/dist/cjs/{cart-c54d05ce.js → cart-9a9ae4b9.js} +90 -47
  3. package/dist/cjs/cleanHtmlMarkdown-577d0a77.js +999 -0
  4. package/dist/cjs/index.cjs.js +19 -9
  5. package/dist/cjs/isCollectMobileTablet-7a9413e3.js +175 -0
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/localization-0169b27d.js +738 -0
  8. package/dist/cjs/{paypal-d36b5dd1.js → paypal-9ee374a0.js} +12 -8
  9. package/dist/cjs/placeTestOrder-0dfff170.js +93 -0
  10. package/dist/cjs/{localization-ab7e1902.js → translationStore-0c67178f.js} +1023 -734
  11. package/dist/cjs/zonos-address_11.cjs.entry.js +116 -74
  12. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  13. package/dist/cjs/{zonos-banner.cjs.entry.js → zonos-banner_2.cjs.entry.js} +40 -0
  14. package/dist/cjs/zonos-button_3.cjs.entry.js +3 -3
  15. package/dist/cjs/{zonos-cart-items_14.cjs.entry.js → zonos-cart-items_12.cjs.entry.js} +70 -1292
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +25 -48
  17. package/dist/cjs/zonos-collapse.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-collect-cart-items_3.cjs.entry.js +92 -0
  19. package/dist/cjs/zonos-collect-finish_6.cjs.entry.js +811 -0
  20. package/dist/cjs/zonos-collect.cjs.entry.js +468 -0
  21. package/dist/cjs/zonos-component.cjs.entry.js +1 -1
  22. package/dist/cjs/zonos-confirm-dialog_2.cjs.entry.js +168 -0
  23. package/dist/cjs/zonos-controller.cjs.entry.js +84 -28
  24. package/dist/cjs/zonos-country-flag.cjs.entry.js +2 -1
  25. package/dist/cjs/zonos-country-select_4.cjs.entry.js +11 -10
  26. package/dist/cjs/zonos-elements.cjs.js +1 -1
  27. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +23 -5
  28. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +34 -33
  29. package/dist/cjs/zonos-hello.cjs.entry.js +8 -7
  30. package/dist/cjs/zonos-input.cjs.entry.js +4 -4
  31. package/dist/cjs/zonos-language-select_2.cjs.entry.js +6 -5
  32. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  33. package/dist/cjs/zonos-logo.cjs.entry.js +2 -2
  34. package/dist/cjs/zonos-stripe-input.cjs.entry.js +8 -5
  35. package/dist/cjs/zonos-text.cjs.entry.js +1 -1
  36. package/dist/cjs/zonos-toggle.cjs.entry.js +2 -2
  37. package/dist/cjs/zonos-tooltip.cjs.entry.js +2 -2
  38. package/dist/cjs/zonos-v-stack.cjs.entry.js +2 -2
  39. package/dist/collection/collection-manifest.json +10 -0
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +2 -2
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +5 -1
  42. package/dist/collection/components/checkout/zonos-collect/assets/ChevronDownIcon.svg +1 -0
  43. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/assets/empty-item.jpeg +0 -0
  44. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.css +60 -0
  45. package/dist/collection/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.js +39 -0
  46. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/RemoveIcon.svg +1 -0
  47. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/assets/SuccessIcon.svg +1 -0
  48. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.css +90 -0
  49. package/dist/collection/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.js +405 -0
  50. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/chevronDownIcon.svg +1 -0
  51. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/globe.svg +3 -0
  52. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconDark.svg +10 -0
  53. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosIconLight.svg +10 -0
  54. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/assets/zonosWordmark.svg +7 -0
  55. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.css +152 -0
  56. package/dist/collection/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.js +164 -0
  57. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronDownIcon.svg +1 -0
  58. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/assets/ChevronUpIcon.svg +1 -0
  59. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.css +109 -0
  60. package/dist/collection/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.js +194 -0
  61. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/CheckmarkLineIcon.svg +1 -0
  62. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/assets/RemoveLineIcon.svg +1 -0
  63. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.css +98 -0
  64. package/dist/collection/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.js +369 -0
  65. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.css +71 -0
  66. package/dist/collection/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.js +151 -0
  67. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.css +78 -0
  68. package/dist/collection/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.js +115 -0
  69. package/dist/collection/components/checkout/zonos-collect/zonos-collect.css +349 -0
  70. package/dist/collection/components/checkout/zonos-collect/zonos-collect.js +547 -0
  71. package/dist/collection/components/common/zonos-badge/zonos-badge.js +3 -3
  72. package/dist/collection/components/common/zonos-button/zonos-button.js +3 -3
  73. package/dist/collection/components/common/zonos-card/zonos-card.js +4 -4
  74. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +3 -3
  75. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +3 -3
  76. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +2 -2
  77. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +3 -3
  78. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +3 -3
  79. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  80. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +3 -3
  81. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.css +38 -0
  82. package/dist/collection/components/common/zonos-h-stack/zonos-h-stack.js +63 -0
  83. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  84. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  85. package/dist/collection/components/common/zonos-link/zonos-link.js +1 -1
  86. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +1 -1
  87. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  88. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +3 -3
  89. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  90. package/dist/collection/components/common/zonos-skeleton/assets/RemoveLineIcon.svg +3 -0
  91. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.css +40 -0
  92. package/dist/collection/components/common/zonos-skeleton/zonos-skeleton.js +102 -0
  93. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +8 -5
  94. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +5 -5
  95. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +5 -5
  96. package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
  97. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +2 -2
  98. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  99. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  100. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -2
  101. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  102. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  103. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +4 -4
  104. package/dist/collection/components/main/zonos-controller.js +91 -25
  105. package/dist/collection/components/paypal/zonos-paypal-payment.js +13 -2
  106. package/dist/collection/components/store/checkout/cart.js +36 -15
  107. package/dist/collection/components/store/checkout/collect.js +160 -0
  108. package/dist/collection/components/store/checkout/paypal.js +4 -2
  109. package/dist/collection/components/store/checkout/stripe.js +31 -12
  110. package/dist/collection/components/store/translationStore/strings.arabic.js +51 -0
  111. package/dist/collection/components/store/translationStore/strings.base.js +51 -0
  112. package/dist/collection/components/store/translationStore/strings.chinese.js +51 -0
  113. package/dist/collection/components/store/translationStore/strings.danish.js +51 -0
  114. package/dist/collection/components/store/translationStore/strings.dutch.js +51 -0
  115. package/dist/collection/components/store/translationStore/strings.french.js +51 -0
  116. package/dist/collection/components/store/translationStore/strings.german.js +51 -0
  117. package/dist/collection/components/store/translationStore/strings.hebrew.js +51 -0
  118. package/dist/collection/components/store/translationStore/strings.indonesian.js +51 -0
  119. package/dist/collection/components/store/translationStore/strings.italian.js +51 -0
  120. package/dist/collection/components/store/translationStore/strings.japanese.js +51 -0
  121. package/dist/collection/components/store/translationStore/strings.korean.js +51 -0
  122. package/dist/collection/components/store/translationStore/strings.norwegian.js +51 -0
  123. package/dist/collection/components/store/translationStore/strings.polish.js +51 -0
  124. package/dist/collection/components/store/translationStore/strings.portuguese.js +51 -0
  125. package/dist/collection/components/store/translationStore/strings.russian.js +51 -0
  126. package/dist/collection/components/store/translationStore/strings.spanish.js +51 -0
  127. package/dist/collection/components/store/translationStore/strings.swedish.js +51 -0
  128. package/dist/collection/components/store/translationStore/strings.turkish.js +51 -0
  129. package/dist/collection/components/store/translationStore/strings.vietnamese.js +51 -0
  130. package/dist/collection/components/store/translationStore.js +2 -1
  131. package/dist/collection/components/stripe/zonos-address/zonos-address.js +35 -18
  132. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +2 -2
  133. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +2 -2
  134. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +29 -4
  135. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +9 -1
  136. package/dist/collection/components/utils/checkout/initCollect.js +15 -0
  137. package/dist/collection/components/utils/checkout/isCollectMobileTablet.js +10 -0
  138. package/dist/collection/components/utils/checkout/renderCheckoutCurrency.js +10 -1
  139. package/dist/collection/components/utils/renderFallback.js +7 -0
  140. package/dist/collection/scripts/_getZonosQaUrl.js +5 -1
  141. package/dist/collection/scripts/_zonosBase.js +7 -1
  142. package/dist/collection/types/checkout/api/PartyInfo.js +1 -0
  143. package/dist/collection/types/generated/graphql.internal.types.js +113 -0
  144. package/dist/collection/types/index.js +1 -0
  145. package/dist/esm/buildCartItemsByTempCart-c4488f73.js +26 -0
  146. package/dist/esm/{cart-bb0ee971.js → cart-b2dd578c.js} +68 -27
  147. package/dist/esm/cleanHtmlMarkdown-b5b18743.js +997 -0
  148. package/dist/esm/index.js +19 -9
  149. package/dist/esm/isCollectMobileTablet-7f9a5e2b.js +168 -0
  150. package/dist/esm/loader.js +1 -1
  151. package/dist/esm/localization-d7125e4e.js +719 -0
  152. package/dist/esm/{paypal-bd4520eb.js → paypal-555bbf1e.js} +7 -4
  153. package/dist/esm/placeTestOrder-2d67c1a9.js +90 -0
  154. package/dist/esm/{localization-d8326254.js → translationStore-13502f49.js} +1023 -718
  155. package/dist/esm/zonos-address_11.entry.js +85 -43
  156. package/dist/esm/zonos-badge.entry.js +3 -3
  157. package/dist/esm/{zonos-banner.entry.js → zonos-banner_2.entry.js} +40 -1
  158. package/dist/esm/zonos-button_3.entry.js +3 -3
  159. package/dist/esm/{zonos-cart-items_14.entry.js → zonos-cart-items_12.entry.js} +20 -1240
  160. package/dist/esm/zonos-checkout.entry.js +6 -29
  161. package/dist/esm/zonos-collapse.entry.js +2 -2
  162. package/dist/esm/zonos-collect-cart-items_3.entry.js +86 -0
  163. package/dist/esm/zonos-collect-finish_6.entry.js +802 -0
  164. package/dist/esm/zonos-collect.entry.js +464 -0
  165. package/dist/esm/zonos-component.entry.js +1 -1
  166. package/dist/esm/zonos-confirm-dialog_2.entry.js +163 -0
  167. package/dist/esm/zonos-controller.entry.js +84 -28
  168. package/dist/esm/zonos-country-flag.entry.js +2 -1
  169. package/dist/esm/zonos-country-select_4.entry.js +11 -10
  170. package/dist/esm/zonos-elements.js +1 -1
  171. package/dist/esm/zonos-empty-state-payment_4.entry.js +23 -5
  172. package/dist/esm/zonos-hello-dialog.entry.js +6 -5
  173. package/dist/esm/zonos-hello.entry.js +2 -1
  174. package/dist/esm/zonos-input.entry.js +4 -4
  175. package/dist/esm/zonos-language-select_2.entry.js +6 -5
  176. package/dist/esm/zonos-link.entry.js +1 -1
  177. package/dist/esm/zonos-logo.entry.js +2 -2
  178. package/dist/esm/zonos-stripe-input.entry.js +9 -6
  179. package/dist/esm/zonos-text.entry.js +1 -1
  180. package/dist/esm/zonos-toggle.entry.js +2 -2
  181. package/dist/esm/zonos-tooltip.entry.js +2 -2
  182. package/dist/esm/zonos-v-stack.entry.js +2 -2
  183. package/dist/esm-es5/buildCartItemsByTempCart-c4488f73.js +1 -0
  184. package/dist/esm-es5/cart-b2dd578c.js +1 -0
  185. package/dist/esm-es5/cleanHtmlMarkdown-b5b18743.js +1 -0
  186. package/dist/esm-es5/index.js +1 -1
  187. package/dist/esm-es5/isCollectMobileTablet-7f9a5e2b.js +1 -0
  188. package/dist/esm-es5/loader.js +1 -1
  189. package/dist/esm-es5/localization-d7125e4e.js +1 -0
  190. package/dist/esm-es5/paypal-555bbf1e.js +17 -0
  191. package/dist/esm-es5/placeTestOrder-2d67c1a9.js +1 -0
  192. package/dist/esm-es5/translationStore-13502f49.js +1 -0
  193. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  194. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  195. package/dist/esm-es5/zonos-banner_2.entry.js +1 -0
  196. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  197. package/dist/esm-es5/zonos-cart-items_12.entry.js +1 -0
  198. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  199. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  200. package/dist/esm-es5/zonos-collect-cart-items_3.entry.js +1 -0
  201. package/dist/esm-es5/zonos-collect-finish_6.entry.js +1 -0
  202. package/dist/esm-es5/zonos-collect.entry.js +1 -0
  203. package/dist/esm-es5/zonos-component.entry.js +1 -1
  204. package/dist/esm-es5/zonos-confirm-dialog_2.entry.js +1 -0
  205. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  206. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  207. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  208. package/dist/esm-es5/zonos-elements.js +1 -1
  209. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  210. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  211. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  212. package/dist/esm-es5/zonos-input.entry.js +1 -1
  213. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  214. package/dist/esm-es5/zonos-link.entry.js +1 -1
  215. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  216. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  217. package/dist/esm-es5/zonos-text.entry.js +1 -1
  218. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  219. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  220. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  221. package/dist/scripts/index.d.ts +470 -2
  222. package/dist/scripts/index.js +1 -1
  223. package/dist/scripts/loadZonos.js +1 -1
  224. package/dist/scripts/zonos.js +1 -1
  225. package/dist/types/components/checkout/zonos-collect/zonos-collect-cart-items/zonos-collect-cart-items.d.ts +4 -0
  226. package/dist/types/components/checkout/zonos-collect/zonos-collect-finish/zonos-collect-finish.d.ts +50 -0
  227. package/dist/types/components/checkout/zonos-collect/zonos-collect-footer/zonos-collect-footer.d.ts +25 -0
  228. package/dist/types/components/checkout/zonos-collect/zonos-collect-order-details/zonos-collect-order-details.d.ts +29 -0
  229. package/dist/types/components/checkout/zonos-collect/zonos-collect-payment/zonos-collect-payment.d.ts +62 -0
  230. package/dist/types/components/checkout/zonos-collect/zonos-collect-review/zonos-collect-review.d.ts +22 -0
  231. package/dist/types/components/checkout/zonos-collect/zonos-collect-subtotal/zonos-collect-subtotal.d.ts +10 -0
  232. package/dist/types/components/checkout/zonos-collect/zonos-collect.d.ts +86 -0
  233. package/dist/types/components/common/zonos-h-stack/zonos-h-stack.d.ts +9 -0
  234. package/dist/types/components/common/zonos-skeleton/zonos-skeleton.d.ts +17 -0
  235. package/dist/types/components/main/zonos-controller.d.ts +5 -0
  236. package/dist/types/components/paypal/zonos-paypal-payment.d.ts +3 -0
  237. package/dist/types/components/store/checkout/cart.d.ts +23 -3
  238. package/dist/types/components/store/checkout/collect.d.ts +21 -0
  239. package/dist/types/components/store/checkout/paypal.d.ts +4 -3
  240. package/dist/types/components/store/checkout/stripe.d.ts +6 -2
  241. package/dist/types/components/store/translationStore/strings.arabic.d.ts +51 -0
  242. package/dist/types/components/store/translationStore/strings.base.d.ts +51 -0
  243. package/dist/types/components/store/translationStore/strings.chinese.d.ts +51 -0
  244. package/dist/types/components/store/translationStore/strings.danish.d.ts +51 -0
  245. package/dist/types/components/store/translationStore/strings.dutch.d.ts +51 -0
  246. package/dist/types/components/store/translationStore/strings.french.d.ts +51 -0
  247. package/dist/types/components/store/translationStore/strings.german.d.ts +51 -0
  248. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +51 -0
  249. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +51 -0
  250. package/dist/types/components/store/translationStore/strings.italian.d.ts +51 -0
  251. package/dist/types/components/store/translationStore/strings.japanese.d.ts +51 -0
  252. package/dist/types/components/store/translationStore/strings.korean.d.ts +51 -0
  253. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +51 -0
  254. package/dist/types/components/store/translationStore/strings.polish.d.ts +51 -0
  255. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +51 -0
  256. package/dist/types/components/store/translationStore/strings.russian.d.ts +51 -0
  257. package/dist/types/components/store/translationStore/strings.spanish.d.ts +51 -0
  258. package/dist/types/components/store/translationStore/strings.swedish.d.ts +51 -0
  259. package/dist/types/components/store/translationStore/strings.turkish.d.ts +51 -0
  260. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +51 -0
  261. package/dist/types/components/store/translationStore.d.ts +2 -1
  262. package/dist/types/components/stripe/zonos-address/zonos-address.d.ts +1 -2
  263. package/dist/types/components/stripe/zonos-link-authentication/zonos-link-authentication.d.ts +3 -1
  264. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  265. package/dist/types/components/utils/checkout/initCollect.d.ts +1 -0
  266. package/dist/types/components/utils/checkout/isCollectMobileTablet.d.ts +4 -0
  267. package/dist/types/components/utils/renderFallback.d.ts +6 -0
  268. package/dist/types/components.d.ts +401 -2
  269. package/dist/types/scripts/_zonosBase.d.ts +5 -0
  270. package/dist/types/scripts/cart/_setupCartDataWithSettings.d.ts +5 -0
  271. package/dist/types/types/checkout/api/CheckoutSession.d.ts +9 -1
  272. package/dist/types/types/checkout/api/CreateParty.d.ts +24 -0
  273. package/dist/types/types/checkout/api/NormalizedTempCart.d.ts +6 -1
  274. package/dist/types/types/checkout/api/PartyInfo.d.ts +24 -0
  275. package/dist/types/types/generated/graphql.frontend.types.d.ts +1 -1
  276. package/dist/types/types/generated/graphql.frontend.types.ts +1 -1
  277. package/dist/types/types/generated/graphql.internal.types.d.ts +616 -5
  278. package/dist/types/types/generated/graphql.internal.types.ts +626 -6
  279. package/dist/types/types/index.d.ts +1 -0
  280. package/dist/zonos-elements/index.esm.js +1 -1
  281. package/dist/zonos-elements/{p-7b5de646.entry.js → p-02667a58.entry.js} +1 -1
  282. package/dist/zonos-elements/p-031d646e.system.js +1 -0
  283. package/dist/zonos-elements/p-0e07e1d6.entry.js +1 -0
  284. package/dist/zonos-elements/p-0ef2a242.js +1 -0
  285. package/dist/zonos-elements/p-126087a2.system.entry.js +1 -0
  286. package/dist/zonos-elements/{p-c7d5d45d.entry.js → p-14f9bc8c.entry.js} +1 -1
  287. package/dist/zonos-elements/p-27d9abab.js +1 -0
  288. package/dist/zonos-elements/p-2813d72e.system.js +1 -0
  289. package/dist/zonos-elements/p-295d9c07.system.entry.js +1 -0
  290. package/dist/zonos-elements/p-29c80a34.js +1 -0
  291. package/dist/zonos-elements/p-2a6c964d.js +1 -0
  292. package/dist/zonos-elements/p-2b3c7c77.system.entry.js +1 -0
  293. package/dist/zonos-elements/p-2b8897d1.system.entry.js +1 -0
  294. package/dist/zonos-elements/{p-544c173a.system.entry.js → p-30432622.system.entry.js} +1 -1
  295. package/dist/zonos-elements/p-3462e9e4.system.entry.js +1 -0
  296. package/dist/zonos-elements/p-372c2fc5.entry.js +1 -0
  297. package/dist/zonos-elements/p-3c1b1be1.system.entry.js +1 -0
  298. package/dist/zonos-elements/p-40a4266f.js +1 -0
  299. package/dist/zonos-elements/{p-47ffacd8.system.entry.js → p-421dfb66.system.entry.js} +1 -1
  300. package/dist/zonos-elements/{p-288761b1.system.entry.js → p-4f8563ad.system.entry.js} +1 -1
  301. package/dist/zonos-elements/p-52d35358.system.entry.js +1 -0
  302. package/dist/zonos-elements/p-567f7de7.entry.js +1 -0
  303. package/dist/zonos-elements/p-5d9410da.entry.js +1 -0
  304. package/dist/zonos-elements/p-637b22ee.system.entry.js +1 -0
  305. package/dist/zonos-elements/p-63a42823.entry.js +1 -0
  306. package/dist/zonos-elements/p-69451a50.system.js +1 -0
  307. package/dist/zonos-elements/p-6b3a0874.entry.js +1 -0
  308. package/dist/zonos-elements/p-73c1e91f.js +1 -0
  309. package/dist/zonos-elements/p-759ef3ca.entry.js +1 -0
  310. package/dist/zonos-elements/p-79d8c3f3.system.entry.js +1 -0
  311. package/dist/zonos-elements/{p-3f31901f.entry.js → p-7c4e7651.entry.js} +1 -1
  312. package/dist/zonos-elements/{p-1c45cd15.entry.js → p-7d2d2c94.entry.js} +1 -1
  313. package/dist/zonos-elements/{p-1ac8bfbb.system.entry.js → p-7e5bd9af.system.entry.js} +1 -1
  314. package/dist/zonos-elements/p-7ecbb2cb.entry.js +1 -0
  315. package/dist/zonos-elements/p-81b357f7.system.js +1 -1
  316. package/dist/zonos-elements/p-82e88a33.system.js +1 -0
  317. package/dist/zonos-elements/p-849b47aa.entry.js +1 -0
  318. package/dist/zonos-elements/p-8dd47520.system.entry.js +1 -0
  319. package/dist/zonos-elements/p-932600b7.js +1 -0
  320. package/dist/zonos-elements/p-960e0ab1.system.entry.js +1 -0
  321. package/dist/zonos-elements/p-9c5b8239.system.js +1 -0
  322. package/dist/zonos-elements/{p-d55aec11.system.entry.js → p-9fdd3264.system.entry.js} +1 -1
  323. package/dist/zonos-elements/p-a08a005d.entry.js +1 -0
  324. package/dist/zonos-elements/p-a10de7fb.entry.js +1 -0
  325. package/dist/zonos-elements/p-a49b5e7f.system.entry.js +1 -0
  326. package/dist/zonos-elements/{p-62813488.entry.js → p-a5b0a636.entry.js} +1 -1
  327. package/dist/zonos-elements/p-a61a9b65.system.entry.js +1 -0
  328. package/dist/zonos-elements/{p-d6fa2dc2.entry.js → p-a77ed1b9.entry.js} +1 -1
  329. package/dist/zonos-elements/{p-eeb01de6.system.entry.js → p-a800965d.system.entry.js} +1 -1
  330. package/dist/zonos-elements/p-b2ae8eb7.system.js +1 -0
  331. package/dist/zonos-elements/p-b3d5bcf9.entry.js +1 -0
  332. package/dist/zonos-elements/{p-da4c01da.system.entry.js → p-b669050d.system.entry.js} +1 -1
  333. package/dist/zonos-elements/p-b9e9b82f.system.entry.js +1 -0
  334. package/dist/zonos-elements/{p-714c28b1.system.entry.js → p-ba18c5f5.system.entry.js} +1 -1
  335. package/dist/zonos-elements/p-bbf48b31.entry.js +1 -0
  336. package/dist/zonos-elements/{p-77666360.entry.js → p-c4b3c878.entry.js} +1 -1
  337. package/dist/zonos-elements/p-c7b57886.js +17 -0
  338. package/dist/zonos-elements/p-c803753e.entry.js +1 -0
  339. package/dist/zonos-elements/{p-e640e8b8.entry.js → p-cbb01de9.entry.js} +1 -1
  340. package/dist/zonos-elements/p-ce15d62d.system.js +1 -0
  341. package/dist/zonos-elements/p-d291e964.system.entry.js +1 -0
  342. package/dist/zonos-elements/p-d3485a03.system.js +1 -0
  343. package/dist/zonos-elements/{p-59eaebe3.system.entry.js → p-de626806.system.entry.js} +1 -1
  344. package/dist/zonos-elements/p-e5388438.system.entry.js +1 -0
  345. package/dist/zonos-elements/p-e77b6e42.entry.js +1 -0
  346. package/dist/zonos-elements/p-ea8aff21.system.js +17 -0
  347. package/dist/zonos-elements/{p-7ab62a26.system.entry.js → p-eb6a35ce.system.entry.js} +1 -1
  348. package/dist/zonos-elements/{p-92cc26b7.system.entry.js → p-ee6f8c02.system.entry.js} +1 -1
  349. package/dist/zonos-elements/{p-a98b1e8d.entry.js → p-efa6203f.entry.js} +1 -1
  350. package/dist/zonos-elements/{p-edc77ea1.entry.js → p-f4fa8720.entry.js} +1 -1
  351. package/dist/zonos-elements/{p-ebaaaee9.entry.js → p-fa90adb8.entry.js} +1 -1
  352. package/dist/zonos-elements/p-fe7e2dc4.entry.js +1 -0
  353. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  354. package/package.json +1 -1
  355. package/dist/cjs/zonos-card.cjs.entry.js +0 -49
  356. package/dist/esm/zonos-card.entry.js +0 -45
  357. package/dist/esm-es5/cart-bb0ee971.js +0 -1
  358. package/dist/esm-es5/localization-d8326254.js +0 -1
  359. package/dist/esm-es5/paypal-bd4520eb.js +0 -17
  360. package/dist/esm-es5/zonos-banner.entry.js +0 -1
  361. package/dist/esm-es5/zonos-card.entry.js +0 -1
  362. package/dist/esm-es5/zonos-cart-items_14.entry.js +0 -1
  363. package/dist/zonos-elements/p-043f57e8.system.entry.js +0 -1
  364. package/dist/zonos-elements/p-0631d2b9.js +0 -1
  365. package/dist/zonos-elements/p-0a6ac265.system.js +0 -1
  366. package/dist/zonos-elements/p-0f041dc5.system.entry.js +0 -1
  367. package/dist/zonos-elements/p-1432a217.system.entry.js +0 -1
  368. package/dist/zonos-elements/p-1b51b738.system.entry.js +0 -1
  369. package/dist/zonos-elements/p-3a1513ae.system.entry.js +0 -1
  370. package/dist/zonos-elements/p-3b8d11dd.entry.js +0 -1
  371. package/dist/zonos-elements/p-4333afcb.entry.js +0 -1
  372. package/dist/zonos-elements/p-4d0d89da.system.entry.js +0 -1
  373. package/dist/zonos-elements/p-5dd9cb44.system.entry.js +0 -1
  374. package/dist/zonos-elements/p-605a21ac.entry.js +0 -1
  375. package/dist/zonos-elements/p-674981ad.system.js +0 -1
  376. package/dist/zonos-elements/p-6d090b53.entry.js +0 -1
  377. package/dist/zonos-elements/p-73c8c551.system.entry.js +0 -1
  378. package/dist/zonos-elements/p-795d223d.entry.js +0 -1
  379. package/dist/zonos-elements/p-8218ff62.system.entry.js +0 -1
  380. package/dist/zonos-elements/p-82f80c8a.entry.js +0 -1
  381. package/dist/zonos-elements/p-88f7256d.js +0 -1
  382. package/dist/zonos-elements/p-8b083884.entry.js +0 -1
  383. package/dist/zonos-elements/p-a449940d.entry.js +0 -1
  384. package/dist/zonos-elements/p-a5a4ad2f.entry.js +0 -1
  385. package/dist/zonos-elements/p-a5d45585.system.entry.js +0 -1
  386. package/dist/zonos-elements/p-a751e819.system.entry.js +0 -1
  387. package/dist/zonos-elements/p-ad556be6.entry.js +0 -1
  388. package/dist/zonos-elements/p-b4792af0.entry.js +0 -1
  389. package/dist/zonos-elements/p-b9ff6458.entry.js +0 -1
  390. package/dist/zonos-elements/p-d3dbae8c.system.js +0 -1
  391. package/dist/zonos-elements/p-ebb9b902.system.js +0 -17
  392. package/dist/zonos-elements/p-ef1ce617.system.entry.js +0 -1
  393. package/dist/zonos-elements/p-ef75da6f.js +0 -17
  394. package/dist/zonos-elements/p-f3dbe934.entry.js +0 -1
  395. package/dist/zonos-elements/p-f741407e.system.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host}from"./index-55a03023.js";import{f as zonosStoreFontFamily}from"./zonosStore-c456b933.js";import{c as classes}from"./classes-0d95c529.js";import"./VarianceTest-fef2d958.js";var RemoveLineIcon='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.8282 5.17184C11.0235 5.3671 11.0235 5.68368 10.8282 5.87894L8.70688 8.00026L10.8282 10.1216C11.0235 10.3168 11.0235 10.6334 10.8282 10.8287C10.6329 11.024 10.3164 11.024 10.1211 10.8287L7.99978 8.70737L5.87846 10.8287C5.68319 11.024 5.36661 11.024 5.17135 10.8287C4.97609 10.6334 4.97609 10.3168 5.17135 10.1216L7.29267 8.00026L5.17135 5.87894C4.97609 5.68368 4.97609 5.3671 5.17135 5.17184C5.36661 4.97658 5.68319 4.97658 5.87846 5.17184L7.99978 7.29316L10.1211 5.17184C10.3164 4.97658 10.6329 4.97658 10.8282 5.17184Z" fill="var(--zonos-elements-gray-800)"/>\n</svg>\n';var zonosBadgeCss=":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-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:8px;font-size:var(--zonos-elements-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--zonos-elements-radius-6);background-color:var(--zonos-elements-gray-100);color:var(--zonos-elements-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--zonos-elements-gray-600);color:var(--zonos-elements-gray-100)}:host .blue{background-color:var(--zonos-elements-blue-100);color:var(--zonos-elements-blue-800)}:host .blue.bold{background-color:var(--zonos-elements-blue-600);color:var(--zonos-elements-blue-100)}:host .green{background-color:var(--zonos-elements-green-100);color:var(--zonos-elements-green-800)}:host .green.bold{background-color:var(--zonos-elements-green-600);color:var(--zonos-elements-green-100)}:host .red{background-color:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800)}:host .red.bold{background-color:var(--zonos-elements-red-600);color:var(--zonos-elements-red-100)}:host .orange{background-color:var(--zonos-elements-orange-100);color:var(--zonos-elements-orange-800);border:1px solid var(--zonos-elements-orange-200)}:host .orange.bold{background-color:var(--zonos-elements-orange-600);color:var(--zonos-elements-orange-100)}:host .purple{background-color:var(--zonos-elements-purple-100);color:var(--zonos-elements-purple-800)}:host .purple.bold{background-color:var(--zonos-elements-purple-600);color:var(--zonos-elements-purple-100)}:host .cyan{background-color:var(--zonos-elements-cyan-100);color:var(--zonos-elements-cyan-800)}:host .cyan.bold{background-color:var(--zonos-elements-cyan-600);color:var(--zonos-elements-cyan-100)}:host .transparent{background-color:transparent;border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800)}:host .transparent.bold{background-color:var(--zonos-elements-glass-600);color:var(--zonos-elements-gray-100)}:host .zonos--badge-dismiss{cursor:pointer}";var ZonosBadgeStyle0=zonosBadgeCss;var ZonosBadge=function(){function o(o){registerInstance(this,o);this.bold=false;this.badgeColor="gray";this.iconRight=false;this.size="default";this.rounded=false;this.loading=false}o.prototype.render=function(){var o=this;return h(Host,{key:"d8a6a11f10c36a272ecdb52c54919f9ad45e1a9a",class:classes(["zonos--elements zonos--badge"]),style:{"--zonos--font-family":zonosStoreFontFamily()}},h("div",{key:"c7573446a478f9b9e45a4787593ba9ecaf595fdc",class:classes(["zonos--badge-content",this.badgeColor,this.rounded&&"rounded",this.iconRight&&"icon-right",this.size,this.bold&&"bold"])},this.icon,h("zonos-text",{key:"578f7cf2f27be3306fc7c776dc82a7a324a8b3ca",textColor:"".concat(this.badgeColor,"-800")},h("slot",{key:"0b59f674e40454dcf07bea704f38c9df7d68cb43"})),this.dismissHandler&&h("zonos-icon",{key:"ff4e2ee7511940df9ec27830e406502d7acf5209","aria-label":"Remove action",class:"zonos--badge-dismiss",content:RemoveLineIcon,onClick:function(){var e;return(e=o.dismissHandler)===null||e===void 0?void 0:e.call(o)}})))};return o}();ZonosBadge.style=ZonosBadgeStyle0;export{ZonosBadge as zonos_badge};
1
+ import{r as registerInstance,h,H as Host}from"./index-55a03023.js";import{f as zonosStoreFontFamily}from"./zonosStore-c456b933.js";import{c as classes}from"./classes-0d95c529.js";import"./VarianceTest-fef2d958.js";var RemoveLineIcon='<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M10.8282 5.17184C11.0235 5.3671 11.0235 5.68368 10.8282 5.87894L8.70688 8.00026L10.8282 10.1216C11.0235 10.3168 11.0235 10.6334 10.8282 10.8287C10.6329 11.024 10.3164 11.024 10.1211 10.8287L7.99978 8.70737L5.87846 10.8287C5.68319 11.024 5.36661 11.024 5.17135 10.8287C4.97609 10.6334 4.97609 10.3168 5.17135 10.1216L7.29267 8.00026L5.17135 5.87894C4.97609 5.68368 4.97609 5.3671 5.17135 5.17184C5.36661 4.97658 5.68319 4.97658 5.87846 5.17184L7.99978 7.29316L10.1211 5.17184C10.3164 4.97658 10.6329 4.97658 10.8282 5.17184Z" fill="var(--zonos-elements-gray-800)"/>\n</svg>\n';var zonosBadgeCss=":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-inline-flexbox;display:inline-flex}:host .zonos--badge-content{display:-ms-flexbox;display:flex;gap:8px;font-size:var(--zonos-elements-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--zonos-elements-radius-6);background-color:var(--zonos-elements-gray-100);color:var(--zonos-elements-gray-800);-ms-flex-align:center;align-items:center}:host p{font-weight:600;line-height:16px}:host .icon-right svg{-ms-flex-order:2;order:2}:host .small{padding:2px 8px}:host .rounded{border-radius:20px}:host .bold{background-color:var(--zonos-elements-gray-600);color:var(--zonos-elements-gray-100)}:host .blue{background-color:var(--zonos-elements-blue-100);color:var(--zonos-elements-blue-800)}:host .blue.bold{background-color:var(--zonos-elements-blue-600);color:var(--zonos-elements-blue-100)}:host .green{background-color:var(--zonos-elements-green-100);color:var(--zonos-elements-green-800)}:host .green.bold{background-color:var(--zonos-elements-green-600);color:var(--zonos-elements-green-100)}:host .red{background-color:var(--zonos-elements-red-100);color:var(--zonos-elements-red-800)}:host .red.bold{background-color:var(--zonos-elements-red-600);color:var(--zonos-elements-red-100)}:host .orange{background-color:var(--zonos-elements-orange-100);color:var(--zonos-elements-orange-800);border:1px solid var(--zonos-elements-orange-200)}:host .orange.bold{background-color:var(--zonos-elements-orange-600);color:var(--zonos-elements-orange-100)}:host .purple{background-color:var(--zonos-elements-purple-100);color:var(--zonos-elements-purple-800)}:host .purple.bold{background-color:var(--zonos-elements-purple-600);color:var(--zonos-elements-purple-100)}:host .cyan{background-color:var(--zonos-elements-cyan-100);color:var(--zonos-elements-cyan-800)}:host .cyan.bold{background-color:var(--zonos-elements-cyan-600);color:var(--zonos-elements-cyan-100)}:host .transparent{background-color:transparent;border:1px solid var(--zonos-elements-gray-200);color:var(--zonos-elements-gray-800)}:host .transparent.bold{background-color:var(--zonos-elements-glass-600);color:var(--zonos-elements-gray-100)}:host .zonos--badge-dismiss{cursor:pointer}";var ZonosBadgeStyle0=zonosBadgeCss;var ZonosBadge=function(){function o(o){registerInstance(this,o);this.bold=false;this.badgeColor="gray";this.iconRight=false;this.size="default";this.rounded=false;this.loading=false}o.prototype.render=function(){var o=this;return h(Host,{key:"5213d69a38c0e00d02d4c85d499ee5b5ca5a929c",class:classes(["zonos--elements zonos--badge"]),style:{"--zonos--font-family":zonosStoreFontFamily()}},h("div",{key:"178886813185320c971444c181a4fe0e8b57d7e3",class:classes(["zonos--badge-content",this.badgeColor,this.rounded&&"rounded",this.iconRight&&"icon-right",this.size,this.bold&&"bold"])},this.icon,h("zonos-text",{key:"6e75ee5fbbbe62b2d2c875a4866f33060dd9618b",textColor:"".concat(this.badgeColor,"-800")},h("slot",{key:"b6c1dcd8b29f1c99dc2cbd37d944ad8af3267713"})),this.dismissHandler&&h("zonos-icon",{key:"232d8056ee38962614267def07647c3f52246f0d","aria-label":"Remove action",class:"zonos--badge-dismiss",content:RemoveLineIcon,onClick:function(){var e;return(e=o.dismissHandler)===null||e===void 0?void 0:e.call(o)}})))};return o}();ZonosBadge.style=ZonosBadgeStyle0;export{ZonosBadge as zonos_badge};
@@ -0,0 +1 @@
1
+ import{r as registerInstance,h,H as Host}from"./index-55a03023.js";import{f as zonosStoreFontFamily}from"./zonosStore-c456b933.js";import{c as classes}from"./classes-0d95c529.js";import{g as getBorderRadius}from"./getBorderRadius-87593ff4.js";import"./VarianceTest-fef2d958.js";var zonosBannerCss=':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{border-radius:var(--zonos-elements-radius-10);padding:16px;background:var(--zonos-elements-gray-100)}:host .zonos--container{display:grid;-ms-flex-align:center;align-items:center;grid-template-areas:"icon header" ". content";grid-template-columns:32px auto 0}:host .zonos--icon-wrapper{grid-area:icon;display:-ms-flexbox;display:flex;justify-self:start}:host .zonos--header-wrapper{margin-top:0px;grid-area:header}:host .zonos--content-wrapper{grid-area:content;margin-top:4px}:host(.info){background-color:var(--zonos-elements-blue-100);border:1px solid var(--zonos-elements-blue-200)}:host(.success){background-color:var(--zonos-elements-green-100);border:1px solid var(--zonos-elements-green-200)}:host(.error){background-color:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host(.warning){background-color:var(--zonos-elements-orange-100);border:1px solid var(--zonos-elements-orange-200)}';var ZonosBannerStyle0=zonosBannerCss;var ZonosBanner=function(){function o(o){var e=this;registerInstance(this,o);this.hasContent=false;this.handleSlotChange=function(){e.hasContent=true}}o.prototype.render=function(){var o=this;var e=function(e){var s=e.color;var r="var(--zonos-elements-".concat(s,"-800)");var a="var(--zonos-elements-".concat(s,"-300)");var t=[o.bannerTitle,h("slot",{onSlotchange:o.handleSlotChange})].filter(Boolean),n=t[0],i=t[1];var l=s==="gray"?"gray-1000":"".concat(s,"-800");return h("div",{class:classes(["zonos--container"])},h("div",{class:"zonos--icon-wrapper"},h("svg",{color:r,fill:"none",height:"20",viewBox:"0 0 24 24",width:"20",xmlns:"https://www.w3.org/2000/svg"},h("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:a,"fill-rule":"evenodd"}),h("path",{"clip-rule":"evenodd",d:"M12 6.99a1 1 0 0 1 1 1V8a1 1 0 1 1-2 0v-.01a1 1 0 0 1 1-1ZM12 11a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0v-4a1 1 0 0 1 1-1Z",fill:"currentColor","fill-rule":"evenodd"}))),h("div",{class:"zonos--header-wrapper"},h("zonos-text",{textColor:l,type:"label",weight:600},n)),i&&h("div",{class:"zonos--content-wrapper"},h("zonos-text",{textColor:l},i)))};var s=classes(["zonos--elements zonos--banner",this.intent]);var r=zonosStoreFontFamily();switch(this.intent){case"error":return h(Host,{class:s,style:{"--zonos--font-family":r}},e({color:"red"}));case"info":return h(Host,{class:s,style:{"--zonos--font-family":r}},e({color:"blue"}));case"success":return h(Host,{class:s,style:{"--zonos--font-family":r}},e({color:"green"}));case"warning":return h(Host,{class:s,style:{"--zonos--font-family":r}},e({color:"orange"}));default:return h(Host,{class:s,style:{"--zonos--font-family":r}},e({color:"gray"}))}};return o}();ZonosBanner.style=ZonosBannerStyle0;var zonosCardCss=":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 .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";var ZonosCardStyle0=zonosCardCss;var ZonosCard=function(){function o(o){registerInstance(this,o);this.borderRadius=6;this.spacing="24px"}o.prototype.render=function(){var o=this.backgroundColor?"var(--zonos-elements-".concat(this.backgroundColor,")"):"transparent";var e=getBorderRadius({customRoundRadius:"".concat(this.borderRadius,"px"),overrideBorderStyle:"ROUNDED"});return h(Host,{key:"9423d1472ed313f50c5f4ecc61251025ac6083ed",style:{"--zonos--font-family":zonosStoreFontFamily()}},h("div",{key:"7d2506d2fa9297dce93676bd09dd854a84f27db3",class:classes(["styled-card"]),style:{"--zonos--background-color":o,"--zonos--border-radius":e,padding:this.spacing}},this.label&&h("header",{key:"81e381540ecbd5c398e5cabf6626d701569e16e5",class:"card-header",style:{padding:this.spacing}},h("zonos-text",{key:"7929725b31dec41dbab855daa3bd7ae97fb00eb3",type:"subheader"},this.label),h("h-stack",{key:"c69fe767e575b3aaf824eb355d7bb35e395ba77a",spacing:8},this.actions)),h("slot",{key:"ada30bc1760b957a817e0982e46f3def97974297"}),(this.footerActions||this.footerContent)&&h("footer",{key:"854c3d583cb293f5c064af87e839641a5201c900",class:"card-footer",style:{height:this.footerHeight?"".concat(this.footerHeight,"px"):"auto",padding:this.spacing}},h("div",{key:"0a799500938f8d04a8551134b21fe18a05f93de0"},this.footerContent),h("h-stack",{key:"927b51384452ab01b28da02c9a83256ab7dc6991",spacing:8},this.footerActions))))};return o}();ZonosCard.style=ZonosCardStyle0;export{ZonosBanner as zonos_banner,ZonosCard as zonos_card};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host,a as getElement}from"./index-55a03023.js";import{z as zonosStore,f as zonosStoreFontFamily}from"./zonosStore-c456b933.js";import{i as inheritAriaAttributes,a as inheritAttributes}from"./helpers-2f6955b1.js";import{c as classes}from"./classes-0d95c529.js";import{g as getBorderRadius}from"./getBorderRadius-87593ff4.js";import{i as isColorVariable}from"./isColorVariable-0a94004f.js";import{i as isDarkColor}from"./isDarkColor-1f58b6be.js";import{s as styles}from"./styles-6fc2fad9.js";import"./VarianceTest-fef2d958.js";var getButtonTheme=function(o){var e=o||zonosStore.appearance.colorSecondary;var t=e&&isColorVariable(e)?"var(--zonos-elements-".concat(e,")"):e;var n=t&&isDarkColor(t)?"DARK":"LIGHT";return n};var isElementUsingDarkTheme=function(o){return isDarkColor(window.getComputedStyle(o).getPropertyValue("--zonos-elements-gray-0"))};var zonosButtonCss=":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-inline-flexbox;display:inline-flex;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:var(--zonos--font-weight, 500);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--zonos--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--zonos--color, var(--zonos-elements-gray-1000));margin:1px;}:host button:not([disabled]):hover{background-image:var(--zonos-elements-button-standard-hover)}:host button:not([disabled]):active{background:var(--zonos-elements-gray-700)}:host button:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button.with-box-shadow{-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard)}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--zonos--background-color, var(--zonos-elements-gray-0));color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:1px solid var(--zonos--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:rgba(0, 0, 0, 0.1)}:host button:not(.override-background).subtle:not([disabled]):active{background:rgba(0, 0, 0, 0.2)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--zonos-elements-radius-4);width:24px}";var ZonosButtonStyle0=zonosButtonCss;var ZonosButton=function(){function o(o){var e=this;registerInstance(this,o);this.inheritedAttributes={};this.isDisabled=false;this.icon=null;this.iconRight=false;this.size="sm";this.variant="standard";this.noBackground=false;this.withBoxShadow=false;this.noPaddingLeft=false;this.noPaddingRight=false;this.loading=false;this.justifyContent="center";this.bold=false;this.hasIcon=!!this.icon;this.hasContent=false;this.handleSlotChange=function(){e.hasContent=true};this.getColorVarProperty=function(o){return o.replace("var(","").replace(")","")};this.getButtonStyle=function(){var o=e.variant||"standard";var t=e.buttonColor&&isColorVariable(e.buttonColor)?"var(--zonos-elements-".concat(e.buttonColor,")"):e.buttonColor;var n=window.getComputedStyle(e.ele).getPropertyValue(e.getColorVarProperty(t||""))||t||"";var s=!isElementUsingDarkTheme(e.ele);var r=!isDarkColor(n);var a=s&&!r||!s&&r;switch(o){case"subtle":{return{color:t,useDarkHoverSubtle:a}}default:{var i=e.backgroundColor&&isColorVariable(e.backgroundColor)?"var(--zonos-elements-".concat(e.backgroundColor,")"):e.backgroundColor;var l=i||zonosStore.appearance.colorSecondary;var d=l&&isColorVariable(e.getColorVarProperty(l))?window.getComputedStyle(e.ele).getPropertyValue(e.getColorVarProperty(l)):l;var h=e.variant!=="subtle"&&d&&isDarkColor(d)?"white":t;return{backgroundColor:l,color:h,spinnerColor:d&&isDarkColor(d)?"white":"black",useDarkHoverSubtle:a}}}}}o.prototype.iconChangeHandler=function(){this.hasIcon=!!this.icon};o.prototype.clickHandler=function(o){if(this.loading||this.isDisabled){o.preventDefault();o.stopPropagation()}};o.prototype.componentWillLoad=function(){this.iconChangeHandler();this.inheritedAttributes=Object.assign(Object.assign({},inheritAriaAttributes(this.ele)),inheritAttributes(this.ele,["tabindex","title","data-form-type","dir"]))};o.prototype.render=function(){var o=this.getButtonStyle(),e=o.backgroundColor,t=o.color,n=o.spinnerColor,s=o.useDarkHoverSubtle;var r=this.loading||this.isDisabled;var a=this.variant||"standard";var i=a==="standard"?getButtonTheme(e):undefined;var l=getBorderRadius({overrideBorderStyle:this.borderStyle});return h(Host,{key:"88cc4ce2ac8a82e62ac4a5a3828724b92da1db60",class:classes(["zonos--elements"]),"data-theme":this.theme||i,disabled:r,style:styles({"--zonos--background-color":e,"--zonos--border-radius":l,"--zonos--color":t,"--zonos--font-family":zonosStoreFontFamily(),"--zonos--font-weight":this.bold?"bold":"normal"})},h("button",Object.assign({key:"4037731e2337e441a2eeb5e28433ba8426cb75b2"},this.inheritedAttributes,{class:classes([this.hasIcon&&"has-icon",this.hasContent&&"has-content",this.noBackground&&"no-background",this.noPaddingLeft&&"no-padding-left",this.noPaddingRight&&"no-padding-right",this.iconRight&&"icon-right",this.withBoxShadow&&"with-box-shadow",s&&"dark-hover-subtle",a,this.size,e&&a==="standard"&&"override-background"]),disabled:r,style:{justifyContent:this.justifyContent}}),this.loading&&h("div",{key:"09f824b2106313200deaa1bdcb7afc3e3b161911",class:"zonos--spinner-wrapper"},h("zonos-spinner",{key:"b094e740a91c49a14a31fc56142dccf1062a584b",size:16,spinnerColor:n})),!this.loading&&!this.iconRight&&this.icon,h("slot",{key:"8bfc81ae6f5f114a0255854aa79db32a5ee39259",onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))};Object.defineProperty(o,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"ele",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{icon:["iconChangeHandler"]}},enumerable:false,configurable:true});return o}();ZonosButton.style=ZonosButtonStyle0;var zonosIconCss=":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-inline-flexbox;display:inline-flex}:host svg{width:var(--zonos--width);height:var(--zonos--height);fill:var(--zonos--color);color:var(--zonos--color)}";var ZonosIconStyle0=zonosIconCss;var ZonosIcon=function(){function o(o){registerInstance(this,o);this.autoHeight=false;this.iconColor="gray-1000";this.size=24}o.prototype.render=function(){if(!this.content||!this.el.shadowRoot){return null}var o=isColorVariable(this.iconColor)?"var(--zonos-elements-".concat(this.iconColor,")"):this.iconColor;this.el.shadowRoot.innerHTML=this.content;return h(Host,{class:"zonos--elements",style:{"--zonos--color":o,"--zonos--font-family":zonosStoreFontFamily(),"--zonos--height":"".concat(this.autoHeight?"auto":"".concat(this.size,"px")),"--zonos--width":"".concat(this.size,"px")}})};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}();ZonosIcon.style=ZonosIconStyle0;var zonosSpinnerCss=":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:relative;overflow:hidden;width:var(--zonos--size);height:var(--zonos--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--zonos--size);height:var(--zonos--size);stroke:var(--zonos-elements-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--zonos-elements-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--zonos-elements-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--zonos-elements-spinner-track-black)}:host(.white) circle{stroke:var(--zonos-elements-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--zonos-elements-spinner-track-white)}:host(.info) circle{stroke:var(--zonos-elements-blue-600)}:host(.info) circle.track{stroke:var(--zonos-elements-blue-100)}:host(.success) circle{stroke:var(--zonos-elements-green-600)}:host(.success) circle.track{stroke:var(--zonos-elements-green-100)}:host(.danger) circle{stroke:var(--zonos-elements-red-600)}:host(.danger) circle.track{stroke:var(--zonos-elements-red-100)}:host(.warning) circle{stroke:var(--zonos-elements-orange-600)}:host(.warning) circle.track{stroke:var(--zonos-elements-orange-100)}";var ZonosSpinnerStyle0=zonosSpinnerCss;var ZonosSpinner=function(){function o(o){registerInstance(this,o);this.size=32}o.prototype.render=function(){if(!this.el.shadowRoot){return null}return h(Host,{class:classes(["zonos--elements",this.spinnerColor]),style:{"--zonos--size":"".concat(this.size,"px")}},h("svg",{viewBox:"0 0 50 50"},h("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),h("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"})))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}();ZonosSpinner.style=ZonosSpinnerStyle0;export{ZonosButton as zonos_button,ZonosIcon as zonos_icon,ZonosSpinner as zonos_spinner};
1
+ import{r as registerInstance,h,H as Host,a as getElement}from"./index-55a03023.js";import{z as zonosStore,f as zonosStoreFontFamily}from"./zonosStore-c456b933.js";import{i as inheritAriaAttributes,a as inheritAttributes}from"./helpers-2f6955b1.js";import{c as classes}from"./classes-0d95c529.js";import{g as getBorderRadius}from"./getBorderRadius-87593ff4.js";import{i as isColorVariable}from"./isColorVariable-0a94004f.js";import{i as isDarkColor}from"./isDarkColor-1f58b6be.js";import{s as styles}from"./styles-6fc2fad9.js";import"./VarianceTest-fef2d958.js";var getButtonTheme=function(o){var e=o||zonosStore.appearance.colorSecondary;var t=e&&isColorVariable(e)?"var(--zonos-elements-".concat(e,")"):e;var n=t&&isDarkColor(t)?"DARK":"LIGHT";return n};var isElementUsingDarkTheme=function(o){return isDarkColor(window.getComputedStyle(o).getPropertyValue("--zonos-elements-gray-0"))};var zonosButtonCss=":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-inline-flexbox;display:inline-flex;border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--spinner-wrapper{position:absolute;top:0;left:0;right:0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;background-color:var(--zonos-elements-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--zonos-elements-radius-10);gap:8px}:host button{width:100%;position:relative;font-size:14px;-webkit-box-sizing:border-box;box-sizing:border-box;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;background-color:var(--zonos-elements-surface-color);border:none;outline:1px solid var(--zonos-elements-surface-color);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);font-weight:var(--zonos--font-weight, 500);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--zonos--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:8px 24px;color:var(--zonos--color, var(--zonos-elements-gray-1000));margin:1px;}:host button:not([disabled]):hover{background-image:var(--zonos-elements-button-standard-hover)}:host button:not([disabled]):active{background:var(--zonos-elements-gray-700)}:host button:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button.with-box-shadow{-webkit-box-shadow:var(--zonos-elements-shadow-button-standard);box-shadow:var(--zonos-elements-shadow-button-standard)}:host button.sm.no-background,:host button.md.no-background,:host button.lg.no-background{background:none;outline:none}:host button.sm.no-padding-left,:host button.md.no-padding-left,:host button.lg.no-padding-left{padding-left:0}:host button.sm.no-padding-right,:host button.md.no-padding-right,:host button.lg.no-padding-right{padding-right:0}:host button[disabled]{cursor:not-allowed;background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--zonos--background-color, var(--zonos-elements-gray-200))}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--zonos-elements-size-sm);line-height:var(--zonos-elements-size-sm);padding:4px 8px}:host button.sm:not(.has-content).has-icon{padding:0 4px}:host button.md{height:var(--zonos-elements-size-md);line-height:var(--zonos-elements-size-md);padding:8px 16px}:host button.md:not(.has-content).has-icon{padding:0 8px}:host button.lg{height:var(--zonos-elements-size-lg);line-height:var(--zonos-elements-size-lg);padding:12px 24px}:host button.lg:not(.has-content).has-icon{padding:0 16px}:host button:not(.only-icon).has-icon{gap:8px}@media (max-width: 400px){:host button:not(.only-icon).has-icon{font-size:var(--zonos-elements-font-size-s)}}:host button.override-background{background-color:var(--zonos--background-color, var(--zonos-elements-gray-0));color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:1px solid var(--zonos--background-color, var(--zonos-elements-gray-0))}:host button.override-background:disabled{opacity:0.8}:host button.override-background:not(:disabled):hover{opacity:0.9}:host button:not(.override-background){}:host button:not(.override-background).primary{background:var(--zonos-elements-blue-600);outline:1px solid var(--zonos-elements-blue-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--zonos-elements-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--zonos-elements-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--zonos-elements-blue-600)}:host button:not(.override-background).success{background:var(--zonos-elements-green-600);outline:1px solid var(--zonos-elements-green-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--zonos-elements-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--zonos-elements-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--zonos-elements-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-green-400)}:host button:not(.override-background).danger{background:var(--zonos-elements-red-600);outline:1px solid var(--zonos-elements-red-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--zonos-elements-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--zonos-elements-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--zonos-elements-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-red-400)}:host button:not(.override-background).warning{background:var(--zonos-elements-orange-600);outline:1px solid var(--zonos-elements-orange-600);color:var(--zonos-elements-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--zonos-elements-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--zonos-elements-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--zonos-elements-focus-button);box-shadow:var(--zonos-elements-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--zonos-elements-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--zonos--color, var(--zonos-elements-gray-1000));outline:none}:host button:not(.override-background).subtle:not([disabled]):hover{background:rgba(0, 0, 0, 0.1)}:host button:not(.override-background).subtle:not([disabled]):active{background:rgba(0, 0, 0, 0.2)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--zonos-elements-button-focus-ring);box-shadow:var(--zonos-elements-button-focus-ring)}:host button:not(.override-background).subtle[disabled] .content{opacity:0.6}:host button:not(.override-background).subtle[disabled] .zonos--spinner-wrapper{background-color:var(--zonos-elements-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--zonos-elements-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--zonos-elements-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--zonos-elements-gray-200)}:host .zonos--footer-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);z-index:10;justify-self:center;border-radius:var(--zonos-elements-radius-4);width:24px}";var ZonosButtonStyle0=zonosButtonCss;var ZonosButton=function(){function o(o){var e=this;registerInstance(this,o);this.inheritedAttributes={};this.isDisabled=false;this.icon=null;this.iconRight=false;this.size="sm";this.variant="standard";this.noBackground=false;this.withBoxShadow=false;this.noPaddingLeft=false;this.noPaddingRight=false;this.loading=false;this.justifyContent="center";this.bold=false;this.hasIcon=!!this.icon;this.hasContent=false;this.handleSlotChange=function(){e.hasContent=true};this.getColorVarProperty=function(o){return o.replace("var(","").replace(")","")};this.getButtonStyle=function(){var o=e.variant||"standard";var t=e.buttonColor&&isColorVariable(e.buttonColor)?"var(--zonos-elements-".concat(e.buttonColor,")"):e.buttonColor;var n=window.getComputedStyle(e.ele).getPropertyValue(e.getColorVarProperty(t||""))||t||"";var s=!isElementUsingDarkTheme(e.ele);var r=!isDarkColor(n);var a=s&&!r||!s&&r;switch(o){case"subtle":{return{color:t,useDarkHoverSubtle:a}}default:{var i=e.backgroundColor&&isColorVariable(e.backgroundColor)?"var(--zonos-elements-".concat(e.backgroundColor,")"):e.backgroundColor;var l=i||zonosStore.appearance.colorSecondary;var d=l&&isColorVariable(e.getColorVarProperty(l))?window.getComputedStyle(e.ele).getPropertyValue(e.getColorVarProperty(l)):l;var h=e.variant!=="subtle"&&d&&isDarkColor(d)?"white":t;return{backgroundColor:l,color:h,spinnerColor:d&&isDarkColor(d)?"white":"black",useDarkHoverSubtle:a}}}}}o.prototype.iconChangeHandler=function(){this.hasIcon=!!this.icon};o.prototype.clickHandler=function(o){if(this.loading||this.isDisabled){o.preventDefault();o.stopPropagation()}};o.prototype.componentWillLoad=function(){this.iconChangeHandler();this.inheritedAttributes=Object.assign(Object.assign({},inheritAriaAttributes(this.ele)),inheritAttributes(this.ele,["tabindex","title","data-form-type","dir"]))};o.prototype.render=function(){var o=this.getButtonStyle(),e=o.backgroundColor,t=o.color,n=o.spinnerColor,s=o.useDarkHoverSubtle;var r=this.loading||this.isDisabled;var a=this.variant||"standard";var i=a==="standard"?getButtonTheme(e):undefined;var l=getBorderRadius({overrideBorderStyle:this.borderStyle});return h(Host,{key:"d44e5db9b123906c2435285d23d0d05b6c15d8b3",class:classes(["zonos--elements"]),"data-theme":this.theme||i,disabled:r,style:styles({"--zonos--background-color":e,"--zonos--border-radius":l,"--zonos--color":t,"--zonos--font-family":zonosStoreFontFamily(),"--zonos--font-weight":this.bold?"bold":"normal"})},h("button",Object.assign({key:"a937efb3d014fd8f5501fcde7c3c2f0cb33439aa"},this.inheritedAttributes,{class:classes([this.hasIcon&&"has-icon",this.hasContent&&"has-content",this.noBackground&&"no-background",this.noPaddingLeft&&"no-padding-left",this.noPaddingRight&&"no-padding-right",this.iconRight&&"icon-right",this.withBoxShadow&&"with-box-shadow",s&&"dark-hover-subtle",a,this.size,e&&a==="standard"&&"override-background"]),disabled:r,style:{justifyContent:this.justifyContent}}),this.loading&&h("div",{key:"09292867f621fd3e04313494809e59254a353403",class:"zonos--spinner-wrapper"},h("zonos-spinner",{key:"250912ac9cc2ba4d9d5db8fdc67fa6009d5ea7ac",size:16,spinnerColor:n})),!this.loading&&!this.iconRight&&this.icon,h("slot",{key:"0695250725aff37526e6ea4f94456a368b873c59",onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))};Object.defineProperty(o,"delegatesFocus",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"ele",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{icon:["iconChangeHandler"]}},enumerable:false,configurable:true});return o}();ZonosButton.style=ZonosButtonStyle0;var zonosIconCss=":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-inline-flexbox;display:inline-flex}:host svg{width:var(--zonos--width);height:var(--zonos--height);fill:var(--zonos--color);color:var(--zonos--color)}";var ZonosIconStyle0=zonosIconCss;var ZonosIcon=function(){function o(o){registerInstance(this,o);this.autoHeight=false;this.iconColor="gray-1000";this.size=24}o.prototype.render=function(){if(!this.content||!this.el.shadowRoot){return null}var o=isColorVariable(this.iconColor)?"var(--zonos-elements-".concat(this.iconColor,")"):this.iconColor;this.el.shadowRoot.innerHTML=this.content;return h(Host,{class:"zonos--elements",style:{"--zonos--color":o,"--zonos--font-family":zonosStoreFontFamily(),"--zonos--height":"".concat(this.autoHeight?"auto":"".concat(this.size,"px")),"--zonos--width":"".concat(this.size,"px")}})};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}();ZonosIcon.style=ZonosIconStyle0;var zonosSpinnerCss=":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:relative;overflow:hidden;width:var(--zonos--size);height:var(--zonos--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--zonos--size);height:var(--zonos--size);stroke:var(--zonos-elements-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--zonos-elements-gray-200)}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}@keyframes dash{0%{stroke-dasharray:1, 150;stroke-dashoffset:0}50%{stroke-dasharray:90, 150;stroke-dashoffset:-35}100%{stroke-dasharray:90, 150;stroke-dashoffset:-124}}:host circle:not(.track){stroke-linecap:round;-webkit-animation:dash 1.5s ease-in-out infinite;animation:dash 1.5s ease-in-out infinite}:host(.black) circle{stroke:var(--zonos-elements-spinner-stroke-black)}:host(.black) circle.track{stroke:var(--zonos-elements-spinner-track-black)}:host(.white) circle{stroke:var(--zonos-elements-spinner-stroke-white)}:host(.white) circle.track{stroke:var(--zonos-elements-spinner-track-white)}:host(.info) circle{stroke:var(--zonos-elements-blue-600)}:host(.info) circle.track{stroke:var(--zonos-elements-blue-100)}:host(.success) circle{stroke:var(--zonos-elements-green-600)}:host(.success) circle.track{stroke:var(--zonos-elements-green-100)}:host(.danger) circle{stroke:var(--zonos-elements-red-600)}:host(.danger) circle.track{stroke:var(--zonos-elements-red-100)}:host(.warning) circle{stroke:var(--zonos-elements-orange-600)}:host(.warning) circle.track{stroke:var(--zonos-elements-orange-100)}";var ZonosSpinnerStyle0=zonosSpinnerCss;var ZonosSpinner=function(){function o(o){registerInstance(this,o);this.size=32}o.prototype.render=function(){if(!this.el.shadowRoot){return null}return h(Host,{class:classes(["zonos--elements",this.spinnerColor]),style:{"--zonos--size":"".concat(this.size,"px")}},h("svg",{viewBox:"0 0 50 50"},h("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),h("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"})))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}();ZonosSpinner.style=ZonosSpinnerStyle0;export{ZonosButton as zonos_button,ZonosIcon as zonos_icon,ZonosSpinner as zonos_spinner};
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(o,t,e,s){function n(o){return o instanceof e?o:new e((function(t){t(o)}))}return new(e||(e=Promise))((function(e,r){function i(o){try{c(s.next(o))}catch(o){r(o)}}function a(o){try{c(s["throw"](o))}catch(o){r(o)}}function c(o){o.done?e(o.value):n(o.value).then(i,a)}c((s=s.apply(o,t||[])).next())}))};var __generator=this&&this.__generator||function(o,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,n,r,i;return i={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function a(o){return function(t){return c([o,t])}}function c(a){if(s)throw new TypeError("Generator is already executing.");while(i&&(i=0,a[0]&&(e=0)),e)try{if(s=1,n&&(r=a[0]&2?n["return"]:a[0]?n["throw"]||((r=n["return"])&&r.call(n),0):n.next)&&!(r=r.call(n,a[1])).done)return r;if(n=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:e.label++;return{value:a[1],done:false};case 5:e.label++;n=a[1];a=[0];continue;case 7:a=e.ops.pop();e.trys.pop();continue;default:if(!(r=e.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){e.label=a[1];break}if(a[0]===6&&e.label<r[1]){e.label=r[1];r=a;break}if(r&&e.label<r[2]){e.label=r[2];e.ops.push(a);break}if(r[2])e.ops.pop();e.trys.pop();continue}a=t.call(o,e)}catch(o){a=[6,o];n=0}finally{s=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(o,t,e){if(e||arguments.length===2)for(var s=0,n=t.length,r;s<n;s++){if(r||!(s in t)){if(!r)r=Array.prototype.slice.call(t,0,s);r[s]=t[s]}}return o.concat(r||Array.prototype.slice.call(t))};import{r as registerInstance,d as getAssetPath,h,H as Host,F as Fragment,c as createEvent,a as getElement}from"./index-55a03023.js";import{e as cartStore,D as cartStoreHasOneEligibleItem,E as stripeStoreApplyPromoCode,F as stripeStoreRemovePromoCode,c as stripeStore,y as stripeStoreReset,d as stripeStoreRetrievePayment,t as trackConversionEvent,G as stripeStoreResetPromoCode,H as stripeStoreMessageBasedOnStatus,r as cartStoreNextStep,I as stripeStoreTranslateAddressToLatin,J as extractName,K as cartStoreOnChange,L as stripeStoreAsyncAddressUpdate,C as cartStoreUpdateSelectedShippingOption,M as cartStoreGetShippingTransitInfo,N as cartStoreGetMethod,O as sortServiceLevelOptionsByAmount}from"./cart-b2dd578c.js";import{t as translate}from"./translationStore-13502f49.js";import{r as renderCheckoutCurrency,p as placeTestOrder}from"./placeTestOrder-2d67c1a9.js";import{c as cleanHtmlMarkdown}from"./cleanHtmlMarkdown-b5b18743.js";import{c as classes}from"./classes-0d95c529.js";import{z as zonosStore,h as zonosStoreOnChange,g as getZonosStoreTheme,f as zonosStoreFontFamily}from"./zonosStore-c456b933.js";import{s as submitGtag,c as paypalStoreReset,a as paypalStore,i as isContrastColor}from"./paypal-555bbf1e.js";import{s as storageStore,l as localizationStore,c as localizationStoreOnChange}from"./localization-d7125e4e.js";import{h as handleFetch,l as log,s as sendErrorLog,d as allLogs,j as jsonParse,g as getIsTestMode,i as isCheckoutMobile,a as getIsStagingMode}from"./handleFetch-99218189.js";import{c as createCustomEvent}from"./createCustomEvent-58159025.js";import{g as getBorderRadius}from"./getBorderRadius-87593ff4.js";import{l as languages}from"./ILanguage-cd6acb72.js";import{i as isDarkColor,t as tinycolor}from"./isDarkColor-1f58b6be.js";import{i as isColorVariable}from"./isColorVariable-0a94004f.js";import{u as updateCheckoutSessionAttributes}from"./updateCheckoutSessionAttributes-92f42882.js";import{s as shouldRenderTaxIdInput,c as containsNonLatinChars}from"./shouldRenderTaxIdInput-8bc112bb.js";import{e as euCountryCodes}from"./TaxId-50d72254.js";import"./VarianceTest-fef2d958.js";import"./debounce-c34d1270.js";var zonosCartItemsCss=":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;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--cart-table td{vertical-align:top}:host .zonos--cart-item-name{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:12px}:host .zonos--cart-item-name .zonos--cart-item-quantity>*{display:inline-block}:host .zonos--cart-item-price zonos-text{white-space:nowrap}:host img{min-width:40px;margin-top:6px}";var ZonosCartItemsStyle0=zonosCartItemsCss;var ZonosCartItems=function(){function o(o){registerInstance(this,o);this.errorImages=[]}o.prototype.render=function(){var o=this;var t=getAssetPath("./assets/empty-item.jpeg");var e=cartStore.items.filter((function(o){return!o.isRestricted}));return h(Host,{key:"52911cfab4b2da9d65c840cd692e638c9dc732c5",class:"zonos--cart-items zonos--elements"},h("table",{key:"428a62423a7fcf0721f420c9fdceac4bd928a6eb",class:"zonos--cart-table"},h("tbody",{key:"41a438eeb79635ba00a241fa9771b9c33c7fe7ff"},e.map((function(e){var s=e.imageUrl;var n=cleanHtmlMarkdown(e.name);var r=e.amount*e.quantity;return h("tr",{class:"zonos--cart-item"},h("td",{class:"zonos--column zonos--cart-item-image"},s&&!o.errorImages.includes(s)?h("img",{alt:e.name,onError:function(){o.errorImages=__spreadArray(__spreadArray([],o.errorImages,true),[s],false)},src:e.imageUrl,style:{"min-width":"40px"},width:40}):h("img",{alt:e.name,src:t,width:40})),h("td",{class:"zonos--column zonos--cart-item-name"},h("div",null,n.map((function(o){return h("zonos-text",{type:"label"},o)}))),h("zonos-text",{textColor:"gray-600",type:"caption"},translate("Quantity"),": ",e.quantity)),h("td",{class:"zonos--column zonos--cart-item-price"},h("zonos-text",{type:"semiBoldLabel",weight:600},renderCheckoutCurrency({amount:r,isForeign:false}))))})))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCartItems.style=ZonosCartItemsStyle0;var ChevronUpIcon$2='<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g filter="url(#filter0_dd_2052_3658)">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M7.46967 14.5303C7.76256 14.8232 8.23744 14.8232 8.53033 14.5303L12.5 10.5607L16.4697 14.5303C16.7626 14.8232 17.2374 14.8232 17.5303 14.5303C17.8232 14.2374 17.8232 13.7626 17.5303 13.4697L13.0303 8.96967C12.7374 8.67678 12.2626 8.67678 11.9697 8.96967L7.46967 13.4697C7.17678 13.7626 7.17678 14.2374 7.46967 14.5303Z" fill="currentColor"/>\n</g>\n<defs>\n<filter id="filter0_dd_2052_3658" x="-3.5" y="-2" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">\n<feFlood flood-opacity="0" result="BackgroundImageFix"/>\n<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n<feOffset dy="2"/>\n<feGaussianBlur stdDeviation="2"/>\n<feComposite in2="hardAlpha" operator="out"/>\n<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>\n<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2052_3658"/>\n<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n<feOffset dy="1"/>\n<feGaussianBlur stdDeviation="1"/>\n<feComposite in2="hardAlpha" operator="out"/>\n<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0"/>\n<feBlend mode="normal" in2="effect1_dropShadow_2052_3658" result="effect2_dropShadow_2052_3658"/>\n<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_2052_3658" result="shape"/>\n</filter>\n</defs>\n</svg>\n';var zonosCartRestrictedItemsCss=':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{overflow:auto;position:relative}:host zonos-banner{margin-bottom:12px}:host .zonos--cart-title-collapse-trigger{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:24px;-ms-flex-align:center;align-items:center;background:var(--zonos-elements-gray-0);width:100%;border:none;cursor:pointer;margin-bottom:16px;position:-webkit-sticky;position:sticky;top:0;z-index:1;-webkit-transition:0.5s all ease;transition:0.5s all ease}:host .zonos--cart-title-collapse-trigger zonos-icon{-webkit-transition:-webkit-transform 0.3s ease;transition:-webkit-transform 0.3s ease;transition:transform 0.3s ease;transition:transform 0.3s ease, -webkit-transform 0.3s ease}:host .zonos--cart-title-collapse-trigger.collapsed{margin-bottom:0}:host .zonos--cart-title-collapse-trigger.collapsed zonos-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}:host .zonos--cart-title-collapse-trigger::before,:host .zonos--cart-title-collapse-trigger::after{content:"";display:block;width:80%;height:1px;background-color:var(--zonos-elements-border-color);-ms-flex-negative:1;flex-shrink:1}:host .zonos--cart-title-collapse-trigger .zonos--title-wrapper{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;gap:8px;-ms-flex-align:center;align-items:center}:host .zonos--cart-table{opacity:0.5;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;font-size:var(--zonos-elements-font-size-base)}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host img{min-width:40px}:host(.collapsed){-ms-flex-negative:0;flex-shrink:0}';var ZonosCartRestrictedItemsStyle0=zonosCartRestrictedItemsCss;var ZonosCartRestrictedItems=function(){function o(o){registerInstance(this,o);this.hide=false;this.errorImages=[];this.internalCollapsed=true;this.firstRender=true}o.prototype.componentDidLoad=function(){this.firstRender=true};o.prototype.render=function(){var o=this;var t;var e=getAssetPath("./assets/empty-item.jpeg");var s=((t=cartStore.exchangeRate)===null||t===void 0?void 0:t.rate)||1;var n=cartStore.restrictedItems.length;if(this.hide||n===0){return null}if(this.firstRender){this.internalCollapsed=cartStoreHasOneEligibleItem();this.firstRender=false}return h(Host,{class:classes(["zonos--cart-restricted-items","zonos--elements",this.internalCollapsed&&"collapsed"])},h("button",{class:classes(["zonos--cart-title-collapse-trigger",this.internalCollapsed&&"collapsed"]),onClick:function(){o.internalCollapsed=!o.internalCollapsed}},h("div",{class:"zonos--title-wrapper"},h("zonos-text",{textColor:"red-600",type:"label"},"".concat(translate(this.internalCollapsed?"Show":"Hide")," ").concat(n," ").concat(translate("restricted items"))),h("zonos-icon",{content:ChevronUpIcon$2,iconColor:"red-600"}))),h("zonos-collapse",{collapsed:this.internalCollapsed},h("zonos-banner",{bannerTitle:translate("The following items are unable to be shipped to your country and are not included in your cart total."),intent:"error"}),h("table",{class:"zonos--cart-table"},h("tbody",null,cartStore.restrictedItems.map((function(t,n){var r,i;var a=t.imageUrl;return h("tr",{class:"zonos--cart-item"},h("td",{class:"zonos--column zonos--cart-item-image"},a&&!o.errorImages.includes(a)?h("img",{alt:((r=t.matchedItem)===null||r===void 0?void 0:r.name)||t.name||"Restricted item ".concat(n+1),onError:function(){o.errorImages=__spreadArray(__spreadArray([],o.errorImages,true),[a],false)},src:a,style:{"min-width":"40px"},width:40}):h("img",{alt:t.name||"Restricted item ".concat(n+1),src:e,width:40})),h("td",{class:"zonos--column zonos--cart-item-name"},h("zonos-text",{type:"label"},((i=t.matchedItem)===null||i===void 0?void 0:i.name)||t.name),h("zonos-text",{type:"caption"},t.restriction.reason)),h("td",{class:"zonos--column zonos--cart-item-price"},h("zonos-text",{type:"semiBoldLabel"},renderCheckoutCurrency({amount:t.amount*t.quantity*s,isForeign:false}))))}))))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCartRestrictedItems.style=ZonosCartRestrictedItemsStyle0;var zonosCartSubtotalCss=":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:20px 8px;vertical-align:top}:host .zonos--cart-table .zonos--column:last-child{text-align:right}:host .zonos--cart-table .zonos--column:first-child{width:60px}:host .zonos--title-with-icon{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price,:host .zonos--cart-promo-code-col{border-bottom:1px solid var(--zonos-elements-gray-200)}:host .zonos--cart-duty-tax-price{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:end;align-items:flex-end;gap:5px}:host .zonos--cart-subtotal-price{text-align:right}:host .zonos--cart-subtotal-price zonos-text{white-space:nowrap}:host .zonos--cart-subtotal-price zonos-text,:host .zonos--cart-pay-total zonos-text{white-space:nowrap}:host .zonos--cart-promo-code-input-wrapper{display:-ms-flexbox;display:flex;gap:16px;-ms-flex-align:center;align-items:center}:host .zonos--cart-promo-code-input{-ms-flex:1;flex:1}";var ZonosCartSubtotalStyle0=zonosCartSubtotalCss;var ZonosCartSubtotal=function(){function o(o){registerInstance(this,o);this.loading=false}o.prototype.render=function(){var o=this;var t,e,s,n,r;var i=cartStore.step==="payment"||cartStore.step==="shipping";var a=cartStoreHasOneEligibleItem()?cartStore.total:0;var c=cartStoreHasOneEligibleItem()?cartStore.subtotal:0;var l=!cartStore.shouldHideDiscountInput&&cartStore.step!=="customer-info";var u=(r=(n=(s=(e=(t=cartStore.landedCostData)===null||t===void 0?void 0:t.find(Boolean))===null||e===void 0?void 0:e.landedCost.appliedAdjustments)===null||s===void 0?void 0:s.find((function(o){var t;return((t=o.adjustment)===null||t===void 0?void 0:t.source)==="PROMO_CODE"})))===null||n===void 0?void 0:n.adjustment)===null||r===void 0?void 0:r.name;var d=function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:cartStore.promoCodeApplied=true;cartStore.promoCodeError=false;this.loading=true;return[4,stripeStoreApplyPromoCode()];case 1:o.sent();this.loading=false;return[2]}}))}))};var p=function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:cartStore.promoCodeError=false;this.loading=true;return[4,stripeStoreRemovePromoCode()];case 1:o.sent();this.loading=false;return[2]}}))}))};var f=function(){if(!cartStore.selectedShippingOption){return h(Fragment,null,h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Shipping")),h("zonos-text",{class:"zonos--caption",type:"caption"},translate("No shipping method selected")))}return h(Fragment,null,h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},cartStore.selectedShippingOption.displayName),cartStore.selectedShippingOptionTransitTime&&h("zonos-text",{class:"zonos--caption",type:"caption"},cartStore.selectedShippingOptionTransitTime))};var m=function(){var o,t,e;if((t=(o=zonosStore.genericSettings)===null||o===void 0?void 0:o.domesticCountries)===null||t===void 0?void 0:t.includes(((e=stripeStore.stripeAddressEventData)===null||e===void 0?void 0:e.value.address.country)||"US")){return h(Fragment,null,h("td",{class:"zonos--column zonos--cart-subtotal-title"},h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Taxes and fees"))),h("td",{class:"zonos--column zonos--cart-subtotal-price"},h("div",{class:"zonos--cart-duty-tax-price"},cartStore.dutiesTaxesFees!==null||cartStore.dutiesTaxesFeesEstimate!==null?renderCheckoutCurrency({amount:cartStore.dutiesTaxesFees||cartStore.dutiesTaxesFeesEstimate||0,isForeign:true}):"-")))}if(cartStore.landedCostMethod==="DAP"){return h(Fragment,null,h("td",{class:"zonos--column zonos--cart-subtotal-title"},h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Duties, taxes, and fees")),cartStore.dutiesTaxesFeesEstimate!==null?"".concat(translate("Estimated [amount]",{amount:renderCheckoutCurrency({amount:cartStore.dutiesTaxesFeesEstimate,isForeign:true})})):"-"),h("td",{class:"zonos--column zonos--cart-subtotal-price"},h("div",{class:"zonos--cart-duty-tax-price"},translate("Due at delivery"))))}return h(Fragment,null,h("td",{class:"zonos--column zonos--cart-subtotal-title"},h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Duties, taxes, and fees")),h("zonos-text",{class:"zonos--caption",type:"caption"},translate("Nothing due at the door"))),h("td",{class:"zonos--column zonos--cart-subtotal-price"},h("div",{class:"zonos--cart-duty-tax-price"},cartStore.dutiesTaxesFees!==null?renderCheckoutCurrency({amount:cartStore.dutiesTaxesFees,isForeign:true}):"-")))};return h(Host,{class:"zonos--cart-subtotal zonos--elements"},h("table",{class:"zonos--cart-table"},h("tr",{class:"zonos--row zonos--cart-subtotal"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column zonos--cart-subtotal-title"},h("zonos-text",{type:"semiBoldLabel"},translate("Cart subtotal"))),h("td",{class:"zonos--column zonos--cart-subtotal-price"},h("zonos-text",{type:"semiBoldLabel"},renderCheckoutCurrency({amount:c,isForeign:true})))),h("tr",{class:"zonos--row zonos--cart-shipping"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column zonos--cart-subtotal-title"},f()),h("td",{class:"zonos--column zonos--cart-subtotal-price"},cartStore.shipping?renderCheckoutCurrency({amount:cartStore.shipping,isForeign:true}):"-")),i&&h("tr",{class:"zonos--row zonos--cart-duties"},h("td",{class:"zonos--column"}),m()),l&&h("tr",{class:"zonos--row zonos--cart-promo-code"},h("td",{class:"zonos--column"}),!!u?h(Fragment,null,h("td",{class:"zonos--column zonos--cart-promo-code-col"},this.loading?h("zonos-spinner",{size:16}):h("zonos-badge",{dismissHandler:function(){return p()}},cartStore.promoCode)),h("td",{class:"zonos--column zonos--cart-promo-code-col"})):h("td",{class:"zonos--column zonos--cart-promo-code-col",colSpan:2},h("div",{class:"zonos--cart-promo-code-input-wrapper"},h("zonos-input",{class:"zonos--cart-promo-code-input",inputLabel:translate("Add promotional code"),inputValue:cartStore.promoCode,isError:cartStore.promoCodeError,onInputChange:function(o){return cartStore.promoCode=o.detail.trim()},onKeyDown:function(o){if(o.key==="Enter"){void d()}}}),h("zonos-button",{loading:this.loading,onClick:function(){return d()},variant:"primary"},translate("Apply"))))),!!cartStore.adjustmentTotal&&h("tr",{class:"zonos--row zonos--cart-discount"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column zonos--cart-subtotal-title"},h("div",{class:"zonos--title-with-icon"},h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Discounts")))),h("td",{class:"zonos--column zonos--cart-subtotal-price"},h("zonos-text",{type:"semiBoldLabel"},renderCheckoutCurrency({amount:cartStore.adjustmentTotal,isForeign:true})))),h("tr",{class:"zonos--row zonos--cart-pay-total"},h("td",{class:"zonos--column"}),h("td",{class:"zonos--column"},h("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},translate("Order total"))),h("td",{class:"zonos--column zonos--cart-total-price"},h("zonos-text",{type:"semiBoldLabel"},renderCheckoutCurrency({amount:a,isForeign:true}))))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCartSubtotal.style=ZonosCartSubtotalStyle0;var RemoveIcon='<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>';var SuccessIcon='<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>';var zonosCheckoutFinishCss=":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}: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:20px}:host .zonos--finish-details{max-width:536px;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--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}";var ZonosCheckoutFinishStyle0=zonosCheckoutFinishCss;var MAX_RETRIES=30;var ZonosCheckoutFinish=function(){function o(o){var t=this;registerInstance(this,o);this.closeClick=createEvent(this,"closeClick",7);this.borderRadius="ROUNDED";this.isLoading=true;this.notificationType="success";this.notificationTitle="";this.notificationMessages=[];this.notificationActionText=translate("Keep shopping");this.order=null;this.isWaitingToRedirect=true;this.pullOrder=function(){return __awaiter(t,void 0,void 0,(function(){var o,t,e,s,n,r,i,a;return __generator(this,(function(c){switch(c.label){case 0:e=storageStore.checkoutSessionId;s=new URLSearchParams;s.set("checkoutSessionId",e||"");return[4,handleFetch("/api/zonos-elements/get-order?".concat(s.toString()))];case 1:n=c.sent(),r=n.baseUrl,i=n.errors,a=n.json;if(i.length||!(a===null||a===void 0?void 0:a.id)){return[2,{baseUrl:r,order:null}]}return[4,(t=(o=zonosStore.checkoutSettings).onOrderSuccess)===null||t===void 0?void 0:t.call(o,{zonosApiRoute:r,zonosOrder:a})];case 2:c.sent();return[2,{baseUrl:r,order:a}]}}))}))};this.redirectToUrl=function(o){stripeStoreReset();storageStore.checkoutSessionId=null;if(window.parent){window.parent.location.href=o}window.location.href=o};this.isRedirectBehavior=function(){var o=zonosStore.checkoutSettings.successBehavior;return o==="REDIRECT_TO_SUCCESS_PAGE"||!!cartStore.externalConfirmationPageURL};this.shouldRenderKeepShoppingButton=function(){return!t.isRedirectBehavior()&&t.notificationType==="success"};this.shouldRenderCloseButtonForRedirectBehavior=function(){return t.isRedirectBehavior()||t.notificationType==="error"};this.redirectToMerchantSuccessPage=function(){var o,e,s,n;var r=cartStore.externalConfirmationPageURL||zonosStore.checkoutSettings.successRedirectUrl;var i=r;var a=new URLSearchParams;var c=(o=t.order)===null||o===void 0?void 0:o.id;var l=((n=(s=(e=t.order)===null||e===void 0?void 0:e.references)===null||s===void 0?void 0:s.find((function(o){return(o===null||o===void 0?void 0:o.key)==="zonosOrderNumber"})))===null||n===void 0?void 0:n.value)||null;if(c){a.set("zOrderNumber",c)}if(l){a.set("orderId",l)}var h=a.toString();var u=i.includes("?");t.isWaitingToRedirect=true;t.redirectToUrl(h?"".concat(i).concat(u?"&":"?").concat(h):i)};this.handleSuccessBehavior=function(){return __awaiter(t,void 0,void 0,(function(){var o,t;return __generator(this,(function(e){switch(e.label){case 0:this.saveOrderIdForDuplicationIssue();o=zonosStore.checkoutSettings.successBehavior;t=true;switch(t){case o==="REDIRECT_TO_SUCCESS_PAGE":return[3,1];case!!cartStore.externalConfirmationPageURL:return[3,1];case o==="CLOSE_MODAL":return[3,3];case o==="ZONOS_SUCCESS_PAGE":return[3,3]}return[3,3];case 1:this.notificationTitle=translate("Order complete!");this.notificationMessages=[translate("Your order has been successfully placed."),translate("You will be redirected back to the merchant's site in a few seconds.")];this.isLoading=false;this.isWaitingToRedirect=true;this.useOverrideSuccessNotification();return[4,this.getPullOrder()];case 2:e.sent();if(!this.order){log("=== Order info not found, not redirecting, hide spinner for close button","error");this.isWaitingToRedirect=false;return[2]}this.isWaitingToRedirect=false;this.redirectToMerchantSuccessPage();return[3,6];case 3:this.useOverrideSuccessNotification();this.isLoading=false;if(!(typeof zonosStore.checkoutSettings.onOrderSuccess==="function"))return[3,5];return[4,this.getPullOrder()];case 4:e.sent();e.label=5;case 5:return[3,6];case 6:return[2]}}))}))};this.getPullOrder=function(){var o=[];for(var e=0;e<arguments.length;e++){o[e]=arguments[e]}return __awaiter(t,__spreadArray([],o,true),void 0,(function(o){var t,e,s,n,r,i,a,c,l;if(o===void 0){o=0}return __generator(this,(function(h){switch(h.label){case 0:if(o===0){log("=== Start to poll for order info","info")}return[4,this.pullOrder()];case 1:s=h.sent(),n=s.baseUrl,r=s.order;i=window.Zonos.isLegacyCheckout;a=!!((e=(t=r===null||r===void 0?void 0:r.references)===null||t===void 0?void 0:t.find((function(o){return(o===null||o===void 0?void 0:o.key)==="zonosOrderNumber"})))===null||e===void 0?void 0:e.value);c=storageStore.checkoutSessionId;l=parseFloat(new URLSearchParams(window.location.search).get("maxPollingRetries")||"0")||MAX_RETRIES;log("=== Polling order (".concat(o," attemps)"),"info");if(!(r&&!i||r&&o>=l||a))return[3,2];log("=== Order info found","info");if(i&&r&&!a){void sendErrorLog({endpoint:"".concat(n,"/api/zonos-elements/get-order?checkoutSessionId=").concat(c,"&orderId=").concat(r.id),errors:["Order found but legacy order number doesn't exist after ".concat(l," attempts")],metadata:{allLogs:allLogs,checkoutSessionId:storageStore.checkoutSessionId||"",orderId:r.id,storeId:zonosStore.storeId}});return[2]}else if(o>10){void sendErrorLog({endpoint:"".concat(n,"/api/zonos-elements/get-order?checkoutSessionId=").concat(c,"&orderId=").concat(r.id),errors:["Order found after ".concat(o," attempts")],metadata:{allLogs:allLogs,checkoutSessionId:storageStore.checkoutSessionId||"",orderId:r.id,storeId:zonosStore.storeId}})}this.order=r;return[3,6];case 2:if(!((!r||!a)&&o<l))return[3,5];return[4,new Promise((function(o){return setTimeout(o,1e3)}))];case 3:h.sent();return[4,this.getPullOrder(o+1)];case 4:h.sent();return[3,6];case 5:void sendErrorLog({endpoint:"".concat(n,"/api/zonos-elements/get-order?checkoutSessionId=").concat(c),errors:["Order not found after ".concat(l," attempts")],metadata:{allLogs:allLogs,checkoutSessionId:storageStore.checkoutSessionId||"",storeId:zonosStore.storeId}});h.label=6;case 6:return[2]}}))}))};this.useOverrideSuccessNotification=function(){var o=zonosStore.checkoutSettings,e=o.successPageSubtitleText,s=o.successPageTitleText;if(s){t.notificationTitle=s}if(e){t.notificationMessages=e}};this.checkStripePaymentStatus=function(){return __awaiter(t,void 0,void 0,(function(){var o,t,e,s,n,r,i,a,c;return __generator(this,(function(l){switch(l.label){case 0:o=new URLSearchParams(window.location.search).get("payment_intent_client_secret")||stripeStore.clientSecret;if(!(o||this.storybookForceStatus))return[3,4];return[4,stripeStoreRetrievePayment({clientSecret:o,storybookForceStatus:this.storybookForceStatus})];case 1:t=l.sent(),e=t.error,s=t.messages,n=t.status;r=n==="requires_action"||e;this.notificationType=r?"error":"success";this.notificationMessages=s||[];this.notificationTitle=r?translate("Payment failed"):translate("You're all set!");log("=== Payment intent retrieve status","info",{clientSecret:o,error:e,messages:s,status:n});i=new URL(window.location.href);i.searchParams.delete("payment_intent_client_secret");i.searchParams.delete("payment_intent");i.searchParams.delete("redirect_status");i.searchParams.delete("zonosCheckoutSessionId");window.history.replaceState({},"",i.toString());if(!(e&&(s===null||s===void 0?void 0:s.length)))return[3,2];submitGtag("zonos-checkout-payment-fail");void sendErrorLog({endpoint:"Stripe payment failed",errors:['Payment intent "'.concat(o.split("_secret_")[0],'" status: ').concat(n," - checkout session: ").concat(storageStore.checkoutSessionId)],metadata:{allLogs:allLogs,credentialToken:window.Zonos.zonosApiKey}});return[3,4];case 2:this.saveOrderIdForDuplicationIssue();submitGtag("zonos-checkout-success");a=storageStore.checkoutSessionId;void trackConversionEvent({checkoutSessionId:a,eventName:"checkout_orderCompleted"});c=createCustomEvent("zonos-checkout-success",{message:"Zonos Checkout successfully processed order"});document.dispatchEvent(c);return[4,this.handleSuccessBehavior()];case 3:l.sent();l.label=4;case 4:this.isLoading=false;stripeStoreResetPromoCode();stripeStoreReset();storageStore.checkoutSessionId=null;return[2]}}))}))};this.checkStagingOrderStatus=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:this.notificationType="success";this.notificationTitle=translate("You're all set!");this.notificationMessages=stripeStoreMessageBasedOnStatus("succeeded").messages;this.useOverrideSuccessNotification();return[4,this.handleSuccessBehavior()];case 1:o.sent();stripeStoreResetPromoCode();stripeStoreReset();paypalStoreReset();storageStore.checkoutSessionId=null;return[2]}}))}))};this.checkPaypalPaymentStatus=function(){return __awaiter(t,void 0,void 0,(function(){var o;return __generator(this,(function(t){switch(t.label){case 0:if(paypalStore.paypalErrorMessage){this.notificationType="error";this.notificationTitle=translate("Payment failed");this.notificationMessages=[paypalStore.paypalErrorMessage];this.isLoading=false;return[2]}this.isLoading=false;if(!paypalStore.orderIdCreated)return[3,2];submitGtag("zonos-checkout-success");o=storageStore.checkoutSessionId;void trackConversionEvent({checkoutSessionId:o,eventName:"checkout_orderCompleted"});this.notificationType="success";this.notificationTitle=translate("You're all set!");this.notificationMessages=stripeStoreMessageBasedOnStatus("succeeded").messages;this.useOverrideSuccessNotification();return[4,this.handleSuccessBehavior()];case 1:t.sent();t.label=2;case 2:stripeStoreResetPromoCode();stripeStoreReset();paypalStoreReset();storageStore.checkoutSessionId=null;return[2]}}))}))};this.closeClickHandler=function(){t.closeClick.emit()};this.saveOrderIdForDuplicationIssue=function(){var o,e,s,n;var r=jsonParse(localStorage.getItem("zonos--placed-order-info"));var i={cartId:window.Zonos.cartId||null,checkoutSessionId:(r===null||r===void 0?void 0:r.checkoutSessionId)||storageStore.checkoutSessionId||"",orderId:((o=t.order)===null||o===void 0?void 0:o.id)||null,time:(r===null||r===void 0?void 0:r.time)||Date.now(),zonosOrderNumber:((n=(s=(e=t.order)===null||e===void 0?void 0:e.references)===null||s===void 0?void 0:s.find((function(o){return o.key==="zonosOrderNumber"})))===null||n===void 0?void 0:n.value)||null};localStorage.setItem("zonos--placed-order-info",JSON.stringify(i))}}o.prototype.componentDidLoad=function(){localStorage.removeItem("zonos--placed-order-info");if(this.overrideNotification){this.notificationType=this.overrideNotification.type;this.notificationTitle=this.overrideNotification.title;this.notificationMessages=this.overrideNotification.messages;this.isLoading=false;return}if(cartStore.isStagingMode){void this.checkStagingOrderStatus()}else if(paypalStore.orderIdCreated){void this.checkPaypalPaymentStatus()}else{void this.checkStripePaymentStatus()}};o.prototype.render=function(){var o=this;var t=getIsTestMode();return h(Host,{key:"7b18913d8ebe7be5cbe9ee7d520b643c342c409d",class:"zonos--checkout-finish zonos--elements",style:{"--zonos--border-radius":getBorderRadius({overrideBorderStyle:this.borderRadius})}},!this.isLoading&&h("div",{key:"afb522b8b3b769817c00312fc9c14b4c032873ca",class:"zonos--finish-details"},h("div",{key:"c8cd43bc5269f7f252abaeb25dc98929f52b89bb",class:"zonos--group"},this.notificationType==="success"?h("zonos-icon",{"aria-label":"Order success",content:SuccessIcon,iconColor:"blue-800",size:50}):h("zonos-icon",{"aria-label":"Order failed",content:RemoveIcon,iconColor:"red-800",size:50}),h("zonos-text",{key:"1a7ead411d64fc8edf2de0383049bfd60660a315",class:"zonos--title",type:"semiBoldSubheader"},this.notificationTitle),h("zonos-text",{key:"0c63714bbefc4e9beb1d2cf7414e5774bab4eabe",class:"zonos--subtitle",textColor:"gray-600"},this.notificationMessages.map((function(o){return h(Fragment,null,o,h("br",null))}))),this.shouldRenderCloseButtonForRedirectBehavior()&&h("zonos-button",{key:"06304d9815e2199108dfcb3dade1494f17b76137",loading:this.isWaitingToRedirect&&this.notificationType!=="error",onClick:function(){var t;if((t=o.order)===null||t===void 0?void 0:t.id){o.redirectToMerchantSuccessPage();return}o.closeClickHandler()},size:"md",variant:"primary"},translate("Close")),!window.Zonos.isLegacyCheckout&&this.shouldRenderKeepShoppingButton()&&h("zonos-button",{key:"9b809e21052fddb2149a2a1d0c22db4b10808403",onClick:function(){return o.closeClickHandler()},size:"md",variant:"primary"},this.notificationActionText)),t&&cartStore.step==="finish"&&this.notificationType==="success"&&h("div",{key:"4a278c7c4270d265c61b6b36d20864c55e1b42f1",class:"zonos--finish-button-wrapper"},h("zonos-button",{key:"fd8a876a0c5b76edd3be2d9b28da9c3963aee714",backgroundColor:"gray-0",buttonColor:"gray-1000",onClick:function(){return o.closeClickHandler()},size:"lg",variant:"outline"},"New test cart"),h("zonos-button",{key:"7882981c1fe01ab6f78d8f84bcfc9aab94bffb74",onClick:function(){var t=window.location.hostname.includes("dashboard.zonos.com");o.redirectToUrl(t?"/orders/all":"https://dashboard.zonos.com/orders/all")},size:"lg",variant:"primary"},"View order in Dashboard"))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosCheckoutFinish.style=ZonosCheckoutFinishStyle0;var Globe='<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';var ZonosIconDark='<svg width="408" height="112" viewBox="0 0 408 112" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path d="M185.6 25.2H141.6C140.716 25.2 140 25.9164 140 26.8V36.4C140 37.2837 140.716 38 141.6 38H167.413C168.07 38 168.447 38.7478 168.056 39.2758L140.627 76.3519C140.22 76.9028 140 77.5699 140 78.2551V85.2001C140 86.0837 140.716 86.8 141.6 86.8H185.6C186.484 86.8 187.2 86.0837 187.2 85.2001V75.6C187.2 74.7164 186.484 74 185.6 74H159.787C159.13 74 158.753 73.2523 159.144 72.7243L186.573 35.6482C186.98 35.0973 187.2 34.4302 187.2 33.745V26.8C187.2 25.9164 186.484 25.2 185.6 25.2Z" fill="white"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M212.8 24.8C203.08 24.8 195.2 32.6798 195.2 42.4V69.6C195.2 79.3203 203.08 87.2001 212.8 87.2001H224.8C234.52 87.2001 242.4 79.3203 242.4 69.6V42.4001C242.4 32.6798 234.52 24.8 224.8 24.8H212.8ZM212.8 37.6C210.149 37.6 208 39.7491 208 42.4001V69.6C208 72.251 210.149 74.4001 212.8 74.4001H224.8C227.451 74.4001 229.6 72.251 229.6 69.6V42.4C229.6 39.7491 227.451 37.6 224.8 37.6H212.8Z" fill="white"/>\n<path d="M250.4 27.5223V85.3983C250.4 86.282 251.116 86.9983 252 86.9983H261.6C262.484 86.9983 263.2 86.282 263.2 85.3983V48.1873C263.2 46.3171 264.286 44.6172 265.983 43.8314L277.983 38.2759C281.164 36.8032 284.8 39.1263 284.8 42.6317V85.3983C284.8 86.282 285.516 86.9983 286.4 86.9983H296C296.884 86.9983 297.6 86.282 297.6 85.3983V42.6209C297.6 29.7687 284.272 21.2506 272.608 26.6484L264.318 30.4847C263.659 30.7898 262.877 30.6125 262.414 30.053L259.954 27.0817C259.346 26.3474 258.443 25.9223 257.489 25.9223H252C251.116 25.9223 250.4 26.6387 250.4 27.5223Z" fill="white"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M323.2 24.8C313.48 24.8 305.6 32.6798 305.6 42.4V69.6C305.6 79.3203 313.48 87.2001 323.2 87.2001H335.2C344.92 87.2001 352.8 79.3203 352.8 69.6V42.4001C352.8 32.6798 344.92 24.8 335.2 24.8H323.2ZM323.2 37.6C320.549 37.6 318.4 39.7491 318.4 42.4001V69.6C318.4 72.251 320.549 74.4001 323.2 74.4001H335.2C337.851 74.4001 340 72.251 340 69.6V42.4C340 39.7491 337.851 37.6 335.2 37.6H323.2Z" fill="white"/>\n<path d="M378.101 25.2H391.708C400.706 25.2 408 32.4944 408 41.4925C408 42.2395 407.444 42.8696 406.703 42.9622L396.602 44.2249C395.857 44.3179 395.2 43.7376 395.2 42.9876C395.2 40.2331 392.967 38 390.212 38H378.921C375.982 38 373.6 40.3822 373.6 43.3207C373.6 45.8196 375.339 47.9818 377.78 48.5176L394.22 52.1264C402.267 53.8928 408 61.021 408 69.2593C408 78.9468 400.147 86.8 390.459 86.8H377.092C368.094 86.8 360.8 79.5057 360.8 70.5076C360.8 69.7606 361.356 69.1305 362.097 69.0379L372.198 67.7752C372.943 67.6822 373.6 68.2625 373.6 69.0125C373.6 71.767 375.833 74 378.588 74H390.014C392.878 74 395.2 71.6783 395.2 68.8143C395.2 66.4508 393.602 64.3863 391.314 63.794L373.765 59.2508C366.132 57.2745 360.8 50.3868 360.8 42.5015C360.8 32.9462 368.546 25.2 378.101 25.2Z" fill="white"/>\n<path d="M8.8 58C8.8 31.9322 29.9322 10.8 56 10.8C82.0678 10.8 103.2 31.9322 103.2 58C103.2 74.868 94.3524 89.6734 81.0342 98.022C80.6447 98.2662 80.1318 98.123 79.9175 97.7162L78.7941 95.5842C78.5971 95.2104 78.7255 94.7484 79.0825 94.5224C91.1684 86.8682 99.2 73.374 99.2 58C99.2 45.1582 93.5931 33.6223 84.7029 25.7135L83.8042 24.914C83.1429 24.3257 82.1296 24.3861 81.5428 25.0488L76.655 30.5694C76.3787 30.8815 75.9095 30.9282 75.5707 30.6852C70.0598 26.7304 63.2996 24.4 56 24.4C37.4432 24.4 22.4 39.4432 22.4 58C22.4 70.9369 29.7121 82.1614 40.4157 87.7744L41.4783 88.3315C42.2607 88.7419 43.2277 88.4403 43.6381 87.6579L47.1029 81.0544C47.2912 80.6954 47.7178 80.5354 48.1006 80.6688C50.5764 81.5315 53.2355 82 56 82C69.2548 82 80 71.2548 80 58C80 44.7452 69.2548 34 56 34H54.8C53.9163 34 53.2 34.7163 53.2 35.6V43.2143C53.2 43.5965 52.9289 43.923 52.5577 44.014C46.267 45.5571 41.6 51.2335 41.6 58C41.6 62.3276 43.5125 66.2118 46.529 68.8473C49.059 71.0578 52.3762 72.4 56 72.4C63.9529 72.4 70.4 65.9529 70.4 58C70.4 51.2335 65.733 45.5571 59.4423 44.014C59.0711 43.923 58.8 43.5965 58.8 43.2143V40.7431C58.8 40.2532 59.2372 39.8772 59.7171 39.9756C68.0973 41.6948 74.4 49.1114 74.4 58C74.4 68.162 66.162 76.4 56 76.4C52.9185 76.4 50.0216 75.6447 47.4764 74.3116L46.4142 73.7552C45.6318 73.3454 44.6653 73.6471 44.255 74.4292L41.0133 80.6075C40.7934 81.0267 40.2589 81.165 39.8722 80.8921C32.6864 75.8202 28 67.4556 28 58C28 42.536 40.536 30 56 30C63.1489 30 69.6662 32.6755 74.6156 37.0841L75.5144 37.8846C76.1757 38.4736 77.1895 38.4135 77.7765 37.7505L82.4362 32.4876C82.745 32.1388 83.2861 32.1262 83.6026 32.4681C89.8104 39.1755 93.6 48.1438 93.6 58C93.6 72.4821 85.4133 85.0566 73.4023 91.3398C68.2018 94.0603 62.2848 95.6 56 95.6C39.9975 95.6 26.3233 85.602 20.8962 71.502L20.467 70.3868C20.1505 69.5646 19.229 69.1529 18.4054 69.4659L11.7892 71.9802C11.3597 72.1434 10.8807 71.9123 10.7497 71.4719C9.48157 67.2056 8.8 62.6844 8.8 58Z" fill="white"/>\n<path d="M47.2 58C47.2 53.1399 51.1399 49.2 56 49.2C60.8601 49.2 64.8 53.1399 64.8 58C64.8 62.8601 60.8601 66.8 56 66.8C53.7822 66.8 51.7621 65.9832 50.2135 64.6302C48.3624 63.0129 47.2 60.6439 47.2 58Z" fill="white"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M15.5314 80.7132C15.335 80.3641 14.9136 80.2069 14.5392 80.3492L7.33942 83.0853C6.51543 83.3984 5.59337 82.9861 5.27738 82.1632L3.70554 78.0698C1.30997 71.8314 0 65.0616 0 58C0 27.0721 25.0721 2 56 2C86.9279 2 112 27.0721 112 58C112 79.5691 99.8043 98.2795 81.9611 107.63L78.0725 109.668C77.291 110.078 76.3256 109.777 75.9143 108.997L72.3255 102.186C72.1387 101.831 71.7185 101.67 71.3402 101.803C66.5332 103.486 61.3687 104.4 56 104.4C38.6169 104.4 23.4779 94.8422 15.5314 80.7132ZM73.8305 98.177C73.6343 97.8047 73.1837 97.6488 72.7961 97.8125C67.6303 99.9943 61.9532 101.2 56 101.2C38.8594 101.2 24.0562 91.2184 17.0752 76.7588C16.8924 76.3802 16.4515 76.1992 16.0585 76.3485L9.18358 78.9612C8.35959 79.2743 7.43754 78.862 7.12154 78.0391L6.69286 76.9227C4.43567 71.0446 3.2 64.6633 3.2 58C3.2 28.8394 26.8394 5.2 56 5.2C85.1606 5.2 108.8 28.8394 108.8 58C108.8 78.3323 97.3067 95.9756 80.4757 104.796L79.4152 105.352C78.6338 105.761 77.6683 105.461 77.257 104.68L73.8305 98.177Z" fill="white"/>\n</svg>\n';var zonosCheckoutFooterCss=":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:-50px;left:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;z-index:2}:host .zonos--checkout-footer{width:calc(90vw - 22px);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}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:24px}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper .zonos--checkout-footer-logo{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-align:center;align-items:center}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper .zonos--checkout-footer-logo a{line-height:0}:host .zonos--checkout-footer .zonos--checkout-footer-icon-wrapper a{text-decoration:none}:host .zonos--checkout-footer zonos-button button.outline{outline:1px solid var(--zonos-elements-gray-800)}:host .zonos--checkout-footer .zonos--checkout-locale-wrapper{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:8px;position:relative}@media (max-width: 400px){:host .zonos--checkout-footer .zonos--checkout-locale-wrapper{gap:4px}}:host .zonos--checkout-footer .zonos--checkout-footer-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--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar{width:10px}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--checkout-footer .zonos--checkout-footer-dialog::-webkit-scrollbar-track{border-top-right-radius:var(--zonos-elements-radius-12);border-bottom-right-radius:var(--zonos-elements-radius-12)}:host .zonos--checkout-footer .zonos--checkout-footer-dialog.zonos--checkout-footer-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host(.mobile){-ms-flex-direction:column;flex-direction:column;gap:32px;background:var(--zonos-elements-gray-0);position:relative;padding-top:24px;bottom:0}:host(.mobile) .zonos--checkout-footer{-ms-flex-direction:column;flex-direction:column;gap:4px}:host(.mobile) .zonos--checkout-locale-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.mobile) .zonos--checkout-footer-icon-wrapper{-ms-flex-direction:column;flex-direction:column}:host(.mobile) .zonos--checkout-footer-dialog{position:fixed;left:0;right:0;bottom:0;-webkit-transform-origin:bottom center;transform-origin:bottom center;width:100vw}";var ZonosCheckoutFooterStyle0=zonosCheckoutFooterCss;var ZonosCheckoutFooter=function(){function o(o){registerInstance(this,o);this.mobile=false;this.showLanguageDialog=false;this.isMobile=false}o.prototype.handleGlobalClick=function(o){if(!this.el.contains(o.target)&&this.showLanguageDialog){this.showLanguageDialog=false}};o.prototype.toggleLanguageDialog=function(){this.showLanguageDialog=!this.showLanguageDialog};o.prototype.handleMobileChange=function(){this.isMobile=isCheckoutMobile(this.mobile)};o.prototype.componentWillLoad=function(){this.isMobile=isCheckoutMobile(this.mobile)};o.prototype.render=function(){var o=this;var t;var e=(t=languages.find((function(o){return o.code===localizationStore.selectedLocale})))===null||t===void 0?void 0:t.label;var s=this.dataTheme==="LIGHT"&&!this.mobile?"gray-0":"gray-1000";return h(Host,{key:"aa7fe5e0bb22626f590d93a6c8a52876523a2dfb",class:classes(["zonos--elements",this.isMobile&&"mobile"])},h("div",{key:"5fb0fc90649a06e324935484d0c5c1dba31d792c",class:"zonos--checkout-footer"},h("div",{key:"e34ac7fda1d9a13830276313e4a36a7840497d7e",class:"zonos--checkout-locale-wrapper"},h("zonos-button",{key:"775156c9f331715768b1bf9c36970d0c7da02fd2",buttonColor:s,class:"zonos--checkout-footer-language-button",icon:h("zonos-icon",{"aria-label":"Language select",content:Globe,iconColor:s}),onClick:function(){return o.toggleLanguageDialog()},variant:"subtle"},e),h("div",{key:"e2cc31362529661507811b9f5aa68586b3bf9ea5",class:classes(["zonos--checkout-footer-dialog",this.showLanguageDialog&&"zonos--checkout-footer-dialog-open"])},h("zonos-language-select",{key:"ad43b0a6bb947a69ea970485ee8d9afb5c8d1adb",handleOnClose:function(){return o.toggleLanguageDialog()}}))),h("div",{key:"c652833a9ce05beb22b9530003863ac0e5e9f8ea",class:"zonos--checkout-footer-icon-wrapper"},h("a",{key:"f2f8fb4ef070fe6a59a8b787e9e3e6237c2cc395",href:"https://zonos.com/docs/legal/zonos-privacy-policy",target:"_blank"},h("zonos-text",{key:"50b8962317bfc01bc7edbbe4c51f58476ca3c4ec",textColor:s},"Privacy policy")),h("div",{key:"7b4b70f7c0bd4ae5f385d6738f844a795261b9b9",class:"zonos--checkout-footer-logo"},h("zonos-text",{key:"8a4279a6584a376cb10e8da6b33d8006ac896d5b",textColor:s},"Powered by"),h("a",{key:"523a822b1c5b80bcb1d5dde2a7d9fce5fe476d20",href:"https://zonos.com",target:"_blank",title:"Zonos website"},h("zonos-icon",{key:"19753e93a7820765cf208916f53adebdcdf05cf9",autoHeight:true,content:ZonosIconDark,size:108}))))))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{mobile:["handleMobileChange"]}},enumerable:false,configurable:true});return o}();ZonosCheckoutFooter.style=ZonosCheckoutFooterStyle0;var CheckmarkLineIcon='<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>';var RemoveLineIcon='<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>';var zonosCheckoutPaymentCss=".sc-zonos-checkout-payment-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-checkout-payment-h img.sc-zonos-checkout-payment{max-width:100%}.sc-zonos-checkout-payment-h dl.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h dd.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h1.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h2.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h3.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h4.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h5.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h h6.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h hr.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h figure.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h p.sc-zonos-checkout-payment,.sc-zonos-checkout-payment-h pre.sc-zonos-checkout-payment{margin:0}.sc-zonos-checkout-payment-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-checkout-payment-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:24px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex:1;flex:1;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar{width:10px}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-checkout-payment-h .zonos--payment-error-banner.sc-zonos-checkout-payment{margin-bottom:8px}.sc-zonos-checkout-payment-h .zonos--error-banner.sc-zonos-checkout-payment{margin-bottom:16px}.sc-zonos-checkout-payment-h zonos-button.sc-zonos-checkout-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-checkout-payment-h .zonos--pay-in-base-currency-btn.sc-zonos-checkout-payment{-webkit-box-shadow:none;box-shadow:none}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-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:-5px;padding-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-text.sc-zonos-checkout-payment{text-align:center}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:100%}.sc-zonos-checkout-payment-h .zonos--test-cards.sc-zonos-checkout-payment{margin-top:auto;padding-top:16px}";var ZonosCheckoutPaymentStyle0=zonosCheckoutPaymentCss;var ZonosCheckoutPayment=function(){function o(o){var t=this;registerInstance(this,o);this.continueClicked=createEvent(this,"continueClicked",7);this.paypalSessionFailed=createEvent(this,"paypalSessionFailed",7);this.paypalSessionDone=createEvent(this,"paypalSessionDone",7);this.continueLoading=false;this.isMobile=false;this.showErrorBanner=false;this.hasStripePaymentError=false;this.stagingOrderCreateErrorMessage="";this.internalContinueLoading=this.continueLoading;this.handleValidate=function(){var o;return!!((o=stripeStore.stripePaymentEventData)===null||o===void 0?void 0:o.complete)};this.continueClickHandler=function(o){return __awaiter(t,[o],void 0,(function(o){var t;var e=this;var s=o.currencyCode;return __generator(this,(function(o){if(!this.handleValidate()){this.showErrorBanner=true;void((t=stripeStore.stripeElements)===null||t===void 0?void 0:t.submit());setTimeout((function(){var o;(o=e.ele.querySelector("zonos-banner"))===null||o===void 0?void 0:o.scrollIntoView({behavior:"smooth"})}),10);return[2]}stripeStore.checkoutSettlementCurrency=s;submitGtag("zonos-checkout-payment-info");this.continueClicked.emit();return[2]}))}))};this.copyCardToClipboard=function(o){return __awaiter(t,void 0,void 0,(function(){var t,e;return __generator(this,(function(s){switch(s.label){case 0:s.trys.push([0,2,,3]);return[4,navigator.clipboard.writeText(o)];case 1:s.sent();return[3,3];case 2:t=s.sent();e=document.createElement("textarea");e.style.position="fixed";e.style.left="-1000px";e.style.top="-1000px";e.style.width="1px";e.style.height="1px";e.value=o;e.id="zonos-copy-card-number";document.body.appendChild(e);e.select();document.execCommand("copy");document.body.removeChild(e);return[3,3];case 3:window.Zonos.showNotification({message:translate("Card number copied to clipboard"),timeout:4e3,type:"success"});return[2]}}))}))};this.placeTestOrder=function(){return __awaiter(t,void 0,void 0,(function(){var o;return __generator(this,(function(t){switch(t.label){case 0:this.internalContinueLoading=true;return[4,placeTestOrder()];case 1:o=t.sent().errors;if(o.length){this.stagingOrderCreateErrorMessage=o[0]||"Failed to create staging order. Please try again.";this.internalContinueLoading=false;return[2]}this.internalContinueLoading=false;cartStoreNextStep();return[2]}}))}))}}o.prototype.continueLoadingWatcher=function(){this.internalContinueLoading=this.continueLoading};o.prototype.stripePaymentErrorWatcher=function(){var o=this;if(this.hasStripePaymentError){setTimeout((function(){var t;(t=o.ele.querySelector("zonos-banner"))===null||t===void 0?void 0:t.scrollIntoView({behavior:"smooth"})}),50)}};o.prototype.render=function(){var o=this;var t;this.hasStripePaymentError=stripeStore.hasPaymentError;if(!stripeStore.stripeElements){return null}if(this.showErrorBanner){this.showErrorBanner=!this.handleValidate()}var e=getIsTestMode();var s=cartStore.isStagingMode||getIsStagingMode();var n=((t=stripeStore.stripePaymentEventData)===null||t===void 0?void 0:t.value.type)==="external_paypal";var r=function(){if(s){var t=zonosStore.appearance.colorPrimary;var r=t&&isDarkColor(t)?"DARK":"LIGHT";var i=o.isMobile?zonosStore.appearance.theme:r;return h(Fragment,null,o.stagingOrderCreateErrorMessage&&h("zonos-banner",{class:"zonos--error-banner",intent:"error"},o.stagingOrderCreateErrorMessage),h("zonos-empty-state-payment",{emptyStateText:translate("No payment method needed for staging"),theme:i}),h("div",{class:"zonos--group-btn"},h("zonos-button",{backgroundColor:o.submitBtnColor,loading:o.internalContinueLoading,onClick:function(){void o.placeTestOrder()},size:"lg",variant:o.submitBtnType},translate("Place test order"))))}return h(Fragment,null,o.showErrorBanner&&h("zonos-banner",{class:"zonos--error-banner",intent:"error"},translate("Missing required fields. Make sure all fields are completed.")),o.hasStripePaymentError&&h("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},stripeStore.customErrorMessage||translate("We couldn't complete your payment. Please verify the payment details and try again.")),paypalStore.paypalErrorMessage&&h("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},paypalStore.paypalErrorMessage),h("zonos-payment",null),h("div",{class:"zonos--group-btn"},!n&&h(Fragment,null,h("zonos-button",{backgroundColor:o.submitBtnColor,bold:true,isDisabled:o.continueLoading&&stripeStore.checkoutSettlementCurrency==="USD",loading:o.continueLoading&&stripeStore.checkoutSettlementCurrency!=="USD",onClick:function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:if(!cartStore.checkoutSession){log("Checkout session is not found");return[2]}return[4,this.continueClickHandler({currencyCode:cartStore.checkoutSession.subtotals.presentmentCurrencyCode})];case 1:o.sent();return[2]}}))}))},size:"lg",variant:o.submitBtnType},translate("Pay [orderTotal]",{orderTotal:renderCheckoutCurrency({amount:cartStore.total,isForeign:true})})),stripeStore.shouldRenderPayInUsdButton&&h("zonos-button",{class:"zonos--pay-in-base-currency-btn",isDisabled:o.continueLoading&&stripeStore.checkoutSettlementCurrency!=="USD",loading:o.continueLoading&&stripeStore.checkoutSettlementCurrency==="USD",onClick:function(){return __awaiter(o,void 0,void 0,(function(){return __generator(this,(function(o){switch(o.label){case 0:return[4,this.continueClickHandler({currencyCode:"USD"})];case 1:o.sent();return[2]}}))}))},size:"lg",variant:"subtle"},translate("Click to pay in USD"))),h("zonos-paypal-payment",{onPaypalSessionDone:function(t){var e=t.detail.orderId;o.paypalSessionDone.emit(e)},onPaypalSessionFail:function(){return o.paypalSessionFailed.emit()},style:{display:n?"block":"none"}})),e&&h("zonos-card",{backgroundColor:"gray-100",borderRadius:12,class:"zonos--test-cards"},h("zonos-v-stack",{spacing:16},h("div",null,h("zonos-text",{type:"semiBoldLabel"},translate("Test cards")),h("zonos-text",{textColor:"gray-700"},translate("Click to copy the card number. Use any future expiration date and three number CVC."))),h("zonos-button",{icon:h("zonos-icon",{content:CheckmarkLineIcon}),justifyContent:"flex-start",onClick:function(){return o.copyCardToClipboard("4242424242424242")}},translate("Success")," (****4242)"),h("zonos-button",{icon:h("zonos-icon",{content:RemoveLineIcon}),justifyContent:"flex-start",onClick:function(){return o.copyCardToClipboard("4000000000000002")}},translate("Failure")," (****0002)")),h("zonos-notification",null)))};return h(Host,{class:"zonos--checkout-payment zonos--elements"},h("div",{class:"zonos--group"},h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},translate("Payment method")),r()))};Object.defineProperty(o.prototype,"ele",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{continueLoading:["continueLoadingWatcher"],hasStripePaymentError:["stripePaymentErrorWatcher"]}},enumerable:false,configurable:true});return o}();ZonosCheckoutPayment.style=ZonosCheckoutPaymentStyle0;var getContrastColor=function(o){var t=o.backgroundColor,e=o.color;var s=isContrastColor({backgroundColor1:t,backgroundColor2:e});if(s){return e}if(isDarkColor(e)){return"#ffffff"}var n=tinycolor(e).darken(25).toHexString();var r=tinycolor(e).lighten(25).toHexString();var i=isContrastColor({backgroundColor1:t,backgroundColor2:n});return i?n:r};var resetToSelectedTab=function(o){var t=o.selectedTab,e=o.tabList;var s=e[t].index;var n=Object.values(e).slice(s-1,Object.keys(e).length).map((function(o){return o.value}));var r=Object.assign({},e);Object.values(r).forEach((function(o){if(n.includes(o.value)){o.isDone=false}}));return r};var TabCheckmark='<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M18.289 7.40424C18.618 7.65585 18.6808 8.12656 18.4291 8.4556L11.9291 16.9556C11.7978 17.1273 11.5988 17.234 11.383 17.2484C11.1673 17.2627 10.9559 17.1832 10.803 17.0303L6.80304 13.0303C6.51015 12.7374 6.51015 12.2626 6.80304 11.9697C7.09594 11.6768 7.57081 11.6768 7.8637 11.9697L11.258 15.3639L17.2376 7.54442C17.4892 7.21539 17.9599 7.15263 18.289 7.40424Z" fill="currentColor"/>\n</svg>\n';var zonosCheckoutProgressTabsCss=":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{margin-bottom:32px}:host .zonos--tab-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:distribute;justify-content:space-around}:host .zonos--tab-index{position:relative;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;font-size:13px;width:24px;height:24px;font-weight:bold}:host .zonos--tab-index .zonos--tab-index-label,:host .zonos--tab-index .zonos--tab-index-done-icon{position:absolute;top:0;width:24px;height:24px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-transition:top 0.5s ease-in-out, opacity 0.5s ease-in-out;transition:top 0.5s ease-in-out, opacity 0.5s ease-in-out}:host .zonos--tab-index .zonos--tab-index-done-icon{top:-50%;opacity:0}:host .zonos--tab-item{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;background:transparent;border:0;cursor:pointer}:host .zonos--tab-item:disabled{cursor:not-allowed}:host .zonos--tab-item.done .zonos--tab-index-done-icon{top:0;opacity:1}:host .zonos--tab-item.done .zonos--tab-index-label{opacity:0;top:50%}:host .zonos--tab-item.selected zonos-text{color:var(--zonos--color)}:host .zonos--tab-progress{width:100%;background-color:transparent;border-radius:10px;-webkit-box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.4);box-shadow:inset 0 0 5px rgba(0, 0, 0, 0.4);overflow:hidden;position:relative;padding:1px;height:8px}:host .zonos--tab-progress .zonos--progress-bar-fill{border-radius:10px;background-color:var(--zonos--color);height:100%;width:var(--zonos--progress-percent);-webkit-transition:width 0.5s ease-in-out;transition:width 0.5s ease-in-out}";var ZonosCheckoutProgressTabsStyle0=zonosCheckoutProgressTabsCss;var ZonosCheckoutProgressTabs=function(){function o(o){registerInstance(this,o);this.tabColor=null;this.backgroundColor=null;this.getTotalSuccessStep=function(){var o=4;var t=Object.values(cartStore.tabItems).filter((function(o){return o.isDone})).length+1;return"".concat(t/o*100,"%")};this.isTabClickable=function(o){var t=cartStore.tabItems[o];if(!t){return false}if(t.isDone){return true}return Object.values(cartStore.tabItems).slice(0,t.index-1).every((function(o){return o.isDone}))}}o.prototype.setTabItems=function(o){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){cartStore.tabItems=o;return[2]}))}))};o.prototype.setTabSelected=function(o){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){if(this.isTabClickable(o)){cartStore.step=o;t=resetToSelectedTab({selectedTab:o,tabList:cartStore.tabItems});cartStore.tabItems=t}return[2]}))}))};o.prototype.render=function(){var o=this;var t=cartStore.step;var e=this.tabColor||zonosStore.appearance.colorSecondary;var s=this.backgroundColor||zonosStore.appearance.colorPrimary||"";var n=s&&e?getContrastColor({backgroundColor:isColorVariable(s)?window.getComputedStyle(this.ele).getPropertyValue("--zonos-elements-".concat(s.replace("--zonos-elements-",""))):s,color:e}):e;return h(Host,{key:"1db73e8a63f5eef955430c64e6f86d941619b9f6",class:"zonos--elements",style:{"--zonos--color":n,"--zonos--progress-percent":this.getTotalSuccessStep()}},h("div",{key:"a580a08d71465c78699d40f7d65a423366262d6e",class:"zonos--tab-wrapper"},Object.values(cartStore.tabItems).map((function(e,s){var r=e.value===t;return h("button",{"aria-label":"Tab ".concat(e.label),class:classes(["zonos--tab-item",e.value===t&&"selected",e.isDone&&"done"]),disabled:!o.isTabClickable(e.value),key:e.value,onClick:function(){return o.setTabSelected(e.value)}},h("div",{class:"zonos--tab-index"},h("zonos-text",{class:"zonos--tab-index-label",textColor:r?n:"gray-1000",type:"label"},s+1),h("zonos-icon",{class:"zonos--tab-index-done-icon",content:TabCheckmark,iconColor:r?n:"gray-1000"})),h("zonos-text",{textColor:r?n:"gray-1000",type:"label"},translate(e.label)))}))),h("div",{key:"f3285aaaeefbb16c79b656576dc49c73483fedd8",class:"zonos--tab-progress"},h("div",{key:"74ee5173069a4269c35724a9121d9c343bd13950",class:"zonos--progress-bar-fill"})))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});Object.defineProperty(o.prototype,"ele",{get:function(){return getElement(this)},enumerable:false,configurable:true});return o}();ZonosCheckoutProgressTabs.style=ZonosCheckoutProgressTabsStyle0;var ZonosCurrencyToggle=function(){function o(o){registerInstance(this,o);this.errorImages=[]}o.prototype.handleToggleChanged=function(o){return __awaiter(this,void 0,void 0,(function(){var t,e;return __generator(this,(function(s){e=(t=cartStore.exchangeRate)===null||t===void 0?void 0:t.targetCurrencyCode;cartStore.displayBaseCurrency=e!==o;return[2]}))}))};o.prototype.render=function(){var o=this;var t=cartStore.exchangeRate;var e=t&&t.sourceCurrencyCode!==t.targetCurrencyCode?[{label:t.sourceCurrencyCode,value:t.sourceCurrencyCode},{label:t.targetCurrencyCode,value:t.targetCurrencyCode}]:[];if(!e.length){return null}return h(Host,{class:"zonos--currency-toggle zonos--elements"},h("zonos-toggle",{onToggleChanged:function(t){return o.handleToggleChanged(t.detail)},options:e,value:cartStore.displayBaseCurrency?e[0].value:e[1].value}))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();var isTaxIdRequired=function(o){var t=__spreadArray(["MX"],euCountryCodes,true);return t.includes(o)};var taxIdValidationResult=function(o){var t=o.companyName,e=o.shippingCountry,s=o.taxId;var n=shouldRenderTaxIdInput({companyName:t,countryCode:e});if(!n){return{error:null,valid:true}}var r=isTaxIdRequired(e);if(!r){return{error:null,valid:true}}if(euCountryCodes.includes(e)){if(!t.trim()){return{error:null,valid:true}}if(!s){return{error:"Tax id is required",valid:false}}return{error:null,valid:true}}if(!s){return{error:"Tax id is required",valid:false}}if(e==="MX"){var i=/^[A-ZÑ]{3,4}[0-9]{6}[A-Z0-9]{3}$/.test(s);if(!i){return{error:"Invalid RFC format. Must be 12–13 uppercase letters and numbers only.",valid:false}}return{error:null,valid:true}}return{error:null,valid:true}};var zonosCustomerInfoCss=".sc-zonos-customer-info-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-customer-info-h img.sc-zonos-customer-info{max-width:100%}.sc-zonos-customer-info-h dl.sc-zonos-customer-info,.sc-zonos-customer-info-h dd.sc-zonos-customer-info,.sc-zonos-customer-info-h h1.sc-zonos-customer-info,.sc-zonos-customer-info-h h2.sc-zonos-customer-info,.sc-zonos-customer-info-h h3.sc-zonos-customer-info,.sc-zonos-customer-info-h h4.sc-zonos-customer-info,.sc-zonos-customer-info-h h5.sc-zonos-customer-info,.sc-zonos-customer-info-h h6.sc-zonos-customer-info,.sc-zonos-customer-info-h hr.sc-zonos-customer-info,.sc-zonos-customer-info-h figure.sc-zonos-customer-info,.sc-zonos-customer-info-h p.sc-zonos-customer-info,.sc-zonos-customer-info-h pre.sc-zonos-customer-info{margin:0}.sc-zonos-customer-info-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-customer-info-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;height:100%}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:20px}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:32px}.sc-zonos-customer-info-h .zonos--address.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--checkbox.sc-zonos-customer-info+.zonos--address.sc-zonos-customer-info{margin-bottom:0}.sc-zonos-customer-info-h zonos-button.sc-zonos-customer-info{-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-customer-info-h .zonos--error-banner.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--tax-id-input.sc-zonos-customer-info{margin-bottom:16px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:20px;overflow:auto;padding:5px;height:100%;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar{width:10px}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:-5px;padding-top:8px;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0));z-index:2}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:100%}";var ZonosCustomerInfoStyle0=zonosCustomerInfoCss;var ZonosCustomerInfo=function(){function o(o){var t=this;registerInstance(this,o);this.continueClicked=createEvent(this,"continueClicked",7);this.testContinueClicked=createEvent(this,"testContinueClicked",7);this.storeUnsubscribeList=[];this.continueLoading=false;this.isMobile=false;this.defaultAddress=[];this.shouldUseCustomAddressFormOverride=false;this.showErrorBanner=false;this.shippingCountry="";this.isCheckingForRestrictedItems=false;this.isValidatingAddress=false;this.taxIdErrorMessage="";this.invalidShippingCharacterList=null;this.invalidBillingCharacterList=null;this.openAddressValidationDialog=false;this.isEmailError=false;this.recordedFormTypeUsed=false;this.selectedCountryCode=localizationStore.selectedCountryCode;this.genericSettings=zonosStore.genericSettings;this.addressFormRenderType=cartStore.addressFormRenderType;this.handleInvalidCharacters=function(){return __awaiter(t,void 0,void 0,(function(){var o;return __generator(this,(function(t){switch(t.label){case 0:if(zonosStore.checkoutSettings.allowedCharacterSets==="ALL"){return[2,{hasInvalidCharacters:false}]}this.invalidShippingCharacterList=stripeStore.stripeAddressEventData?this.checkInvalidCharacters(stripeStore.stripeAddressEventData):null;this.invalidBillingCharacterList=!stripeStore.stripeShippingSameAsBilling?this.checkInvalidCharacters(stripeStore.stripeBillingAddressEventData):null;o=!!this.invalidShippingCharacterList||!!this.invalidBillingCharacterList;if(!o)return[3,2];this.openAddressValidationDialog=true;this.isValidatingAddress=true;return[4,stripeStoreTranslateAddressToLatin({addressInvalidCharactersList:this.invalidShippingCharacterList,billingAddressInvalidCharactersList:this.invalidBillingCharacterList})];case 1:t.sent();this.isValidatingAddress=false;t.label=2;case 2:return[2,{hasInvalidCharacters:o}]}}))}))};this.transformTranslatedAddressToStripeEvent=function(o){var t=o.submitData,e=o.type;var s=e==="shippingAddress"?stripeStore.stripeAddressEventData:stripeStore.stripeBillingAddressEventData;var n=t[e];if(!s||!n){return}var r=extractName({name:n.name}),i=r.firstName,a=r.lastName;var c=Object.assign(Object.assign({},s),{complete:true,value:Object.assign(Object.assign({},s===null||s===void 0?void 0:s.value),{address:Object.assign(Object.assign({},s===null||s===void 0?void 0:s.value.address),{city:n.city||(s===null||s===void 0?void 0:s.value.address.city)||"",line1:n.line1,line2:n.line2,postal_code:n.postal_code,state:n.state}),firstName:i,lastName:a,name:n.name})});if(e==="shippingAddress"){stripeStore.stripeAddressEventData=c}else{stripeStore.stripeBillingAddressEventData=c}};this.continueClickHandler=function(){return __awaiter(t,void 0,void 0,(function(){var o,t;var e=this;return __generator(this,(function(s){switch(s.label){case 0:(o=this.testContinueClicked)===null||o===void 0?void 0:o.emit({billingAddress:stripeStore.stripeBillingAddressEventData,sameAsBilling:stripeStore.stripeShippingSameAsBilling,shippingAddress:stripeStore.stripeAddressEventData});if(!this.handleValidate()){setTimeout((function(){var o;(o=e.el.querySelector("zonos-banner.zonos--error-banner"))===null||o===void 0?void 0:o.scrollIntoView({behavior:"smooth",block:"center"})}),50);this.showErrorBanner=true;return[2]}this.showErrorBanner=false;return[4,this.handleInvalidCharacters()];case 1:t=s.sent().hasInvalidCharacters;if(t){return[2]}this.continueClicked.emit({billingAddress:stripeStore.stripeBillingAddressEventData,sameAsBilling:stripeStore.stripeShippingSameAsBilling,shippingAddress:stripeStore.stripeAddressEventData});return[2]}}))}))};this.validateCustomAddressForm=function(o){var t=stripeStore.stripeShippingSameAsBilling||o==="shipping";var e=t?stripeStore.customAddressErrors:stripeStore.customBillingAddressErrors;var s=e.city,n=e.firstName,r=e.lastName,i=e.line1,a=e.phone,c=e.postalCode,l=e.state;var h=false;if(s||n||r||i||a||c||l){h=true}if(t){stripeStore.customAddressErrors=Object.assign(Object.assign({},e),{showError:h})}else{stripeStore.customBillingAddressErrors=Object.assign(Object.assign({},e),{showError:h})}return{isValid:!h}};this.handleValidate=function(){var o,e;var s=stripeStore.stripeAddressEventData;var n=stripeStore.stripeBillingAddressEventData;var r=stripeStore.stripeLinkEventData;var i=stripeStore.stripeShippingSameAsBilling?!!(s===null||s===void 0?void 0:s.complete):!!(n===null||n===void 0?void 0:n.complete);var a=!!(s===null||s===void 0?void 0:s.complete);var c=!!(r===null||r===void 0?void 0:r.complete);void((o=stripeStore.stripeAddressElement)===null||o===void 0?void 0:o.getValue());void((e=stripeStore.stripeBillingAddressElement)===null||e===void 0?void 0:e.getValue());var l=t.addressFormRenderType==="zonos"?t.validateCustomAddressForm("billing").isValid:i;var h=t.addressFormRenderType==="zonos"?t.validateCustomAddressForm("shipping").isValid:a;if(!c&&(r===null||r===void 0?void 0:r.empty)){t.isEmailError=true}log("==> isValidBilling","info",l,{address:stripeStore.stripeBillingAddressEventData,errors:stripeStore.customBillingAddressErrors});log("==> isValidShipping","info",h,{address:stripeStore.stripeAddressEventData,errors:stripeStore.customAddressErrors});log("==> isValidLink","info",c);var u=taxIdValidationResult({companyName:stripeStore.companyName,shippingCountry:t.shippingCountry,taxId:stripeStore.taxId}),d=u.error,p=u.valid;t.taxIdErrorMessage=!p?translate(d):"";if(!l||!h||!c||!p){return false}return true};this.handleEmailValidation=function(){var o;if(!t.isEmailError){return}if(!((o=stripeStore.stripeLinkEventData)===null||o===void 0?void 0:o.empty)){t.isEmailError=false}};this.prepareAddressObject=function(o){var t;var e=o.value;return{city:e.address.city||"",country:e.address.country,email:((t=stripeStore.stripeLinkEventData)===null||t===void 0?void 0:t.value.email)||"",line1:e.address.line1||"",line2:e.address.line2||"",name:e.name||"",phone:e.phone||"",postal_code:e.address.postal_code||"",state:e.address.state||""}};this.renderAddressComponent=function(o){if(!t.selectedCountryCode){void sendErrorLog({endpoint:"NO_COUNTRY_SELECTED_WHEN_RENDERING_ADDRESS_COMPONENT",errors:["No country selected when rendering address component"],metadata:{type:o},shouldPostReleaseErrorReporting:true})}var e=o==="shipping"?t.defaultAddress:[];if(o==="shipping"&&storageStore.checkoutSessionId&&!t.recordedFormTypeUsed){void updateCheckoutSessionAttributes({attributes:[{key:"ZONOS_FORM_TYPE_USING",value:t.addressFormRenderType==="zonos"?"custom":"stripe"}],checkoutSessionId:storageStore.checkoutSessionId});t.recordedFormTypeUsed=true}if(t.addressFormRenderType==="zonos"){return h("zonos-custom-address",{defaultAddress:e,taxIdErrorMessage:t.taxIdErrorMessage,titleText:translate(o==="shipping"?"Shipping address":"Billing address"),type:o})}return h("zonos-address",{defaultAddress:e,taxIdErrorMessage:t.taxIdErrorMessage,titleText:translate(o==="shipping"?"Shipping address":"Billing address"),type:o})}}o.prototype.watchShowErrorBanner=function(){if(this.showErrorBanner){this.showErrorBanner=!this.handleValidate()}};o.prototype.checkInvalidCharacters=function(o){if(!o){return null}if(!o.complete||zonosStore.checkoutSettings.allowedCharacterSets==="ALL"){return null}var t=o.value,e=t.address,s=t.firstName,n=t.lastName,r=t.name;var i=e.city,a=e.country,c=e.line1,l=e.line2,h=e.postal_code,u=e.state;var d=containsNonLatinChars({city:i,country:a,line1:c,line2:l||"",name:r||"".concat(s," ").concat(n),postal_code:h,state:u});if(!Object.keys(d).length){return null}return d};o.prototype.watchShouldEnabledCustomAddress=function(){var o,t,e;var s=this.shouldUseCustomAddressFormOverride||!!((o=this.genericSettings)===null||o===void 0?void 0:o.shouldEnabledCustomAddress);var n=!!this.selectedCountryCode&&s&&!!((e=(t=this.genericSettings)===null||t===void 0?void 0:t.countryCustomAddressEnabled)===null||e===void 0?void 0:e.includes(this.selectedCountryCode));cartStore.addressFormRenderType=n?"zonos":"stripe"};o.prototype.disconnectedCallback=function(){try{this.storeUnsubscribeList.forEach((function(o){return o()}))}catch(o){}};o.prototype.componentWillLoad=function(){var o=this;this.storeUnsubscribeList=[zonosStoreOnChange("genericSettings",(function(){o.genericSettings=zonosStore.genericSettings})),localizationStoreOnChange("selectedCountryCode",(function(){o.selectedCountryCode=localizationStore.selectedCountryCode})),cartStoreOnChange("addressFormRenderType",(function(){o.addressFormRenderType=cartStore.addressFormRenderType}))];this.watchShouldEnabledCustomAddress()};o.prototype.render=function(){var o=this;var t,e,s,n,r,i;if(!stripeStore.stripeElements){return null}if(!this.shippingCountry&&stripeStore.stripeAddressEventData){this.shippingCountry=(t=stripeStore.stripeAddressEventData)===null||t===void 0?void 0:t.value.address.country}if(stripeStore.stripeAddressEventData&&this.shippingCountry!==stripeStore.stripeAddressEventData.value.address.country){this.shippingCountry=stripeStore.stripeAddressEventData.value.address.country}var a=!stripeStore.stripeShippingSameAsBilling;var c=getZonosStoreTheme(zonosStore.appearance.theme);var l=((e=this.defaultAddress.find(Boolean))===null||e===void 0?void 0:e.email)||((r=(n=(s=stripeStore.customerProfile)===null||s===void 0?void 0:s.locations)===null||n===void 0?void 0:n.find(Boolean))===null||r===void 0?void 0:r.email)||((i=stripeStore.customerProfile)===null||i===void 0?void 0:i.email);return h(Host,{class:"zonos--customer-info zonos--elements"},h("div",{class:"zonos--group"},h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},translate("Customer information")),this.showErrorBanner&&h("zonos-banner",{class:"zonos--error-banner",intent:"error"},translate("Missing required fields. Make sure all fields are completed.")),h("zonos-link-authentication",{defaultEmail:l,isEmailError:this.isEmailError,onLinkAuthenticationChange:this.handleEmailValidation,titleText:translate("Contact")}),this.renderAddressComponent("shipping"),h("zonos-checkbox",{class:"zonos--shipping-same-as-billing-cbx",isChecked:stripeStore.stripeShippingSameAsBilling,label:translate("Shipping address same as billing"),onCheckboxSelected:function(o){stripeStore.stripeShippingSameAsBilling=o.detail}}),h("zonos-collapse",{collapsed:!a},this.renderAddressComponent("billing")),h("div",{class:"zonos--group-btn"},h("zonos-button",{backgroundColor:this.submitBtnColor,bold:true,loading:this.continueLoading,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},translate("Continue to shipping")))),stripeStore.stripeAddressEventData&&h("zonos-address-update-dialog",{billingAddress:!stripeStore.stripeShippingSameAsBilling&&stripeStore.stripeBillingAddressEventData?this.prepareAddressObject(stripeStore.stripeBillingAddressEventData):null,"data-theme":c,dialogLoading:this.isValidatingAddress,dialogOpen:this.openAddressValidationDialog,isMobile:this.isMobile,onCloseUpdateDialog:function(){return o.openAddressValidationDialog=false},onContinueClicked:function(t){var e=t.detail;o.transformTranslatedAddressToStripeEvent({submitData:e,type:"shippingAddress"});o.transformTranslatedAddressToStripeEvent({submitData:e,type:"billingAddress"})},shippingAddress:this.prepareAddressObject(stripeStore.stripeAddressEventData),translatedBillingAddress:stripeStore.translatedAddress.billingAddress,translatedShippingAddress:stripeStore.translatedAddress.address}))};Object.defineProperty(o.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(o,"watchers",{get:function(){return{showErrorBanner:["watchShowErrorBanner"],shouldUseCustomAddressFormOverride:["watchShouldEnabledCustomAddress"],genericSettings:["watchShouldEnabledCustomAddress"],selectedCountryCode:["watchShouldEnabledCustomAddress"]}},enumerable:false,configurable:true});return o}();ZonosCustomerInfo.style=ZonosCustomerInfoStyle0;var zonosRestStateCss=":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%;width:100%;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-ms-flex-direction:column;flex-direction:column;gap:20px}:host .zonos--restState-image{width:124px;height:124px;margin-bottom:15px}:host .content{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;gap:8px}";var ZonosRestStateStyle0=zonosRestStateCss;var ZonosRestState=function(){function o(o){var t=this;registerInstance(this,o);this.isErrorImageLoad=false;this.getImageRestState=function(){var o=getAssetPath("./assets/".concat(t.restStateType,".png"));return o}}o.prototype.render=function(){var o=this;var t=this.getImageRestState();return h(Host,{key:"4dd1bf92f89b6433673643621d4d2e91c32dc9c0",class:classes(["zonos--elements zonos--restState"]),style:{"--zonos--font-family":zonosStoreFontFamily()}},h("div",{key:"1635b6b084c26f973405a863c898087f7805af4a",class:"zonos--restState-image"},h("img",{key:"305262852c1bc4df2fae58e9d18fe9ef48108155",alt:this.restStateType,onError:function(){o.isErrorImageLoad=true},src:t})),h("div",{key:"b25da09d4d56ab01b5bcb1d219337a94208e8272",class:"content"},h("zonos-text",{key:"1d0bfb2cd2473df240fb6f54eb1329a7aa34009f",class:"title",type:"boldSubheader"},this.restStateTitle),h("zonos-text",{key:"7dd2da6e10a7e07649534673f7a5b630e1e98a91",class:"subtitle"},this.restStateSubtitle)),h("div",{key:"1ccb01b392f0bca4687a3a1b0fe7a55e6fac69a2",class:"action"},h("slot",{key:"f8200baab65872d4c4c28e53c791f6fc406199e5"})))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosRestState.style=ZonosRestStateStyle0;var ChevronDownIcon='<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>';var ChevronUpIcon$1='<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>';var zonosReviewCss=":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}:host(.mobile){display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:24px;-ms-flex-pack:justify;justify-content:space-between;padding:4px 0;margin-bottom:8px;background-color:transparent}:host(.mobile) .zonos--title{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;gap:8px}:host(.mobile) .zonos--total-pay{margin:0}";var ZonosReviewStyle0=zonosReviewCss;var ZonosReview=function(){function o(o){registerInstance(this,o);this.mobile=false;this.collapsed=false;this.isMobile=false}o.prototype.handleWindowResize=function(){this.isMobile=isCheckoutMobile(this.mobile)};o.prototype.componentWillLoad=function(){this.isMobile=isCheckoutMobile(this.mobile)};o.prototype.render=function(){var o=this;var t=cartStoreHasOneEligibleItem()?cartStore.total:0;var e=this.isMobile?"boldSubheader":"semiBoldLabel";var s=this.isMobile?"boldSubheader":"secondaryPageHeader";var n=this.isMobile?"gray-1000":"gray-800";var r=function(){if(!o.isMobile){return null}if(!o.collapsed){return h("zonos-icon",{"aria-label":"Collapse expanded section",content:ChevronDownIcon,iconColor:"gray-1200"})}return h("zonos-icon",{"aria-label":"Expand collapsed section",content:ChevronUpIcon$1,iconColor:"gray-1200"})};return h(Host,{class:classes(["zonos--review zonos--elements",this.isMobile&&"mobile"])},h("div",{class:"zonos--title"},h("zonos-text",{textColor:n,type:e},translate("Pay [organizationName]",{organizationName:zonosStore.organizationName})),r()),h("div",{class:"zonos--total-pay"},h("zonos-text",{type:s},renderCheckoutCurrency({amount:t,isForeign:true}))))};Object.defineProperty(o,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return o}();ZonosReview.style=ZonosReviewStyle0;var ChevronUpIcon='<svg width="25" height="24" viewBox="0 0 25 24" fill="none" xmlns="http://www.w3.org/2000/svg">\n<g filter="url(#filter0_dd_2052_3658)">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M7.46967 14.5303C7.76256 14.8232 8.23744 14.8232 8.53033 14.5303L12.5 10.5607L16.4697 14.5303C16.7626 14.8232 17.2374 14.8232 17.5303 14.5303C17.8232 14.2374 17.8232 13.7626 17.5303 13.4697L13.0303 8.96967C12.7374 8.67678 12.2626 8.67678 11.9697 8.96967L7.46967 13.4697C7.17678 13.7626 7.17678 14.2374 7.46967 14.5303Z" fill="currentColor"/>\n</g>\n<defs>\n<filter id="filter0_dd_2052_3658" x="-3.5" y="-2" width="32" height="32" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">\n<feFlood flood-opacity="0" result="BackgroundImageFix"/>\n<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n<feOffset dy="2"/>\n<feGaussianBlur stdDeviation="2"/>\n<feComposite in2="hardAlpha" operator="out"/>\n<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0"/>\n<feBlend mode="normal" in2="BackgroundImageFix" result="effect1_dropShadow_2052_3658"/>\n<feColorMatrix in="SourceAlpha" type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0" result="hardAlpha"/>\n<feOffset dy="1"/>\n<feGaussianBlur stdDeviation="1"/>\n<feComposite in2="hardAlpha" operator="out"/>\n<feColorMatrix type="matrix" values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0"/>\n<feBlend mode="normal" in2="effect1_dropShadow_2052_3658" result="effect2_dropShadow_2052_3658"/>\n<feBlend mode="normal" in="SourceGraphic" in2="effect2_dropShadow_2052_3658" result="shape"/>\n</filter>\n</defs>\n</svg>\n';var zonosShippingCss='.sc-zonos-shipping-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-shipping-h img.sc-zonos-shipping{max-width:100%}.sc-zonos-shipping-h dl.sc-zonos-shipping,.sc-zonos-shipping-h dd.sc-zonos-shipping,.sc-zonos-shipping-h h1.sc-zonos-shipping,.sc-zonos-shipping-h h2.sc-zonos-shipping,.sc-zonos-shipping-h h3.sc-zonos-shipping,.sc-zonos-shipping-h h4.sc-zonos-shipping,.sc-zonos-shipping-h h5.sc-zonos-shipping,.sc-zonos-shipping-h h6.sc-zonos-shipping,.sc-zonos-shipping-h hr.sc-zonos-shipping,.sc-zonos-shipping-h figure.sc-zonos-shipping,.sc-zonos-shipping-h p.sc-zonos-shipping,.sc-zonos-shipping-h pre.sc-zonos-shipping{margin:0}.sc-zonos-shipping-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-shipping-h{overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:-16px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:20px;overflow:auto;padding:5px;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px;-ms-scroll-chaining:none;overscroll-behavior:contain}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar{width:10px}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping::-webkit-scrollbar-thumb:hover{background:#d6d6d6}.sc-zonos-shipping-h .zonos--error-banner.sc-zonos-shipping{margin-bottom:16px}.sc-zonos-shipping-h .zonos--shipping-method-error.sc-zonos-shipping{margin-top:24px}.sc-zonos-shipping-h zonos-button.sc-zonos-shipping{-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-shipping-h .zonos--group-btn.sc-zonos-shipping{position:-webkit-sticky;position:sticky;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;bottom:0;z-index:1;margin-top:12px;background:var(--zonos--primary-color, var(--zonos-elements-gray-0))}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:100%}.sc-zonos-shipping-h .zonos--shipping-options-wrapper.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:24px;-ms-flex-align:center;align-items:center;background:transparent;width:100%;border:none;cursor:pointer;position:-webkit-sticky;position:sticky;top:0;z-index:1;-webkit-transition:0.5s all ease;transition:0.5s all ease}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping zonos-icon.sc-zonos-shipping{-webkit-transition:-webkit-transform 0.3s ease;transition:-webkit-transform 0.3s ease;transition:transform 0.3s ease;transition:transform 0.3s ease, -webkit-transform 0.3s ease}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.collapsed.sc-zonos-shipping{margin-bottom:0}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.collapsed.sc-zonos-shipping zonos-icon.sc-zonos-shipping{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping::before,.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping::after{content:"";display:block;width:80%;height:1px;background-color:var(--zonos-elements-border-color);-ms-flex-negative:1;flex-shrink:1}.sc-zonos-shipping-h .zonos--shipping-options-collapse-trigger.sc-zonos-shipping .zonos--title-wrapper.sc-zonos-shipping{-ms-flex-positive:1;flex-grow:1;-ms-flex-negative:0;flex-shrink:0;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-direction:row;flex-direction:row;gap:8px;-ms-flex-align:center;align-items:center}.sc-zonos-shipping-h .zonos--dap-wrapper.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}';var ZonosShippingStyle0=zonosShippingCss;var ZonosShipping=function(){function o(o){var t=this;registerInstance(this,o);this.continueClicked=createEvent(this,"continueClicked",7);this.storeUnsubscribeList=[];this.continueLoading=false;this.selectedShippingMethod=null;this.collapsedDAPOptions=true;this.isSelecting=false;this.showErrorBanner=false;this.serviceLevelsDDP=[];this.serviceLevelsDAP=[];this.serviceLevelsOther=[];this.serviceLevelsAll=[];this.displayBaseCurrency=false;this.shippingData=[];this.handleRadioSelected=function(o){return __awaiter(t,void 0,void 0,(function(){var t,e;var s=this;return __generator(this,(function(n){switch(n.label){case 0:this.selectedShippingMethod=o.detail;if(!this.selectedShippingMethod){return[2]}e=((t=cartStore.shippingData)===null||t===void 0?void 0:t.find((function(o){var t;return o.id===((t=s.selectedShippingMethod)===null||t===void 0?void 0:t.shipmentRatingId)})))||null;if(!e){return[2]}this.isSelecting=true;return[4,stripeStoreAsyncAddressUpdate()];case 1:n.sent();return[4,cartStoreUpdateSelectedShippingOption({applySubtotalsOnly:false,landedCostId:o.detail.landedCostId,selectedShippingOption:e})];case 2:n.sent();this.isSelecting=false;return[2]}}))}))};this.handleValidate=function(){return!!t.selectedShippingMethod};this.isOutdatedShippingData=function(){var o;var e=!!((o=cartStore.shippingData)===null||o===void 0?void 0:o.some((function(o){var e;var s=(e=t.serviceLevelsAll)===null||e===void 0?void 0:e.find((function(t){return t.shipmentRatingId===o.id}));if(!s){return true}})));return e};this.continueClickHandler=function(){var o;if(!t.handleValidate()){t.showErrorBanner=true;return}submitGtag("zonos-checkout-shipping-info");var e=storageStore.checkoutSessionId;void trackConversionEvent({checkoutSessionId:e,eventName:"checkout_shippingInfoCompleted",metadata:{serviceLevelId:(o=t.selectedShippingMethod)===null||o===void 0?void 0:o.value}});t.showErrorBanner=false;t.continueClicked.emit()};this.getLandedCostMethodLabelSuffix=function(o){var t,e,s;switch(true){case o==="DAP"&&!((e=(t=zonosStore.genericSettings)===null||t===void 0?void 0:t.domesticCountries)===null||e===void 0?void 0:e.includes(((s=stripeStore.stripeAddressEventData)===null||s===void 0?void 0:s.value.address.country)||"US")):return translate(" (Duties due at door)");default:return""}};this.initServiceLevels=function(){var o;t.collapsedDAPOptions=true;var e=((o=cartStore.shippingData)===null||o===void 0?void 0:o.flatMap((function(o){var e;var s=cartStoreGetShippingTransitInfo(o);var n=s?"".concat(s.minTransit,"-").concat(s.maxTransit," ").concat(s.unit):"";var r=(e=cartStore.landedCostData)===null||e===void 0?void 0:e.filter((function(t){var e;return((e=t.landedCost)===null||e===void 0?void 0:e.shipmentRating.id)===o.id}));return(r===null||r===void 0?void 0:r.map((function(e){var s=e.subtotals.shipping;var r=cartStoreGetMethod(e.landedCost);var i={amount:s,label:"".concat(o.displayName).concat(t.getLandedCostMethodLabelSuffix(r)),landedCostId:e.landedCostId,method:r,price:renderCheckoutCurrency({amount:s,isForeign:true}),shipmentRatingId:o.id,sublabel:n,value:e.landedCostId};return i})))||[]})))||[];var s=e.filter((function(o){return o.method==="DDP"}));var n=e.filter((function(o){return o.method==="DAP"}));var r=e.filter((function(o){return o.method!=="DAP"&&o.method!=="DDP"}));t.serviceLevelsDDP=sortServiceLevelOptionsByAmount(s);t.serviceLevelsDAP=sortServiceLevelOptionsByAmount(n);t.serviceLevelsOther=sortServiceLevelOptionsByAmount(r);t.serviceLevelsAll=__spreadArray(__spreadArray(__spreadArray([],t.serviceLevelsDDP,true),t.serviceLevelsDAP,true),t.serviceLevelsOther,true);var i=__spreadArray(__spreadArray([],t.serviceLevelsDDP,true),t.serviceLevelsOther,true);if(!i.length){t.collapsedDAPOptions=false}};this.isCurrencyToggled=function(){if(t.displayBaseCurrency!==cartStore.displayBaseCurrency){t.displayBaseCurrency=cartStore.displayBaseCurrency;return true}return false};this.preselectFirstShippingMethod=function(){return __awaiter(t,void 0,void 0,(function(){var o,t;return __generator(this,(function(e){this.initServiceLevels();o=this.serviceLevelsAll.find((function(o){var t;return o.shipmentRatingId===((t=cartStore.selectedShippingOption)===null||t===void 0?void 0:t.id)}))||null;if(o){void this.handleRadioSelected({detail:o});return[2]}t=this.serviceLevelsAll.find(Boolean);if(t){void this.handleRadioSelected({detail:t})}return[2]}))}))}}o.prototype.disconnectedCallback=function(){this.storeUnsubscribeList.forEach((function(o){return o()}))};o.prototype.componentWillLoad=function(){var o=this;this.storeUnsubscribeList=[cartStoreOnChange("shippingData",(function(){if(o.isOutdatedShippingData()){void o.preselectFirstShippingMethod()}})),cartStoreOnChange("landedCostData",(function(){if(o.isOutdatedShippingData()){void o.preselectFirstShippingMethod()}}))];void this.preselectFirstShippingMethod()};o.prototype.render=function(){var o=this;if(this.isCurrencyToggled()){this.initServiceLevels()}var t=__spreadArray(__spreadArray([],this.serviceLevelsDDP,true),this.serviceLevelsOther,true);if(this.showErrorBanner){this.showErrorBanner=!this.handleValidate()}var e=function(){var e;if(((e=stripeStore.stripeAddressEventData)===null||e===void 0?void 0:e.value.address.country)==="US"){return h("zonos-shipping-rich-radio",{items:o.serviceLevelsAll,onRadioSelected:function(t){return o.handleRadioSelected(t)},selectedItem:o.selectedShippingMethod})}return h(Fragment,null,h("zonos-shipping-rich-radio",{items:t,onRadioSelected:function(t){return o.handleRadioSelected(t)},selectedItem:o.selectedShippingMethod}),!!t.length&&!!o.serviceLevelsDAP.length&&h("button",{class:classes(["zonos--shipping-options-collapse-trigger",o.collapsedDAPOptions&&"collapsed"]),onClick:function(){o.collapsedDAPOptions=!o.collapsedDAPOptions}},h("div",{class:"zonos--title-wrapper"},h("zonos-text",{type:"label"},"".concat(translate(o.collapsedDAPOptions?"Show non-prepaid options":"Hide non-prepaid options")," ")),h("zonos-icon",{content:ChevronUpIcon}))),h("zonos-collapse",{collapsed:o.collapsedDAPOptions},h("div",{class:"zonos--dap-wrapper"},h("zonos-banner",{bannerTitle:translate("Duties and taxes will be charged upon delivery."),intent:"warning"},translate("You may incur additional fees from the shipping carrier by not prepaying.")),h("zonos-shipping-rich-radio",{items:o.serviceLevelsDAP,onRadioSelected:function(t){return o.handleRadioSelected(t)},selectedItem:o.selectedShippingMethod}))))};return h(Host,{class:"zonos--shipping zonos--elements"},h("div",{class:"zonos--group"},h("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},translate("Delivery options")),this.showErrorBanner&&!!this.serviceLevelsAll.length&&h("zonos-banner",{class:"zonos--error-banner",intent:"error"},translate("No shipping method selected")),h("zonos-text",{class:"zonos--shipping-method-title",type:"semiBoldLabel"},translate("Shipping method")),!this.serviceLevelsAll.length?h("zonos-banner",{bannerTitle:cartStore.customQuotingError?cartStore.customQuotingError:translate('No shipping methods found - please review and update your address details by selecting the "Customer" tab above. If you continue to encounter issues, contact our support team for assistance.'),class:"zonos--shipping-method-error",intent:"error"}):h("div",{class:"zonos--shipping-options-wrapper"},e()),h("div",{class:"zonos--group-btn"},h("zonos-button",{backgroundColor:this.submitBtnColor,bold:true,loading:this.continueLoading||this.isSelecting,onClick:function(){return o.continueClickHandler()},size:"lg",variant:this.submitBtnType},translate("Go to payment")))))};return o}();ZonosShipping.style=ZonosShippingStyle0;export{ZonosCartItems as zonos_cart_items,ZonosCartRestrictedItems as zonos_cart_restricted_items,ZonosCartSubtotal as zonos_cart_subtotal,ZonosCheckoutFinish as zonos_checkout_finish,ZonosCheckoutFooter as zonos_checkout_footer,ZonosCheckoutPayment as zonos_checkout_payment,ZonosCheckoutProgressTabs as zonos_checkout_progress_tabs,ZonosCurrencyToggle as zonos_currency_toggle,ZonosCustomerInfo as zonos_customer_info,ZonosRestState as zonos_rest_state,ZonosReview as zonos_review,ZonosShipping as zonos_shipping};