@zonos/elements 1.3.204 → 1.3.206

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 (316) hide show
  1. package/dist/cjs/{cart-0d91ad0b.js → cart-3d961c6e.js} +6 -5
  2. package/dist/cjs/{debounce-94e1b7ff.js → debounce-0b9c0f8a.js} +1 -1
  3. package/dist/cjs/{getBorderRadius-8d3b1049.js → getBorderRadius-c424eb05.js} +1 -1
  4. package/dist/cjs/{index-0993f42d.js → index-1c710d00.js} +455 -377
  5. package/dist/cjs/index.cjs.js +7 -7
  6. package/dist/cjs/{isDarkColor-bcf49625.js → isDarkColor-35e8daec.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{localization-2f17c95f.js → localization-ff33875b.js} +421 -182
  9. package/dist/cjs/{paypal-9953115b.js → paypal-dee5c109.js} +4 -4
  10. package/dist/cjs/zonos-address_11.cjs.entry.js +273 -121
  11. package/dist/cjs/zonos-badge.cjs.entry.js +26 -4
  12. package/dist/cjs/zonos-banner.cjs.entry.js +6 -5
  13. package/dist/cjs/zonos-button_3.cjs.entry.js +89 -24
  14. package/dist/cjs/zonos-card.cjs.entry.js +10 -9
  15. package/dist/cjs/zonos-cart-items_14.cjs.entry.js +193 -74
  16. package/dist/cjs/zonos-checkout.cjs.entry.js +90 -35
  17. package/dist/cjs/zonos-collapse.cjs.entry.js +8 -2
  18. package/dist/cjs/zonos-component.cjs.entry.js +10 -1
  19. package/dist/cjs/zonos-controller.cjs.entry.js +6 -8
  20. package/dist/cjs/zonos-country-flag.cjs.entry.js +8 -4
  21. package/dist/cjs/zonos-country-select_4.cjs.entry.js +52 -24
  22. package/dist/cjs/zonos-elements.cjs.js +2 -2
  23. package/dist/cjs/zonos-empty-state-payment_4.cjs.entry.js +11 -10
  24. package/dist/cjs/zonos-hello-dialog.cjs.entry.js +102 -36
  25. package/dist/cjs/zonos-hello.cjs.entry.js +29 -17
  26. package/dist/cjs/zonos-input.cjs.entry.js +18 -4
  27. package/dist/cjs/zonos-language-select_2.cjs.entry.js +15 -4
  28. package/dist/cjs/zonos-link.cjs.entry.js +4 -4
  29. package/dist/cjs/zonos-logo.cjs.entry.js +8 -2
  30. package/dist/cjs/zonos-shipping-rich-radio.cjs.entry.js +8 -8
  31. package/dist/cjs/zonos-stripe-input.cjs.entry.js +25 -9
  32. package/dist/cjs/zonos-text.cjs.entry.js +11 -4
  33. package/dist/cjs/zonos-toggle.cjs.entry.js +5 -3
  34. package/dist/cjs/zonos-tooltip.cjs.entry.js +7 -1
  35. package/dist/cjs/zonos-v-stack.cjs.entry.js +6 -2
  36. package/dist/cjs/{zonosStore-9264749e.js → zonosStore-7c1e1bc1.js} +4 -5
  37. package/dist/collection/collection-manifest.json +1 -1
  38. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-display/zonos-address-display.js +0 -4
  39. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-form/zonos-address-form.js +4 -4
  40. package/dist/collection/components/checkout/zonos-checkout/zonos-address-update-dialog/zonos-address-update-dialog.js +24 -13
  41. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-restricted-items/zonos-cart-restricted-items.js +6 -0
  42. package/dist/collection/components/checkout/zonos-checkout/zonos-cart-subtotal/zonos-cart-subtotal.js +3 -2
  43. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-finish/zonos-checkout-finish.js +14 -10
  44. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-footer/zonos-checkout-footer.js +3 -1
  45. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-checkout-payment.js +25 -9
  46. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout-payment/zonos-empty-state-payment/zonos-empty-state-payment.js +3 -1
  47. package/dist/collection/components/checkout/zonos-checkout/zonos-checkout.js +83 -28
  48. package/dist/collection/components/checkout/zonos-checkout/zonos-customer-info/zonos-customer-info.js +54 -17
  49. package/dist/collection/components/checkout/zonos-checkout/zonos-review/zonos-review.js +8 -0
  50. package/dist/collection/components/checkout/zonos-checkout/zonos-shipping/zonos-shipping.js +20 -12
  51. package/dist/collection/components/common/zonos-badge/zonos-badge.js +24 -2
  52. package/dist/collection/components/common/zonos-banner/zonos-banner.js +4 -3
  53. package/dist/collection/components/common/zonos-button/zonos-button.js +69 -18
  54. package/dist/collection/components/common/zonos-card/zonos-card.js +7 -6
  55. package/dist/collection/components/common/zonos-checkbox/zonos-checkbox.js +15 -2
  56. package/dist/collection/components/common/zonos-checkout-progress-tabs/zonos-checkout-progress-tabs.js +8 -2
  57. package/dist/collection/components/common/zonos-collapse/zonos-collapse.js +6 -0
  58. package/dist/collection/components/common/zonos-confirm-dialog/zonos-confirm-dialog.js +34 -9
  59. package/dist/collection/components/common/zonos-country-flag/zonos-country-flag.js +5 -1
  60. package/dist/collection/components/common/zonos-country-select/zonos-country-select.js +6 -2
  61. package/dist/collection/components/common/zonos-custom-message/zonos-custom-message.js +6 -0
  62. package/dist/collection/components/common/zonos-dialog/zonos-dialog.js +48 -14
  63. package/dist/collection/components/common/zonos-icon/zonos-icon.js +12 -1
  64. package/dist/collection/components/common/zonos-input/zonos-input.js +15 -1
  65. package/dist/collection/components/common/zonos-language-select/zonos-language-select.js +5 -1
  66. package/dist/collection/components/common/zonos-link/zonos-link.js +3 -3
  67. package/dist/collection/components/common/zonos-loading-overlay/zonos-loading-overlay.js +7 -1
  68. package/dist/collection/components/common/zonos-logo/zonos-logo.js +6 -0
  69. package/dist/collection/components/common/zonos-rest-state/zonos-rest-state.js +4 -4
  70. package/dist/collection/components/common/zonos-select-dialog-header/zonos-select-dialog-header.js +7 -0
  71. package/dist/collection/components/common/zonos-shipping-rich-radio/zonos-shipping-rich-radio.js +5 -5
  72. package/dist/collection/components/common/zonos-spinner/zonos-spinner.js +4 -1
  73. package/dist/collection/components/common/zonos-stripe-input/zonos-stripe-input.js +21 -5
  74. package/dist/collection/components/common/zonos-stripe-phone-input/zonos-stripe-phone-input.js +19 -14
  75. package/dist/collection/components/common/zonos-stripe-select/zonos-stripe-select.js +37 -12
  76. package/dist/collection/components/common/zonos-text/zonos-text.js +9 -2
  77. package/dist/collection/components/common/zonos-toggle/zonos-toggle.js +3 -1
  78. package/dist/collection/components/common/zonos-tooltip/zonos-tooltip.js +6 -0
  79. package/dist/collection/components/common/zonos-v-stack/zonos-v-stack.js +4 -0
  80. package/dist/collection/components/common/zonos-virtual-scroll/zonos-virtual-scroll.js +2 -7
  81. package/dist/collection/components/component-template/zonos-component/zonos-component.js +9 -0
  82. package/dist/collection/components/hello/zonos-hello/zonos-hello.js +25 -13
  83. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog-footer/zonos-hello-dialog-footer.js +8 -1
  84. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.css +0 -2
  85. package/dist/collection/components/hello/zonos-hello-dialog/zonos-hello-dialog.js +98 -32
  86. package/dist/collection/components/main/zonos-controller.js +0 -4
  87. package/dist/collection/components/store/checkout/stripe.js +2 -1
  88. package/dist/collection/components/store/translationStore/strings.arabic.js +21 -9
  89. package/dist/collection/components/store/translationStore/strings.base.js +21 -10
  90. package/dist/collection/components/store/translationStore/strings.chinese.js +21 -9
  91. package/dist/collection/components/store/translationStore/strings.danish.js +21 -9
  92. package/dist/collection/components/store/translationStore/strings.dutch.js +21 -9
  93. package/dist/collection/components/store/translationStore/strings.french.js +21 -9
  94. package/dist/collection/components/store/translationStore/strings.german.js +21 -9
  95. package/dist/collection/components/store/translationStore/strings.hebrew.js +21 -9
  96. package/dist/collection/components/store/translationStore/strings.indonesian.js +21 -9
  97. package/dist/collection/components/store/translationStore/strings.italian.js +21 -9
  98. package/dist/collection/components/store/translationStore/strings.japanese.js +21 -9
  99. package/dist/collection/components/store/translationStore/strings.korean.js +21 -9
  100. package/dist/collection/components/store/translationStore/strings.norwegian.js +21 -9
  101. package/dist/collection/components/store/translationStore/strings.polish.js +21 -9
  102. package/dist/collection/components/store/translationStore/strings.portuguese.js +21 -9
  103. package/dist/collection/components/store/translationStore/strings.russian.js +21 -9
  104. package/dist/collection/components/store/translationStore/strings.spanish.js +21 -9
  105. package/dist/collection/components/store/translationStore/strings.swedish.js +21 -9
  106. package/dist/collection/components/store/translationStore/strings.turkish.js +21 -9
  107. package/dist/collection/components/store/translationStore/strings.vietnamese.js +21 -9
  108. package/dist/collection/components/stripe/zonos-address/zonos-address.js +21 -8
  109. package/dist/collection/components/stripe/zonos-custom-address/zonos-address-suggestions/zonos-address-suggestions.js +13 -5
  110. package/dist/collection/components/stripe/zonos-custom-address/zonos-custom-address.js +73 -33
  111. package/dist/collection/components/stripe/zonos-link-authentication/zonos-link-authentication.js +11 -6
  112. package/dist/collection/components/stripe/zonos-payment/zonos-payment.js +1 -2
  113. package/dist/esm/{cart-db61eb95.js → cart-5835676d.js} +7 -6
  114. package/dist/esm/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
  115. package/dist/esm/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
  116. package/dist/esm/{index-a457c60c.js → index-5ea9f81d.js} +455 -377
  117. package/dist/esm/index.js +7 -7
  118. package/dist/esm/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
  119. package/dist/esm/loader.js +2 -2
  120. package/dist/esm/{localization-bf7224aa.js → localization-4c7f64e8.js} +421 -182
  121. package/dist/esm/{paypal-2e0ffb07.js → paypal-b4f106be.js} +4 -4
  122. package/dist/esm/zonos-address_11.entry.js +273 -121
  123. package/dist/esm/zonos-badge.entry.js +26 -4
  124. package/dist/esm/zonos-banner.entry.js +6 -5
  125. package/dist/esm/zonos-button_3.entry.js +89 -24
  126. package/dist/esm/zonos-card.entry.js +10 -9
  127. package/dist/esm/zonos-cart-items_14.entry.js +193 -74
  128. package/dist/esm/zonos-checkout.entry.js +90 -35
  129. package/dist/esm/zonos-collapse.entry.js +8 -2
  130. package/dist/esm/zonos-component.entry.js +10 -1
  131. package/dist/esm/zonos-controller.entry.js +6 -8
  132. package/dist/esm/zonos-country-flag.entry.js +8 -4
  133. package/dist/esm/zonos-country-select_4.entry.js +52 -24
  134. package/dist/esm/zonos-elements.js +3 -3
  135. package/dist/esm/zonos-empty-state-payment_4.entry.js +11 -10
  136. package/dist/esm/zonos-hello-dialog.entry.js +102 -36
  137. package/dist/esm/zonos-hello.entry.js +29 -17
  138. package/dist/esm/zonos-input.entry.js +18 -4
  139. package/dist/esm/zonos-language-select_2.entry.js +15 -4
  140. package/dist/esm/zonos-link.entry.js +4 -4
  141. package/dist/esm/zonos-logo.entry.js +8 -2
  142. package/dist/esm/zonos-shipping-rich-radio.entry.js +8 -8
  143. package/dist/esm/zonos-stripe-input.entry.js +25 -9
  144. package/dist/esm/zonos-text.entry.js +11 -4
  145. package/dist/esm/zonos-toggle.entry.js +5 -3
  146. package/dist/esm/zonos-tooltip.entry.js +7 -1
  147. package/dist/esm/zonos-v-stack.entry.js +6 -2
  148. package/dist/esm/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +4 -5
  149. package/dist/esm-es5/{cart-db61eb95.js → cart-5835676d.js} +1 -1
  150. package/dist/esm-es5/{debounce-3a9f27a0.js → debounce-eaee3a94.js} +1 -1
  151. package/dist/esm-es5/{getBorderRadius-78b28b4d.js → getBorderRadius-b18c924f.js} +1 -1
  152. package/dist/esm-es5/index-5ea9f81d.js +2 -0
  153. package/dist/esm-es5/index.js +1 -1
  154. package/dist/esm-es5/{isDarkColor-31dd7dff.js → isDarkColor-d8bb8659.js} +1 -1
  155. package/dist/esm-es5/loader.js +1 -1
  156. package/dist/esm-es5/localization-4c7f64e8.js +1 -0
  157. package/dist/esm-es5/{paypal-2e0ffb07.js → paypal-b4f106be.js} +1 -1
  158. package/dist/esm-es5/zonos-address_11.entry.js +1 -1
  159. package/dist/esm-es5/zonos-badge.entry.js +1 -1
  160. package/dist/esm-es5/zonos-banner.entry.js +1 -1
  161. package/dist/esm-es5/zonos-button_3.entry.js +1 -1
  162. package/dist/esm-es5/zonos-card.entry.js +1 -1
  163. package/dist/esm-es5/zonos-cart-items_14.entry.js +1 -1
  164. package/dist/esm-es5/zonos-checkout.entry.js +1 -1
  165. package/dist/esm-es5/zonos-collapse.entry.js +1 -1
  166. package/dist/esm-es5/zonos-component.entry.js +1 -1
  167. package/dist/esm-es5/zonos-controller.entry.js +1 -1
  168. package/dist/esm-es5/zonos-country-flag.entry.js +1 -1
  169. package/dist/esm-es5/zonos-country-select_4.entry.js +1 -1
  170. package/dist/esm-es5/zonos-elements.js +1 -1
  171. package/dist/esm-es5/zonos-empty-state-payment_4.entry.js +1 -1
  172. package/dist/esm-es5/zonos-hello-dialog.entry.js +1 -1
  173. package/dist/esm-es5/zonos-hello.entry.js +1 -1
  174. package/dist/esm-es5/zonos-input.entry.js +1 -1
  175. package/dist/esm-es5/zonos-language-select_2.entry.js +1 -1
  176. package/dist/esm-es5/zonos-link.entry.js +1 -1
  177. package/dist/esm-es5/zonos-logo.entry.js +1 -1
  178. package/dist/esm-es5/zonos-shipping-rich-radio.entry.js +1 -1
  179. package/dist/esm-es5/zonos-stripe-input.entry.js +1 -1
  180. package/dist/esm-es5/zonos-text.entry.js +1 -1
  181. package/dist/esm-es5/zonos-toggle.entry.js +1 -1
  182. package/dist/esm-es5/zonos-tooltip.entry.js +1 -1
  183. package/dist/esm-es5/zonos-v-stack.entry.js +1 -1
  184. package/dist/esm-es5/{zonosStore-d10a829f.js → zonosStore-1e015fa5.js} +1 -1
  185. package/dist/scripts/index.js +1 -1
  186. package/dist/scripts/loadZonos.js +1 -1
  187. package/dist/scripts/zonos.js +1 -1
  188. package/dist/types/components/hello/zonos-hello-dialog/zonos-hello-dialog.d.ts +3 -0
  189. package/dist/types/components/store/translationStore/strings.arabic.d.ts +18 -6
  190. package/dist/types/components/store/translationStore/strings.base.d.ts +18 -6
  191. package/dist/types/components/store/translationStore/strings.chinese.d.ts +18 -6
  192. package/dist/types/components/store/translationStore/strings.danish.d.ts +18 -6
  193. package/dist/types/components/store/translationStore/strings.dutch.d.ts +18 -6
  194. package/dist/types/components/store/translationStore/strings.french.d.ts +18 -6
  195. package/dist/types/components/store/translationStore/strings.german.d.ts +18 -6
  196. package/dist/types/components/store/translationStore/strings.hebrew.d.ts +18 -6
  197. package/dist/types/components/store/translationStore/strings.indonesian.d.ts +18 -6
  198. package/dist/types/components/store/translationStore/strings.italian.d.ts +18 -6
  199. package/dist/types/components/store/translationStore/strings.japanese.d.ts +18 -6
  200. package/dist/types/components/store/translationStore/strings.korean.d.ts +18 -6
  201. package/dist/types/components/store/translationStore/strings.norwegian.d.ts +18 -6
  202. package/dist/types/components/store/translationStore/strings.polish.d.ts +18 -6
  203. package/dist/types/components/store/translationStore/strings.portuguese.d.ts +18 -6
  204. package/dist/types/components/store/translationStore/strings.russian.d.ts +18 -6
  205. package/dist/types/components/store/translationStore/strings.spanish.d.ts +18 -6
  206. package/dist/types/components/store/translationStore/strings.swedish.d.ts +18 -6
  207. package/dist/types/components/store/translationStore/strings.turkish.d.ts +18 -6
  208. package/dist/types/components/store/translationStore/strings.vietnamese.d.ts +18 -6
  209. package/dist/types/types/index.d.ts +1 -0
  210. package/dist/zonos-elements/assets/RemoveIcon.svg +1 -1
  211. package/dist/zonos-elements/index.esm.js +1 -1
  212. package/dist/zonos-elements/p-019f8637.entry.js +1 -0
  213. package/dist/zonos-elements/p-02da743b.system.js +2 -0
  214. package/dist/zonos-elements/p-051e0e48.entry.js +1 -0
  215. package/dist/zonos-elements/p-0c4c8d63.entry.js +1 -0
  216. package/dist/zonos-elements/p-12cd9d3a.entry.js +1 -0
  217. package/dist/zonos-elements/{p-d42dfd32.system.js → p-1327b935.system.js} +1 -1
  218. package/dist/zonos-elements/p-1640d77f.js +2 -0
  219. package/dist/zonos-elements/{p-3d82a352.js → p-16678764.js} +1 -1
  220. package/dist/zonos-elements/{p-c291bac1.entry.js → p-18149db1.entry.js} +1 -1
  221. package/dist/zonos-elements/{p-db025dfc.system.entry.js → p-1ad099ec.system.entry.js} +1 -1
  222. package/dist/zonos-elements/{p-c5fcbc92.system.entry.js → p-1bc09abe.system.entry.js} +1 -1
  223. package/dist/zonos-elements/{p-d46349d3.system.entry.js → p-22cb6880.system.entry.js} +1 -1
  224. package/dist/zonos-elements/{p-cdd3087f.system.entry.js → p-265af369.system.entry.js} +1 -1
  225. package/dist/zonos-elements/{p-c9aa902e.system.entry.js → p-2866fd29.system.entry.js} +1 -1
  226. package/dist/zonos-elements/p-30778fde.system.entry.js +1 -0
  227. package/dist/zonos-elements/p-3196bf98.entry.js +1 -0
  228. package/dist/zonos-elements/p-3505e4c4.entry.js +1 -0
  229. package/dist/zonos-elements/p-3a50124e.entry.js +1 -0
  230. package/dist/zonos-elements/p-3afc27ef.entry.js +1 -0
  231. package/dist/zonos-elements/{p-ea6d87a1.system.js → p-3ee44728.system.js} +1 -1
  232. package/dist/zonos-elements/p-41c1d7c4.entry.js +1 -0
  233. package/dist/zonos-elements/p-42a9557f.entry.js +1 -0
  234. package/dist/zonos-elements/{p-f8d0d488.system.entry.js → p-469ccc66.system.entry.js} +1 -1
  235. package/dist/zonos-elements/p-47e2cd31.entry.js +1 -0
  236. package/dist/zonos-elements/p-4a3bb31d.entry.js +1 -0
  237. package/dist/zonos-elements/{p-26a634a5.system.entry.js → p-4cb8b87f.system.entry.js} +1 -1
  238. package/dist/zonos-elements/p-4e9c8f9e.system.js +1 -0
  239. package/dist/zonos-elements/{p-80bbd9c0.system.entry.js → p-4fb88ebc.system.entry.js} +1 -1
  240. package/dist/zonos-elements/{p-df4c46a6.entry.js → p-5616b304.entry.js} +1 -1
  241. package/dist/zonos-elements/{p-a9307caa.js → p-658936c9.js} +2 -2
  242. package/dist/zonos-elements/{p-6b6a9dd6.system.js → p-666164d9.system.js} +1 -1
  243. package/dist/zonos-elements/{p-3284f459.system.entry.js → p-719e14a8.system.entry.js} +1 -1
  244. package/dist/zonos-elements/{p-fbe36bc8.system.entry.js → p-7234f876.system.entry.js} +1 -1
  245. package/dist/zonos-elements/p-74bcb5cc.entry.js +1 -0
  246. package/dist/zonos-elements/{p-27987298.system.entry.js → p-7777d85f.system.entry.js} +1 -1
  247. package/dist/zonos-elements/{p-aa1193bc.entry.js → p-848e08e8.entry.js} +1 -1
  248. package/dist/zonos-elements/{p-ab176281.system.entry.js → p-858b7908.system.entry.js} +1 -1
  249. package/dist/zonos-elements/{p-0693422b.system.js → p-91c996d3.system.js} +1 -1
  250. package/dist/zonos-elements/{p-851c642e.system.entry.js → p-93aeba62.system.entry.js} +1 -1
  251. package/dist/zonos-elements/p-9b8a5372.entry.js +1 -0
  252. package/dist/zonos-elements/{p-cb823c4d.system.js → p-9e9ac7a2.system.js} +1 -1
  253. package/dist/zonos-elements/p-9fa17353.js +1 -0
  254. package/dist/zonos-elements/{p-01987cb2.system.entry.js → p-a0f570ea.system.entry.js} +1 -1
  255. package/dist/zonos-elements/p-a2b55d11.entry.js +1 -0
  256. package/dist/zonos-elements/p-aafcd40f.system.entry.js +1 -0
  257. package/dist/zonos-elements/p-abc83d01.entry.js +1 -0
  258. package/dist/zonos-elements/p-abe218ab.system.entry.js +1 -0
  259. package/dist/zonos-elements/{p-45ebc788.entry.js → p-b21b0330.entry.js} +1 -1
  260. package/dist/zonos-elements/{p-488ad646.system.entry.js → p-b50eaeac.system.entry.js} +1 -1
  261. package/dist/zonos-elements/p-b922c441.system.js +1 -0
  262. package/dist/zonos-elements/p-ba027b70.system.entry.js +1 -0
  263. package/dist/zonos-elements/p-bab19e2a.entry.js +1 -0
  264. package/dist/zonos-elements/p-c4e0f49a.system.entry.js +1 -0
  265. package/dist/zonos-elements/{p-c50b3100.system.js → p-c666d557.system.js} +1 -1
  266. package/dist/zonos-elements/{p-f891d470.entry.js → p-c988cf84.entry.js} +1 -1
  267. package/dist/zonos-elements/{p-6a71f76b.system.js → p-d5f7f7e6.system.js} +1 -1
  268. package/dist/zonos-elements/p-dbd23bea.entry.js +1 -0
  269. package/dist/zonos-elements/p-e0587eeb.entry.js +1 -0
  270. package/dist/zonos-elements/{p-72f37935.js → p-e337fa88.js} +1 -1
  271. package/dist/zonos-elements/{p-d6a10007.entry.js → p-e5152c04.entry.js} +1 -1
  272. package/dist/zonos-elements/p-ea88baa9.system.entry.js +1 -0
  273. package/dist/zonos-elements/p-eb2560b6.system.entry.js +1 -0
  274. package/dist/zonos-elements/{p-452070af.system.entry.js → p-eca09508.system.entry.js} +1 -1
  275. package/dist/zonos-elements/{p-e26c9e83.js → p-ed20f2f7.js} +1 -1
  276. package/dist/zonos-elements/p-edcfb3a3.js +1 -0
  277. package/dist/zonos-elements/{p-be5afc91.system.entry.js → p-f4d741de.system.entry.js} +1 -1
  278. package/dist/zonos-elements/{p-5c74e5c9.system.entry.js → p-f8bfc320.system.entry.js} +1 -1
  279. package/dist/zonos-elements/{p-d99d9e00.js → p-f9664811.js} +1 -1
  280. package/dist/zonos-elements/zonos-elements.esm.js +1 -1
  281. package/dist/zonos-elements/zonos-elements.js +1 -1
  282. package/package.json +50 -40
  283. package/dist/esm-es5/index-a457c60c.js +0 -2
  284. package/dist/esm-es5/localization-bf7224aa.js +0 -1
  285. package/dist/zonos-elements/p-04b43dd5.entry.js +0 -1
  286. package/dist/zonos-elements/p-06f25f75.entry.js +0 -1
  287. package/dist/zonos-elements/p-0944fe64.entry.js +0 -1
  288. package/dist/zonos-elements/p-0c62cfb3.entry.js +0 -1
  289. package/dist/zonos-elements/p-1dcdb65f.system.entry.js +0 -1
  290. package/dist/zonos-elements/p-25970cb8.system.entry.js +0 -1
  291. package/dist/zonos-elements/p-43633269.system.js +0 -2
  292. package/dist/zonos-elements/p-4b5197e7.system.entry.js +0 -1
  293. package/dist/zonos-elements/p-4c81112f.entry.js +0 -1
  294. package/dist/zonos-elements/p-4efa8187.js +0 -1
  295. package/dist/zonos-elements/p-5170bc41.entry.js +0 -1
  296. package/dist/zonos-elements/p-5d0f7364.system.js +0 -1
  297. package/dist/zonos-elements/p-715d0f59.system.entry.js +0 -1
  298. package/dist/zonos-elements/p-7ae5cd60.entry.js +0 -1
  299. package/dist/zonos-elements/p-8d870d4c.entry.js +0 -1
  300. package/dist/zonos-elements/p-9af5e93a.entry.js +0 -1
  301. package/dist/zonos-elements/p-bc8bda92.entry.js +0 -1
  302. package/dist/zonos-elements/p-c137dc82.js +0 -2
  303. package/dist/zonos-elements/p-c3d2422e.entry.js +0 -1
  304. package/dist/zonos-elements/p-c66fc4e5.system.entry.js +0 -1
  305. package/dist/zonos-elements/p-c767242b.entry.js +0 -1
  306. package/dist/zonos-elements/p-cf6ae7dc.entry.js +0 -1
  307. package/dist/zonos-elements/p-d2165441.system.entry.js +0 -1
  308. package/dist/zonos-elements/p-dcd6acd4.system.entry.js +0 -1
  309. package/dist/zonos-elements/p-dd1cfa74.entry.js +0 -1
  310. package/dist/zonos-elements/p-dfd1ba1d.entry.js +0 -1
  311. package/dist/zonos-elements/p-e68d5219.entry.js +0 -1
  312. package/dist/zonos-elements/p-ef3e05e5.system.js +0 -1
  313. package/dist/zonos-elements/p-f255e822.js +0 -1
  314. package/dist/zonos-elements/p-f29edb65.entry.js +0 -1
  315. package/dist/zonos-elements/p-f655ec36.entry.js +0 -1
  316. package/dist/zonos-elements/p-fcc2e712.entry.js +0 -1
@@ -152,7 +152,22 @@ export declare const stringsPortuguese: {
152
152
  'Due at delivery': {
153
153
  value: string;
154
154
  };
155
- 'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
155
+ 'Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
156
+ value: string;
157
+ };
158
+ 'Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
159
+ value: string;
160
+ };
161
+ 'Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
162
+ value: string;
163
+ };
164
+ 'Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
165
+ value: string;
166
+ };
167
+ 'Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
168
+ value: string;
169
+ };
170
+ 'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
156
171
  value: string;
