@zonos/elements 1.2.4-alpha.1 → 1.2.4-alpha.11

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 (281) hide show
  1. package/README.md +15 -1
  2. package/dist/cjs/{cart-4ddc2af5.js → cart-963ffc24.js} +36 -8
  3. package/dist/cjs/{getBorderRadius-a97a5f75.js → getBorderRadius-bf4a4276.js} +1 -1
  4. package/dist/cjs/{index-20cb112f.js → index-0dcccc22.js} +27 -16
  5. package/dist/cjs/index.cjs.js +6 -6
  6. package/dist/cjs/{isDarkColor-261fcf3d.js → isDarkColor-ff6ff183.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +2 -2
  8. package/dist/cjs/{localization-11360fed.js → localization-994933ce.js} +46 -8
  9. package/dist/cjs/{submitGtag-bb093547.js → submitGtag-e047f309.js} +2 -2
  10. package/dist/cjs/zonos-address_2.cjs.entry.js +8 -8
  11. package/dist/cjs/zonos-badge.cjs.entry.js +3 -3
  12. package/dist/cjs/zonos-banner.cjs.entry.js +3 -3
  13. package/dist/cjs/zonos-button_2.cjs.entry.js +6 -6
  14. package/dist/cjs/zonos-card_2.cjs.entry.js +4 -4
  15. package/dist/cjs/zonos-cart-items_10.cjs.entry.js +60 -18
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +10 -8
  17. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  18. package/dist/cjs/zonos-controller.cjs.entry.js +12 -12
  19. package/dist/cjs/zonos-country-flag_4.cjs.entry.js +8 -8
  20. package/dist/cjs/zonos-elements.cjs.js +3 -3
  21. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +4 -4
  22. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  23. package/dist/cjs/zonos-icon.cjs.entry.js +3 -3
  24. package/dist/cjs/zonos-notification.cjs.entry.js +3 -3
  25. package/dist/cjs/zonos-payment.cjs.entry.js +7 -7
  26. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +4 -4
  27. package/dist/cjs/zonos-text.cjs.entry.js +3 -3
  28. package/dist/cjs/{zonosStore-a0fa5b77.js → zonosStore-b43ef5db.js} +1 -1
  29. package/dist/collection/collection-manifest.json +1 -1
  30. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-items/zonos-cart-items.css +1 -0
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.css +1 -0
  32. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.css +1 -0
  33. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +48 -2
  34. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.css +1 -0
  35. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.css +1 -0
  36. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +5 -2
  37. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.css +1 -0
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.css +1 -0
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.css +1 -0
  40. package/dist/collection/components/common/zonos-badge/zonos-badge.css +1 -0
  41. package/dist/collection/components/common/zonos-banner/zonos-banner.css +1 -0
  42. package/dist/collection/components/common/zonos-button/zonos-button.css +1 -0
  43. package/dist/collection/components/common/zonos-card/zonos-card.css +1 -0
  44. package/dist/collection/components/common/zonos-collapse/zonos-collapse.css +1 -0
  45. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.css +1 -0
  46. package/dist/collection/components/common/zonos-country-select/zonos-country-select.css +1 -0
  47. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.css +1 -0
  48. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -0
  49. package/dist/collection/components/common/zonos-icon/zonos-icon.css +1 -0
  50. package/dist/collection/components/common/zonos-logo/zonos-logo.css +1 -0
  51. package/dist/collection/components/common/zonos-notification/zonos-notification.css +1 -0
  52. package/dist/collection/components/common/zonos-notification/zonos-notification.js +3 -2
  53. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.css +1 -0
  54. package/dist/collection/components/common/zonos-spinner/zonos-spinner.css +1 -0
  55. package/dist/collection/components/common/zonos-text/zonos-text.css +1 -0
  56. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.css +1 -0
  57. package/dist/collection/components/component-template/zonos-component/zonos-component.css +1 -0
  58. package/dist/collection/components/hello/zonos-hello/zonos-hello.css +1 -0
  59. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +9 -6
  60. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.css +1 -0
  61. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +1 -0
  62. package/dist/collection/components/main/zonos-controller.css +1 -0
  63. package/dist/collection/components/main/zonos-controller.js +18 -16
  64. package/dist/collection/components/store/checkout/cart.js +1 -1
  65. package/dist/collection/components/store/checkout/stripe.js +3 -2
  66. package/dist/collection/components/stripe/zonos-address/zonos-address.css +1 -0
  67. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.css +1 -0
  68. package/dist/collection/components/stripe/zonos-payment/zonos-payment.css +1 -0
  69. package/dist/collection/components/utils/api/calculateLandedCost.js +9 -1
  70. package/dist/collection/components/utils/api/checkItemRestrictions.js +1 -1
  71. package/dist/collection/components/utils/api/getCountries.js +1 -1
  72. package/dist/collection/components/utils/api/getCountryLandedCost.js +1 -1
  73. package/dist/collection/components/utils/api/getExchangeRate.js +1 -1
  74. package/dist/collection/components/utils/api/getLocaleMessages.js +1 -1
  75. package/dist/collection/components/utils/api/getLocalization.js +1 -1
  76. package/dist/collection/components/utils/api/getShippingZones.js +1 -1
  77. package/dist/collection/components/utils/api/{getZonosSetting.js → getZonosSettings.js} +3 -3
  78. package/dist/collection/components/utils/api/triggerBuildLandedCost.js +22 -0
  79. package/dist/collection/components/utils/handleFetch.js +19 -1
  80. package/dist/collection/components/utils/logging/log.js +20 -0
  81. package/dist/collection/environment.js +11 -10
  82. package/dist/collection/scripts/zonos.js +53 -0
  83. package/dist/collection/types/generated/graphql.customer.types.js +89 -0
  84. package/dist/collection/types/generated/graphql.frontend.types.js +80 -6
  85. package/dist/components/cart.js +33 -5
  86. package/dist/components/localization.js +45 -7
  87. package/dist/components/zonos-address2.js +1 -1
  88. package/dist/components/zonos-badge2.js +1 -1
  89. package/dist/components/zonos-banner2.js +1 -1
  90. package/dist/components/zonos-button2.js +1 -1
  91. package/dist/components/zonos-card2.js +1 -1
  92. package/dist/components/zonos-cart-items2.js +1 -1
  93. package/dist/components/zonos-cart-subtotal2.js +1 -1
  94. package/dist/components/zonos-checkout-finish2.js +48 -5
  95. package/dist/components/zonos-checkout-payment2.js +1 -1
  96. package/dist/components/zonos-checkout.js +3 -1
  97. package/dist/components/zonos-collapse2.js +1 -1
  98. package/dist/components/zonos-component.js +1 -1
  99. package/dist/components/zonos-controller.js +6 -6
  100. package/dist/components/zonos-country-flag2.js +1 -1
  101. package/dist/components/zonos-country-select2.js +1 -1
  102. package/dist/components/zonos-custom-message2.js +1 -1
  103. package/dist/components/zonos-customer-info2.js +1 -1
  104. package/dist/components/zonos-dialog2.js +1 -1
  105. package/dist/components/zonos-hello-dialog-footer2.js +1 -1
  106. package/dist/components/zonos-hello-dialog2.js +1 -1
  107. package/dist/components/zonos-hello.js +2 -2
  108. package/dist/components/zonos-icon2.js +1 -1
  109. package/dist/components/zonos-link-authentication2.js +1 -1
  110. package/dist/components/zonos-logo2.js +1 -1
  111. package/dist/components/zonos-notification2.js +1 -1
  112. package/dist/components/zonos-payment2.js +1 -1
  113. package/dist/components/zonos-review2.js +1 -1
  114. package/dist/components/zonos-shipping-rich-radio2.js +1 -1
  115. package/dist/components/zonos-shipping2.js +1 -1
  116. package/dist/components/zonos-spinner2.js +1 -1
  117. package/dist/components/zonos-text2.js +1 -1
  118. package/dist/components/zonos-v-stack2.js +1 -1
  119. package/dist/esm/{cart-cd87f476.js → cart-c5236eec.js} +36 -8
  120. package/dist/esm/{getBorderRadius-35e8acce.js → getBorderRadius-178a0a05.js} +1 -1
  121. package/dist/esm/{index-3617e24c.js → index-36ff6342.js} +27 -16
  122. package/dist/esm/index.js +6 -6
  123. package/dist/esm/{isDarkColor-44e9e451.js → isDarkColor-416d6047.js} +1 -1
  124. package/dist/esm/loader.js +3 -3
  125. package/dist/esm/{localization-f573428e.js → localization-3cb32a71.js} +46 -8
  126. package/dist/esm/{submitGtag-75af52be.js → submitGtag-9de4957f.js} +2 -2
  127. package/dist/esm/zonos-address_2.entry.js +8 -8
  128. package/dist/esm/zonos-badge.entry.js +3 -3
  129. package/dist/esm/zonos-banner.entry.js +3 -3
  130. package/dist/esm/zonos-button_2.entry.js +6 -6
  131. package/dist/esm/zonos-card_2.entry.js +4 -4
  132. package/dist/esm/zonos-cart-items_10.entry.js +60 -18
  133. package/dist/esm/zonos-checkout.entry.js +10 -8
  134. package/dist/esm/zonos-component.entry.js +2 -2
  135. package/dist/esm/zonos-controller.entry.js +12 -12
  136. package/dist/esm/zonos-country-flag_4.entry.js +8 -8
  137. package/dist/esm/zonos-elements.js +4 -4
  138. package/dist/esm/zonos-hello-dialog.entry.js +4 -4
  139. package/dist/esm/zonos-hello.entry.js +5 -5
  140. package/dist/esm/zonos-icon.entry.js +3 -3
  141. package/dist/esm/zonos-notification.entry.js +3 -3
  142. package/dist/esm/zonos-payment.entry.js +7 -7
  143. package/dist/esm/zonos-shipping-rich-radio.entry.js +4 -4
  144. package/dist/esm/zonos-text.entry.js +3 -3
  145. package/dist/esm/{zonosStore-e0b7a5cf.js → zonosStore-61e74f58.js} +1 -1
  146. package/dist/esm-es5/cart-c5236eec.js +1 -0
  147. package/dist/esm-es5/{getBorderRadius-35e8acce.js → getBorderRadius-178a0a05.js} +1 -1
  148. package/dist/esm-es5/index-36ff6342.js +2 -0
  149. package/dist/esm-es5/index.js +1 -1
  150. package/dist/esm-es5/{isDarkColor-44e9e451.js → isDarkColor-416d6047.js} +1 -1
  151. package/dist/esm-es5/loader.js +1 -1
  152. package/dist/esm-es5/{localization-f573428e.js → localization-3cb32a71.js} +1 -1
  153. package/dist/esm-es5/{submitGtag-75af52be.js → submitGtag-9de4957f.js} +1 -1
  154. package/dist/esm-es5/zonos-address_2.entry.js +1 -1
  155. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  156. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  157. package/dist/esm-es5/zonos-button_2.entry.js +1 -1
  158. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  159. package/dist/esm-es5/zonos-cart-items_10.entry.js +1 -1
  160. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  161. package/dist/esm-es5/zonos-component.entry.js +1 -1
  162. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  163. package/dist/esm-es5/zonos-country-flag_4.entry.js +1 -1
  164. package/dist/esm-es5/zonos-elements.js +1 -1
  165. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  166. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  167. package/dist/esm-es5/zonos-icon.entry.js +1 -1
  168. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  169. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  170. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  171. package/dist/esm-es5/zonos-text.entry.js +1 -1
  172. package/dist/esm-es5/{zonosStore-e0b7a5cf.js → zonosStore-61e74f58.js} +1 -1
  173. package/dist/scripts/loadZonos.js +76 -3
  174. package/dist/scripts/zonos.js +76 -3
  175. package/dist/types/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.d.ts +5 -1
  176. package/dist/types/components/store/checkout/stripe.d.ts +1 -0
  177. package/dist/types/components/utils/api/getLocaleMessages.d.ts +1 -1
  178. package/dist/types/components/utils/api/{getZonosSetting.d.ts → getZonosSettings.d.ts} +1 -1
  179. package/dist/types/components/utils/api/triggerBuildLandedCost.d.ts +5 -0
  180. package/dist/types/components/utils/changeDeepProperty.d.ts +1 -1
  181. package/dist/types/components/utils/changeDeepPropertyAtIndex.d.ts +1 -1
  182. package/dist/types/scripts/zonos.d.ts +1 -0
  183. package/dist/types/types/checkout/CheckoutConfig.d.ts +3 -1
  184. package/dist/types/types/generated/graphql.customer.types.d.ts +254 -7
  185. package/dist/types/types/generated/graphql.customer.types.ts +310 -7
  186. package/dist/types/types/generated/graphql.frontend.types.d.ts +210 -11
  187. package/dist/types/types/generated/graphql.frontend.types.ts +358 -11
  188. package/dist/types/types/global.d.ts +12 -0
  189. package/dist/zonos-elements/index.esm.js +1 -1
  190. package/dist/zonos-elements/p-07ebdfd9.entry.js +1 -0
  191. package/dist/zonos-elements/{p-77a7929b.js → p-089ba905.js} +1 -1
  192. package/dist/zonos-elements/{p-e694312d.entry.js → p-0d536271.entry.js} +1 -1
  193. package/dist/zonos-elements/p-18904b7c.system.js +2 -0
  194. package/dist/zonos-elements/p-1d4a970b.entry.js +1 -0
  195. package/dist/zonos-elements/{p-80ba24a8.system.js → p-24eed2a8.system.js} +1 -1
  196. package/dist/zonos-elements/{p-bec21999.system.js → p-24fbe845.system.js} +1 -1
  197. package/dist/zonos-elements/p-2801d868.entry.js +1 -0
  198. package/dist/zonos-elements/p-2f43da39.system.entry.js +1 -0
  199. package/dist/zonos-elements/p-39013804.entry.js +1 -0
  200. package/dist/zonos-elements/p-3e70063e.entry.js +1 -0
  201. package/dist/zonos-elements/p-425996c1.js +1 -0
  202. package/dist/zonos-elements/p-47390db7.system.entry.js +1 -0
  203. package/dist/zonos-elements/p-49f09b91.entry.js +1 -0
  204. package/dist/zonos-elements/p-4d93275c.entry.js +1 -0
  205. package/dist/zonos-elements/{p-534dcbd4.system.js → p-509eb1de.system.js} +1 -1
  206. package/dist/zonos-elements/p-510d3aa3.system.entry.js +1 -0
  207. package/dist/zonos-elements/p-5554ff33.system.entry.js +1 -0
  208. package/dist/zonos-elements/{p-8bbad467.js → p-55f49f1e.js} +1 -1
  209. package/dist/zonos-elements/p-560aa686.system.entry.js +1 -0
  210. package/dist/zonos-elements/p-65749745.system.entry.js +1 -0
  211. package/dist/zonos-elements/p-67154df2.system.entry.js +1 -0
  212. package/dist/zonos-elements/p-684ed483.entry.js +1 -0
  213. package/dist/zonos-elements/p-6a72fc13.entry.js +1 -0
  214. package/dist/zonos-elements/p-6aa44c88.system.entry.js +1 -0
  215. package/dist/zonos-elements/{p-0175125e.system.js → p-6d4232a6.system.js} +1 -1
  216. package/dist/zonos-elements/p-7fdc8b27.system.entry.js +1 -0
  217. package/dist/zonos-elements/p-83c7c3f4.entry.js +1 -0
  218. package/dist/zonos-elements/p-89c210d6.entry.js +1 -0
  219. package/dist/zonos-elements/{p-779621e4.system.js → p-8a8b08e9.system.js} +1 -1
  220. package/dist/zonos-elements/p-8cefaae6.entry.js +1 -0
  221. package/dist/zonos-elements/p-938803f4.entry.js +1 -0
  222. package/dist/zonos-elements/p-956efa27.js +2 -0
  223. package/dist/zonos-elements/p-a376a37f.entry.js +1 -0
  224. package/dist/zonos-elements/{p-643eeb24.system.js → p-b85be1ab.system.js} +1 -1
  225. package/dist/zonos-elements/p-bb24e583.entry.js +1 -0
  226. package/dist/zonos-elements/{p-1f8b684a.js → p-bbb154a9.js} +1 -1
  227. package/dist/zonos-elements/p-c9348bb0.system.entry.js +1 -0
  228. package/dist/zonos-elements/p-d856a200.system.entry.js +1 -0
  229. package/dist/zonos-elements/{p-754bdfdb.system.js → p-da060b1c.system.js} +1 -1
  230. package/dist/zonos-elements/p-e06711b8.system.entry.js +1 -0
  231. package/dist/zonos-elements/p-e100f180.system.entry.js +1 -0
  232. package/dist/zonos-elements/{p-08298e74.entry.js → p-e1f6ab97.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-39a5e8e0.js → p-e2c2584c.js} +1 -1
  234. package/dist/zonos-elements/p-e5ae22a9.system.entry.js +1 -0
  235. package/dist/zonos-elements/p-e98be2d0.system.entry.js +1 -0
  236. package/dist/zonos-elements/p-f33e1ffb.system.js +1 -0
  237. package/dist/zonos-elements/p-f367f2fe.system.entry.js +1 -0
  238. package/dist/zonos-elements/p-fbfec60c.system.entry.js +1 -0
  239. package/dist/zonos-elements/p-ff95f098.js +1 -0
  240. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  241. package/dist/zonos-elements/zonos-elements.js +1 -1
  242. package/package.json +9 -7
  243. package/dist/esm-es5/cart-cd87f476.js +0 -1
  244. package/dist/esm-es5/index-3617e24c.js +0 -2
  245. package/dist/zonos-elements/p-03923a86.system.entry.js +0 -1
  246. package/dist/zonos-elements/p-1bddc7ca.system.entry.js +0 -1
  247. package/dist/zonos-elements/p-2228b050.entry.js +0 -1
  248. package/dist/zonos-elements/p-2466df77.entry.js +0 -1
  249. package/dist/zonos-elements/p-29b993c2.system.entry.js +0 -1
  250. package/dist/zonos-elements/p-2a32dc0a.system.entry.js +0 -1
  251. package/dist/zonos-elements/p-2a666084.entry.js +0 -1
  252. package/dist/zonos-elements/p-2f1e9192.system.entry.js +0 -1
  253. package/dist/zonos-elements/p-44ddebe4.system.entry.js +0 -1
  254. package/dist/zonos-elements/p-4e8b5d86.system.entry.js +0 -1
  255. package/dist/zonos-elements/p-5a41b5fd.entry.js +0 -1
  256. package/dist/zonos-elements/p-5d0eceaa.entry.js +0 -1
  257. package/dist/zonos-elements/p-62ccb686.entry.js +0 -1
  258. package/dist/zonos-elements/p-660a588b.entry.js +0 -1
  259. package/dist/zonos-elements/p-6affe5cc.entry.js +0 -1
  260. package/dist/zonos-elements/p-72ea628d.system.js +0 -1
  261. package/dist/zonos-elements/p-7a15d841.entry.js +0 -1
  262. package/dist/zonos-elements/p-7a81ccb5.system.entry.js +0 -1
  263. package/dist/zonos-elements/p-83d100b8.entry.js +0 -1
  264. package/dist/zonos-elements/p-8ebc3ca5.system.entry.js +0 -1
  265. package/dist/zonos-elements/p-9c78d0ca.entry.js +0 -1
  266. package/dist/zonos-elements/p-9ef86de7.entry.js +0 -1
  267. package/dist/zonos-elements/p-ab46cee9.system.entry.js +0 -1
  268. package/dist/zonos-elements/p-b0268bc5.entry.js +0 -1
  269. package/dist/zonos-elements/p-b4db1620.entry.js +0 -1
  270. package/dist/zonos-elements/p-bec05c21.system.js +0 -2
  271. package/dist/zonos-elements/p-c299049e.js +0 -1
  272. package/dist/zonos-elements/p-cd4f8e13.system.entry.js +0 -1
  273. package/dist/zonos-elements/p-ceb2cd7b.system.entry.js +0 -1
  274. package/dist/zonos-elements/p-cf4545ed.system.entry.js +0 -1
  275. package/dist/zonos-elements/p-cf8aaa17.js +0 -2
  276. package/dist/zonos-elements/p-dc9b318c.system.entry.js +0 -1
  277. package/dist/zonos-elements/p-dcf64928.system.entry.js +0 -1
  278. package/dist/zonos-elements/p-e1de2a1f.js +0 -1
  279. package/dist/zonos-elements/p-ec26fe57.entry.js +0 -1
  280. package/dist/zonos-elements/p-f8198015.system.entry.js +0 -1
  281. package/dist/zonos-elements/p-fcd4fc66.system.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as s,h as o,H as n,d as t}from"./p-956efa27.js";import{s as i,m as a}from"./p-425996c1.js";import{b as e,a as c}from"./p-bbb154a9.js";import"./p-089ba905.js";import"./p-55f49f1e.js";import"./p-ff95f098.js";const h=class{constructor(o){s(this,o),this.type=void 0,this.titleText=void 0,this.defaultAddress=null,this.stripe=window.Zonos.stripe}async watchInitStripe(){var s,o;if(this.stripe=window.Zonos.stripe,!this.stripe||!i.stripeElements)return void e("Stripe is not initialized. Couldn't load stripe element.");(null===(s=this.defaultAddress)||void 0===s?void 0:s.phone)||null===(o=this.defaultAddress)||void 0===o||delete o.phone;const n=c.shippingZoneCountries,t=i.stripeAddressElement||i.stripeElements.create("address",{allowedCountries:n?Object.values(n).map((s=>s.code)):[],contacts:this.defaultAddress?[this.defaultAddress]:void 0,defaultValues:{address:{country:c.selectedCountryCode||"AL"}},display:{name:"split"},fields:{phone:"always"},mode:this.type,validation:{phone:{required:"always"}}});t.mount(this.el.querySelector(".zonos--address-component")),t.on("change",(s=>{const o=s.value;i.stripeAddressEventData=Object.assign(Object.assign({},s),{elementMode:"shipping",elementType:"address",empty:!1,value:Object.assign(Object.assign({},o),{firstName:o.firstName||o.name.split(" ")[0],lastName:o.lastName||o.name.split(" ").pop()})}),a()})),i.stripeAddressElement=t}componentDidLoad(){this.watchInitStripe()}render(){return o(n,{class:"zonos--address zonos--elements"},o("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},this.titleText),o("div",{class:"zonos--address-component"}))}get el(){return t(this)}static get watchers(){return{stripe:["watchInitStripe"]}}};h.style=".sc-zonos-address-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-address-h *.sc-zonos-address{font-family:var(--font-family, Inter), Inter}.sc-zonos-address-h img.sc-zonos-address{max-width:100%}.sc-zonos-address-h dl.sc-zonos-address,.sc-zonos-address-h dd.sc-zonos-address,.sc-zonos-address-h h1.sc-zonos-address,.sc-zonos-address-h h2.sc-zonos-address,.sc-zonos-address-h h3.sc-zonos-address,.sc-zonos-address-h h4.sc-zonos-address,.sc-zonos-address-h h5.sc-zonos-address,.sc-zonos-address-h h6.sc-zonos-address,.sc-zonos-address-h hr.sc-zonos-address,.sc-zonos-address-h figure.sc-zonos-address,.sc-zonos-address-h p.sc-zonos-address,.sc-zonos-address-h pre.sc-zonos-address{margin:0}.sc-zonos-address-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-address-h .zonos--title.sc-zonos-address{margin-bottom:var(--amino-space-16)}";const d=class{constructor(o){s(this,o),this.titleText=void 0,this.stripe=i.stripe}watchInitStripe(){if(!this.stripe||!i.stripeElements)return;const s=i.stripeLinkElement||i.stripeElements.create("linkAuthentication"),o=this.el.querySelector(".zonos--link-authentication-component");o?(s.mount(o),s.on("change",(s=>{i.stripeLinkEventData=s,a()})),i.stripeLinkElement=s):console.error("Cannot find container element for linkAuthenticationElement")}componentDidLoad(){this.watchInitStripe()}render(){return o(n,{class:"zonos--link-authentication zonos--elements"},o("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},this.titleText),o("div",{class:"zonos--link-authentication-component"}))}get el(){return t(this)}static get watchers(){return{stripe:["watchInitStripe"]}}};d.style=".sc-zonos-link-authentication-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-link-authentication-h *.sc-zonos-link-authentication{font-family:var(--font-family, Inter), Inter}.sc-zonos-link-authentication-h img.sc-zonos-link-authentication{max-width:100%}.sc-zonos-link-authentication-h dl.sc-zonos-link-authentication,.sc-zonos-link-authentication-h dd.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h1.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h2.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h3.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h4.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h5.sc-zonos-link-authentication,.sc-zonos-link-authentication-h h6.sc-zonos-link-authentication,.sc-zonos-link-authentication-h hr.sc-zonos-link-authentication,.sc-zonos-link-authentication-h figure.sc-zonos-link-authentication,.sc-zonos-link-authentication-h p.sc-zonos-link-authentication,.sc-zonos-link-authentication-h pre.sc-zonos-link-authentication{margin:0}.sc-zonos-link-authentication-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-link-authentication-h .zonos--title.sc-zonos-link-authentication{margin-bottom:var(--amino-space-16)}";export{h as zonos_address,d as zonos_link_authentication}
