@zonos/elements 1.3.18-alpha.1 → 1.3.18-alpha.2

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 (266) hide show
  1. package/dist/cjs/{cart-95209ae8.js → cart-941a31dd.js} +255 -5
  2. package/dist/cjs/{getBorderRadius-44b3eca1.js → getBorderRadius-bcb309a8.js} +1 -1
  3. package/dist/cjs/{index-654a6001.js → index-b071017b.js} +4 -1
  4. package/dist/cjs/{isDarkColor-01f45d3f.js → isDarkColor-b0393089.js} +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/{submitGtag-9d60f3bb.js → submitGtag-9210b4fe.js} +2 -2
  7. package/dist/cjs/zonos-address_8.cjs.entry.js +22 -11
  8. package/dist/cjs/zonos-badge_2.cjs.entry.js +4 -4
  9. package/dist/cjs/zonos-banner.cjs.entry.js +2 -2
  10. package/dist/cjs/zonos-button_3.cjs.entry.js +22 -11
  11. package/dist/cjs/zonos-card_2.cjs.entry.js +7 -7
  12. package/dist/cjs/{zonos-cart-items_10.cjs.entry.js → zonos-cart-items_11.cjs.entry.js} +112 -6
  13. package/dist/cjs/zonos-checkout.cjs.entry.js +34 -8
  14. package/dist/cjs/zonos-component.cjs.entry.js +2 -2
  15. package/dist/cjs/zonos-controller.cjs.entry.js +6 -6
  16. package/dist/cjs/zonos-country-flag.cjs.entry.js +5 -5
  17. package/dist/cjs/zonos-country-select_3.cjs.entry.js +11 -11
  18. package/dist/cjs/zonos-elements.cjs.js +2 -2
  19. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +8 -8
  20. package/dist/cjs/zonos-hello.cjs.entry.js +5 -5
  21. package/dist/cjs/zonos-input.cjs.entry.js +7 -7
  22. package/dist/cjs/zonos-link.cjs.entry.js +1 -1
  23. package/dist/cjs/zonos-logo.cjs.entry.js +4 -4
  24. package/dist/cjs/zonos-notification.cjs.entry.js +2 -2
  25. package/dist/cjs/zonos-payment.cjs.entry.js +6 -6
  26. package/dist/cjs/zonos-select-dialog-header_2.cjs.entry.js +6 -6
  27. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +3 -3
  28. package/dist/cjs/zonos-text.cjs.entry.js +2 -2
  29. package/dist/cjs/{zonosStore-d8bb0bda.js → zonosStore-7c6205ca.js} +2 -1
  30. package/dist/collection/collection-manifest.json +1 -0
  31. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +42 -5
  32. package/dist/collection/components/common/zonos-button/zonos-button.css +12 -0
  33. package/dist/collection/components/common/zonos-button/zonos-button.js +43 -8
  34. package/dist/collection/components/common/zonos-confirm-dialog/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  35. package/dist/collection/components/common/zonos-confirm-dialog/assets/HelpDuotoneIcon.svg +4 -0
  36. package/dist/collection/components/common/zonos-confirm-dialog/assets/WarningDuotoneIcon.svg +4 -0
  37. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.css +125 -0
  38. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +322 -0
  39. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +2 -2
  40. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +2 -2
  41. package/dist/collection/components/common/zonos-dialog/zonos-dialog.css +1 -4
  42. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +38 -4
  43. package/dist/collection/components/common/zonos-input/zonos-input.js +4 -4
  44. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +2 -2
  45. package/dist/collection/components/common/zonos-logo/zonos-logo.js +2 -2
  46. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +2 -2
  47. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +2 -2
  48. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +2 -2
  49. package/dist/collection/components/component-template/zonos-component/zonos-component.js +1 -1
  50. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +2 -2
  51. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +3 -3
  52. package/dist/collection/components/main/zonos-controller.js +3 -3
  53. package/dist/collection/components/store/hello/localization.js +12 -2
  54. package/dist/collection/components/store/translationStore/strings.arabic.js +12 -0
  55. package/dist/collection/components/store/translationStore/strings.base.js +12 -0
  56. package/dist/collection/components/store/translationStore/strings.chinese.js +12 -0
  57. package/dist/collection/components/store/translationStore/strings.danish.js +12 -0
  58. package/dist/collection/components/store/translationStore/strings.dutch.js +12 -0
  59. package/dist/collection/components/store/translationStore/strings.french.js +12 -0
  60. package/dist/collection/components/store/translationStore/strings.german.js +12 -0
  61. package/dist/collection/components/store/translationStore/strings.hebrew.js +12 -0
  62. package/dist/collection/components/store/translationStore/strings.indonesian.js +12 -0
  63. package/dist/collection/components/store/translationStore/strings.italian.js +12 -0
  64. package/dist/collection/components/store/translationStore/strings.japanese.js +12 -0
  65. package/dist/collection/components/store/translationStore/strings.korean.js +12 -0
  66. package/dist/collection/components/store/translationStore/strings.norwegian.js +12 -0
  67. package/dist/collection/components/store/translationStore/strings.polish.js +12 -0
  68. package/dist/collection/components/store/translationStore/strings.portuguese.js +12 -0
  69. package/dist/collection/components/store/translationStore/strings.russian.js +12 -0
  70. package/dist/collection/components/store/translationStore/strings.spanish.js +12 -0
  71. package/dist/collection/components/store/translationStore/strings.swedish.js +12 -0
  72. package/dist/collection/components/store/translationStore/strings.turkish.js +12 -0
  73. package/dist/collection/components/store/translationStore/strings.vietnamese.js +12 -0
  74. package/dist/collection/components/store/zonosStore.js +1 -0
  75. package/dist/collection/components/stripe/zonos-address/zonos-address.js +1 -1
  76. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +1 -1
  77. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -1
  78. package/dist/collection/scripts/zonosBase.js +2 -1
  79. package/dist/components/stripe.js +12 -2
  80. package/dist/components/translationStore.js +240 -0
  81. package/dist/components/zonos-address2.js +1 -1
  82. package/dist/components/zonos-button2.js +20 -8
  83. package/dist/components/zonos-checkout.js +70 -37
  84. package/dist/components/zonos-component.js +1 -1
  85. package/dist/components/zonos-confirm-dialog.d.ts +11 -0
  86. package/dist/components/zonos-confirm-dialog.js +6 -0
  87. package/dist/components/zonos-confirm-dialog2.js +161 -0
  88. package/dist/components/zonos-controller.js +1 -1
  89. package/dist/components/zonos-country-select2.js +2 -2
  90. package/dist/components/zonos-custom-message2.js +2 -2
  91. package/dist/components/zonos-dialog2.js +17 -5
  92. package/dist/components/zonos-hello-dialog-footer2.js +2 -2
  93. package/dist/components/zonos-hello-dialog2.js +3 -3
  94. package/dist/components/zonos-input2.js +4 -4
  95. package/dist/components/zonos-language-select2.js +2 -2
  96. package/dist/components/zonos-link-authentication2.js +1 -1
  97. package/dist/components/zonos-logo.js +2 -2
  98. package/dist/components/zonos-payment2.js +1 -1
  99. package/dist/components/zonos-select-dialog-header2.js +2 -2
  100. package/dist/components/zonos-tooltip2.js +2 -2
  101. package/dist/components/zonos-v-stack2.js +2 -2
  102. package/dist/components/zonosStore.js +1 -0
  103. package/dist/esm/{cart-6448e883.js → cart-cc593c2b.js} +255 -5
  104. package/dist/esm/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
  105. package/dist/esm/{index-e063389c.js → index-3b46f3c3.js} +4 -1
  106. package/dist/esm/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/esm/{submitGtag-b7d369cd.js → submitGtag-e50f903f.js} +2 -2
  109. package/dist/esm/zonos-address_8.entry.js +22 -11
  110. package/dist/esm/zonos-badge_2.entry.js +4 -4
  111. package/dist/esm/zonos-banner.entry.js +2 -2
  112. package/dist/esm/zonos-button_3.entry.js +22 -11
  113. package/dist/esm/zonos-card_2.entry.js +7 -7
  114. package/dist/esm/{zonos-cart-items_10.entry.js → zonos-cart-items_11.entry.js} +112 -7
  115. package/dist/esm/zonos-checkout.entry.js +34 -8
  116. package/dist/esm/zonos-component.entry.js +2 -2
  117. package/dist/esm/zonos-controller.entry.js +6 -6
  118. package/dist/esm/zonos-country-flag.entry.js +5 -5
  119. package/dist/esm/zonos-country-select_3.entry.js +11 -11
  120. package/dist/esm/zonos-elements.js +3 -3
  121. package/dist/esm/zonos-hello-dialog.entry.js +8 -8
  122. package/dist/esm/zonos-hello.entry.js +5 -5
  123. package/dist/esm/zonos-input.entry.js +7 -7
  124. package/dist/esm/zonos-link.entry.js +1 -1
  125. package/dist/esm/zonos-logo.entry.js +4 -4
  126. package/dist/esm/zonos-notification.entry.js +2 -2
  127. package/dist/esm/zonos-payment.entry.js +6 -6
  128. package/dist/esm/zonos-select-dialog-header_2.entry.js +6 -6
  129. package/dist/esm/zonos-shipping-rich-radio.entry.js +3 -3
  130. package/dist/esm/zonos-text.entry.js +2 -2
  131. package/dist/esm/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +2 -1
  132. package/dist/esm-es5/cart-cc593c2b.js +1 -0
  133. package/dist/esm-es5/{getBorderRadius-567f1786.js → getBorderRadius-d244b4b1.js} +1 -1
  134. package/dist/esm-es5/{index-e063389c.js → index-3b46f3c3.js} +1 -1
  135. package/dist/esm-es5/{isDarkColor-7f62035a.js → isDarkColor-39a36e82.js} +1 -1
  136. package/dist/esm-es5/loader.js +1 -1
  137. package/dist/esm-es5/{submitGtag-b7d369cd.js → submitGtag-e50f903f.js} +1 -1
  138. package/dist/esm-es5/zonos-address_8.entry.js +1 -1
  139. package/dist/esm-es5/zonos-badge_2.entry.js +1 -1
  140. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  141. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  142. package/dist/esm-es5/zonos-card_2.entry.js +1 -1
  143. package/dist/esm-es5/zonos-cart-items_11.entry.js +1 -0
  144. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  145. package/dist/esm-es5/zonos-component.entry.js +1 -1
  146. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  147. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  148. package/dist/esm-es5/zonos-country-select_3.entry.js +1 -1
  149. package/dist/esm-es5/zonos-elements.js +1 -1
  150. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  151. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  152. package/dist/esm-es5/zonos-input.entry.js +1 -1
  153. package/dist/esm-es5/zonos-link.entry.js +1 -1
  154. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  155. package/dist/esm-es5/zonos-notification.entry.js +1 -1
  156. package/dist/esm-es5/zonos-payment.entry.js +1 -1
  157. package/dist/esm-es5/zonos-select-dialog-header_2.entry.js +1 -1
  158. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  159. package/dist/esm-es5/zonos-text.entry.js +1 -1
  160. package/dist/esm-es5/{zonosStore-33ff08ff.js → zonosStore-32e33a45.js} +1 -1
  161. package/dist/scripts/loadZonos.js +1 -1
  162. package/dist/scripts/zonos.js +1 -1
  163. package/dist/scripts/zonosBase.js +1 -1
  164. package/dist/types/components/checkout/zonos-checkout/zonos-checkout.d.ts +11 -1
  165. package/dist/types/components/common/zonos-button/zonos-button.d.ts +7 -1
  166. package/dist/types/components/common/zonos-confirm-dialog/zonos-confirm-dialog.d.ts +60 -0
  167. package/dist/types/components/common/zonos-dialog/zonos-dialog.d.ts +6 -1
  168. package/dist/types/components/store/translationStore/strings.arabic.d.ts +12 -0
  169. package/dist/types/components/store/translationStore/strings.base.d.ts +12 -0
  170. package/dist/types/components/store/translationStore/strings.chinese.d.ts +12 -0
  171. package/dist/types/components/store/translationStore/strings.danish.d.ts +12 -0
  172. package/dist/types/components/store/translationStore/strings.dutch.d.ts +12 -0
  173. package/dist/types/components/store/translationStore/strings.french.d.ts +12 -0
  174. package/dist/types/components/store/translationStore/strings.german.d.ts +12 -0
  175. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +12 -0
  176. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +12 -0
  177. package/dist/types/components/store/translationStore/strings.italian.d.ts +12 -0
  178. package/dist/types/components/store/translationStore/strings.japanese.d.ts +12 -0
  179. package/dist/types/components/store/translationStore/strings.korean.d.ts +12 -0
  180. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +12 -0
  181. package/dist/types/components/store/translationStore/strings.polish.d.ts +12 -0
  182. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +12 -0
  183. package/dist/types/components/store/translationStore/strings.russian.d.ts +12 -0
  184. package/dist/types/components/store/translationStore/strings.spanish.d.ts +12 -0
  185. package/dist/types/components/store/translationStore/strings.swedish.d.ts +12 -0
  186. package/dist/types/components/store/translationStore/strings.turkish.d.ts +12 -0
  187. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +12 -0
  188. package/dist/types/components/store/translationStore.d.ts +1 -1
  189. package/dist/types/components/store/zonosStore.d.ts +4 -0
  190. package/dist/types/components.d.ts +142 -5
  191. package/dist/types/scripts/zonosBase.d.ts +15 -1
  192. package/dist/types/types/checkout/CheckoutConfig.d.ts +7 -0
  193. package/dist/zonos-elements/assets/ExclamationMarkDuotoneIcon.svg +4 -0
  194. package/dist/zonos-elements/assets/HelpDuotoneIcon.svg +4 -0
  195. package/dist/zonos-elements/assets/WarningDuotoneIcon.svg +4 -0
  196. package/dist/zonos-elements/{p-d7acc81c.entry.js → p-020a9b86.entry.js} +1 -1
  197. package/dist/zonos-elements/{p-6ea746b9.entry.js → p-04030a48.entry.js} +1 -1
  198. package/dist/zonos-elements/{p-fe246229.system.entry.js → p-0d0f9694.system.entry.js} +1 -1
  199. package/dist/zonos-elements/{p-dbee6587.entry.js → p-0e892292.entry.js} +1 -1
  200. package/dist/zonos-elements/{p-7f48fafe.entry.js → p-0fac99e7.entry.js} +1 -1
  201. package/dist/zonos-elements/p-1795c760.system.entry.js +1 -0
  202. package/dist/zonos-elements/{p-771fbeb3.system.js → p-1b9442f6.system.js} +1 -1
  203. package/dist/zonos-elements/{p-c1f4bb4a.entry.js → p-24ac1c6f.entry.js} +1 -1
  204. package/dist/zonos-elements/p-26a60a6e.entry.js +1 -0
  205. package/dist/zonos-elements/{p-835c8928.entry.js → p-281b8bdf.entry.js} +1 -1
  206. package/dist/zonos-elements/{p-a889c1bc.entry.js → p-2af19b63.entry.js} +1 -1
  207. package/dist/zonos-elements/{p-582d8b27.entry.js → p-2ced091f.entry.js} +1 -1
  208. package/dist/zonos-elements/{p-909a331c.js → p-2f759d82.js} +1 -1
  209. package/dist/zonos-elements/p-32744531.entry.js +1 -0
  210. package/dist/zonos-elements/{p-58f8cee7.system.entry.js → p-35ac375a.system.entry.js} +1 -1
  211. package/dist/zonos-elements/{p-e0706108.system.entry.js → p-3bc88c3c.system.entry.js} +1 -1
  212. package/dist/zonos-elements/{p-36a461a6.system.entry.js → p-3e26d7b3.system.entry.js} +1 -1
  213. package/dist/zonos-elements/{p-9ec93319.entry.js → p-498a0e18.entry.js} +1 -1
  214. package/dist/zonos-elements/{p-61100d2e.system.entry.js → p-4caaaaeb.system.entry.js} +1 -1
  215. package/dist/zonos-elements/{p-79f3c4f5.system.js → p-58e730b6.system.js} +1 -1
  216. package/dist/zonos-elements/{p-e7b4b756.entry.js → p-597b75f3.entry.js} +1 -1
  217. package/dist/zonos-elements/{p-3be2e469.entry.js → p-5e783394.entry.js} +1 -1
  218. package/dist/zonos-elements/{p-87badea9.system.js → p-62ecfbcc.system.js} +1 -1
  219. package/dist/zonos-elements/{p-beca252d.entry.js → p-6366e7e3.entry.js} +1 -1
  220. package/dist/zonos-elements/p-693b9985.js +1 -0
  221. package/dist/zonos-elements/{p-bf32179a.system.entry.js → p-6eda6199.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-0759a84d.system.entry.js → p-7c8ee4b9.system.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-305f27c7.entry.js → p-80442f16.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-345503b7.entry.js → p-80ea85b8.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-679877b1.system.entry.js → p-8171d013.system.entry.js} +1 -1
  226. package/dist/zonos-elements/{p-83cc2936.js → p-8c0b4a61.js} +1 -1
  227. package/dist/zonos-elements/{p-4dca5484.system.entry.js → p-8cd6633a.system.entry.js} +1 -1
  228. package/dist/zonos-elements/p-8da16d53.system.js +1 -0
  229. package/dist/zonos-elements/p-96b8c9ba.system.entry.js +1 -0
  230. package/dist/zonos-elements/{p-70c35519.system.entry.js → p-98a0b694.system.entry.js} +1 -1
  231. package/dist/zonos-elements/{p-fd49d864.entry.js → p-9aab3ad7.entry.js} +1 -1
  232. package/dist/zonos-elements/{p-ad088d46.system.entry.js → p-9e8d38f7.system.entry.js} +1 -1
  233. package/dist/zonos-elements/{p-83fecb2a.entry.js → p-9e9c318b.entry.js} +1 -1
  234. package/dist/zonos-elements/{p-e108e5ed.system.entry.js → p-a47382ae.system.entry.js} +1 -1
  235. package/dist/zonos-elements/{p-0ee61fba.system.entry.js → p-b98cdf39.system.entry.js} +1 -1
  236. package/dist/zonos-elements/{p-3638e2ed.entry.js → p-bd9b2165.entry.js} +1 -1
  237. package/dist/zonos-elements/{p-ff403840.entry.js → p-c20e5430.entry.js} +1 -1
  238. package/dist/zonos-elements/{p-13ddaf31.js → p-ce347974.js} +1 -1
  239. package/dist/zonos-elements/{p-f71489e5.system.entry.js → p-d0bc8902.system.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-17e265c3.system.entry.js → p-d7a939df.system.entry.js} +1 -1
  241. package/dist/zonos-elements/p-d7b8c1c1.system.entry.js +1 -0
  242. package/dist/zonos-elements/{p-163ff5b5.system.js → p-d99232c5.system.js} +1 -1
  243. package/dist/zonos-elements/p-dd0fd351.entry.js +1 -0
  244. package/dist/zonos-elements/p-e015cb0e.js +1 -0
  245. package/dist/zonos-elements/p-e0bf9666.system.js +1 -0
  246. package/dist/zonos-elements/{p-b98bdbcc.system.entry.js → p-e13bfbda.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-2fc561ac.system.entry.js → p-e1fbd05d.system.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-7cc730b0.js → p-e553dd19.js} +1 -1
  249. package/dist/zonos-elements/p-e6fa0ebc.system.js +1 -0
  250. package/dist/zonos-elements/{p-c64eefdd.system.entry.js → p-f6546bf4.system.entry.js} +1 -1
  251. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  252. package/dist/zonos-elements/zonos-elements.js +1 -1
  253. package/package.json +2 -2
  254. package/dist/esm-es5/cart-6448e883.js +0 -1
  255. package/dist/esm-es5/zonos-cart-items_10.entry.js +0 -1
  256. package/dist/zonos-elements/p-154aaf95.system.js +0 -1
  257. package/dist/zonos-elements/p-47c75f81.system.entry.js +0 -1
  258. package/dist/zonos-elements/p-54004793.system.entry.js +0 -1
  259. package/dist/zonos-elements/p-7b19cd96.entry.js +0 -1
  260. package/dist/zonos-elements/p-9c575a18.system.entry.js +0 -1
  261. package/dist/zonos-elements/p-aaf1e517.system.js +0 -1
  262. package/dist/zonos-elements/p-aff5f4ca.js +0 -1
  263. package/dist/zonos-elements/p-ca621143.entry.js +0 -1
  264. package/dist/zonos-elements/p-e3335228.entry.js +0 -1
  265. package/dist/zonos-elements/p-ef9cbb66.system.js +0 -1
  266. package/dist/zonos-elements/p-f1962041.js +0 -1