157
172
  };
158
173
  'Duties and taxes will be applied to items and shipping.': {
@@ -464,10 +479,10 @@ export declare const stringsPortuguese: {
464
479
  'Something went wrong.': {
465
480
  value: string;
466
481
  };
467
- 'Spend [threshold] duty free.': {
482
+ 'Spend up to [threshold] duty free.': {
468
483
  value: string;
469
484
  };
470
- 'Spend [threshold] tax free.': {
485
+ 'Spend up to [threshold] tax free.': {
471
486
  value: string;
472
487
  };
473
488
  'Staging mode': {
@@ -626,9 +641,6 @@ export declare const stringsPortuguese: {
626
641
  Zip: {
627
642
  value: string;
628
643
  };
629
- '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
630
- value: string;
631
- };
632
644
  '[percentage] GST due on any order above [threshold].': {
633
645
  value: string;
634
646
  };
@@ -152,7 +152,22 @@ export declare const stringsRussian: {
152
152
  'Due at delivery': {
153
153
  value: string;
154
154
  };
155
- 'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
155
+ 'Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
156
+ value: string;
157
+ };
158
+ 'Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
159
+ value: string;
160
+ };
161
+ 'Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
162
+ value: string;
163
+ };
164
+ 'Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
165
+ value: string;
166
+ };
167
+ 'Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
168
+ value: string;
169
+ };
170
+ 'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
156
171
  value: string;
157
172
  };
158
173
  'Duties and taxes will be applied to items and shipping.': {
@@ -464,10 +479,10 @@ export declare const stringsRussian: {
464
479
  'Something went wrong.': {
465
480
  value: string;
466
481
  };
467
- 'Spend [threshold] duty free.': {
482
+ 'Spend up to [threshold] duty free.': {
468
483
  value: string;
469
484
  };
470
- 'Spend [threshold] tax free.': {
485
+ 'Spend up to [threshold] tax free.': {
471
486
  value: string;
472
487
  };
473
488
  'Staging mode': {
@@ -626,9 +641,6 @@ export declare const stringsRussian: {
626
641
  Zip: {
627
642
  value: string;
628
643
  };
629
- '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
630
- value: string;
631
- };
632
644
  '[percentage] GST due on any order above [threshold].': {
633
645
  value: string;
634
646
  };
@@ -152,7 +152,22 @@ export declare const stringsSpanish: {
152
152
  'Due at delivery': {
153
153
  value: string;
154
154
  };
155
- 'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
155
+ 'Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
156
+ value: string;
157
+ };
158
+ 'Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
159
+ value: string;
160
+ };
161
+ 'Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
162
+ value: string;
163
+ };
164
+ 'Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
165
+ value: string;
166
+ };
167
+ 'Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
168
+ value: string;
169
+ };
170
+ 'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
156
171
  value: string;
157
172
  };
158
173
  'Duties and taxes will be applied to items and shipping.': {
@@ -464,10 +479,10 @@ export declare const stringsSpanish: {
464
479
  'Something went wrong.': {
465
480
  value: string;
466
481
  };
467
- 'Spend [threshold] duty free.': {
482
+ 'Spend up to [threshold] duty free.': {
468
483
  value: string;
469
484
  };
470
- 'Spend [threshold] tax free.': {
485
+ 'Spend up to [threshold] tax free.': {
471
486
  value: string;
472
487
  };
473
488
  'Staging mode': {
@@ -626,9 +641,6 @@ export declare const stringsSpanish: {
626
641
  Zip: {
627
642
  value: string;
628
643
  };
629
- '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
630
- value: string;
631
- };
632
644
  '[percentage] GST due on any order above [threshold].': {
633
645
  value: string;
634
646
  };
@@ -152,7 +152,22 @@ export declare const stringsSwedish: {
152
152
  'Due at delivery': {
153
153
  value: string;
154
154
  };
155
- 'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
155
+ 'Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
156
+ value: string;
157
+ };
158
+ 'Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
159
+ value: string;
160
+ };
161
+ 'Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
162
+ value: string;
163
+ };
164
+ 'Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
165
+ value: string;
166
+ };
167
+ 'Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
168
+ value: string;
169
+ };
170
+ 'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
156
171
  value: string;
157
172
  };
158
173
  'Duties and taxes will be applied to items and shipping.': {
@@ -464,10 +479,10 @@ export declare const stringsSwedish: {
464
479
  'Something went wrong.': {
465
480
  value: string;
466
481
  };
467
- 'Spend [threshold] duty free.': {
482
+ 'Spend up to [threshold] duty free.': {
468
483
  value: string;
469
484
  };
470
- 'Spend [threshold] tax free.': {
485
+ 'Spend up to [threshold] tax free.': {
471
486
  value: string;
472
487
  };
473
488
  'Staging mode': {
@@ -626,9 +641,6 @@ export declare const stringsSwedish: {
626
641
  Zip: {
627
642
  value: string;
628
643
  };
629
- '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
630
- value: string;
631
- };
632
644
  '[percentage] GST due on any order above [threshold].': {
633
645
  value: string;
634
646
  };
@@ -152,7 +152,22 @@ export declare const stringsTurkish: {
152
152
  'Due at delivery': {
153
153
  value: string;
154
154
  };
155
- 'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
155
+ 'Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
156
+ value: string;
157
+ };
158
+ 'Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
159
+ value: string;
160
+ };
161
+ 'Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
162
+ value: string;
163
+ };
164
+ 'Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
165
+ value: string;
166
+ };
167
+ 'Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
168
+ value: string;
169
+ };
170
+ 'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
156
171
  value: string;
157
172
  };