@@ -1 +1 @@
1
- import{g as n,f as t}from"./p-cf8aaa17.js";const r=n=>!("isConnected"in n)||n.isConnected,e=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(r))})(...t)}),2e3)}})(),o=n=>"function"==typeof n?n():n,i=(r,i)=>{const u=((n,t=((n,t)=>n!==t))=>{const r=o(n);let e=new Map(Object.entries(null!=r?r:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var t;e=new Map(Object.entries(null!==(t=o(n))&&void 0!==t?t:{})),i.reset.forEach((n=>n()))},c=n=>(i.get.forEach((t=>t(n))),e.get(n)),a=(n,r)=>{const o=e.get(n);t(r,o,n)&&(e.set(n,r),i.set.forEach((t=>t(n,r,o))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(n,t)=>c(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,r)=>(a(t,r),!0)}),f=(n,t)=>(i[n].push(t),()=>{((n,t)=>{const r=n.indexOf(t);r>=0&&(n[r]=n[n.length-1],n.length--)})(i[n],t)});return{state:s,get:c,set:a,on:f,onChange:(t,r)=>{const e=f("set",((n,e)=>{n===t&&r(e)})),i=f("reset",(()=>r(o(n)[t])));return()=>{e(),i()}},use:(...n)=>{const t=n.reduce(((n,t)=>(t.set&&n.push(f("set",t.set)),t.get&&n.push(f("get",t.get)),t.reset&&n.push(f("reset",t.reset)),t.dispose&&n.push(f("dispose",t.dispose)),n)),[]);return()=>t.forEach((n=>n()))},dispose:()=>{i.dispose.forEach((n=>n())),u()},reset:u,forceUpdate:n=>{const t=e.get(n);i.set.forEach((r=>r(n,t,t)))}}})(r,i);return u.use((()=>{if("function"!=typeof n)return{};const r=new Map;return{dispose:()=>r.clear(),get:t=>{const e=n();e&&((n,t,r)=>{const e=n.get(t);e?e.includes(r)||e.push(r):n.set(t,[r])})(r,t,e)},set:n=>{const o=r.get(n);o&&r.set(n,o.filter(t)),e(r)},reset:()=>{r.forEach((n=>n.forEach(t))),e(r)}}})()),u};var u=function(n,t){return n===t||n!=n&&t!=t},c=function(n,t){for(var r=n.length;r--;)if(u(n[r][0],t))return r;return-1},a=Array.prototype.splice;function s(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(n){var t=this.__data__,r=c(t,n);return!(r<0||(r==t.length-1?t.pop():a.call(t,r,1),--this.size,0))},s.prototype.get=function(n){var t=this.__data__,r=c(t,n);return r<0?void 0:t[r][1]},s.prototype.has=function(n){return c(this.__data__,n)>-1},s.prototype.set=function(n,t){var r=this.__data__,e=c(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this};var f=s,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(n,t,r){return n(r={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var d,h="object"==typeof l&&l&&l.Object===Object&&l,p="object"==typeof self&&self&&self.Object===Object&&self,b=h||p||Function("return this")(),y=b.Symbol,g=Object.prototype,j=g.hasOwnProperty,m=g.toString,O=y?y.toStringTag:void 0,w=Object.prototype.toString,E=y?y.toStringTag:void 0,_=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":E&&E in Object(n)?function(n){var t=j.call(n,O),r=n[O];try{n[O]=void 0;var e=!0}catch(n){}var o=m.call(n);return e&&(t?n[O]=r:delete n[O]),o}(n):function(n){return w.call(n)}(n)},D=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},S=function(n){if(!D(n))return!1;var t=_(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=b["__core-js_shared__"],B=(d=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",T=Function.prototype.toString,C=/^\[object .+?Constructor\]$/,P=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=function(n){return!(!D(n)||(t=n,B&&B in t))&&(S(n)?P:C).test(function(n){if(null!=n){try{return T.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},L=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return I(r)?r:void 0},U=L(b,"Map"),N=L(Object,"create"),x=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function M(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}M.prototype.clear=function(){this.__data__=N?N(null):{},this.size=0},M.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},M.prototype.get=function(n){var t=this.__data__;if(N){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return x.call(t,n)?t[n]:void 0},M.prototype.has=function(n){var t=this.__data__;return N?void 0!==t[n]:F.call(t,n)},M.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=N&&void 0===t?"__lodash_hash_undefined__":t,this};var z=M,$=function(n,t){var r,e,o=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function R(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}R.prototype.clear=function(){this.size=0,this.__data__={hash:new z,map:new(U||f),string:new z}},R.prototype.delete=function(n){var t=$(this,n).delete(n);return this.size-=t?1:0,t},R.prototype.get=function(n){return $(this,n).get(n)},R.prototype.has=function(n){return $(this,n).has(n)},R.prototype.set=function(n,t){var r=$(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this};var k=R;function G(n){var t=this.__data__=new f(n);this.size=t.size}G.prototype.clear=function(){this.__data__=new f,this.size=0},G.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},G.prototype.get=function(n){return this.__data__.get(n)},G.prototype.has=function(n){return this.__data__.has(n)},G.prototype.set=function(n,t){var r=this.__data__;if(r instanceof f){var e=r.__data__;if(!U||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new k(e)}return r.set(n,t),this.size=r.size,this};var H,K,q=G,V=function(){try{var n=L(Object,"defineProperty");return n({},"",{}),n}catch(n){}}(),J=function(n,t,r){"__proto__"==t&&V?V(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r},Q=function(n,t,r){(void 0!==r&&!u(n[t],r)||void 0===r&&!(t in n))&&J(n,t,r)},W=function(n,t,r){for(var e=-1,o=Object(n),i=r(n),u=i.length;u--;){var c=i[++e];if(!1===t(o[c],c,o))break}return n},X=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0,i=o?o.allocUnsafe:void 0;n.exports=function(n,t){if(t)return n.slice();var r=n.length,e=i?i(r):new n.constructor(r);return n.copy(e),e}})),Y=b.Uint8Array,Z=function(n,t){var r,e,o=t?(e=new(r=n.buffer).constructor(r.byteLength),new Y(e).set(new Y(r)),e):n.buffer;return new n.constructor(o,n.byteOffset,n.length)},nn=Object.create,tn=function(){function n(){}return function(t){if(!D(t))return{};if(nn)return nn(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}(),rn=(H=Object.getPrototypeOf,K=Object,function(n){return H(K(n))}),en=Object.prototype,on=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||en)},un=function(n){return null!=n&&"object"==typeof n},cn=function(n){return un(n)&&"[object Arguments]"==_(n)},an=Object.prototype,sn=an.hasOwnProperty,fn=an.propertyIsEnumerable,ln=cn(function(){return arguments}())?cn:function(n){return un(n)&&sn.call(n,"callee")&&!fn.call(n,"callee")},vn=Array.isArray,dn=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},hn=function(n){return null!=n&&dn(n.length)&&!S(n)},pn=function(){return!1},bn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0;n.exports=(o?o.isBuffer:void 0)||pn})),yn=Function.prototype.toString,gn=Object.prototype.hasOwnProperty,jn=yn.call(Object),mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;var On,wn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r&&h.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(n){}}();n.exports=i})),En=wn&&wn.isTypedArray,_n=En?function(n){return function(t){return n(t)}}(En):function(n){return un(n)&&dn(n.length)&&!!mn[_(n)]},Dn=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]},Sn=Object.prototype.hasOwnProperty,An=function(n,t,r){var e=n[t];Sn.call(n,t)&&u(e,r)&&(void 0!==r||t in n)||J(n,t,r)},Bn=/^(?:0|[1-9]\d*)$/,Tn=function(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Bn.test(n))&&n>-1&&n%1==0&&n<t},Cn=Object.prototype.hasOwnProperty,Pn=function(n,t){var r=vn(n),e=!r&&ln(n),o=!r&&!e&&bn(n),i=!r&&!e&&!o&&_n(n),u=r||e||o||i,c=u?function(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}(n.length,String):[],a=c.length;for(var s in n)!t&&!Cn.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Tn(s,a))||c.push(s);return c},In=Object.prototype.hasOwnProperty,Ln=function(n){if(!D(n))return function(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}(n);var t=on(n),r=[];for(var e in n)("constructor"!=e||!t&&In.call(n,e))&&r.push(e);return r},Un=function(n){return hn(n)?Pn(n,!0):Ln(n)},Nn=function(n){return function(n,t,r,e){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var c=t[i],a=e?e(r[c],n[c],c,r,n):void 0;void 0===a&&(a=n[c]),o?J(r,c,a):An(r,c,a)}return r}(n,Un(n))},xn=function(n,t,r,e,o,i,u){var c,a=Dn(n,r),s=Dn(t,r),f=u.get(s);if(f)Q(n,r,f);else{var l=i?i(a,s,r+"",n,t,u):void 0,v=void 0===l;if(v){var d=vn(s),h=!d&&bn(s),p=!d&&!h&&_n(s);l=s,d||h||p?vn(a)?l=a:un(c=a)&&hn(c)?l=function(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t}(a):h?(v=!1,l=X(s,!0)):p?(v=!1,l=Z(s,!0)):l=[]:function(n){if(!un(n)||"[object Object]"!=_(n))return!1;var t=rn(n);if(null===t)return!0;var r=gn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&yn.call(r)==jn}(s)||ln(s)?(l=a,ln(a)?l=Nn(a):D(a)&&!S(a)||(l=function(n){return"function"!=typeof n.constructor||on(n)?{}:tn(rn(n))}(s))):v=!1}v&&(u.set(s,l),o(l,s,e,i,u),u.delete(s)),Q(n,r,l)}},Fn=function n(t,r,e,o,i){t!==r&&W(r,(function(u,c){if(i||(i=new q),D(u))xn(t,r,c,e,n,o,i);else{var a=o?o(Dn(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),Q(t,c,a)}}),Un)},Mn=function(n){return n},zn=Math.max,$n=Date.now,Rn=function(n){var t=0,r=0;return function(){var e=$n(),o=16-(e-r);if(r=e,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(V?function(n,t){return V(n,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Mn),kn=function(n,t){return Rn(function(n,t,r){return t=zn(void 0===t?n.length-1:t,0),function(){for(var e=arguments,o=-1,i=zn(e.length-t,0),u=Array(i);++o<i;)u[o]=e[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=e[o];return c[t]=r(u),function(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}(n,this,c)}}(n,t,Mn),n+"")},Gn=(On=function(n,t,r){Fn(n,t,r)},kn((function(n,t){var r=-1,e=t.length,o=e>1?t[e-1]:void 0,i=e>2?t[2]:void 0;for(o=On.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(n,t,r){if(!D(r))return!1;var e=typeof t;return!!("number"==e?hn(r)&&Tn(t,r.length):"string"==e&&t in r)&&u(r[t],n)}(t[0],t[1],i)&&(o=e<3?void 0:o,e=1),n=Object(n);++r<e;){var c=t[r];c&&On(n,c,r)}return n})));const Hn=(n,t,...r)=>{const e=[n,t,...r].filter(Boolean);return Gn.apply(null,e)},{reset:Kn,state:qn}=i((()=>({appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedDomains:[],analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{allowedDomains:[],anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:!1,onlineStoreSettings:{allowedDomains:[]},organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""})));let Vn=null;const Jn=({overrideSettings:n,zonosSettings:t})=>{var r,e,o;Kn(),t&&(Vn=t),qn.appearance=Hn(qn.appearance,(null==Vn?void 0:Vn.appearanceSettings)||(null==t?void 0:t.appearanceSettings)||null,n.appearance),qn.checkoutSettings=Hn(qn.checkoutSettings,(null==Vn?void 0:Vn.checkoutSettings)||(null==t?void 0:t.checkoutSettings)||null,n.checkoutSettings),qn.helloSettings=Hn(qn.helloSettings,(null==Vn?void 0:Vn.helloSettings)||(null==t?void 0:t.helloSettings)||null,n.helloSettings),qn.onlineStoreSettings=Hn(qn.onlineStoreSettings,(null==Vn?void 0:Vn.onlineStoreSettings)||(null==t?void 0:t.onlineStoreSettings)||null,n.onlineStoreSettings),qn.loadedConfig=!0,qn.organizationName=(null===(r=null==t?void 0:t.organization)||void 0===r?void 0:r.name)||"",qn.storeId=(null===(o=null===(e=null==t?void 0:t.organization)||void 0===e?void 0:e.references)||void 0===o?void 0:o.storeId)||null,qn.currencyConverter=n.currencyConverter},Qn=()=>qn.appearance.fontFamily||"Inter";export{b as _,v as a,l as b,i as c,Jn as d,Qn as e,_ as f,D as g,un as i,Hn as m,qn as z}
1
+ import{g as n,f as t}from"./p-956efa27.js";const r=n=>!("isConnected"in n)||n.isConnected,e=(()=>{let n;return(...t)=>{n&&clearTimeout(n),n=setTimeout((()=>{n=0,(n=>{for(let t of n.keys())n.set(t,n.get(t).filter(r))})(...t)}),2e3)}})(),o=n=>"function"==typeof n?n():n,i=(r,i)=>{const u=((n,t=((n,t)=>n!==t))=>{const r=o(n);let e=new Map(Object.entries(null!=r?r:{}));const i={dispose:[],get:[],set:[],reset:[]},u=()=>{var t;e=new Map(Object.entries(null!==(t=o(n))&&void 0!==t?t:{})),i.reset.forEach((n=>n()))},c=n=>(i.get.forEach((t=>t(n))),e.get(n)),a=(n,r)=>{const o=e.get(n);t(r,o,n)&&(e.set(n,r),i.set.forEach((t=>t(n,r,o))))},s="undefined"==typeof Proxy?{}:new Proxy(r,{get:(n,t)=>c(t),ownKeys:()=>Array.from(e.keys()),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),has:(n,t)=>e.has(t),set:(n,t,r)=>(a(t,r),!0)}),f=(n,t)=>(i[n].push(t),()=>{((n,t)=>{const r=n.indexOf(t);r>=0&&(n[r]=n[n.length-1],n.length--)})(i[n],t)});return{state:s,get:c,set:a,on:f,onChange:(t,r)=>{const e=f("set",((n,e)=>{n===t&&r(e)})),i=f("reset",(()=>r(o(n)[t])));return()=>{e(),i()}},use:(...n)=>{const t=n.reduce(((n,t)=>(t.set&&n.push(f("set",t.set)),t.get&&n.push(f("get",t.get)),t.reset&&n.push(f("reset",t.reset)),t.dispose&&n.push(f("dispose",t.dispose)),n)),[]);return()=>t.forEach((n=>n()))},dispose:()=>{i.dispose.forEach((n=>n())),u()},reset:u,forceUpdate:n=>{const t=e.get(n);i.set.forEach((r=>r(n,t,t)))}}})(r,i);return u.use((()=>{if("function"!=typeof n)return{};const r=new Map;return{dispose:()=>r.clear(),get:t=>{const e=n();e&&((n,t,r)=>{const e=n.get(t);e?e.includes(r)||e.push(r):n.set(t,[r])})(r,t,e)},set:n=>{const o=r.get(n);o&&r.set(n,o.filter(t)),e(r)},reset:()=>{r.forEach((n=>n.forEach(t))),e(r)}}})()),u};var u=function(n,t){return n===t||n!=n&&t!=t},c=function(n,t){for(var r=n.length;r--;)if(u(n[r][0],t))return r;return-1},a=Array.prototype.splice;function s(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}s.prototype.clear=function(){this.__data__=[],this.size=0},s.prototype.delete=function(n){var t=this.__data__,r=c(t,n);return!(r<0||(r==t.length-1?t.pop():a.call(t,r,1),--this.size,0))},s.prototype.get=function(n){var t=this.__data__,r=c(t,n);return r<0?void 0:t[r][1]},s.prototype.has=function(n){return c(this.__data__,n)>-1},s.prototype.set=function(n,t){var r=this.__data__,e=c(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this};var f=s,l="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function v(n,t,r){return n(r={path:t,exports:{},require:function(){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}()}},r.exports),r.exports}var d,h="object"==typeof l&&l&&l.Object===Object&&l,p="object"==typeof self&&self&&self.Object===Object&&self,b=h||p||Function("return this")(),y=b.Symbol,g=Object.prototype,j=g.hasOwnProperty,m=g.toString,O=y?y.toStringTag:void 0,w=Object.prototype.toString,E=y?y.toStringTag:void 0,_=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":E&&E in Object(n)?function(n){var t=j.call(n,O),r=n[O];try{n[O]=void 0;var e=!0}catch(n){}var o=m.call(n);return e&&(t?n[O]=r:delete n[O]),o}(n):function(n){return w.call(n)}(n)},D=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},S=function(n){if(!D(n))return!1;var t=_(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},A=b["__core-js_shared__"],B=(d=/[^.]+$/.exec(A&&A.keys&&A.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",T=Function.prototype.toString,C=/^\[object .+?Constructor\]$/,P=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),I=function(n){return!(!D(n)||(t=n,B&&B in t))&&(S(n)?P:C).test(function(n){if(null!=n){try{return T.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},L=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return I(r)?r:void 0},U=L(b,"Map"),N=L(Object,"create"),x=Object.prototype.hasOwnProperty,F=Object.prototype.hasOwnProperty;function M(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}M.prototype.clear=function(){this.__data__=N?N(null):{},this.size=0},M.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},M.prototype.get=function(n){var t=this.__data__;if(N){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return x.call(t,n)?t[n]:void 0},M.prototype.has=function(n){var t=this.__data__;return N?void 0!==t[n]:F.call(t,n)},M.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=N&&void 0===t?"__lodash_hash_undefined__":t,this};var z=M,$=function(n,t){var r,e,o=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map};function R(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}R.prototype.clear=function(){this.size=0,this.__data__={hash:new z,map:new(U||f),string:new z}},R.prototype.delete=function(n){var t=$(this,n).delete(n);return this.size-=t?1:0,t},R.prototype.get=function(n){return $(this,n).get(n)},R.prototype.has=function(n){return $(this,n).has(n)},R.prototype.set=function(n,t){var r=$(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this};var k=R;function G(n){var t=this.__data__=new f(n);this.size=t.size}G.prototype.clear=function(){this.__data__=new f,this.size=0},G.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},G.prototype.get=function(n){return this.__data__.get(n)},G.prototype.has=function(n){return this.__data__.has(n)},G.prototype.set=function(n,t){var r=this.__data__;if(r instanceof f){var e=r.__data__;if(!U||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new k(e)}return r.set(n,t),this.size=r.size,this};var H,K,q=G,V=function(){try{var n=L(Object,"defineProperty");return n({},"",{}),n}catch(n){}}(),J=function(n,t,r){"__proto__"==t&&V?V(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r},Q=function(n,t,r){(void 0!==r&&!u(n[t],r)||void 0===r&&!(t in n))&&J(n,t,r)},W=function(n,t,r){for(var e=-1,o=Object(n),i=r(n),u=i.length;u--;){var c=i[++e];if(!1===t(o[c],c,o))break}return n},X=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0,i=o?o.allocUnsafe:void 0;n.exports=function(n,t){if(t)return n.slice();var r=n.length,e=i?i(r):new n.constructor(r);return n.copy(e),e}})),Y=b.Uint8Array,Z=function(n,t){var r,e,o=t?(e=new(r=n.buffer).constructor(r.byteLength),new Y(e).set(new Y(r)),e):n.buffer;return new n.constructor(o,n.byteOffset,n.length)},nn=Object.create,tn=function(){function n(){}return function(t){if(!D(t))return{};if(nn)return nn(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}(),rn=(H=Object.getPrototypeOf,K=Object,function(n){return H(K(n))}),en=Object.prototype,on=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||en)},un=function(n){return null!=n&&"object"==typeof n},cn=function(n){return un(n)&&"[object Arguments]"==_(n)},an=Object.prototype,sn=an.hasOwnProperty,fn=an.propertyIsEnumerable,ln=cn(function(){return arguments}())?cn:function(n){return un(n)&&sn.call(n,"callee")&&!fn.call(n,"callee")},vn=Array.isArray,dn=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},hn=function(n){return null!=n&&dn(n.length)&&!S(n)},pn=function(){return!1},bn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r?b.Buffer:void 0;n.exports=(o?o.isBuffer:void 0)||pn})),yn=Function.prototype.toString,gn=Object.prototype.hasOwnProperty,jn=yn.call(Object),mn={};mn["[object Float32Array]"]=mn["[object Float64Array]"]=mn["[object Int8Array]"]=mn["[object Int16Array]"]=mn["[object Int32Array]"]=mn["[object Uint8Array]"]=mn["[object Uint8ClampedArray]"]=mn["[object Uint16Array]"]=mn["[object Uint32Array]"]=!0,mn["[object Arguments]"]=mn["[object Array]"]=mn["[object ArrayBuffer]"]=mn["[object Boolean]"]=mn["[object DataView]"]=mn["[object Date]"]=mn["[object Error]"]=mn["[object Function]"]=mn["[object Map]"]=mn["[object Number]"]=mn["[object Object]"]=mn["[object RegExp]"]=mn["[object Set]"]=mn["[object String]"]=mn["[object WeakMap]"]=!1;var On,wn=v((function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r&&h.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(n){}}();n.exports=i})),En=wn&&wn.isTypedArray,_n=En?function(n){return function(t){return n(t)}}(En):function(n){return un(n)&&dn(n.length)&&!!mn[_(n)]},Dn=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]},Sn=Object.prototype.hasOwnProperty,An=function(n,t,r){var e=n[t];Sn.call(n,t)&&u(e,r)&&(void 0!==r||t in n)||J(n,t,r)},Bn=/^(?:0|[1-9]\d*)$/,Tn=function(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Bn.test(n))&&n>-1&&n%1==0&&n<t},Cn=Object.prototype.hasOwnProperty,Pn=function(n,t){var r=vn(n),e=!r&&ln(n),o=!r&&!e&&bn(n),i=!r&&!e&&!o&&_n(n),u=r||e||o||i,c=u?function(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}(n.length,String):[],a=c.length;for(var s in n)!t&&!Cn.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Tn(s,a))||c.push(s);return c},In=Object.prototype.hasOwnProperty,Ln=function(n){if(!D(n))return function(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}(n);var t=on(n),r=[];for(var e in n)("constructor"!=e||!t&&In.call(n,e))&&r.push(e);return r},Un=function(n){return hn(n)?Pn(n,!0):Ln(n)},Nn=function(n){return function(n,t,r,e){var o=!r;r||(r={});for(var i=-1,u=t.length;++i<u;){var c=t[i],a=e?e(r[c],n[c],c,r,n):void 0;void 0===a&&(a=n[c]),o?J(r,c,a):An(r,c,a)}return r}(n,Un(n))},xn=function(n,t,r,e,o,i,u){var c,a=Dn(n,r),s=Dn(t,r),f=u.get(s);if(f)Q(n,r,f);else{var l=i?i(a,s,r+"",n,t,u):void 0,v=void 0===l;if(v){var d=vn(s),h=!d&&bn(s),p=!d&&!h&&_n(s);l=s,d||h||p?vn(a)?l=a:un(c=a)&&hn(c)?l=function(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t}(a):h?(v=!1,l=X(s,!0)):p?(v=!1,l=Z(s,!0)):l=[]:function(n){if(!un(n)||"[object Object]"!=_(n))return!1;var t=rn(n);if(null===t)return!0;var r=gn.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&yn.call(r)==jn}(s)||ln(s)?(l=a,ln(a)?l=Nn(a):D(a)&&!S(a)||(l=function(n){return"function"!=typeof n.constructor||on(n)?{}:tn(rn(n))}(s))):v=!1}v&&(u.set(s,l),o(l,s,e,i,u),u.delete(s)),Q(n,r,l)}},Fn=function n(t,r,e,o,i){t!==r&&W(r,(function(u,c){if(i||(i=new q),D(u))xn(t,r,c,e,n,o,i);else{var a=o?o(Dn(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),Q(t,c,a)}}),Un)},Mn=function(n){return n},zn=Math.max,$n=Date.now,Rn=function(n){var t=0,r=0;return function(){var e=$n(),o=16-(e-r);if(r=e,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(V?function(n,t){return V(n,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:Mn),kn=function(n,t){return Rn(function(n,t,r){return t=zn(void 0===t?n.length-1:t,0),function(){for(var e=arguments,o=-1,i=zn(e.length-t,0),u=Array(i);++o<i;)u[o]=e[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=e[o];return c[t]=r(u),function(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}(n,this,c)}}(n,t,Mn),n+"")},Gn=(On=function(n,t,r){Fn(n,t,r)},kn((function(n,t){var r=-1,e=t.length,o=e>1?t[e-1]:void 0,i=e>2?t[2]:void 0;for(o=On.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(n,t,r){if(!D(r))return!1;var e=typeof t;return!!("number"==e?hn(r)&&Tn(t,r.length):"string"==e&&t in r)&&u(r[t],n)}(t[0],t[1],i)&&(o=e<3?void 0:o,e=1),n=Object(n);++r<e;){var c=t[r];c&&On(n,c,r)}return n})));const Hn=(n,t,...r)=>{const e=[n,t,...r].filter(Boolean);return Gn.apply(null,e)},{reset:Kn,state:qn}=i((()=>({appearance:{colorPrimary:"purple",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedDomains:[],analyticsProviders:[],orderNotifications:{abandonedCart:{delay:0,discountPercent:0,status:{active:"DISABLED",sendCopiesTo:[]}},orderCancelled:{active:"DISABLED",sendCopiesTo:[]},orderConfirmation:{active:"DISABLED",sendCopiesTo:[]},orderShipped:{active:"DISABLED",sendCopiesTo:[]}},organization:"",placeOrderButtonSelector:null,subscriptionStatus:"INACTIVE",successBehavior:"REDIRECT_TO_SUCCESS_PAGE",successRedirectUrl:"",visibilityStatus:"ENABLED"},currentHelloPage:"",helloSettings:{allowedDomains:[],anchorElementSelector:"",cartUrlPattern:"",currencyBehavior:"ENABLED",currencyElementSelector:".money",dutyTaxEstimationBehavior:"ENABLED",excludedUrlPatterns:[],homepageUrlPattern:"",mobileLocation:"BOTTOM_RIGHT",mode:"LIVE",organization:"",peekMessageBehavior:"ENABLED",peekMessageDelay:0,productAddToCartElementSelector:"",productDescriptionElementSelector:"",productDetailUrlPattern:"",productListUrlPattern:"",productPriceElementSelector:"",productTitleElementSelector:"",restrictionBehavior:"DISABLED"},loadedConfig:!1,onlineStoreSettings:{allowedDomains:[]},organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""})));let Vn=null;const Jn=({overrideSettings:n,zonosSettings:t})=>{var r,e,o;Kn(),t&&(Vn=t),qn.appearance=Hn(qn.appearance,(null==Vn?void 0:Vn.appearanceSettings)||(null==t?void 0:t.appearanceSettings)||null,n.appearance),qn.checkoutSettings=Hn(qn.checkoutSettings,(null==Vn?void 0:Vn.checkoutSettings)||(null==t?void 0:t.checkoutSettings)||null,n.checkoutSettings),qn.helloSettings=Hn(qn.helloSettings,(null==Vn?void 0:Vn.helloSettings)||(null==t?void 0:t.helloSettings)||null,n.helloSettings),qn.onlineStoreSettings=Hn(qn.onlineStoreSettings,(null==Vn?void 0:Vn.onlineStoreSettings)||(null==t?void 0:t.onlineStoreSettings)||null,n.onlineStoreSettings),qn.loadedConfig=!0,qn.organizationName=(null===(r=null==t?void 0:t.organization)||void 0===r?void 0:r.name)||"",qn.storeId=(null===(o=null===(e=null==t?void 0:t.organization)||void 0===e?void 0:e.references)||void 0===o?void 0:o.storeId)||null,qn.currencyConverter=n.currencyConverter},Qn=()=>qn.appearance.fontFamily||"Inter";export{b as _,v as a,l as b,i as c,Jn as d,Qn as e,_ as f,D as g,un as i,Hn as m,qn as z}
@@ -1 +1 @@
1
- import{r as o,c as t,h as e,H as s}from"./p-cf8aaa17.js";import{k as i,a as n,t as l}from"./p-1f8b684a.js";import{z as a}from"./p-77a7929b.js";import{c as r}from"./p-b4b7f705.js";import{g as h}from"./p-5883217a.js";const d=class{constructor(e){o(this,e),this.closeDialog=t(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(a.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||this.setShowCountrySelect(!1)}render(){var o;const{countryLandedCost:t,selectedCountryCode:d}=n,c=(null==t?void 0:t.dutyDeminimus)?i(t.dutyDeminimus):null,m="CA"===n.selectedCountryCode?i(40):c,g=m?`${l("Spend")} ${m} ${l("duty free")}`:l("Duties will apply to all orders"),f=(null==t?void 0:t.vatTaxDeminimus)?i(t.vatTaxDeminimus):null,u="CA"===n.selectedCountryCode?i(150):f,p=u?`${l("Spend")} ${u} ${l("tax free")}`:l("Taxes will apply to all orders"),b=this.animateFromLeftOverride||this.dialogRef&&h(this.dialogRef),w=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:z}=n,v=`${l("Welcome to")} ${a.organizationName}!`,C=(null===(o=z.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||l("Know about duties and taxes before you buy. Shop with confidence!"),x=this.getCurrentPageEnum(),k=z.filter((o=>o.pageName===x));return e(s,{class:"zonos--elements"},e("div",{"aria-hidden":"true",class:r(["zonos--hello-dialog",b&&"zonos--hello-dialog-animate-from-left",w&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},e("div",{class:"zonos--hello-dialog-content"},e("zonos-button",{class:"zonos--close-button",icon:e("zonos-icon",{content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),e("div",null,this.showCountrySelect?e("zonos-country-select",{closeCountrySelect:()=>this.setShowCountrySelect(!1)}):e("zonos-v-stack",{spacing:24},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:d}),e("zonos-v-stack",{class:"zonos--hello-dialog-header",spacing:4},e("zonos-text",{type:"boldSubheader"},v),e("zonos-text",{color:"gray-800"},C)),e("zonos-v-stack",{spacing:8},this.restrictedItems.map((o=>{var t;return o&&e("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(t=o.itemRestrictions)||void 0===t?void 0:t.map((o=>e("zonos-text",{color:"red-800"},null==o?void 0:o.note))))})),e("zonos-card",{spacing:"12px"},e("zonos-v-stack",{spacing:12},e("div",{class:"zonos--flex-message"},e("zonos-icon",{content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,g)),e("div",{class:"zonos--flex-message"},e("zonos-icon",{content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,p)))),k.map((o=>e("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message}))))))),!this.showCountrySelect&&e("zonos-hello-dialog-footer",{appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o)})))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};d.style=":host{font-family:var(--font-family, Inter), Inter;display:block}:host *{font-family:var(--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--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:unset;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:unset;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{d as zonos_hello_dialog}
1
+ import{r as o,c as t,h as e,H as s}from"./p-956efa27.js";import{k as i,a as n,t as l}from"./p-bbb154a9.js";import{z as a}from"./p-089ba905.js";import{c as r}from"./p-b4b7f705.js";import{g as h}from"./p-5883217a.js";const d=class{constructor(e){o(this,e),this.closeDialog=t(this,"closeDialog",7),this.clickOutsideDialogHandler=o=>{!o.composedPath().includes(this.dialogRef)&&this.isOpen&&this.setIsOpen(!1)},this.getCurrentPageEnum=()=>{switch(a.currentHelloPage){case"home":return"hello_homepage";case"cart":return"hello_cart";case"productList":return"hello_item_list";case"productDetail":return"hello_item_details";default:return null}},this.setShowCountrySelect=async o=>{this.showCountrySelect=o},this.isOpen=!1,this.setIsOpen=()=>{},this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettings=void 0,this.restrictedItems=[],this.welcomeMessage="Welcome to our Demo App!",this.showCountrySelect=!1}globalClickHandler(o){this.clickOutsideDialogHandler(o)}isOpenHandler(o){o||this.setShowCountrySelect(!1)}render(){var o;const{countryLandedCost:t,selectedCountryCode:d}=n,c=(null==t?void 0:t.dutyDeminimus)?i(t.dutyDeminimus):null,m="CA"===n.selectedCountryCode?i(40):c,g=m?`${l("Spend")} ${m} ${l("duty free")}`:l("Duties will apply to all orders"),f=(null==t?void 0:t.vatTaxDeminimus)?i(t.vatTaxDeminimus):null,u="CA"===n.selectedCountryCode?i(150):f,p=u?`${l("Spend")} ${u} ${l("tax free")}`:l("Taxes will apply to all orders"),b=this.animateFromLeftOverride||this.dialogRef&&h(this.dialogRef),w=this.dialogRef&&(()=>{const o=this.dialogRef.getBoundingClientRect();return o.top>=window.innerHeight-o.bottom})(),{customMessages:z}=n,v=`${l("Welcome to")} ${a.organizationName}!`,C=(null===(o=z.find((o=>"hello_default"===o.pageName)))||void 0===o?void 0:o.message)||l("Know about duties and taxes before you buy. Shop with confidence!"),x=this.getCurrentPageEnum(),k=z.filter((o=>o.pageName===x));return e(s,{class:"zonos--elements"},e("div",{"aria-hidden":"true",class:r(["zonos--hello-dialog",b&&"zonos--hello-dialog-animate-from-left",w&&"zonos--hello-dialog-animate-from-bottom",!!this.mobileLocationOverride&&"zonos--hello-dialog-mobile-override",this.isOpen&&"zonos--hello-dialog-open"]),ref:o=>o&&(this.dialogRef=o)},e("div",{class:"zonos--hello-dialog-content"},e("zonos-button",{class:"zonos--close-button",icon:e("zonos-icon",{content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:()=>this.setIsOpen(!1)}),e("div",null,this.showCountrySelect?e("zonos-country-select",{closeCountrySelect:()=>this.setShowCountrySelect(!1)}):e("zonos-v-stack",{spacing:24},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:d}),e("zonos-v-stack",{class:"zonos--hello-dialog-header",spacing:4},e("zonos-text",{type:"boldSubheader"},v),e("zonos-text",{color:"gray-800"},C)),e("zonos-v-stack",{spacing:8},this.restrictedItems.map((o=>{var t;return o&&e("zonos-banner",{bannerTitle:o.name,intent:"error"},null===(t=o.itemRestrictions)||void 0===t?void 0:t.map((o=>e("zonos-text",{color:"red-800"},null==o?void 0:o.note))))})),e("zonos-card",{spacing:"12px"},e("zonos-v-stack",{spacing:12},e("div",{class:"zonos--flex-message"},e("zonos-icon",{content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M9.66666 4.16667C9.20642 4.16667 8.83333 4.53976 8.83333 5V5.83333H12.1667V5C12.1667 4.53976 11.7936 4.16667 11.3333 4.16667H9.66666ZM13.8333 5.83333V5C13.8333 3.61929 12.714 2.5 11.3333 2.5H9.66666C8.28595 2.5 7.16666 3.61929 7.16666 5V5.83333H6.77759C5.44832 5.83333 4.35149 6.87354 4.2811 8.20094L3.92756 14.8676C3.85169 16.2983 4.99133 17.5 6.42405 17.5H14.5759C16.0087 17.5 17.1483 16.2983 17.0724 14.8676L16.7189 8.20094C16.6485 6.87354 15.5517 5.83333 14.2224 5.83333H13.8333ZM12.1667 7.5V8.33333C12.1667 8.79357 12.5398 9.16667 13 9.16667C13.4602 9.16667 13.8333 8.79357 13.8333 8.33333V7.5H14.2224C14.6655 7.5 15.0311 7.84674 15.0546 8.2892L15.4081 14.9559C15.4334 15.4328 15.0535 15.8333 14.5759 15.8333H6.42405C5.94648 15.8333 5.5666 15.4328 5.59189 14.9559L5.94542 8.2892C5.96889 7.84674 6.3345 7.5 6.77759 7.5H7.16666V8.33333C7.16666 8.79357 7.53976 9.16667 7.99999 9.16667C8.46023 9.16667 8.83333 8.79357 8.83333 8.33333V7.5H12.1667Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,g)),e("div",{class:"zonos--flex-message"},e("zonos-icon",{content:'<svg width="21" height="20" viewBox="0 0 21 20" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.16666 5.83301C2.16666 4.4523 3.28594 3.33301 4.66666 3.33301H16.3333C17.714 3.33301 18.8333 4.4523 18.8333 5.83301V14.1663C18.8333 15.5471 17.714 16.6663 16.3333 16.6663H4.66666C3.28594 16.6663 2.16666 15.5471 2.16666 14.1663V5.83301ZM4.66666 4.99967C4.20642 4.99967 3.83332 5.37277 3.83332 5.83301V14.1663C3.83332 14.6266 4.20642 14.9997 4.66666 14.9997H16.3333C16.7936 14.9997 17.1667 14.6266 17.1667 14.1663V5.83301C17.1667 5.37277 16.7936 4.99967 16.3333 4.99967H4.66666ZM6.33332 8.33301C6.79356 8.33301 7.16666 8.7061 7.16666 9.16634V10.833C7.16666 11.2932 6.79356 11.6663 6.33332 11.6663C5.87309 11.6663 5.49999 11.2932 5.49999 10.833V9.16634C5.49999 8.7061 5.87309 8.33301 6.33332 8.33301ZM8.83332 9.99967C8.83332 9.0792 9.57952 8.33301 10.5 8.33301C11.4205 8.33301 12.1667 9.0792 12.1667 9.99967C12.1667 10.9201 11.4205 11.6663 10.5 11.6663C9.57952 11.6663 8.83332 10.9201 8.83332 9.99967ZM14.6667 8.33301C15.1269 8.33301 15.5 8.7061 15.5 9.16634V10.833C15.5 11.2932 15.1269 11.6663 14.6667 11.6663C14.2064 11.6663 13.8333 11.2932 13.8333 10.833V9.16634C13.8333 8.7061 14.2064 8.33301 14.6667 8.33301Z" fill="#4D505A"/>\n</svg>\n'}),e("zonos-text",null,p)))),k.map((o=>e("zonos-custom-message",{icon:'<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 4.5C2.25 3.25736 3.25736 2.25 4.5 2.25H13.5C14.7426 2.25 15.75 3.25736 15.75 4.5V10.5C15.75 11.7426 14.7426 12.75 13.5 12.75H8.25C8.01393 12.75 7.79164 12.8611 7.65 13.05L6.3 14.85C5.87508 15.4166 5.2082 15.75 4.5 15.75C3.25736 15.75 2.25 14.7426 2.25 13.5V4.5ZM4.5 3.75C4.08579 3.75 3.75 4.08579 3.75 4.5V13.5C3.75 13.9142 4.08579 14.25 4.5 14.25C4.73607 14.25 4.95836 14.1389 5.1 13.95L6.45 12.15C6.87492 11.5834 7.5418 11.25 8.25 11.25H13.5C13.9142 11.25 14.25 10.9142 14.25 10.5V4.5C14.25 4.08579 13.9142 3.75 13.5 3.75H4.5ZM5.25 6C5.25 5.58579 5.58579 5.25 6 5.25H12C12.4142 5.25 12.75 5.58579 12.75 6C12.75 6.41421 12.4142 6.75 12 6.75H6C5.58579 6.75 5.25 6.41421 5.25 6ZM5.25 9C5.25 8.58579 5.58579 8.25 6 8.25H8.25C8.66421 8.25 9 8.58579 9 9C9 9.41421 8.66421 9.75 8.25 9.75H6C5.58579 9.75 5.25 9.41421 5.25 9Z" fill="#4D505A"/>\n</svg>\n',message:o.message}))))))),!this.showCountrySelect&&e("zonos-hello-dialog-footer",{appearanceSettings:this.appearanceSettings,setShowCountrySelect:o=>this.setShowCountrySelect(o)})))}static get assetsDirs(){return["assets"]}static get watchers(){return{isOpen:["isOpenHandler"]}}};d.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}:host .zonos--hello-dialog{position:absolute;background:var(--amino-surface-color);width:100vw;max-width:430px;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;max-height:600px;border-radius:var(--amino-radius-12);outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);overflow-y:auto;top:-2px;right:-2px;opacity:0;-webkit-transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out;transition:opacity 0.3s ease-in-out, transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;-webkit-transform:scale(0);transform:scale(0);-webkit-transform-origin:top right;transform-origin:top right;z-index:1001}:host .zonos--hello-dialog .zonos--hello-dialog-header{text-align:center}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:top left;transform-origin:top left;right:unset;left:-2px}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom{-webkit-transform-origin:bottom right;transform-origin:bottom right;bottom:calc(100% - 32px);top:unset}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-bottom.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom left;transform-origin:bottom left}:host .zonos--hello-dialog::-webkit-scrollbar{width:12px;height:12px}:host .zonos--hello-dialog::-webkit-scrollbar-track{background:#f5f5f5;border-top-right-radius:var(--amino-radius-12);border-bottom-right-radius:var(--amino-radius-12)}:host .zonos--hello-dialog::-webkit-scrollbar-thumb{border-radius:10px;background:#ccc;border:4px solid transparent;background-clip:content-box}:host .zonos--hello-dialog::-webkit-scrollbar-thumb:hover{background:#999}:host .zonos--hello-dialog .zonos--animate-content{opacity:0;height:0;-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out}:host .zonos--hello-dialog .zonos--show-animate-content{opacity:1;height:100%}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scale(1);transform:scale(1)}:host .zonos--hello-dialog .zonos--close-button{position:absolute;right:var(--amino-space-8);top:var(--amino-space-8);width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;z-index:10}:host .zonos--hello-dialog .zonos--close-button:hover{background:var(--amino-hover-color);border-radius:var(--amino-radius-6)}:host .zonos--hello-dialog .zonos--hello-dialog-content{padding:var(--amino-space-16)}:host .zonos--hello-dialog .zonos--hello-dialog-content .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:32px;height:24px}:host .zonos--hello-dialog .zonos--flex-message{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;gap:var(--amino-space-12)}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:unset;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-mobile-override.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}@media (max-width: 768px){:host .zonos--hello-dialog{position:-webkit-sticky;position:sticky;top:unset;left:unset;right:unset;bottom:0;width:100vw;max-width:100vw;max-height:unset;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;-webkit-transform:scaleY(0);transform:scaleY(0);border-radius:0;-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-animate-from-left{-webkit-transform-origin:bottom;transform-origin:bottom}:host .zonos--hello-dialog.zonos--hello-dialog-open{opacity:1;-webkit-transform:scaleY(1);transform:scaleY(1)}}";export{d as zonos_hello_dialog}
@@ -0,0 +1,2 @@
1
+ var __extends=this&&this.__extends||function(){var r=function(n,e){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var e in n)if(Object.prototype.hasOwnProperty.call(n,e))r[e]=n[e]};return r(n,e)};return function(n,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");r(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}}();var __awaiter=this&&this.__awaiter||function(r,n,e,t){function i(r){return r instanceof e?r:new e((function(n){n(r)}))}return new(e||(e=Promise))((function(e,f){function a(r){try{o(t.next(r))}catch(r){f(r)}}function u(r){try{o(t["throw"](r))}catch(r){f(r)}}function o(r){r.done?e(r.value):i(r.value).then(a,u)}o((t=t.apply(r,n||[])).next())}))};var __generator=this&&this.__generator||function(r,n){var e={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},t,i,f,a;return a={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function u(r){return function(n){return o([r,n])}}function o(u){if(t)throw new TypeError("Generator is already executing.");while(a&&(a=0,u[0]&&(e=0)),e)try{if(t=1,i&&(f=u[0]&2?i["return"]:u[0]?i["throw"]||((f=i["return"])&&f.call(i),0):i.next)&&!(f=f.call(i,u[1])).done)return f;if(i=0,f)u=[u[0]&2,f.value];switch(u[0]){case 0:case 1:f=u;break;case 4:e.label++;return{value:u[1],done:false};case 5:e.label++;i=u[1];u=[0];continue;case 7:u=e.ops.pop();e.trys.pop();continue;default:if(!(f=e.trys,f=f.length>0&&f[f.length-1])&&(u[0]===6||u[0]===2)){e=0;continue}if(u[0]===3&&(!f||u[1]>f[0]&&u[1]<f[3])){e.label=u[1];break}if(u[0]===6&&e.label<f[1]){e.label=f[1];f=u;break}if(f&&e.label<f[2]){e.label=f[2];e.ops.push(u);break}if(f[2])e.ops.pop();e.trys.pop();continue}u=n.call(r,e)}catch(r){u=[6,r];i=0}finally{t=f=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,n,e){if(e||arguments.length===2)for(var t=0,i=n.length,f;t<i;t++){if(f||!(t in n)){if(!f)f=Array.prototype.slice.call(n,0,t);f[t]=n[t]}}return r.concat(f||Array.prototype.slice.call(n))};System.register([],(function(r,n){"use strict";return{execute:function(){var e=this;var t="zonos-elements";var i;var f;var a=false;var u=null;var o=false;var v=r("a",(function(r){var n=new URL(r,Ur.t);return n.origin!==Lr.location.origin?n.href:n.pathname}));var l=function(r,n){if(n===void 0){n=""}{return function(){return}}};var c=function(r,n){{return function(){return}}};var s="{visibility:hidden}.hydrated{visibility:inherit}";var d="slot-fb{display:contents}slot-fb[hidden]{display:none}";var h={};var y="http://www.w3.org/2000/svg";var p="http://www.w3.org/1999/xhtml";var w=function(r){return r!=null};var b=function(r){r=typeof r;return r==="object"||r==="function"};function m(r){var n,e,t;return(t=(e=(n=r.head)===null||n===void 0?void 0:n.querySelector('meta[name="csp-nonce"]'))===null||e===void 0?void 0:e.getAttribute("content"))!==null&&t!==void 0?t:undefined}var _=r("h",(function(r,n){var e=[];for(var t=2;t<arguments.length;t++){e[t-2]=arguments[t]}var i=null;var f=null;var a=false;var u=false;var o=[];var v=function(n){for(var e=0;e<n.length;e++){i=n[e];if(Array.isArray(i)){v(i)}else if(i!=null&&typeof i!=="boolean"){if(a=typeof r!=="function"&&!b(i)){i=String(i)}if(a&&u){o[o.length-1].i+=i}else{o.push(a?g(null,i):i)}u=a}}};v(e);if(n){if(n.key){f=n.key}{var l=n.className||n.class;if(l){n.class=typeof l!=="object"?l:Object.keys(l).filter((function(r){return l[r]})).join(" ")}}}if(typeof r==="function"){return r(n===null?{}:n,o,j)}var c=g(r,null);c.u=n;if(o.length>0){c.o=o}{c.v=f}return c}));var g=function(r,n){var e={l:0,h:r,i:n,p:null,o:null};{e.u=null}{e.v=null}return e};var $=r("H",{});var S=function(r){return r&&r.h===$};var j={forEach:function(r,n){return r.map(O).forEach(n)},map:function(r,n){return r.map(O).map(n).map(k)}};var O=function(r){return{vattrs:r.u,vchildren:r.o,vkey:r.v,vname:r.m,vtag:r.h,vtext:r.i}};var k=function(r){if(typeof r.vtag==="function"){var n=Object.assign({},r.vattrs);if(r.vkey){n.key=r.vkey}if(r.vname){n.name=r.vname}return _.apply(void 0,__spreadArray([r.vtag,n],r.vchildren||[],false))}var e=g(r.vtag,r.vtext);e.u=r.vattrs;e.o=r.vchildren;e.v=r.vkey;e.m=r.vname;return e};var A=function(r,n){if(r!=null&&!b(r)){if(n&4){return r==="false"?false:r===""||!!r}if(n&2){return parseFloat(r)}if(n&1){return String(r)}return r}return r};var x=r("d",(function(r){return Or(r).$hostElement$}));var C=r("c",(function(r,n,e){var t=x(r);return{emit:function(r){return M(t,n,{bubbles:!!(e&4),composed:!!(e&2),cancelable:!!(e&1),detail:r})}}}));var M=function(r,n,e){var t=Ur.ce(n,e);r.dispatchEvent(t);return t};var E=new WeakMap;var P=function(r,n,e){var t=Pr.get(r);if(Fr&&e){t=t||new CSSStyleSheet;if(typeof t==="string"){t=n}else{t.replaceSync(n)}}else{t=n}Pr.set(r,t)};var L=function(r,n,e){var t;var i=U(n);var f=Pr.get(i);r=r.nodeType===11?r:Tr;if(f){if(typeof f==="string"){r=r.head||r;var a=E.get(r);var u=void 0;if(!a){E.set(r,a=new Set)}if(!a.has(i)){{u=Tr.createElement("style");u.innerHTML=f;var o=(t=Ur._)!==null&&t!==void 0?t:m(Tr);if(o!=null){u.setAttribute("nonce",o)}r.insertBefore(u,r.querySelector("link"))}if(n.l&4){u.innerHTML+=d}if(a){a.add(i)}}}else if(!r.adoptedStyleSheets.includes(f)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[f],false)}}return i};var T=function(r){var n=r.$;var e=r.$hostElement$;var t=n.l;var i=l("attachStyles",n.S);var f=L(e.shadowRoot?e.shadowRoot:e.getRootNode(),n);if(t&10){e["s-sc"]=f;e.classList.add(f+"-h");if(t&2){e.classList.add(f+"-s")}}i()};var U=function(r,n){return"sc-"+r.S};var R=function(r,n,e,t,i,f){if(e!==t){var a=xr(r,n);var u=n.toLowerCase();if(n==="class"){var o=r.classList;var v=N(e);var l=N(t);o.remove.apply(o,v.filter((function(r){return r&&!l.includes(r)})));o.add.apply(o,l.filter((function(r){return r&&!v.includes(r)})))}else if(n==="style"){{for(var c in e){if(!t||t[c]==null){if(c.includes("-")){r.style.removeProperty(c)}else{r.style[c]=""}}}}for(var c in t){if(!e||t[c]!==e[c]){if(c.includes("-")){r.style.setProperty(c,t[c])}else{r.style[c]=t[c]}}}}else if(n==="key");else if(n==="ref"){if(t){t(r)}}else if(!a&&n[0]==="o"&&n[1]==="n"){if(n[2]==="-"){n=n.slice(3)}else if(xr(Lr,u)){n=u.slice(2)}else{n=u[2]+n.slice(3)}if(e||t){var s=n.endsWith(W);n=n.replace(D,"");if(e){Ur.rel(r,n,e,s)}if(t){Ur.ael(r,n,t,s)}}}else{var d=b(t);if((a||d&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var h=t==null?"":t;if(n==="list"){a=false}else if(e==null||r[n]!=h){r[n]=h}}else{r[n]=t}}catch(r){}}if(t==null||t===false){if(t!==false||r.getAttribute(n)===""){{r.removeAttribute(n)}}}else if((!a||f&4||i)&&!d){t=t===true?"":t;{r.setAttribute(n,t)}}}}};var F=/\s/;var N=function(r){return!r?[]:r.split(F)};var W="Capture";var D=new RegExp(W+"$");var H=function(r,n,e,t){var i=n.p.nodeType===11&&n.p.host?n.p.host:n.p;var f=r&&r.u||h;var a=n.u||h;{for(t in f){if(!(t in a)){R(i,t,f[t],undefined,e,n.l)}}}for(t in a){R(i,t,f[t],a[t],e,n.l)}};var q=function(r,n,e,t){var u=n.o[e];var o=0;var v;var l;if(u.i!==null){v=u.p=Tr.createTextNode(u.i)}else{if(!a){a=u.h==="svg"}v=u.p=Tr.createElementNS(a?y:p,u.h);if(a&&u.h==="foreignObject"){a=false}{H(null,u,a)}if(w(i)&&v["s-si"]!==i){v.classList.add(v["s-si"]=i)}if(u.o){for(o=0;o<u.o.length;++o){l=q(r,u,o);if(l){v.appendChild(l)}}}{if(u.h==="svg"){a=false}else if(v.tagName==="foreignObject"){a=true}}}v["s-hn"]=f;return v};var z=function(r,n,e,t,i,a){var u=r;var o;if(u.shadowRoot&&u.tagName===f){u=u.shadowRoot}for(;i<=a;++i){if(t[i]){o=q(null,e,i);if(o){t[i].p=o;u.insertBefore(o,n)}}}};var G=function(r,n,e){for(var t=n;t<=e;++t){var i=r[t];if(i){var f=i.p;J(i);if(f){f.remove()}}}};var I=function(r,n,e,t,i){if(i===void 0){i=false}var f=0;var a=0;var u=0;var o=0;var v=n.length-1;var l=n[0];var c=n[v];var s=t.length-1;var d=t[0];var h=t[s];var y;var p;while(f<=v&&a<=s){if(l==null){l=n[++f]}else if(c==null){c=n[--v]}else if(d==null){d=t[++a]}else if(h==null){h=t[--s]}else if(V(l,d,i)){B(l,d,i);l=n[++f];d=t[++a]}else if(V(c,h,i)){B(c,h,i);c=n[--v];h=t[--s]}else if(V(l,h,i)){B(l,h,i);r.insertBefore(l.p,c.p.nextSibling);l=n[++f];h=t[--s]}else if(V(c,d,i)){B(c,d,i);r.insertBefore(c.p,l.p);c=n[--v];d=t[++a]}else{u=-1;{for(o=f;o<=v;++o){if(n[o]&&n[o].v!==null&&n[o].v===d.v){u=o;break}}}if(u>=0){p=n[u];if(p.h!==d.h){y=q(n&&n[a],e,u)}else{B(p,d,i);n[u]=undefined;y=p.p}d=t[++a]}else{y=q(n&&n[a],e,a);d=t[++a]}if(y){{l.p.parentNode.insertBefore(y,l.p)}}}}if(f>v){z(r,t[s+1]==null?null:t[s+1].p,e,t,a,s)}else if(a>s){G(n,f,v)}};var V=function(r,n,e){if(e===void 0){e=false}if(r.h===n.h){if(!e){return r.v===n.v}return true}return false};var B=function(r,n,e){if(e===void 0){e=false}var t=n.p=r.p;var i=r.o;var f=n.o;var u=n.h;var o=n.i;if(o===null){{a=u==="svg"?true:u==="foreignObject"?false:a}{if(u==="slot");else{H(r,n,a)}}if(i!==null&&f!==null){I(t,i,n,f,e)}else if(f!==null){if(r.i!==null){t.textContent=""}z(t,null,n,f,0,f.length-1)}else if(i!==null){G(i,0,i.length-1)}if(a&&u==="svg"){a=false}}else if(r.i!==o){t.data=o}};var J=function(r){{r.u&&r.u.ref&&r.u.ref(null);r.o&&r.o.map(J)}};var K=function(r,n,e){if(e===void 0){e=false}var t=r.$hostElement$;var a=r.j||g(null,null);var u=S(n)?n:_(null,null,n);f=t.tagName;if(e&&u.u){for(var o=0,v=Object.keys(u.u);o<v.length;o++){var l=v[o];if(t.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){u.u[l]=t[l]}}}u.h=null;u.l|=4;r.j=u;u.p=a.p=t.shadowRoot||t;{i=t["s-sc"]}B(a,u,e)};var Q=function(r,n){if(n&&!r.O&&n["s-p"]){n["s-p"].push(new Promise((function(n){return r.O=n})))}};var X=function(r,n){{r.l|=16}if(r.l&4){r.l|=512;return}Q(r,r.k);var e=function(){return Y(r,n)};return Gr(e)};var Y=function(r,n){var e=l("scheduleUpdate",r.$.S);var t=r.A;var i;if(n){{r.l|=256;if(r.C){r.C.map((function(r){var n=r[0],e=r[1];return ur(t,n,e)}));r.C=undefined}}{i=ur(t,"componentWillLoad")}}e();return Z(i,(function(){return nr(r,t,n)}))};var Z=function(r,n){return rr(r)?r.then(n):n()};var rr=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var nr=function(r,n,t){return __awaiter(e,void 0,void 0,(function(){var e,i,f,a,u,o,v;return __generator(this,(function(c){i=r.$hostElement$;f=l("update",r.$.S);a=i["s-rc"];if(t){T(r)}u=l("render",r.$.S);{er(r,n,i,t)}if(a){a.map((function(r){return r()}));i["s-rc"]=undefined}u();f();{o=(e=i["s-p"])!==null&&e!==void 0?e:[];v=function(){return ir(r)};if(o.length===0){v()}else{Promise.all(o).then(v);r.l|=4;o.length=0}}return[2]}))}))};var er=function(r,n,e,t){try{u=n;n=n.render();{r.l&=~16}{r.l|=2}{{{K(r,n,t)}}}}catch(n){Cr(n,r.$hostElement$)}u=null;return null};var tr=r("g",(function(){return u}));var ir=function(r){var n=r.$.S;var e=r.$hostElement$;var t=l("postUpdate",n);var i=r.A;var f=r.k;{ur(i,"componentDidRender")}if(!(r.l&64)){r.l|=64;{or(e)}{ur(i,"componentDidLoad")}t();{r.M(e);if(!f){ar()}}}else{t()}{r.P(e)}{if(r.O){r.O();r.O=undefined}if(r.l&512){zr((function(){return X(r,false)}))}r.l&=~(4|512)}};var fr=r("f",(function(r){{var n=Or(r);var e=n.$hostElement$.isConnected;if(e&&(n.l&(2|16))===2){X(n,false)}return e}}));var ar=function(r){{or(Tr.documentElement)}zr((function(){return M(Lr,"appload",{detail:{namespace:t}})}))};var ur=function(r,n,e){if(r&&r[n]){try{return r[n](e)}catch(r){Cr(r)}}return undefined};var or=function(r){return r.classList.add("hydrated")};var vr=function(r,n){return Or(r).L.get(n)};var lr=function(r,n,e,t){var i=Or(r);var f=i.$hostElement$;var a=i.L.get(n);var u=i.l;var o=i.A;e=A(e,t.T[n][0]);var v=Number.isNaN(a)&&Number.isNaN(e);var l=e!==a&&!v;if((!(u&8)||a===undefined)&&l){i.L.set(n,e);if(o){if(t.U&&u&128){var c=t.U[n];if(c){c.map((function(r){try{o[r](e,a,n)}catch(r){Cr(r,f)}}))}}if((u&(2|16))===2){X(i,false)}}}};var cr=function(r,n,e){var t;var i=r.prototype;if(n.T){if(r.watchers){n.U=r.watchers}var f=Object.entries(n.T);f.map((function(r){var t=r[0],f=r[1][0];if(f&31||e&2&&f&32){Object.defineProperty(i,t,{get:function(){return vr(this,t)},set:function(r){lr(this,t,r,n)},configurable:true,enumerable:true})}else if(e&1&&f&64){Object.defineProperty(i,t,{value:function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var e;var i=Or(this);return(e=i===null||i===void 0?void 0:i.R)===null||e===void 0?void 0:e.then((function(){var n;return(n=i.A)===null||n===void 0?void 0:n[t].apply(n,r)}))}})}}));if(e&1){var a=new Map;i.attributeChangedCallback=function(r,e,t){var f=this;Ur.jmp((function(){var u;var o=a.get(r);if(f.hasOwnProperty(o)){t=f[o];delete f[o]}else if(i.hasOwnProperty(o)&&typeof f[o]==="number"&&f[o]==t){return}else if(o==null){var v=Or(f);var l=v===null||v===void 0?void 0:v.l;if(l&&!(l&8)&&l&128&&t!==e){var c=v.A;var s=(u=n.U)===null||u===void 0?void 0:u[r];s===null||s===void 0?void 0:s.forEach((function(n){if(c[n]!=null){c[n].call(c,t,e,r)}}))}return}f[o]=t===null&&typeof f[o]==="boolean"?false:t}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((t=n.U)!==null&&t!==void 0?t:{}),true),f.filter((function(r){var n=r[0],e=r[1];return e[0]&15})).map((function(r){var n=r[0],e=r[1];var t=e[1]||n;a.set(t,n);return t})),true)))}}return r};var sr=function(r,n,t,i){return __awaiter(e,void 0,void 0,(function(){var r,e,i,f,a,u,o,v;return __generator(this,(function(s){switch(s.label){case 0:if(!((n.l&32)===0))return[3,3];n.l|=32;r=Er(t);if(!r.then)return[3,2];e=c();return[4,r];case 1:r=s.sent();e();s.label=2;case 2:if(!r.isProxied){{t.U=r.watchers}cr(r,t,2);r.isProxied=true}i=l("createInstance",t.S);{n.l|=8}try{new r(n)}catch(r){Cr(r)}{n.l&=~8}{n.l|=128}i();if(r.style){f=r.style;a=U(t);if(!Pr.has(a)){u=l("registerStyles",t.S);P(a,f,!!(t.l&1));u()}}s.label=3;case 3:o=n.k;v=function(){return X(n,true)};if(o&&o["s-rc"]){o["s-rc"].push(v)}else{v()}return[2]}}))}))};var dr=function(r){};var hr=function(r){if((Ur.l&1)===0){var n=Or(r);var e=n.$;var t=l("connectedCallback",e.S);if(!(n.l&1)){n.l|=1;{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){Q(n,n.k=i);break}}}if(e.T){Object.entries(e.T).map((function(n){var e=n[0],t=n[1][0];if(t&31&&r.hasOwnProperty(e)){var i=r[e];delete r[e];r[e]=i}}))}{sr(r,n,e)}}else{mr(r,n,e.F);if(n===null||n===void 0?void 0:n.A);else if(n===null||n===void 0?void 0:n.N){n.N.then((function(){return dr()}))}}t()}};var yr=function(r){{ur(r,"disconnectedCallback")}};var pr=function(r){return __awaiter(e,void 0,void 0,(function(){var n;return __generator(this,(function(e){if((Ur.l&1)===0){n=Or(r);{if(n.W){n.W.map((function(r){return r()}));n.W=undefined}}if(n===null||n===void 0?void 0:n.A){yr(n.A)}else if(n===null||n===void 0?void 0:n.N){n.N.then((function(){return yr(n.A)}))}}return[2]}))}))};var wr=r("b",(function(r,n){if(n===void 0){n={}}var e;var t=l();var i=[];var f=n.exclude||[];var a=Lr.customElements;var u=Tr.head;var o=u.querySelector("meta[charset]");var v=Tr.createElement("style");var c=[];var h;var y=true;Object.assign(Ur,n);Ur.t=new URL(n.resourcesUrl||"./",Tr.baseURI).href;var p=false;r.map((function(r){r[1].map((function(n){var e;var t={l:n[0],S:n[1],T:n[2],F:n[3]};if(t.l&4){p=true}{t.T=n[2]}{t.F=n[3]}{t.U=(e=n[4])!==null&&e!==void 0?e:{}}var u=t.S;var o=function(r){__extends(n,r);function n(n){var e=r.call(this,n)||this;n=e;Ar(n,t);if(t.l&1){{{n.attachShadow({mode:"open"})}}}return e}n.prototype.connectedCallback=function(){var r=this;if(h){clearTimeout(h);h=null}if(y){c.push(this)}else{Ur.jmp((function(){return hr(r)}))}};n.prototype.disconnectedCallback=function(){var r=this;Ur.jmp((function(){return pr(r)}))};n.prototype.componentOnReady=function(){return Or(this).N};return n}(HTMLElement);t.D=r[0];if(!f.includes(u)&&!a.get(u)){i.push(u);a.define(u,cr(o,t,1))}}))}));if(p){v.innerHTML+=d}{v.innerHTML+=i+s}if(v.innerHTML.length){v.setAttribute("data-styles","");var w=(e=Ur._)!==null&&e!==void 0?e:m(Tr);if(w!=null){v.setAttribute("nonce",w)}u.insertBefore(v,o?o.nextSibling:u.firstChild)}y=false;if(c.length){c.map((function(r){return r.connectedCallback()}))}else{{Ur.jmp((function(){return h=setTimeout(ar,30)}))}}t()}));var br=r("F",(function(r,n){return n}));var mr=function(r,n,e,t){if(e){e.map((function(e){var t=e[0],i=e[1],f=e[2];var a=gr(r,t);var u=_r(n,f);var o=$r(t);Ur.ael(a,i,u,o);(n.W=n.W||[]).push((function(){return Ur.rel(a,i,u,o)}))}))}};var _r=function(r,n){return function(e){try{{if(r.l&256){r.A[n](e)}else{(r.C=r.C||[]).push([n,e])}}}catch(r){Cr(r)}}};var gr=function(r,n){if(n&4)return Tr;if(n&8)return Lr;if(n&16)return Tr.body;return r};var $r=function(r){return(r&2)!==0};var Sr=r("s",(function(r){return Ur._=r}));var jr=new WeakMap;var Or=function(r){return jr.get(r)};var kr=r("r",(function(r,n){return jr.set(n.A=r,n)}));var Ar=function(r,n){var e={l:0,$hostElement$:r,$:n,L:new Map};{e.R=new Promise((function(r){return e.P=r}))}{e.N=new Promise((function(r){return e.M=r}));r["s-p"]=[];r["s-rc"]=[]}mr(r,e,n.F);return jr.set(r,e)};var xr=function(r,n){return n in r};var Cr=function(r,n){return(0,console.error)(r,n)};var Mr=new Map;var Er=function(r,e,t){var i=r.S.replace(/-/g,"_");var f=r.D;var a=Mr.get(f);if(a){return a[i]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return n.import("./".concat(f,".entry.js").concat("")).then((function(r){{Mr.set(f,r)}return r[i]}),Cr)};var Pr=new Map;var Lr=typeof window!=="undefined"?window:{};var Tr=Lr.document||{head:{}};var Ur={l:0,t:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,n,e,t){return r.addEventListener(n,e,t)},rel:function(r,n,e,t){return r.removeEventListener(n,e,t)},ce:function(r,n){return new CustomEvent(r,n)}};var Rr=r("p",(function(r){return Promise.resolve(r)}));var Fr=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var Nr=[];var Wr=[];var Dr=function(r,n){return function(e){r.push(e);if(!o){o=true;if(n&&Ur.l&4){zr(qr)}else{Ur.raf(qr)}}}};var Hr=function(r){for(var n=0;n<r.length;n++){try{r[n](performance.now())}catch(r){Cr(r)}}r.length=0};var qr=function(){Hr(Nr);{Hr(Wr);if(o=Nr.length>0){Ur.raf(qr)}}};var zr=function(r){return Rr().then(r)};var Gr=Dr(Wr,true)}}}));
@@ -0,0 +1 @@
1
+ import{r as s,h as t,H as a}from"./p-956efa27.js";import{e as o}from"./p-089ba905.js";import{c as r}from"./p-b4b7f705.js";const i=class{constructor(t){s(this,t),this.actions=void 0,this.class=void 0,this.footerActions=void 0,this.footerContent=void 0,this.footerHeight=void 0,this.label=void 0,this.spacing="24px"}render(){return t(a,{style:{"--font-family":o()}},t("div",{class:r(["styled-card",this.class]),style:{padding:this.spacing}},this.label&&t("header",{class:"card-header",style:{padding:this.spacing}},t("zonos-text",{type:"subheader"},this.label),t("h-stack",{spacing:8},this.actions)),t("slot",null),(this.footerActions||this.footerContent)&&t("footer",{class:"card-footer",style:{height:this.footerHeight?`${this.footerHeight}px`:"auto",padding:this.spacing}},t("div",null,this.footerContent),t("h-stack",{spacing:8},this.footerActions))))}};i.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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(--amino-border);border-radius:var(--amino-radius-6);padding:var(--spacing, var(--amino-space-24));text-align:left}:host .styled-card hr{margin-left:calc(var(--spacing, var(--amino-space-24)) * -1);margin-right:calc(var(--spacing, var(--amino-space-24)) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, var(--amino-space-24));border-bottom:var(--amino-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, var(--amino-space-24)) * -1);padding:var(--spacing, var(--amino-space-24));border-top:var(--amino-border);background:var(--amino-surface-color-secondary);margin-top:var(--spacing, var(--amino-space-24));border-bottom-left-radius:var(--amino-radius-8);border-bottom-right-radius:var(--amino-radius-8);height:var(--footerHeight)}";const e=class{constructor(t){s(this,t),this.spacing=24,this.class=""}render(){return t(a,{style:{"--font-family":o()}},t("div",{class:r(["vstack",this.class]),style:{"grid-row-gap":`${this.spacing}px`}},t("slot",null)))}};e.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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 .vstack{display:grid;grid-auto-columns:minmax(0, 1fr);grid-row-gap:var(--spacing, 24px);grid-auto-flow:row}";export{i as zonos_card,e as zonos_v_stack}
@@ -1 +1 @@
1
- System.register(["./p-643eeb24.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.z}],execute:function(){var n=t("g",(function(t){if(t){return t==="SHARP"?"0px":"10px"}return e.appearance.style==="SHARP"?"0px":"10px"}))}}}));
1
+ System.register(["./p-b85be1ab.system.js"],(function(t){"use strict";var e;return{setters:[function(t){e=t.z}],execute:function(){var n=t("g",(function(t){if(t){return t==="SHARP"?"0px":"10px"}return e.appearance.style==="SHARP"?"0px":"10px"}))}}}));
@@ -1 +1 @@
1
- System.register(["./p-bec05c21.system.js"],(function(e,o){"use strict";var t,i;return{setters:[function(o){t=o.p;i=o.b;e("setNonce",o.s)}],execute:function(){var e=function(){var e=o.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){return i([["p-cf4545ed.system",[[1,"zonos-text",{class:[1],color:[1],size:[1],type:[1],weight:[2],content:[1],ready:[32]}]]],["p-dc9b318c.system",[[2,"zonos-checkout",{appearanceSettingsOverride:[16],preview:[4],mobile:[4],defaultAddress:[16],forceDialogOpen:[4,"force-dialog-open"],open:[32],stripe:[32],submitLoading:[32],paymentError:[32],collapseReviewMobile:[32],isAttachError:[32],isMobile:[32],zonosReviewRef:[32],storybookPaymentStatusOverride:[32],closeDialogHandler:[64],init:[64],setToFinishStep:[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{appearanceSettingsOverride:["appearanceSettingsOverrideChanged"],mobile:["handleMobileChange"]}]]],["p-44ddebe4.system",[[1,"zonos-hello",{mobileLocationOverride:[1,"mobile-location-override"],animateFromLeftOverride:[4,"animate-from-left-override"],appearanceSettingsOverride:[16],showPeekMessage:[32],zonosStoreHelloSettings:[32],showDialog:[32],peekMessage:[32],initialUrl:[32],allRestrictedItems:[32],allFoundProducts:[32],productsOnPage:[32],displayCurrency:[64],convertAndFormat:[64],convert:[64],format:[64]},[[9,"resize","handleResize"]]]]],["p-cd4f8e13.system",[[1,"zonos-controller",{config:[16],zonosApiKey:[1,"zonos-api-key"],initCheckoutElement:[64],setupGoogleFont:[64],showNotification:[64],overrideConfig:[64],overrideCountry:[64],getAppearanceSetting:[64]}]]],["p-03923a86.system",[[1,"zonos-component",{first:[1],middle:[1],last:[1]}]]],["p-7a81ccb5.system",[[1,"zonos-country-select",{closeCountrySelect:[16],inputValue:[32]}],[1,"zonos-hello-dialog-footer",{appearanceSettings:[16],setShowCountrySelect:[16]}],[1,"zonos-custom-message",{icon:[1],message:[1]}],[1,"zonos-country-flag",{class:[1],countryCode:[1,"country-code"],size:[2]}]]],["p-ceb2cd7b.system",[[1,"zonos-hello-dialog",{isOpen:[4,"is-open"],setIsOpen:[16],mobileLocationOverride:[1,"mobile-location-override"],animateFromLeftOverride:[4,"animate-from-left-override"],appearanceSettings:[16],restrictedItems:[16],welcomeMessage:[32],showCountrySelect:[32]},[[4,"click","globalClickHandler"]],{isOpen:["isOpenHandler"]}]]],["p-f8198015.system",[[1,"zonos-notification",{class:[1],notificationArray:[32],showNotification:[64]}]]],["p-ab46cee9.system",[[1,"zonos-badge",{bold:[4],color:[1],icon:[16],iconRight:[4,"icon-right"],size:[1],rounded:[4],class:[1]}]]],["p-fcd4fc66.system",[[2,"zonos-payment",{titleText:[1,"title-text"],stripe:[32],stripeElements:[32]},null,{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}]]],["p-4e8b5d86.system",[[1,"zonos-shipping-rich-radio",{items:[16],borderColor:[1,"border-color"],borderStyle:[1,"border-style"],theme:[1],selectedItem:[32]}]]],["p-2a32dc0a.system",[[2,"zonos-address",{type:[1],titleText:[1,"title-text"],defaultAddress:[16],stripe:[32]},null,{stripe:["watchInitStripe"]}],[2,"zonos-link-authentication",{titleText:[1,"title-text"],stripe:[32]},null,{stripe:["watchInitStripe"]}]]],["p-2f1e9192.system",[[1,"zonos-banner",{bannerTitle:[1,"banner-title"],intent:[1],class:[1],hasContent:[32]}]]],["p-29b993c2.system",[[1,"zonos-card",{actions:[16],class:[1],footerActions:[16],footerContent:[16],footerHeight:[2,"footer-height"],label:[16],spacing:[1]}],[1,"zonos-v-stack",{spacing:[2],class:[1]}]]],["p-8ebc3ca5.system",[[1,"zonos-icon",{autoHeight:[4,"auto-height"],color:[1],content:[1],size:[2]}]]],["p-1bddc7ca.system",[[1,"zonos-button",{class:[1],color:[1],backgroundColor:[1,"background-color"],borderStyle:[1,"border-style"],isDisabled:[4,"is-disabled"],icon:[16],iconRight:[4,"icon-right"],size:[1],variant:[1],noBackground:[4,"no-background"],noPaddingLeft:[4,"no-padding-left"],noPaddingRight:[4,"no-padding-right"],loading:[4],theme:[1],hasIcon:[32],hasContent:[32]},[[2,"click","clickHandler"]],{icon:["iconChangeHandler"]}],[1,"zonos-spinner",{size:[2],color:[1]}]]],["p-dcf64928.system",[[2,"zonos-checkout-payment",{paymentError:[4,"payment-error"],submitBtnType:[1,"submit-btn-type"],continueLoading:[4,"continue-loading"],submitBtnColor:[1,"submit-btn-color"],disabled:[32]},null,{disabled:["watchFormComplete"]}],[2,"zonos-customer-info",{continueLoading:[4,"continue-loading"],submitBtnType:[1,"submit-btn-type"],submitBtnColor:[1,"submit-btn-color"],defaultAddress:[16],disabled:[32]},null,{disabled:["watchFormComplete"]}],[2,"zonos-shipping",{continueLoading:[4,"continue-loading"],submitBtnColor:[1,"submit-btn-color"],submitBtnType:[1,"submit-btn-type"],selectedShippingMethod:[32],disabled:[32]},null,{disabled:["watchFormComplete"]}],[1,"zonos-checkout-finish",{borderRadius:[1,"border-radius"],storybookForceStatus:[1,"storybook-force-status"],overrideNotification:[16],isLoading:[32],notificationType:[32],notificationTitle:[32],notificationMessages:[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-dialog",{open:[4],headerText:[1,"header-text"],width:[1],height:[1],noHeader:[4,"no-header"],noBodyPadding:[4,"no-body-padding"],noBorder:[4,"no-border"],footerRightAction:[16],borderStyle:[1,"border-style"],noCloseButton:[4,"no-close-button"],noClickOutside:[4,"no-click-outside"],mobile:[4],isLoading:[4,"is-loading"],isMobile:[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-review",{mobile:[4],collapsed:[4],isMobile:[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{errorImages:[32]}],[1,"zonos-collapse",{collapsed:[4],collapseSize:[2,"collapse-size"],height:[32]}],[1,"zonos-logo",{theme:[1],width:[1],class:[1]}]]]],e)}))}}}));
1
+ System.register(["./p-18904b7c.system.js"],(function(e,o){"use strict";var t,i;return{setters:[function(o){t=o.p;i=o.b;e("setNonce",o.s)}],execute:function(){var e=function(){var e=o.meta.url;var i={};if(e!==""){i.resourcesUrl=new URL(".",e).href}return t(i)};e().then((function(e){return i([["p-f367f2fe.system",[[1,"zonos-text",{class:[1],color:[1],size:[1],type:[1],weight:[2],content:[1],ready:[32]}]]],["p-510d3aa3.system",[[2,"zonos-checkout",{appearanceSettingsOverride:[16],preview:[4],mobile:[4],defaultAddress:[16],forceDialogOpen:[4,"force-dialog-open"],open:[32],stripe:[32],submitLoading:[32],paymentError:[32],collapseReviewMobile:[32],isAttachError:[32],isMobile:[32],zonosReviewRef:[32],storybookPaymentStatusOverride:[32],closeDialogHandler:[64],init:[64],setToFinishStep:[64]},[[16,"zonos--init-cart-info","initCartInfoHandler"],[9,"resize","handleWindowResize"]],{appearanceSettingsOverride:["appearanceSettingsOverrideChanged"],mobile:["handleMobileChange"]}]]],["p-6aa44c88.system",[[1,"zonos-hello",{mobileLocationOverride:[1,"mobile-location-override"],animateFromLeftOverride:[4,"animate-from-left-override"],appearanceSettingsOverride:[16],showPeekMessage:[32],zonosStoreHelloSettings:[32],showDialog:[32],peekMessage:[32],initialUrl:[32],allRestrictedItems:[32],allFoundProducts:[32],productsOnPage:[32],displayCurrency:[64],convertAndFormat:[64],convert:[64],format:[64]},[[9,"resize","handleResize"]]]]],["p-fbfec60c.system",[[1,"zonos-controller",{config:[16],zonosApiKey:[1,"zonos-api-key"],initCheckoutElement:[64],setupGoogleFont:[64],showNotification:[64],overrideConfig:[64],overrideCountry:[64],getAppearanceSetting:[64]}]]],["p-67154df2.system",[[1,"zonos-component",{first:[1],middle:[1],last:[1]}]]],["p-e06711b8.system",[[1,"zonos-country-select",{closeCountrySelect:[16],inputValue:[32]}],[1,"zonos-hello-dialog-footer",{appearanceSettings:[16],setShowCountrySelect:[16]}],[1,"zonos-custom-message",{icon:[1],message:[1]}],[1,"zonos-country-flag",{class:[1],countryCode:[1,"country-code"],size:[2]}]]],["p-7fdc8b27.system",[[1,"zonos-hello-dialog",{isOpen:[4,"is-open"],setIsOpen:[16],mobileLocationOverride:[1,"mobile-location-override"],animateFromLeftOverride:[4,"animate-from-left-override"],appearanceSettings:[16],restrictedItems:[16],welcomeMessage:[32],showCountrySelect:[32]},[[4,"click","globalClickHandler"]],{isOpen:["isOpenHandler"]}]]],["p-d856a200.system",[[1,"zonos-notification",{class:[1],notificationArray:[32],showNotification:[64]}]]],["p-2f43da39.system",[[1,"zonos-badge",{bold:[4],color:[1],icon:[16],iconRight:[4,"icon-right"],size:[1],rounded:[4],class:[1]}]]],["p-5554ff33.system",[[2,"zonos-payment",{titleText:[1,"title-text"],stripe:[32],stripeElements:[32]},null,{stripeElements:["watchInitStripe"],stripe:["watchInitStripe"]}]]],["p-e98be2d0.system",[[1,"zonos-shipping-rich-radio",{items:[16],borderColor:[1,"border-color"],borderStyle:[1,"border-style"],theme:[1],selectedItem:[32]}]]],["p-65749745.system",[[2,"zonos-address",{type:[1],titleText:[1,"title-text"],defaultAddress:[16],stripe:[32]},null,{stripe:["watchInitStripe"]}],[2,"zonos-link-authentication",{titleText:[1,"title-text"],stripe:[32]},null,{stripe:["watchInitStripe"]}]]],["p-c9348bb0.system",[[1,"zonos-banner",{bannerTitle:[1,"banner-title"],intent:[1],class:[1],hasContent:[32]}]]],["p-560aa686.system",[[1,"zonos-card",{actions:[16],class:[1],footerActions:[16],footerContent:[16],footerHeight:[2,"footer-height"],label:[16],spacing:[1]}],[1,"zonos-v-stack",{spacing:[2],class:[1]}]]],["p-e5ae22a9.system",[[1,"zonos-icon",{autoHeight:[4,"auto-height"],color:[1],content:[1],size:[2]}]]],["p-47390db7.system",[[1,"zonos-button",{class:[1],color:[1],backgroundColor:[1,"background-color"],borderStyle:[1,"border-style"],isDisabled:[4,"is-disabled"],icon:[16],iconRight:[4,"icon-right"],size:[1],variant:[1],noBackground:[4,"no-background"],noPaddingLeft:[4,"no-padding-left"],noPaddingRight:[4,"no-padding-right"],loading:[4],theme:[1],hasIcon:[32],hasContent:[32]},[[2,"click","clickHandler"]],{icon:["iconChangeHandler"]}],[1,"zonos-spinner",{size:[2],color:[1]}]]],["p-e100f180.system",[[2,"zonos-checkout-payment",{paymentError:[4,"payment-error"],submitBtnType:[1,"submit-btn-type"],continueLoading:[4,"continue-loading"],submitBtnColor:[1,"submit-btn-color"],disabled:[32]},null,{disabled:["watchFormComplete"]}],[2,"zonos-customer-info",{continueLoading:[4,"continue-loading"],submitBtnType:[1,"submit-btn-type"],submitBtnColor:[1,"submit-btn-color"],defaultAddress:[16],disabled:[32]},null,{disabled:["watchFormComplete"]}],[2,"zonos-shipping",{continueLoading:[4,"continue-loading"],submitBtnColor:[1,"submit-btn-color"],submitBtnType:[1,"submit-btn-type"],selectedShippingMethod:[32],disabled:[32]},null,{disabled:["watchFormComplete"]}],[1,"zonos-checkout-finish",{borderRadius:[1,"border-radius"],storybookForceStatus:[1,"storybook-force-status"],overrideNotification:[16],isLoading:[32],notificationType:[32],notificationTitle:[32],notificationMessages:[32],order:[32]}],[1,"zonos-cart-subtotal"],[1,"zonos-dialog",{open:[4],headerText:[1,"header-text"],width:[1],height:[1],noHeader:[4,"no-header"],noBodyPadding:[4,"no-body-padding"],noBorder:[4,"no-border"],footerRightAction:[16],borderStyle:[1,"border-style"],noCloseButton:[4,"no-close-button"],noClickOutside:[4,"no-click-outside"],mobile:[4],isLoading:[4,"is-loading"],isMobile:[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-review",{mobile:[4],collapsed:[4],isMobile:[32]},[[9,"resize","handleWindowResize"]]],[1,"zonos-cart-items",{errorImages:[32]}],[1,"zonos-collapse",{collapsed:[4],collapseSize:[2,"collapse-size"],height:[32]}],[1,"zonos-logo",{theme:[1],width:[1],class:[1]}]]]],e)}))}}}));
@@ -0,0 +1 @@
1
+ import{r as t,h as s,d as o,H as h}from"./p-956efa27.js";import{e as i}from"./p-089ba905.js";const a=class{constructor(s){t(this,s),this.autoHeight=!1,this.color="gray-1200",this.content=void 0,this.size=24}render(){return this.content&&this.el.shadowRoot?(this.el.shadowRoot.innerHTML=this.content,s(h,{class:"zonos--elements",style:{"--color":`var(--amino-${this.color})`,"--font-family":i(),"--height":this.autoHeight?"auto":`${this.size}px`,"--width":`${this.size}px`}})):null}get el(){return o(this)}};a.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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(--width);height:var(--height);fill:var(--color);color:var(--color)}";export{a as zonos_icon}
@@ -0,0 +1 @@
1
+ System.register(["./p-18904b7c.system.js","./p-b85be1ab.system.js","./p-23e7c655.system.js"],(function(o){"use strict";var r,a,n,t,e;return{setters:[function(o){r=o.r;a=o.h;n=o.H},function(o){t=o.e},function(o){e=o.c}],execute:function(){var s=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-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(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";var i=o("zonos_badge",function(){function o(o){r(this,o);this.bold=false;this.color="gray";this.icon=undefined;this.iconRight=false;this.size="default";this.rounded=false;this.class=""}o.prototype.render=function(){return a(n,{class:e(["zonos--elements zonos--badge",this.class]),style:{"--font-family":t()}},a("div",{class:e(["zonos--badge-content",this.color,this.rounded&&"rounded",this.iconRight&&"icon-right",this.size,this.bold&&"bold"])},this.icon,a("zonos-text",null,a("slot",null))))};return o}());i.style=s}}}));
@@ -0,0 +1 @@
1
+ import{r as o,a as s,h as t,H as n,F as i,c as e,d as a}from"./p-956efa27.js";import{c as r,s as c,p as h,o as l,i as d,b as p}from"./p-425996c1.js";import{t as m,h as u,b as z}from"./p-bbb154a9.js";import{g}from"./p-ff95f098.js";import{s as f,i as y}from"./p-e2c2584c.js";import{e as b,z as v}from"./p-089ba905.js";import{c as x}from"./p-b4b7f705.js";import"./p-55f49f1e.js";const w=({amount:o,currency:s,showCurrencyText:t})=>t?`${new Intl.NumberFormat("en-US",{currency:s,style:"currency"}).format(o)} ${s}`:new Intl.NumberFormat("en-US",{currency:s,style:"currency"}).format(o),k=class{constructor(s){o(this,s),this.errorImages=[]}render(){var o;const i=s("./assets/empty-item.jpeg"),e=(null===(o=r.exchangeRate)||void 0===o?void 0:o.rate)||1;return t(n,{class:"zonos--cart-items zonos--elements"},t("table",{class:"zonos--cart-table"},t("tbody",null,r.items.map((o=>{const s=o.imageUrl;return t("tr",{class:"zonos--cart-item"},t("td",{class:"zonos--column zonos--cart-item-image"},s&&!this.errorImages.includes(s)?t("img",{alt:o.name,onError:()=>{this.errorImages=[...this.errorImages,s]},src:o.imageUrl,style:{"min-width":"40px"},width:40}):t("img",{alt:o.name,src:i,width:40})),t("td",{class:"zonos--column zonos--cart-item-name"},t("zonos-text",{type:"label"},o.name)),t("td",{class:"zonos--column zonos--cart-item-price"},t("zonos-text",{type:"semiBoldLabel"},w({amount:o.amount*o.quantity*e,currency:r.currency}))))})))))}static get assetsDirs(){return["assets"]}};k.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-8);font-size:var(--amino-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}";const C=class{constructor(s){o(this,s)}render(){const o=r.total-r.dutiesTaxFees,s="payment"===r.step||"shipping"===r.step;return t(n,{class:"zonos--cart-subtotal zonos--elements"},t("table",{class:"zonos--cart-table"},t("tr",{class:"zonos--row zonos--cart-subtotal"},t("td",{class:"zonos--column"}),t("td",{class:"zonos--column zonos--cart-subtotal-title"},t("zonos-text",{type:"semiBoldLabel"},m("Cart subtotal"))),t("td",{class:"zonos--column zonos--cart-subtotal-price"},t("zonos-text",{type:"semiBoldLabel"},w({amount:r.subtotal,currency:r.currency})))),t("tr",{class:"zonos--row zonos--cart-shipping"},t("td",{class:"zonos--column"}),t("td",{class:"zonos--column zonos--cart-subtotal-title"},r.selectedShippingOption?t(i,null,t("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},r.selectedShippingOption.displayName),r.selectedShippingOptionTransitTime&&t("zonos-text",{class:"zonos--caption",type:"caption"},r.selectedShippingOptionTransitTime," ",m("business days"))):t(i,null,t("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},m("Shipping")),t("zonos-text",{class:"zonos--caption",type:"caption"},m("No shipping method selected")))),t("td",{class:"zonos--column zonos--cart-subtotal-price"},r.shipping?w({amount:r.shipping,currency:r.currency}):"-")),s&&t("tr",{class:"zonos--row zonos--cart-duties"},t("td",{class:"zonos--column"}),t("td",{class:"zonos--column zonos--cart-subtotal-title"},t("div",{class:"zonos--title-with-icon"},t("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},m("Duties, taxes, and fees")),t("zonos-icon",{content:'<svg viewBox="0 0 17 16" fill="none" xmlns="https://www.w3.org/2000/svg">\n<path fill-rule="evenodd" clip-rule="evenodd" d="M1.96704 8.00065C1.96704 4.31875 4.93024 1.33398 8.58554 1.33398C12.2408 1.33398 15.204 4.31875 15.204 8.00065C15.204 11.6826 12.2408 14.6673 8.58554 14.6673C4.93024 14.6673 1.96704 11.6825 1.96704 8.00065Z" fill="#C5C6CA"/>\n<path fill-rule="evenodd" clip-rule="evenodd" d="M8.58543 4.66016C8.95096 4.66016 9.24728 4.95863 9.24728 5.32682V5.33349C9.24728 5.70168 8.95096 6.00016 8.58543 6.00016C8.2199 6.00016 7.92358 5.70168 7.92358 5.33349V5.32682C7.92358 4.95863 8.2199 4.66016 8.58543 4.66016ZM8.58543 7.33349C8.95096 7.33349 9.24728 7.63197 9.24728 8.00016V10.6668C9.24728 11.035 8.95096 11.3335 8.58543 11.3335C8.2199 11.3335 7.92358 11.035 7.92358 10.6668V8.00016C7.92358 7.63197 8.2199 7.33349 8.58543 7.33349Z" fill="#4D505A"/>\n</svg>\n',size:16})),!!r.isSelectedShippingAboveDeminimis&&t("zonos-text",{color:"gray-800",type:"body"},m("Order is over the de minimis threshold for both duty and tax"))),t("td",{class:"zonos--column zonos--cart-subtotal-price"},t("div",{class:"zonos--cart-duty-tax-price"},r.dutiesTaxFees?w({amount:r.dutiesTaxFees,currency:r.currency}):"-",r.isSelectedShippingGuarantee&&t("zonos-badge",null,m("Guaranteed"))))),t("tr",{class:"zonos--row zonos--cart-pay-total"},t("td",{class:"zonos--column"}),t("td",{class:"zonos--column"},t("zonos-text",{class:"zonos--title",type:"semiBoldLabel"},m("Order total"))),t("td",{class:"zonos--column"},t("zonos-text",{type:"semiBoldLabel"},w({amount:"shipping"===r.step?o:r.total,currency:r.currency}))))))}static get assetsDirs(){return["assets"]}};C.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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(--amino-font-size-base)}:host .zonos--cart-table .zonos--column{padding:var(--amino-space-20) var(--amino-space-8);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:var(--amino-space-8)}:host .zonos--cart-subtotal-title,:host .zonos--cart-subtotal-price{border-bottom:1px solid var(--amino-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}";const I=class{constructor(s){o(this,s),this.closeClick=e(this,"closeClick",7),this.pullOrder=async()=>{var o,s;const t="https://v1.route.js.zonos.com",n=r.checkoutSessionId,{errors:i,json:e}=await u(`${t}/api/zonos-elements/get-order?checkoutSessionId=${n}`);if(i.length||!(null==e?void 0:e.id))return null;if(window.Zonos.isBigCommerce){const n=null==e?void 0:e.id,i=null===(s=null===(o=null==e?void 0:e.metadata)||void 0===o?void 0:o.find((o=>"storeHash"===(null==o?void 0:o.key))))||void 0===s?void 0:s.value;if(!n||!i)return z("Unable to trigger BigCommerce /success: Missing orderId or storeHash");u(`${t}/api/bigcommerce/success?orderId=${n}&storeHash=${i}`)}return e},this.getPullOrder=async(o=0)=>{const s=await this.pullOrder();s?this.order=s:!s&&o<5&&(await new Promise((o=>setTimeout(o,1e3))),await this.getPullOrder(o+1))},this.checkPaymentStatus=async()=>{this.isLoading=!0;const o=new URLSearchParams(window.location.search).get("payment_intent_client_secret")||c.clientSecret;if(o||this.storybookForceStatus){const{error:s,messages:t}=await h({clientSecret:o,storybookForceStatus:this.storybookForceStatus});if(this.notificationType=s?"error":"success",this.notificationMessages=t||[],this.notificationTitle=m(s?"Payment failed":"You're all set!"),s)f("zonos-checkout-payment-fail");else{f("zonos-checkout-success");const o=new CustomEvent("zonos-checkout-success",{detail:{message:"Zonos Checkout successfully processed order"}});document.dispatchEvent(o)}"success"===this.notificationType&&this.getPullOrder()}l(),this.isLoading=!1},this.closeClickHandler=()=>{this.closeClick.emit()},this.borderRadius="ROUNDED",this.storybookForceStatus=void 0,this.overrideNotification=void 0,this.isLoading=!0,this.notificationType="success",this.notificationTitle="",this.notificationMessages=[],this.order=null}componentDidLoad(){if(this.overrideNotification)return this.notificationType=this.overrideNotification.type,this.notificationTitle=this.overrideNotification.title,this.notificationMessages=this.overrideNotification.messages,void(this.isLoading=!1);this.checkPaymentStatus()}render(){return t(n,{class:"zonos--checkout-finish zonos--elements",style:{"--border-radius":g(this.borderRadius)}},this.isLoading&&t("div",{class:"loading-wrapper"},t("zonos-spinner",null)),!this.isLoading&&t(i,null,t("div",{class:"zonos--group"},t("zonos-icon","success"===this.notificationType?{color:"blue-800",content:'<svg color="var(--amino-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(--amino-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>',size:50}:{color:"red-800",content:'<svg color="var(--amino-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(--amino-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>',size:50}),t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},this.notificationTitle),t("zonos-text",null,this.notificationMessages.map((o=>t(i,null,o,t("br",null))))),t("zonos-button",{onClick:()=>this.closeClickHandler(),size:"md",variant:"primary"},m("Keep shopping")))))}static get assetsDirs(){return["assets"]}};I.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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:var(--amino-space-24);border-radius:var(--border-radius, 10px);gap:var(--amino-space-24);max-width:360px;width:auto;margin:auto;margin-top:var(--amino-space-24);background-color:var(--amino-gray-50);padding:var(--amino-space-20)}: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}";const L=class{constructor(s){o(this,s),this.continueClicked=e(this,"continueClicked",7),this.continueClickHandler=()=>{this.continueClicked.emit()},this.paymentError=!1,this.submitBtnType=void 0,this.continueLoading=!1,this.submitBtnColor=void 0,this.disabled=!0}watchFormComplete(){this.disabled||f("zonos-checkout-payment-info")}render(){var o;return c.stripeElements?(this.disabled=!(null===(o=c.stripePaymentEventData)||void 0===o?void 0:o.complete),t(n,{class:"zonos--checkout-payment zonos--elements"},t("div",{class:"zonos--group"},t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},m("Payment method")),this.paymentError&&t("zonos-banner",{class:"zonos--payment-error-banner",intent:"error"},m("We couldn't complete your payment. Please verify the payment details and try again.")),t("zonos-payment",null)),t("div",{class:"zonos--group-btn"},t("zonos-button",{backgroundColor:this.submitBtnColor,"is-disabled":this.disabled,loading:this.continueLoading,onClick:()=>this.continueClickHandler(),size:"lg",variant:this.submitBtnType},"Pay"," ",w({amount:r.total,currency:r.currency}))))):null}static get watchers(){return{disabled:["watchFormComplete"]}}};L.style=".sc-zonos-checkout-payment-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-checkout-payment-h *.sc-zonos-checkout-payment{font-family:var(--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}.sc-zonos-checkout-payment-h .zonos--title.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-24)}.sc-zonos-checkout-payment-h .zonos--group.sc-zonos-checkout-payment{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.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(--amino-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:var(--amino-space-8)}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-checkout-payment-h .zonos--group-btn.sc-zonos-checkout-payment zonos-button.sc-zonos-checkout-payment{width:calc(100% - 10px)}";const j=class{constructor(s){o(this,s),this.collapsed=!1,this.collapseSize=0,this.height=this.el.scrollHeight}getElementHeight(){return this.collapsed?`${this.collapseSize}px`:`${this.height}px`}componentDidLoad(){this.height=this.el.scrollHeight}componentDidRender(){var o,s,t;null===(t=null===(s=null===(o=this.el.shadowRoot)||void 0===o?void 0:o.querySelector("iframe"))||void 0===s?void 0:s.contentWindow)||void 0===t||t.addEventListener("resize",(()=>{this.height=this.el.scrollHeight}))}render(){return this.height=this.el.scrollHeight,t(n,{class:"zonos--elements zonos--collapse",style:{"--font-family":b(),height:this.getElementHeight()}},t("div",null,t("iframe",{class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),t("slot",null)))}get el(){return a(this)}};j.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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{-webkit-transition:all 0.3s ease-in-out;transition:all 0.3s ease-in-out;overflow:hidden}:host div{position:relative}:host iframe{width:0;height:100%;position:absolute;top:0;border:0}";const B=class{constructor(s){o(this,s),this.continueClicked=e(this,"continueClicked",7),this.continueClickHandler=()=>{this.continueClicked.emit()},this.continueLoading=!1,this.submitBtnType=void 0,this.submitBtnColor=void 0,this.defaultAddress=null,this.disabled=!0}watchFormComplete(){this.disabled||f("zonos-checkout-customer-info")}render(){var o,s;return c.stripeElements?(this.disabled=!(null===(o=c.stripeAddressEventData)||void 0===o?void 0:o.complete)||!(null===(s=c.stripeLinkEventData)||void 0===s?void 0:s.complete),t(n,{class:"zonos--customer-info zonos--elements"},t("div",{class:"zonos--group"},t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},m("Customer information")),t("zonos-link-authentication",{titleText:m("Contact")}),t("zonos-address",{defaultAddress:this.defaultAddress,titleText:m("Address"),type:"shipping"})),t("div",{class:"zonos--group-btn"},t("zonos-button",{backgroundColor:this.submitBtnColor,isDisabled:this.disabled,loading:this.continueLoading,onClick:()=>this.continueClickHandler(),size:"lg",variant:this.submitBtnType},m("Continue to shipping"))))):null}static get watchers(){return{disabled:["watchFormComplete"]}}};B.style=".sc-zonos-customer-info-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-customer-info-h *.sc-zonos-customer-info{font-family:var(--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}.sc-zonos-customer-info-h .zonos--title.sc-zonos-customer-info{margin-bottom:var(--amino-space-20)}.sc-zonos-customer-info-h .zonos--link-authentication.sc-zonos-customer-info{margin-bottom:var(--amino-space-32)}.sc-zonos-customer-info-h .zonos--group.sc-zonos-customer-info{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.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(--amino-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{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-customer-info-h .zonos--group-btn.sc-zonos-customer-info zonos-button.sc-zonos-customer-info{width:calc(100% - 10px)}";const D=class{constructor(s){o(this,s),this.closeDialog=e(this,"closeDialog",7),this.isMobileMode=()=>this.mobile||window.innerWidth<=768,this.closeButtonHandler=()=>{this.closeDialog.emit()},this.clickOutsideDialogHandler=o=>{o.target!==o.currentTarget||this.noClickOutside||this.closeDialog.emit()},this.open=!1,this.headerText="",this.width="460px",this.height=void 0,this.noHeader=!1,this.noBodyPadding=!1,this.noBorder=!1,this.footerRightAction=null,this.borderStyle=void 0,this.noCloseButton=!1,this.noClickOutside=!1,this.mobile=!1,this.isLoading=!0,this.isMobile=!1}handleWindowResize(){this.isMobile=this.isMobileMode()}componentDidLoad(){this.isMobile=this.isMobileMode()}render(){document.body.style.overflow=this.open?"hidden":"auto";const o=g(this.borderStyle);return t(n,{class:x(["zonos--elements",this.open&&"open",this.isLoading&&"is-loading",this.noBorder&&"no-border",this.isMobile&&"mobile"]),style:{"--border-radius":o,"--font-family":b(),"--height":this.height||"initial","--width":this.width}},t("div",{class:"zonos--backdrop"}),t("div",{"aria-hidden":"true",class:"zonos--dialog-layout",onClick:this.clickOutsideDialogHandler},t("div",{class:"zonos--dialog"},this.isLoading&&t("div",{class:"zonos--loading"},t("zonos-spinner",{size:30})),(this.headerText||!this.noCloseButton)&&t("div",{class:"zonos--header"},this.headerText&&t("h3",{class:"zonos--header-text"},this.headerText),!this.noCloseButton&&t("zonos-button",{class:"zonos--close-button",icon:t("zonos-icon",{content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:this.closeButtonHandler})),t("div",{class:x(["zonos--body",this.noBodyPadding&&"zonos--no-body-padding"])},t("slot",null)),this.footerRightAction&&t("div",{class:"zonos--footer"},t("div",{class:"zonos--footer-right-action"},this.footerRightAction)))))}static get assetsDirs(){return["assets"]}};D.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .zonos--backdrop,:host .zonos--dialog-layout{opacity:0;z-index:-999;visibility:hidden;-webkit-transition:0.3s all ease;transition:0.3s all ease}:host .zonos--backdrop{width:100vw;height:100vh;left:0px;top:0px;background:var(--amino-backdrop-color);z-index:-999;opacity:0;visibility:hidden;position:fixed}:host .zonos--loading{position:absolute;left:0;right:0;bottom:0;top:0;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;z-index:1002;background:white}:host .zonos--dialog-layout{width:100vw;height:100vh;left:0;top:0;position:fixed;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:var(--amino-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:1001;background:var(--amino-gray-0);max-width:90vw;max-height:90vh;min-height:500px;height:var(--height, auto);width:var(--width, auto);border-radius:var(--border-radius, var(--amino-radius-10));outline:none;-webkit-box-shadow:var(--amino-v3-shadow-xxl);box-shadow:var(--amino-v3-shadow-xxl);border:var(--amino-border);overflow:hidden;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .zonos--header{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-16) var(--amino-space-24)}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--amino-size-md);height:var(--amino-size-md);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;cursor:pointer;border-radius:var(--amino-radius-10)}:host .zonos--header .zonos--close-button:hover{background:var(--amino-hover-color)}:host .zonos--body{padding:var(--amino-space-8) var(--amino-space-24);max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:var(--amino-space-16) var(--amino-space-24)}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:1001;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:1002;-webkit-transform:scale(1);transform:scale(1)}:host(.no-border) .zonos--dialog{border:none}:host(.mobile) .zonos--dialog{max-width:100vw;max-height:100vh;height:100%;width:100%;border-radius:0;-webkit-box-shadow:none;box-shadow:none;border:none}";const S=class{constructor(s){o(this,s),this.theme="LIGHT",this.width="auto",this.class=""}render(){const o="DARK"===this.theme?"invert(100%) sepia(100%) saturate(0%) hue-rotate(288deg) brightness(102%) contrast(102%)":"whiteinvert(0%) sepia(100%) saturate(32%) hue-rotate(92deg) brightness(107%) contrast(107%)";return t(n,{class:x(["zonos--elements zonos--logo",this.class]),style:{"--filter-color":o,"--font-family":b(),"--width":this.width}},t("img",{alt:"Zonos Logo",src:s("./assets/ZonosLogo.png")}))}static get assetsDirs(){return["assets"]}};S.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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 img{-webkit-filter:var(--filter-color);filter:var(--filter-color);width:var(--width)}";const _=class{constructor(s){o(this,s),this.mobile=!1,this.collapsed=!1,this.isMobile=!1}handleWindowResize(){this.isMobile=y(this.mobile)}componentWillLoad(){this.isMobile=y(this.mobile)}render(){const o=this.isMobile?"boldSubheader":"semiBoldLabel",s=this.isMobile?"boldSubheader":"secondaryPageHeader",i=this.isMobile?"gray-1200":"gray-800",e=r.total-r.dutiesTaxFees;return t(n,{class:x(["zonos--review zonos--elements",this.isMobile&&"mobile"])},t("div",{class:"zonos--title"},t("zonos-text",{color:i,type:o},m("Pay")," ",v.organizationName),(()=>this.isMobile?t("zonos-icon",this.collapsed?{color:"gray-1200",content:'<svg color="var(--amino-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>'}:{color:"gray-1200",content:'<svg color="var(--amino-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>'}):null)()),t("div",{class:"zonos--total-pay"},t("zonos-text",{type:s},w({amount:"shipping"===r.step?e:r.total,currency:r.currency}))))}static get assetsDirs(){return["assets"]}};_.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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--total-pay{margin:var(--amino-space-16) 0 var(--amino-space-32)}:host(.mobile){display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;gap:var(--amino-space-24);-ms-flex-pack:justify;justify-content:space-between;padding:var(--amino-space-4) 0;margin-bottom:var(--amino-space-8)}:host(.mobile) .zonos--title{display:-ms-flexbox;display:flex;-ms-flex-item-align:center;align-self:center;gap:var(--amino-space-8)}:host(.mobile) .zonos--total-pay{margin:0}";const Z=class{constructor(s){o(this,s),this.continueClicked=e(this,"continueClicked",7),this.handleRadioSelected=async o=>{var s;if(this.selectedShippingMethod=o.detail,!this.selectedShippingMethod)return;const t=(null===(s=r.shippingData)||void 0===s?void 0:s.find((o=>{var s;return o.id===(null===(s=this.selectedShippingMethod)||void 0===s?void 0:s.value)})))||null;t&&await d(t)&&(this.disabled=!1)},this.continueClickHandler=()=>{this.continueClicked.emit()},this.continueLoading=!1,this.submitBtnColor=void 0,this.submitBtnType=void 0,this.selectedShippingMethod=null,this.disabled=!0}watchFormComplete(){this.disabled||f("zonos-checkout-shipping-info")}render(){var o;const s=null===(o=r.shippingData)||void 0===o?void 0:o.flatMap((o=>{var s,t;const{expectedDate:n,maxTransit:i,minTransit:e}=p(o),a=n?`${m("Expected delivery")} ${n}`:"",c=e&&i?`(${e}-${i} ${m("business days")})`:"",h=(null===(t=null===(s=r.landedCostData)||void 0===s?void 0:s.find((s=>{var t;return(null===(t=s.landedCost)||void 0===t?void 0:t.shipmentRating.id)===o.id})))||void 0===t?void 0:t.subtotals.shipping)||0;return{caption:c,label:o.displayName,price:w({amount:h,currency:r.currency}),sublabel:a,value:o.id}}));return t(n,{class:"zonos--shipping zonos--elements"},t("div",{class:"zonos--group"},t("zonos-text",{class:"zonos--title",type:"semiBoldSubheader"},m("Shipping information")),t("zonos-text",{class:"zonos--shipping-method-title",type:"semiBoldLabel"},m("Shipping method")),(null==s?void 0:s.length)?t("zonos-shipping-rich-radio",{items:s||[],onRadioSelected:o=>this.handleRadioSelected(o)}):t("zonos-banner",{bannerTitle:"No shipping methods found - try editing your address or contacting support if the error persists",intent:"error"})),t("zonos-button",{backgroundColor:this.submitBtnColor,"is-disabled":this.disabled,loading:this.continueLoading,onClick:()=>this.continueClickHandler(),size:"lg",variant:this.submitBtnType},m("Go to payment")))}static get watchers(){return{disabled:["watchFormComplete"]}}};Z.style=".sc-zonos-shipping-h{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-shipping-h *.sc-zonos-shipping{font-family:var(--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--title.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--shipping-method-title.sc-zonos-shipping{margin-bottom:var(--amino-space-16)}.sc-zonos-shipping-h .zonos-shipping-rich-radio.sc-zonos-shipping{margin-bottom:var(--amino-space-24)}.sc-zonos-shipping-h .zonos--group.sc-zonos-shipping{margin-bottom:var(--amino-space-20);overflow:auto;padding:5px}.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(--amino-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--group-btn.sc-zonos-shipping{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}.sc-zonos-shipping-h .zonos--group-btn.sc-zonos-shipping zonos-button.sc-zonos-shipping{width:calc(100% - 10px)}.sc-zonos-shipping-h zonos-banner.sc-zonos-shipping{margin-top:var(--amino-space-24)}";export{k as zonos_cart_items,C as zonos_cart_subtotal,I as zonos_checkout_finish,L as zonos_checkout_payment,j as zonos_collapse,B as zonos_customer_info,D as zonos_dialog,S as zonos_logo,_ as zonos_review,Z as zonos_shipping}
@@ -0,0 +1 @@
1
+ import{r as o,h as e,H as t}from"./p-956efa27.js";import{_ as s,i,f as n,g as r,z as a,m as l}from"./p-089ba905.js";import{h,b as d,a as m,i as c,t as p,g as f,s as g,l as u,e as w,f as z,j as b,k as v}from"./p-bbb154a9.js";import{c as x}from"./p-b4b7f705.js";import{g as y}from"./p-5883217a.js";var k=function(){return s.Date.now()},T=/\s/,E=/^\s+/,L=function(o){return o?o.slice(0,function(o){for(var e=o.length;e--&&T.test(o.charAt(e)););return e}(o)+1).replace(E,""):o},C=/^[-+]0x[0-9a-f]+$/i,j=/^0b[01]+$/i,D=/^0o[0-7]+$/i,I=parseInt,R=function(o){if("number"==typeof o)return o;if(function(o){return"symbol"==typeof o||i(o)&&"[object Symbol]"==n(o)}(o))return NaN;if(r(o)){var e="function"==typeof o.valueOf?o.valueOf():o;o=r(e)?e+"":e}if("string"!=typeof o)return 0===o?o:+o;o=L(o);var t=j.test(o);return t||D.test(o)?I(o.slice(2),t?2:8):C.test(o)?NaN:+o},X=Math.max,S=Math.min,O=function(o,e,t){var s,i,n,a,l,h,d=0,m=!1,c=!1,p=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function f(e){var t=s,n=i;return s=i=void 0,d=e,a=o.apply(n,t)}function g(o){var t=o-h;return void 0===h||t>=e||t<0||c&&o-d>=n}function u(){var o=k();if(g(o))return w(o);l=setTimeout(u,function(o){var t=e-(o-h);return c?S(t,n-(o-d)):t}(o))}function w(o){return l=void 0,p&&s?f(o):(s=i=void 0,a)}function z(){var o=k(),t=g(o);if(s=arguments,i=this,h=o,t){if(void 0===l)return function(o){return d=o,l=setTimeout(u,e),m?f(o):a}(h);if(c)return clearTimeout(l),l=setTimeout(u,e),f(h)}return void 0===l&&(l=setTimeout(u,e)),a}return e=R(e)||0,r(t)&&(m=!!t.leading,n=(c="maxWait"in t)?X(R(t.maxWait)||0,e):n,p="trailing"in t?!!t.trailing:p),z.cancel=function(){void 0!==l&&clearTimeout(l),d=0,s=h=i=l=void 0},z.flush=function(){return void 0===l?a:w(k())},z};const B=()=>{var o,e;const{productAddToCartElementSelector:t,productDescriptionElementSelector:s,productTitleElementSelector:i,restrictionBehavior:n}=a.helloSettings;i&&s||d("Hello Could not check item restrictions - must provide title and description selectors.");const r=i&&c(i)&&document.querySelectorAll(i)||[],l=s&&c(s)&&document.querySelectorAll(s)||[];if(r.length!==l.length)return d("Hello Could not check item restrictions - Title and description selectors do not match"),[];const h="RESTRICT_AND_BLOCK"===n,m=h&&t&&c(t)&&document.querySelectorAll(t)||[];h&&m.length!==l.length&&d('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match');const p=[];for(let t=0;t<r.length;t++){const s=r[t],i=l[t];if(s&&i){const n={cartButtonNode:m[t]||null,description:(null===(o=i.textContent)||void 0===o?void 0:o.trim())||"",title:(null===(e=s.textContent)||void 0===e?void 0:e.trim())||""};p.push(n)}}return p},N=class{constructor(e){o(this,e),this.getHelloPeekMessage=()=>{if(("productDetail"===a.currentHelloPage||"productList"===a.currentHelloPage)&&this.allRestrictedItems.length){const o=p("click to learn more");return`${p("productDetail"===a.currentHelloPage?"Restricted item":"Restricted items found")} - ${o}`}switch(a.currentHelloPage){case"cart":return p("Prepay duties and taxes at checkout");case"productList":case"productDetail":return p("See duty and tax thresholds");default:return`${p("Welcome to")} ${a.organizationName}`}},this.enableShowPeekMessage=()=>{this.peekMessage&&(this.showPeekMessage=!0)},this.getNewItemRestrictions=async o=>"productDetail"!==a.currentHelloPage&&"productList"!==a.currentHelloPage||"DISABLED"===a.helloSettings.restrictionBehavior?[]:await(async o=>{if(!o.length)return[];const{selectedCountryCode:e}=m;if(!e)return d("Hello Could not check item restrictions - No country code selected"),[];const t=o.map((o=>({description:o.description,name:o.title})));return(await(async({items:o,shipFrom:e,shipTo:t})=>{var s;const i={items:o,shipFrom:e,shipTo:t},{errors:n,json:r}=await h("https://v1.route.js.zonos.com/api/zonos-elements/check-item-restrictions",{body:i,method:"POST"});return n.length||!r?(d(`Error fetching item restrictions: ${null===(s=n.find(Boolean))||void 0===s?void 0:s.message}`),[]):r.filter(Boolean)})({items:t,shipFrom:"AD",shipTo:e})).map((o=>{var e;const s=(null===(e=t.filter((e=>e.description===o.itemDescription)).find(Boolean))||void 0===e?void 0:e.name)||"";return Object.assign(Object.assign({},o),{name:s})}))})(o),this.triggerShowPeekMessage=()=>{this.peekMessage=this.getHelloPeekMessage();const{peekMessageBehavior:o,peekMessageDelay:e}=a.helloSettings;"ENABLED"===o&&setTimeout((()=>{this.enableShowPeekMessage(),this.allRestrictedItems.some((o=>this.productsOnPage.some((e=>e.description===o.itemDescription))))||setTimeout((()=>{this.showPeekMessage=!1}),3e3)}),1e3*e)},this.disableAddToCartButtons=()=>{this.productsOnPage.length&&this.productsOnPage.forEach((o=>{var e,t;this.allRestrictedItems.some((e=>e.itemDescription===o.description))?null===(e=o.cartButtonNode)||void 0===e||e.setAttribute("disabled","disabled"):null===(t=o.cartButtonNode)||void 0===t||t.removeAttribute("disabled")}))},this.handleItemRestrictions=async()=>{this.productsOnPage=B();const o=this.productsOnPage.filter((o=>!this.allFoundProducts.some((e=>e.title===o.title)))),e=await this.getNewItemRestrictions(o);this.allRestrictedItems.push(...e),this.allFoundProducts.push(...o),this.disableAddToCartButtons()},this.reloadHelloData=async()=>{await this.handleItemRestrictions(),this.triggerShowPeekMessage(),this.displayCurrency()},this.handleProductCountChange=O((()=>{const{productTitleElementSelector:o}=a.helloSettings;if(o){const o=B();if(this.allFoundProducts.length!==o.length&&window.location.href===this.initialUrl){if(!this.allFoundProducts.length)return;this.reloadHelloData()}}}),1e3),this.watchProductCountChange=()=>{new MutationObserver(this.handleProductCountChange).observe(document.body,{childList:!0,subtree:!0})},this.updateHelloOnPageChange=()=>{this.watchProductCountChange(),setInterval((()=>{if(window.location.href!==this.initialUrl){const o=this.initialUrl&&new URL(this.initialUrl);(o&&f(o.searchParams))!==m.selectedCountryCode&&(this.allFoundProducts=[],this.allRestrictedItems=[],this.productsOnPage=[]),this.initialUrl=window.location.href,a.currentHelloPage=(()=>{const{href:o}=window.location,{cartUrlPattern:e,homepageUrlPattern:t,productDetailUrlPattern:s,productListUrlPattern:i}=a.helloSettings;return e&&new RegExp(e).test(o)?"cart":s&&new RegExp(s).test(o)?"productDetail":i&&new RegExp(i).test(o)?"productList":t&&new RegExp(t).test(o)?"home":""})();const e=new URL(window.location.href);if(!f(e.searchParams))return void g(m.selectedCountryCode);this.reloadHelloData()}}),1e3)},this.changeShowDialog=o=>{this.showDialog=o},this.shouldAnimateLeftDesktop=()=>{const o=this.helloRef&&getComputedStyle(this.helloRef).position;if(this.helloRef&&"relative"===o)return y(this.helloRef)},this.isShippableCountry=(o=!0)=>!(!m.localizationLoaded||!m.isShippableCountry&&(o&&u("Hello: not shippable country"),1)),this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettingsOverride=void 0,this.showPeekMessage=!1,this.zonosStoreHelloSettings=a.helloSettings,this.showDialog=!1,this.peekMessage="",this.initialUrl="",this.allRestrictedItems=[],this.allFoundProducts=[],this.productsOnPage=[]}componentWillLoad(){const o=setInterval((async()=>{this.helloRef&&a.loadedConfig&&(this.helloRef.setAttribute("data-zonos-hello-loaded",""),this.updateHelloOnPageChange(),clearInterval(o))}),100)}async displayCurrency(){m.exchangeRate?w():console.error("Could not display currency. Exchange rate and format data is not available.")}async convertAndFormat(o){z(o)}async convert(o){b(o)}async format(o){v(o)}handleResize(){O(this.render.bind(this),500)}render(){var o,s;if(null===(o=a.helloSettings.excludedUrlPatterns)||void 0===o?void 0:o.some((o=>new RegExp(o).test(window.location.href))))return u("Hello is excluded on this url","warn"),null;const{selectedCountryCode:i}=m,n=this.mobileLocationOverride||a.helloSettings.mobileLocation,r=window.innerWidth<768,h=this.animateFromLeftOverride||r&&n.includes("LEFT")||this.shouldAnimateLeftDesktop()||!1,d=n.includes("TOP"),c=l(a.appearance,this.appearanceSettingsOverride),{theme:p}=c,f=null===(s=this.allRestrictedItems)||void 0===s?void 0:s.filter((o=>this.productsOnPage.some((e=>e.description===o.itemDescription)))),g=this.isShippableCountry()&&!!i;return e(t,{class:"zonos--hello zonos--elements","data-theme":p},g&&e("div",{class:"zonos--hello-wrapper"},e("button",{class:x(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",h&&"zonos--hello-widget-left zonos--hello-widget-animate-from-left",d&&"zonos--hello-widget-top",!!this.allRestrictedItems.length&&"zonos--hello-has-restrictions"]),onClick:()=>{this.changeShowDialog(!this.showDialog)},onMouseEnter:()=>this.enableShowPeekMessage(),onMouseLeave:()=>this.showPeekMessage=!1,ref:o=>o&&(this.helloRef=o)},e("zonos-text",{class:"zonos--hello-message"},this.peekMessage),i&&e("div",{class:"zonos--hello-country-flag-wrapper"},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:i}))),e("div",{class:x(["zonos--hello-dialog-wrapper",this.mobileLocationOverride&&"zonos--hello-dialog-wrapper-mobile-override"]),style:{height:this.showDialog?"fit-content":"0px"}},e("zonos-hello-dialog",{animateFromLeftOverride:this.animateFromLeftOverride,appearanceSettings:c,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,restrictedItems:f,setIsOpen:this.changeShowDialog}))))}};N.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block}:host .zonos--hello-wrapper{position:relative}:host .zonos--hello-wrapper .zonos--hello-dialog-wrapper-mobile-override{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}@media (max-width: 768px){:host .zonos--hello-wrapper{position:fixed;bottom:0;left:0;width:100vw;z-index:1001;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content}}:host .zonos--hello-widget{-webkit-transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);padding:6px;border-radius:30px;background:var(--amino-page-background);font-size:var(--amino-font-size-s);border:var(--amino-border);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;cursor:pointer;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;position:relative;z-index:1000}:host .zonos--hello-widget>.zonos--hello-message{-ms-flex-order:0;order:0;max-width:0;height:100%;white-space:nowrap;-webkit-transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);transition:border 0.3s ease-in, all 0.7s cubic-bezier(0.31, -0.02, 0.06, 1.53);overflow:hidden;color:var(--amino-text-color);position:absolute;background:var(--amino-page-background);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-top-left-radius:30px;border-bottom-left-radius:30px;left:0;-webkit-transform:translateX(calc(-100% + var(--amino-space-16)));transform:translateX(calc(-100% + var(--amino-space-16)));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--amino-border);border-bottom:var(--amino-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--amino-red-100);border:1px solid var(--amino-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--amino-red-100);color:var(--amino-red-800);font-weight:500}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:1px solid var(--amino-red-200)}:host .zonos--hello-widget.zonos--hello-show-peek-message{max-width:100vw;width:100%}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{max-width:100vw;padding:0 6px;padding-right:var(--amino-space-16);border:var(--amino-border)}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:0;border-bottom-left-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left)>.zonos--hello-message{border-right:none}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:0;border-bottom-right-radius:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{border-left:0}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-16);padding-right:6px;border-left:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-ms-flex-order:1;order:1;-webkit-transform:translateX(calc(100% - var(--amino-space-16)));transform:translateX(calc(100% - var(--amino-space-16)));right:0;left:auto;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:30px;border-bottom-right-radius:30px}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{height:18px;width:18px;position:relative;overflow:hidden;border-radius:30px;-webkit-box-shadow:var(--amino-v3-shadow-medium);box-shadow:var(--amino-v3-shadow-medium);z-index:10;justify-self:center}@media (max-width: 768px){:host .zonos--hello-widget .zonos--hello-country-flag-wrapper .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:var(--amino-space-32);right:var(--amino-space-32);border-radius:var(--amino-radius-4);padding:var(--amino-space-4);border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:var(--amino-space-32);right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:var(--amino-space-32)}:host .zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--amino-radius-4);border-bottom-left-radius:var(--amino-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--amino-radius-4);border-bottom-right-radius:var(--amino-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-8);padding-right:var(--amino-space-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--amino-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--amino-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:var(--amino-space-32);right:var(--amino-space-32);border-radius:var(--amino-radius-4);padding:var(--amino-space-4);border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:var(--amino-space-32);right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:var(--amino-space-32)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-mobile-override.zonos--hello-widget>.zonos--hello-message{position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;border-radius:30px;top:0;bottom:0;left:0;-webkit-transform:translateX(0);transform:translateX(0);width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message:not(.zonos--hello-widget-animate-from-left){border-top-left-radius:var(--amino-radius-4);border-bottom-left-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--amino-radius-4);border-bottom-right-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:var(--amino-space-8);padding-right:var(--amino-space-4)}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--amino-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--amino-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--amino-radius-4);width:24px}";export{N as zonos_hello}
@@ -0,0 +1 @@
1
+ import{z as e,c as t}from"./p-089ba905.js";import{h as n,l as o,a as s,b as r,t as i}from"./p-bbb154a9.js";import{i as a}from"./p-55f49f1e.js";import{g as l}from"./p-ff95f098.js";const d=()=>{const e=m.stripeLinkEventData,t=m.stripeAddressEventData;if(!t||!t.complete)throw new Error("Missing stripe address data");return{checkoutSessionId:E.checkoutSessionId||"",contact:{email:(null==e?void 0:e.value.email)||"",firstName:t.value.firstName||"",lastName:t.value.lastName||"",phone:t.value.phone||""},items:E.items.map((e=>e)),shippingAddress:{addressLine1:t.value.address.line1,addressLine2:t.value.address.line2||"",city:t.value.address.city,country:t.value.address.country,postalCode:t.value.address.postal_code,state:t.value.address.state}}},c=({borderStyle:e,theme:t})=>"DARK"===t?{borderRadius:l(e),colorBackground:"#101117",colorBackgroundText:"#C5C6CA",colorText:"#C5C6CA",colorTextPlaceholder:"#C5C6CA"}:{borderRadius:l(e)},{onChange:u,reset:p,state:m}=t((()=>({clientSecret:sessionStorage.getItem("zonos--client-secret")||null,fetchingLandedCostAbordController:null,isFetchingLandedCost:!1,isFetchingSession:!1,stripe:null,stripeAddressElement:null,stripeAddressEventData:null,stripeAddressUsedWhenFetchingLC:null,stripeBillingAddressElement:null,stripeElements:null,stripeElementsOptions:null,stripeLinkElement:null,stripeLinkEventData:null,stripeLinkUsedWhenFetchingLC:null,stripePaymentElement:null,stripePaymentEventData:null}))),h=async t=>{var n;const r=m.clientSecret;if(m.stripe){if(r){const i=(({clientSecret:t,overrideBorderRaidus:n,overridePrimaryColor:o,overrideTheme:r})=>{const i=o||e.appearance.colorPrimary,l=i&&a(i)?"night":"flat",d="DARK"===r?"night":"flat";return{appearance:{labels:"floating",rules:Object.assign({},{".Input":{padding:"0",paddingBottom:"8px",paddingLeft:"16px",paddingRight:"8px",paddingTop:"6px"}}),theme:r?d:l,variables:Object.assign({},c({borderStyle:n,theme:"LIGHT"}))},clientSecret:t,locale:s.selectedLocale}})({clientSecret:r,overrideBorderRaidus:null==t?void 0:t.overrideBorderRaidus,overridePrimaryColor:null==t?void 0:t.overridePrimaryColor,overrideTheme:null==t?void 0:t.overrideTheme}),l=JSON.stringify(i)===JSON.stringify(m.stripeElementsOptions);if(!m.stripeElements)return m.stripeElements=null===(n=m.stripe)||void 0===n?void 0:n.elements(i),m.stripeElementsOptions=i,void o("Stripe elements initialized");l||(m.stripeElements.update(i),m.stripeElementsOptions=i),o("Stripe elements initialized")}}else o("Skip. Stripe is not initialized")},v=()=>{sessionStorage.removeItem("zonos--client-secret"),p(),m.stripe=window.Zonos.stripe},g=async()=>{var t,o,s,i;const a=!!(null===(t=m.stripeAddressEventData)||void 0===t?void 0:t.complete),l=!!(null===(o=m.stripeLinkEventData)||void 0===o?void 0:o.complete),c=(()=>{var e,t,n,o;if(!m.fetchingLandedCostAbordController)return!1;const s=JSON.stringify(null===(e=m.stripeLinkUsedWhenFetchingLC)||void 0===e?void 0:e.value)!==JSON.stringify(null===(t=m.stripeLinkEventData)||void 0===t?void 0:t.value),r=JSON.stringify(null===(n=m.stripeAddressUsedWhenFetchingLC)||void 0===n?void 0:n.value)!==JSON.stringify(null===(o=m.stripeAddressEventData)||void 0===o?void 0:o.value);return s||r})();if(c&&(null===(s=m.fetchingLandedCostAbordController)||void 0===s||s.abort(),m.fetchingLandedCostAbordController=null),a&&l&&(c||!m.isFetchingLandedCost)){m.isFetchingLandedCost=!0,m.stripeAddressEventData&&(m.stripeAddressUsedWhenFetchingLC=Object.assign({},m.stripeAddressEventData)),m.stripeLinkEventData&&(m.stripeLinkUsedWhenFetchingLC=Object.assign({},m.stripeLinkEventData));try{const t=new AbortController;m.fetchingLandedCostAbordController=t;const{checkoutSessionWorkflow:o,shipmentRatingCalculateWorkflow:s}=await(async t=>{const o=e.checkoutSettings.buildLandedCost;if(o){const e=await(async e=>{var t;const o=d(),s=await e(o.checkoutSessionId,o.contact,o.shippingAddress);if(!s)throw new Error("Failed to build landed cost");const{errors:r,json:i}=await n("https://v1.route.js.zonos.com/api/zonos-elements/validate-landed-cost",{body:s,headers:{"Content-Type":"application/json"},method:"POST"});if(!i||r.length)throw new Error(`Invalid landed cost object: ${(null===(t=r.find(Boolean))||void 0===t?void 0:t.message)||"Unknown error"}`);return s})(o);return e}const{errors:s,json:r}=await n("https://v1.route.js.zonos.com/api/zonos-elements/calculate-landed-cost",{body:d(),method:"POST",signal:null==t?void 0:t.signal});if(s.length||!r)throw new Error("Failed to calculate landed cost");return r})(t);m.fetchingLandedCostAbordController=null,E.landedCostData=(null==o?void 0:o.filter(Boolean))||null,E.shippingData=(null==s?void 0:s.filter(Boolean))||null;const r=null===(i=E.landedCostData)||void 0===i?void 0:i.find(Boolean),a=r?r.subtotals:null;a&&A({exchangeRate:a.exchangeRate,items:a.items,landedCostTotal:0,presentmentCurrencyCode:a.presentmentCurrencyCode,shipping:0,total:a.items})}catch(e){r(e)}m.isFetchingLandedCost=!1}},y=e=>{let t=[],n=!0;switch(e){case"succeeded":t=[i("Your payment went through successfully! Thank you for shopping with us! We hope you had an enjoyable experience and your support means the world to us."),"","",i("We've sent an email confirmation of the order details for your review. And our team is carefully preparing your order so it arrives on time.")],n=!1;break;case"requires_capture":case"processing":t=[i("Payment processing. We'll update you when payment is received.")],n=!1;break;case"requires_payment_method":t=[i("Payment failed. Please try another payment method.")];break;default:t=[i("Something went wrong.")]}return{isError:n,messages:t}},f=async({clientSecret:e,storybookForceStatus:t})=>{if(t){const{isError:e,messages:n}=y(t);return{error:e,messages:n}}const n=e||m.clientSecret;if(!m.stripe||!n)return r("Failed to retrieve payment intent. Stripe is not initialized"),{error:!0,message:[i("Something went wrong.")]};const{paymentIntent:o}=await m.stripe.retrievePaymentIntent(n),s=null==o?void 0:o.status,{isError:a,messages:l}=y(s);return{error:a,messages:l}},w=async()=>{var e,t,n;const o=!!(null===(e=m.stripePaymentEventData)||void 0===e?void 0:e.complete),s=m.stripeElements,r=m.stripe;if(r&&s&&o&&m.clientSecret){const{error:e}=await r.confirmPayment({confirmParams:{receipt_email:null===(n=null===(t=m.stripeLinkEventData)||void 0===t?void 0:t.value)||void 0===n?void 0:n.email,return_url:window.location.href},elements:s,redirect:"if_required"});if(e){if("card_error"===e.type||"validation_error"===e.type)throw new Error(e.message);if("invalid_request_error"===e.type&&"payment_intent_unexpected_state"===e.code)return;throw new Error("An unexpected error occurred.")}}},S=async()=>{var e;const t=E.items.reduce(((e,t)=>e+t.amount*t.quantity),0);if(!t||!s.targetCurrency)return r("Fail to create checkout session - invalid total or currency"),!1;m.isFetchingSession=!0;const{errors:i,json:a}=await n("https://v1.route.js.zonos.com/api/zonos-elements/create-checkout-session",{body:{currency:(null===(e=E.items.find(Boolean))||void 0===e?void 0:e.currencyCode)||"",itemsAmount:t,presentmentCountryCode:s.selectedCountryCode||null},method:"POST"});if(m.isFetchingSession=!1,i.length||!a)return r("Error occurs when creating checkout session",JSON.stringify(i,null,2)),!1;const l=a.checkoutSessionCreate;return m.clientSecret=l.clientSecret,E.checkoutSessionId=l.id,A(Object.assign(Object.assign({},l.subtotals),{landedCostTotal:0,shipping:0,total:l.subtotals.items})),o("Exchange rate updated for cart items (checkout session create)","info",E.exchangeRate),o("done-init-checkout-session"),!0};u("clientSecret",(e=>{e&&m.stripe&&sessionStorage.setItem("zonos--client-secret",e),e||sessionStorage.removeItem("zonos--client-secret")}));const C=e=>{const t=new Date,n=e.getTime()-t.getTime();return Math.floor(n/864e5)},{onChange:k,reset:b,state:E}=t((()=>({checkoutSessionId:sessionStorage.getItem("zonos--checkout-session-id")||null,currency:"USD",dutiesTaxFees:0,error:null,exchangeRate:null,isSelectedShippingAboveDeminimis:!1,isSelectedShippingGuarantee:!1,items:[],landedCostData:null,selectedLandedCost:null,selectedShippingOption:null,selectedShippingOptionExpectedDate:"",selectedShippingOptionTransitTime:"",shipping:0,shippingData:null,step:"customer-info",subtotal:0,total:0}))),O=e=>{const t=e.minTransitAt?C(new Date(e.minTransitAt)):"",n=e.maxTransitAt?C(new Date(e.maxTransitAt)):"";return{expectedDate:e.minTransitAt?(({date:e,formatOptions:t={day:"numeric",weekday:"long",year:"numeric"}})=>new Intl.DateTimeFormat("en-US",t).format(e))({date:new Date(e.minTransitAt)}):"",maxTransit:n,minTransit:t}},j=()=>{sessionStorage.removeItem("zonos--checkout-session-id"),b()},T=({messages:e,title:t})=>{E.step="error",E.error={messages:e,title:t}},A=e=>{E.exchangeRate=e.exchangeRate,E.dutiesTaxFees=e.landedCostTotal,E.subtotal=e.items,E.total=e.total,E.currency=e.presentmentCurrencyCode},x=async({currency:e,itemsAmount:t,landedCostId:a})=>{if(a&&E.selectedLandedCost&&(A(E.selectedLandedCost.subtotals),o("Exchange rate updated for cart items (landed cost subtotal)","info",E.exchangeRate)),!E.checkoutSessionId)return r("Could not update cart total without checkout session id"),!1;const{json:l}=await(async({currency:e,id:t,itemsAmount:o,landedCostId:s,presentmentCountryCode:i})=>{const{errors:a,json:l}=await n("https://v1.route.js.zonos.com/api/zonos-elements/update-checkout-session",{body:{currency:e,id:t,itemsAmount:o,landedCostId:s,presentmentCountryCode:i},method:"POST"});return a.length||!l?(r("Error occurs when updating checkout session",JSON.stringify(a,null,2)),{errors:a,json:l}):{errors:[],json:l}})({currency:e,id:E.checkoutSessionId,itemsAmount:t,landedCostId:a,presentmentCountryCode:s.selectedCountryCode});return l?(a||(A(l.checkoutSessionUpdate.subtotals),o("Exchange rate updated for cart items (checkout session update)","info",E.exchangeRate)),!0):(r("Error occurs when updating checkout session"),T({messages:[i("There's been an error updating your checkout session. Please reload and try again or contact support if the error persists")],title:i("Error updating Checkout")}),!1)},z=async e=>{var t,n,o,s,r;E.selectedShippingOption=e;const{expectedDate:i,maxTransit:a,minTransit:l}=O(E.selectedShippingOption);E.selectedShippingOptionExpectedDate=i,E.selectedShippingOptionTransitTime=l&&a?`${l}-${a}`:`${l||a}`;const d=null===(t=E.landedCostData)||void 0===t?void 0:t.find((e=>{var t,n,o;return(null===(n=null===(t=e.landedCost)||void 0===t?void 0:t.shipmentRating)||void 0===n?void 0:n.id)===(null===(o=E.selectedShippingOption)||void 0===o?void 0:o.id)}));if(E.selectedLandedCost=d||null,!d)return!1;E.shipping=d.subtotals.shipping;const c="ZONOS"===(null===(n=null==d?void 0:d.landedCost)||void 0===n?void 0:n.landedCostGuaranteeCode),u=!!(null===(s=null===(o=null==d?void 0:d.landedCost)||void 0===o?void 0:o.deMinimis)||void 0===s?void 0:s.find((e=>["DUTY","TAX"].includes(e.type)&&"ABOVE"===e.threshold)));return E.isSelectedShippingAboveDeminimis=u,E.isSelectedShippingGuarantee=c,await x({landedCostId:null===(r=d.landedCost)||void 0===r?void 0:r.id})};k("checkoutSessionId",(()=>{E.checkoutSessionId?sessionStorage.setItem("zonos--checkout-session-id",E.checkoutSessionId):sessionStorage.removeItem("zonos--checkout-session-id")}));const D=async e=>{var t;E.items=e;const n=null===(t=e.find(Boolean))||void 0===t?void 0:t.currencyCode,o=e.reduce(((e,t)=>e+t.amount*t.quantity),0);n&&o&&(E.currency=n,m.isFetchingSession=!0,await x({currency:n,itemsAmount:o}),m.isFetchingSession=!1)},P=()=>{"customer-info"===E.step?E.step="shipping":"shipping"===E.step?E.step="payment":"payment"===E.step&&(E.step="finish")},B=()=>{"payment"===E.step?E.step="shipping":"shipping"===E.step&&(E.step="customer-info",E.selectedShippingOption=null,E.isSelectedShippingAboveDeminimis=!1,E.isSelectedShippingGuarantee=!1,E.selectedShippingOptionExpectedDate="",E.selectedShippingOptionTransitTime="",E.shipping=0)};export{A as a,O as b,E as c,P as d,B as e,x as f,j as g,D as h,z as i,T as j,h as k,S as l,g as m,w as n,v as o,f as p,m as s}
@@ -0,0 +1 @@
1
+ System.register(["./p-18904b7c.system.js","./p-b85be1ab.system.js","./p-23e7c655.system.js","./p-24eed2a8.system.js","./p-edbea8df.system.js","./p-da060b1c.system.js"],(function(o){"use strict";var t,n,r,a,e,i,s,d,c,h;return{setters:[function(o){t=o.r;n=o.h;r=o.H;a=o.d},function(o){e=o.z;i=o.e},function(o){s=o.c},function(o){d=o.g},function(o){c=o.i},function(o){h=o.i}],execute:function(){var u=function(o){var t=o||e.appearance.colorSecondary;var n=t&&c(t)?"var(--amino-".concat(t,")"):t;var r=n&&h(n)?"DARK":"LIGHT";return r};var b=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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--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(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}: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(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));}: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(--amino-gray-200)}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-200)}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-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(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color)}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-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(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}";var l=o("zonos_button",function(){function o(o){var n=this;t(this,o);this.handleSlotChange=function(){n.hasContent=true};this.class="";this.color=undefined;this.backgroundColor=undefined;this.borderStyle=undefined;this.isDisabled=false;this.icon=null;this.iconRight=false;this.size="sm";this.variant="standard";this.noBackground=false;this.noPaddingLeft=false;this.noPaddingRight=false;this.loading=false;this.theme=undefined;this.hasIcon=!!this.icon;this.hasContent=false}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()};o.prototype.render=function(){var o=this.loading||this.isDisabled;var t=this.color&&c(this.color)?"var(--amino-".concat(this.color,")"):this.color;var a=this.backgroundColor||e.appearance.colorSecondary;var h=this.variant==="standard"?u(a):undefined;var b=d(this.borderStyle);return n(r,{class:s(["zonos--elements",this.class]),"data-theme":this.theme||h,disabled:o,style:{"--background-color":a,"--border-radius":b,"--color":t,"--font-family":i()}},n("button",{class:s([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.variant,this.size,this.backgroundColor&&this.variant==="standard"&&"override-background"]),disabled:o},this.loading&&n("div",{class:"zonos--spinner-wrapper"},n("zonos-spinner",{size:16})),!this.loading&&!this.iconRight&&this.icon,n("slot",{onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))};Object.defineProperty(o,"watchers",{get:function(){return{icon:["iconChangeHandler"]}},enumerable:false,configurable:true});return o}());l.style=b;var g=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--amino-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--amino-gray-200)}:host.black{stroke:var(--amino-spinner-stroke-black)}:host.black circle.track{stroke:var(--amino-spinner-track-black)}:host.white{stroke:var(--amino-spinner-stroke-white)}:host.white circle.track{stroke:var(--amino-spinner-track-white)}:host.info{stroke:var(--amino-blue-600)}:host.info circle.track{stroke:var(--amino-blue-100)}:host.success{stroke:var(--amino-green-600)}:host.success circle.track{stroke:var(--amino-green-100)}:host.danger{stroke:var(--amino-red-600)}:host.danger circle.track{stroke:var(--amino-red-100)}:host.warning{stroke:var(--amino-orange-600)}:host.warning circle.track{stroke:var(--amino-orange-100)}@-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}";var v=o("zonos_spinner",function(){function o(o){t(this,o);this.size=32;this.color=undefined}o.prototype.render=function(){if(!this.el.shadowRoot){return null}return n(r,{class:s(["zonos--elements",this.color]),style:{"--size":"".concat(this.size,"px")}},n("svg",{viewBox:"0 0 50 50"},n("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),n("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"})))};Object.defineProperty(o.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});return o}());v.style=g}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as t,H as r,d as n}from"./p-956efa27.js";import{z as a,e as i}from"./p-089ba905.js";import{c as s}from"./p-b4b7f705.js";import{g as e}from"./p-ff95f098.js";import{i as d}from"./p-4c414a92.js";import{i as c}from"./p-55f49f1e.js";const h=class{constructor(t){o(this,t),this.handleSlotChange=()=>{this.hasContent=!0},this.class="",this.color=void 0,this.backgroundColor=void 0,this.borderStyle=void 0,this.isDisabled=!1,this.icon=null,this.iconRight=!1,this.size="sm",this.variant="standard",this.noBackground=!1,this.noPaddingLeft=!1,this.noPaddingRight=!1,this.loading=!1,this.theme=void 0,this.hasIcon=!!this.icon,this.hasContent=!1}iconChangeHandler(){this.hasIcon=!!this.icon}clickHandler(o){(this.loading||this.isDisabled)&&(o.preventDefault(),o.stopPropagation())}componentWillLoad(){this.iconChangeHandler()}render(){const o=this.loading||this.isDisabled,n=this.color&&d(this.color)?`var(--amino-${this.color})`:this.color,h=this.backgroundColor||a.appearance.colorSecondary,b="standard"===this.variant?(o=>{const t=o||a.appearance.colorSecondary,r=t&&d(t)?`var(--amino-${t})`:t;return r&&c(r)?"DARK":"LIGHT"})(h):void 0,u=e(this.borderStyle);return t(r,{class:s(["zonos--elements",this.class]),"data-theme":this.theme||b,disabled:o,style:{"--background-color":h,"--border-radius":u,"--color":n,"--font-family":i()}},t("button",{class:s([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.variant,this.size,this.backgroundColor&&"standard"===this.variant&&"override-background"]),disabled:o},this.loading&&t("div",{class:"zonos--spinner-wrapper"},t("zonos-spinner",{size:16})),!this.loading&&!this.iconRight&&this.icon,t("slot",{onSlotchange:this.handleSlotChange}),!this.loading&&this.iconRight&&this.icon))}static get watchers(){return{icon:["iconChangeHandler"]}}};h.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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--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(--amino-surface-color);-ms-flex-pack:center;justify-content:center;border-radius:var(--amino-radius-10);gap:var(--amino-space-8)}: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(--amino-surface-color);border:none;outline:1px solid var(--amino-surface-color);border-radius:var(--border-radius, var(--amino-radius-10));-webkit-transition:var(--amino-transition);transition:var(--amino-transition);font-weight:500;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;font-family:var(--font-family, Inter), Inter;letter-spacing:normal;cursor:pointer;white-space:nowrap;padding:var(--amino-space-8) var(--amino-space-24);color:var(--color, var(--amino-gray-1200));}: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(--amino-gray-200)}:host button[disabled] .zonos--spinner-wrapper{background-color:var(--amino-gray-200)}:host button:active{-webkit-transform:scale(0.99);transform:scale(0.99)}:host button.sm{height:var(--amino-size-sm);line-height:var(--amino-size-sm);padding:var(--amino-space-4) var(--amino-space-8)}:host button.sm:not(.has-content).has-icon{padding:0 var(--amino-space-4)}:host button.md{height:var(--amino-size-md);line-height:var(--amino-size-md);padding:var(--amino-space-8) var(--amino-space-16)}:host button.md:not(.has-content).has-icon{padding:0 var(--amino-space-8)}:host button.lg{height:var(--amino-size-lg);line-height:var(--amino-size-lg);padding:var(--amino-space-12) var(--amino-space-24)}:host button.lg:not(.has-content).has-icon{padding:0 var(--amino-space-16)}:host button:not(.only-icon).has-icon{gap:var(--amino-space-8)}:host button.override-background{background-color:var(--background-color, var(--amino-gray-0));color:var(--color, var(--amino-gray-1200));outline:1px solid var(--background-color, var(--amino-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(--amino-blue-600);outline:1px solid var(--amino-blue-600);color:var(--amino-gray-0)}:host button:not(.override-background).primary:not([disabled]):hover{background-image:var(--amino-button-primary-hover)}:host button:not(.override-background).primary:not([disabled]):active{background:var(--amino-blue-700)}:host button:not(.override-background).primary:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).primary[disabled]{background:var(--amino-blue-400)}:host button:not(.override-background).primary[disabled] .zonos--spinner-wrapper{background-color:var(--amino-blue-400)}:host button:not(.override-background).primary .zonos--spinner-wrapper{background-color:var(--amino-blue-600)}:host button:not(.override-background).success{background:var(--amino-green-600);outline:1px solid var(--amino-green-600);color:var(--amino-gray-0)}:host button:not(.override-background).success:not([disabled]):hover{background-image:var(--amino-button-success-hover)}:host button:not(.override-background).success:not([disabled]):active{background:var(--amino-green-700)}:host button:not(.override-background).success:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).success[disabled]{background:var(--amino-green-400)}:host button:not(.override-background).success[disabled] .zonos--spinner-wrapper{background-color:var(--amino-green-400)}:host button:not(.override-background).danger{background:var(--amino-red-600);outline:1px solid var(--amino-red-600);color:var(--amino-gray-0)}:host button:not(.override-background).danger:not([disabled]):hover{background-image:var(--amino-button-danger-hover)}:host button:not(.override-background).danger:not([disabled]):active{background:var(--amino-red-700)}:host button:not(.override-background).danger:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).danger[disabled]{background:var(--amino-red-400)}:host button:not(.override-background).danger[disabled] .zonos--spinner-wrapper{background-color:var(--amino-red-400)}:host button:not(.override-background).warning{background:var(--amino-orange-600);outline:1px solid var(--amino-orange-600);color:var(--amino-gray-0)}:host button:not(.override-background).warning:not([disabled]):hover{background-image:var(--amino-button-warning-hover)}:host button:not(.override-background).warning:not([disabled]):active{background:var(--amino-orange-700)}:host button:not(.override-background).warning:not([disabled]):focus{-webkit-box-shadow:var(--amino-focus-button);box-shadow:var(--amino-focus-button)}:host button:not(.override-background).warning[disabled]{background:var(--amino-orange-400)}:host button:not(.override-background).warning[disabled] .zonos--spinner-wrapper{background-color:var(--amino-orange-400)}:host button:not(.override-background).subtle{background:transparent;color:var(--color)}:host button:not(.override-background).subtle:not([disabled]):hover{background:var(--amino-gray-100)}:host button:not(.override-background).subtle:not([disabled]):active{background:var(--amino-gray-200)}:host button:not(.override-background).subtle:focus{-webkit-box-shadow:var(--amino-button-focus-ring);box-shadow:var(--amino-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(--amino-gray-0)}:host button:not(.override-background).outline{background:transparent;outline:1px solid var(--amino-gray-700)}:host button:not(.override-background).outline:not([disabled]):hover{background-color:var(--amino-gray-100)}:host button:not(.override-background).outline:not([disabled]):active{background:var(--amino-gray-200)}";const b=class{constructor(t){o(this,t),this.size=32,this.color=void 0}render(){return this.el.shadowRoot?t(r,{class:s(["zonos--elements",this.color]),style:{"--size":`${this.size}px`}},t("svg",{viewBox:"0 0 50 50"},t("circle",{class:"track",cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}),t("circle",{cx:"25",cy:"25",fill:"none",id:"loading-spinner-circle",r:"20","stroke-width":"5"}))):null}get el(){return n(this)}};b.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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(--size);height:var(--size);display:-ms-inline-flexbox;display:inline-flex}:host svg{width:var(--size);height:var(--size);stroke:var(--amino-blue-600);-webkit-animation:rotate 2s linear infinite;animation:rotate 2s linear infinite}:host circle.track{stroke:var(--amino-gray-200)}:host.black{stroke:var(--amino-spinner-stroke-black)}:host.black circle.track{stroke:var(--amino-spinner-track-black)}:host.white{stroke:var(--amino-spinner-stroke-white)}:host.white circle.track{stroke:var(--amino-spinner-track-white)}:host.info{stroke:var(--amino-blue-600)}:host.info circle.track{stroke:var(--amino-blue-100)}:host.success{stroke:var(--amino-green-600)}:host.success circle.track{stroke:var(--amino-green-100)}:host.danger{stroke:var(--amino-red-600)}:host.danger circle.track{stroke:var(--amino-red-100)}:host.warning{stroke:var(--amino-orange-600)}:host.warning circle.track{stroke:var(--amino-orange-100)}@-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}";export{h as zonos_button,b as zonos_spinner}
@@ -0,0 +1 @@
1
+ import{r as o,h as r,H as a}from"./p-956efa27.js";import{e as n}from"./p-089ba905.js";import{c as s}from"./p-b4b7f705.js";const t=class{constructor(r){o(this,r),this.bold=!1,this.color="gray",this.icon=void 0,this.iconRight=!1,this.size="default",this.rounded=!1,this.class=""}render(){return r(a,{class:s(["zonos--elements zonos--badge",this.class]),style:{"--font-family":n()}},r("div",{class:s(["zonos--badge-content",this.color,this.rounded&&"rounded",this.iconRight&&"icon-right",this.size,this.bold&&"bold"])},this.icon,r("zonos-text",null,r("slot",null))))}};t.style=":host{font-family:var(--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--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:var(--amino-space-8);font-size:var(--amino-font-size-s);padding:4px 8px;text-align:center;border-radius:var(--amino-radius-6);background-color:var(--amino-gray-100);color:var(--amino-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(--amino-gray-600);color:var(--amino-gray-100)}:host .blue{background-color:var(--amino-blue-100);color:var(--amino-blue-800)}:host .blue.bold{background-color:var(--amino-blue-600);color:var(--amino-blue-100)}:host .green{background-color:var(--amino-green-100);color:var(--amino-green-800)}:host .green.bold{background-color:var(--amino-green-600);color:var(--amino-green-100)}:host .red{background-color:var(--amino-red-100);color:var(--amino-red-800)}:host .red.bold{background-color:var(--amino-red-600);color:var(--amino-red-100)}:host .orange{background-color:var(--amino-orange-100);color:var(--amino-orange-800)}:host .orange.bold{background-color:var(--amino-orange-600);color:var(--amino-orange-100)}:host .purple{background-color:var(--amino-purple-100);color:var(--amino-purple-800)}:host .purple.bold{background-color:var(--amino-purple-600);color:var(--amino-purple-100)}:host .cyan{background-color:var(--amino-cyan-100);color:var(--amino-cyan-800)}:host .cyan.bold{background-color:var(--amino-cyan-600);color:var(--amino-cyan-100)}";export{t as zonos_badge}
@@ -1 +1 @@
1
- System.register(["./p-643eeb24.system.js","./p-779621e4.system.js"],(function(n){"use strict";var t,e;return{setters:[function(n){t=n.z},function(n){e=n.l}],execute:function(){var i=890;var o=n("i",(function(n){return n||window.innerWidth<i}));var u=n("s",(function(n){var i=t.checkoutSettings.analyticsProviders.find((function(n){return n.type==="GOOGLE_ANALYTICS"}));if(!i||(i===null||i===void 0?void 0:i.status)==="DISABLED"){return}if(typeof window.gtag==="function"){e("Zonos submits gtag event","log",n);window.gtag("event",n,{})}}))}}}));
1
+ System.register(["./p-b85be1ab.system.js","./p-8a8b08e9.system.js"],(function(n){"use strict";var t,e;return{setters:[function(n){t=n.z},function(n){e=n.l}],execute:function(){var i=890;var o=n("i",(function(n){return n||window.innerWidth<i}));var u=n("s",(function(n){var i=t.checkoutSettings.analyticsProviders.find((function(n){return n.type==="GOOGLE_ANALYTICS"}));if(!i||(i===null||i===void 0?void 0:i.status)==="DISABLED"){return}if(typeof window.gtag==="function"){e("Zonos submits gtag event","log",n);window.gtag("event",n,{})}}))}}}));