@@ -1 +1 @@
1
- import{r as s,c as o,h as e,H as t,d as i}from"./p-13ddaf31.js";import{k as n,d as a,l as d,t as l}from"./p-aff5f4ca.js";import{i as r}from"./p-81a54668.js";import{i as c,c as h}from"./p-0c64dbbb.js";import{z as f,d as b}from"./p-f1962041.js";import{c as p}from"./p-b4b7f705.js";import{R as m}from"./p-08e7107d.js";import{g as u}from"./p-83cc2936.js";import{i as z}from"./p-909a331c.js";const y=class{constructor(e){s(this,e),this.invalidCharacters=o(this,"invalidCharacters",7),this.type=void 0,this.titleText=void 0,this.defaultAddress=null,this.stripe=window.Zonos.stripe,this.isDirtyAddress=!1}getStripeAddressInstance(){return"billing"===this.type?{stripeAddressElement:n.stripeBillingAddressElement,stripeAddressEventData:n.stripeBillingAddressEventData,stripeElements:n.stripeElementsForBillingAddress}:{stripeAddressElement:n.stripeAddressElement,stripeAddressEventData:n.stripeAddressEventData,stripeElements:n.stripeElements}}updateAddressEventData({event:s,type:o}){"billing"===o?n.stripeBillingAddressEventData=s:n.stripeAddressEventData=s}updateAddressElement({stripeAddressElement:s,type:o}){"shipping"!==o?n.stripeBillingAddressElement=s:n.stripeAddressElement=s}async watchInitStripe(){var s,o;this.stripe=window.Zonos.stripe;const{stripeAddressEventData:e,stripeElements:t}=this.getStripeAddressInstance();if(!this.stripe||!t)return void a("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 i=d.shippingZoneCountries,n=i?Object.values(i).map((s=>s.code)):[],l=t.create("address",{allowedCountries:"shipping"===this.type?n:[],contacts:this.defaultAddress&&!e?[this.defaultAddress]:[],defaultValues:{address:Object.assign(Object.assign({},null==e?void 0:e.value.address),{country:(null==e?void 0:e.value.address.country)||d.selectedCountryCode||"AL"}),firstName:null==e?void 0:e.value.firstName,lastName:null==e?void 0:e.value.lastName,phone:null==e?void 0:e.value.phone},display:{name:"split"},fields:{phone:"always"},mode:this.type,validation:{phone:{required:"always"}}});l.mount(this.el.querySelector(".zonos--address-component")),l.on("change",(s=>{const o=s.value;!this.isDirtyAddress&&o.address.line1.length>=3&&(this.isDirtyAddress=!0,setTimeout((()=>{if(r())this.el.scrollIntoView({behavior:"smooth",block:"end"});else{const s="shipping"===this.type?100:600,o=this.el.closest(".zonos--group"),e=this.el.getBoundingClientRect().top+s;null==o||o.scrollTo({behavior:"smooth",top:e})}}),600)),this.updateAddressEventData({event:Object.assign(Object.assign({},s),{elementMode:this.type,elementType:"address",value:Object.assign(Object.assign({},o),{firstName:o.firstName||o.name.split(" ")[0],lastName:o.lastName||o.name.split(" ")[1]})}),type:this.type})})),this.updateAddressElement({stripeAddressElement:l,type:this.type})}disconnectedCallback(){const s=this.getStripeAddressInstance().stripeAddressElement;null==s||s.destroy()}componentDidLoad(){const s=this.getStripeAddressInstance().stripeAddressEventData;this.isDirtyAddress=!!s&&s.value.address.line1.length>0,this.watchInitStripe()}render(){return e(t,{key:"f45a7bbe9d6b5ffac15671a862b3ad4f2eb4a87b",class:"zonos--address zonos--elements"},e("zonos-text",{key:"a9119e6e0c4e5c81a7d17ebe4d6bec925404a3dd",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{key:"7dc12043c6e75ebabd646490c390bafdc2cd4a1d",class:"zonos--address-component"}))}get el(){return i(this)}static get watchers(){return{stripe:["watchInitStripe"]}}};y.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:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";const g=class{constructor(o){s(this,o),this.currentAddress=void 0,this.addressType=void 0}render(){var s;const{city:o,country:i,email:n,line1:a,line2:r,name:h,phone:f,postal_code:b,state:p}=this.currentAddress,m=null===(s=d.shippingZoneCountries)||void 0===s?void 0:s[i],u=({bold:s,content:o})=>{const t=c(o)?"red-600":"gray-1200";return e("zonos-text",{textColor:t,type:s?"boldLabel":"body"},o)};return e(t,{class:"zonos--address-form zonos--elements"},e("div",{class:"zonos--title"},e("zonos-text",{textColor:"gray-700",type:"smallHeader"},l("shipping"===this.addressType?"Shipping":"Billing"))),e("div",{class:"zonos--address-group"},h&&e("div",{class:"zonos--address-line"},u({bold:!0,content:h})),n&&e("div",{class:"zonos--address-line"},u({content:n})),f&&e("div",{class:"zonos--address-line"},u({content:f})),a&&e("div",{class:"zonos--address-line"},u({content:a})),r&&e("div",{class:"zonos--address-line"},u({content:r})),e("div",{class:"zonos--address-line"},o&&u({content:o}),p&&u({content:p}),b&&u({content:b})),m&&e("div",{class:"zonos--address-line"},e("zonos-country-flag",{class:"zonos--country-flag",countryCode:m.code})," ",u({content:m.displayName}))))}};g.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--title{margin-bottom:12px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:4px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-line{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .zonos--address-line zonos-text+zonos-text::before{content:", ";color:var(--zonos-elements-gray-1200);margin-right:4px}:host .zonos--country-flag{width:20px;height:14px;border-radius:2px;margin:1px;position:relative;overflow:hidden;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);margin-right:8px;z-index:10;justify-self:center}';const v=class{constructor(e){s(this,e),this.addressChange=o(this,"addressChange",7),this.onInputChange=({key:s,value:o})=>{this.addressChange.emit(Object.assign(Object.assign({},this.localAddress),{[s]:o}))},this.currentAddress=void 0,this.translatedAddress=void 0,this.addressType=void 0,this.localAddress=this.currentAddress}watchCurrentAddress(){var s,o,e,t,i,n;const{city:a,line1:d,line2:l,name:r,postal_code:c,state:h}=this.currentAddress;this.localAddress=Object.assign(Object.assign({},this.currentAddress),{city:(null===(s=this.translatedAddress.city)||void 0===s?void 0:s[a])||a,line1:(null===(o=this.translatedAddress.line1)||void 0===o?void 0:o[d])||d,line2:(null===(e=this.translatedAddress.line2)||void 0===e?void 0:e[l])||l,name:(null===(t=this.translatedAddress.name)||void 0===t?void 0:t[r])||r,postal_code:(null===(i=this.translatedAddress.postal_code)||void 0===i?void 0:i[c])||c,state:(null===(n=this.translatedAddress.state)||void 0===n?void 0:n[h])||h})}componentWillLoad(){this.watchCurrentAddress()}render(){const{city:s,country:o,line1:i,line2:n,name:a,phone:d,postal_code:r,state:h}=this.localAddress,f=a.split(" ")[0]||"",b=a.split(" ")[1]||"";return e(t,{key:"9c1ee87200d1f90e9dfac58c49aabba1777373a9",class:"zonos--address-form zonos--elements"},e("div",{key:"eec3416268ff2324fd751408552705086905423d",class:"zonos--title"},e("zonos-text",{key:"a4c254f78420dcfc712e1a83b20dd3ac9e64c460",textColor:"gray-700",type:"smallHeader"},l("shipping"===this.addressType?"Shipping":"Billing"))),e("div",{key:"b8109545d282fb8c06a2e791c30088018d6ffec0",class:"zonos--address-group"},e("div",{key:"833a395984cd75242e5d97697fd6566f11932d1b",class:"zonos--contact"},e("zonos-text",{key:"e60f574e95162aabf6465b878fc9b16c708e8029",type:"label"},l("Contact")),e("zonos-input",{key:"24cd24a362a1bbc76d0c91718c48ae32baa20ae6",class:"zonos--form-email",inputLabel:l("Email"),inputValue:this.currentAddress.email,isDisabled:!0}),e("div",{key:"84e64ef44eb3b39ac7ab542e07d7a52a95377cae",class:"zonos--name zonos--address-row"},e("zonos-input",{key:"26621aca0d57a7fee743874b8d11af5f58c91b69",class:"zonos--form-first-name",inputLabel:l("First name"),inputValue:f,isError:c(f),onInputChange:s=>this.onInputChange({key:"name",value:`${s.detail} ${b}`})}),e("zonos-input",{key:"01e3e5038b4a4311dd5874a1213f936451dc300d",class:"zonos--form-last-name",inputLabel:l("Last name"),inputValue:b,isError:c(b),onInputChange:s=>this.onInputChange({key:"name",value:`${f} ${s.detail}`})}))),e("div",{key:"eb42dece28082ff16a453110b3208de5b44b9fdb",class:"zonos--address"},e("zonos-text",{key:"3557122c716533be7b36a8bd395ea616a7061665",type:"label"},l("Address")),e("zonos-input",{key:"bcc7d84d530f2f3a10537117eb6ef143df7cc8e2",class:"zonos--form-country",inputLabel:l("Country"),inputValue:o,isDisabled:!0}),e("zonos-input",{key:"6ce78e25151a129b69b501cf768604134a395e85",class:"zonos--form-line1",inputLabel:l("Address line 1"),inputValue:i,isError:c(i),onInputChange:s=>this.onInputChange({key:"line1",value:s.detail})}),e("zonos-input",{key:"6f7a18010e2d8131327154a31ba58544df56768c",class:"zonos--form-line2",inputLabel:l("Address line 2"),inputValue:n,isError:c(n),onInputChange:s=>this.onInputChange({key:"line2",value:s.detail})}),e("div",{key:"48afbf7a3cbd26fddfea4f2799005a51b1c3d3c6",class:"zonos--address-row"},e("zonos-input",{key:"6decf8c430d8d25b2c555b110009da74e0ac9e5f",class:"zonos--form-city",inputLabel:l("City"),inputValue:s,isError:c(s),onInputChange:s=>this.onInputChange({key:"city",value:s.detail})}),e("zonos-input",{key:"065e1be213d3cfec7749ab32890f96b0b484a25a",class:"zonos--form-state",inputLabel:l("State/Province"),inputValue:h,isError:c(h),onInputChange:s=>this.onInputChange({key:"state",value:s.detail})})),e("zonos-input",{key:"a69244bf84c9fd007c9ad4aad2b6cc6d44420775",class:"zonos--form-postal-code",inputLabel:l("Postal code"),inputValue:r,isError:c(r),onInputChange:s=>this.onInputChange({key:"postal_code",value:s.detail})}),e("zonos-input",{key:"0bcc89de1ecc4aae8a69d74eff42dfd117ada40b",class:"zonos--form-phone",inputLabel:l("Phone number"),inputValue:d,onInputChange:s=>this.onInputChange({key:"phone",value:s.detail})}))))}static get watchers(){return{translatedAddress:["watchCurrentAddress"]}}};v.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--title{margin-bottom:20px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:20px;-ms-flex-direction:column;flex-direction:column;margin:1px}:host .zonos--contact{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-row{display:-ms-flexbox;display:flex;gap:8px}:host .zonos--address-row>*{-ms-flex:1;flex:1}:host .zonos--address{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}";const x=class{constructor(e){s(this,e),this.closeDialog=o(this,"closeDialog",7),this.continueClicked=o(this,"continueClicked",7),this.closeDialogHandler=()=>{this.closeDialog.emit()},this.getTranslatedAddress=({currentAddress:s,translatedAddress:o})=>{var e,t,i,n,a,d;const{city:l,line1:r,line2:c,name:h,postal_code:f,state:b}=s;return{city:(null===(e=o.city)||void 0===e?void 0:e[l])||l,line1:(null===(t=o.line1)||void 0===t?void 0:t[r])||r,line2:(null===(i=o.line2)||void 0===i?void 0:i[c])||c,name:(null===(n=o.name)||void 0===n?void 0:n[h])||h,postal_code:(null===(a=o.postal_code)||void 0===a?void 0:a[f])||f,state:(null===(d=o.state)||void 0===d?void 0:d[b])||b}},this.continueClickHandler=async()=>{var s,o,e;this.continueLoading=!0;const t=this.billingAddress?this.getTranslatedAddress({currentAddress:this.billingAddress,translatedAddress:this.translatedBillingAddressState}):null,i=this.getTranslatedAddress({currentAddress:this.shippingAddress,translatedAddress:this.translatedShippingAddressState}),n=h(Object.assign(Object.assign({},i),{country:this.shippingAddress.country})),a=t&&this.billingAddress&&h(Object.assign(Object.assign({},t),{country:this.billingAddress.country})),d=!!Object.keys(n).length,l=!!a&&!!Object.keys(a).length;if(d||l){const t=null===(s=this.el.shadowRoot)||void 0===s?void 0:s.querySelectorAll("zonos-address-form"),i=null==t?void 0:t[0],n=null==t?void 0:t[1],a=(null===(o=null==i?void 0:i.shadowRoot)||void 0===o?void 0:o.querySelector(".has-error"))||(null===(e=null==n?void 0:n.shadowRoot)||void 0===e?void 0:e.querySelector(".has-error"));return a&&a.scrollIntoView({behavior:"smooth",block:"center"}),void(this.continueLoading=!1)}this.continueClicked.emit({billingAddress:t,shippingAddress:i})},this.buildTranslateAddressState=({currentAddress:s,translatedAddress:o})=>{const{city:e,line1:t,line2:i,name:n,postal_code:a,state:d}=s;return{city:{[e]:o.city},line1:{[t]:o.line1},line2:{[i]:o.line2},name:{[n]:o.name},postal_code:{[a]:o.postal_code},state:{[d]:o.state}}},this.continueLoading=!1,this.dialogLoading=void 0,this.dialogOpen=!1,this.submitBtnType=void 0,this.submitBtnColor=void 0,this.isMobile=!1,this.shippingAddress=void 0,this.billingAddress=void 0,this.translatedShippingAddress=void 0,this.translatedBillingAddress=void 0,this.showErrorBanner=!1,this.translatedShippingAddressState={},this.translatedBillingAddressState={}}watchTranslatedShippingAddress(){this.translatedShippingAddressState=this.translatedShippingAddress}watchTranslatedBillingAddress(){this.translatedBillingAddressState=this.translatedBillingAddress}componentWillLoad(){this.watchTranslatedBillingAddress(),this.watchTranslatedShippingAddress()}render(){const s="#ffffff"===(this.submitBtnColor||f.appearance.colorSecondary)?"outline":this.submitBtnType||"standard",o=this.billingAddress,i=this.shippingAddress;return e(t,{key:"03535edacb348258592641baa349e9dcf14bf78c",class:p(["zonos--address-update-dialog zonos--elements",this.isMobile&&"mobile"])},e("zonos-dialog",{key:"c16871425dffe955d422ffa5b9aee1ece0da2890",isLoading:this.dialogLoading,mobile:this.isMobile,noBodyPadding:!0,noBorder:!0,noClickOutside:!0,noCloseButton:!0,onCloseDialog:()=>this.closeDialog.emit(),open:this.dialogOpen,width:"568px"},e("div",{key:"e4fad501f7cfedc5783774d8b1bf785d6947d3c8",class:"zonos--body"},e("div",{key:"973e7a8097b8c8f60e47e6ad9d8311a64a5a6ff0",class:"zonos--dialog-header"},e("div",{key:"89c82b6ff3723056d161560da22bd16a992afee7",class:"zonos--dialog-title"},e("zonos-text",{key:"bf92ef0b40ea67a492164fedb95dd68b7d023e85",type:"title"},l("Update your address")),e("zonos-button",{key:"4e7a1905c976cec396db5c34f633b383bba0d55a",class:"zonos--close-button",icon:e("zonos-icon",{"aria-label":"Close checkout dialog",content:m}),noBackground:!0,onClick:()=>this.closeDialogHandler()})),e("zonos-text",{key:"47b42d8cc14c4757e3fc9f2f43eafbd8d9e9df38"},l("To ensure delivery all address details must be in Latin characters."))),e("div",{key:"28d9804f0a18f143ce541c2c511cbfa21a2a416f",class:"zonos--group"},e("zonos-text",{key:"43ec5a9fc8594d065b256952ca8e9392fba03839",class:"zonos--what-you-entered",type:"semiBoldLabel"},l("What you entered")),e("div",{key:"b7eb7781ce6aefe20f89b4d5fba190f0102eb5d1",class:"zonos--address-display-group"},e("zonos-address-display",{key:"152c53176a46575677723ca47386e484c659927a",addressType:"shipping",currentAddress:i}),o&&e("zonos-address-display",{key:"6c7ac2b49d121c26ce45f09a1eac9ef456d45910",addressType:"billing",currentAddress:o})),e("div",{key:"2bda98bb0ac9bafcb009ff36fb97a9fc62ce7e2d",class:"zonos--address-form-section"},e("zonos-text",{key:"87d3380072a049ccde71ba1b752aedd36830348b",type:"semiBoldLabel"},l("Translated address")),e("zonos-address-form",{key:"2cb36251c6549da05e272183b2c37478b4166fea",addressType:"shipping",class:"zonos--shipping-address-form",currentAddress:i,onAddressChange:s=>{this.translatedShippingAddressState=this.buildTranslateAddressState({currentAddress:i,translatedAddress:s.detail})},translatedAddress:this.translatedShippingAddressState}),o&&e("zonos-address-form",{key:"9bf5ebd6fb08851716a72c855451bfeb3ee0ed68",addressType:"billing",class:"zonos--billing-address-form",currentAddress:o,onAddressChange:s=>{this.translatedBillingAddressState=this.buildTranslateAddressState({currentAddress:o,translatedAddress:s.detail})},translatedAddress:this.translatedBillingAddressState}))),e("div",{key:"621df9c8919973b37c62aca5727bde3635086a6b",class:"zonos--group-btn"},e("div",{key:"95e9fd31418abc8e89ceef24af7cc251ee45ac93",class:"zonos--button-wrapper"},e("zonos-button",{key:"bef31fc81e7cc0f2b3f7ab875a29978b07865b6a",class:"zonos--cancel-btn",onClick:()=>this.closeDialogHandler(),variant:"subtle"},l("Cancel")),e("zonos-button",{key:"9d183153541766b421c3420681c1159ffa599682",backgroundColor:this.submitBtnColor,class:"zonos--update-btn",loading:this.continueLoading,onClick:()=>this.continueClickHandler(),size:"sm",variant:s},l("Update address")))))))}get el(){return i(this)}static get watchers(){return{translatedShippingAddress:["watchTranslatedShippingAddress"],translatedBillingAddress:["watchTranslatedBillingAddress"]}}};x.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--body{padding:0 24px;position:relative}:host .zonos--dialog-header{margin-bottom:32px;position:-webkit-sticky;position:sticky;padding-top:24px;top:0;z-index:11;background:var(--zonos-elements-gray-0)}:host .zonos--dialog-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}:host .zonos--group{overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}:host .zonos--group::-webkit-scrollbar{width:10px}:host .zonos--group::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--group::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--group::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--address-display-group{display:-ms-flexbox;display:flex;gap:8px;margin-bottom:20px}:host .zonos--address-display-group zonos-address-display{-ms-flex:1;flex:1}:host .zonos--what-you-entered{margin-bottom:8px}:host .zonos--address-form-section{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}:host .zonos--group-btn{position:-webkit-sticky;position:sticky;padding:24px 0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:end;background:var(--zonos-elements-gray-0);z-index:11}:host .zonos--group-btn .zonos--button-wrapper{display:-ms-flexbox;display:flex;gap:8px}:host(.mobile) .zonos--button-wrapper{-ms-flex-direction:column;flex-direction:column;width:100%}:host(.mobile) .zonos--button-wrapper zonos-button{width:100%}:host(.mobile) .zonos--button-wrapper .zonos--cancel-btn{-ms-flex-order:2;order:2}:host(.mobile) .zonos--button-wrapper .zonos--update-btn{-ms-flex-order:1;order:1}";const k=["blue","cyan","green","orange","purple","red","gray","glass"],w=class{constructor(e){s(this,e),this.checkboxSelected=o(this,"checkboxSelected",7),this.backgroundColor="blue",this.label=void 0,this.isChecked=!1,this.isDisabled=!1,this.size=12,this.fontSize="base",this.borderStyle=void 0}onClick(){this.isDisabled||this.checkboxSelected.emit(!this.isChecked)}render(){const s=k.includes(this.backgroundColor),o=s?`var(--zonos-elements-${this.backgroundColor}-600)`:this.backgroundColor,i=s?`var(--zonos-elements-${this.backgroundColor}-200)`:z(o)?"var(--zonos-elements-gray-0)":"var(--zonos-elements-gray-800)",n=u({customRoundRadius:"4px",overrideBorderStyle:this.borderStyle});return e(t,{key:"be29586ffd5ae5227614622cfb402686ff5e0583",class:p(["zonos--elements zonos--checkbox"]),style:{"--background-color":o,"--border-radius":n,"--font-family":b(),"--size":`${this.size}px`}},e("label",{key:"091c2388668a94962d7b2bde4496856805f675e8",class:p([this.isDisabled&&"disabled"])},e("input",{key:"c0f66d11f63591b03631cb1c970c0db201d435e2",checked:this.isChecked,disabled:this.isDisabled,hidden:!0,onChange:s=>{this.checkboxSelected.emit(s.target.checked)},type:"checkbox"}),e("span",{key:"ab6c4847d006a812829bd8e871520455da91c7b0",class:"checkmark-container"},e("svg",{key:"617693bef302910db463cdf95b10700b72ea8d44",class:"checkmark",color:i,fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"410728b7d5edf27966e660e598f166ce8292015e","clip-rule":"evenodd",d:"M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z",fill:"currentColor","fill-rule":"evenodd"}))),this.label&&e("zonos-text",{key:"1b9a21e7ef15ad34684453bc25cb3744ba183cd0",size:this.fontSize},this.label)))}};w.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;cursor:pointer}:host label{display:-ms-inline-flexbox;display:inline-flex;position:relative;gap:8px;-ms-flex-align:center;align-items:center}:host label.disabled{cursor:not-allowed;opacity:0.6}:host input[type=checkbox]{opacity:0;position:absolute;left:0;width:0;height:0;top:0;z-index:-99999}:host svg{opacity:0}:host .checkmark-container{height:var(--size);width:var(--size);background-color:transparent;border:1.5px solid var(--zonos-elements-gray-400);position:relative;border-radius:var(--border-radius, var(--zonos-elements-radius-4))}:host .checkmark{opacity:0;position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;width:calc(100% + 3px);-webkit-transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);-webkit-transform:scale(0.4);transform:scale(0.4);background-color:var(--background-color);border-radius:var(--border-radius, var(--zonos-elements-radius-4))}:host input[type=checkbox]:checked~.checkmark-container .checkmark{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";const A=class{constructor(o){s(this,o),this.collapsed=!1,this.collapseSize=0,this.height=this.el.scrollHeight,this.iframe=null}getElementHeight(){return this.collapsed?`${this.collapseSize}px`:`${this.height}px`}componentDidLoad(){this.height=this.el.scrollHeight}componentDidRender(){var s,o,e;this.iframe=(null===(s=this.el.shadowRoot)||void 0===s?void 0:s.querySelector("iframe"))||null,null===(e=null===(o=this.iframe)||void 0===o?void 0:o.contentWindow)||void 0===e||e.addEventListener("resize",(()=>{this.iframe&&(this.height=parseFloat(getComputedStyle(this.iframe).height))}))}render(){return this.collapsed?this.el.style.overflow="hidden":setTimeout((()=>{this.collapsed||(this.el.style.overflow="visible")}),300),e(t,{key:"514e75d41d29d70b4ca60230288ae183200b1e12",class:"zonos--elements zonos--collapse",style:{"--font-family":b(),height:this.getElementHeight()}},e("div",{key:"068aee1d13bde4c83ea8582b34844da7452c907c"},e("iframe",{key:"b22fd8ad898a098c244cb817dc6951854505efca",class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),e("slot",{key:"b54783376005085e379c7b8d43218ead1bf8e8ac"})))}get el(){return i(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{-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 C=class{constructor(e){s(this,e),this.closeDialog=o(this,"closeDialog",7),this.isMobileMode=()=>this.mobile||window.innerWidth<=768,this.closeButtonHandler=()=>{this.closeDialog.emit()},this.clickOutsideDialogHandler=s=>{s.target!==s.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.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 s=u({overrideBorderStyle:this.borderStyle});return e(t,{key:"48eb2701a74a7973d3502fd1fdc65ce85a6d71ed",class:p(["zonos--elements",this.open&&"open",this.isLoading&&"is-loading",this.noBorder&&"no-border",this.isMobile&&"mobile"]),style:{"--border-radius":s,"--font-family":b(),"--height":this.height||"initial","--width":this.width}},e("div",{key:"b408d792740d8854bab8ea60bd50ce894a75a836",class:"zonos--backdrop"}),e("div",{key:"04affcf48e0b209fa8dacc74039dad536ed9cd9b","aria-hidden":"true",class:"zonos--dialog-layout",onClick:this.clickOutsideDialogHandler},e("div",{key:"c615792a60b2fa51a74af265b7c944a64e9ff18d",class:"zonos--dialog"},this.isLoading&&e("div",{key:"78d3b571f75c6037fdd694b4621fb9eae48d8ce0",class:"zonos--loading"},e("zonos-spinner",{key:"bd96037d5fe1717ebeae5b1ba27b96aa9ec9253d",size:30})),(this.headerText||!this.noCloseButton)&&e("div",{key:"cc057cbed99107d7d234d08d38e67cbf0140dc66",class:"zonos--header"},this.headerText&&e("h3",{key:"587fff6b04981f1c24b44736b3b40044480f68ba",class:"zonos--header-text"},this.headerText),!this.noCloseButton&&e("zonos-button",{key:"9a1944508996cd8ccb87f68ae175564528af3c4c",class:"zonos--close-button",icon:e("zonos-icon",{"aria-label":"Close dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:this.closeButtonHandler})),e("div",{key:"b563c1939c32489b63516cd4dd14df58a32a08cf",class:p(["zonos--body",this.noBodyPadding&&"zonos--no-body-padding"])},e("slot",{key:"39d66d136f630afbac7ced146d3a8ac60d3c9672"})),e("slot",{key:"5bace66c84150024d0203f89fbf8f5c263cb7472",name:"dialog-footer"}))))}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--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:0;top:0;background:var(--zonos-elements-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:10002;background:var(--zonos-elements-gray-0);border-radius:var(--border-radius, var(--zonos-elements-radius-10))}: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(--zonos-elements-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:10001;background:var(--zonos-elements-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(--zonos-elements-radius-10));outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .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:16px 24px}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--zonos-elements-size-md);height:var(--zonos-elements-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(--zonos-elements-radius-10)}:host .zonos--header .zonos--close-button:hover{background:var(--zonos-elements-hover-color)}:host .zonos--body{padding:8px 24px;max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:16px 24px}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:10001;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:10002;-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 I=class{constructor(o){s(this,o),this.titleText=void 0,this.defaultEmail=null,this.stripe=n.stripe}watchInitStripe(){if(!this.stripe||!n.stripeElements)return;const s=n.stripeLinkElement||n.stripeElements.create("linkAuthentication",{defaultValues:(this.defaultEmail?{email:this.defaultEmail}:void 0)||void 0}),o=this.el.querySelector(".zonos--link-authentication-component");o?(s.mount(o),s.on("change",(s=>{n.stripeLinkEventData=s})),n.stripeLinkElement=s):a("Cannot find container element for linkAuthenticationElement")}componentDidLoad(){this.watchInitStripe()}render(){return e(t,{key:"4a7b9eb534e938f791f70e04756aa9fb1c39f2c7",class:"zonos--link-authentication zonos--elements"},e("zonos-text",{key:"cc4fe49ed6d4bd7cec502ef739b9e835e9e26584",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{key:"f04a438d04e6ccd608d7ff61ac300fb09da4f0ce",class:"zonos--link-authentication-component"}))}get el(){return i(this)}static get watchers(){return{stripe:["watchInitStripe"]}}};I.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:16px}";export{y as zonos_address,g as zonos_address_display,v as zonos_address_form,x as zonos_address_update_dialog,w as zonos_checkbox,A as zonos_collapse,C as zonos_dialog,I as zonos_link_authentication}
1
+ import{r as s,c as o,h as e,H as t,d as i}from"./p-ce347974.js";import{k as n,d as a,l as d,t as l}from"./p-e015cb0e.js";import{i as r}from"./p-81a54668.js";import{i as c,c as h}from"./p-0c64dbbb.js";import{z as f,d as b}from"./p-693b9985.js";import{c as p}from"./p-b4b7f705.js";import{R as m}from"./p-08e7107d.js";import{g as u}from"./p-8c0b4a61.js";import{i as z}from"./p-2f759d82.js";const y=class{constructor(e){s(this,e),this.invalidCharacters=o(this,"invalidCharacters",7),this.type=void 0,this.titleText=void 0,this.defaultAddress=null,this.stripe=window.Zonos.stripe,this.isDirtyAddress=!1}getStripeAddressInstance(){return"billing"===this.type?{stripeAddressElement:n.stripeBillingAddressElement,stripeAddressEventData:n.stripeBillingAddressEventData,stripeElements:n.stripeElementsForBillingAddress}:{stripeAddressElement:n.stripeAddressElement,stripeAddressEventData:n.stripeAddressEventData,stripeElements:n.stripeElements}}updateAddressEventData({event:s,type:o}){"billing"===o?n.stripeBillingAddressEventData=s:n.stripeAddressEventData=s}updateAddressElement({stripeAddressElement:s,type:o}){"shipping"!==o?n.stripeBillingAddressElement=s:n.stripeAddressElement=s}async watchInitStripe(){var s,o;this.stripe=window.Zonos.stripe;const{stripeAddressEventData:e,stripeElements:t}=this.getStripeAddressInstance();if(!this.stripe||!t)return void a("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 i=d.shippingZoneCountries,n=i?Object.values(i).map((s=>s.code)):[],l=t.create("address",{allowedCountries:"shipping"===this.type?n:[],contacts:this.defaultAddress&&!e?[this.defaultAddress]:[],defaultValues:{address:Object.assign(Object.assign({},null==e?void 0:e.value.address),{country:(null==e?void 0:e.value.address.country)||d.selectedCountryCode||"AL"}),firstName:null==e?void 0:e.value.firstName,lastName:null==e?void 0:e.value.lastName,phone:null==e?void 0:e.value.phone},display:{name:"split"},fields:{phone:"always"},mode:this.type,validation:{phone:{required:"always"}}});l.mount(this.el.querySelector(".zonos--address-component")),l.on("change",(s=>{const o=s.value;!this.isDirtyAddress&&o.address.line1.length>=3&&(this.isDirtyAddress=!0,setTimeout((()=>{if(r())this.el.scrollIntoView({behavior:"smooth",block:"end"});else{const s="shipping"===this.type?100:600,o=this.el.closest(".zonos--group"),e=this.el.getBoundingClientRect().top+s;null==o||o.scrollTo({behavior:"smooth",top:e})}}),600)),this.updateAddressEventData({event:Object.assign(Object.assign({},s),{elementMode:this.type,elementType:"address",value:Object.assign(Object.assign({},o),{firstName:o.firstName||o.name.split(" ")[0],lastName:o.lastName||o.name.split(" ")[1]})}),type:this.type})})),this.updateAddressElement({stripeAddressElement:l,type:this.type})}disconnectedCallback(){const s=this.getStripeAddressInstance().stripeAddressElement;null==s||s.destroy()}componentDidLoad(){const s=this.getStripeAddressInstance().stripeAddressEventData;this.isDirtyAddress=!!s&&s.value.address.line1.length>0,this.watchInitStripe()}render(){return e(t,{key:"77cf6085adb67da95283000b857a9252215c71cd",class:"zonos--address zonos--elements"},e("zonos-text",{key:"30aff37f04ef04ce4c062d52c78286b362469894",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{key:"599e73e5d3f88cba12a7fc72abc3e575eb3eb777",class:"zonos--address-component"}))}get el(){return i(this)}static get watchers(){return{stripe:["watchInitStripe"]}}};y.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:16px}.sc-zonos-address-h zonos-banner.sc-zonos-address{margin-top:8px}";const g=class{constructor(o){s(this,o),this.currentAddress=void 0,this.addressType=void 0}render(){var s;const{city:o,country:i,email:n,line1:a,line2:r,name:h,phone:f,postal_code:b,state:p}=this.currentAddress,m=null===(s=d.shippingZoneCountries)||void 0===s?void 0:s[i],u=({bold:s,content:o})=>{const t=c(o)?"red-600":"gray-1200";return e("zonos-text",{textColor:t,type:s?"boldLabel":"body"},o)};return e(t,{class:"zonos--address-form zonos--elements"},e("div",{class:"zonos--title"},e("zonos-text",{textColor:"gray-700",type:"smallHeader"},l("shipping"===this.addressType?"Shipping":"Billing"))),e("div",{class:"zonos--address-group"},h&&e("div",{class:"zonos--address-line"},u({bold:!0,content:h})),n&&e("div",{class:"zonos--address-line"},u({content:n})),f&&e("div",{class:"zonos--address-line"},u({content:f})),a&&e("div",{class:"zonos--address-line"},u({content:a})),r&&e("div",{class:"zonos--address-line"},u({content:r})),e("div",{class:"zonos--address-line"},o&&u({content:o}),p&&u({content:p}),b&&u({content:b})),m&&e("div",{class:"zonos--address-line"},e("zonos-country-flag",{class:"zonos--country-flag",countryCode:m.code})," ",u({content:m.displayName}))))}};g.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--title{margin-bottom:12px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:4px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-line{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}:host .zonos--address-line zonos-text+zonos-text::before{content:", ";color:var(--zonos-elements-gray-1200);margin-right:4px}:host .zonos--country-flag{width:20px;height:14px;border-radius:2px;margin:1px;position:relative;overflow:hidden;-webkit-box-shadow:var(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-v3-shadow-medium);margin-right:8px;z-index:10;justify-self:center}';const v=class{constructor(e){s(this,e),this.addressChange=o(this,"addressChange",7),this.onInputChange=({key:s,value:o})=>{this.addressChange.emit(Object.assign(Object.assign({},this.localAddress),{[s]:o}))},this.currentAddress=void 0,this.translatedAddress=void 0,this.addressType=void 0,this.localAddress=this.currentAddress}watchCurrentAddress(){var s,o,e,t,i,n;const{city:a,line1:d,line2:l,name:r,postal_code:c,state:h}=this.currentAddress;this.localAddress=Object.assign(Object.assign({},this.currentAddress),{city:(null===(s=this.translatedAddress.city)||void 0===s?void 0:s[a])||a,line1:(null===(o=this.translatedAddress.line1)||void 0===o?void 0:o[d])||d,line2:(null===(e=this.translatedAddress.line2)||void 0===e?void 0:e[l])||l,name:(null===(t=this.translatedAddress.name)||void 0===t?void 0:t[r])||r,postal_code:(null===(i=this.translatedAddress.postal_code)||void 0===i?void 0:i[c])||c,state:(null===(n=this.translatedAddress.state)||void 0===n?void 0:n[h])||h})}componentWillLoad(){this.watchCurrentAddress()}render(){const{city:s,country:o,line1:i,line2:n,name:a,phone:d,postal_code:r,state:h}=this.localAddress,f=a.split(" ")[0]||"",b=a.split(" ")[1]||"";return e(t,{key:"9c1ee87200d1f90e9dfac58c49aabba1777373a9",class:"zonos--address-form zonos--elements"},e("div",{key:"eec3416268ff2324fd751408552705086905423d",class:"zonos--title"},e("zonos-text",{key:"a4c254f78420dcfc712e1a83b20dd3ac9e64c460",textColor:"gray-700",type:"smallHeader"},l("shipping"===this.addressType?"Shipping":"Billing"))),e("div",{key:"b8109545d282fb8c06a2e791c30088018d6ffec0",class:"zonos--address-group"},e("div",{key:"833a395984cd75242e5d97697fd6566f11932d1b",class:"zonos--contact"},e("zonos-text",{key:"e60f574e95162aabf6465b878fc9b16c708e8029",type:"label"},l("Contact")),e("zonos-input",{key:"24cd24a362a1bbc76d0c91718c48ae32baa20ae6",class:"zonos--form-email",inputLabel:l("Email"),inputValue:this.currentAddress.email,isDisabled:!0}),e("div",{key:"84e64ef44eb3b39ac7ab542e07d7a52a95377cae",class:"zonos--name zonos--address-row"},e("zonos-input",{key:"26621aca0d57a7fee743874b8d11af5f58c91b69",class:"zonos--form-first-name",inputLabel:l("First name"),inputValue:f,isError:c(f),onInputChange:s=>this.onInputChange({key:"name",value:`${s.detail} ${b}`})}),e("zonos-input",{key:"01e3e5038b4a4311dd5874a1213f936451dc300d",class:"zonos--form-last-name",inputLabel:l("Last name"),inputValue:b,isError:c(b),onInputChange:s=>this.onInputChange({key:"name",value:`${f} ${s.detail}`})}))),e("div",{key:"eb42dece28082ff16a453110b3208de5b44b9fdb",class:"zonos--address"},e("zonos-text",{key:"3557122c716533be7b36a8bd395ea616a7061665",type:"label"},l("Address")),e("zonos-input",{key:"bcc7d84d530f2f3a10537117eb6ef143df7cc8e2",class:"zonos--form-country",inputLabel:l("Country"),inputValue:o,isDisabled:!0}),e("zonos-input",{key:"6ce78e25151a129b69b501cf768604134a395e85",class:"zonos--form-line1",inputLabel:l("Address line 1"),inputValue:i,isError:c(i),onInputChange:s=>this.onInputChange({key:"line1",value:s.detail})}),e("zonos-input",{key:"6f7a18010e2d8131327154a31ba58544df56768c",class:"zonos--form-line2",inputLabel:l("Address line 2"),inputValue:n,isError:c(n),onInputChange:s=>this.onInputChange({key:"line2",value:s.detail})}),e("div",{key:"48afbf7a3cbd26fddfea4f2799005a51b1c3d3c6",class:"zonos--address-row"},e("zonos-input",{key:"6decf8c430d8d25b2c555b110009da74e0ac9e5f",class:"zonos--form-city",inputLabel:l("City"),inputValue:s,isError:c(s),onInputChange:s=>this.onInputChange({key:"city",value:s.detail})}),e("zonos-input",{key:"065e1be213d3cfec7749ab32890f96b0b484a25a",class:"zonos--form-state",inputLabel:l("State/Province"),inputValue:h,isError:c(h),onInputChange:s=>this.onInputChange({key:"state",value:s.detail})})),e("zonos-input",{key:"a69244bf84c9fd007c9ad4aad2b6cc6d44420775",class:"zonos--form-postal-code",inputLabel:l("Postal code"),inputValue:r,isError:c(r),onInputChange:s=>this.onInputChange({key:"postal_code",value:s.detail})}),e("zonos-input",{key:"0bcc89de1ecc4aae8a69d74eff42dfd117ada40b",class:"zonos--form-phone",inputLabel:l("Phone number"),inputValue:d,onInputChange:s=>this.onInputChange({key:"phone",value:s.detail})}))))}static get watchers(){return{translatedAddress:["watchCurrentAddress"]}}};v.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--title{margin-bottom:20px}:host .zonos--address-group{display:-ms-flexbox;display:flex;gap:20px;-ms-flex-direction:column;flex-direction:column;margin:1px}:host .zonos--contact{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}:host .zonos--address-row{display:-ms-flexbox;display:flex;gap:8px}:host .zonos--address-row>*{-ms-flex:1;flex:1}:host .zonos--address{display:-ms-flexbox;display:flex;gap:8px;-ms-flex-direction:column;flex-direction:column}";const x=class{constructor(e){s(this,e),this.closeDialog=o(this,"closeDialog",7),this.continueClicked=o(this,"continueClicked",7),this.closeDialogHandler=()=>{this.closeDialog.emit()},this.getTranslatedAddress=({currentAddress:s,translatedAddress:o})=>{var e,t,i,n,a,d;const{city:l,line1:r,line2:c,name:h,postal_code:f,state:b}=s;return{city:(null===(e=o.city)||void 0===e?void 0:e[l])||l,line1:(null===(t=o.line1)||void 0===t?void 0:t[r])||r,line2:(null===(i=o.line2)||void 0===i?void 0:i[c])||c,name:(null===(n=o.name)||void 0===n?void 0:n[h])||h,postal_code:(null===(a=o.postal_code)||void 0===a?void 0:a[f])||f,state:(null===(d=o.state)||void 0===d?void 0:d[b])||b}},this.continueClickHandler=async()=>{var s,o,e;this.continueLoading=!0;const t=this.billingAddress?this.getTranslatedAddress({currentAddress:this.billingAddress,translatedAddress:this.translatedBillingAddressState}):null,i=this.getTranslatedAddress({currentAddress:this.shippingAddress,translatedAddress:this.translatedShippingAddressState}),n=h(Object.assign(Object.assign({},i),{country:this.shippingAddress.country})),a=t&&this.billingAddress&&h(Object.assign(Object.assign({},t),{country:this.billingAddress.country})),d=!!Object.keys(n).length,l=!!a&&!!Object.keys(a).length;if(d||l){const t=null===(s=this.el.shadowRoot)||void 0===s?void 0:s.querySelectorAll("zonos-address-form"),i=null==t?void 0:t[0],n=null==t?void 0:t[1],a=(null===(o=null==i?void 0:i.shadowRoot)||void 0===o?void 0:o.querySelector(".has-error"))||(null===(e=null==n?void 0:n.shadowRoot)||void 0===e?void 0:e.querySelector(".has-error"));return a&&a.scrollIntoView({behavior:"smooth",block:"center"}),void(this.continueLoading=!1)}this.continueClicked.emit({billingAddress:t,shippingAddress:i})},this.buildTranslateAddressState=({currentAddress:s,translatedAddress:o})=>{const{city:e,line1:t,line2:i,name:n,postal_code:a,state:d}=s;return{city:{[e]:o.city},line1:{[t]:o.line1},line2:{[i]:o.line2},name:{[n]:o.name},postal_code:{[a]:o.postal_code},state:{[d]:o.state}}},this.continueLoading=!1,this.dialogLoading=void 0,this.dialogOpen=!1,this.submitBtnType=void 0,this.submitBtnColor=void 0,this.isMobile=!1,this.shippingAddress=void 0,this.billingAddress=void 0,this.translatedShippingAddress=void 0,this.translatedBillingAddress=void 0,this.showErrorBanner=!1,this.translatedShippingAddressState={},this.translatedBillingAddressState={}}watchTranslatedShippingAddress(){this.translatedShippingAddressState=this.translatedShippingAddress}watchTranslatedBillingAddress(){this.translatedBillingAddressState=this.translatedBillingAddress}componentWillLoad(){this.watchTranslatedBillingAddress(),this.watchTranslatedShippingAddress()}render(){const s="#ffffff"===(this.submitBtnColor||f.appearance.colorSecondary)?"outline":this.submitBtnType||"standard",o=this.billingAddress,i=this.shippingAddress;return e(t,{key:"03535edacb348258592641baa349e9dcf14bf78c",class:p(["zonos--address-update-dialog zonos--elements",this.isMobile&&"mobile"])},e("zonos-dialog",{key:"c16871425dffe955d422ffa5b9aee1ece0da2890",isLoading:this.dialogLoading,mobile:this.isMobile,noBodyPadding:!0,noBorder:!0,noClickOutside:!0,noCloseButton:!0,onCloseDialog:()=>this.closeDialog.emit(),open:this.dialogOpen,width:"568px"},e("div",{key:"e4fad501f7cfedc5783774d8b1bf785d6947d3c8",class:"zonos--body"},e("div",{key:"973e7a8097b8c8f60e47e6ad9d8311a64a5a6ff0",class:"zonos--dialog-header"},e("div",{key:"89c82b6ff3723056d161560da22bd16a992afee7",class:"zonos--dialog-title"},e("zonos-text",{key:"bf92ef0b40ea67a492164fedb95dd68b7d023e85",type:"title"},l("Update your address")),e("zonos-button",{key:"4e7a1905c976cec396db5c34f633b383bba0d55a",class:"zonos--close-button",icon:e("zonos-icon",{"aria-label":"Close checkout dialog",content:m}),noBackground:!0,onClick:()=>this.closeDialogHandler()})),e("zonos-text",{key:"47b42d8cc14c4757e3fc9f2f43eafbd8d9e9df38"},l("To ensure delivery all address details must be in Latin characters."))),e("div",{key:"28d9804f0a18f143ce541c2c511cbfa21a2a416f",class:"zonos--group"},e("zonos-text",{key:"43ec5a9fc8594d065b256952ca8e9392fba03839",class:"zonos--what-you-entered",type:"semiBoldLabel"},l("What you entered")),e("div",{key:"b7eb7781ce6aefe20f89b4d5fba190f0102eb5d1",class:"zonos--address-display-group"},e("zonos-address-display",{key:"152c53176a46575677723ca47386e484c659927a",addressType:"shipping",currentAddress:i}),o&&e("zonos-address-display",{key:"6c7ac2b49d121c26ce45f09a1eac9ef456d45910",addressType:"billing",currentAddress:o})),e("div",{key:"2bda98bb0ac9bafcb009ff36fb97a9fc62ce7e2d",class:"zonos--address-form-section"},e("zonos-text",{key:"87d3380072a049ccde71ba1b752aedd36830348b",type:"semiBoldLabel"},l("Translated address")),e("zonos-address-form",{key:"2cb36251c6549da05e272183b2c37478b4166fea",addressType:"shipping",class:"zonos--shipping-address-form",currentAddress:i,onAddressChange:s=>{this.translatedShippingAddressState=this.buildTranslateAddressState({currentAddress:i,translatedAddress:s.detail})},translatedAddress:this.translatedShippingAddressState}),o&&e("zonos-address-form",{key:"9bf5ebd6fb08851716a72c855451bfeb3ee0ed68",addressType:"billing",class:"zonos--billing-address-form",currentAddress:o,onAddressChange:s=>{this.translatedBillingAddressState=this.buildTranslateAddressState({currentAddress:o,translatedAddress:s.detail})},translatedAddress:this.translatedBillingAddressState}))),e("div",{key:"621df9c8919973b37c62aca5727bde3635086a6b",class:"zonos--group-btn"},e("div",{key:"95e9fd31418abc8e89ceef24af7cc251ee45ac93",class:"zonos--button-wrapper"},e("zonos-button",{key:"bef31fc81e7cc0f2b3f7ab875a29978b07865b6a",class:"zonos--cancel-btn",onClick:()=>this.closeDialogHandler(),variant:"subtle"},l("Cancel")),e("zonos-button",{key:"9d183153541766b421c3420681c1159ffa599682",backgroundColor:this.submitBtnColor,class:"zonos--update-btn",loading:this.continueLoading,onClick:()=>this.continueClickHandler(),size:"sm",variant:s},l("Update address")))))))}get el(){return i(this)}static get watchers(){return{translatedShippingAddress:["watchTranslatedShippingAddress"],translatedBillingAddress:["watchTranslatedBillingAddress"]}}};x.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--body{padding:0 24px;position:relative}:host .zonos--dialog-header{margin-bottom:32px;position:-webkit-sticky;position:sticky;padding-top:24px;top:0;z-index:11;background:var(--zonos-elements-gray-0)}:host .zonos--dialog-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;margin-bottom:12px}:host .zonos--group{overflow:auto;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:8px}:host .zonos--group::-webkit-scrollbar{width:10px}:host .zonos--group::-webkit-scrollbar-track{background:var(--zonos-elements-gray-50)}:host .zonos--group::-webkit-scrollbar-thumb{border-radius:10px;background:#cccccc;border:3px solid transparent;background-clip:content-box}:host .zonos--group::-webkit-scrollbar-thumb:hover{background:#d6d6d6}:host .zonos--address-display-group{display:-ms-flexbox;display:flex;gap:8px;margin-bottom:20px}:host .zonos--address-display-group zonos-address-display{-ms-flex:1;flex:1}:host .zonos--what-you-entered{margin-bottom:8px}:host .zonos--address-form-section{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:24px}:host .zonos--group-btn{position:-webkit-sticky;position:sticky;padding:24px 0;bottom:0;display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:end;background:var(--zonos-elements-gray-0);z-index:11}:host .zonos--group-btn .zonos--button-wrapper{display:-ms-flexbox;display:flex;gap:8px}:host(.mobile) .zonos--button-wrapper{-ms-flex-direction:column;flex-direction:column;width:100%}:host(.mobile) .zonos--button-wrapper zonos-button{width:100%}:host(.mobile) .zonos--button-wrapper .zonos--cancel-btn{-ms-flex-order:2;order:2}:host(.mobile) .zonos--button-wrapper .zonos--update-btn{-ms-flex-order:1;order:1}";const k=["blue","cyan","green","orange","purple","red","gray","glass"],w=class{constructor(e){s(this,e),this.checkboxSelected=o(this,"checkboxSelected",7),this.backgroundColor="blue",this.label=void 0,this.isChecked=!1,this.isDisabled=!1,this.size=12,this.fontSize="base",this.borderStyle=void 0}onClick(){this.isDisabled||this.checkboxSelected.emit(!this.isChecked)}render(){const s=k.includes(this.backgroundColor),o=s?`var(--zonos-elements-${this.backgroundColor}-600)`:this.backgroundColor,i=s?`var(--zonos-elements-${this.backgroundColor}-200)`:z(o)?"var(--zonos-elements-gray-0)":"var(--zonos-elements-gray-800)",n=u({customRoundRadius:"4px",overrideBorderStyle:this.borderStyle});return e(t,{key:"be29586ffd5ae5227614622cfb402686ff5e0583",class:p(["zonos--elements zonos--checkbox"]),style:{"--background-color":o,"--border-radius":n,"--font-family":b(),"--size":`${this.size}px`}},e("label",{key:"091c2388668a94962d7b2bde4496856805f675e8",class:p([this.isDisabled&&"disabled"])},e("input",{key:"c0f66d11f63591b03631cb1c970c0db201d435e2",checked:this.isChecked,disabled:this.isDisabled,hidden:!0,onChange:s=>{this.checkboxSelected.emit(s.target.checked)},type:"checkbox"}),e("span",{key:"ab6c4847d006a812829bd8e871520455da91c7b0",class:"checkmark-container"},e("svg",{key:"617693bef302910db463cdf95b10700b72ea8d44",class:"checkmark",color:i,fill:"none",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},e("path",{key:"410728b7d5edf27966e660e598f166ce8292015e","clip-rule":"evenodd",d:"M17.456 7.404a.75.75 0 0 1 .14 1.052l-6.5 8.5a.75.75 0 0 1-1.126.074l-4-4a.75.75 0 0 1 1.06-1.06l3.395 3.394 5.98-7.82a.75.75 0 0 1 1.05-.14Z",fill:"currentColor","fill-rule":"evenodd"}))),this.label&&e("zonos-text",{key:"1b9a21e7ef15ad34684453bc25cb3744ba183cd0",size:this.fontSize},this.label)))}};w.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;cursor:pointer}:host label{display:-ms-inline-flexbox;display:inline-flex;position:relative;gap:8px;-ms-flex-align:center;align-items:center}:host label.disabled{cursor:not-allowed;opacity:0.6}:host input[type=checkbox]{opacity:0;position:absolute;left:0;width:0;height:0;top:0;z-index:-99999}:host svg{opacity:0}:host .checkmark-container{height:var(--size);width:var(--size);background-color:transparent;border:1.5px solid var(--zonos-elements-gray-400);position:relative;border-radius:var(--border-radius, var(--zonos-elements-radius-4))}:host .checkmark{opacity:0;position:absolute;top:-1.5px;left:-1.5px;right:-1.5px;bottom:-1.5px;width:calc(100% + 3px);-webkit-transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);transition:0.3s all cubic-bezier(0.175, 0.885, 0.32, 1.275);-webkit-transform:scale(0.4);transform:scale(0.4);background-color:var(--background-color);border-radius:var(--border-radius, var(--zonos-elements-radius-4))}:host input[type=checkbox]:checked~.checkmark-container .checkmark{opacity:1;-webkit-transform:scale(1);transform:scale(1)}";const A=class{constructor(o){s(this,o),this.collapsed=!1,this.collapseSize=0,this.height=this.el.scrollHeight,this.iframe=null}getElementHeight(){return this.collapsed?`${this.collapseSize}px`:`${this.height}px`}componentDidLoad(){this.height=this.el.scrollHeight}componentDidRender(){var s,o,e;this.iframe=(null===(s=this.el.shadowRoot)||void 0===s?void 0:s.querySelector("iframe"))||null,null===(e=null===(o=this.iframe)||void 0===o?void 0:o.contentWindow)||void 0===e||e.addEventListener("resize",(()=>{this.iframe&&(this.height=parseFloat(getComputedStyle(this.iframe).height))}))}render(){return this.collapsed?this.el.style.overflow="hidden":setTimeout((()=>{this.collapsed||(this.el.style.overflow="visible")}),300),e(t,{key:"514e75d41d29d70b4ca60230288ae183200b1e12",class:"zonos--elements zonos--collapse",style:{"--font-family":b(),height:this.getElementHeight()}},e("div",{key:"068aee1d13bde4c83ea8582b34844da7452c907c"},e("iframe",{key:"b22fd8ad898a098c244cb817dc6951854505efca",class:"height-change-listener",tabindex:"-1",title:"collapse-height-change-listener"}),e("slot",{key:"b54783376005085e379c7b8d43218ead1bf8e8ac"})))}get el(){return i(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{-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 C=class{constructor(e){s(this,e),this.closeDialog=o(this,"closeDialog",7),this.isMobileMode=()=>this.mobile||window.innerWidth<=768,this.closeButtonHandler=()=>{this.open&&this.closeDialog.emit()},this.clickOutsideDialogHandler=s=>{s.target!==s.currentTarget||this.noClickOutside||this.closeDialog.emit()},this.open=!1,this.headerText="",this.width="460px",this.height=void 0,this.minHeight=void 0,this.noHeader=!1,this.noBodyPadding=!1,this.noBorder=!1,this.borderStyle=void 0,this.noCloseButton=!1,this.noClickOutside=!1,this.mobile=!1,this.isLoading=!0,this.isMobile=!1}handleWindowResize(){this.isMobile=this.isMobileMode()}handleKeyDown(s){"Escape"===s.key&&this.closeButtonHandler()}componentDidLoad(){this.isMobile=this.isMobileMode()}render(){document.body.style.overflow=this.open?"hidden":"auto";const s=u({overrideBorderStyle:this.borderStyle});return e(t,{key:"b27bdee33f67e2209dfbd9621b95633f4af726b2",class:p(["zonos--elements",this.open&&"open",this.isLoading&&"is-loading",this.noBorder&&"no-border",this.isMobile&&"mobile"]),style:{"--border-radius":s,"--font-family":b(),"--height":this.height||"initial","--min-height":this.minHeight||"500px","--width":this.width}},e("div",{key:"ca94e3347d10460973663685d9b8c0048418cb86",class:"zonos--backdrop"}),e("div",{key:"e766937dc1899141ed7beb07e9f13a60066880a1","aria-hidden":"true",class:"zonos--dialog-layout",onClick:this.clickOutsideDialogHandler},e("div",{key:"41c43bb5cf011a3a810c6116c4300ad7a713c787",class:"zonos--dialog"},this.isLoading&&e("div",{key:"5ca28c9f3b1f6f0742484ef5414ba60f16e1faa7",class:"zonos--loading"},e("zonos-spinner",{key:"e0131cd9fd3fa7a9c502e7a55b75b8c76be86fc3",size:30})),(this.headerText||!this.noCloseButton)&&e("div",{key:"2ef2237cb4518980eb3a5c97cc1a1ea2c87444be",class:"zonos--header"},this.headerText&&e("h3",{key:"751e1be4417cc733dffa8a683d3f4c8774ee83f5",class:"zonos--header-text"},this.headerText),!this.noCloseButton&&e("zonos-button",{key:"720f9250c88e0097d839276ab0d2319e31fc170b",class:"zonos--close-button",icon:e("zonos-icon",{"aria-label":"Close dialog",content:'<svg xmlns="https://www.w3.org/2000/svg" width="24" height="24" fill="none" viewBox="0 0 24 24"><path fill="#C5C6CA" fill-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" clip-rule="evenodd"/><path fill="#4D505A" fill-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" clip-rule="evenodd"/></svg>'}),noBackground:!0,onClick:this.closeButtonHandler,variant:"subtle"})),e("div",{key:"d64547b7d802a4b14e64454ae329dbb6d88f1cfd",class:p(["zonos--body",this.noBodyPadding&&"zonos--no-body-padding"])},e("slot",{key:"96d1683414cc4a947a36c6ae28e5afb781be4dae"})),e("slot",{key:"06b8ff1ad17f74e28fc4980fbc4594dde5e4573f",name:"dialog-footer"}))))}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--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:0;top:0;background:var(--zonos-elements-backdrop-color);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:10002;background:var(--zonos-elements-gray-0);border-radius:var(--border-radius, var(--zonos-elements-radius-10))}: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(--zonos-elements-text-color);visibility:hidden}:host .zonos--dialog{position:relative;z-index:10001;background:var(--zonos-elements-gray-0);max-width:90vw;max-height:90vh;min-height:var(--min-height, auto);height:var(--height, auto);width:var(--width, auto);border-radius:var(--border-radius, var(--zonos-elements-radius-10));outline:none;-webkit-box-shadow:var(--zonos-elements-v3-shadow-xxl);box-shadow:var(--zonos-elements-v3-shadow-xxl);border:var(--zonos-elements-border);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host .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:16px 24px}:host .zonos--header .-zonos-stencil-library--header-text{-ms-flex-positive:1;flex-grow:1}:host .zonos--header .zonos--close-button{width:var(--zonos-elements-size-md);height:var(--zonos-elements-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(--zonos-elements-radius-10)}:host .zonos--header .zonos--close-button:hover{background:var(--zonos-elements-hover-color)}:host .zonos--body{padding:8px 24px;max-height:100%;height:100%;overflow:auto}:host .zonos--body.zonos--no-body-padding{padding:0}:host .zonos--footer{padding:16px 24px}:host(.open) .zonos--dialog-layout,:host(.open) .zonos--backdrop{visibility:visible}:host(.open) .zonos--backdrop{z-index:10001;opacity:0.65}:host(.open) .zonos--dialog-layout{opacity:1;z-index:10002;-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 I=class{constructor(o){s(this,o),this.titleText=void 0,this.defaultEmail=null,this.stripe=n.stripe}watchInitStripe(){if(!this.stripe||!n.stripeElements)return;const s=n.stripeLinkElement||n.stripeElements.create("linkAuthentication",{defaultValues:(this.defaultEmail?{email:this.defaultEmail}:void 0)||void 0}),o=this.el.querySelector(".zonos--link-authentication-component");o?(s.mount(o),s.on("change",(s=>{n.stripeLinkEventData=s})),n.stripeLinkElement=s):a("Cannot find container element for linkAuthenticationElement")}componentDidLoad(){this.watchInitStripe()}render(){return e(t,{key:"1a206ef754ae3df55e57f7b8f587bde7d04c20d3",class:"zonos--link-authentication zonos--elements"},e("zonos-text",{key:"7f938c30d9ee5d404df05db96b814a48786c9c83",class:"zonos--title",type:"semiBoldLabel"},this.titleText),e("div",{key:"fddc855fd5eabf43a4d99532516053f0da71ae20",class:"zonos--link-authentication-component"}))}get el(){return i(this)}static get watchers(){return{stripe:["watchInitStripe"]}}};I.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:16px}";export{y as zonos_address,g as zonos_address_display,v as zonos_address_form,x as zonos_address_update_dialog,w as zonos_checkbox,A as zonos_collapse,C as zonos_dialog,I as zonos_link_authentication}
@@ -1 +1 @@
1
- var __spreadArray=this&&this.__spreadArray||function(r,n,t){if(t||arguments.length===2)for(var e=0,a=n.length,i;e<a;e++){if(i||!(e in n)){if(!i)i=Array.prototype.slice.call(n,0,e);i[e]=n[e]}}return r.concat(i||Array.prototype.slice.call(n))};System.register(["./p-163ff5b5.system.js"],(function(r){"use strict";var n,t;return{setters:[function(r){n=r.g;t=r.f}],execute:function(){var e=function(r,n,t){var e=r.get(n);if(!e){r.set(n,[t])}else if(!e.includes(t)){e.push(t)}};var a=function(r,n){var t;return function(){var e=[];for(var a=0;a<arguments.length;a++){e[a]=arguments[a]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;r.apply(void 0,e)}),n)}};var i=function(r){return!("isConnected"in r)||r.isConnected};var u=a((function(r){for(var n=0,t=r.keys();n<t.length;n++){var e=t[n];r.set(e,r.get(e).filter(i))}}),2e3);var v=function(){if(typeof n!=="function"){return{}}var r=new Map;return{dispose:function(){return r.clear()},get:function(t){var a=n();if(a){e(r,t,a)}},set:function(n){var e=r.get(n);if(e){r.set(n,e.filter(t))}u(r)},reset:function(){r.forEach((function(r){return r.forEach(t)}));u(r)}}};var o=function(r){return typeof r==="function"?r():r};var f=function(r,n){if(n===void 0){n=function(r,n){return r!==n}}var t=o(r);var e=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var a={dispose:[],get:[],set:[],reset:[]};var i=function(){var n;e=new Map(Object.entries((n=o(r))!==null&&n!==void 0?n:{}));a.reset.forEach((function(r){return r()}))};var u=function(){a.dispose.forEach((function(r){return r()}));i()};var v=function(r){a.get.forEach((function(n){return n(r)}));return e.get(r)};var f=function(r,t){var i=e.get(r);if(n(t,i,r)){e.set(r,t);a.set.forEach((function(n){return n(r,t,i)}))}};var l=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(r,n){return v(n)},ownKeys:function(r){return Array.from(e.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(r,n){return e.has(n)},set:function(r,n,t){f(n,t);return true}});var s=function(r,n){a[r].push(n);return function(){c(a[r],n)}};var d=function(n,t){var e=s("set",(function(r,e){if(r===n){t(e)}}));var a=s("reset",(function(){return t(o(r)[n])}));return function(){e();a()}};var b=function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var t=r.reduce((function(r,n){if(n.set){r.push(s("set",n.set))}if(n.get){r.push(s("get",n.get))}if(n.reset){r.push(s("reset",n.reset))}if(n.dispose){r.push(s("dispose",n.dispose))}return r}),[]);return function(){return t.forEach((function(r){return r()}))}};var h=function(r){var n=e.get(r);a.set.forEach((function(t){return t(r,n,n)}))};return{state:l,get:v,set:f,on:s,onChange:d,use:b,dispose:u,reset:i,forceUpdate:h}};var c=function(r,n){var t=r.indexOf(n);if(t>=0){r[t]=r[r.length-1];r.length--}};var l=r("c",(function(r,n){var t=f(r,n);t.use(v());return t}));var s=r("a",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function d(){this.__data__=[];this.size=0}var b=d;function h(r,n){return r===n||r!==r&&n!==n}var y=h;var p=y;function j(r,n){var t=r.length;while(t--){if(p(r[t][0],n)){return t}}return-1}var w=j;var A=w;var g=Array.prototype;var m=g.splice;function O(r){var n=this.__data__,t=A(n,r);if(t<0){return false}var e=n.length-1;if(t==e){n.pop()}else{m.call(n,t,1)}--this.size;return true}var _=O;var E=w;function S(r){var n=this.__data__,t=E(n,r);return t<0?undefined:n[t][1]}var D=S;var T=w;function B(r){return T(this.__data__,r)>-1}var I=B;var C=w;function L(r,n){var t=this.__data__,e=C(t,r);if(e<0){++this.size;t.push([r,n])}else{t[e][1]=n}return this}var P=L;var U=b,M=_,x=D,F=I,N=P;function R(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}R.prototype.clear=U;R.prototype["delete"]=M;R.prototype.get=x;R.prototype.has=F;R.prototype.set=N;var z=R;var $=z;function k(){this.__data__=new $;this.size=0}var G=k;function H(r){var n=this.__data__,t=n["delete"](r);this.size=n.size;return t}var K=H;function V(r){return this.__data__.get(r)}var Y=V;function W(r){return this.__data__.has(r)}var q=W;var J=typeof s=="object"&&s&&s.Object===Object&&s;var Q=J;var X=Q;var Z=typeof self=="object"&&self&&self.Object===Object&&self;var rr=X||Z||Function("return this")();var nr=r("_",rr);var tr=nr;var er=tr.Symbol;var ar=er;var ir=ar;var ur=Object.prototype;var vr=ur.hasOwnProperty;var or=ur.toString;var fr=ir?ir.toStringTag:undefined;function cr(r){var n=vr.call(r,fr),t=r[fr];try{r[fr]=undefined;var e=true}catch(r){}var a=or.call(r);if(e){if(n){r[fr]=t}else{delete r[fr]}}return a}var lr=cr;var sr=Object.prototype;var dr=sr.toString;function br(r){return dr.call(r)}var hr=br;var yr=ar,pr=lr,jr=hr;var wr="[object Null]",Ar="[object Undefined]";var gr=yr?yr.toStringTag:undefined;function mr(r){if(r==null){return r===undefined?Ar:wr}return gr&&gr in Object(r)?pr(r):jr(r)}var Or=r("e",mr);function _r(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var Er=r("f",_r);var Sr=Or,Dr=Er;var Tr="[object AsyncFunction]",Br="[object Function]",Ir="[object GeneratorFunction]",Cr="[object Proxy]";function Lr(r){if(!Dr(r)){return false}var n=Sr(r);return n==Br||n==Ir||n==Tr||n==Cr}var Pr=Lr;var Ur=nr;var Mr=Ur["__core-js_shared__"];var xr=Mr;var Fr=xr;var Nr=function(){var r=/[^.]+$/.exec(Fr&&Fr.keys&&Fr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Rr(r){return!!Nr&&Nr in r}var zr=Rr;var $r=Function.prototype;var kr=$r.toString;function Gr(r){if(r!=null){try{return kr.call(r)}catch(r){}try{return r+""}catch(r){}}return""}var Hr=Gr;var Kr=Pr,Vr=zr,Yr=Er,Wr=Hr;var qr=/[\\^$.*+?()[\]{}|]/g;var Jr=/^\[object .+?Constructor\]$/;var Qr=Function.prototype,Xr=Object.prototype;var Zr=Qr.toString;var rn=Xr.hasOwnProperty;var nn=RegExp("^"+Zr.call(rn).replace(qr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tn(r){if(!Yr(r)||Vr(r)){return false}var n=Kr(r)?nn:Jr;return n.test(Wr(r))}var en=tn;function an(r,n){return r==null?undefined:r[n]}var un=an;var vn=en,on=un;function fn(r,n){var t=on(r,n);return vn(t)?t:undefined}var cn=fn;var ln=cn,sn=nr;var dn=ln(sn,"Map");var bn=dn;var hn=cn;var yn=hn(Object,"create");var pn=yn;var jn=pn;function wn(){this.__data__=jn?jn(null):{};this.size=0}var An=wn;function gn(r){var n=this.has(r)&&delete this.__data__[r];this.size-=n?1:0;return n}var mn=gn;var On=pn;var _n="__lodash_hash_undefined__";var En=Object.prototype;var Sn=En.hasOwnProperty;function Dn(r){var n=this.__data__;if(On){var t=n[r];return t===_n?undefined:t}return Sn.call(n,r)?n[r]:undefined}var Tn=Dn;var Bn=pn;var In=Object.prototype;var Cn=In.hasOwnProperty;function Ln(r){var n=this.__data__;return Bn?n[r]!==undefined:Cn.call(n,r)}var Pn=Ln;var Un=pn;var Mn="__lodash_hash_undefined__";function xn(r,n){var t=this.__data__;this.size+=this.has(r)?0:1;t[r]=Un&&n===undefined?Mn:n;return this}var Fn=xn;var Nn=An,Rn=mn,zn=Tn,$n=Pn,kn=Fn;function Gn(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}Gn.prototype.clear=Nn;Gn.prototype["delete"]=Rn;Gn.prototype.get=zn;Gn.prototype.has=$n;Gn.prototype.set=kn;var Hn=Gn;var Kn=Hn,Vn=z,Yn=bn;function Wn(){this.size=0;this.__data__={hash:new Kn,map:new(Yn||Vn),string:new Kn}}var qn=Wn;function Jn(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}var Qn=Jn;var Xn=Qn;function Zn(r,n){var t=r.__data__;return Xn(n)?t[typeof n=="string"?"string":"hash"]:t.map}var rt=Zn;var nt=rt;function tt(r){var n=nt(this,r)["delete"](r);this.size-=n?1:0;return n}var et=tt;var at=rt;function it(r){return at(this,r).get(r)}var ut=it;var vt=rt;function ot(r){return vt(this,r).has(r)}var ft=ot;var ct=rt;function lt(r,n){var t=ct(this,r),e=t.size;t.set(r,n);this.size+=t.size==e?0:1;return this}var st=lt;var dt=qn,bt=et,ht=ut,yt=ft,pt=st;function jt(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}jt.prototype.clear=dt;jt.prototype["delete"]=bt;jt.prototype.get=ht;jt.prototype.has=yt;jt.prototype.set=pt;var wt=jt;var At=z,gt=bn,mt=wt;var Ot=200;function _t(r,n){var t=this.__data__;if(t instanceof At){var e=t.__data__;if(!gt||e.length<Ot-1){e.push([r,n]);this.size=++t.size;return this}t=this.__data__=new mt(e)}t.set(r,n);this.size=t.size;return this}var Et=_t;var St=z,Dt=G,Tt=K,Bt=Y,It=q,Ct=Et;function Lt(r){var n=this.__data__=new St(r);this.size=n.size}Lt.prototype.clear=Dt;Lt.prototype["delete"]=Tt;Lt.prototype.get=Bt;Lt.prototype.has=It;Lt.prototype.set=Ct;var Pt=Lt;var Ut=cn;var Mt=function(){try{var r=Ut(Object,"defineProperty");r({},"",{});return r}catch(r){}}();var xt=Mt;var Ft=xt;function Nt(r,n,t){if(n=="__proto__"&&Ft){Ft(r,n,{configurable:true,enumerable:true,value:t,writable:true})}else{r[n]=t}}var Rt=Nt;var zt=Rt,$t=y;function kt(r,n,t){if(t!==undefined&&!$t(r[n],t)||t===undefined&&!(n in r)){zt(r,n,t)}}var Gt=kt;function Ht(r){return function(n,t,e){var a=-1,i=Object(n),u=e(n),v=u.length;while(v--){var o=u[r?v:++a];if(t(i[o],o,i)===false){break}}return n}}var Kt=Ht;var Vt=Kt;var Yt=Vt();var Wt=Yt;var qt={exports:{}};(function(r,n){var t=nr;var e=n&&!n.nodeType&&n;var a=e&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===e;var u=i?t.Buffer:undefined,v=u?u.allocUnsafe:undefined;function o(r,n){if(n){return r.slice()}var t=r.length,e=v?v(t):new r.constructor(t);r.copy(e);return e}r.exports=o})(qt,qt.exports);var Jt=nr;var Qt=Jt.Uint8Array;var Xt=Qt;var Zt=Xt;function re(r){var n=new r.constructor(r.byteLength);new Zt(n).set(new Zt(r));return n}var ne=re;var te=ne;function ee(r,n){var t=n?te(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var ae=ee;function ie(r,n){var t=-1,e=r.length;n||(n=Array(e));while(++t<e){n[t]=r[t]}return n}var ue=ie;var ve=Er;var oe=Object.create;var fe=function(){function r(){}return function(n){if(!ve(n)){return{}}if(oe){return oe(n)}r.prototype=n;var t=new r;r.prototype=undefined;return t}}();var ce=fe;function le(r,n){return function(t){return r(n(t))}}var se=le;var de=se;var be=de(Object.getPrototypeOf,Object);var he=be;var ye=Object.prototype;function pe(r){var n=r&&r.constructor,t=typeof n=="function"&&n.prototype||ye;return r===t}var je=pe;var we=ce,Ae=he,ge=je;function me(r){return typeof r.constructor=="function"&&!ge(r)?we(Ae(r)):{}}var Oe=me;function _e(r){return r!=null&&typeof r=="object"}var Ee=r("i",_e);var Se=Or,De=Ee;var Te="[object Arguments]";function Be(r){return De(r)&&Se(r)==Te}var Ie=Be;var Ce=Ie,Le=Ee;var Pe=Object.prototype;var Ue=Pe.hasOwnProperty;var Me=Pe.propertyIsEnumerable;var xe=Ce(function(){return arguments}())?Ce:function(r){return Le(r)&&Ue.call(r,"callee")&&!Me.call(r,"callee")};var Fe=xe;var Ne=Array.isArray;var Re=Ne;var ze=9007199254740991;function $e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ze}var ke=$e;var Ge=Pr,He=ke;function Ke(r){return r!=null&&He(r.length)&&!Ge(r)}var Ve=Ke;var Ye=Ve,We=Ee;function qe(r){return We(r)&&Ye(r)}var Je=qe;var Qe={exports:{}};function Xe(){return false}var Ze=Xe;(function(r,n){var t=nr,e=Ze;var a=n&&!n.nodeType&&n;var i=a&&"object"=="object"&&r&&!r.nodeType&&r;var u=i&&i.exports===a;var v=u?t.Buffer:undefined;var o=v?v.isBuffer:undefined;var f=o||e;r.exports=f})(Qe,Qe.exports);var ra=Or,na=he,ta=Ee;var ea="[object Object]";var aa=Function.prototype,ia=Object.prototype;var ua=aa.toString;var va=ia.hasOwnProperty;var oa=ua.call(Object);function fa(r){if(!ta(r)||ra(r)!=ea){return false}var n=na(r);if(n===null){return true}var t=va.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&ua.call(t)==oa}var ca=fa;var la=Or,sa=ke,da=Ee;var ba="[object Arguments]",ha="[object Array]",ya="[object Boolean]",pa="[object Date]",ja="[object Error]",wa="[object Function]",Aa="[object Map]",ga="[object Number]",ma="[object Object]",Oa="[object RegExp]",_a="[object Set]",Ea="[object String]",Sa="[object WeakMap]";var Da="[object ArrayBuffer]",Ta="[object DataView]",Ba="[object Float32Array]",Ia="[object Float64Array]",Ca="[object Int8Array]",La="[object Int16Array]",Pa="[object Int32Array]",Ua="[object Uint8Array]",Ma="[object Uint8ClampedArray]",xa="[object Uint16Array]",Fa="[object Uint32Array]";var Na={};Na[Ba]=Na[Ia]=Na[Ca]=Na[La]=Na[Pa]=Na[Ua]=Na[Ma]=Na[xa]=Na[Fa]=true;Na[ba]=Na[ha]=Na[Da]=Na[ya]=Na[Ta]=Na[pa]=Na[ja]=Na[wa]=Na[Aa]=Na[ga]=Na[ma]=Na[Oa]=Na[_a]=Na[Ea]=Na[Sa]=false;function Ra(r){return da(r)&&sa(r.length)&&!!Na[la(r)]}var za=Ra;function $a(r){return function(n){return r(n)}}var ka=$a;var Ga={exports:{}};(function(r,n){var t=Q;var e=n&&!n.nodeType&&n;var a=e&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===e;var u=i&&t.process;var v=function(){try{var r=a&&a.require&&a.require("util").types;if(r){return r}return u&&u.binding&&u.binding("util")}catch(r){}}();r.exports=v})(Ga,Ga.exports);var Ha=za,Ka=ka,Va=Ga.exports;var Ya=Va&&Va.isTypedArray;var Wa=Ya?Ka(Ya):Ha;var qa=Wa;function Ja(r,n){if(n==="constructor"&&typeof r[n]==="function"){return}if(n=="__proto__"){return}return r[n]}var Qa=Ja;var Xa=Rt,Za=y;var ri=Object.prototype;var ni=ri.hasOwnProperty;function ti(r,n,t){var e=r[n];if(!(ni.call(r,n)&&Za(e,t))||t===undefined&&!(n in r)){Xa(r,n,t)}}var ei=ti;var ai=ei,ii=Rt;function ui(r,n,t,e){var a=!t;t||(t={});var i=-1,u=n.length;while(++i<u){var v=n[i];var o=e?e(t[v],r[v],v,t,r):undefined;if(o===undefined){o=r[v]}if(a){ii(t,v,o)}else{ai(t,v,o)}}return t}var vi=ui;function oi(r,n){var t=-1,e=Array(r);while(++t<r){e[t]=n(t)}return e}var fi=oi;var ci=9007199254740991;var li=/^(?:0|[1-9]\d*)$/;function si(r,n){var t=typeof r;n=n==null?ci:n;return!!n&&(t=="number"||t!="symbol"&&li.test(r))&&(r>-1&&r%1==0&&r<n)}var di=si;var bi=fi,hi=Fe,yi=Re,pi=Qe.exports,ji=di,wi=qa;var Ai=Object.prototype;var gi=Ai.hasOwnProperty;function mi(r,n){var t=yi(r),e=!t&&hi(r),a=!t&&!e&&pi(r),i=!t&&!e&&!a&&wi(r),u=t||e||a||i,v=u?bi(r.length,String):[],o=v.length;for(var f in r){if((n||gi.call(r,f))&&!(u&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||ji(f,o)))){v.push(f)}}return v}var Oi=mi;function _i(r){var n=[];if(r!=null){for(var t in Object(r)){n.push(t)}}return n}var Ei=_i;var Si=Er,Di=je,Ti=Ei;var Bi=Object.prototype;var Ii=Bi.hasOwnProperty;function Ci(r){if(!Si(r)){return Ti(r)}var n=Di(r),t=[];for(var e in r){if(!(e=="constructor"&&(n||!Ii.call(r,e)))){t.push(e)}}return t}var Li=Ci;var Pi=Oi,Ui=Li,Mi=Ve;function xi(r){return Mi(r)?Pi(r,true):Ui(r)}var Fi=xi;var Ni=vi,Ri=Fi;function zi(r){return Ni(r,Ri(r))}var $i=zi;var ki=Gt,Gi=qt.exports,Hi=ae,Ki=ue,Vi=Oe,Yi=Fe,Wi=Re,qi=Je,Ji=Qe.exports,Qi=Pr,Xi=Er,Zi=ca,ru=qa,nu=Qa,tu=$i;function eu(r,n,t,e,a,i,u){var v=nu(r,t),o=nu(n,t),f=u.get(o);if(f){ki(r,t,f);return}var c=i?i(v,o,t+"",r,n,u):undefined;var l=c===undefined;if(l){var s=Wi(o),d=!s&&Ji(o),b=!s&&!d&&ru(o);c=o;if(s||d||b){if(Wi(v)){c=v}else if(qi(v)){c=Ki(v)}else if(d){l=false;c=Gi(o,true)}else if(b){l=false;c=Hi(o,true)}else{c=[]}}else if(Zi(o)||Yi(o)){c=v;if(Yi(v)){c=tu(v)}else if(!Xi(v)||Qi(v)){c=Vi(o)}}else{l=false}}if(l){u.set(o,c);a(c,o,e,i,u);u["delete"](o)}ki(r,t,c)}var au=eu;var iu=Pt,uu=Gt,vu=Wt,ou=au,fu=Er,cu=Fi,lu=Qa;function su(r,n,t,e,a){if(r===n){return}vu(n,(function(i,u){a||(a=new iu);if(fu(i)){ou(r,n,u,t,su,e,a)}else{var v=e?e(lu(r,u),i,u+"",r,n,a):undefined;if(v===undefined){v=i}uu(r,u,v)}}),cu)}var du=su;function bu(r){return r}var hu=bu;function yu(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}var pu=yu;var ju=pu;var wu=Math.max;function Au(r,n,t){n=wu(n===undefined?r.length-1:n,0);return function(){var e=arguments,a=-1,i=wu(e.length-n,0),u=Array(i);while(++a<i){u[a]=e[n+a]}a=-1;var v=Array(n+1);while(++a<n){v[a]=e[a]}v[n]=t(u);return ju(r,this,v)}}var gu=Au;function mu(r){return function(){return r}}var Ou=mu;var _u=Ou,Eu=xt,Su=hu;var Du=!Eu?Su:function(r,n){return Eu(r,"toString",{configurable:true,enumerable:false,value:_u(n),writable:true})};var Tu=Du;var Bu=800,Iu=16;var Cu=Date.now;function Lu(r){var n=0,t=0;return function(){var e=Cu(),a=Iu-(e-t);t=e;if(a>0){if(++n>=Bu){return arguments[0]}}else{n=0}return r.apply(undefined,arguments)}}var Pu=Lu;var Uu=Tu,Mu=Pu;var xu=Mu(Uu);var Fu=xu;var Nu=hu,Ru=gu,zu=Fu;function $u(r,n){return zu(Ru(r,n,Nu),r+"")}var ku=$u;var Gu=y,Hu=Ve,Ku=di,Vu=Er;function Yu(r,n,t){if(!Vu(t)){return false}var e=typeof n;if(e=="number"?Hu(t)&&Ku(n,t.length):e=="string"&&n in t){return Gu(t[n],r)}return false}var Wu=Yu;var qu=ku,Ju=Wu;function Qu(r){return qu((function(n,t){var e=-1,a=t.length,i=a>1?t[a-1]:undefined,u=a>2?t[2]:undefined;i=r.length>3&&typeof i=="function"?(a--,i):undefined;if(u&&Ju(t[0],t[1],u)){i=a<3?undefined:i;a=1}n=Object(n);while(++e<a){var v=t[e];if(v){r(n,v,e,i)}}return n}))}var Xu=Qu;var Zu=du,rv=Xu;var nv=rv((function(r,n,t){Zu(r,n,t)}));var tv=nv;var ev=r("m",(function(r,n){var t=[];for(var e=2;e<arguments.length;e++){t[e-2]=arguments[e]}var a=__spreadArray([r,n],t,true).filter(Boolean);return tv.apply(null,a)}));var av=l((function(){return{appearance:{colorPrimary:"white",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedCharacterSets:"ALL",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:{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:false,organizationId:"",organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""}})),iv=av.reset,uv=av.state;r("z",uv);var vv=null;var ov=r("g",(function(r){if(r==="SYSTEM"){return window.matchMedia("(prefers-color-scheme: dark)").matches?"DARK":"LIGHT"}return r}));var fv=r("b",(function(r){var n=r.overrideSettings,t=r.zonosSettings;var e,a,i,u;iv();if(t){vv=t}var v=ev(uv.appearance,(vv===null||vv===void 0?void 0:vv.appearanceSettings)||(t===null||t===void 0?void 0:t.appearanceSettings)||null,n===null||n===void 0?void 0:n.appearance);if(v.theme==="SYSTEM"){v.theme=ov(v.theme)}uv.appearance=v;uv.checkoutSettings=ev(uv.checkoutSettings,(vv===null||vv===void 0?void 0:vv.checkoutSettings)||(t===null||t===void 0?void 0:t.checkoutSettings)||null,n===null||n===void 0?void 0:n.checkoutSettings);uv.helloSettings=ev(uv.helloSettings,(vv===null||vv===void 0?void 0:vv.helloSettings)||(t===null||t===void 0?void 0:t.helloSettings)||null,n===null||n===void 0?void 0:n.helloSettings);uv.loadedConfig=true;uv.organizationId=((e=t===null||t===void 0?void 0:t.organization)===null||e===void 0?void 0:e.id)||"";uv.organizationName=((a=t===null||t===void 0?void 0:t.organization)===null||a===void 0?void 0:a.name)||"";uv.storeId=((u=(i=t===null||t===void 0?void 0:t.organization)===null||i===void 0?void 0:i.references)===null||u===void 0?void 0:u.storeId)||null;uv.currencyConverter=n===null||n===void 0?void 0:n.currencyConverter}));var cv=r("d",(function(){var r=uv.appearance.fontFamily||"Inter";return r}))}}}));
1
+ var __spreadArray=this&&this.__spreadArray||function(r,n,t){if(t||arguments.length===2)for(var e=0,a=n.length,i;e<a;e++){if(i||!(e in n)){if(!i)i=Array.prototype.slice.call(n,0,e);i[e]=n[e]}}return r.concat(i||Array.prototype.slice.call(n))};System.register(["./p-d99232c5.system.js"],(function(r){"use strict";var n,t;return{setters:[function(r){n=r.g;t=r.f}],execute:function(){var e=function(r,n,t){var e=r.get(n);if(!e){r.set(n,[t])}else if(!e.includes(t)){e.push(t)}};var a=function(r,n){var t;return function(){var e=[];for(var a=0;a<arguments.length;a++){e[a]=arguments[a]}if(t){clearTimeout(t)}t=setTimeout((function(){t=0;r.apply(void 0,e)}),n)}};var i=function(r){return!("isConnected"in r)||r.isConnected};var u=a((function(r){for(var n=0,t=r.keys();n<t.length;n++){var e=t[n];r.set(e,r.get(e).filter(i))}}),2e3);var v=function(){if(typeof n!=="function"){return{}}var r=new Map;return{dispose:function(){return r.clear()},get:function(t){var a=n();if(a){e(r,t,a)}},set:function(n){var e=r.get(n);if(e){r.set(n,e.filter(t))}u(r)},reset:function(){r.forEach((function(r){return r.forEach(t)}));u(r)}}};var o=function(r){return typeof r==="function"?r():r};var f=function(r,n){if(n===void 0){n=function(r,n){return r!==n}}var t=o(r);var e=new Map(Object.entries(t!==null&&t!==void 0?t:{}));var a={dispose:[],get:[],set:[],reset:[]};var i=function(){var n;e=new Map(Object.entries((n=o(r))!==null&&n!==void 0?n:{}));a.reset.forEach((function(r){return r()}))};var u=function(){a.dispose.forEach((function(r){return r()}));i()};var v=function(r){a.get.forEach((function(n){return n(r)}));return e.get(r)};var f=function(r,t){var i=e.get(r);if(n(t,i,r)){e.set(r,t);a.set.forEach((function(n){return n(r,t,i)}))}};var l=typeof Proxy==="undefined"?{}:new Proxy(t,{get:function(r,n){return v(n)},ownKeys:function(r){return Array.from(e.keys())},getOwnPropertyDescriptor:function(){return{enumerable:true,configurable:true}},has:function(r,n){return e.has(n)},set:function(r,n,t){f(n,t);return true}});var s=function(r,n){a[r].push(n);return function(){c(a[r],n)}};var d=function(n,t){var e=s("set",(function(r,e){if(r===n){t(e)}}));var a=s("reset",(function(){return t(o(r)[n])}));return function(){e();a()}};var b=function(){var r=[];for(var n=0;n<arguments.length;n++){r[n]=arguments[n]}var t=r.reduce((function(r,n){if(n.set){r.push(s("set",n.set))}if(n.get){r.push(s("get",n.get))}if(n.reset){r.push(s("reset",n.reset))}if(n.dispose){r.push(s("dispose",n.dispose))}return r}),[]);return function(){return t.forEach((function(r){return r()}))}};var h=function(r){var n=e.get(r);a.set.forEach((function(t){return t(r,n,n)}))};return{state:l,get:v,set:f,on:s,onChange:d,use:b,dispose:u,reset:i,forceUpdate:h}};var c=function(r,n){var t=r.indexOf(n);if(t>=0){r[t]=r[r.length-1];r.length--}};var l=r("c",(function(r,n){var t=f(r,n);t.use(v());return t}));var s=r("a",typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof global!=="undefined"?global:typeof self!=="undefined"?self:{});function d(){this.__data__=[];this.size=0}var b=d;function h(r,n){return r===n||r!==r&&n!==n}var y=h;var p=y;function j(r,n){var t=r.length;while(t--){if(p(r[t][0],n)){return t}}return-1}var w=j;var A=w;var g=Array.prototype;var m=g.splice;function O(r){var n=this.__data__,t=A(n,r);if(t<0){return false}var e=n.length-1;if(t==e){n.pop()}else{m.call(n,t,1)}--this.size;return true}var _=O;var E=w;function S(r){var n=this.__data__,t=E(n,r);return t<0?undefined:n[t][1]}var D=S;var T=w;function B(r){return T(this.__data__,r)>-1}var I=B;var C=w;function L(r,n){var t=this.__data__,e=C(t,r);if(e<0){++this.size;t.push([r,n])}else{t[e][1]=n}return this}var P=L;var U=b,M=_,x=D,F=I,N=P;function R(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}R.prototype.clear=U;R.prototype["delete"]=M;R.prototype.get=x;R.prototype.has=F;R.prototype.set=N;var z=R;var $=z;function k(){this.__data__=new $;this.size=0}var G=k;function H(r){var n=this.__data__,t=n["delete"](r);this.size=n.size;return t}var K=H;function V(r){return this.__data__.get(r)}var Y=V;function W(r){return this.__data__.has(r)}var q=W;var J=typeof s=="object"&&s&&s.Object===Object&&s;var Q=J;var X=Q;var Z=typeof self=="object"&&self&&self.Object===Object&&self;var rr=X||Z||Function("return this")();var nr=r("_",rr);var tr=nr;var er=tr.Symbol;var ar=er;var ir=ar;var ur=Object.prototype;var vr=ur.hasOwnProperty;var or=ur.toString;var fr=ir?ir.toStringTag:undefined;function cr(r){var n=vr.call(r,fr),t=r[fr];try{r[fr]=undefined;var e=true}catch(r){}var a=or.call(r);if(e){if(n){r[fr]=t}else{delete r[fr]}}return a}var lr=cr;var sr=Object.prototype;var dr=sr.toString;function br(r){return dr.call(r)}var hr=br;var yr=ar,pr=lr,jr=hr;var wr="[object Null]",Ar="[object Undefined]";var gr=yr?yr.toStringTag:undefined;function mr(r){if(r==null){return r===undefined?Ar:wr}return gr&&gr in Object(r)?pr(r):jr(r)}var Or=r("e",mr);function _r(r){var n=typeof r;return r!=null&&(n=="object"||n=="function")}var Er=r("f",_r);var Sr=Or,Dr=Er;var Tr="[object AsyncFunction]",Br="[object Function]",Ir="[object GeneratorFunction]",Cr="[object Proxy]";function Lr(r){if(!Dr(r)){return false}var n=Sr(r);return n==Br||n==Ir||n==Tr||n==Cr}var Pr=Lr;var Ur=nr;var Mr=Ur["__core-js_shared__"];var xr=Mr;var Fr=xr;var Nr=function(){var r=/[^.]+$/.exec(Fr&&Fr.keys&&Fr.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function Rr(r){return!!Nr&&Nr in r}var zr=Rr;var $r=Function.prototype;var kr=$r.toString;function Gr(r){if(r!=null){try{return kr.call(r)}catch(r){}try{return r+""}catch(r){}}return""}var Hr=Gr;var Kr=Pr,Vr=zr,Yr=Er,Wr=Hr;var qr=/[\\^$.*+?()[\]{}|]/g;var Jr=/^\[object .+?Constructor\]$/;var Qr=Function.prototype,Xr=Object.prototype;var Zr=Qr.toString;var rn=Xr.hasOwnProperty;var nn=RegExp("^"+Zr.call(rn).replace(qr,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function tn(r){if(!Yr(r)||Vr(r)){return false}var n=Kr(r)?nn:Jr;return n.test(Wr(r))}var en=tn;function an(r,n){return r==null?undefined:r[n]}var un=an;var vn=en,on=un;function fn(r,n){var t=on(r,n);return vn(t)?t:undefined}var cn=fn;var ln=cn,sn=nr;var dn=ln(sn,"Map");var bn=dn;var hn=cn;var yn=hn(Object,"create");var pn=yn;var jn=pn;function wn(){this.__data__=jn?jn(null):{};this.size=0}var An=wn;function gn(r){var n=this.has(r)&&delete this.__data__[r];this.size-=n?1:0;return n}var mn=gn;var On=pn;var _n="__lodash_hash_undefined__";var En=Object.prototype;var Sn=En.hasOwnProperty;function Dn(r){var n=this.__data__;if(On){var t=n[r];return t===_n?undefined:t}return Sn.call(n,r)?n[r]:undefined}var Tn=Dn;var Bn=pn;var In=Object.prototype;var Cn=In.hasOwnProperty;function Ln(r){var n=this.__data__;return Bn?n[r]!==undefined:Cn.call(n,r)}var Pn=Ln;var Un=pn;var Mn="__lodash_hash_undefined__";function xn(r,n){var t=this.__data__;this.size+=this.has(r)?0:1;t[r]=Un&&n===undefined?Mn:n;return this}var Fn=xn;var Nn=An,Rn=mn,zn=Tn,$n=Pn,kn=Fn;function Gn(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}Gn.prototype.clear=Nn;Gn.prototype["delete"]=Rn;Gn.prototype.get=zn;Gn.prototype.has=$n;Gn.prototype.set=kn;var Hn=Gn;var Kn=Hn,Vn=z,Yn=bn;function Wn(){this.size=0;this.__data__={hash:new Kn,map:new(Yn||Vn),string:new Kn}}var qn=Wn;function Jn(r){var n=typeof r;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?r!=="__proto__":r===null}var Qn=Jn;var Xn=Qn;function Zn(r,n){var t=r.__data__;return Xn(n)?t[typeof n=="string"?"string":"hash"]:t.map}var rt=Zn;var nt=rt;function tt(r){var n=nt(this,r)["delete"](r);this.size-=n?1:0;return n}var et=tt;var at=rt;function it(r){return at(this,r).get(r)}var ut=it;var vt=rt;function ot(r){return vt(this,r).has(r)}var ft=ot;var ct=rt;function lt(r,n){var t=ct(this,r),e=t.size;t.set(r,n);this.size+=t.size==e?0:1;return this}var st=lt;var dt=qn,bt=et,ht=ut,yt=ft,pt=st;function jt(r){var n=-1,t=r==null?0:r.length;this.clear();while(++n<t){var e=r[n];this.set(e[0],e[1])}}jt.prototype.clear=dt;jt.prototype["delete"]=bt;jt.prototype.get=ht;jt.prototype.has=yt;jt.prototype.set=pt;var wt=jt;var At=z,gt=bn,mt=wt;var Ot=200;function _t(r,n){var t=this.__data__;if(t instanceof At){var e=t.__data__;if(!gt||e.length<Ot-1){e.push([r,n]);this.size=++t.size;return this}t=this.__data__=new mt(e)}t.set(r,n);this.size=t.size;return this}var Et=_t;var St=z,Dt=G,Tt=K,Bt=Y,It=q,Ct=Et;function Lt(r){var n=this.__data__=new St(r);this.size=n.size}Lt.prototype.clear=Dt;Lt.prototype["delete"]=Tt;Lt.prototype.get=Bt;Lt.prototype.has=It;Lt.prototype.set=Ct;var Pt=Lt;var Ut=cn;var Mt=function(){try{var r=Ut(Object,"defineProperty");r({},"",{});return r}catch(r){}}();var xt=Mt;var Ft=xt;function Nt(r,n,t){if(n=="__proto__"&&Ft){Ft(r,n,{configurable:true,enumerable:true,value:t,writable:true})}else{r[n]=t}}var Rt=Nt;var zt=Rt,$t=y;function kt(r,n,t){if(t!==undefined&&!$t(r[n],t)||t===undefined&&!(n in r)){zt(r,n,t)}}var Gt=kt;function Ht(r){return function(n,t,e){var a=-1,i=Object(n),u=e(n),v=u.length;while(v--){var o=u[r?v:++a];if(t(i[o],o,i)===false){break}}return n}}var Kt=Ht;var Vt=Kt;var Yt=Vt();var Wt=Yt;var qt={exports:{}};(function(r,n){var t=nr;var e=n&&!n.nodeType&&n;var a=e&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===e;var u=i?t.Buffer:undefined,v=u?u.allocUnsafe:undefined;function o(r,n){if(n){return r.slice()}var t=r.length,e=v?v(t):new r.constructor(t);r.copy(e);return e}r.exports=o})(qt,qt.exports);var Jt=nr;var Qt=Jt.Uint8Array;var Xt=Qt;var Zt=Xt;function re(r){var n=new r.constructor(r.byteLength);new Zt(n).set(new Zt(r));return n}var ne=re;var te=ne;function ee(r,n){var t=n?te(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}var ae=ee;function ie(r,n){var t=-1,e=r.length;n||(n=Array(e));while(++t<e){n[t]=r[t]}return n}var ue=ie;var ve=Er;var oe=Object.create;var fe=function(){function r(){}return function(n){if(!ve(n)){return{}}if(oe){return oe(n)}r.prototype=n;var t=new r;r.prototype=undefined;return t}}();var ce=fe;function le(r,n){return function(t){return r(n(t))}}var se=le;var de=se;var be=de(Object.getPrototypeOf,Object);var he=be;var ye=Object.prototype;function pe(r){var n=r&&r.constructor,t=typeof n=="function"&&n.prototype||ye;return r===t}var je=pe;var we=ce,Ae=he,ge=je;function me(r){return typeof r.constructor=="function"&&!ge(r)?we(Ae(r)):{}}var Oe=me;function _e(r){return r!=null&&typeof r=="object"}var Ee=r("i",_e);var Se=Or,De=Ee;var Te="[object Arguments]";function Be(r){return De(r)&&Se(r)==Te}var Ie=Be;var Ce=Ie,Le=Ee;var Pe=Object.prototype;var Ue=Pe.hasOwnProperty;var Me=Pe.propertyIsEnumerable;var xe=Ce(function(){return arguments}())?Ce:function(r){return Le(r)&&Ue.call(r,"callee")&&!Me.call(r,"callee")};var Fe=xe;var Ne=Array.isArray;var Re=Ne;var ze=9007199254740991;function $e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=ze}var ke=$e;var Ge=Pr,He=ke;function Ke(r){return r!=null&&He(r.length)&&!Ge(r)}var Ve=Ke;var Ye=Ve,We=Ee;function qe(r){return We(r)&&Ye(r)}var Je=qe;var Qe={exports:{}};function Xe(){return false}var Ze=Xe;(function(r,n){var t=nr,e=Ze;var a=n&&!n.nodeType&&n;var i=a&&"object"=="object"&&r&&!r.nodeType&&r;var u=i&&i.exports===a;var v=u?t.Buffer:undefined;var o=v?v.isBuffer:undefined;var f=o||e;r.exports=f})(Qe,Qe.exports);var ra=Or,na=he,ta=Ee;var ea="[object Object]";var aa=Function.prototype,ia=Object.prototype;var ua=aa.toString;var va=ia.hasOwnProperty;var oa=ua.call(Object);function fa(r){if(!ta(r)||ra(r)!=ea){return false}var n=na(r);if(n===null){return true}var t=va.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&ua.call(t)==oa}var ca=fa;var la=Or,sa=ke,da=Ee;var ba="[object Arguments]",ha="[object Array]",ya="[object Boolean]",pa="[object Date]",ja="[object Error]",wa="[object Function]",Aa="[object Map]",ga="[object Number]",ma="[object Object]",Oa="[object RegExp]",_a="[object Set]",Ea="[object String]",Sa="[object WeakMap]";var Da="[object ArrayBuffer]",Ta="[object DataView]",Ba="[object Float32Array]",Ia="[object Float64Array]",Ca="[object Int8Array]",La="[object Int16Array]",Pa="[object Int32Array]",Ua="[object Uint8Array]",Ma="[object Uint8ClampedArray]",xa="[object Uint16Array]",Fa="[object Uint32Array]";var Na={};Na[Ba]=Na[Ia]=Na[Ca]=Na[La]=Na[Pa]=Na[Ua]=Na[Ma]=Na[xa]=Na[Fa]=true;Na[ba]=Na[ha]=Na[Da]=Na[ya]=Na[Ta]=Na[pa]=Na[ja]=Na[wa]=Na[Aa]=Na[ga]=Na[ma]=Na[Oa]=Na[_a]=Na[Ea]=Na[Sa]=false;function Ra(r){return da(r)&&sa(r.length)&&!!Na[la(r)]}var za=Ra;function $a(r){return function(n){return r(n)}}var ka=$a;var Ga={exports:{}};(function(r,n){var t=Q;var e=n&&!n.nodeType&&n;var a=e&&"object"=="object"&&r&&!r.nodeType&&r;var i=a&&a.exports===e;var u=i&&t.process;var v=function(){try{var r=a&&a.require&&a.require("util").types;if(r){return r}return u&&u.binding&&u.binding("util")}catch(r){}}();r.exports=v})(Ga,Ga.exports);var Ha=za,Ka=ka,Va=Ga.exports;var Ya=Va&&Va.isTypedArray;var Wa=Ya?Ka(Ya):Ha;var qa=Wa;function Ja(r,n){if(n==="constructor"&&typeof r[n]==="function"){return}if(n=="__proto__"){return}return r[n]}var Qa=Ja;var Xa=Rt,Za=y;var ri=Object.prototype;var ni=ri.hasOwnProperty;function ti(r,n,t){var e=r[n];if(!(ni.call(r,n)&&Za(e,t))||t===undefined&&!(n in r)){Xa(r,n,t)}}var ei=ti;var ai=ei,ii=Rt;function ui(r,n,t,e){var a=!t;t||(t={});var i=-1,u=n.length;while(++i<u){var v=n[i];var o=e?e(t[v],r[v],v,t,r):undefined;if(o===undefined){o=r[v]}if(a){ii(t,v,o)}else{ai(t,v,o)}}return t}var vi=ui;function oi(r,n){var t=-1,e=Array(r);while(++t<r){e[t]=n(t)}return e}var fi=oi;var ci=9007199254740991;var li=/^(?:0|[1-9]\d*)$/;function si(r,n){var t=typeof r;n=n==null?ci:n;return!!n&&(t=="number"||t!="symbol"&&li.test(r))&&(r>-1&&r%1==0&&r<n)}var di=si;var bi=fi,hi=Fe,yi=Re,pi=Qe.exports,ji=di,wi=qa;var Ai=Object.prototype;var gi=Ai.hasOwnProperty;function mi(r,n){var t=yi(r),e=!t&&hi(r),a=!t&&!e&&pi(r),i=!t&&!e&&!a&&wi(r),u=t||e||a||i,v=u?bi(r.length,String):[],o=v.length;for(var f in r){if((n||gi.call(r,f))&&!(u&&(f=="length"||a&&(f=="offset"||f=="parent")||i&&(f=="buffer"||f=="byteLength"||f=="byteOffset")||ji(f,o)))){v.push(f)}}return v}var Oi=mi;function _i(r){var n=[];if(r!=null){for(var t in Object(r)){n.push(t)}}return n}var Ei=_i;var Si=Er,Di=je,Ti=Ei;var Bi=Object.prototype;var Ii=Bi.hasOwnProperty;function Ci(r){if(!Si(r)){return Ti(r)}var n=Di(r),t=[];for(var e in r){if(!(e=="constructor"&&(n||!Ii.call(r,e)))){t.push(e)}}return t}var Li=Ci;var Pi=Oi,Ui=Li,Mi=Ve;function xi(r){return Mi(r)?Pi(r,true):Ui(r)}var Fi=xi;var Ni=vi,Ri=Fi;function zi(r){return Ni(r,Ri(r))}var $i=zi;var ki=Gt,Gi=qt.exports,Hi=ae,Ki=ue,Vi=Oe,Yi=Fe,Wi=Re,qi=Je,Ji=Qe.exports,Qi=Pr,Xi=Er,Zi=ca,ru=qa,nu=Qa,tu=$i;function eu(r,n,t,e,a,i,u){var v=nu(r,t),o=nu(n,t),f=u.get(o);if(f){ki(r,t,f);return}var c=i?i(v,o,t+"",r,n,u):undefined;var l=c===undefined;if(l){var s=Wi(o),d=!s&&Ji(o),b=!s&&!d&&ru(o);c=o;if(s||d||b){if(Wi(v)){c=v}else if(qi(v)){c=Ki(v)}else if(d){l=false;c=Gi(o,true)}else if(b){l=false;c=Hi(o,true)}else{c=[]}}else if(Zi(o)||Yi(o)){c=v;if(Yi(v)){c=tu(v)}else if(!Xi(v)||Qi(v)){c=Vi(o)}}else{l=false}}if(l){u.set(o,c);a(c,o,e,i,u);u["delete"](o)}ki(r,t,c)}var au=eu;var iu=Pt,uu=Gt,vu=Wt,ou=au,fu=Er,cu=Fi,lu=Qa;function su(r,n,t,e,a){if(r===n){return}vu(n,(function(i,u){a||(a=new iu);if(fu(i)){ou(r,n,u,t,su,e,a)}else{var v=e?e(lu(r,u),i,u+"",r,n,a):undefined;if(v===undefined){v=i}uu(r,u,v)}}),cu)}var du=su;function bu(r){return r}var hu=bu;function yu(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}var pu=yu;var ju=pu;var wu=Math.max;function Au(r,n,t){n=wu(n===undefined?r.length-1:n,0);return function(){var e=arguments,a=-1,i=wu(e.length-n,0),u=Array(i);while(++a<i){u[a]=e[n+a]}a=-1;var v=Array(n+1);while(++a<n){v[a]=e[a]}v[n]=t(u);return ju(r,this,v)}}var gu=Au;function mu(r){return function(){return r}}var Ou=mu;var _u=Ou,Eu=xt,Su=hu;var Du=!Eu?Su:function(r,n){return Eu(r,"toString",{configurable:true,enumerable:false,value:_u(n),writable:true})};var Tu=Du;var Bu=800,Iu=16;var Cu=Date.now;function Lu(r){var n=0,t=0;return function(){var e=Cu(),a=Iu-(e-t);t=e;if(a>0){if(++n>=Bu){return arguments[0]}}else{n=0}return r.apply(undefined,arguments)}}var Pu=Lu;var Uu=Tu,Mu=Pu;var xu=Mu(Uu);var Fu=xu;var Nu=hu,Ru=gu,zu=Fu;function $u(r,n){return zu(Ru(r,n,Nu),r+"")}var ku=$u;var Gu=y,Hu=Ve,Ku=di,Vu=Er;function Yu(r,n,t){if(!Vu(t)){return false}var e=typeof n;if(e=="number"?Hu(t)&&Ku(n,t.length):e=="string"&&n in t){return Gu(t[n],r)}return false}var Wu=Yu;var qu=ku,Ju=Wu;function Qu(r){return qu((function(n,t){var e=-1,a=t.length,i=a>1?t[a-1]:undefined,u=a>2?t[2]:undefined;i=r.length>3&&typeof i=="function"?(a--,i):undefined;if(u&&Ju(t[0],t[1],u)){i=a<3?undefined:i;a=1}n=Object(n);while(++e<a){var v=t[e];if(v){r(n,v,e,i)}}return n}))}var Xu=Qu;var Zu=du,rv=Xu;var nv=rv((function(r,n,t){Zu(r,n,t)}));var tv=nv;var ev=r("m",(function(r,n){var t=[];for(var e=2;e<arguments.length;e++){t[e-2]=arguments[e]}var a=__spreadArray([r,n],t,true).filter(Boolean);return tv.apply(null,a)}));var av=l((function(){return{appearance:{colorPrimary:"white",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedCharacterSets:"ALL",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:{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:false,organizationId:"",organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""}})),iv=av.reset,uv=av.state;r("z",uv);var vv=null;var ov=r("g",(function(r){if(r==="SYSTEM"){return window.matchMedia("(prefers-color-scheme: dark)").matches?"DARK":"LIGHT"}return r}));var fv=r("b",(function(r){var n=r.overrideSettings,t=r.zonosSettings;var e,a,i,u;iv();if(t){vv=t}var v=ev(uv.appearance,(vv===null||vv===void 0?void 0:vv.appearanceSettings)||(t===null||t===void 0?void 0:t.appearanceSettings)||null,n===null||n===void 0?void 0:n.appearance);if(v.theme==="SYSTEM"){v.theme=ov(v.theme)}uv.appearance=v;uv.checkoutSettings=ev(uv.checkoutSettings,(vv===null||vv===void 0?void 0:vv.checkoutSettings)||(t===null||t===void 0?void 0:t.checkoutSettings)||null,n===null||n===void 0?void 0:n.checkoutSettings);uv.helloSettings=ev(uv.helloSettings,(vv===null||vv===void 0?void 0:vv.helloSettings)||(t===null||t===void 0?void 0:t.helloSettings)||null,n===null||n===void 0?void 0:n.helloSettings);uv.loadedConfig=true;uv.organizationId=((e=t===null||t===void 0?void 0:t.organization)===null||e===void 0?void 0:e.id)||"";uv.organizationName=((a=t===null||t===void 0?void 0:t.organization)===null||a===void 0?void 0:a.name)||"";uv.storeId=((u=(i=t===null||t===void 0?void 0:t.organization)===null||i===void 0?void 0:i.references)===null||u===void 0?void 0:u.storeId)||null;uv.currencyConverter=n===null||n===void 0?void 0:n.currencyConverter;uv.onCountryChange=n===null||n===void 0?void 0:n.onCountryChange}));var cv=r("d",(function(){var r=uv.appearance.fontFamily||"Inter";return r}))}}}));
@@ -1 +1 @@
1
- import{r as o,h as e,H as t}from"./p-13ddaf31.js";import{_ as s,e as i,i as n,f as r,z as l,g as a,m as h}from"./p-f1962041.js";import{v as d,d as m,l as c,w as p,t as f,y as g,z as u,a as z,A as w,B as b,C as v,D as x}from"./p-aff5f4ca.js";import{c as y}from"./p-b4b7f705.js";import{g as k}from"./p-5883217a.js";import"./p-909a331c.js";import"./p-83cc2936.js";var T=s,E=/\s/,C=/^\s+/,L=i,D=n,j=function(o){return o?o.slice(0,function(o){for(var e=o.length;e--&&E.test(o.charAt(e)););return e}(o)+1).replace(C,""):o},O=r,S=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,R=/^0o[0-7]+$/i,X=parseInt,A=r,B=function(){return T.Date.now()},H=function(o){if("number"==typeof o)return o;if(function(o){return"symbol"==typeof o||D(o)&&"[object Symbol]"==L(o)}(o))return NaN;if(O(o)){var e="function"==typeof o.valueOf?o.valueOf():o;o=O(e)?e+"":e}if("string"!=typeof o)return 0===o?o:+o;o=j(o);var t=I.test(o);return t||R.test(o)?X(o.slice(2),t?2:8):S.test(o)?NaN:+o},M=Math.max,N=Math.min,$=function(o,e,t){var s,i,n,r,l,a,h=0,d=!1,m=!1,c=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function p(e){var t=s,n=i;return s=i=void 0,h=e,r=o.apply(n,t)}function f(o){var t=o-a;return void 0===a||t>=e||t<0||m&&o-h>=n}function g(){var o=B();if(f(o))return u(o);l=setTimeout(g,function(o){var t=e-(o-a);return m?N(t,n-(o-h)):t}(o))}function u(o){return l=void 0,c&&s?p(o):(s=i=void 0,r)}function z(){var o=B(),t=f(o);if(s=arguments,i=this,a=o,t){if(void 0===l)return function(o){return h=o,l=setTimeout(g,e),d?p(o):r}(a);if(m)return clearTimeout(l),l=setTimeout(g,e),p(a)}return void 0===l&&(l=setTimeout(g,e)),r}return e=H(e)||0,A(t)&&(d=!!t.leading,n=(m="maxWait"in t)?M(H(t.maxWait)||0,e):n,c="trailing"in t?!!t.trailing:c),z.cancel=function(){void 0!==l&&clearTimeout(l),h=0,s=a=i=l=void 0},z.flush=function(){return void 0===l?r:u(B())},z};const P=()=>{var o,e;const{productAddToCartElementSelector:t,productDescriptionElementSelector:s,productTitleElementSelector:i,restrictionBehavior:n}=l.helloSettings;i&&s||m("Hello Could not check item restrictions - must provide title and description selectors.");const r=i&&p(i)&&document.querySelectorAll(i)||[],a=s&&p(s)&&document.querySelectorAll(s)||[];if(r.length!==a.length)return m("Hello Could not check item restrictions - Title and description selectors do not match"),[];const h="RESTRICT_AND_BLOCK"===n,d=h&&t&&p(t)&&document.querySelectorAll(t)||[];h&&d.length!==a.length&&m('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match');const c=[];for(let t=0;t<r.length;t++){const s=r[t],i=a[t];if(s&&i){const n={cartButtonNode:d[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())||""};c.push(n)}}return c},F=class{constructor(e){o(this,e),this.getHelloPeekMessage=o=>{if(("productDetail"===l.currentHelloPage||"productList"===l.currentHelloPage)&&this.allRestrictedItems.length){const o=f("click to learn more");return`${f("productDetail"===l.currentHelloPage?"Restricted item":"Restricted items found")} - ${o}`}switch(l.currentHelloPage){case"cart":return f("Prepay duties and taxes at checkout");case"productList":case"productDetail":return f("See duty and tax thresholds");default:return`${f("Welcome to")} ${o}`}},this.enableShowPeekMessage=()=>{this.peekMessage&&(this.showPeekMessage=!0)},this.getNewItemRestrictions=async o=>"productDetail"!==l.currentHelloPage&&"productList"!==l.currentHelloPage||"DISABLED"===l.helloSettings.restrictionBehavior?[]:await(async o=>{if(!o.length)return[];const{selectedCountryCode:e}=c;if(!e)return m("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 d("https://v1.route.js.zonos.com/api/zonos-elements/check-item-restrictions",{body:i,method:"POST"});return n.length||!r?(m(`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(l.organizationName);const{peekMessageBehavior:o,peekMessageDelay:e}=l.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=P();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.handleProductCountChange=$((()=>{const{productTitleElementSelector:o}=l.helloSettings;if(o){const o=P();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.watchPriceChange=()=>{new MutationObserver((()=>{this.displayCurrency()})).observe(document.body,{attributes:!0,childList:!0,subtree:!0})},this.updateHelloOnPageChange=()=>{this.watchProductCountChange(),setInterval((()=>{if(window.location.href!==this.initialUrl){const o=this.initialUrl&&new URL(this.initialUrl);(o&&g(o.searchParams))!==c.selectedCountryCode&&(this.allFoundProducts=[],this.allRestrictedItems=[],this.productsOnPage=[]),this.initialUrl=window.location.href,l.currentHelloPage=(()=>{const{href:o}=window.location,{cartUrlPattern:e,homepageUrlPattern:t,productDetailUrlPattern:s,productListUrlPattern:i}=l.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(!g(e.searchParams))return void u(c.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 k(this.helloRef)},this.isShippableCountry=(o=!0)=>!(!c.localizationLoaded||!c.isShippableCountry&&(o&&z("Hello: not shippable country"),1)),this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettingsOverride=void 0,this.showPeekMessage=!1,this.zonosStoreHelloSettings=l.helloSettings,this.showDialog=!1,this.peekMessage="",this.initialUrl="",this.allRestrictedItems=[],this.allFoundProducts=[],this.productsOnPage=[]}componentWillLoad(){const o=setInterval((async()=>{this.helloRef&&l.loadedConfig&&(this.helloRef.setAttribute("data-zonos-hello-loaded",""),this.updateHelloOnPageChange(),this.watchPriceChange(),this.handleAppearanceSettingsOverrideChange(),clearInterval(o))}),100)}async displayCurrency(){c.exchangeRate?w():m("Could not display currency. Exchange rate and format data is not available.")}async convertAndFormat(o){return b(o)}async convert(o){return v(o)}async format(o){return x(o)}async openHelloDialog(o){this.changeShowDialog(o)}handleResize(){$(this.render.bind(this),500)}handleAppearanceSettingsOverrideChange(){var o;(null===(o=this.appearanceSettingsOverride)||void 0===o?void 0:o.theme)&&(this.appearanceSettingsOverride.theme=a(this.appearanceSettingsOverride.theme))}render(){var o,s;if(null===(o=l.helloSettings.excludedUrlPatterns)||void 0===o?void 0:o.some((o=>new RegExp(o).test(window.location.href))))return z("Hello is excluded on this url","warn"),null;const{selectedCountryCode:i}=c,n=this.mobileLocationOverride||l.helloSettings.mobileLocation,r=window.innerWidth<768,a=this.animateFromLeftOverride||r&&n.includes("LEFT")||this.shouldAnimateLeftDesktop()||!1,d=n.includes("TOP"),m=h(l.appearance,this.appearanceSettingsOverride),{theme:p}=m,f=null===(s=this.allRestrictedItems)||void 0===s?void 0:s.filter((o=>this.productsOnPage.some((e=>e.description===o.itemDescription))));this.peekMessage=this.getHelloPeekMessage(l.organizationName);const 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:y(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",a&&"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:y(["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:m,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,restrictedItems:f,setIsOpen:this.changeShowDialog}))))}static get watchers(){return{appearanceSettingsOverride:["handleAppearanceSettingsOverrideChange"]}}};F.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(--zonos-elements-page-background);font-size:var(--zonos-elements-font-size-s);border:var(--zonos-elements-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(--zonos-elements-text-color);position:absolute;background:var(--zonos-elements-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% + 16px));transform:translateX(calc(-100% + 16px));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--zonos-elements-border);border-bottom:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--zonos-elements-red-100);color:var(--zonos-elements-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(--zonos-elements-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:16px;border:var(--zonos-elements-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:16px;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% - 16px));transform:translateX(calc(100% - 16px));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(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-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(--zonos-elements-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}: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;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;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(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}: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;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;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(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-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(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-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:8px;padding-right:4px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:24px}";export{F as zonos_hello}
1
+ import{r as o,h as e,H as t}from"./p-ce347974.js";import{_ as s,e as i,i as n,f as r,z as l,g as a,m as h}from"./p-693b9985.js";import{v as d,d as m,l as c,w as p,t as g,y as f,z as u,a as z,A as w,B as b,C as v,D as x}from"./p-e015cb0e.js";import{c as y}from"./p-b4b7f705.js";import{g as k}from"./p-5883217a.js";import"./p-2f759d82.js";import"./p-8c0b4a61.js";var T=s,E=/\s/,C=/^\s+/,L=i,D=n,j=function(o){return o?o.slice(0,function(o){for(var e=o.length;e--&&E.test(o.charAt(e)););return e}(o)+1).replace(C,""):o},O=r,S=/^[-+]0x[0-9a-f]+$/i,I=/^0b[01]+$/i,R=/^0o[0-7]+$/i,X=parseInt,A=r,B=function(){return T.Date.now()},H=function(o){if("number"==typeof o)return o;if(function(o){return"symbol"==typeof o||D(o)&&"[object Symbol]"==L(o)}(o))return NaN;if(O(o)){var e="function"==typeof o.valueOf?o.valueOf():o;o=O(e)?e+"":e}if("string"!=typeof o)return 0===o?o:+o;o=j(o);var t=I.test(o);return t||R.test(o)?X(o.slice(2),t?2:8):S.test(o)?NaN:+o},M=Math.max,N=Math.min,$=function(o,e,t){var s,i,n,r,l,a,h=0,d=!1,m=!1,c=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function p(e){var t=s,n=i;return s=i=void 0,h=e,r=o.apply(n,t)}function g(o){var t=o-a;return void 0===a||t>=e||t<0||m&&o-h>=n}function f(){var o=B();if(g(o))return u(o);l=setTimeout(f,function(o){var t=e-(o-a);return m?N(t,n-(o-h)):t}(o))}function u(o){return l=void 0,c&&s?p(o):(s=i=void 0,r)}function z(){var o=B(),t=g(o);if(s=arguments,i=this,a=o,t){if(void 0===l)return function(o){return h=o,l=setTimeout(f,e),d?p(o):r}(a);if(m)return clearTimeout(l),l=setTimeout(f,e),p(a)}return void 0===l&&(l=setTimeout(f,e)),r}return e=H(e)||0,A(t)&&(d=!!t.leading,n=(m="maxWait"in t)?M(H(t.maxWait)||0,e):n,c="trailing"in t?!!t.trailing:c),z.cancel=function(){void 0!==l&&clearTimeout(l),h=0,s=a=i=l=void 0},z.flush=function(){return void 0===l?r:u(B())},z};const P=()=>{var o,e;const{productAddToCartElementSelector:t,productDescriptionElementSelector:s,productTitleElementSelector:i,restrictionBehavior:n}=l.helloSettings;i&&s||m("Hello Could not check item restrictions - must provide title and description selectors.");const r=i&&p(i)&&document.querySelectorAll(i)||[],a=s&&p(s)&&document.querySelectorAll(s)||[];if(r.length!==a.length)return m("Hello Could not check item restrictions - Title and description selectors do not match"),[];const h="RESTRICT_AND_BLOCK"===n,d=h&&t&&p(t)&&document.querySelectorAll(t)||[];h&&d.length!==a.length&&m('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match');const c=[];for(let t=0;t<r.length;t++){const s=r[t],i=a[t];if(s&&i){const n={cartButtonNode:d[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())||""};c.push(n)}}return c},F=class{constructor(e){o(this,e),this.getHelloPeekMessage=o=>{if(("productDetail"===l.currentHelloPage||"productList"===l.currentHelloPage)&&this.allRestrictedItems.length){const o=g("click to learn more");return`${g("productDetail"===l.currentHelloPage?"Restricted item":"Restricted items found")} - ${o}`}switch(l.currentHelloPage){case"cart":return g("Prepay duties and taxes at checkout");case"productList":case"productDetail":return g("See duty and tax thresholds");default:return`${g("Welcome to")} ${o}`}},this.enableShowPeekMessage=()=>{this.peekMessage&&(this.showPeekMessage=!0)},this.getNewItemRestrictions=async o=>"productDetail"!==l.currentHelloPage&&"productList"!==l.currentHelloPage||"DISABLED"===l.helloSettings.restrictionBehavior?[]:await(async o=>{if(!o.length)return[];const{selectedCountryCode:e}=c;if(!e)return m("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 d("https://v1.route.js.zonos.com/api/zonos-elements/check-item-restrictions",{body:i,method:"POST"});return n.length||!r?(m(`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(l.organizationName);const{peekMessageBehavior:o,peekMessageDelay:e}=l.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=P();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.handleProductCountChange=$((()=>{const{productTitleElementSelector:o}=l.helloSettings;if(o){const o=P();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.watchPriceChange=()=>{new MutationObserver((()=>{this.displayCurrency()})).observe(document.body,{attributes:!0,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))!==c.selectedCountryCode&&(this.allFoundProducts=[],this.allRestrictedItems=[],this.productsOnPage=[]),this.initialUrl=window.location.href,l.currentHelloPage=(()=>{const{href:o}=window.location,{cartUrlPattern:e,homepageUrlPattern:t,productDetailUrlPattern:s,productListUrlPattern:i}=l.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 u(c.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 k(this.helloRef)},this.isShippableCountry=(o=!0)=>!(!c.localizationLoaded||!c.isShippableCountry&&(o&&z("Hello: not shippable country"),1)),this.mobileLocationOverride=void 0,this.animateFromLeftOverride=void 0,this.appearanceSettingsOverride=void 0,this.showPeekMessage=!1,this.zonosStoreHelloSettings=l.helloSettings,this.showDialog=!1,this.peekMessage="",this.initialUrl="",this.allRestrictedItems=[],this.allFoundProducts=[],this.productsOnPage=[]}componentWillLoad(){const o=setInterval((async()=>{this.helloRef&&l.loadedConfig&&(this.helloRef.setAttribute("data-zonos-hello-loaded",""),this.updateHelloOnPageChange(),this.watchPriceChange(),this.handleAppearanceSettingsOverrideChange(),clearInterval(o))}),100)}async displayCurrency(){c.exchangeRate?w():m("Could not display currency. Exchange rate and format data is not available.")}async convertAndFormat(o){return b(o)}async convert(o){return v(o)}async format(o){return x(o)}async openHelloDialog(o){this.changeShowDialog(o)}handleResize(){$(this.render.bind(this),500)}handleAppearanceSettingsOverrideChange(){var o;(null===(o=this.appearanceSettingsOverride)||void 0===o?void 0:o.theme)&&(this.appearanceSettingsOverride.theme=a(this.appearanceSettingsOverride.theme))}render(){var o,s;if(null===(o=l.helloSettings.excludedUrlPatterns)||void 0===o?void 0:o.some((o=>new RegExp(o).test(window.location.href))))return z("Hello is excluded on this url","warn"),null;const{selectedCountryCode:i}=c,n=this.mobileLocationOverride||l.helloSettings.mobileLocation,r=window.innerWidth<768,a=this.animateFromLeftOverride||r&&n.includes("LEFT")||this.shouldAnimateLeftDesktop()||!1,d=n.includes("TOP"),m=h(l.appearance,this.appearanceSettingsOverride),{theme:p}=m,g=null===(s=this.allRestrictedItems)||void 0===s?void 0:s.filter((o=>this.productsOnPage.some((e=>e.description===o.itemDescription))));this.peekMessage=this.getHelloPeekMessage(l.organizationName);const f=this.isShippableCountry()&&!!i;return e(t,{class:"zonos--hello zonos--elements","data-theme":p},f&&e("div",{class:"zonos--hello-wrapper"},e("button",{class:y(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",a&&"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:y(["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:m,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,restrictedItems:g,setIsOpen:this.changeShowDialog}))))}static get watchers(){return{appearanceSettingsOverride:["handleAppearanceSettingsOverrideChange"]}}};F.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(--zonos-elements-page-background);font-size:var(--zonos-elements-font-size-s);border:var(--zonos-elements-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(--zonos-elements-text-color);position:absolute;background:var(--zonos-elements-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% + 16px));transform:translateX(calc(-100% + 16px));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--zonos-elements-border);border-bottom:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--zonos-elements-red-100);color:var(--zonos-elements-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(--zonos-elements-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:16px;border:var(--zonos-elements-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:16px;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% - 16px));transform:translateX(calc(100% - 16px));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(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-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(--zonos-elements-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}: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;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;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(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}: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;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;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(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-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(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-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:8px;padding-right:4px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:24px}";export{F as zonos_hello}
@@ -0,0 +1 @@
1
+ import{g as n,f as t}from"./p-ce347974.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="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},c=function(n,t){return n===t||n!=n&&t!=t},a=c,s=function(n,t){for(var r=n.length;r--;)if(a(n[r][0],t))return r;return-1},f=s,l=Array.prototype.splice,v=s,d=s,h=s;function p(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])}}p.prototype.clear=function(){this.__data__=[],this.size=0},p.prototype.delete=function(n){var t=this.__data__,r=f(t,n);return!(r<0||(r==t.length-1?t.pop():l.call(t,r,1),--this.size,0))},p.prototype.get=function(n){var t=this.__data__,r=v(t,n);return r<0?void 0:t[r][1]},p.prototype.has=function(n){return d(this.__data__,n)>-1},p.prototype.set=function(n,t){var r=this.__data__,e=h(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this};var b,y=p,g=y,j="object"==typeof u&&u&&u.Object===Object&&u,m="object"==typeof self&&self&&self.Object===Object&&self,O=j||m||Function("return this")(),S=O.Symbol,w=Object.prototype,E=w.hasOwnProperty,_=w.toString,A=S?S.toStringTag:void 0,D=Object.prototype.toString,T=S?S.toStringTag:void 0,B=function(n){return null==n?void 0===n?"[object Undefined]":"[object Null]":T&&T in Object(n)?function(n){var t=E.call(n,A),r=n[A];try{n[A]=void 0;var e=!0}catch(n){}var o=_.call(n);return e&&(t?n[A]=r:delete n[A]),o}(n):function(n){return D.call(n)}(n)},C=function(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)},L=B,I=C,P=function(n){if(!I(n))return!1;var t=L(n);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},U=O["__core-js_shared__"],x=(b=/[^.]+$/.exec(U&&U.keys&&U.keys.IE_PROTO||""))?"Symbol(src)_1."+b:"",M=Function.prototype.toString,N=P,z=C,F=/^\[object .+?Constructor\]$/,R=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),$=function(n){return!(!z(n)||(t=n,x&&x in t))&&(N(n)?R:F).test(function(n){if(null!=n){try{return M.call(n)}catch(n){}try{return n+""}catch(n){}}return""}(n));var t},k=function(n,t){var r=function(n,t){return null==n?void 0:n[t]}(n,t);return $(r)?r:void 0},G=k(O,"Map"),H=k(Object,"create"),K=H,V=H,Y=Object.prototype.hasOwnProperty,q=H,J=Object.prototype.hasOwnProperty,Q=H;function W(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])}}W.prototype.clear=function(){this.__data__=K?K(null):{},this.size=0},W.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},W.prototype.get=function(n){var t=this.__data__;if(V){var r=t[n];return"__lodash_hash_undefined__"===r?void 0:r}return Y.call(t,n)?t[n]:void 0},W.prototype.has=function(n){var t=this.__data__;return q?void 0!==t[n]:J.call(t,n)},W.prototype.set=function(n,t){var r=this.__data__;return this.size+=this.has(n)?0:1,r[n]=Q&&void 0===t?"__lodash_hash_undefined__":t,this};var X=W,Z=y,nn=G,tn=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},rn=tn,en=tn,on=tn,un=tn;function cn(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])}}cn.prototype.clear=function(){this.size=0,this.__data__={hash:new X,map:new(nn||Z),string:new X}},cn.prototype.delete=function(n){var t=rn(this,n).delete(n);return this.size-=t?1:0,t},cn.prototype.get=function(n){return en(this,n).get(n)},cn.prototype.has=function(n){return on(this,n).has(n)},cn.prototype.set=function(n,t){var r=un(this,n),e=r.size;return r.set(n,t),this.size+=r.size==e?0:1,this};var an=y,sn=G,fn=cn,ln=y,vn=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},dn=function(n){return this.__data__.get(n)},hn=function(n){return this.__data__.has(n)};function pn(n){var t=this.__data__=new ln(n);this.size=t.size}pn.prototype.clear=function(){this.__data__=new g,this.size=0},pn.prototype.delete=vn,pn.prototype.get=dn,pn.prototype.has=hn,pn.prototype.set=function(n,t){var r=this.__data__;if(r instanceof an){var e=r.__data__;if(!sn||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new fn(e)}return r.set(n,t),this.size=r.size,this};var bn,yn,gn,jn,mn,On=pn,Sn=k,wn=function(){try{var n=Sn(Object,"defineProperty");return n({},"",{}),n}catch(n){}}(),En=wn,_n=function(n,t,r){"__proto__"==t&&En?En(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r},An=_n,Dn=c,Tn=function(n,t,r){(void 0!==r&&!Dn(n[t],r)||void 0===r&&!(t in n))&&An(n,t,r)},Bn=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},Cn={exports:{}};mn=(jn=(gn=(yn=(bn=Cn.exports)&&!bn.nodeType&&bn)&&Cn&&!Cn.nodeType&&Cn)&&gn.exports===yn?O.Buffer:void 0)?jn.allocUnsafe:void 0,Cn.exports=function(n,t){if(t)return n.slice();var r=n.length,e=mn?mn(r):new n.constructor(r);return n.copy(e),e};var Ln,In,Pn=O.Uint8Array,Un=C,xn=Object.create,Mn=function(){function n(){}return function(t){if(!Un(t))return{};if(xn)return xn(t);n.prototype=t;var r=new n;return n.prototype=void 0,r}}(),Nn=(Ln=Object.getPrototypeOf,In=Object,function(n){return Ln(In(n))}),zn=Object.prototype,Fn=function(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||zn)},Rn=Mn,$n=Nn,kn=Fn,Gn=function(n){return null!=n&&"object"==typeof n},Hn=B,Kn=Gn,Vn=function(n){return Kn(n)&&"[object Arguments]"==Hn(n)},Yn=Gn,qn=Object.prototype,Jn=qn.hasOwnProperty,Qn=qn.propertyIsEnumerable,Wn=Vn(function(){return arguments}())?Vn:function(n){return Yn(n)&&Jn.call(n,"callee")&&!Qn.call(n,"callee")},Xn=Array.isArray,Zn=function(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=9007199254740991},nt=P,tt=Zn,rt=function(n){return null!=n&&tt(n.length)&&!nt(n)},et=rt,ot=Gn,it={exports:{}},ut=function(){return!1};!function(n,t){var r=t&&!t.nodeType&&t,e=r&&it&&!it.nodeType&&it,o=e&&e.exports===r?O.Buffer:void 0;it.exports=(o?o.isBuffer:void 0)||ut}(0,it.exports);var ct=B,at=Nn,st=Gn,ft=Function.prototype.toString,lt=Object.prototype.hasOwnProperty,vt=ft.call(Object),dt=B,ht=Zn,pt=Gn,bt={};bt["[object Float32Array]"]=bt["[object Float64Array]"]=bt["[object Int8Array]"]=bt["[object Int16Array]"]=bt["[object Int32Array]"]=bt["[object Uint8Array]"]=bt["[object Uint8ClampedArray]"]=bt["[object Uint16Array]"]=bt["[object Uint32Array]"]=!0,bt["[object Arguments]"]=bt["[object Array]"]=bt["[object ArrayBuffer]"]=bt["[object Boolean]"]=bt["[object DataView]"]=bt["[object Date]"]=bt["[object Error]"]=bt["[object Function]"]=bt["[object Map]"]=bt["[object Number]"]=bt["[object Object]"]=bt["[object RegExp]"]=bt["[object Set]"]=bt["[object String]"]=bt["[object WeakMap]"]=!1;var yt={exports:{}};!function(n,t){var r=t&&!t.nodeType&&t,e=r&&n&&!n.nodeType&&n,o=e&&e.exports===r&&j.process,i=function(){try{return e&&e.require&&e.require("util").types||o&&o.binding&&o.binding("util")}catch(n){}}();n.exports=i}(yt,yt.exports);var gt,jt=function(n){return pt(n)&&ht(n.length)&&!!bt[dt(n)]},mt=yt.exports,Ot=mt&&mt.isTypedArray,St=Ot?function(n){return function(t){return n(t)}}(Ot):jt,wt=function(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]},Et=_n,_t=c,At=Object.prototype.hasOwnProperty,Dt=function(n,t,r){var e=n[t];At.call(n,t)&&_t(e,r)&&(void 0!==r||t in n)||Et(n,t,r)},Tt=_n,Bt=/^(?:0|[1-9]\d*)$/,Ct=function(n,t){var r=typeof n;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&Bt.test(n))&&n>-1&&n%1==0&&n<t},Lt=Wn,It=Xn,Pt=it.exports,Ut=Ct,xt=St,Mt=Object.prototype.hasOwnProperty,Nt=C,zt=Fn,Ft=Object.prototype.hasOwnProperty,Rt=function(n,t){var r=It(n),e=!r&&Lt(n),o=!r&&!e&&Pt(n),i=!r&&!e&&!o&&xt(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&&!Mt.call(n,s)||u&&("length"==s||o&&("offset"==s||"parent"==s)||i&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||Ut(s,a))||c.push(s);return c},$t=function(n){if(!Nt(n))return function(n){var t=[];if(null!=n)for(var r in Object(n))t.push(r);return t}(n);var t=zt(n),r=[];for(var e in n)("constructor"!=e||!t&&Ft.call(n,e))&&r.push(e);return r},kt=rt,Gt=function(n){return kt(n)?Rt(n,!0):$t(n)},Ht=Gt,Kt=Tn,Vt=Cn.exports,Yt=function(n,t){var r,e,o=t?(e=new(r=n.buffer).constructor(r.byteLength),new Pn(e).set(new Pn(r)),e):n.buffer;return new n.constructor(o,n.byteOffset,n.length)},qt=function(n,t){var r=-1,e=n.length;for(t||(t=Array(e));++r<e;)t[r]=n[r];return t},Jt=function(n){return"function"!=typeof n.constructor||kn(n)?{}:Rn($n(n))},Qt=Wn,Wt=Xn,Xt=function(n){return ot(n)&&et(n)},Zt=it.exports,nr=P,tr=C,rr=function(n){if(!st(n)||"[object Object]"!=ct(n))return!1;var t=at(n);if(null===t)return!0;var r=lt.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&ft.call(r)==vt},er=St,or=wt,ir=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?Tt(r,c,a):Dt(r,c,a)}return r}(n,Ht(n))},ur=On,cr=Tn,ar=Bn,sr=C,fr=Gt,lr=wt,vr=function(n){return n},dr=Math.max,hr=wn,pr=Date.now,br=function(n){var t=0,r=0;return function(){var e=pr(),o=16-(e-r);if(r=e,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(void 0,arguments)}}(hr?function(n,t){return hr(n,"toString",{configurable:!0,enumerable:!1,value:(r=t,function(){return r}),writable:!0});var r}:vr),yr=vr,gr=function(n,t,r){return t=dr(void 0===t?n.length-1:t,0),function(){for(var e=arguments,o=-1,i=dr(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)}},jr=br,mr=c,Or=rt,Sr=Ct,wr=C,Er=function n(t,r,e,o,i){t!==r&&ar(r,(function(u,c){if(i||(i=new ur),sr(u))!function(n,t,r,e,o,i,u){var c=or(n,r),a=or(t,r),s=u.get(a);if(s)Kt(n,r,s);else{var f=i?i(c,a,r+"",n,t,u):void 0,l=void 0===f;if(l){var v=Wt(a),d=!v&&Zt(a),h=!v&&!d&&er(a);f=a,v||d||h?Wt(c)?f=c:Xt(c)?f=qt(c):d?(l=!1,f=Vt(a,!0)):h?(l=!1,f=Yt(a,!0)):f=[]:rr(a)||Qt(a)?(f=c,Qt(c)?f=ir(c):tr(c)&&!nr(c)||(f=Jt(a))):l=!1}l&&(u.set(a,f),o(f,a,e,i,u),u.delete(a)),Kt(n,r,f)}}(t,r,c,e,n,o,i);else{var a=o?o(lr(t,c),u,c+"",t,r,i):void 0;void 0===a&&(a=u),cr(t,c,a)}}),fr)},_r=(gt=function(n,t,r){Er(n,t,r)},function(n,t){return jr(gr(n,t,yr),n+"")}((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=gt.length>3&&"function"==typeof o?(e--,o):void 0,i&&function(n,t,r){if(!wr(r))return!1;var e=typeof t;return!!("number"==e?Or(r)&&Sr(t,r.length):"string"==e&&t in r)&&mr(r[t],n)}(t[0],t[1],i)&&(o=e<3?void 0:o,e=1),n=Object(n);++r<e;){var u=t[r];u&&gt(n,u,r)}return n})));const Ar=(n,t,...r)=>{const e=[n,t,...r].filter(Boolean);return _r.apply(null,e)},{reset:Dr,state:Tr}=i((()=>({appearance:{colorPrimary:"white",fontFamily:"Inter",logoUrl:"",style:"ROUNDED",theme:"LIGHT",zonosAttribution:"DISABLED"},checkoutSettings:{allowedCharacterSets:"ALL",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:{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,organizationId:"",organizationName:"",sourceCurrency:"USD",storeId:null,stripeApiKey:"",zonosApiKey:""})));let Br=null;const Cr=n=>"SYSTEM"===n?window.matchMedia("(prefers-color-scheme: dark)").matches?"DARK":"LIGHT":n,Lr=({overrideSettings:n,zonosSettings:t})=>{var r,e,o,i;Dr(),t&&(Br=t);const u=Ar(Tr.appearance,(null==Br?void 0:Br.appearanceSettings)||(null==t?void 0:t.appearanceSettings)||null,null==n?void 0:n.appearance);"SYSTEM"===u.theme&&(u.theme=Cr(u.theme)),Tr.appearance=u,Tr.checkoutSettings=Ar(Tr.checkoutSettings,(null==Br?void 0:Br.checkoutSettings)||(null==t?void 0:t.checkoutSettings)||null,null==n?void 0:n.checkoutSettings),Tr.helloSettings=Ar(Tr.helloSettings,(null==Br?void 0:Br.helloSettings)||(null==t?void 0:t.helloSettings)||null,null==n?void 0:n.helloSettings),Tr.loadedConfig=!0,Tr.organizationId=(null===(r=null==t?void 0:t.organization)||void 0===r?void 0:r.id)||"",Tr.organizationName=(null===(e=null==t?void 0:t.organization)||void 0===e?void 0:e.name)||"",Tr.storeId=(null===(i=null===(o=null==t?void 0:t.organization)||void 0===o?void 0:o.references)||void 0===i?void 0:i.storeId)||null,Tr.currencyConverter=null==n?void 0:n.currencyConverter,Tr.onCountryChange=null==n?void 0:n.onCountryChange},Ir=()=>Tr.appearance.fontFamily||"Inter";export{O as _,u as a,Lr as b,i as c,Ir as d,B as e,C as f,Cr as g,Gn as i,Ar as m,Tr as z}
@@ -1 +1 @@
1
- System.register(["./p-163ff5b5.system.js","./p-87badea9.system.js","./p-23e7c655.system.js"],(function(t){"use strict";var s,e,o,i,n,a;return{setters:[function(t){s=t.r;e=t.h;o=t.a;i=t.H},function(t){n=t.d},function(t){a=t.c}],execute:function(){var r=":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)}";var h=r;var f=t("zonos_logo",function(){function t(t){s(this,t);this.theme="LIGHT";this.width="auto"}t.prototype.render=function(){var t=this.theme==="DARK"?"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 e(i,{key:"c68b772cba1e8562b48a58bace45e0643bd18dcf",class:a(["zonos--elements zonos--logo"]),style:{"--filter-color":t,"--font-family":n(),"--width":this.width}},e("img",{key:"a3a48b9f4dc2401d543afe0d2334b5bd57aad4d6",alt:"Zonos Logo",src:o("./assets/ZonosLogo.png")}))};Object.defineProperty(t,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return t}());f.style=h}}}));
1
+ System.register(["./p-d99232c5.system.js","./p-62ecfbcc.system.js","./p-23e7c655.system.js"],(function(t){"use strict";var s,e,o,i,n,r;return{setters:[function(t){s=t.r;e=t.h;o=t.a;i=t.H},function(t){n=t.d},function(t){r=t.c}],execute:function(){var a=":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)}";var h=a;var f=t("zonos_logo",function(){function t(t){s(this,t);this.theme="LIGHT";this.width="auto"}t.prototype.render=function(){var t=this.theme==="DARK"?"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 e(i,{key:"c790c72d413c586a873c5046a1aee797c1f0af36",class:r(["zonos--elements zonos--logo"]),style:{"--filter-color":t,"--font-family":n(),"--width":this.width}},e("img",{key:"68efd2097a0d8488308de0b50bef30cc67deb6fa",alt:"Zonos Logo",src:o("./assets/ZonosLogo.png")}))};Object.defineProperty(t,"assetsDirs",{get:function(){return["assets"]},enumerable:false,configurable:true});return t}());f.style=h}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,o,t,n){function r(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{a(n.next(e))}catch(e){i(e)}}function l(e){try{a(n["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):r(e.value).then(s,l)}a((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(o){return a([e,o])}}function a(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(t=0)),t)try{if(n=1,r&&(i=l[0]&2?r["return"]:l[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;if(r=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;r=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1];i=l;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(l);break}if(i[2])t.ops.pop();t.trys.pop();continue}l=o.call(e,t)}catch(e){l=[6,e];r=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-163ff5b5.system.js","./p-87badea9.system.js","./p-ef9cbb66.system.js","./p-23e7c655.system.js","./p-bc7bf53e.system.js","./p-771fbeb3.system.js","./p-79f3c4f5.system.js"],(function(e){"use strict";var o,t,n,r,i,s,l,a,h,d,u,f,c,m,v,g,w,p,z,b,x,y,k,_;return{setters:[function(e){o=e.r;t=e.h;n=e.H},function(e){r=e._;i=e.e;s=e.i;l=e.f;a=e.z;h=e.g;d=e.m},function(e){u=e.v;f=e.d;c=e.l;m=e.w;v=e.t;g=e.y;w=e.z;p=e.a;z=e.A;b=e.B;x=e.C;y=e.D},function(e){k=e.c},function(e){_=e.g},function(){},function(){}],execute:function(){var T=this;var E=r;var L=function(){return E.Date.now()};var j=L;var O=/\s/;function I(e){var o=e.length;while(o--&&O.test(e.charAt(o))){}return o}var S=I;var X=S;var R=/^\s+/;function C(e){return e?e.slice(0,X(e)+1).replace(R,""):e}var D=C;var B=i,A=s;var H="[object Symbol]";function M(e){return typeof e=="symbol"||A(e)&&B(e)==H}var F=M;var N=D,P=l,$=F;var U=0/0;var W=/^[-+]0x[0-9a-f]+$/i;var G=/^0b[01]+$/i;var K=/^0o[0-7]+$/i;var q=parseInt;function J(e){if(typeof e=="number"){return e}if($(e)){return U}if(P(e)){var o=typeof e.valueOf=="function"?e.valueOf():e;e=P(o)?o+"":o}if(typeof e!="string"){return e===0?e:+e}e=N(e);var t=G.test(e);return t||K.test(e)?q(e.slice(2),t?2:8):W.test(e)?U:+e}var Q=J;var V=l,Y=j,Z=Q;var ee="Expected a function";var oe=Math.max,te=Math.min;function ne(e,o,t){var n,r,i,s,l,a,h=0,d=false,u=false,f=true;if(typeof e!="function"){throw new TypeError(ee)}o=Z(o)||0;if(V(t)){d=!!t.leading;u="maxWait"in t;i=u?oe(Z(t.maxWait)||0,o):i;f="trailing"in t?!!t.trailing:f}function c(o){var t=n,i=r;n=r=undefined;h=o;s=e.apply(i,t);return s}function m(e){h=e;l=setTimeout(w,o);return d?c(e):s}function v(e){var t=e-a,n=e-h,r=o-t;return u?te(r,i-n):r}function g(e){var t=e-a,n=e-h;return a===undefined||t>=o||t<0||u&&n>=i}function w(){var e=Y();if(g(e)){return p(e)}l=setTimeout(w,v(e))}function p(e){l=undefined;if(f&&n){return c(e)}n=r=undefined;return s}function z(){if(l!==undefined){clearTimeout(l)}h=0;n=a=r=l=undefined}function b(){return l===undefined?s:p(Y())}function x(){var e=Y(),t=g(e);n=arguments;r=this;a=e;if(t){if(l===undefined){return m(a)}if(u){clearTimeout(l);l=setTimeout(w,o);return c(a)}}if(l===undefined){l=setTimeout(w,o)}return s}x.cancel=z;x.flush=b;return x}var re=ne;var ie=function(e){return __awaiter(T,[e],void 0,(function(e){var o,t,n,r,i,s;var l=e.items,a=e.shipFrom,h=e.shipTo;return __generator(this,(function(e){switch(e.label){case 0:t="".concat("https://v1.route.js.zonos.com","/api/zonos-elements/check-item-restrictions");n={items:l,shipFrom:a,shipTo:h};return[4,u(t,{body:n,method:"POST"})];case 1:r=e.sent(),i=r.errors,s=r.json;if(i.length||!s){f("Error fetching item restrictions: ".concat((o=i.find(Boolean))===null||o===void 0?void 0:o.message));return[2,[]]}return[2,s.filter(Boolean)]}}))}))};var se=function(e){return __awaiter(T,void 0,void 0,(function(){var o,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:if(!e.length){return[2,[]]}o=c.selectedCountryCode;if(!o){f("Hello Could not check item restrictions - No country code selected");return[2,[]]}t=e.map((function(e){return{description:e.description,name:e.title}}));return[4,ie({items:t,shipFrom:"AD",shipTo:o})];case 1:n=i.sent();r=n.map((function(e){var o;var n=((o=t.filter((function(o){return o.description===e.itemDescription})).find(Boolean))===null||o===void 0?void 0:o.name)||"";return Object.assign(Object.assign({},e),{name:n})}));return[2,r]}}))}))};var le=function(){var e=window.location.href;var o=a.helloSettings,t=o.cartUrlPattern,n=o.homepageUrlPattern,r=o.productDetailUrlPattern,i=o.productListUrlPattern;if(t&&new RegExp(t).test(e)){return"cart"}if(r&&new RegExp(r).test(e)){return"productDetail"}if(i&&new RegExp(i).test(e)){return"productList"}if(n&&new RegExp(n).test(e)){return"home"}return""};var ae=function(){var e,o;var t=a.helloSettings,n=t.productAddToCartElementSelector,r=t.productDescriptionElementSelector,i=t.productTitleElementSelector,s=t.restrictionBehavior;if(!i||!r){f("Hello Could not check item restrictions - must provide title and description selectors.")}var l=i&&m(i)&&document.querySelectorAll(i)||[];var h=r&&m(r)&&document.querySelectorAll(r)||[];if(l.length!==h.length){f("Hello Could not check item restrictions - Title and description selectors do not match");return[]}var d=s==="RESTRICT_AND_BLOCK";var u=d&&n&&m(n)&&document.querySelectorAll(n)||[];if(d&&u.length!==h.length){f('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match')}var c=[];for(var v=0;v<l.length;v++){var g=l[v];var w=h[v];var p=u[v];if(g&&w){var z={cartButtonNode:p||null,description:((e=w.textContent)===null||e===void 0?void 0:e.trim())||"",title:((o=g.textContent)===null||o===void 0?void 0:o.trim())||""};c.push(z)}}return c};var he=":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(--zonos-elements-page-background);font-size:var(--zonos-elements-font-size-s);border:var(--zonos-elements-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(--zonos-elements-text-color);position:absolute;background:var(--zonos-elements-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% + 16px));transform:translateX(calc(-100% + 16px));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--zonos-elements-border);border-bottom:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--zonos-elements-red-100);color:var(--zonos-elements-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(--zonos-elements-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:16px;border:var(--zonos-elements-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:16px;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% - 16px));transform:translateX(calc(100% - 16px));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(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-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(--zonos-elements-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}: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;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;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(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}: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;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;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(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-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(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-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:8px;padding-right:4px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:24px}";var de=he;var ue=3e3;var fe=500;var ce=e("zonos_hello",function(){function e(e){var t=this;o(this,e);this.getHelloPeekMessage=function(e){var o=a.currentHelloPage==="productDetail"||a.currentHelloPage==="productList";if(o&&t.allRestrictedItems.length){var n=v("click to learn more");var r=a.currentHelloPage==="productDetail"?v("Restricted item"):v("Restricted items found");return"".concat(r," - ").concat(n)}switch(a.currentHelloPage){case"cart":return v("Prepay duties and taxes at checkout");case"productList":case"productDetail":return v("See duty and tax thresholds");default:return"".concat(v("Welcome to")," ").concat(e)}};this.enableShowPeekMessage=function(){if(t.peekMessage){t.showPeekMessage=true}};this.getNewItemRestrictions=function(e){return __awaiter(t,void 0,void 0,(function(){var o,t;return __generator(this,(function(n){switch(n.label){case 0:o=a.currentHelloPage==="productDetail"||a.currentHelloPage==="productList";if(!o||a.helloSettings.restrictionBehavior==="DISABLED"){return[2,[]]}return[4,se(e)];case 1:t=n.sent();return[2,t]}}))}))};this.triggerShowPeekMessage=function(){t.peekMessage=t.getHelloPeekMessage(a.organizationName);var e=a.helloSettings,o=e.peekMessageBehavior,n=e.peekMessageDelay;var r=n*1e3;if(o==="ENABLED"){setTimeout((function(){t.enableShowPeekMessage();var e=t.allRestrictedItems.some((function(e){return t.productsOnPage.some((function(o){return o.description===e.itemDescription}))}));if(!e){setTimeout((function(){t.showPeekMessage=false}),ue)}}),r)}};this.disableAddToCartButtons=function(){if(t.productsOnPage.length){t.productsOnPage.forEach((function(e){var o,n;var r=t.allRestrictedItems.some((function(o){return o.itemDescription===e.description}));if(r){(o=e.cartButtonNode)===null||o===void 0?void 0:o.setAttribute("disabled","disabled")}else{(n=e.cartButtonNode)===null||n===void 0?void 0:n.removeAttribute("disabled")}}))}};this.handleItemRestrictions=function(){return __awaiter(t,void 0,void 0,(function(){var e,o;var t,n;var r=this;return __generator(this,(function(i){switch(i.label){case 0:this.productsOnPage=ae();e=this.productsOnPage.filter((function(e){return!r.allFoundProducts.some((function(o){return o.title===e.title}))}));return[4,this.getNewItemRestrictions(e)];case 1:o=i.sent();(t=this.allRestrictedItems).push.apply(t,o);(n=this.allFoundProducts).push.apply(n,e);this.disableAddToCartButtons();return[2]}}))}))};this.reloadHelloData=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.handleItemRestrictions()];case 1:e.sent();this.triggerShowPeekMessage();return[2]}}))}))};this.handleProductCountChange=re((function(){var e=a.helloSettings.productTitleElementSelector;if(e){var o=ae();if(t.allFoundProducts.length!==o.length&&window.location.href===t.initialUrl){if(!t.allFoundProducts.length){return}void t.reloadHelloData()}}}),1e3);this.watchProductCountChange=function(){var e=new MutationObserver(t.handleProductCountChange);e.observe(document.body,{childList:true,subtree:true})};this.watchPriceChange=function(){var e=new MutationObserver((function(){return void t.displayCurrency()}));e.observe(document.body,{attributes:true,childList:true,subtree:true})};this.updateHelloOnPageChange=function(){t.watchProductCountChange();setInterval((function(){if(window.location.href!==t.initialUrl){var e=t.initialUrl&&new URL(t.initialUrl);var o=e&&g(e.searchParams);if(o!==c.selectedCountryCode){t.allFoundProducts=[];t.allRestrictedItems=[];t.productsOnPage=[]}t.initialUrl=window.location.href;a.currentHelloPage=le();var n=new URL(window.location.href);var r=g(n.searchParams);if(!r){w(c.selectedCountryCode);return}void t.reloadHelloData()}}),1e3)};this.changeShowDialog=function(e){t.showDialog=e};this.shouldAnimateLeftDesktop=function(){var e=t.helloRef&&getComputedStyle(t.helloRef).position;if(t.helloRef&&e==="relative"){var o=_(t.helloRef);return o}};this.isShippableCountry=function(e){if(e===void 0){e=true}if(!c.localizationLoaded){return false}if(!c.isShippableCountry){if(e){p("Hello: not shippable country")}return false}return true};this.mobileLocationOverride=undefined;this.animateFromLeftOverride=undefined;this.appearanceSettingsOverride=undefined;this.showPeekMessage=false;this.zonosStoreHelloSettings=a.helloSettings;this.showDialog=false;this.peekMessage="";this.initialUrl="";this.allRestrictedItems=[];this.allFoundProducts=[];this.productsOnPage=[]}e.prototype.componentWillLoad=function(){var e=this;var o=setInterval((function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.helloRef){return[2]}if(a.loadedConfig){this.helloRef.setAttribute("data-zonos-hello-loaded","");this.updateHelloOnPageChange();this.watchPriceChange();this.handleAppearanceSettingsOverrideChange();clearInterval(o)}return[2]}))}))}),100)};e.prototype.displayCurrency=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!c.exchangeRate){f("Could not display currency. Exchange rate and format data is not available.");return[2]}z();return[2]}))}))};e.prototype.convertAndFormat=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,b(e)]}))}))};e.prototype.convert=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,x(e)]}))}))};e.prototype.format=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,y(e)]}))}))};e.prototype.openHelloDialog=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.changeShowDialog(e);return[2]}))}))};e.prototype.handleResize=function(){re(this.render.bind(this),fe)};e.prototype.handleAppearanceSettingsOverrideChange=function(){var e;if((e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.theme){this.appearanceSettingsOverride.theme=h(this.appearanceSettingsOverride.theme)}};e.prototype.render=function(){var e=this;var o,r;var i=(o=a.helloSettings.excludedUrlPatterns)===null||o===void 0?void 0:o.some((function(e){return new RegExp(e).test(window.location.href)}));if(i){p("Hello is excluded on this url","warn");return null}var s=c.selectedCountryCode;var l=this.mobileLocationOverride||a.helloSettings.mobileLocation;var h=window.innerWidth<768;var u=this.animateFromLeftOverride||h&&l.includes("LEFT")||this.shouldAnimateLeftDesktop()||false;var f=l.includes("TOP");var m=d(a.appearance,this.appearanceSettingsOverride);var v=m.theme;var g=(r=this.allRestrictedItems)===null||r===void 0?void 0:r.filter((function(o){return e.productsOnPage.some((function(e){return e.description===o.itemDescription}))}));this.peekMessage=this.getHelloPeekMessage(a.organizationName);var w=this.isShippableCountry()&&!!s;return t(n,{class:"zonos--hello zonos--elements","data-theme":v},w&&t("div",{class:"zonos--hello-wrapper"},t("button",{class:k(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",u&&"zonos--hello-widget-left zonos--hello-widget-animate-from-left",f&&"zonos--hello-widget-top",!!this.allRestrictedItems.length&&"zonos--hello-has-restrictions"]),onClick:function(){void e.changeShowDialog(!e.showDialog)},onMouseEnter:function(){return e.enableShowPeekMessage()},onMouseLeave:function(){return e.showPeekMessage=false},ref:function(o){return o&&(e.helloRef=o)}},t("zonos-text",{class:"zonos--hello-message"},this.peekMessage),s&&t("div",{class:"zonos--hello-country-flag-wrapper"},t("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:s}))),t("div",{class:k(["zonos--hello-dialog-wrapper",this.mobileLocationOverride&&"zonos--hello-dialog-wrapper-mobile-override"]),style:{height:this.showDialog?"fit-content":"0px"}},t("zonos-hello-dialog",{animateFromLeftOverride:this.animateFromLeftOverride,appearanceSettings:m,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,restrictedItems:g,setIsOpen:this.changeShowDialog}))))};Object.defineProperty(e,"watchers",{get:function(){return{appearanceSettingsOverride:["handleAppearanceSettingsOverrideChange"]}},enumerable:false,configurable:true});return e}());ce.style=de}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,o,t,n){function r(e){return e instanceof t?e:new t((function(o){o(e)}))}return new(t||(t=Promise))((function(t,i){function s(e){try{a(n.next(e))}catch(e){i(e)}}function l(e){try{a(n["throw"](e))}catch(e){i(e)}}function a(e){e.done?t(e.value):r(e.value).then(s,l)}a((n=n.apply(e,o||[])).next())}))};var __generator=this&&this.__generator||function(e,o){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,r,i,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(e){return function(o){return a([e,o])}}function a(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(t=0)),t)try{if(n=1,r&&(i=l[0]&2?r["return"]:l[0]?r["throw"]||((i=r["return"])&&i.call(r),0):r.next)&&!(i=i.call(r,l[1])).done)return i;if(r=0,i)l=[l[0]&2,i.value];switch(l[0]){case 0:case 1:i=l;break;case 4:t.label++;return{value:l[1],done:false};case 5:t.label++;r=l[1];l=[0];continue;case 7:l=t.ops.pop();t.trys.pop();continue;default:if(!(i=t.trys,i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){t.label=l[1];break}if(l[0]===6&&t.label<i[1]){t.label=i[1];i=l;break}if(i&&t.label<i[2]){t.label=i[2];t.ops.push(l);break}if(i[2])t.ops.pop();t.trys.pop();continue}l=o.call(e,t)}catch(e){l=[6,e];r=0}finally{n=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};System.register(["./p-d99232c5.system.js","./p-62ecfbcc.system.js","./p-8da16d53.system.js","./p-23e7c655.system.js","./p-bc7bf53e.system.js","./p-1b9442f6.system.js","./p-58e730b6.system.js"],(function(e){"use strict";var o,t,n,r,i,s,l,a,h,d,u,f,c,m,v,g,w,p,z,b,x,y,k,_;return{setters:[function(e){o=e.r;t=e.h;n=e.H},function(e){r=e._;i=e.e;s=e.i;l=e.f;a=e.z;h=e.g;d=e.m},function(e){u=e.v;f=e.d;c=e.l;m=e.w;v=e.t;g=e.y;w=e.z;p=e.a;z=e.A;b=e.B;x=e.C;y=e.D},function(e){k=e.c},function(e){_=e.g},function(){},function(){}],execute:function(){var T=this;var E=r;var L=function(){return E.Date.now()};var j=L;var O=/\s/;function I(e){var o=e.length;while(o--&&O.test(e.charAt(o))){}return o}var S=I;var X=S;var R=/^\s+/;function C(e){return e?e.slice(0,X(e)+1).replace(R,""):e}var D=C;var B=i,A=s;var H="[object Symbol]";function M(e){return typeof e=="symbol"||A(e)&&B(e)==H}var F=M;var N=D,P=l,$=F;var U=0/0;var W=/^[-+]0x[0-9a-f]+$/i;var G=/^0b[01]+$/i;var K=/^0o[0-7]+$/i;var q=parseInt;function J(e){if(typeof e=="number"){return e}if($(e)){return U}if(P(e)){var o=typeof e.valueOf=="function"?e.valueOf():e;e=P(o)?o+"":o}if(typeof e!="string"){return e===0?e:+e}e=N(e);var t=G.test(e);return t||K.test(e)?q(e.slice(2),t?2:8):W.test(e)?U:+e}var Q=J;var V=l,Y=j,Z=Q;var ee="Expected a function";var oe=Math.max,te=Math.min;function ne(e,o,t){var n,r,i,s,l,a,h=0,d=false,u=false,f=true;if(typeof e!="function"){throw new TypeError(ee)}o=Z(o)||0;if(V(t)){d=!!t.leading;u="maxWait"in t;i=u?oe(Z(t.maxWait)||0,o):i;f="trailing"in t?!!t.trailing:f}function c(o){var t=n,i=r;n=r=undefined;h=o;s=e.apply(i,t);return s}function m(e){h=e;l=setTimeout(w,o);return d?c(e):s}function v(e){var t=e-a,n=e-h,r=o-t;return u?te(r,i-n):r}function g(e){var t=e-a,n=e-h;return a===undefined||t>=o||t<0||u&&n>=i}function w(){var e=Y();if(g(e)){return p(e)}l=setTimeout(w,v(e))}function p(e){l=undefined;if(f&&n){return c(e)}n=r=undefined;return s}function z(){if(l!==undefined){clearTimeout(l)}h=0;n=a=r=l=undefined}function b(){return l===undefined?s:p(Y())}function x(){var e=Y(),t=g(e);n=arguments;r=this;a=e;if(t){if(l===undefined){return m(a)}if(u){clearTimeout(l);l=setTimeout(w,o);return c(a)}}if(l===undefined){l=setTimeout(w,o)}return s}x.cancel=z;x.flush=b;return x}var re=ne;var ie=function(e){return __awaiter(T,[e],void 0,(function(e){var o,t,n,r,i,s;var l=e.items,a=e.shipFrom,h=e.shipTo;return __generator(this,(function(e){switch(e.label){case 0:t="".concat("https://v1.route.js.zonos.com","/api/zonos-elements/check-item-restrictions");n={items:l,shipFrom:a,shipTo:h};return[4,u(t,{body:n,method:"POST"})];case 1:r=e.sent(),i=r.errors,s=r.json;if(i.length||!s){f("Error fetching item restrictions: ".concat((o=i.find(Boolean))===null||o===void 0?void 0:o.message));return[2,[]]}return[2,s.filter(Boolean)]}}))}))};var se=function(e){return __awaiter(T,void 0,void 0,(function(){var o,t,n,r;return __generator(this,(function(i){switch(i.label){case 0:if(!e.length){return[2,[]]}o=c.selectedCountryCode;if(!o){f("Hello Could not check item restrictions - No country code selected");return[2,[]]}t=e.map((function(e){return{description:e.description,name:e.title}}));return[4,ie({items:t,shipFrom:"AD",shipTo:o})];case 1:n=i.sent();r=n.map((function(e){var o;var n=((o=t.filter((function(o){return o.description===e.itemDescription})).find(Boolean))===null||o===void 0?void 0:o.name)||"";return Object.assign(Object.assign({},e),{name:n})}));return[2,r]}}))}))};var le=function(){var e=window.location.href;var o=a.helloSettings,t=o.cartUrlPattern,n=o.homepageUrlPattern,r=o.productDetailUrlPattern,i=o.productListUrlPattern;if(t&&new RegExp(t).test(e)){return"cart"}if(r&&new RegExp(r).test(e)){return"productDetail"}if(i&&new RegExp(i).test(e)){return"productList"}if(n&&new RegExp(n).test(e)){return"home"}return""};var ae=function(){var e,o;var t=a.helloSettings,n=t.productAddToCartElementSelector,r=t.productDescriptionElementSelector,i=t.productTitleElementSelector,s=t.restrictionBehavior;if(!i||!r){f("Hello Could not check item restrictions - must provide title and description selectors.")}var l=i&&m(i)&&document.querySelectorAll(i)||[];var h=r&&m(r)&&document.querySelectorAll(r)||[];if(l.length!==h.length){f("Hello Could not check item restrictions - Title and description selectors do not match");return[]}var d=s==="RESTRICT_AND_BLOCK";var u=d&&n&&m(n)&&document.querySelectorAll(n)||[];if(d&&u.length!==h.length){f('Hello could not disable "Add to cart" buttons - Title and add to cart selectors do not match')}var c=[];for(var v=0;v<l.length;v++){var g=l[v];var w=h[v];var p=u[v];if(g&&w){var z={cartButtonNode:p||null,description:((e=w.textContent)===null||e===void 0?void 0:e.trim())||"",title:((o=g.textContent)===null||o===void 0?void 0:o.trim())||""};c.push(z)}}return c};var he=":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(--zonos-elements-page-background);font-size:var(--zonos-elements-font-size-s);border:var(--zonos-elements-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(--zonos-elements-text-color);position:absolute;background:var(--zonos-elements-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% + 16px));transform:translateX(calc(-100% + 16px));width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;border-top:var(--zonos-elements-border);border-bottom:var(--zonos-elements-border)}:host .zonos--hello-widget.zonos--hello-has-restrictions{background:var(--zonos-elements-red-100);border:1px solid var(--zonos-elements-red-200)}:host .zonos--hello-widget.zonos--hello-has-restrictions>.zonos--hello-message{background:var(--zonos-elements-red-100);color:var(--zonos-elements-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(--zonos-elements-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:16px;border:var(--zonos-elements-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:16px;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% - 16px));transform:translateX(calc(100% - 16px));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(--zonos-elements-v3-shadow-medium);box-shadow:var(--zonos-elements-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(--zonos-elements-radius-4);width:24px}}@media (max-width: 768px){:host .zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}: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;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;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(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left{border-top-right-radius:var(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-widget.zonos--hello-show-peek-message.zonos--hello-widget-animate-from-left>.zonos--hello-message{padding-left:8px;padding-right:4px}:host .zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}}:host .zonos--hello-mobile-override.zonos--hello-widget{position:fixed;bottom:32px;right:32px;border-radius:var(--zonos-elements-radius-4);padding:4px;border:1px solid transparent}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-top{bottom:auto;top:32px}: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;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;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(--zonos-elements-radius-4);border-bottom-left-radius:var(--zonos-elements-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(--zonos-elements-radius-4);border-bottom-right-radius:var(--zonos-elements-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:8px;padding-right:4px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag-wrapper{border-radius:var(--zonos-elements-radius-4)}:host .zonos--hello-mobile-override.zonos--hello-widget .zonos--hello-country-flag{border-radius:var(--zonos-elements-radius-4);width:24px}";var de=he;var ue=3e3;var fe=500;var ce=e("zonos_hello",function(){function e(e){var t=this;o(this,e);this.getHelloPeekMessage=function(e){var o=a.currentHelloPage==="productDetail"||a.currentHelloPage==="productList";if(o&&t.allRestrictedItems.length){var n=v("click to learn more");var r=a.currentHelloPage==="productDetail"?v("Restricted item"):v("Restricted items found");return"".concat(r," - ").concat(n)}switch(a.currentHelloPage){case"cart":return v("Prepay duties and taxes at checkout");case"productList":case"productDetail":return v("See duty and tax thresholds");default:return"".concat(v("Welcome to")," ").concat(e)}};this.enableShowPeekMessage=function(){if(t.peekMessage){t.showPeekMessage=true}};this.getNewItemRestrictions=function(e){return __awaiter(t,void 0,void 0,(function(){var o,t;return __generator(this,(function(n){switch(n.label){case 0:o=a.currentHelloPage==="productDetail"||a.currentHelloPage==="productList";if(!o||a.helloSettings.restrictionBehavior==="DISABLED"){return[2,[]]}return[4,se(e)];case 1:t=n.sent();return[2,t]}}))}))};this.triggerShowPeekMessage=function(){t.peekMessage=t.getHelloPeekMessage(a.organizationName);var e=a.helloSettings,o=e.peekMessageBehavior,n=e.peekMessageDelay;var r=n*1e3;if(o==="ENABLED"){setTimeout((function(){t.enableShowPeekMessage();var e=t.allRestrictedItems.some((function(e){return t.productsOnPage.some((function(o){return o.description===e.itemDescription}))}));if(!e){setTimeout((function(){t.showPeekMessage=false}),ue)}}),r)}};this.disableAddToCartButtons=function(){if(t.productsOnPage.length){t.productsOnPage.forEach((function(e){var o,n;var r=t.allRestrictedItems.some((function(o){return o.itemDescription===e.description}));if(r){(o=e.cartButtonNode)===null||o===void 0?void 0:o.setAttribute("disabled","disabled")}else{(n=e.cartButtonNode)===null||n===void 0?void 0:n.removeAttribute("disabled")}}))}};this.handleItemRestrictions=function(){return __awaiter(t,void 0,void 0,(function(){var e,o;var t,n;var r=this;return __generator(this,(function(i){switch(i.label){case 0:this.productsOnPage=ae();e=this.productsOnPage.filter((function(e){return!r.allFoundProducts.some((function(o){return o.title===e.title}))}));return[4,this.getNewItemRestrictions(e)];case 1:o=i.sent();(t=this.allRestrictedItems).push.apply(t,o);(n=this.allFoundProducts).push.apply(n,e);this.disableAddToCartButtons();return[2]}}))}))};this.reloadHelloData=function(){return __awaiter(t,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,this.handleItemRestrictions()];case 1:e.sent();this.triggerShowPeekMessage();return[2]}}))}))};this.handleProductCountChange=re((function(){var e=a.helloSettings.productTitleElementSelector;if(e){var o=ae();if(t.allFoundProducts.length!==o.length&&window.location.href===t.initialUrl){if(!t.allFoundProducts.length){return}void t.reloadHelloData()}}}),1e3);this.watchProductCountChange=function(){var e=new MutationObserver(t.handleProductCountChange);e.observe(document.body,{childList:true,subtree:true})};this.watchPriceChange=function(){var e=new MutationObserver((function(){return void t.displayCurrency()}));e.observe(document.body,{attributes:true,childList:true,subtree:true})};this.updateHelloOnPageChange=function(){t.watchProductCountChange();setInterval((function(){if(window.location.href!==t.initialUrl){var e=t.initialUrl&&new URL(t.initialUrl);var o=e&&g(e.searchParams);if(o!==c.selectedCountryCode){t.allFoundProducts=[];t.allRestrictedItems=[];t.productsOnPage=[]}t.initialUrl=window.location.href;a.currentHelloPage=le();var n=new URL(window.location.href);var r=g(n.searchParams);if(!r){w(c.selectedCountryCode);return}void t.reloadHelloData()}}),1e3)};this.changeShowDialog=function(e){t.showDialog=e};this.shouldAnimateLeftDesktop=function(){var e=t.helloRef&&getComputedStyle(t.helloRef).position;if(t.helloRef&&e==="relative"){var o=_(t.helloRef);return o}};this.isShippableCountry=function(e){if(e===void 0){e=true}if(!c.localizationLoaded){return false}if(!c.isShippableCountry){if(e){p("Hello: not shippable country")}return false}return true};this.mobileLocationOverride=undefined;this.animateFromLeftOverride=undefined;this.appearanceSettingsOverride=undefined;this.showPeekMessage=false;this.zonosStoreHelloSettings=a.helloSettings;this.showDialog=false;this.peekMessage="";this.initialUrl="";this.allRestrictedItems=[];this.allFoundProducts=[];this.productsOnPage=[]}e.prototype.componentWillLoad=function(){var e=this;var o=setInterval((function(){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.helloRef){return[2]}if(a.loadedConfig){this.helloRef.setAttribute("data-zonos-hello-loaded","");this.updateHelloOnPageChange();this.watchPriceChange();this.handleAppearanceSettingsOverrideChange();clearInterval(o)}return[2]}))}))}),100)};e.prototype.displayCurrency=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!c.exchangeRate){f("Could not display currency. Exchange rate and format data is not available.");return[2]}z();return[2]}))}))};e.prototype.convertAndFormat=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,b(e)]}))}))};e.prototype.convert=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,x(e)]}))}))};e.prototype.format=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){return[2,y(e)]}))}))};e.prototype.openHelloDialog=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(o){this.changeShowDialog(e);return[2]}))}))};e.prototype.handleResize=function(){re(this.render.bind(this),fe)};e.prototype.handleAppearanceSettingsOverrideChange=function(){var e;if((e=this.appearanceSettingsOverride)===null||e===void 0?void 0:e.theme){this.appearanceSettingsOverride.theme=h(this.appearanceSettingsOverride.theme)}};e.prototype.render=function(){var e=this;var o,r;var i=(o=a.helloSettings.excludedUrlPatterns)===null||o===void 0?void 0:o.some((function(e){return new RegExp(e).test(window.location.href)}));if(i){p("Hello is excluded on this url","warn");return null}var s=c.selectedCountryCode;var l=this.mobileLocationOverride||a.helloSettings.mobileLocation;var h=window.innerWidth<768;var u=this.animateFromLeftOverride||h&&l.includes("LEFT")||this.shouldAnimateLeftDesktop()||false;var f=l.includes("TOP");var m=d(a.appearance,this.appearanceSettingsOverride);var v=m.theme;var g=(r=this.allRestrictedItems)===null||r===void 0?void 0:r.filter((function(o){return e.productsOnPage.some((function(e){return e.description===o.itemDescription}))}));this.peekMessage=this.getHelloPeekMessage(a.organizationName);var w=this.isShippableCountry()&&!!s;return t(n,{class:"zonos--hello zonos--elements","data-theme":v},w&&t("div",{class:"zonos--hello-wrapper"},t("button",{class:k(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",u&&"zonos--hello-widget-left zonos--hello-widget-animate-from-left",f&&"zonos--hello-widget-top",!!this.allRestrictedItems.length&&"zonos--hello-has-restrictions"]),onClick:function(){void e.changeShowDialog(!e.showDialog)},onMouseEnter:function(){return e.enableShowPeekMessage()},onMouseLeave:function(){return e.showPeekMessage=false},ref:function(o){return o&&(e.helloRef=o)}},t("zonos-text",{class:"zonos--hello-message"},this.peekMessage),s&&t("div",{class:"zonos--hello-country-flag-wrapper"},t("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:s}))),t("div",{class:k(["zonos--hello-dialog-wrapper",this.mobileLocationOverride&&"zonos--hello-dialog-wrapper-mobile-override"]),style:{height:this.showDialog?"fit-content":"0px"}},t("zonos-hello-dialog",{animateFromLeftOverride:this.animateFromLeftOverride,appearanceSettings:m,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,restrictedItems:g,setIsOpen:this.changeShowDialog}))))};Object.defineProperty(e,"watchers",{get:function(){return{appearanceSettingsOverride:["handleAppearanceSettingsOverrideChange"]}},enumerable:false,configurable:true});return e}());ce.style=de}}}));
@@ -1 +1 @@
1
- import{r as o,c as s,h as i,H as e}from"./p-13ddaf31.js";import{d as t,z as r}from"./p-f1962041.js";import{c as a}from"./p-b4b7f705.js";import{g as n}from"./p-83cc2936.js";import{i as l}from"./p-66eb66d1.js";const d=class{constructor(i){o(this,i),this.radioSelected=s(this,"radioSelected",7),this.handleRichRadioSelect=o=>{var s;this.selectedItem=o,null===(s=this.radioSelected)||void 0===s||s.emit(o)},this.getRadioItemStyleVariables=()=>{const o=this.borderColor||r.appearance.colorSecondary,s=l(o)?`var(--zonos-elements-${o})`:o;return{"--border-radius":n({overrideBorderStyle:this.borderStyle}),"--selected-border-color":s||"unset"}},this.items=void 0,this.borderColor=void 0,this.borderStyle=void 0,this.theme=void 0,this.initialSelectedValue=void 0,this.selectedItem=null}componentWillLoad(){this.initialSelectedValue&&(this.selectedItem=this.items.find((o=>o.value===this.initialSelectedValue))||null)}render(){var o;return i(e,{key:"14a3885f1e1513e9987cb27217cdb8722eab55fa",class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:Object.assign(Object.assign({},this.getRadioItemStyleVariables()),{"--font-family":t()})},null===(o=this.items)||void 0===o?void 0:o.map((o=>{var s;const e=(null===(s=this.selectedItem)||void 0===s?void 0:s.value)===o.value;return i("div",{"aria-hidden":"true",class:a(["zonos--shipping-rich-radio-item",e&&"selected"]),onClick:()=>this.handleRichRadioSelect(o)},i("input",{checked:e,class:"zonos--shipping-rich-radio-input",name:"zonos--shipping-rich-radio",type:"radio",value:o.value}),i("div",{class:"zonos--shipping-info"},i("div",{class:"zonos--shipping-detail"},i("zonos-text",{class:"zonos--shipping-label",type:"label"},o.label),(o.sublabel||o.caption)&&i("div",{class:"zonos--sub-detail"},o.sublabel&&i("zonos-text",{textColor:"gray-800"},o.sublabel),o.caption&&i("zonos-text",{textColor:"gray-600"},o.caption))),i("zonos-text",{type:"semiBoldLabel"},o.price)))})))}};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{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--zonos-elements-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";export{d as zonos_shipping_rich_radio}
1
+ import{r as o,c as s,h as i,H as e}from"./p-ce347974.js";import{d as t,z as r}from"./p-693b9985.js";import{c as a}from"./p-b4b7f705.js";import{g as n}from"./p-8c0b4a61.js";import{i as l}from"./p-66eb66d1.js";const d=class{constructor(i){o(this,i),this.radioSelected=s(this,"radioSelected",7),this.handleRichRadioSelect=o=>{var s;this.selectedItem=o,null===(s=this.radioSelected)||void 0===s||s.emit(o)},this.getRadioItemStyleVariables=()=>{const o=this.borderColor||r.appearance.colorSecondary,s=l(o)?`var(--zonos-elements-${o})`:o;return{"--border-radius":n({overrideBorderStyle:this.borderStyle}),"--selected-border-color":s||"unset"}},this.items=void 0,this.borderColor=void 0,this.borderStyle=void 0,this.theme=void 0,this.initialSelectedValue=void 0,this.selectedItem=null}componentWillLoad(){this.initialSelectedValue&&(this.selectedItem=this.items.find((o=>o.value===this.initialSelectedValue))||null)}render(){var o;return i(e,{key:"14a3885f1e1513e9987cb27217cdb8722eab55fa",class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:Object.assign(Object.assign({},this.getRadioItemStyleVariables()),{"--font-family":t()})},null===(o=this.items)||void 0===o?void 0:o.map((o=>{var s;const e=(null===(s=this.selectedItem)||void 0===s?void 0:s.value)===o.value;return i("div",{"aria-hidden":"true",class:a(["zonos--shipping-rich-radio-item",e&&"selected"]),onClick:()=>this.handleRichRadioSelect(o)},i("input",{checked:e,class:"zonos--shipping-rich-radio-input",name:"zonos--shipping-rich-radio",type:"radio",value:o.value}),i("div",{class:"zonos--shipping-info"},i("div",{class:"zonos--shipping-detail"},i("zonos-text",{class:"zonos--shipping-label",type:"label"},o.label),(o.sublabel||o.caption)&&i("div",{class:"zonos--sub-detail"},o.sublabel&&i("zonos-text",{textColor:"gray-800"},o.sublabel),o.caption&&i("zonos-text",{textColor:"gray-600"},o.caption))),i("zonos-text",{type:"semiBoldLabel"},o.price)))})))}};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{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--selected-border-color, var(--zonos-elements-blue-600))}:host .zonos--shipping-rich-radio-item{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;padding:16px;-ms-flex-align:center;align-items:center;gap:16px;cursor:pointer;border:1px solid var(--zonos-elements-gray-200)}:host .zonos--shipping-rich-radio-item:first-child{border-top-left-radius:var(--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:not(:last-child){border-bottom:none}:host .zonos--shipping-rich-radio-item.selected{outline:1px solid var(--selected-border-color, var(--zonos-elements-blue-600));outline-offset:-1px}:host .zonos--shipping-info{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex:1;flex:1}:host .zonos--shipping-detail{-ms-flex:1;flex:1}:host .zonos--sub-detail{display:-ms-inline-flexbox;display:inline-flex;gap:8px;-ms-flex-wrap:wrap;flex-wrap:wrap}";export{d as zonos_shipping_rich_radio}
@@ -1 +1 @@
1
- import{r as t,h as s,H as o,d as i}from"./p-13ddaf31.js";import{l as a}from"./p-aff5f4ca.js";import{d as e}from"./p-f1962041.js";import{c as n}from"./p-b4b7f705.js";import"./p-909a331c.js";import"./p-83cc2936.js";const h=class{constructor(s){t(this,s),this.countryCode=a.selectedCountryCode,this.size=void 0}render(){if(!this.el.shadowRoot||!this.countryCode)return null;const t=`https://zonos-store-assets.s3.amazonaws.com/images/elements-flags/${this.countryCode}.svg`,i=e();return s(o,{class:"zonos--elements",style:this.size?{"--font-family":i,height:`${this.size}px`,width:`${this.size}px`}:{"--font-family":i}},s("div",{class:n(["flag-container"])},s("div",{class:"flag-icon",style:{backgroundImage:`url(${t})`}})))}get el(){return i(this)}};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 .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";export{h as zonos_country_flag}
1
+ import{r as t,h as s,H as o,d as i}from"./p-ce347974.js";import{l as e}from"./p-e015cb0e.js";import{d as a}from"./p-693b9985.js";import{c as n}from"./p-b4b7f705.js";import"./p-2f759d82.js";import"./p-8c0b4a61.js";const h=class{constructor(s){t(this,s),this.countryCode=e.selectedCountryCode,this.size=void 0}render(){if(!this.el.shadowRoot||!this.countryCode)return null;const t=`https://zonos-store-assets.s3.amazonaws.com/images/elements-flags/${this.countryCode}.svg`,i=a();return s(o,{class:"zonos--elements",style:this.size?{"--font-family":i,height:`${this.size}px`,width:`${this.size}px`}:{"--font-family":i}},s("div",{class:n(["flag-container"])},s("div",{class:"flag-icon",style:{backgroundImage:`url(${t})`}})))}get el(){return i(this)}};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 .flag-container{position:relative;overflow:hidden;width:100%;height:100%}:host .flag-icon{position:absolute;top:0;left:0;width:100%;height:100%;background-position:center;background-repeat:no-repeat;background-size:cover}";export{h as zonos_country_flag}