158
173
  'Duties and taxes will be applied to items and shipping.': {
@@ -464,10 +479,10 @@ export declare const stringsTurkish: {
464
479
  'Something went wrong.': {
465
480
  value: string;
466
481
  };
467
- 'Spend [threshold] duty free.': {
482
+ 'Spend up to [threshold] duty free.': {
468
483
  value: string;
469
484
  };
470
- 'Spend [threshold] tax free.': {
485
+ 'Spend up to [threshold] tax free.': {
471
486
  value: string;
472
487
  };
473
488
  'Staging mode': {
@@ -626,9 +641,6 @@ export declare const stringsTurkish: {
626
641
  Zip: {
627
642
  value: string;
628
643
  };
629
- '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
630
- value: string;
631
- };
632
644
  '[percentage] GST due on any order above [threshold].': {
633
645
  value: string;
634
646
  };
@@ -152,7 +152,22 @@ export declare const stringsVietnamese: {
152
152
  'Due at delivery': {
153
153
  value: string;
154
154
  };
155
- 'Duties & taxes in Australia, VAT or GST is [percentage] and is due on all orders.': {
155
+ 'Due to the Australia tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
156
+ value: string;
157
+ };
158
+ 'Due to the IOSS tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
159
+ value: string;
160
+ };
161
+ 'Due to the New Zealand tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
162
+ value: string;
163
+ };
164
+ 'Due to the Singapore tax law, all orders will be assessed at [percentage] GST regardless of order total.': {
165
+ value: string;
166
+ };
167
+ 'Due to the UK tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
168
+ value: string;
169
+ };
170
+ 'Due to the VOEC tax law, all orders will be assessed at [percentage] VAT regardless of order total.': {
156
171
  value: string;
157
172
  };
158
173
  'Duties and taxes will be applied to items and shipping.': {
@@ -464,10 +479,10 @@ export declare const stringsVietnamese: {
464
479
  'Something went wrong.': {
465
480
  value: string;
466
481
  };
467
- 'Spend [threshold] duty free.': {
482
+ 'Spend up to [threshold] duty free.': {
468
483
  value: string;
469
484
  };
470
- 'Spend [threshold] tax free.': {
485
+ 'Spend up to [threshold] tax free.': {
471
486
  value: string;
472
487
  };
473
488
  'Staging mode': {
@@ -626,9 +641,6 @@ export declare const stringsVietnamese: {
626
641
  Zip: {
627
642
  value: string;
628
643
  };
629
- '[percentage] GST due on any order above [threshold] along with an import entry transaction fee and MPI levy.': {
630
- value: string;
631
- };
632
644
  '[percentage] GST due on any order above [threshold].': {
633
645
  value: string;
634
646
  };
@@ -1,6 +1,7 @@
1
1
  import './global.d';
2
2
  export * from '../components.d';
3
3
  export type { CartItem, ItemMeasurement, } from '../components/store/checkout/cart';
4
+ export type { CountryLandedCost } from '../components/utils/api/getCountryLandedCost';
4
5
  export * from './checkout/api/CalculateLandedCost';
5
6
  export * from './checkout/api/CheckoutSession';
6
7
  export * from './checkout/api/legacy/InventoryCheck';
@@ -1 +1 @@
1
- <svg color="var(--zonos-elements-red-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-red-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
1
+ <svg color="var(--zonos-elements-gray-800)" fill="none" height="24" viewBox="0 0 24 24" width="24" xmlns="https://www.w3.org/2000/svg"><path clip-rule="evenodd" d="M22 12c0 5.523-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2s10 4.477 10 10Z" data-is-secondary-color="true" fill="var(--zonos-elements-gray-200)" fill-rule="evenodd"></path><path clip-rule="evenodd" d="M8.293 8.293a1 1 0 0 1 1.414 0L12 10.586l2.293-2.293a1 1 0 1 1 1.414 1.414L13.414 12l2.293 2.293a1 1 0 0 1-1.414 1.414L12 13.414l-2.293 2.293a1 1 0 0 1-1.414-1.414L10.586 12 8.293 9.707a1 1 0 0 1 0-1.414Z" fill="currentColor" fill-rule="evenodd"></path></svg>
@@ -1 +1 @@
1
- import{c as n}from"./p-595f5dd2.js";import{g as o,I as t}from"./p-e7b0c156.js";import{g as r,a as i,l,h as u,b as m}from"./p-0fc02cde.js";import{_ as p,c as w,a as f}from"./p-3f1a2d31.js";export{c as checkoutHiddenBtnSelector,a as checkoutHiddenInternationalBtnSelector,d as domesticRedirectedBtnSelector}from"./p-3f1a2d31.js";export{a as availableTestKeys}from"./p-04a01cb1.js";export{c as countryRequireTaxId,e as euCountryCodes,s as shipToTaxIdLabels}from"./p-6b361d2b.js";const h=["jsdelivr","cdnjs","unpkg","vercel"],y="jsdelivr",v=e=>{const n=h.indexOf(e);return h[n+1]||null},g=()=>{const e=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||e)return null;const n=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href),o="https://v1.3.204.js.zonos.com";if(!n&&(o.includes("test.")||o.includes("test-")))return o;if(!n&&["dev.demo.elements.zonos.com","dev.checkout.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const t=`https://${n}.preview.js.zonos.com`;return l(`[ZONOS-WARNING] using '${t}' for loading elements script`,"warn"),fetch(t).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${t}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,o=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",o),window.location.reload(),null})),t},S="https://js.stripe.com/v3",z=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,j="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let O=null;const b=Promise.resolve().then((()=>{return e=null,null!==O||(O=new Promise(((n,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(j),window.Stripe)n(window.Stripe);else try{let t=(()=>{const e=document.querySelectorAll(`script[src^="${S}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&z.test(o.src))return o}return null})();t&&e?console.warn(j):t||(t=(e=>{const n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${S}${n}`;const t=document.head||document.body;return t?(t.appendChild(o),o):(m("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==t||t.addEventListener("load",(()=>{window.Stripe?n(window.Stripe):o(new Error("Stripe.js not available"))})),null==t||t.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else n(null)}))),O;var e}));let k=!1;b.catch((e=>{k||console.warn(e)}));const $=async({cartId:e,retries:n})=>{const t=r(),s=o(),i=new URLSearchParams;s.overrideShouldEnabledCustomAddress&&i.set("overrideShouldEnabledCustomAddress",s.overrideShouldEnabledCustomAddress);const{errors:c,json:d,zonosMode:a}=await u(`/api/zonos-elements/get-cart?${i.toString()}`,{body:{isTestMode:t,tempCartUUID:e},headers:{"Content-Type":"application/json"},method:"POST"}),m=!d||c.length;return m&&n?(l("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:n}),await new Promise((e=>setTimeout(e,500))),$({cartId:e,retries:n-1})):m?null:Object.assign(Object.assign({},d),{zonosMode:a})};var I;const Z=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,o=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),t=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:t,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?n:null})(),L="https://v1.3.204.js.zonos.com",N=Z||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.204",U="https://fonts.googleapis.com",R=/^https:\/\/fonts\.googleapis\.com/;class T{}I=T,T.doneInit=!1,T.cartSettings=null,T.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),T.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),T._paypalMockResponse=null,T.iframeLogType="undefined"!=typeof window?new URLSearchParams(window.location.search).get("iframeLogType"):null,T.isBigCommerce=!1,T.releaseDate="1747426281984",T.isLegacyCheckout=!1,T.domain="undefined"!=typeof window?window.location!=window.parent.location&&document.referrer||document.location.hostname:"",T.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),T.overrideUseCustomAddressForm=!1,T.isNpm=!0,T.zonosQaUrl=null,T.zonosQaUrlApi=null,T.trackEventLogs=[],T.version="v1.3.204",T.modeAlerted=!1,T.cartData=null,T.paypal=null,T.zonosMode=null,T.IframeService=t,T.getCurrentTimestamp=()=>(new Date).getTime(),T.zonosController=null,T.loadTimeApiInfoList=[],T.logIntervalId=null,T.init=async e=>{const{appearance:n,checkoutSettings:o,currencyConverter:t,helloSettings:s,onCountryChange:c,overrideCurrencyFormat:d,storeId:a,zonosApiKey:f}=e;if(I.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),I.doneInit)return;if(l(`====== ZONOS DEBUG MODE: on (${I.version}) ======`),I.zonosApiKey=f,I.storeId=a,I.isNpm){l("====== ZONOS LOADING FROM NPM ======");const n=g();if(n&&!window.isZonosPreview){l(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${n} ======`,"info");const o=document.createElement("script");return o.src=`${n}/dist/scripts/zonos.js`,document.head.appendChild(o),o.addEventListener("load",(()=>{window.Zonos.isNpm=I.isNpm,window.Zonos.isBigCommerce=I.isBigCommerce,window.Zonos.isLegacyCheckout=I.isLegacyCheckout,window.Zonos.init(e)})),o.addEventListener("error",(()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${n}`)})),void(window.isZonosPreview=!0)}if(!f&&!I.cartId)return void m("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!I.cartData&&I.cartId){l("Initialize cart data");const e=await(async e=>{const{isDgsCartId:n,isLegacyCartId:o}=p(e);if(!o&&!n)return m("[ZONOS - loadZonos] invalid cart id"),null;const t=await $({cartId:e,retries:5});return l("[ZONOS - loadZonos] getting temp cart data","info",t),t?(window.Zonos.storeId=t.cartData.storeId,window.Zonos.zonosApiKey=t.cartData.credentialToken,window.Zonos.zonosMode=t.zonosMode,{cartData:t.cartData,settings:t.settings,storeFavicon:t.storeFaviconUrl,storeId:t.cartData.storeId,storeLogo:t.storeLogoUrl,zonosApiKey:t.cartData.credentialToken}):(m("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process."),null)})(I.cartId);if(!e)return void m("Failed to get cart data");I.cartData=e.cartData,I.zonosApiKey=e.zonosApiKey,I.cartSettings=e.settings}const o=await(async()=>{const e=r(),n=i();if(!e&&!n||!window.Zonos.zonosApiKey)return null;if(l("[ZONOS - loadZonos] Attempt test public credential","info"),window.Zonos.zonosApiKey.includes("credential_test"))return l("[ZONOS - loadZonos] Test mode is enabled but the API key is already a test key","info"),null;const{errors:o,json:t}=await u("/api/get-test-public-credential");if(o.length||!t)return m("[ZONOS - loadZonos] Failed to get test public credential. Keep using production key",o),null;const s=t.publicCredential;return s?(l(`[ZONOS - loadZonos] Retrieve new test public token ${s}`,"info"),s):(m("[ZONOS - loadZonos] No test public key credential. Keep using production key"),null)})();o&&(I.zonosApiKey=o)}const h=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret");if(I.cartId&&I.cartData||h){l("Cart data or stripe client secret is available, inject hidden button and trigger checkout");const e=document.createElement("button");e.style.display="none",e.id=`${w}`,document.body.appendChild(e)}l("init zonos"),I.restoreNativeBrowserFunctions(),I.injectCustomScriptForHostedCheckout(),I.injectZonosCdn(),I.injectZonosCss(),I.injectFonts(),I.injectCheckoutInternationalButton(),I.injectController({config:{appearance:n,checkoutSettings:o,currencyConverter:t,helloSettings:s,onCountryChange:c,overrideCurrencyFormat:d}}),I.doneInit=!0},T.injectCheckoutInternationalButton=()=>{if(!document.querySelector(`#${f}`)){const e=document.createElement("button");e.id=f,e.style.display="none",document.body.appendChild(e)}},T.injectCustomScriptForHostedCheckout=()=>{const e=I.cartData,n=(null==e?void 0:e.metadata)||[],o=n.find((e=>"customHeaderScript"===e.key)),t=n.find((e=>"customFooterScript"===e.key));if(window.Zonos.isLegacyCheckout&&(o||t)){if(o){l("Injecting custom header script");const e=document.createElement("script");e.textContent=o.value,document.head.appendChild(e)}if(t){l("Injecting custom footer script");const e=document.createElement("script");e.textContent=t.value,document.body.appendChild(e)}}else l("Skip injecting custom script for hosted checkout","info",{footerScript:t,headerScript:o,isLegacyCheckout:window.Zonos.isLegacyCheckout})},T.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},T.triggerCheckoutInternational=async()=>{const e=document.querySelector(`#${f}`);setTimeout((()=>{e&&e.dispatchEvent(n("click"))}),10)},T.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},T.showNotification=e=>{var n;null===(n=I.zonosController)||void 0===n||n.showNotification(e)},T.updateOrganizationName=e=>{var n;null===(n=I.zonosController)||void 0===n||n.updateOrganizationName(e)},T.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:o,placeOrderButtonSelector:t})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&t){const n=document.querySelectorAll(t),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(o?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&o&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},T.restoreNativeBrowserFunctions=()=>{var e;if("1"===new URL(window.location.href).searchParams.get("useMerchantPolyfill"))return;const n="zonos---native-browser";let o=document.querySelector(`iframe#${n}`);o||(o=document.createElement("iframe"),o.id=n,o.style.display="none",o.style.opacity="0",o.style.position="absolute",o.style.top="-9999px",o.style.left="-9999px",o.style.width="1px",o.style.height="1px",o.style.border="none",o.style.overflow="hidden",o.style.visibility="hidden",document.body.appendChild(o));const t=(null===(e=o.contentWindow)||void 0===e?void 0:e.window.Array.from)||Array.from;Array.from=t,document.body.removeChild(o)},T.injectController=({config:e})=>{var n,o;if(document.querySelector("zonos-controller"))return;if(null===(n=e.checkoutSettings)||void 0===n?void 0:n.placeOrderButtonSelector){const n=e.checkoutSettings.placeOrderButtonSelector;I.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n}),new MutationObserver((()=>{I.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n})})).observe(document.body,{childList:!0,subtree:!0})}if(null===(o=e.checkoutSettings)||void 0===o?void 0:o.alwaysTriggerInternationalCheckoutSelector){const n=e.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;I.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n}),new MutationObserver((()=>{I.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n})})).observe(document.body,{childList:!0,subtree:!0})}const t=document.createElement("zonos-controller");t.config=e,t.zonosApiKey=I.zonosApiKey||"",t.addEventListener("stripeInitEvent",(async e=>{const{detail:n}=e;l("loading Stripe");const o=await(async(...e)=>{k=!0;const n=Date.now();return b.then((o=>((e,n,o)=>{if(null===e)return null;const t=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(t,o),t})(o,e,n)))})(n.publishableKey);o?(window.Zonos.stripe=o,t.initCheckoutElement(o)):m("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(t),I.zonosController=t,l("Zonos controller injected!")},T.injectScript=({cdnType:e,isModule:n,theRestUrl:o})=>{const t=`${I.getZonosUrl(e)}/${o}`;if(document.querySelector(`script[src="${t}"]`))return void l(`Zonos script "${t}" already exists in the document`,"warn");const s=document.head||document.body,r=document.createElement("script");n?r.type="module":r.noModule=!0,r.src=t,r.crossOrigin="anonymous",r.onerror=()=>{m(`Failed to load ${r.src}`);const t=v(e);t&&I.injectScript({cdnType:t,isModule:n,theRestUrl:o})},s.appendChild(r)},T.getZonosUrl=e=>{const n=()=>{switch(e){case"jsdelivr":return N;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.204";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.204";case"vercel":return L}};return I.isNpm&&g()||n()},T.injectZonosCdn=()=>{I.injectScript({cdnType:y,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),I.injectScript({cdnType:y,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),l("Zonos cdn script injected!")},T.injectStylesheet=({cdnType:e,theRestUrl:n})=>{const o=I.getZonosUrl(e),t=document.head||document.body,s=document.createElement("link");s.rel="preconnect",s.href=`${L}/`,t.appendChild(s);const r=document.createElement("link");r.rel="stylesheet",r.href=`${o}/${n}`,r.onerror=()=>{m(`Failed to load ${r.href}`);const o=v(e);o&&I.injectStylesheet({cdnType:o,theRestUrl:n})},t.appendChild(r)},T.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?l("Zonos style links already injected","warn"):(I.injectStylesheet({cdnType:y,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),l("Zonos style css injected!"))},T.injectFonts=()=>{if((()=>{if(document.fonts.check("1em Inter"))return void l("Inter font already loaded","warn");const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${U}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&!R.test(o.href))return o}return null})())return void l("Inter font already injected","warn");const e=document.head||document.body,n=document.createElement("link");n.rel="preconnect",n.href=U,e.appendChild(n);const o=document.createElement("link");o.rel="stylesheet",o.href=`${U}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`,e.appendChild(o),l("Zonos font injected!")},T.setupGoogleFont=e=>{var n;null===(n=I.zonosController)||void 0===n||n.setupGoogleFont(e)},T.injectSupportGoogleFont=e=>{var n;l(`[FONT] injecting ${e}`);const o=null===(n=e.match(/family=(.*?):/))||void 0===n?void 0:n[1],t=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${U}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=U,t.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return void l(`[FONT] ${o} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=e,t.appendChild(s),l(`[FONT] ${o} font injected!`)};export{T as Zonos}
1
+ import{c as n}from"./p-595f5dd2.js";import{g as o,I as t}from"./p-e7b0c156.js";import{g as r,a as i,l,h as u,b as m}from"./p-0fc02cde.js";import{_ as p,c as w,a as f}from"./p-3f1a2d31.js";export{c as checkoutHiddenBtnSelector,a as checkoutHiddenInternationalBtnSelector,d as domesticRedirectedBtnSelector}from"./p-3f1a2d31.js";export{a as availableTestKeys}from"./p-04a01cb1.js";export{c as countryRequireTaxId,e as euCountryCodes,s as shipToTaxIdLabels}from"./p-6b361d2b.js";const h=["jsdelivr","cdnjs","unpkg","vercel"],y="jsdelivr",v=e=>{const n=h.indexOf(e);return h[n+1]||null},g=()=>{const e=window&&window.location.href.includes("forceLoadCdn");if("undefined"==typeof window||e)return null;const n=(e=>{if(!e)return null;const n=new URL(e).searchParams.get("zonosQaUrl");return n?/[^a-zA-Z0-9-_]+/.test(n)?null:n:null})(window.location.href),o="https://v1.3.206.js.zonos.com";if(!n&&(o.includes("test.")||o.includes("test-")))return o;if(!n&&["dev.demo.elements.zonos.com","dev.checkout.elements.zonos.com"].includes(window.location.hostname))return"https://dev.elements.zonos.com";if(!n)return null;if("dev-elements"===n)return"https://dev.elements.zonos.com";const t=`https://${n}.preview.js.zonos.com`;return l(`[ZONOS-WARNING] using '${t}' for loading elements script`,"warn"),fetch(t).then((()=>{window.sessionStorage.removeItem("zonos--checkout-session-id"),window.sessionStorage.removeItem("zonos--client-secret")})).catch((()=>{alert(`[ZONOS-WARNING] '${t}' IS NO LONGER AVAILABLE. REMOVING zonosQaUrl PARAM AND RELOADING THE PAGE`);const e=new URLSearchParams(window.location.search);e.delete("zonosQaUrl");const{pathname:n}=window.location,o=`${n}?${e.toString()}`;return window.history.replaceState(window.history.state,"",o),window.location.reload(),null})),t},S="https://js.stripe.com/v3",z=/^https:\/\/js\.stripe\.com\/v3\/?(\?.*)?$/,j="loadStripe.setLoadParameters was called but an existing Stripe.js script already exists in the document; existing script parameters will be used";let O=null;const b=Promise.resolve().then((()=>{return e=null,null!==O||(O=new Promise(((n,o)=>{if("undefined"!=typeof window&&"undefined"!=typeof document)if(window.Stripe&&e&&console.warn(j),window.Stripe)n(window.Stripe);else try{let t=(()=>{const e=document.querySelectorAll(`script[src^="${S}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&z.test(o.src))return o}return null})();t&&e?console.warn(j):t||(t=(e=>{const n=e&&!e.advancedFraudSignals?"?advancedFraudSignals=false":"",o=document.createElement("script");o.src=`${S}${n}`;const t=document.head||document.body;return t?(t.appendChild(o),o):(m("Expected document.body not to be null. Stripe.js requires a <body> element."),null)})(e)),null==t||t.addEventListener("load",(()=>{window.Stripe?n(window.Stripe):o(new Error("Stripe.js not available"))})),null==t||t.addEventListener("error",(()=>{o(new Error("Failed to load Stripe.js"))}))}catch(e){return void o(e)}else n(null)}))),O;var e}));let k=!1;b.catch((e=>{k||console.warn(e)}));const $=async({cartId:e,retries:n})=>{const t=r(),s=o(),i=new URLSearchParams;s.overrideShouldEnabledCustomAddress&&i.set("overrideShouldEnabledCustomAddress",s.overrideShouldEnabledCustomAddress);const{errors:c,json:d,zonosMode:a}=await u(`/api/zonos-elements/get-cart?${i.toString()}`,{body:{isTestMode:t,tempCartUUID:e},headers:{"Content-Type":"application/json"},method:"POST"}),m=!d||c.length;return m&&n?(l("[ZONOS - loadZonos] temp cart not ready, retrying in 1 second","info",{retries:n}),await new Promise((e=>setTimeout(e,500))),$({cartId:e,retries:n-1})):m?null:Object.assign(Object.assign({},d),{zonosMode:a})};var I;const Z=(()=>{if("undefined"==typeof document)return null;const e=document.querySelector('script[src*="/zonos.js"]'),{currentLoadScriptUrl:n,isWhiteListed:o}=(({loadScriptSrc:e})=>{if(!e)return{currentLoadScriptUrl:"",isForceLoadVersionDomain:!1,isWhiteListed:!1};const n=new URL(e).origin,o=["dev.elements.zonos.com","dev.assets-checkout.zonos.com",".js.zonos.com","zonos-elements-test-git","zonos-elements-git"].some((e=>n.includes(e))),t=["qa.js.zonos.com"].some((e=>n.includes(e)));return{currentLoadScriptUrl:n,isForceLoadVersionDomain:t,isWhiteListed:o}})({loadScriptSrc:null==e?void 0:e.src});return o?n:null})(),L="https://v1.3.206.js.zonos.com",N=Z||"https://cdn.jsdelivr.net/npm/@zonos/elements@1.3.206",U="https://fonts.googleapis.com",R=/^https:\/\/fonts\.googleapis\.com/;class T{}I=T,T.doneInit=!1,T.cartSettings=null,T.debug="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosDebug=1/),T.zonosConversionTest="undefined"!=typeof window&&!!window.location.search.match(/\?.*(&*)zonosConversionTest/),T._paypalMockResponse=null,T.iframeLogType="undefined"!=typeof window?new URLSearchParams(window.location.search).get("iframeLogType"):null,T.isBigCommerce=!1,T.releaseDate="1748443962388",T.isLegacyCheckout=!1,T.domain="undefined"!=typeof window?window.location!=window.parent.location&&document.referrer||document.location.hostname:"",T.showBaseForeign="undefined"!=typeof window&&window.location.search.includes("zonosShowBaseForeign"),T.overrideUseCustomAddressForm=!1,T.isNpm=!0,T.zonosQaUrl=null,T.zonosQaUrlApi=null,T.trackEventLogs=[],T.version="v1.3.206",T.modeAlerted=!1,T.cartData=null,T.paypal=null,T.zonosMode=null,T.IframeService=t,T.getCurrentTimestamp=()=>(new Date).getTime(),T.zonosController=null,T.loadTimeApiInfoList=[],T.logIntervalId=null,T.init=async e=>{const{appearance:n,checkoutSettings:o,currencyConverter:t,helloSettings:s,onCountryChange:c,overrideCurrencyFormat:d,storeId:a,zonosApiKey:f}=e;if(I.cartId=new URLSearchParams(window.location.search).get("tempCartUUID"),I.doneInit)return;if(l(`====== ZONOS DEBUG MODE: on (${I.version}) ======`),I.zonosApiKey=f,I.storeId=a,I.isNpm){l("====== ZONOS LOADING FROM NPM ======");const n=g();if(n&&!window.isZonosPreview){l(`====== RE-INJECT "zonos.js" FROM PRVIEW: ${n} ======`,"info");const o=document.createElement("script");return o.src=`${n}/dist/scripts/zonos.js`,document.head.appendChild(o),o.addEventListener("load",(()=>{window.Zonos.isNpm=I.isNpm,window.Zonos.isBigCommerce=I.isBigCommerce,window.Zonos.isLegacyCheckout=I.isLegacyCheckout,window.Zonos.init(e)})),o.addEventListener("error",(()=>{alert(`[ZONOS - loadZonos] Failed to load "loadZonos.js" from zonosQaUrl: ${n}`)})),void(window.isZonosPreview=!0)}if(!f&&!I.cartId)return void m("Zonos API key is required unless `tempCartUUID` is provided in url query params.");if(!I.cartData&&I.cartId){l("Initialize cart data");const e=await(async e=>{const{isDgsCartId:n,isLegacyCartId:o}=p(e);if(!o&&!n)return m("[ZONOS - loadZonos] invalid cart id"),null;const t=await $({cartId:e,retries:5});return l("[ZONOS - loadZonos] getting temp cart data","info",t),t?(window.Zonos.storeId=t.cartData.storeId,window.Zonos.zonosApiKey=t.cartData.credentialToken,window.Zonos.zonosMode=t.zonosMode,{cartData:t.cartData,settings:t.settings,storeFavicon:t.storeFaviconUrl,storeId:t.cartData.storeId,storeLogo:t.storeLogoUrl,zonosApiKey:t.cartData.credentialToken}):(m("[ZONOS - loadZonos] Error getting temp cart data, stop checkout process."),null)})(I.cartId);if(!e)return void m("Failed to get cart data");I.cartData=e.cartData,I.zonosApiKey=e.zonosApiKey,I.cartSettings=e.settings}const o=await(async()=>{const e=r(),n=i();if(!e&&!n||!window.Zonos.zonosApiKey)return null;if(l("[ZONOS - loadZonos] Attempt test public credential","info"),window.Zonos.zonosApiKey.includes("credential_test"))return l("[ZONOS - loadZonos] Test mode is enabled but the API key is already a test key","info"),null;const{errors:o,json:t}=await u("/api/get-test-public-credential");if(o.length||!t)return m("[ZONOS - loadZonos] Failed to get test public credential. Keep using production key",o),null;const s=t.publicCredential;return s?(l(`[ZONOS - loadZonos] Retrieve new test public token ${s}`,"info"),s):(m("[ZONOS - loadZonos] No test public key credential. Keep using production key"),null)})();o&&(I.zonosApiKey=o)}const h=new URL(window.location.href).searchParams.get("payment_intent_client_secret")||sessionStorage.getItem("zonos--client-secret");if(I.cartId&&I.cartData||h){l("Cart data or stripe client secret is available, inject hidden button and trigger checkout");const e=document.createElement("button");e.style.display="none",e.id=`${w}`,document.body.appendChild(e)}l("init zonos"),I.restoreNativeBrowserFunctions(),I.injectCustomScriptForHostedCheckout(),I.injectZonosCdn(),I.injectZonosCss(),I.injectFonts(),I.injectCheckoutInternationalButton(),I.injectController({config:{appearance:n,checkoutSettings:o,currencyConverter:t,helloSettings:s,onCountryChange:c,overrideCurrencyFormat:d}}),I.doneInit=!0},T.injectCheckoutInternationalButton=()=>{if(!document.querySelector(`#${f}`)){const e=document.createElement("button");e.id=f,e.style.display="none",document.body.appendChild(e)}},T.injectCustomScriptForHostedCheckout=()=>{const e=I.cartData,n=(null==e?void 0:e.metadata)||[],o=n.find((e=>"customHeaderScript"===e.key)),t=n.find((e=>"customFooterScript"===e.key));if(window.Zonos.isLegacyCheckout&&(o||t)){if(o){l("Injecting custom header script");const e=document.createElement("script");e.textContent=o.value,document.head.appendChild(e)}if(t){l("Injecting custom footer script");const e=document.createElement("script");e.textContent=t.value,document.body.appendChild(e)}}else l("Skip injecting custom script for hosted checkout","info",{footerScript:t,headerScript:o,isLegacyCheckout:window.Zonos.isLegacyCheckout})},T.displayCurrency=()=>{const e=document.querySelector("zonos-hello");e&&e.displayCurrency()},T.triggerCheckoutInternational=async()=>{const e=document.querySelector(`#${f}`);setTimeout((()=>{e&&e.dispatchEvent(n("click"))}),10)},T.openHelloDialog=e=>{const n=document.querySelector("zonos-hello");n&&n.openHelloDialog(null==e||e)},T.showNotification=e=>{var n;null===(n=I.zonosController)||void 0===n||n.showNotification(e)},T.updateOrganizationName=e=>{var n;null===(n=I.zonosController)||void 0===n||n.updateOrganizationName(e)},T.disablePlaceOrderButtons=({autoEnable:e=!0,config:n,disable:o,placeOrderButtonSelector:t})=>{var s;if(!(null===(s=n.checkoutSettings)||void 0===s?void 0:s.disablePlaceOrderButtonActivation)&&t){const n=document.querySelectorAll(t),s=e=>{e.target.getAttribute("disabled")&&(e.preventDefault(),e.stopPropagation())};n.forEach((e=>{e.getAttribute("data-zonos-checkout-attached")||(o?(e.setAttribute("disabled","true"),e.addEventListener("click",s)):(e.removeAttribute("disabled"),e.removeEventListener("click",s)))})),e&&o&&setTimeout((()=>{n.forEach((e=>{e.removeAttribute("disabled"),e.removeEventListener("click",s)}))}),5e3)}},T.restoreNativeBrowserFunctions=()=>{var e;if("1"===new URL(window.location.href).searchParams.get("useMerchantPolyfill"))return;const n="zonos---native-browser";let o=document.querySelector(`iframe#${n}`);o||(o=document.createElement("iframe"),o.id=n,o.style.display="none",o.style.opacity="0",o.style.position="absolute",o.style.top="-9999px",o.style.left="-9999px",o.style.width="1px",o.style.height="1px",o.style.border="none",o.style.overflow="hidden",o.style.visibility="hidden",document.body.appendChild(o));const t=(null===(e=o.contentWindow)||void 0===e?void 0:e.window.Array.from)||Array.from;Array.from=t,document.body.removeChild(o)},T.injectController=({config:e})=>{var n,o;if(document.querySelector("zonos-controller"))return;if(null===(n=e.checkoutSettings)||void 0===n?void 0:n.placeOrderButtonSelector){const n=e.checkoutSettings.placeOrderButtonSelector;I.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n}),new MutationObserver((()=>{I.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n})})).observe(document.body,{childList:!0,subtree:!0})}if(null===(o=e.checkoutSettings)||void 0===o?void 0:o.alwaysTriggerInternationalCheckoutSelector){const n=e.checkoutSettings.alwaysTriggerInternationalCheckoutSelector;I.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n}),new MutationObserver((()=>{I.disablePlaceOrderButtons({config:e,disable:!0,placeOrderButtonSelector:n})})).observe(document.body,{childList:!0,subtree:!0})}const t=document.createElement("zonos-controller");t.config=e,t.zonosApiKey=I.zonosApiKey||"",t.addEventListener("stripeInitEvent",(async e=>{const{detail:n}=e;l("loading Stripe");const o=await(async(...e)=>{k=!0;const n=Date.now();return b.then((o=>((e,n,o)=>{if(null===e)return null;const t=e.apply(void 0,n);return((e,n)=>{e&&e._registerWrapper&&e._registerWrapper({name:"stripe-js",startTime:n})})(t,o),t})(o,e,n)))})(n.publishableKey);o?(window.Zonos.stripe=o,t.initCheckoutElement(o)):m("API seems to be invalid or missing. Failed to load Stripe")})),document.body.appendChild(t),I.zonosController=t,l("Zonos controller injected!")},T.injectScript=({cdnType:e,isModule:n,theRestUrl:o})=>{const t=`${I.getZonosUrl(e)}/${o}`;if(document.querySelector(`script[src="${t}"]`))return void l(`Zonos script "${t}" already exists in the document`,"warn");const s=document.head||document.body,r=document.createElement("script");n?r.type="module":r.noModule=!0,r.src=t,r.crossOrigin="anonymous",r.onerror=()=>{m(`Failed to load ${r.src}`);const t=v(e);t&&I.injectScript({cdnType:t,isModule:n,theRestUrl:o})},s.appendChild(r)},T.getZonosUrl=e=>{const n=()=>{switch(e){case"jsdelivr":return N;case"unpkg":return"https://unpkg.com/@zonos/elements@1.3.206";case"cdnjs":return"https://cdnjs.cloudflare.com/ajax/libs/zonos-elements/1.3.206";case"vercel":return L}};return I.isNpm&&g()||n()},T.injectZonosCdn=()=>{I.injectScript({cdnType:y,isModule:!0,theRestUrl:"dist/zonos-elements/zonos-elements.esm.js"}),I.injectScript({cdnType:y,isModule:!1,theRestUrl:"dist/zonos-elements/zonos-elements.js"}),l("Zonos cdn script injected!")},T.injectStylesheet=({cdnType:e,theRestUrl:n})=>{const o=I.getZonosUrl(e),t=document.head||document.body,s=document.createElement("link");s.rel="preconnect",s.href=`${L}/`,t.appendChild(s);const r=document.createElement("link");r.rel="stylesheet",r.href=`${o}/${n}`,r.onerror=()=>{m(`Failed to load ${r.href}`);const o=v(e);o&&I.injectStylesheet({cdnType:o,theRestUrl:n})},t.appendChild(r)},T.injectZonosCss=()=>{document.querySelector('link[rel="stylesheet"][href*="/dist/zonos-elements/zonos-elements.css"]')?l("Zonos style links already injected","warn"):(I.injectStylesheet({cdnType:y,theRestUrl:"dist/zonos-elements/zonos-elements.css"}),l("Zonos style css injected!"))},T.injectFonts=()=>{if((()=>{if(document.fonts.check("1em Inter"))return void l("Inter font already loaded","warn");const e=document.querySelectorAll(`link[rel="stylesheet"][href^="${U}"]`);for(let n=0;n<e.length;n++){const o=e[n];if(o&&!R.test(o.href))return o}return null})())return void l("Inter font already injected","warn");const e=document.head||document.body,n=document.createElement("link");n.rel="preconnect",n.href=U,e.appendChild(n);const o=document.createElement("link");o.rel="stylesheet",o.href=`${U}/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap`,e.appendChild(o),l("Zonos font injected!")},T.setupGoogleFont=e=>{var n;null===(n=I.zonosController)||void 0===n||n.setupGoogleFont(e)},T.injectSupportGoogleFont=e=>{var n;l(`[FONT] injecting ${e}`);const o=null===(n=e.match(/family=(.*?):/))||void 0===n?void 0:n[1],t=document.head||document.body;if(!document.querySelector(`link[rel="preconnect"][href^="${U}"]`)){const e=document.createElement("link");e.rel="preconnect",e.href=U,t.appendChild(e)}if(document.querySelector(`link[rel="stylesheet"][href="${e}"]`))return void l(`[FONT] ${o} font already injected`,"warn");const s=document.createElement("link");s.rel="stylesheet",s.href=e,t.appendChild(s),l(`[FONT] ${o} font injected!`)};export{T as Zonos}
@@ -0,0 +1 @@
1
+ import{r as e,h as s,H as a}from"./p-1640d77f.js";import{d as o}from"./p-9fa17353.js";import{c as t}from"./p-b4b7f705.js";import{g as r}from"./p-e337fa88.js";import"./p-04a01cb1.js";const d=class{constructor(s){e(this,s),this.borderRadius=6,this.spacing="24px"}render(){const e=this.backgroundColor?`var(--zonos-elements-${this.backgroundColor})`:"transparent",d=r({customRoundRadius:`${this.borderRadius}px`,overrideBorderStyle:"ROUNDED"});return s(a,{key:"d1a2b02f3d33492fc76bd88cf92e68bf1603cbd0",style:{"--zonos--font-family":o()}},s("div",{key:"0c9acee7938dc95d1f6267dff6fa399bd8a65b95",class:t(["styled-card"]),style:{"--zonos--background-color":e,"--zonos--border-radius":d,padding:this.spacing}},this.label&&s("header",{key:"2559a7fd78c4c4a97ce466e0eefbc4db8409c97f",class:"card-header",style:{padding:this.spacing}},s("zonos-text",{key:"287e0e64461cb5206a653711346fd8eb62524a00",type:"subheader"},this.label),s("h-stack",{key:"9ac80b9c555a93232bbcdd0e1769a4b78ded2fa8",spacing:8},this.actions)),s("slot",{key:"3342bd7f5d2af58740c49d353f311ce1c4101f13"}),(this.footerActions||this.footerContent)&&s("footer",{key:"dee65ea527dfac5821ece452426e2d33f127e356",class:"card-footer",style:{height:this.footerHeight?`${this.footerHeight}px`:"auto",padding:this.spacing}},s("div",{key:"13a23726ada09eb39783ea261b760cbe83587f5b"},this.footerContent),s("h-stack",{key:"1389bcbce376431f3008669e9f55a69b0a177d85",spacing:8},this.footerActions))))}};d.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host .styled-card{border:var(--zonos-elements-border);border-radius:var(--zonos--border-radius, var(--zonos-elements-radius-6));padding:var(--spacing, 24px);text-align:left;background-color:var(--zonos--background-color);overflow:hidden}:host .styled-card hr{margin-left:calc(var(--spacing, 24px) * -1);margin-right:calc(var(--spacing, 24px) * -1)}:host .styled-card .card-header{margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-bottom:var(--spacing, 24px);border-bottom:var(--zonos-elements-border);height:65px;line-height:65px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}:host .styled-card .card-header h5{margin-bottom:0;-ms-flex:1;flex:1}:host .styled-card .card-footer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;margin:calc(var(--spacing, 24px) * -1);padding:var(--spacing, 24px);border-top:var(--zonos-elements-border);background:var(--zonos-elements-surface-color-secondary);margin-top:var(--spacing, 24px);border-bottom-left-radius:var(--zonos-elements-radius-8);border-bottom-right-radius:var(--zonos-elements-radius-8);height:var(--footerHeight)}";export{d as zonos_card}
@@ -0,0 +1,2 @@
1
+ var __extends=this&&this.__extends||function(){var r=function(e,n){r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,e){r.__proto__=e}||function(r,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))r[n]=e[n]};return r(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");r(e,n);function t(){this.constructor=e}e.prototype=n===null?Object.create(n):(t.prototype=n.prototype,new t)}}();var __assign=this&&this.__assign||function(){__assign=Object.assign||function(r){for(var e,n=1,t=arguments.length;n<t;n++){e=arguments[n];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))r[i]=e[i]}return r};return __assign.apply(this,arguments)};var __awaiter=this&&this.__awaiter||function(r,e,n,t){function i(r){return r instanceof n?r:new n((function(e){e(r)}))}return new(n||(n=Promise))((function(n,a){function u(r){try{o(t.next(r))}catch(r){a(r)}}function f(r){try{o(t["throw"](r))}catch(r){a(r)}}function o(r){r.done?n(r.value):i(r.value).then(u,f)}o((t=t.apply(r,e||[])).next())}))};var __generator=this&&this.__generator||function(r,e){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},t,i,a,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol==="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(r){return function(e){return o([r,e])}}function o(f){if(t)throw new TypeError("Generator is already executing.");while(u&&(u=0,f[0]&&(n=0)),n)try{if(t=1,i&&(a=f[0]&2?i["return"]:f[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,f[1])).done)return a;if(i=0,a)f=[f[0]&2,a.value];switch(f[0]){case 0:case 1:a=f;break;case 4:n.label++;return{value:f[1],done:false};case 5:n.label++;i=f[1];f=[0];continue;case 7:f=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(f[0]===6||f[0]===2)){n=0;continue}if(f[0]===3&&(!a||f[1]>a[0]&&f[1]<a[3])){n.label=f[1];break}if(f[0]===6&&n.label<a[1]){n.label=a[1];a=f;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(f);break}if(a[2])n.ops.pop();n.trys.pop();continue}f=e.call(r,n)}catch(r){f=[6,r];i=0}finally{t=a=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(r,e,n){if(n||arguments.length===2)for(var t=0,i=e.length,a;t<i;t++){if(a||!(t in e)){if(!a)a=Array.prototype.slice.call(e,0,t);a[t]=e[t]}}return r.concat(a||Array.prototype.slice.call(e))};System.register([],(function(r,e){"use strict";return{execute:function(){var n=this;var t="zonos-elements";var i={allRenderFn:true,appendChildSlotFix:false,asyncLoading:true,asyncQueue:false,attachStyles:true,cloneNodeFix:false,constructableCSS:true,cssAnnotations:true,devTools:false,element:false,event:true,experimentalScopedSlotChanges:false,experimentalSlotFixes:false,formAssociated:false,hasRenderFn:true,hostListener:true,hostListenerTarget:true,hostListenerTargetBody:true,hostListenerTargetDocument:true,hostListenerTargetParent:false,hostListenerTargetWindow:true,hotModuleReplacement:false,hydrateClientSide:false,hydrateServerSide:false,hydratedAttribute:false,hydratedClass:true,hydratedSelectorName:"hydrated",initializeNextTick:false,invisiblePrehydration:true,isDebug:false,isDev:false,isTesting:false,lazyLoad:true,lifecycle:true,lifecycleDOMEvents:false,member:true,method:true,mode:false,modernPropertyDecls:false,observeAttribute:true,profile:false,prop:true,propBoolean:true,propMutable:true,propNumber:true,propString:true,reflect:false,scoped:true,scopedSlotTextContentFix:false,scriptDataOpts:false,shadowDelegatesFocus:true,shadowDom:true,slot:true,slotChildNodesFix:false,slotRelocation:false,state:true,style:true,svg:true,taskQueue:true,transformTagName:false,updatable:true,vdomAttribute:true,vdomClass:true,vdomFunctional:true,vdomKey:true,vdomListener:true,vdomPropOrAttr:true,vdomRef:true,vdomRender:true,vdomStyle:true,vdomText:true,vdomXlink:true,watchCallback:true};var a=Object.defineProperty;var u=function(r,e){for(var n in e)a(r,n,{get:e[n],enumerable:true})};var f="http://www.w3.org/2000/svg";var o="http://www.w3.org/1999/xhtml";var l=function(r){if(r.__stencil__getHostRef){return r.__stencil__getHostRef()}return void 0};var s=r("r",(function(r,e){r.__stencil__getHostRef=function(){return e};e.t=r}));var v=function(r,e){var n={i:0,$hostElement$:r,u:e,o:new Map};{n.l=new Promise((function(r){return n.v=r}))}{n.h=new Promise((function(r){return n.p=r}));r["s-p"]=[];r["s-rc"]=[]}var t=n;r.__stencil__getHostRef=function(){return t};return t};var c=function(r,e){return e in r};var d=function(r,e){return(0,console.error)(r,e)};var h=new Map;var p=function(r,n,t){var i=r.m.replace(/-/g,"_");var a=r.S;if(!a){return void 0}var u=h.get(a);if(u){return u[i]}
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/return e.import("./".concat(a,".entry.js").concat("")).then((function(r){{h.set(a,r)}return r[i]}),(function(r){d(r,n.$hostElement$)}))};var m=new Map;var y="sty-id";var w="{visibility:hidden}.hydrated{visibility:inherit}";var b="slot-fb{display:contents}slot-fb[hidden]{display:none}";var g="http://www.w3.org/1999/xlink";var S=typeof window!=="undefined"?window:{};var _={i:0,_:"",jmp:function(r){return r()},raf:function(r){return requestAnimationFrame(r)},ael:function(r,e,n,t){return r.addEventListener(e,n,t)},rel:function(r,e,n,t){return r.removeEventListener(e,n,t)},ce:function(r,e){return new CustomEvent(r,e)}};var j=function(){var r;var e=false;try{(r=S.document)==null?void 0:r.addEventListener("e",null,Object.defineProperty({},"passive",{get:function(){e=true}}))}catch(r){}return e}();var $=r("p",(function(r){return Promise.resolve(r)}));var O=function(){try{new CSSStyleSheet;return typeof(new CSSStyleSheet).replaceSync==="function"}catch(r){}return false}();var k=false;var x=[];var A=[];var C=function(r,e){return function(n){r.push(n);if(!k){k=true;if(e&&_.i&4){D(T)}else{_.raf(T)}}}};var E=function(r){for(var e=0;e<r.length;e++){try{r[e](performance.now())}catch(r){d(r)}}r.length=0};var T=function(){E(x);{E(A);if(k=x.length>0){_.raf(T)}}};var D=function(r){return $().then(r)};var F=C(A,true);var L=r("a",(function(r){var e=new URL(r,_._);return e.origin!==S.location.origin?e.href:e.pathname}));var M=function(r){return r!=null&&r!==void 0};var P=function(r){r=typeof r;return r==="object"||r==="function"};function R(r){var e,n,t;return(t=(n=(e=r.head)==null?void 0:e.querySelector('meta[name="csp-nonce"]'))==null?void 0:n.getAttribute("content"))!=null?t:void 0}var N={};u(N,{err:function(){return W},map:function(){return z},ok:function(){return U},unwrap:function(){return H},unwrapErr:function(){return B}});var U=function(r){return{isOk:true,isErr:false,value:r}};var W=function(r){return{isOk:false,isErr:true,value:r}};function z(r,e){if(r.isOk){var n=e(r.value);if(n instanceof Promise){return n.then((function(r){return U(r)}))}else{return U(n)}}if(r.isErr){var t=r.value;return W(t)}throw"should never get here"}var H=function(r){if(r.isOk){return r.value}else{throw r.value}};var B=function(r){if(r.isErr){return r.value}else{throw r.value}};var G=function(r,e){if(e===void 0){e=""}{return function(){return}}};var I=function(r,e){{return function(){return}}};var Q=r("h",(function(r,e){var n=[];for(var t=2;t<arguments.length;t++){n[t-2]=arguments[t]}var i=null;var a=null;var u=false;var f=false;var o=[];var l=function(e){for(var n=0;n<e.length;n++){i=e[n];if(Array.isArray(i)){l(i)}else if(i!=null&&typeof i!=="boolean"){if(u=typeof r!=="function"&&!P(i)){i=String(i)}if(u&&f){o[o.length-1].j+=i}else{o.push(u?V(null,i):i)}f=u}}};l(n);if(e){if(e.key){a=e.key}{var s=e.className||e.class;if(s){e.class=typeof s!=="object"?s:Object.keys(s).filter((function(r){return s[r]})).join(" ")}}}if(typeof r==="function"){return r(e===null?{}:e,o,X)}var v=V(r,null);v.$=e;if(o.length>0){v.O=o}{v.k=a}return v}));var V=function(r,e){var n={i:0,A:r,j:e,C:null,O:null};{n.$=null}{n.k=null}return n};var q=r("H",{});var K=function(r){return r&&r.A===q};var X={forEach:function(r,e){return r.map(Y).forEach(e)},map:function(r,e){return r.map(Y).map(e).map(J)}};var Y=function(r){return{vattrs:r.$,vchildren:r.O,vkey:r.k,vname:r.T,vtag:r.A,vtext:r.j}};var J=function(r){if(typeof r.vtag==="function"){var e=__assign({},r.vattrs);if(r.vkey){e.key=r.vkey}if(r.vname){e.name=r.vname}return Q.apply(void 0,__spreadArray([r.vtag,e],r.vchildren||[],false))}var n=V(r.vtag,r.vtext);n.$=r.vattrs;n.O=r.vchildren;n.k=r.vkey;n.T=r.vname;return n};var Z=function(r,e){if(r!=null&&!P(r)){if(e&4){return r==="false"?false:r===""||!!r}if(e&2){return parseFloat(r)}if(e&1){return String(r)}return r}return r};var rr=r("d",(function(r){return l(r).$hostElement$}));var er=r("c",(function(r,e,n){var t=rr(r);return{emit:function(r){return nr(t,e,{bubbles:!!(n&4),composed:!!(n&2),cancelable:!!(n&1),detail:r})}}}));var nr=function(r,e,n){var t=_.ce(e,n);r.dispatchEvent(t);return t};var tr=new WeakMap;var ir=function(r,e,n){var t=m.get(r);if(O&&n){t=t||new CSSStyleSheet;if(typeof t==="string"){t=e}else{t.replaceSync(e)}}else{t=e}m.set(r,t)};var ar=function(r,e,n){var t;var i=fr(e);var a=m.get(i);if(!S.document){return i}r=r.nodeType===11?r:S.document;if(a){if(typeof a==="string"){r=r.head||r;var u=tr.get(r);var f=void 0;if(!u){tr.set(r,u=new Set)}if(!u.has(i)){{f=document.querySelector("[".concat(y,'="').concat(i,'"]'))||S.document.createElement("style");f.innerHTML=a;var o=(t=_.D)!=null?t:R(S.document);if(o!=null){f.setAttribute("nonce",o)}if(!(e.i&1)){if(r.nodeName==="HEAD"){var l=r.querySelectorAll("link[rel=preconnect]");var s=l.length>0?l[l.length-1].nextSibling:r.querySelector("style");r.insertBefore(f,(s==null?void 0:s.parentNode)===r?s:null)}else if("host"in r){if(O){var v=new CSSStyleSheet;v.replaceSync(a);r.adoptedStyleSheets=__spreadArray([v],r.adoptedStyleSheets,true)}else{var c=r.querySelector("style");if(c){c.innerHTML=a+c.innerHTML}else{r.prepend(f)}}}else{r.append(f)}}if(e.i&1){r.insertBefore(f,null)}}if(e.i&4){f.innerHTML+=b}if(u){u.add(i)}}}else if(!r.adoptedStyleSheets.includes(a)){r.adoptedStyleSheets=__spreadArray(__spreadArray([],r.adoptedStyleSheets,true),[a],false)}}return i};var ur=function(r){var e=r.u;var n=r.$hostElement$;var t=e.i;var i=G("attachStyles",e.m);var a=ar(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);if(t&10&&t&2||t&128){n["s-sc"]=a;n.classList.add(a+"-h")}i()};var fr=function(r,e){return"sc-"+r.m};var or=function(r,e,n,t,i,a,u){if(n===t){return}var f=c(r,e);var o=e.toLowerCase();if(e==="class"){var l=r.classList;var s=sr(n);var v=sr(t);{l.remove.apply(l,s.filter((function(r){return r&&!v.includes(r)})));l.add.apply(l,v.filter((function(r){return r&&!s.includes(r)})))}}else if(e==="style"){{for(var d in n){if(!t||t[d]==null){if(d.includes("-")){r.style.removeProperty(d)}else{r.style[d]=""}}}}for(var d in t){if(!n||t[d]!==n[d]){if(d.includes("-")){r.style.setProperty(d,t[d])}else{r.style[d]=t[d]}}}}else if(e==="key");else if(e==="ref"){if(t){t(r)}}else if(!f&&e[0]==="o"&&e[1]==="n"){if(e[2]==="-"){e=e.slice(3)}else if(c(S,o)){e=o.slice(2)}else{e=o[2]+e.slice(3)}if(n||t){var h=e.endsWith(vr);e=e.replace(cr,"");if(n){_.rel(r,e,n,h)}if(t){_.ael(r,e,t,h)}}}else{var p=P(t);if((f||p&&t!==null)&&!i){try{if(!r.tagName.includes("-")){var m=t==null?"":t;if(e==="list"){f=false}else if(n==null||r[e]!=m){if(typeof r.__lookupSetter__(e)==="function"){r[e]=m}else{r.setAttribute(e,m)}}}else if(r[e]!==t){r[e]=t}}catch(r){}}var y=false;{if(o!==(o=o.replace(/^xlink\:?/,""))){e=o;y=true}}if(t==null||t===false){if(t!==false||r.getAttribute(e)===""){if(y){r.removeAttributeNS(g,e)}else{r.removeAttribute(e)}}}else if((!f||a&4||i)&&!p&&r.nodeType===1){t=t===true?"":t;if(y){r.setAttributeNS(g,e,t)}else{r.setAttribute(e,t)}}}};var lr=/\s/;var sr=function(r){if(typeof r==="object"&&r&&"baseVal"in r){r=r.baseVal}if(!r||typeof r!=="string"){return[]}return r.split(lr)};var vr="Capture";var cr=new RegExp(vr+"$");var dr=function(r,e,n,t){var i=e.C.nodeType===11&&e.C.host?e.C.host:e.C;var a=r&&r.$||{};var u=e.$||{};{for(var f=0,o=hr(Object.keys(a));f<o.length;f++){var l=o[f];if(!(l in u)){or(i,l,a[l],void 0,n,e.i)}}}for(var s=0,v=hr(Object.keys(u));s<v.length;s++){var l=v[s];or(i,l,a[l],u[l],n,e.i)}};function hr(r){return r.includes("ref")?__spreadArray(__spreadArray([],r.filter((function(r){return r!=="ref"})),true),["ref"],false):r}var pr;var mr;var yr=false;var wr=false;var br=function(r,e,n){var t=e.O[n];var a=0;var u;var l;if(t.j!==null){u=t.C=S.document.createTextNode(t.j)}else{if(!wr){wr=t.A==="svg"}if(!S.document){throw new Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.")}u=t.C=S.document.createElementNS(wr?f:o,!yr&&i.slotRelocation&&t.i&2?"slot-fb":t.A);if(wr&&t.A==="foreignObject"){wr=false}{dr(null,t,wr)}if(M(pr)&&u["s-si"]!==pr){u.classList.add(u["s-si"]=pr)}if(t.O){for(a=0;a<t.O.length;++a){l=br(r,t,a);if(l){u.appendChild(l)}}}{if(t.A==="svg"){wr=false}else if(u.tagName==="foreignObject"){wr=true}}}u["s-hn"]=mr;return u};var gr=function(r,e,n,t,i,a){var u=r;var f;if(u.shadowRoot&&u.tagName===mr){u=u.shadowRoot}for(;i<=a;++i){if(t[i]){f=br(null,n,i);if(f){t[i].C=f;kr(u,f,e)}}}};var Sr=function(r,e,n){for(var t=e;t<=n;++t){var i=r[t];if(i){var a=i.C;Or(i);if(a){a.remove()}}}};var _r=function(r,e,n,t,i){if(i===void 0){i=false}var a=0;var u=0;var f=0;var o=0;var l=e.length-1;var s=e[0];var v=e[l];var c=t.length-1;var d=t[0];var h=t[c];var p;var m;while(a<=l&&u<=c){if(s==null){s=e[++a]}else if(v==null){v=e[--l]}else if(d==null){d=t[++u]}else if(h==null){h=t[--c]}else if(jr(s,d,i)){$r(s,d,i);s=e[++a];d=t[++u]}else if(jr(v,h,i)){$r(v,h,i);v=e[--l];h=t[--c]}else if(jr(s,h,i)){$r(s,h,i);kr(r,s.C,v.C.nextSibling);s=e[++a];h=t[--c]}else if(jr(v,d,i)){$r(v,d,i);kr(r,v.C,s.C);v=e[--l];d=t[++u]}else{f=-1;{for(o=a;o<=l;++o){if(e[o]&&e[o].k!==null&&e[o].k===d.k){f=o;break}}}if(f>=0){m=e[f];if(m.A!==d.A){p=br(e&&e[u],n,f)}else{$r(m,d,i);e[f]=void 0;p=m.C}d=t[++u]}else{p=br(e&&e[u],n,u);d=t[++u]}if(p){{kr(s.C.parentNode,p,s.C)}}}}if(a>l){gr(r,t[c+1]==null?null:t[c+1].C,n,t,u,c)}else if(u>c){Sr(e,a,l)}};var jr=function(r,e,n){if(n===void 0){n=false}if(r.A===e.A){if(!n){return r.k===e.k}if(n&&!r.k&&e.k){r.k=e.k}return true}return false};var $r=function(r,e,n){if(n===void 0){n=false}var t=e.C=r.C;var a=r.O;var u=e.O;var f=e.A;var o=e.j;if(o===null){{wr=f==="svg"?true:f==="foreignObject"?false:wr}{dr(r,e,wr)}if(a!==null&&u!==null){_r(t,a,e,u,n)}else if(u!==null){if(r.j!==null){t.textContent=""}gr(t,null,e,u,0,u.length-1)}else if(!n&&i.updatable&&a!==null){Sr(a,0,a.length-1)}if(wr&&f==="svg"){wr=false}}else if(r.j!==o){t.data=o}};var Or=function(r){{r.$&&r.$.ref&&r.$.ref(null);r.O&&r.O.map(Or)}};var kr=function(r,e,n){if(typeof e["s-sn"]==="string"&&!!e["s-sr"]&&!!e["s-cr"]){xr(e["s-cr"],e,r,e.parentElement)}{return r==null?void 0:r.insertBefore(e,n)}};function xr(r,e,n,t){var i,a;var u;if(r&&typeof e["s-sn"]==="string"&&!!e["s-sr"]&&r.parentNode&&r.parentNode["s-sc"]&&(u=e["s-si"]||r.parentNode["s-sc"])){var f=e["s-sn"];var o=e["s-hn"];(i=n.classList)==null?void 0:i.add(u+"-s");if(t&&((a=t.classList)==null?void 0:a.contains(u+"-s"))){var l=(t.__childNodes||t.childNodes)[0];var s=false;while(l){if(l["s-sn"]!==f&&l["s-hn"]===o&&!!l["s-sr"]){s=true;break}l=l.nextSibling}if(!s)t.classList.remove(u+"-s")}}}var Ar=function(r,e,n){if(n===void 0){n=false}var t=r.$hostElement$;var i=r.u;var a=r.F||V(null,null);var u=K(e)?e:Q(null,null,e);mr=t.tagName;if(n&&u.$){for(var f=0,o=Object.keys(u.$);f<o.length;f++){var l=o[f];if(t.hasAttribute(l)&&!["key","ref","style","class"].includes(l)){u.$[l]=t[l]}}}u.A=null;u.i|=4;r.F=u;u.C=a.C=t.shadowRoot||t;{pr=t["s-sc"]}yr=!!(i.i&1)&&!(i.i&128);$r(a,u,n)};var Cr=function(r,e){if(e&&!r.L&&e["s-p"]){var n=e["s-p"].push(new Promise((function(t){return r.L=function(){e["s-p"].splice(n-1,1);t()}})))}};var Er=function(r,e){{r.i|=16}if(r.i&4){r.i|=512;return}Cr(r,r.M);var n=function(){return Tr(r,e)};return F(n)};var Tr=function(r,e){var n=r.$hostElement$;var t=G("scheduleUpdate",r.u.m);var i=r.t;if(!i){throw new Error("Can't render component <".concat(n.tagName.toLowerCase()," /> with invalid Stencil runtime! Make sure this imported component is compiled with a `externalRuntime: true` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime"))}var a;if(e){{r.i|=256;if(r.P){r.P.map((function(r){var e=r[0],t=r[1];return zr(i,e,t,n)}));r.P=void 0}}a=zr(i,"componentWillLoad",void 0,n)}else{a=zr(i,"componentWillUpdate",void 0,n)}a=Dr(a,(function(){return zr(i,"componentWillRender",void 0,n)}));t();return Dr(a,(function(){return Lr(r,i,e)}))};var Dr=function(r,e){return Fr(r)?r.then(e).catch((function(r){console.error(r);e()})):e()};var Fr=function(r){return r instanceof Promise||r&&r.then&&typeof r.then==="function"};var Lr=function(r,e,t){return __awaiter(n,void 0,void 0,(function(){var n,i,a,u,f,o,l;return __generator(this,(function(s){i=r.$hostElement$;a=G("update",r.u.m);u=i["s-rc"];if(t){ur(r)}f=G("render",r.u.m);{Pr(r,e,i,t)}if(u){u.map((function(r){return r()}));i["s-rc"]=void 0}f();a();{o=(n=i["s-p"])!=null?n:[];l=function(){return Nr(r)};if(o.length===0){l()}else{Promise.all(o).then(l);r.i|=4;o.length=0}}return[2]}))}))};var Mr=null;var Pr=function(r,e,n,t){try{Mr=e;e=e.render();{r.i&=~16}{r.i|=2}{{{Ar(r,e,t)}}}}catch(e){d(e,r.$hostElement$)}Mr=null;return null};var Rr=r("g",(function(){return Mr}));var Nr=function(r){var e=r.u.m;var n=r.$hostElement$;var t=G("postUpdate",e);var i=r.t;var a=r.M;zr(i,"componentDidRender",void 0,n);if(!(r.i&64)){r.i|=64;{Hr(n)}zr(i,"componentDidLoad",void 0,n);t();{r.p(n);if(!a){Wr()}}}else{zr(i,"componentDidUpdate",void 0,n);t()}{r.v(n)}{if(r.L){r.L();r.L=void 0}if(r.i&512){D((function(){return Er(r,false)}))}r.i&=~(4|512)}};var Ur=r("f",(function(r){{var e=l(r);var n=e.$hostElement$.isConnected;if(n&&(e.i&(2|16))===2){Er(e,false)}return n}}));var Wr=function(r){D((function(){return nr(S,"appload",{detail:{namespace:t}})}))};var zr=function(r,e,n,t){if(r&&r[e]){try{return r[e](n)}catch(r){d(r,t)}}return void 0};var Hr=function(r){var e;return r.classList.add((e=i.hydratedSelectorName)!=null?e:"hydrated")};var Br=function(r,e){return l(r).o.get(e)};var Gr=function(r,e,n,t){var i=l(r);if(!i){throw new Error("Couldn't find host element for \"".concat(t.m,'" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).'))}var a=i.$hostElement$;var u=i.o.get(e);var f=i.i;var o=i.t;n=Z(n,t.R[e][0]);var s=Number.isNaN(u)&&Number.isNaN(n);var v=n!==u&&!s;if((!(f&8)||u===void 0)&&v){i.o.set(e,n);if(o){if(t.N&&f&128){var c=t.N[e];if(c){c.map((function(r){try{o[r](n,u,e)}catch(r){d(r,a)}}))}}if((f&(2|16))===2){if(o.componentShouldUpdate){if(o.componentShouldUpdate(n,u,e)===false){return}}Er(i,false)}}}};var Ir=function(r,e,n){var t,a;var u=r.prototype;if(e.R||(e.N||r.watchers)){if(r.watchers&&!e.N){e.N=r.watchers}var f=Object.entries((t=e.R)!=null?t:{});f.map((function(r){var t=r[0],i=r[1][0];if(i&31||n&2&&i&32){var a=Object.getOwnPropertyDescriptor(u,t)||{},f=a.get,o=a.set;if(f)e.R[t][0]|=2048;if(o)e.R[t][0]|=4096;if(n&1||!f){Object.defineProperty(u,t,{get:function(){{if((e.R[t][0]&2048)===0){return Br(this,t)}var r=l(this);var n=r?r.t:u;if(!n)return;return n[t]}},configurable:true,enumerable:true})}Object.defineProperty(u,t,{set:function(r){var a=this;var u=l(this);if(o){var f=i&32?this[t]:u.$hostElement$[t];if(typeof f==="undefined"&&u.o.get(t)){r=u.o.get(t)}else if(!u.o.get(t)&&f){u.o.set(t,f)}o.apply(this,[Z(r,i)]);r=i&32?this[t]:u.$hostElement$[t];Gr(this,t,r,e);return}{if((n&1)===0||(e.R[t][0]&4096)===0){Gr(this,t,r,e);if(n&1&&!u.t){u.h.then((function(){if(e.R[t][0]&4096&&u.t[t]!==u.o.get(t)){u.t[t]=r}}))}return}var s=function(){var n=u.t[t];if(!u.o.get(t)&&n){u.o.set(t,n)}u.t[t]=Z(r,i);Gr(a,t,u.t[t],e)};if(u.t){s()}else{u.h.then((function(){return s()}))}}}})}else if(n&1&&i&64){Object.defineProperty(u,t,{value:function(){var r=[];for(var e=0;e<arguments.length;e++){r[e]=arguments[e]}var n;var i=l(this);return(n=i==null?void 0:i.l)==null?void 0:n.then((function(){var e;return(e=i.t)==null?void 0:e[t].apply(e,r)}))}})}}));if(n&1){var o=new Map;u.attributeChangedCallback=function(r,n,t){var a=this;_.jmp((function(){var f;var s=o.get(r);if(a.hasOwnProperty(s)&&i.lazyLoad){t=a[s];delete a[s]}else if(u.hasOwnProperty(s)&&typeof a[s]==="number"&&a[s]==t){return}else if(s==null){var v=l(a);var c=v==null?void 0:v.i;if(c&&!(c&8)&&c&128&&t!==n){var d=v.t;var h=(f=e.N)==null?void 0:f[r];h==null?void 0:h.forEach((function(e){if(d[e]!=null){d[e].call(d,t,n,r)}}))}return}var p=Object.getOwnPropertyDescriptor(u,s);t=t===null&&typeof a[s]==="boolean"?false:t;if(t!==a[s]&&(!p.get||!!p.set)){a[s]=t}}))};r.observedAttributes=Array.from(new Set(__spreadArray(__spreadArray([],Object.keys((a=e.N)!=null?a:{}),true),f.filter((function(r){var e=r[0],n=r[1];return n[0]&15})).map((function(r){var e=r[0],n=r[1];var t=n[1]||e;o.set(t,e);return t})),true)))}}return r};var Qr=function(r,e,t,i){return __awaiter(n,void 0,void 0,(function(){var n,i,a,u,f,o,l,s,v,c,h;return __generator(this,(function(y){switch(y.label){case 0:if(!((e.i&32)===0))return[3,6];e.i|=32;i=t.S;if(!i)return[3,4];a=p(t,e);if(!(a&&"then"in a))return[3,2];u=I();return[4,a];case 1:n=y.sent();u();return[3,3];case 2:n=a;y.label=3;case 3:if(!n){throw new Error('Constructor for "'.concat(t.m,"#").concat(e.U,'" was not found'))}if(!n.isProxied){{t.N=n.watchers}Ir(n,t,2);n.isProxied=true}f=G("createInstance",t.m);{e.i|=8}try{new n(e)}catch(e){d(e,r)}{e.i&=~8}{e.i|=128}f();Vr(e.t,r);return[3,5];case 4:n=r.constructor;o=r.localName;customElements.whenDefined(o).then((function(){return e.i|=128}));y.label=5;case 5:if(n&&n.style){l=void 0;if(typeof n.style==="string"){l=n.style}s=fr(t);if(!m.has(s)){v=G("registerStyles",t.m);ir(s,l,!!(t.i&1));v()}}y.label=6;case 6:c=e.M;h=function(){return Er(e,true)};if(c&&c["s-rc"]){c["s-rc"].push(h)}else{h()}return[2]}}))}))};var Vr=function(r,e){{zr(r,"connectedCallback",void 0,e)}};var qr=function(r){if((_.i&1)===0){var e=l(r);var n=e.u;var t=G("connectedCallback",n.m);if(!(e.i&1)){e.i|=1;{var i=r;while(i=i.parentNode||i.host){if(i["s-p"]){Cr(e,e.M=i);break}}}if(n.R){Object.entries(n.R).map((function(e){var n=e[0],t=e[1][0];if(t&31&&r.hasOwnProperty(n)){var i=r[n];delete r[n];r[n]=i}}))}{Qr(r,e,n)}}else{Zr(r,e,n.W);if(e==null?void 0:e.t){Vr(e.t,r)}else if(e==null?void 0:e.h){e.h.then((function(){return Vr(e.t,r)}))}}t()}};var Kr=function(r,e){{zr(r,"disconnectedCallback",void 0,e||r)}};var Xr=function(r){return __awaiter(n,void 0,void 0,(function(){var e;return __generator(this,(function(n){if((_.i&1)===0){e=l(r);{if(e.H){e.H.map((function(r){return r()}));e.H=void 0}}if(e==null?void 0:e.t){Kr(e.t,r)}else if(e==null?void 0:e.h){e.h.then((function(){return Kr(e.t,r)}))}}if(tr.has(r)){tr.delete(r)}if(r.shadowRoot&&tr.has(r.shadowRoot)){tr.delete(r.shadowRoot)}return[2]}))}))};var Yr=r("b",(function(r,e){if(e===void 0){e={}}var n;if(!S.document){console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");return}var t=G();var i=[];var a=e.exclude||[];var u=S.customElements;var f=S.document.head;var o=f.querySelector("meta[charset]");var s=S.document.createElement("style");var c=[];var d;var h=true;Object.assign(_,e);_._=new URL(e.resourcesUrl||"./",S.document.baseURI).href;var p=false;r.map((function(r){r[1].map((function(e){var n;var t={i:e[0],m:e[1],R:e[2],W:e[3]};if(t.i&4){p=true}{t.R=e[2]}{t.W=e[3]}{t.N=(n=e[4])!=null?n:{}}var f=t.m;var o=function(r){__extends(e,r);function e(e){var n=r.call(this,e)||this;n.hasRegisteredEventListeners=false;e=n;v(e,t);if(t.i&1){{if(!e.shadowRoot){{e.attachShadow({mode:"open",delegatesFocus:!!(t.i&16)})}}else{if(e.shadowRoot.mode!=="open"){throw new Error("Unable to re-use existing shadow root for ".concat(t.m,"! Mode is set to ").concat(e.shadowRoot.mode," but Stencil only supports open shadow roots."))}}}}return n}e.prototype.connectedCallback=function(){var r=this;var e=l(this);if(!this.hasRegisteredEventListeners){this.hasRegisteredEventListeners=true;Zr(this,e,t.W)}if(d){clearTimeout(d);d=null}if(h){c.push(this)}else{_.jmp((function(){return qr(r)}))}};e.prototype.disconnectedCallback=function(){var r=this;_.jmp((function(){return Xr(r)}));_.raf((function(){var e;var n=l(r);var t=c.findIndex((function(e){return e===r}));if(t>-1){c.splice(t,1)}if(((e=n==null?void 0:n.F)==null?void 0:e.C)instanceof Node&&!n.F.C.isConnected){delete n.F.C}}))};e.prototype.componentOnReady=function(){return l(this).h};return e}(HTMLElement);t.S=r[0];if(!a.includes(f)&&!u.get(f)){i.push(f);u.define(f,Ir(o,t,1))}}))}));if(i.length>0){if(p){s.textContent+=b}{s.textContent+=i.sort()+w}if(s.innerHTML.length){s.setAttribute("data-styles","");var m=(n=_.D)!=null?n:R(S.document);if(m!=null){s.setAttribute("nonce",m)}f.insertBefore(s,o?o.nextSibling:f.firstChild)}}h=false;if(c.length){c.map((function(r){return r.connectedCallback()}))}else{{_.jmp((function(){return d=setTimeout(Wr,30)}))}}t()}));var Jr=r("F",(function(r,e){return e}));var Zr=function(r,e,n,t){if(n&&S.document){n.map((function(n){var t=n[0],i=n[1],a=n[2];var u=ee(S.document,r,t);var f=re(e,a);var o=ne(t);_.ael(u,i,f,o);(e.H=e.H||[]).push((function(){return _.rel(u,i,f,o)}))}))}};var re=function(r,e){return function(n){var t;try{{if(r.i&256){(t=r.t)==null?void 0:t[e](n)}else{(r.P=r.P||[]).push([e,n])}}}catch(e){d(e,r.$hostElement$)}}};var ee=function(r,e,n){if(n&4){return r}if(n&8){return S}if(n&16){return r.body}return e};var ne=function(r){return j?{passive:(r&1)!==0,capture:(r&2)!==0}:(r&2)!==0};var te=r("s",(function(r){return _.D=r}))}}}));
@@ -0,0 +1 @@
1
+ import{r as o,h as e,H as t}from"./p-1640d77f.js";import{d as s}from"./p-16678764.js";import{l as i,i as n,t as l,g as r,h,j as a,k as d,m as c,d as m}from"./p-edcfb3a3.js";import{z as g,g as p,m as w}from"./p-9fa17353.js";import{c as f}from"./p-b4b7f705.js";import{h as z,b as u,l as b}from"./p-0fc02cde.js";import{g as v}from"./p-5883217a.js";import"./p-04a01cb1.js";const x=o=>{const e=null==o?void 0:o.replace("www.","").replace("https://","");return e&&new RegExp(e).test(window.location.href)},y=()=>{var o,e;const{productAddToCartElementSelector:t,productDescriptionElementSelector:s,productTitleElementSelector:i,restrictionBehavior:l}=g.helloSettings;i&&s||b("Hello could not check item restrictions - must provide title and description selectors.");const r=i&&n(i)&&document.querySelectorAll(i)||[],h=s&&n(s)&&document.querySelectorAll(s)||[];if(r.length!==h.length)return b("Hello could not check item restrictions - Title and description selectors do not match"),[];const a="RESTRICT_AND_BLOCK"===l,d=a&&t&&n(t)&&document.querySelectorAll(t)||[];a&&d.length!==h.length&&b('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=h[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},k=class{constructor(e){o(this,e),this.showPeekMessage=!1,this.zonosStoreHelloSettings=g.helloSettings,this.showDialog=!1,this.peekMessage="",this.initialUrl="",this.allRestrictedItems=[],this.allFoundProducts=[],this.productsOnPage=[],this.isHelloWidgetRendered=!1,this.isMobile=!1,this.getHelloPeekMessage=o=>{if(("productDetail"===g.currentHelloPage||"productList"===g.currentHelloPage)&&this.allRestrictedItems.length){const o=l("click to learn more");return`${l("productDetail"===g.currentHelloPage?"Restricted item":"Restricted items found")} - ${o}`}switch(g.currentHelloPage){case"cart":return l("Prepay duties and taxes at checkout");case"productList":case"productDetail":return l("See duty and tax thresholds");default:return l("Welcome to [storeName]",{storeName:o})}},this.enableShowPeekMessage=()=>{this.peekMessage&&(this.showPeekMessage=!0)},this.getNewItemRestrictions=async o=>"productDetail"!==g.currentHelloPage&&"productList"!==g.currentHelloPage||"DISABLED"===g.helloSettings.restrictionBehavior?[]:await(async o=>{if(!o.length)return[];const{selectedCountryCode:e}=i;if(!e)return u("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:l}=await z("/api/zonos-elements/check-item-restrictions",{body:i,method:"POST"});return n.length||!l?(u(`Error fetching item restrictions: ${null===(s=n.find(Boolean))||void 0===s?void 0:s.message}`),[]):l.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(g.organizationName);const{peekMessageBehavior:o,peekMessageDelay:e}=g.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=y();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=s((()=>{const{productTitleElementSelector:o}=g.helloSettings;if(o){const o=y();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&&r(o.searchParams))!==i.selectedCountryCode&&(this.allFoundProducts=[],this.allRestrictedItems=[],this.productsOnPage=[]),this.initialUrl=window.location.href,g.currentHelloPage=(()=>{const{cartUrlPattern:o,homepageUrlPattern:e,productDetailUrlPattern:t,productListUrlPattern:s}=g.helloSettings;return x(o)?"cart":x(t)?"productDetail":x(s)?"productList":x(e)?"home":""})();const e=new URL(window.location.href);if(!r(e.searchParams))return void h(i.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 v(this.helloRef)},this.shouldRenderHello=(o=!0)=>{if(!i.localizationLoaded)return!1;const{showForCountries:e}=g.helloSettings;return o&&(i.isShippableCountry||b(`Hello: not shippable country - Show for countries: ${e}`)),"ONLY_SHIPPABLE"===e?i.isShippableCountry:"ALL"===e||(null==e?void 0:e.includes(i.selectedCountryCode||""))}}async getCountryList(){return i.helloCountryList}componentWillLoad(){const o=setInterval((async()=>{this.helloRef&&g.loadedConfig&&(this.helloRef.setAttribute("data-zonos-hello-loaded",""),this.updateHelloOnPageChange(),this.watchPriceChange(),this.handleAppearanceSettingsOverrideChange(),clearInterval(o))}),100)}async displayCurrency(){"DISABLED"!==g.helloSettings.currencyBehavior&&(i.exchangeRate?a():b("Could not display currency. Exchange rate and format data is not available.","warn"))}async convertAndFormat(o){return d(o)}async convert(o){return c(o)}async format(o){return m({amount:o})}async openHelloDialog(o){this.changeShowDialog(o)}handleResize(){this.isMobile=window.innerWidth<=768}handleHelloWidgetInitializedState({countryCode:o,currencyCode:e}){var t,s;this.isHelloWidgetRendered||i.selectedCountryCode&&"function"==typeof g.helloSettings.onInitSuccess&&(this.isHelloWidgetRendered=!0,null===(s=(t=g.helloSettings).onInitSuccess)||void 0===s||s.call(t,{countryCode:o,currencyCode:e}))}getHelloLocation(){const o=this.mobileLocationOverride||g.helloSettings.mobileLocation,e=g.helloSettings.desktopLocation,t=this.isMobile;if(!0===t)return{isMobileWindow:t,isOnLeft:this.animateFromLeftOverride||(null==o?void 0:o.includes("LEFT")),isOnTop:null==o?void 0:o.includes("TOP"),shouldFloat:!!o};{const o=!g.helloSettings.anchorElementSelector&&!!e;return{isMobileWindow:t,isOnLeft:this.animateFromLeftOverride||(null==e?void 0:e.includes("LEFT"))||this.shouldAnimateLeftDesktop(),isOnTop:null==e?void 0:e.includes("TOP"),shouldFloat:o}}}handleAppearanceSettingsOverrideChange(){var o;(null===(o=this.appearanceSettingsOverride)||void 0===o?void 0:o.theme)&&(this.appearanceSettingsOverride.theme=p(this.appearanceSettingsOverride.theme))}componentDidLoad(){this.isMobile=window.innerWidth<=768}render(){var o,s;if(null===(o=g.helloSettings.excludedUrlPatterns)||void 0===o?void 0:o.some((o=>o&&new RegExp(o).test(window.location.href))))return b("Hello is excluded on this url","warn"),null;const{selectedCountryCode:n,targetCurrency:l}=i,{isOnLeft:r,isOnTop:h,shouldFloat:a}=this.getHelloLocation(),d=w(g.appearance,this.appearanceSettingsOverride||null),{theme:c}=d,m=null===(s=this.allRestrictedItems)||void 0===s?void 0:s.filter((o=>this.productsOnPage.some((e=>e.description===o.itemDescription))));this.peekMessage=this.getHelloPeekMessage(g.organizationName);const p=this.shouldRenderHello()&&!!n;return p&&!this.isHelloWidgetRendered&&this.handleHelloWidgetInitializedState({countryCode:n,currencyCode:l}),e(t,{class:"zonos--hello zonos--elements","data-theme":c},p&&e("div",{class:f(["zonos--hello-wrapper",a&&"zonos--hello-widget-float"])},e("button",{class:f(["zonos--hello-widget",this.showPeekMessage&&"zonos--hello-show-peek-message",this.mobileLocationOverride&&"zonos--hello-mobile-override",r&&"zonos--hello-widget-left zonos--hello-widget-animate-from-left",h&&"zonos--hello-widget-top",!!this.allRestrictedItems.length&&"zonos--hello-has-restrictions",a&&"zonos--hello-widget-float"]),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),n&&e("div",{class:"zonos--hello-country-flag-wrapper"},e("zonos-country-flag",{class:"zonos--hello-country-flag",countryCode:n}))),e("div",{class:f(["zonos--hello-dialog-wrapper",this.mobileLocationOverride&&"zonos--hello-dialog-wrapper-mobile-override",a&&"zonos--hello-widget-float"]),style:{height:this.showDialog?"fit-content":"0px"}},e("zonos-hello-dialog",{animateFromLeftOverride:this.animateFromLeftOverride,appearanceSettings:d,isOpen:this.showDialog,mobileLocationOverride:this.mobileLocationOverride,restrictedItems:m,setIsOpen:this.changeShowDialog}))))}static get watchers(){return{appearanceSettingsOverride:["handleAppearanceSettingsOverrideChange"]}}};k.style=":host{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:inline-block}: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 .zonos--hello-dialog-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)>.zonos--hello-message{border-right:none}: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-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}:host .zonos--hello-widget.zonos--hello-widget-float{position:fixed;bottom:72px;right:32px}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-widget.zonos--hello-widget-float>.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-float.zonos--hello-widget-animate-from-left>.zonos--hello-message{-webkit-transform:translateX(0);transform:translateX(0)}:host .zonos--hello-widget.zonos--hello-widget-float.zonos--hello-show-peek-message{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}:host .zonos--hello-widget.zonos--hello-widget-float.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-widget-float.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-widget-float{position:fixed;bottom:72px;right:32px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-left{left:32px;right:auto}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-widget-top{bottom:auto;top:32px}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float.zonos--hello-has-restrictions.zonos--hello-show-peek-message>.zonos--hello-message{border:none}:host .zonos--hello-mobile-override.zonos--hello-widget.zonos--hello-widget-float>.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-float.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-widget-float.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-widget-float.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-widget-float.zonos--hello-show-peek-message>.zonos--hello-message{padding:0 var(--zonos-elements-radius-4);padding-right:6px;border:none}";export{k as zonos_hello}
@@ -0,0 +1 @@
1
+ import{r as o,c as s,h as i,H as e}from"./p-1640d77f.js";import{d as t,z as r}from"./p-9fa17353.js";import{c as n}from"./p-b4b7f705.js";import{g as a}from"./p-e337fa88.js";import{i as l}from"./p-ae393255.js";import"./p-04a01cb1.js";const d=class{constructor(i){o(this,i),this.radioSelected=s(this,"radioSelected",7),this.selectedItem=null,this.handleRichRadioSelect=o=>{var s;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{"--zonos--border-radius":a({overrideBorderStyle:this.borderStyle}),"--zonos--selected-border-color":s||"unset"}}}render(){var o;return i(e,{key:"34abb7026ed7d382870f912b5e5c5631e4f06f76",class:"zonos--shipping-rich-radio zonos--elements","data-theme":this.theme,style:Object.assign(Object.assign({},this.getRadioItemStyleVariables()),{"--zonos--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:n(["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(--zonos--font-family, Inter), Inter;display:block;white-space:normal}:host *{font-family:var(--zonos--font-family, Inter), Inter}:host img{max-width:100%}:host dl,:host dd,:host h1,:host h2,:host h3,:host h4,:host h5,:host h6,:host hr,:host figure,:host p,:host pre{margin:0}:host{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}:host input{margin:0;accent-color:var(--zonos--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(--zonos--border-radius, var(--zonos-elements-radius-10));border-top-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10))}:host .zonos--shipping-rich-radio-item:last-child{border-bottom-right-radius:var(--zonos--border-radius, var(--zonos-elements-radius-10));border-bottom-left-radius:var(--zonos--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(--zonos--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}
@@ -0,0 +1 @@
1
+ import{r as o,c as s,h as t,H as n,d as i}from"./p-1640d77f.js";import{d as e,z as p}from"./p-9fa17353.js";import{i as r,a}from"./p-eef5b0cc.js";import{c as l}from"./p-b4b7f705.js";import{g as c}from"./p-e337fa88.js";import{i as z}from"./p-ed20f2f7.js";import"./p-04a01cb1.js";let u=0;const d=class{constructor(t){o(this,t),this.inputChange=s(this,"inputChange",7),this.inheritedAttributes={},this.inputId="zonos--input-"+ ++u,this.inputValue="",this.isDisabled=!1,this.isError=!1,this.error="",this.inputPlaceholder="",this.value="",this.required=!1,this.internalValue=this.inputValue}onInputValueChange(o){this.internalValue=o,this.inputChange.emit(o),this.value=o}onValueChange(o){this.internalValue=o}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},r(this.el)),a(this.el,["tabindex","title","data-form-type","dir"]))}render(){const o=this.overridePrimaryColor||p.appearance.colorPrimary,s=this.overrideSecondaryColor||p.appearance.colorSecondary,i=o&&z(o),r=p.appearance.fontSizeInputValue||16;return t(n,{key:"ce50e8c3f41abc7f7605a4423dc21c5fce755c9a",class:l(["zonos--input zonos--elements",i&&"dark",(this.isError||!!this.error)&&"has-error"]),"data-theme":i?"DARK":"LIGHT",style:{"--zonos--border-radius":c(),"--zonos--font-family":e(),"--zonos--font-size":`${r}px`,"--zonos--primary-color":s}},t("div",{key:"8953c4cf31d9de771ef8f6351476d5db9de5655a",class:l(["zonos--label-wrapper",this.isDisabled&&"disabled"])},t("input",Object.assign({key:"c66c0e5787191ab6bb804755da7477e222b3ff40"},this.inheritedAttributes,{autoComplete:this.autoComplete,class:l(["zonos--floated-input",!!this.inputLabel&&"has-label",this.internalValue&&"has-content",(this.isError||!!this.error)&&"has-error"]),disabled:this.isDisabled,id:this.inputId,name:this.name,onInput:o=>{const s=o.target;this.inputChange.emit(s.value),this.el.inputValue=s.value,this.el.dispatchEvent(new Event("change"))},placeholder:this.inputPlaceholder||"",required:this.required,type:"text",value:this.internalValue})),t("div",{key:"17c7fa7ef87bf765203cadb3ff24ead25ac45332",class:"zonos--floated-label"},t("label",{key:"4d7c8e503bd0dc0081b13a36c2a1c5f976ee93e3",htmlFor:this.inputId},this.inputLabel))),this.error&&t("zonos-text",{key:"1352d1d09b05a25ced56d31b16cf1f203b0eaaec",textColor:"red-600",type:"caption"},this.error))}get el(){return i(this)}static get watchers(){return{inputValue:["onInputValueChange"],value:["onValueChange"]}}};d.style='.sc-zonos-stripe-input-h{font-family:var(--zonos--font-family, Inter), Inter;display:block;white-space:normal}.sc-zonos-stripe-input-h *.sc-zonos-stripe-input{font-family:var(--zonos--font-family, Inter), Inter}.sc-zonos-stripe-input-h img.sc-zonos-stripe-input{max-width:100%}.sc-zonos-stripe-input-h dl.sc-zonos-stripe-input,.sc-zonos-stripe-input-h dd.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h1.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h2.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h3.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h4.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h5.sc-zonos-stripe-input,.sc-zonos-stripe-input-h h6.sc-zonos-stripe-input,.sc-zonos-stripe-input-h hr.sc-zonos-stripe-input,.sc-zonos-stripe-input-h figure.sc-zonos-stripe-input,.sc-zonos-stripe-input-h p.sc-zonos-stripe-input,.sc-zonos-stripe-input-h pre.sc-zonos-stripe-input{margin:0}.sc-zonos-stripe-input-h{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased}.sc-zonos-stripe-input-h{--zonos--background-color:#f1f1f1;--zonos--local-glowing-color:0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 0 0 1px var(--zonos--primary-color);--zonos--border:1px solid #e8e8e8}.dark.sc-zonos-stripe-input-h{color-scheme:dark;--zonos--background-color:#30313d;--zonos--local-glowing-color:0px 2px 4px rgba(0, 0, 0, 0.5),\n 0px 1px 6px rgba(0, 0, 0, 0.25), 0 0 0 3px hsla(0, 0%, 100%, 25%),\n 0 1px 1px 0 rgba(255, 255, 255, 0.12);--zonos--border:1px solid var(--zonos--primary-color)}.sc-zonos-stripe-input-h{margin:1px}.sc-zonos-stripe-input-h .zonos--label-wrapper.sc-zonos-stripe-input{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;width:100%;background:var(--zonos--background-color);border-radius:var(--zonos--border-radius);border:var(--zonos--border);outline-offset:0;outline-width:2px;height:calc(var(--zonos-elements-size-xl) - 2px)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input{-webkit-box-sizing:border-box;box-sizing:border-box;position:relative;padding:0 16px;outline:none;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);width:100%;border-radius:var(--zonos--border-radius);background:var(--zonos--background-color);border:var(--zonos--border);-ms-flex-order:2;order:2;font-weight:400;font-size:var(--zonos--font-size);color:var(--zonos-elements-text-color)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input .sc-zonos-stripe-input:-internal-autofill-selected{border-radius:var(--zonos-elements-radius-6) 0 0 var(--zonos-elements-radius-6)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input .sc-zonos-stripe-input:-internal-autofill-selected+label.sc-zonos-stripe-input+div.sc-zonos-stripe-input{background-color:#e8f0fe}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.sc-zonos-stripe-input{padding:24px 4px 2px 16px}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.has-input-prefix.sc-zonos-stripe-input{padding-left:0}.sc-zonos-stripe-input-h .zonos--floated-input.has-label.has-input-prefix.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{margin-left:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label):-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:not(.has-label)::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-webkit-input-placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-moz-placeholder{-moz-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::-ms-input-placeholder{-ms-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input::placeholder{-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);opacity:0}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus{outline:none;border:var(--zonos--border)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus~.zonos--floated-label.sc-zonos-stripe-input::after{-webkit-box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color));box-shadow:var(--zonos--glowing-color, var(--zonos--local-glowing-color))}.sc-zonos-stripe-input-h .zonos--floated-input.has-error.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input::after{-webkit-box-shadow:0 0 0 2px #df1b41;box-shadow:0 0 0 2px #df1b41}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-webkit-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-webkit-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-moz-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-moz-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input:-ms-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus:-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::-ms-input-placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::-ms-input-placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input::placeholder,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus::placeholder{opacity:var(--zonos-elements-opacity-disabled)}.sc-zonos-stripe-input-h .zonos--floated-input.has-content.sc-zonos-stripe-input~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:focus~.zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{top:11px;-webkit-transform:scale(0.8);transform:scale(0.8)}.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-webkit-autofill,.sc-zonos-stripe-input-h .zonos--floated-input.sc-zonos-stripe-input:-moz-autofill{background-color:var(--zonos-elements-input-background);color:var(--zonos-elements-text-color)}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input{display:block;max-height:0;pointer-events:none;-ms-flex-order:1;order:1}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input label.sc-zonos-stripe-input{color:var(--zonos-elements-gray-800);position:absolute;font-size:16px;line-height:16px;display:inline-block;-webkit-filter:blur(0);filter:blur(0);-webkit-transform-origin:left top;transform-origin:left top;-webkit-transition:var(--zonos-elements-transition);transition:var(--zonos-elements-transition);margin-left:16px;top:calc(50% - 8px);z-index:1}.sc-zonos-stripe-input-h .zonos--floated-label.sc-zonos-stripe-input::after{content:"";position:absolute;left:0;right:0;top:0;bottom:0;border-radius:var(--zonos--border-radius)}.sc-zonos-stripe-input-h .disabled.sc-zonos-stripe-input .zonos--floated-label.sc-zonos-stripe-input{pointer-events:inherit}.sc-zonos-stripe-input-h .disabled.sc-zonos-stripe-input .zonos--floated-label.sc-zonos-stripe-input::after{cursor:not-allowed;z-index:1}.dark.sc-zonos-stripe-input-h .zonos--label-wrapper.sc-zonos-stripe-input{background:#30313d}';export{d as zonos_stripe_input}
@@ -1 +1 @@
1
- System.register(["./p-cb823c4d.system.js"],(function(n){"use strict";var r,e,t,i;return{setters:[function(n){r=n._;e=n.e;t=n.i;i=n.f}],execute:function(){var u=r;var f=function(){return u.Date.now()};var a=f;var o=/\s/;function v(n){var r=n.length;while(r--&&o.test(n.charAt(r))){}return r}var c=v;var d=c;var s=/^\s+/;function m(n){return n?n.slice(0,d(n)+1).replace(s,""):n}var y=m;var p=e,l=t;var T="[object Symbol]";function b(n){return typeof n=="symbol"||l(n)&&p(n)==T}var h=b;var x=y,w=i,$=h;var g=0/0;var j=/^[-+]0x[0-9a-f]+$/i;var E=/^0b[01]+$/i;var M=/^0o[0-7]+$/i;var S=parseInt;function I(n){if(typeof n=="number"){return n}if($(n)){return g}if(w(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=w(r)?r+"":r}if(typeof n!="string"){return n===0?n:+n}n=x(n);var e=E.test(n);return e||M.test(n)?S(n.slice(2),e?2:8):j.test(n)?g:+n}var W=I;var k=i,q=a,z=W;var A="Expected a function";var B=Math.max,C=Math.min;function D(n,r,e){var t,i,u,f,a,o,v=0,c=false,d=false,s=true;if(typeof n!="function"){throw new TypeError(A)}r=z(r)||0;if(k(e)){c=!!e.leading;d="maxWait"in e;u=d?B(z(e.maxWait)||0,r):u;s="trailing"in e?!!e.trailing:s}function m(r){var e=t,u=i;t=i=undefined;v=r;f=n.apply(u,e);return f}function y(n){v=n;a=setTimeout(T,r);return c?m(n):f}function p(n){var e=n-o,t=n-v,i=r-e;return d?C(i,u-t):i}function l(n){var e=n-o,t=n-v;return o===undefined||e>=r||e<0||d&&t>=u}function T(){var n=q();if(l(n)){return b(n)}a=setTimeout(T,p(n))}function b(n){a=undefined;if(s&&t){return m(n)}t=i=undefined;return f}function h(){if(a!==undefined){clearTimeout(a)}v=0;t=o=i=a=undefined}function x(){return a===undefined?f:b(q())}function w(){var n=q(),e=l(n);t=arguments;i=this;o=n;if(e){if(a===undefined){return y(o)}if(d){clearTimeout(a);a=setTimeout(T,r);return m(o)}}if(a===undefined){a=setTimeout(T,r)}return f}w.cancel=h;w.flush=x;return w}var F=n("d",D)}}}));
1
+ System.register(["./p-9e9ac7a2.system.js"],(function(n){"use strict";var r,e,t,i;return{setters:[function(n){r=n._;e=n.e;t=n.i;i=n.f}],execute:function(){var u=r;var f=function(){return u.Date.now()};var a=f;var o=/\s/;function v(n){var r=n.length;while(r--&&o.test(n.charAt(r))){}return r}var c=v;var d=c;var s=/^\s+/;function m(n){return n?n.slice(0,d(n)+1).replace(s,""):n}var y=m;var p=e,l=t;var T="[object Symbol]";function b(n){return typeof n=="symbol"||l(n)&&p(n)==T}var h=b;var x=y,w=i,$=h;var g=0/0;var j=/^[-+]0x[0-9a-f]+$/i;var E=/^0b[01]+$/i;var M=/^0o[0-7]+$/i;var S=parseInt;function I(n){if(typeof n=="number"){return n}if($(n)){return g}if(w(n)){var r=typeof n.valueOf=="function"?n.valueOf():n;n=w(r)?r+"":r}if(typeof n!="string"){return n===0?n:+n}n=x(n);var e=E.test(n);return e||M.test(n)?S(n.slice(2),e?2:8):j.test(n)?g:+n}var W=I;var k=i,q=a,z=W;var A="Expected a function";var B=Math.max,C=Math.min;function D(n,r,e){var t,i,u,f,a,o,v=0,c=false,d=false,s=true;if(typeof n!="function"){throw new TypeError(A)}r=z(r)||0;if(k(e)){c=!!e.leading;d="maxWait"in e;u=d?B(z(e.maxWait)||0,r):u;s="trailing"in e?!!e.trailing:s}function m(r){var e=t,u=i;t=i=undefined;v=r;f=n.apply(u,e);return f}function y(n){v=n;a=setTimeout(T,r);return c?m(n):f}function p(n){var e=n-o,t=n-v,i=r-e;return d?C(i,u-t):i}function l(n){var e=n-o,t=n-v;return o===undefined||e>=r||e<0||d&&t>=u}function T(){var n=q();if(l(n)){return b(n)}a=setTimeout(T,p(n))}function b(n){a=undefined;if(s&&t){return m(n)}t=i=undefined;return f}function h(){if(a!==undefined){clearTimeout(a)}v=0;t=o=i=a=undefined}function x(){return a===undefined?f:b(q())}function w(){var n=q(),e=l(n);t=arguments;i=this;o=n;if(e){if(a===undefined){return y(o)}if(d){clearTimeout(a);a=setTimeout(T,r);return m(o)}}if(a===undefined){a=setTimeout(T,r)}return f}w.cancel=h;w.flush=x;return w}var F=n("d",D)}}}));
@@ -0,0 +1,2 @@
1
+ var e=Object.defineProperty,t=e=>{if(e.__stencil__getHostRef)return e.__stencil__getHostRef()},n=(e,t)=>{e.__stencil__getHostRef=()=>t,t.t=e},o=(e,t)=>t in e,l=(e,t)=>(0,console.error)(e,t),s=new Map,i=new Map,r="slot-fb{display:contents}slot-fb[hidden]{display:none}",c="http://www.w3.org/1999/xlink",u="undefined"!=typeof window?window:{},a={o:0,l:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,n,o)=>e.addEventListener(t,n,o),rel:(e,t,n,o)=>e.removeEventListener(t,n,o),ce:(e,t)=>new CustomEvent(e,t)},f=e=>Promise.resolve(e),d=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(e){}return!1})(),h=!1,p=[],m=[],v=(e,t)=>n=>{e.push(n),h||(h=!0,t&&4&a.o?b(w):a.raf(w))},y=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(e){l(e)}e.length=0},w=()=>{y(p),y(m),(h=p.length>0)&&a.raf(w)},b=e=>f().then(e),g=v(m,!0),$=e=>{const t=new URL(e,a.l);return t.origin!==u.location.origin?t.href:t.pathname},S=e=>"object"==(e=typeof e)||"function"===e;function j(e){var t,n,o;return null!=(o=null==(n=null==(t=e.head)?void 0:t.querySelector('meta[name="csp-nonce"]'))?void 0:n.getAttribute("content"))?o:void 0}((t,n)=>{for(var o in n)e(t,o,{get:n[o],enumerable:!0})})({},{err:()=>O,map:()=>E,ok:()=>k,unwrap:()=>M,unwrapErr:()=>P});var k=e=>({isOk:!0,isErr:!1,value:e}),O=e=>({isOk:!1,isErr:!0,value:e});function E(e,t){if(e.isOk){const n=t(e.value);return n instanceof Promise?n.then((e=>k(e))):k(n)}if(e.isErr)return O(e.value);throw"should never get here"}var C,x,M=e=>{if(e.isOk)return e.value;throw e.value},P=e=>{if(e.isErr)return e.value;throw e.value},R=(e,t,...n)=>{let o=null,l=null,s=!1,i=!1;const r=[],c=t=>{for(let n=0;n<t.length;n++)o=t[n],Array.isArray(o)?c(o):null!=o&&"boolean"!=typeof o&&((s="function"!=typeof e&&!S(o))&&(o+=""),s&&i?r[r.length-1].i+=o:r.push(s?U(null,o):o),i=s)};if(c(n),t){t.key&&(l=t.key);{const e=t.className||t.class;e&&(t.class="object"!=typeof e?e:Object.keys(e).filter((t=>e[t])).join(" "))}}if("function"==typeof e)return e(null===t?{}:t,r,W);const u=U(e,null);return u.u=t,r.length>0&&(u.h=r),u.p=l,u},U=(e,t)=>({o:0,m:e,i:t,v:null,h:null,u:null,p:null}),D={},W={forEach:(e,t)=>e.map(A).forEach(t),map:(e,t)=>e.map(A).map(t).map(F)},A=e=>({vattrs:e.u,vchildren:e.h,vkey:e.p,vname:e.$,vtag:e.m,vtext:e.i}),F=e=>{if("function"==typeof e.vtag){const t={...e.vattrs};return e.vkey&&(t.key=e.vkey),e.vname&&(t.name=e.vname),R(e.vtag,t,...e.vchildren||[])}const t=U(e.vtag,e.vtext);return t.u=e.vattrs,t.h=e.vchildren,t.p=e.vkey,t.$=e.vname,t},L=(e,t)=>null==e||S(e)?e:4&t?"false"!==e&&(""===e||!!e):2&t?parseFloat(e):1&t?e+"":e,N=e=>t(e).$hostElement$,H=(e,t,n)=>{const o=N(e);return{emit:e=>T(o,t,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:e})}},T=(e,t,n)=>{const o=a.ce(t,n);return e.dispatchEvent(o),o},z=new WeakMap,V=e=>"sc-"+e.S,q=(e,t,n,l,s,i)=>{if(n===l)return;let r=o(e,t),f=t.toLowerCase();if("class"===t){const t=e.classList,o=I(n);let s=I(l);t.remove(...o.filter((e=>e&&!s.includes(e)))),t.add(...s.filter((e=>e&&!o.includes(e))))}else if("style"===t){for(const t in n)l&&null!=l[t]||(t.includes("-")?e.style.removeProperty(t):e.style[t]="");for(const t in l)n&&l[t]===n[t]||(t.includes("-")?e.style.setProperty(t,l[t]):e.style[t]=l[t])}else if("key"===t);else if("ref"===t)l&&l(e);else if(r||"o"!==t[0]||"n"!==t[1]){const o=S(l);if((r||o&&null!==l)&&!s)try{if(e.tagName.includes("-"))e[t]!==l&&(e[t]=l);else{const o=null==l?"":l;"list"===t?r=!1:null!=n&&e[t]==o||("function"==typeof e.__lookupSetter__(t)?e[t]=o:e.setAttribute(t,o))}}catch(e){}let u=!1;f!==(f=f.replace(/^xlink\:?/,""))&&(t=f,u=!0),null==l||!1===l?!1===l&&""!==e.getAttribute(t)||(u?e.removeAttributeNS(c,t):e.removeAttribute(t)):(!r||4&i||s)&&!o&&1===e.nodeType&&(l=!0===l?"":l,u?e.setAttributeNS(c,t,l):e.setAttribute(t,l))}else if(t="-"===t[2]?t.slice(3):o(u,f)?f.slice(2):f[2]+t.slice(3),n||l){const o=t.endsWith(Y);t=t.replace(_,""),n&&a.rel(e,t,n,o),l&&a.ael(e,t,l,o)}},G=/\s/,I=e=>("object"==typeof e&&e&&"baseVal"in e&&(e=e.baseVal),e&&"string"==typeof e?e.split(G):[]),Y="Capture",_=RegExp(Y+"$"),B=(e,t,n)=>{const o=11===t.v.nodeType&&t.v.host?t.v.host:t.v,l=e&&e.u||{},s=t.u||{};for(const e of J(Object.keys(l)))e in s||q(o,e,l[e],void 0,n,t.o);for(const e of J(Object.keys(s)))q(o,e,l[e],s[e],n,t.o)};function J(e){return e.includes("ref")?[...e.filter((e=>"ref"!==e)),"ref"]:e}var K=!1,Q=(e,t,n)=>{const o=t.h[n];let l,s,i=0;if(null!==o.i)l=o.v=u.document.createTextNode(o.i);else{if(K||(K="svg"===o.m),!u.document)throw Error("You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component.");if(l=o.v=u.document.createElementNS(K?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",o.m),K&&"foreignObject"===o.m&&(K=!1),B(null,o,K),null!=C&&void 0!==C&&l["s-si"]!==C&&l.classList.add(l["s-si"]=C),o.h)for(i=0;i<o.h.length;++i)s=Q(e,o,i),s&&l.appendChild(s);"svg"===o.m?K=!1:"foreignObject"===l.tagName&&(K=!0)}return l["s-hn"]=x,l},X=(e,t,n,o,l,s)=>{let i,r=e;for(r.shadowRoot&&r.tagName===x&&(r=r.shadowRoot);l<=s;++l)o[l]&&(i=Q(null,n,l),i&&(o[l].v=i,oe(r,i,t)))},Z=(e,t,n)=>{for(let o=t;o<=n;++o){const t=e[o];if(t){const e=t.v;ne(t),e&&e.remove()}}},ee=(e,t,n=!1)=>e.m===t.m&&(n?(n&&!e.p&&t.p&&(e.p=t.p),!0):e.p===t.p),te=(e,t,n=!1)=>{const o=t.v=e.v,l=e.h,s=t.h,i=t.m,r=t.i;null===r?(B(e,t,K="svg"===i||"foreignObject"!==i&&K),null!==l&&null!==s?((e,t,n,o,l=!1)=>{let s,i,r=0,c=0,u=0,a=0,f=t.length-1,d=t[0],h=t[f],p=o.length-1,m=o[0],v=o[p];for(;r<=f&&c<=p;)if(null==d)d=t[++r];else if(null==h)h=t[--f];else if(null==m)m=o[++c];else if(null==v)v=o[--p];else if(ee(d,m,l))te(d,m,l),d=t[++r],m=o[++c];else if(ee(h,v,l))te(h,v,l),h=t[--f],v=o[--p];else if(ee(d,v,l))te(d,v,l),oe(e,d.v,h.v.nextSibling),d=t[++r],v=o[--p];else if(ee(h,m,l))te(h,m,l),oe(e,h.v,d.v),h=t[--f],m=o[++c];else{for(u=-1,a=r;a<=f;++a)if(t[a]&&null!==t[a].p&&t[a].p===m.p){u=a;break}u>=0?(i=t[u],i.m!==m.m?s=Q(t&&t[c],n,u):(te(i,m,l),t[u]=void 0,s=i.v),m=o[++c]):(s=Q(t&&t[c],n,c),m=o[++c]),s&&oe(d.v.parentNode,s,d.v)}r>f?X(e,null==o[p+1]?null:o[p+1].v,n,o,c,p):c>p&&Z(t,r,f)})(o,l,t,s,n):null!==s?(null!==e.i&&(o.textContent=""),X(o,null,t,s,0,s.length-1)):!n&&null!==l&&Z(l,0,l.length-1),K&&"svg"===i&&(K=!1)):e.i!==r&&(o.data=r)},ne=e=>{e.u&&e.u.ref&&e.u.ref(null),e.h&&e.h.map(ne)},oe=(e,t,n)=>("string"==typeof t["s-sn"]&&t["s-sr"]&&t["s-cr"]&&function(e,t,n,o){var l,s;let i;if(e&&"string"==typeof t["s-sn"]&&t["s-sr"]&&e.parentNode&&e.parentNode["s-sc"]&&(i=t["s-si"]||e.parentNode["s-sc"])){const e=t["s-sn"],r=t["s-hn"];if(null==(l=n.classList)||l.add(i+"-s"),o&&(null==(s=o.classList)?void 0:s.contains(i+"-s"))){let t=(o.__childNodes||o.childNodes)[0],n=!1;for(;t;){if(t["s-sn"]!==e&&t["s-hn"]===r&&t["s-sr"]){n=!0;break}t=t.nextSibling}n||o.classList.remove(i+"-s")}}}(t["s-cr"],t,e,t.parentElement),null==e?void 0:e.insertBefore(t,n)),le=(e,t)=>{if(t&&!e.j&&t["s-p"]){const n=t["s-p"].push(new Promise((o=>e.j=()=>{t["s-p"].splice(n-1,1),o()})))}},se=(e,t)=>{if(e.o|=16,!(4&e.o))return le(e,e.k),g((()=>ie(e,t)));e.o|=512},ie=(e,t)=>{const n=e.$hostElement$,o=e.t;if(!o)throw Error(`Can't render component <${n.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return t?(e.o|=256,e.O&&(e.O.map((([e,t])=>ve(o,e,t,n))),e.O=void 0),l=ve(o,"componentWillLoad",void 0,n)):l=ve(o,"componentWillUpdate",void 0,n),l=re(l,(()=>ve(o,"componentWillRender",void 0,n))),re(l,(()=>ue(e,o,t)))},re=(e,t)=>ce(e)?e.then(t).catch((e=>{console.error(e),t()})):t(),ce=e=>e instanceof Promise||e&&e.then&&"function"==typeof e.then,ue=async(e,t,n)=>{var o;const l=e.$hostElement$,s=l["s-rc"];n&&(e=>{const t=e.C,n=e.$hostElement$,o=t.o,l=((e,t)=>{var n;const o=V(t),l=i.get(o);if(!u.document)return o;if(e=11===e.nodeType?e:u.document,l)if("string"==typeof l){let s,i=z.get(e=e.head||e);if(i||z.set(e,i=new Set),!i.has(o)){{s=document.querySelector(`[sty-id="${o}"]`)||u.document.createElement("style"),s.innerHTML=l;const i=null!=(n=a.M)?n:j(u.document);if(null!=i&&s.setAttribute("nonce",i),!(1&t.o))if("HEAD"===e.nodeName){const t=e.querySelectorAll("link[rel=preconnect]"),n=t.length>0?t[t.length-1].nextSibling:e.querySelector("style");e.insertBefore(s,(null==n?void 0:n.parentNode)===e?n:null)}else if("host"in e)if(d){const t=new CSSStyleSheet;t.replaceSync(l),e.adoptedStyleSheets=[t,...e.adoptedStyleSheets]}else{const t=e.querySelector("style");t?t.innerHTML=l+t.innerHTML:e.prepend(s)}else e.append(s);1&t.o&&e.insertBefore(s,null)}4&t.o&&(s.innerHTML+=r),i&&i.add(o)}}else e.adoptedStyleSheets.includes(l)||(e.adoptedStyleSheets=[...e.adoptedStyleSheets,l]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),t);(10&o&&2&o||128&o)&&(n["s-sc"]=l,n.classList.add(l+"-h"))})(e);fe(e,t,l,n),s&&(s.map((e=>e())),l["s-rc"]=void 0);{const t=null!=(o=l["s-p"])?o:[],n=()=>he(e);0===t.length?n():(Promise.all(t).then(n),e.o|=4,t.length=0)}},ae=null,fe=(e,t,n,o)=>{try{ae=t,t=t.render(),e.o&=-17,e.o|=2,((e,t,n=!1)=>{const o=e.$hostElement$,l=e.C,s=e.P||U(null,null),i=(e=>e&&e.m===D)(t)?t:R(null,null,t);if(x=o.tagName,n&&i.u)for(const e of Object.keys(i.u))o.hasAttribute(e)&&!["key","ref","style","class"].includes(e)&&(i.u[e]=o[e]);i.m=null,i.o|=4,e.P=i,i.v=s.v=o.shadowRoot||o,C=o["s-sc"],te(s,i,n)})(e,t,o)}catch(t){l(t,e.$hostElement$)}return ae=null,null},de=()=>ae,he=e=>{const t=e.$hostElement$,n=e.t,o=e.k;ve(n,"componentDidRender",void 0,t),64&e.o?ve(n,"componentDidUpdate",void 0,t):(e.o|=64,ye(t),ve(n,"componentDidLoad",void 0,t),e.R(t),o||me()),e.U(t),e.j&&(e.j(),e.j=void 0),512&e.o&&b((()=>se(e,!1))),e.o&=-517},pe=e=>{{const n=t(e),o=n.$hostElement$.isConnected;return o&&2==(18&n.o)&&se(n,!1),o}},me=()=>{b((()=>T(u,"appload",{detail:{namespace:"zonos-elements"}})))},ve=(e,t,n,o)=>{if(e&&e[t])try{return e[t](n)}catch(e){l(e,o)}},ye=e=>e.classList.add("hydrated"),we=(e,n,o,s)=>{const i=t(e);if(!i)throw Error(`Couldn't find host element for "${s.S}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`);const r=i.$hostElement$,c=i.D.get(n),u=i.o,a=i.t;if(o=L(o,s.W[n][0]),(!(8&u)||void 0===c)&&o!==c&&(!Number.isNaN(c)||!Number.isNaN(o))&&(i.D.set(n,o),a)){if(s.A&&128&u){const e=s.A[n];e&&e.map((e=>{try{a[e](o,c,n)}catch(e){l(e,r)}}))}if(2==(18&u)){if(a.componentShouldUpdate&&!1===a.componentShouldUpdate(o,c,n))return;se(i,!1)}}},be=(e,n,o)=>{var l,s;const i=e.prototype;if(n.W||n.A||e.watchers){e.watchers&&!n.A&&(n.A=e.watchers);const r=Object.entries(null!=(l=n.W)?l:{});if(r.map((([e,[l]])=>{if(31&l||2&o&&32&l){const{get:s,set:r}=Object.getOwnPropertyDescriptor(i,e)||{};s&&(n.W[e][0]|=2048),r&&(n.W[e][0]|=4096),(1&o||!s)&&Object.defineProperty(i,e,{get(){{if(!(2048&n.W[e][0]))return((e,n)=>t(this).D.get(n))(0,e);const o=t(this),l=o?o.t:i;if(!l)return;return l[e]}},configurable:!0,enumerable:!0}),Object.defineProperty(i,e,{set(s){const i=t(this);if(r){const t=32&l?this[e]:i.$hostElement$[e];return void 0===t&&i.D.get(e)?s=i.D.get(e):!i.D.get(e)&&t&&i.D.set(e,t),r.call(this,L(s,l)),void we(this,e,s=32&l?this[e]:i.$hostElement$[e],n)}{if(!(1&o&&4096&n.W[e][0]))return we(this,e,s,n),void(1&o&&!i.t&&i.F.then((()=>{4096&n.W[e][0]&&i.t[e]!==i.D.get(e)&&(i.t[e]=s)})));const t=()=>{const t=i.t[e];!i.D.get(e)&&t&&i.D.set(e,t),i.t[e]=L(s,l),we(this,e,i.t[e],n)};i.t?t():i.F.then((()=>t()))}}})}else 1&o&&64&l&&Object.defineProperty(i,e,{value(...n){var o;const l=t(this);return null==(o=null==l?void 0:l.L)?void 0:o.then((()=>{var t;return null==(t=l.t)?void 0:t[e](...n)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(e,l,s){a.jmp((()=>{var r;const c=o.get(e);if(this.hasOwnProperty(c))s=this[c],delete this[c];else{if(i.hasOwnProperty(c)&&"number"==typeof this[c]&&this[c]==s)return;if(null==c){const o=t(this),i=null==o?void 0:o.o;if(i&&!(8&i)&&128&i&&s!==l){const t=o.t,i=null==(r=n.A)?void 0:r[e];null==i||i.forEach((n=>{null!=t[n]&&t[n].call(t,s,l,e)}))}return}}const u=Object.getOwnPropertyDescriptor(i,c);(s=(null!==s||"boolean"!=typeof this[c])&&s)===this[c]||u.get&&!u.set||(this[c]=s)}))},e.observedAttributes=Array.from(new Set([...Object.keys(null!=(s=n.A)?s:{}),...r.filter((([e,t])=>15&t[0])).map((([e,t])=>{const n=t[1]||e;return o.set(n,e),n}))]))}}return e},ge=(e,t)=>{ve(e,"connectedCallback",void 0,t)},$e=(e,t)=>{ve(e,"disconnectedCallback",void 0,t||e)},Se=(e,n={})=>{var o;if(!u.document)return void console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");const c=[],f=n.exclude||[],h=u.customElements,p=u.document.head,m=p.querySelector("meta[charset]"),v=u.document.createElement("style"),y=[];let w,b=!0;Object.assign(a,n),a.l=new URL(n.resourcesUrl||"./",u.document.baseURI).href;let g=!1;if(e.map((e=>{e[1].map((n=>{var o;const r={o:n[0],S:n[1],W:n[2],N:n[3]};4&r.o&&(g=!0),r.W=n[2],r.N=n[3],r.A=null!=(o=n[4])?o:{};const u=r.S,p=class extends HTMLElement{constructor(e){if(super(e),this.hasRegisteredEventListeners=!1,((e,t)=>{const n={o:0,$hostElement$:e,C:t,D:new Map};n.L=new Promise((e=>n.U=e)),n.F=new Promise((e=>n.R=e)),e["s-p"]=[],e["s-rc"]=[];const o=n;e.__stencil__getHostRef=()=>o})(e=this,r),1&r.o)if(e.shadowRoot){if("open"!==e.shadowRoot.mode)throw Error(`Unable to re-use existing shadow root for ${r.S}! Mode is set to ${e.shadowRoot.mode} but Stencil only supports open shadow roots.`)}else e.attachShadow({mode:"open",delegatesFocus:!!(16&r.o)})}connectedCallback(){const e=t(this);this.hasRegisteredEventListeners||(this.hasRegisteredEventListeners=!0,ke(this,e,r.N)),w&&(clearTimeout(w),w=null),b?y.push(this):a.jmp((()=>(e=>{if(!(1&a.o)){const n=t(e),o=n.C,r=()=>{};if(1&n.o)ke(e,n,o.N),(null==n?void 0:n.t)?ge(n.t,e):(null==n?void 0:n.F)&&n.F.then((()=>ge(n.t,e)));else{n.o|=1;{let t=e;for(;t=t.parentNode||t.host;)if(t["s-p"]){le(n,n.k=t);break}}o.W&&Object.entries(o.W).map((([t,[n]])=>{if(31&n&&e.hasOwnProperty(t)){const n=e[t];delete e[t],e[t]=n}})),(async(e,t,n)=>{let o;if(!(32&t.o)){if(t.o|=32,n.H){const i=((e,t)=>{const n=e.S.replace(/-/g,"_"),o=e.H;if(!o)return;const i=s.get(o);return i?i[n]:import(`./${o}.entry.js`).then((e=>(s.set(o,e),e[n])),(e=>{l(e,t.$hostElement$)}))
2
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/})(n,t);if(i&&"then"in i){const e=()=>{};o=await i,e()}else o=i;if(!o)throw Error(`Constructor for "${n.S}#${t.T}" was not found`);o.isProxied||(n.A=o.watchers,be(o,n,2),o.isProxied=!0);const r=()=>{};t.o|=8;try{new o(t)}catch(t){l(t,e)}t.o&=-9,t.o|=128,r(),ge(t.t,e)}else o=e.constructor,customElements.whenDefined(e.localName).then((()=>t.o|=128));if(o&&o.style){let e;"string"==typeof o.style&&(e=o.style);const t=V(n);if(!i.has(t)){const o=()=>{};((e,t,n)=>{let o=i.get(e);d&&n?(o=o||new CSSStyleSheet,"string"==typeof o?o=t:o.replaceSync(t)):o=t,i.set(e,o)})(t,e,!!(1&n.o)),o()}}}const r=t.k,c=()=>se(t,!0);r&&r["s-rc"]?r["s-rc"].push(c):c()})(e,n,o)}r()}})(this)))}disconnectedCallback(){a.jmp((()=>(async e=>{if(!(1&a.o)){const n=t(e);n.V&&(n.V.map((e=>e())),n.V=void 0),(null==n?void 0:n.t)?$e(n.t,e):(null==n?void 0:n.F)&&n.F.then((()=>$e(n.t,e)))}z.has(e)&&z.delete(e),e.shadowRoot&&z.has(e.shadowRoot)&&z.delete(e.shadowRoot)})(this))),a.raf((()=>{var e;const n=t(this),o=y.findIndex((e=>e===this));o>-1&&y.splice(o,1),(null==(e=null==n?void 0:n.P)?void 0:e.v)instanceof Node&&!n.P.v.isConnected&&delete n.P.v}))}componentOnReady(){return t(this).F}};r.H=e[0],f.includes(u)||h.get(u)||(c.push(u),h.define(u,be(p,r,1)))}))})),c.length>0&&(g&&(v.textContent+=r),v.textContent+=c.sort()+"{visibility:hidden}.hydrated{visibility:inherit}",v.innerHTML.length)){v.setAttribute("data-styles","");const e=null!=(o=a.M)?o:j(u.document);null!=e&&v.setAttribute("nonce",e),p.insertBefore(v,m?m.nextSibling:p.firstChild)}b=!1,y.length?y.map((e=>e.connectedCallback())):a.jmp((()=>w=setTimeout(me,30)))},je=(e,t)=>t,ke=(e,t,n)=>{n&&u.document&&n.map((([n,o,l])=>{const s=Ee(u.document,e,n),i=Oe(t,l),r=Ce(n);a.ael(s,o,i,r),(t.V=t.V||[]).push((()=>a.rel(s,o,i,r)))}))},Oe=(e,t)=>n=>{var o;try{256&e.o?null==(o=e.t)||o[t](n):(e.O=e.O||[]).push([t,n])}catch(t){l(t,e.$hostElement$)}},Ee=(e,t,n)=>4&n?e:8&n?u:16&n?e.body:t,Ce=e=>({passive:!!(1&e),capture:!!(2&e)}),xe=e=>a.M=e;export{je as F,D as H,$ as a,Se as b,H as c,N as d,pe as f,de as g,R as h,f as p,n as r,xe as s}