@adyen/bento-vue3 1.56.2 → 1.57.0

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 (227) hide show
  1. package/dist/@types/index.d.ts +20 -1
  2. package/dist/action-bar.js +1 -1
  3. package/dist/alert.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/checkbox-input.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/error-message.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -1
  13. package/dist/assets/inspector.css +1 -1
  14. package/dist/assets/link.css +1 -1
  15. package/dist/assets/menu.css +1 -1
  16. package/dist/assets/modal-fullscreen.css +1 -1
  17. package/dist/assets/pagination.css +1 -1
  18. package/dist/assets/popover.css +1 -1
  19. package/dist/assets/rich-text-editor.css +1 -0
  20. package/dist/assets/sidepanel.css +1 -1
  21. package/dist/button.js +3 -3
  22. package/dist/card.js +1 -1
  23. package/dist/checkbox.js +3 -3
  24. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +7 -0
  25. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +1 -0
  26. package/dist/chunks/{action-bar.CD5FQjE9.js → action-bar.BOCrfaHz.js} +6 -6
  27. package/dist/chunks/{action-bar.CD5FQjE9.js.map → action-bar.BOCrfaHz.js.map} +1 -1
  28. package/dist/chunks/{alert.CFb4Sejw.js → alert.CjegN2iG.js} +2 -2
  29. package/dist/chunks/{alert.CFb4Sejw.js.map → alert.CjegN2iG.js.map} +1 -1
  30. package/dist/chunks/{base-modal.qhldLovE.js → base-modal.DhzWPnD5.js} +29 -30
  31. package/dist/chunks/base-modal.DhzWPnD5.js.map +1 -0
  32. package/dist/chunks/{button-actions-with-menu.CxB1fVvx.js → button-actions-with-menu.CkyIwzNi.js} +5 -5
  33. package/dist/chunks/{button-actions-with-menu.CxB1fVvx.js.map → button-actions-with-menu.CkyIwzNi.js.map} +1 -1
  34. package/dist/chunks/{button-actions.ODJKaCW7.js → button-actions.DWGBFisz.js} +2 -2
  35. package/dist/chunks/{button-actions.ODJKaCW7.js.map → button-actions.DWGBFisz.js.map} +1 -1
  36. package/dist/chunks/{button.BHZgsGkp.js → button.CVZJTZv0.js} +2 -2
  37. package/dist/chunks/{button.BHZgsGkp.js.map → button.CVZJTZv0.js.map} +1 -1
  38. package/dist/chunks/{calendar.Dymq4e0Y.js → calendar.D61aBwg1.js} +87 -90
  39. package/dist/chunks/{calendar.Dymq4e0Y.js.map → calendar.D61aBwg1.js.map} +1 -1
  40. package/dist/chunks/{card.DQ6g6hqK.js → card.DguoAMcm.js} +2 -2
  41. package/dist/chunks/{card.DQ6g6hqK.js.map → card.DguoAMcm.js.map} +1 -1
  42. package/dist/chunks/{checkbox-group.CiYObaZV.js → checkbox-group.CZ-J707C.js} +4 -4
  43. package/dist/chunks/{checkbox-group.CiYObaZV.js.map → checkbox-group.CZ-J707C.js.map} +1 -1
  44. package/dist/chunks/checkbox-input.DVayucaL.js +168 -0
  45. package/dist/chunks/checkbox-input.DVayucaL.js.map +1 -0
  46. package/dist/chunks/{checkbox.CWfZNdfT.js → checkbox.CMuObeL7.js} +4 -4
  47. package/dist/chunks/{checkbox.CWfZNdfT.js.map → checkbox.CMuObeL7.js.map} +1 -1
  48. package/dist/chunks/{code-snippet.CG00Tb5k.js → code-snippet.WgKhySvn.js} +5 -5
  49. package/dist/chunks/{code-snippet.CG00Tb5k.js.map → code-snippet.WgKhySvn.js.map} +1 -1
  50. package/dist/chunks/{controls-group.DgrzEh4C.js → controls-group.DsGEDyTw.js} +2 -2
  51. package/dist/chunks/{controls-group.DgrzEh4C.js.map → controls-group.DsGEDyTw.js.map} +1 -1
  52. package/dist/chunks/{copy.CfFh4b_c.js → copy.QuF9bDfT.js} +3 -3
  53. package/dist/chunks/{copy.CfFh4b_c.js.map → copy.QuF9bDfT.js.map} +1 -1
  54. package/dist/chunks/{dashboard-section.tza4iYcv.js → dashboard-section.fZiEAres.js} +4 -4
  55. package/dist/chunks/{dashboard-section.tza4iYcv.js.map → dashboard-section.fZiEAres.js.map} +1 -1
  56. package/dist/chunks/{dashed-underline.B2cIJkg_.js → dashed-underline.BZ_oZeHs.js} +3 -3
  57. package/dist/chunks/{dashed-underline.B2cIJkg_.js.map → dashed-underline.BZ_oZeHs.js.map} +1 -1
  58. package/dist/chunks/{data-grid-template.PGPytWvk.js → data-grid-template.Cw-0-al0.js} +3 -3
  59. package/dist/chunks/{data-grid-template.PGPytWvk.js.map → data-grid-template.Cw-0-al0.js.map} +1 -1
  60. package/dist/chunks/{data-grid.DW_9jlLU.js → data-grid.BVcmZ1X_.js} +19 -19
  61. package/dist/chunks/{data-grid.DW_9jlLU.js.map → data-grid.BVcmZ1X_.js.map} +1 -1
  62. package/dist/chunks/{date-picker.8jgg3MJm.js → date-picker.CWGFy7Hb.js} +17 -17
  63. package/dist/chunks/{date-picker.8jgg3MJm.js.map → date-picker.CWGFy7Hb.js.map} +1 -1
  64. package/dist/chunks/{date-range-picker.BxmkXpEh.js → date-range-picker.RzinIKLS.js} +26 -26
  65. package/dist/chunks/{date-range-picker.BxmkXpEh.js.map → date-range-picker.RzinIKLS.js.map} +1 -1
  66. package/dist/chunks/dialog-page.C72BX6So.js +175 -0
  67. package/dist/chunks/dialog-page.C72BX6So.js.map +1 -0
  68. package/dist/chunks/{dropdown-tag.Bv1togfI.js → dropdown-tag.DCat3Pd2.js} +3 -3
  69. package/dist/chunks/{dropdown-tag.Bv1togfI.js.map → dropdown-tag.DCat3Pd2.js.map} +1 -1
  70. package/dist/chunks/{dropdown.CDNzhFMK.js → dropdown.D4lL2ytb.js} +30 -30
  71. package/dist/chunks/{dropdown.CDNzhFMK.js.map → dropdown.D4lL2ytb.js.map} +1 -1
  72. package/dist/chunks/{empty-state.DiXLZmQJ.js → empty-state.BGWjUH6G.js} +2 -2
  73. package/dist/chunks/{empty-state.DiXLZmQJ.js.map → empty-state.BGWjUH6G.js.map} +1 -1
  74. package/dist/chunks/{error-message.CPw3y44N.js → error-message.CjdvgIAh.js} +3 -3
  75. package/dist/chunks/error-message.CjdvgIAh.js.map +1 -0
  76. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  77. package/dist/chunks/{file-uploader.Dv4sh1IO.js → file-uploader.faOTOytJ.js} +6 -6
  78. package/dist/chunks/{file-uploader.Dv4sh1IO.js.map → file-uploader.faOTOytJ.js.map} +1 -1
  79. package/dist/chunks/{filter-bar.D1tyv0cU.js → filter-bar.BbLKMSsn.js} +18 -18
  80. package/dist/chunks/{filter-bar.D1tyv0cU.js.map → filter-bar.BbLKMSsn.js.map} +1 -1
  81. package/dist/chunks/{fixed-scroller.DsTyshyt.js → fixed-scroller.BjxA_R63.js} +2 -2
  82. package/dist/chunks/{fixed-scroller.DsTyshyt.js.map → fixed-scroller.BjxA_R63.js.map} +1 -1
  83. package/dist/chunks/{focus-trap.D9cfQpl7.js → focus-trap.DY5E-2JV.js} +2 -2
  84. package/dist/chunks/{focus-trap.D9cfQpl7.js.map → focus-trap.DY5E-2JV.js.map} +1 -1
  85. package/dist/chunks/{footer-actions.C00o4tuW.js → footer-actions.CQARYj4Q.js} +3 -3
  86. package/dist/chunks/{footer-actions.C00o4tuW.js.map → footer-actions.CQARYj4Q.js.map} +1 -1
  87. package/dist/chunks/{form-layout-title.dcT8eXwc.js → form-layout-title.CsmjzAje.js} +2 -2
  88. package/dist/chunks/{form-layout-title.dcT8eXwc.js.map → form-layout-title.CsmjzAje.js.map} +1 -1
  89. package/dist/chunks/{header-with-views.DNAQIhC5.js → header-with-views.WANsHlGK.js} +13 -13
  90. package/dist/chunks/{header-with-views.DNAQIhC5.js.map → header-with-views.WANsHlGK.js.map} +1 -1
  91. package/dist/chunks/{header.hDkWwQuQ.js → header.DAuIurUM.js} +4 -4
  92. package/dist/chunks/{header.hDkWwQuQ.js.map → header.DAuIurUM.js.map} +1 -1
  93. package/dist/chunks/index.CVpo3mlK.js +528 -0
  94. package/dist/chunks/{index.BzJQl-2M.js.map → index.CVpo3mlK.js.map} +1 -1
  95. package/dist/chunks/{info-icon-with-popover.COJrCw_o.js → info-icon-with-popover.J10ERGQ2.js} +2 -2
  96. package/dist/chunks/{info-icon-with-popover.COJrCw_o.js.map → info-icon-with-popover.J10ERGQ2.js.map} +1 -1
  97. package/dist/chunks/{info-icon.7uhGVIn5.js → info-icon.71yYfuEc.js} +2 -2
  98. package/dist/chunks/{info-icon.7uhGVIn5.js.map → info-icon.71yYfuEc.js.map} +1 -1
  99. package/dist/chunks/{input-field-password.DqbZ7U6j.js → input-field-password.Bv_0ulNg.js} +7 -7
  100. package/dist/chunks/{input-field-password.DqbZ7U6j.js.map → input-field-password.Bv_0ulNg.js.map} +1 -1
  101. package/dist/chunks/{input-field-phone-number.gKckf5Oi.js → input-field-phone-number.DPNOepAt.js} +3 -3
  102. package/dist/chunks/{input-field-phone-number.gKckf5Oi.js.map → input-field-phone-number.DPNOepAt.js.map} +1 -1
  103. package/dist/chunks/{input-field.DM-gguGX.js → input-field.CtV60WoD.js} +3 -3
  104. package/dist/chunks/{input-field.DM-gguGX.js.map → input-field.CtV60WoD.js.map} +1 -1
  105. package/dist/chunks/inspector.types.Df-LngxJ.js +187 -0
  106. package/dist/chunks/inspector.types.Df-LngxJ.js.map +1 -0
  107. package/dist/chunks/{layout-row.BC3Z1mQx.js → layout-row.CRRLYA03.js} +2 -2
  108. package/dist/chunks/{layout-row.BC3Z1mQx.js.map → layout-row.CRRLYA03.js.map} +1 -1
  109. package/dist/chunks/link.CTH1xj0i.js +116 -0
  110. package/dist/chunks/link.CTH1xj0i.js.map +1 -0
  111. package/dist/chunks/{listbox-option-tag.BJh2kEN1.js → listbox-option-tag.DsnH9Q9j.js} +2 -2
  112. package/dist/chunks/{listbox-option-tag.BJh2kEN1.js.map → listbox-option-tag.DsnH9Q9j.js.map} +1 -1
  113. package/dist/chunks/{menu.B0q9q97N.js → menu.BOj630ue.js} +3 -3
  114. package/dist/chunks/{menu.B0q9q97N.js.map → menu.BOj630ue.js.map} +1 -1
  115. package/dist/chunks/{modal-fullscreen.BgqNc9jE.js → modal-fullscreen.D1hncuS7.js} +5 -5
  116. package/dist/chunks/{modal-fullscreen.BgqNc9jE.js.map → modal-fullscreen.D1hncuS7.js.map} +1 -1
  117. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Dr847POU.js → modal.vue_vue_type_script_setup_true_lang.y7pMBxB0.js} +5 -5
  118. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.Dr847POU.js.map → modal.vue_vue_type_script_setup_true_lang.y7pMBxB0.js.map} +1 -1
  119. package/dist/chunks/pagination.fwhC8tEq.js +445 -0
  120. package/dist/chunks/pagination.fwhC8tEq.js.map +1 -0
  121. package/dist/chunks/{popover.R5OM_tFu.js → popover.BzzdIK19.js} +4 -4
  122. package/dist/chunks/{popover.R5OM_tFu.js.map → popover.BzzdIK19.js.map} +1 -1
  123. package/dist/chunks/{popper-container.CDsbQiOS.js → popper-container.B_sb3SNK.js} +2 -2
  124. package/dist/chunks/{popper-container.CDsbQiOS.js.map → popper-container.B_sb3SNK.js.map} +1 -1
  125. package/dist/chunks/{promo-banner.DFt2dVxk.js → promo-banner.CoB1tBCC.js} +3 -3
  126. package/dist/chunks/{promo-banner.DFt2dVxk.js.map → promo-banner.CoB1tBCC.js.map} +1 -1
  127. package/dist/chunks/{radio-group.muZVaVEm.js → radio-group.seLW9WC9.js} +4 -4
  128. package/dist/chunks/{radio-group.muZVaVEm.js.map → radio-group.seLW9WC9.js.map} +1 -1
  129. package/dist/chunks/{search-bar.BOFC4r8H.js → search-bar.DgDUdcot.js} +3 -3
  130. package/dist/chunks/{search-bar.BOFC4r8H.js.map → search-bar.DgDUdcot.js.map} +1 -1
  131. package/dist/chunks/{secondary-nav.DLHeCwuz.js → secondary-nav.C3TEPrCq.js} +3 -3
  132. package/dist/chunks/{secondary-nav.DLHeCwuz.js.map → secondary-nav.C3TEPrCq.js.map} +1 -1
  133. package/dist/chunks/{segmented-control.Dg_ktsiS.js → segmented-control.B2cS73wG.js} +2 -2
  134. package/dist/chunks/{segmented-control.Dg_ktsiS.js.map → segmented-control.B2cS73wG.js.map} +1 -1
  135. package/dist/chunks/{selection-card-group.DGv7fjPp.js → selection-card-group.gd66OMqI.js} +5 -5
  136. package/dist/chunks/{selection-card-group.DGv7fjPp.js.map → selection-card-group.gd66OMqI.js.map} +1 -1
  137. package/dist/chunks/{sidepanel.BjR0Ab22.js → sidepanel.9wJbIvIS.js} +5 -5
  138. package/dist/chunks/{sidepanel.BjR0Ab22.js.map → sidepanel.9wJbIvIS.js.map} +1 -1
  139. package/dist/chunks/{structured-list-item.BMsATRrU.js → structured-list-item.CzzWSj5s.js} +5 -5
  140. package/dist/chunks/{structured-list-item.BMsATRrU.js.map → structured-list-item.CzzWSj5s.js.map} +1 -1
  141. package/dist/chunks/{summary-grid.types.lGX16F4w.js → summary-grid.types.IZdK-Mvh.js} +5 -5
  142. package/dist/chunks/{summary-grid.types.lGX16F4w.js.map → summary-grid.types.IZdK-Mvh.js.map} +1 -1
  143. package/dist/chunks/{tabs.BVuOvNxx.js → tabs.Bn4YIjoy.js} +2 -2
  144. package/dist/chunks/{tabs.BVuOvNxx.js.map → tabs.Bn4YIjoy.js.map} +1 -1
  145. package/dist/chunks/{tag.CmYkknFj.js → tag.iiCQSgG9.js} +2 -2
  146. package/dist/chunks/{tag.CmYkknFj.js.map → tag.iiCQSgG9.js.map} +1 -1
  147. package/dist/chunks/{textarea.CAc_VYFm.js → textarea.DY0kNx0r.js} +3 -3
  148. package/dist/chunks/{textarea.CAc_VYFm.js.map → textarea.DY0kNx0r.js.map} +1 -1
  149. package/dist/chunks/{timeline-item.BQ4qiBii.js → timeline-item.dleRa6Yu.js} +7 -7
  150. package/dist/chunks/{timeline-item.BQ4qiBii.js.map → timeline-item.dleRa6Yu.js.map} +1 -1
  151. package/dist/chunks/{toast.BOpWHAfu.js → toast.Ae5ZoWHb.js} +2 -2
  152. package/dist/chunks/{toast.BOpWHAfu.js.map → toast.Ae5ZoWHb.js.map} +1 -1
  153. package/dist/chunks/{toggle-button.E0VQtyEX.js → toggle-button.Dv1t15yj.js} +2 -2
  154. package/dist/chunks/{toggle-button.E0VQtyEX.js.map → toggle-button.Dv1t15yj.js.map} +1 -1
  155. package/dist/chunks/{tooltip.BkBDReK0.js → tooltip.Di6i0aTd.js} +35 -33
  156. package/dist/chunks/{tooltip.BkBDReK0.js.map → tooltip.Di6i0aTd.js.map} +1 -1
  157. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CTx9Z9xB.js → tutorial.vue_vue_type_script_setup_true_lang.A0Wcwr8f.js} +5 -5
  158. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.CTx9Z9xB.js.map → tutorial.vue_vue_type_script_setup_true_lang.A0Wcwr8f.js.map} +1 -1
  159. package/dist/chunks/{use-cached-selected-values.BTVoaWFj.js → use-cached-selected-values.BgoZ5uGq.js} +4 -4
  160. package/dist/chunks/{use-cached-selected-values.BTVoaWFj.js.map → use-cached-selected-values.BgoZ5uGq.js.map} +1 -1
  161. package/dist/code-snippet.js +1 -1
  162. package/dist/dashboard-template.js +1 -1
  163. package/dist/dashed-underline.js +1 -1
  164. package/dist/data-grid-template.js +1 -1
  165. package/dist/data-grid.js +1 -1
  166. package/dist/date-picker.js +2 -2
  167. package/dist/date-range-picker.js +2 -2
  168. package/dist/dropdown.js +3 -3
  169. package/dist/empty-state.js +1 -1
  170. package/dist/file-uploader.js +1 -1
  171. package/dist/filter-bar.js +1 -1
  172. package/dist/focus-trap.js +1 -1
  173. package/dist/form-layout.js +1 -1
  174. package/dist/header-with-views.js +1 -1
  175. package/dist/header.js +1 -1
  176. package/dist/index.js +55 -55
  177. package/dist/info-icon.js +1 -1
  178. package/dist/input-field-password.js +1 -1
  179. package/dist/input-field-phone-number.js +1 -1
  180. package/dist/input-field.js +1 -1
  181. package/dist/inspector.js +1 -1
  182. package/dist/internal.js +12 -12
  183. package/dist/layout.js +1 -1
  184. package/dist/link.js +1 -1
  185. package/dist/menu.js +1 -1
  186. package/dist/modal-fullscreen.js +1 -1
  187. package/dist/modal.js +2 -2
  188. package/dist/pagination.js +1 -1
  189. package/dist/popover.js +1 -1
  190. package/dist/popper-container.js +1 -1
  191. package/dist/promo-banner.js +1 -1
  192. package/dist/radio-group.js +1 -1
  193. package/dist/rich-text-editor.js +6221 -0
  194. package/dist/rich-text-editor.js.map +1 -0
  195. package/dist/search-bar.js +2 -2
  196. package/dist/secondary-nav.js +1 -1
  197. package/dist/segmented-control.js +1 -1
  198. package/dist/selection-card.js +1 -1
  199. package/dist/sidepanel.js +1 -1
  200. package/dist/structured-list.js +1 -1
  201. package/dist/styles/bento-dark.css +22 -1
  202. package/dist/styles/bento-light.css +22 -1
  203. package/dist/styles/bento.css +22 -1
  204. package/dist/styles/legacy.css +22 -1
  205. package/dist/styles/styleguide.css +22 -1
  206. package/dist/summary-grid.js +1 -1
  207. package/dist/tabs.js +1 -1
  208. package/dist/tag.js +1 -1
  209. package/dist/textarea.js +1 -1
  210. package/dist/timeline.js +1 -1
  211. package/dist/toast.js +1 -1
  212. package/dist/tutorial.js +1 -1
  213. package/dist/web-types.json +1 -1
  214. package/package.json +10 -5
  215. package/dist/chunks/base-modal.qhldLovE.js.map +0 -1
  216. package/dist/chunks/checkbox-input.CgbJsFXD.js +0 -157
  217. package/dist/chunks/checkbox-input.CgbJsFXD.js.map +0 -1
  218. package/dist/chunks/dialog-page.MLFdqTcL.js +0 -173
  219. package/dist/chunks/dialog-page.MLFdqTcL.js.map +0 -1
  220. package/dist/chunks/error-message.CPw3y44N.js.map +0 -1
  221. package/dist/chunks/index.BzJQl-2M.js +0 -386
  222. package/dist/chunks/inspector.types.D5QBC3-G.js +0 -188
  223. package/dist/chunks/inspector.types.D5QBC3-G.js.map +0 -1
  224. package/dist/chunks/link.D3Fq5tt_.js +0 -109
  225. package/dist/chunks/link.D3Fq5tt_.js.map +0 -1
  226. package/dist/chunks/pagination.Ca8itKj2.js +0 -470
  227. package/dist/chunks/pagination.Ca8itKj2.js.map +0 -1
@@ -0,0 +1,528 @@
1
+ import { onMounted as q, nextTick as J, unref as Z, watch as I, getCurrentScope as ee, onScopeDispose as te, getCurrentInstance as k, isRef as ne, ref as w, computed as g, reactive as U, watchEffect as oe } from "vue";
2
+ function C(e) {
3
+ return ee() ? (te(e), !0) : !1;
4
+ }
5
+ function h(e) {
6
+ return typeof e == "function" ? e() : Z(e);
7
+ }
8
+ const re = typeof window < "u" && typeof document < "u";
9
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
+ const ie = (e) => e != null, le = Object.prototype.toString, se = (e) => le.call(e) === "[object Object]", R = () => {
11
+ };
12
+ function P(e, t) {
13
+ function n(...r) {
14
+ return new Promise((s, i) => {
15
+ Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(i);
16
+ });
17
+ }
18
+ return n;
19
+ }
20
+ const ue = (e) => e();
21
+ function K(e, t = {}) {
22
+ let n, r, s = R;
23
+ const i = (u) => {
24
+ clearTimeout(u), s(), s = R;
25
+ };
26
+ return (u) => {
27
+ const d = h(e), a = h(t.maxWait);
28
+ return n && i(n), d <= 0 || a !== void 0 && a <= 0 ? (r && (i(r), r = null), Promise.resolve(u())) : new Promise((o, l) => {
29
+ s = t.rejectOnCancel ? l : o, a && !r && (r = setTimeout(() => {
30
+ n && i(n), r = null, o(u());
31
+ }, a)), n = setTimeout(() => {
32
+ r && i(r), r = null, o(u());
33
+ }, d);
34
+ });
35
+ };
36
+ }
37
+ function ce(...e) {
38
+ let t = 0, n, r = !0, s = R, i, c, u, d, a;
39
+ !ne(e[0]) && typeof e[0] == "object" ? { delay: c, trailing: u = !0, leading: d = !0, rejectOnCancel: a = !1 } = e[0] : [c, u = !0, d = !0, a = !1] = e;
40
+ const o = () => {
41
+ n && (clearTimeout(n), n = void 0, s(), s = R);
42
+ };
43
+ return (f) => {
44
+ const m = h(c), p = Date.now() - t, O = () => i = f();
45
+ return o(), m <= 0 ? (t = Date.now(), O()) : (p > m && (d || !r) ? (t = Date.now(), O()) : u && (i = new Promise((A, E) => {
46
+ s = a ? E : A, n = setTimeout(() => {
47
+ t = Date.now(), r = !0, A(O()), o();
48
+ }, Math.max(0, m - p));
49
+ })), !d && !n && (n = setTimeout(() => r = !0, m)), r = !1, i);
50
+ };
51
+ }
52
+ function ae(e, t) {
53
+ var n;
54
+ if (typeof e == "number")
55
+ return e + t;
56
+ const r = ((n = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", s = e.slice(r.length), i = Number.parseFloat(r) + t;
57
+ return Number.isNaN(i) ? e : i + s;
58
+ }
59
+ function fe(e) {
60
+ return k();
61
+ }
62
+ function de(e, t = 200, n = {}) {
63
+ return P(
64
+ K(t, n),
65
+ e
66
+ );
67
+ }
68
+ function ve(e, t = 200, n = !1, r = !0, s = !1) {
69
+ return P(
70
+ ce(t, n, r, s),
71
+ e
72
+ );
73
+ }
74
+ function me(e, t, n = {}) {
75
+ const {
76
+ eventFilter: r = ue,
77
+ ...s
78
+ } = n;
79
+ return I(
80
+ e,
81
+ P(
82
+ r,
83
+ t
84
+ ),
85
+ s
86
+ );
87
+ }
88
+ function F(e, t = !0, n) {
89
+ fe() ? q(e, n) : t ? e() : J(e);
90
+ }
91
+ function Oe(e, t, n = {}) {
92
+ const {
93
+ debounce: r = 0,
94
+ maxWait: s = void 0,
95
+ ...i
96
+ } = n;
97
+ return me(
98
+ e,
99
+ t,
100
+ {
101
+ ...i,
102
+ eventFilter: K(r, { maxWait: s })
103
+ }
104
+ );
105
+ }
106
+ const y = re ? window : void 0;
107
+ function T(e) {
108
+ var t;
109
+ const n = h(e);
110
+ return (t = n == null ? void 0 : n.$el) != null ? t : n;
111
+ }
112
+ function _(...e) {
113
+ let t, n, r, s;
114
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, s] = e, t = y) : [t, n, r, s] = e, !t)
115
+ return R;
116
+ Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
117
+ const i = [], c = () => {
118
+ i.forEach((o) => o()), i.length = 0;
119
+ }, u = (o, l, f, m) => (o.addEventListener(l, f, m), () => o.removeEventListener(l, f, m)), d = I(
120
+ () => [T(t), h(s)],
121
+ ([o, l]) => {
122
+ if (c(), !o)
123
+ return;
124
+ const f = se(l) ? { ...l } : l;
125
+ i.push(
126
+ ...n.flatMap((m) => r.map((p) => u(o, m, p, f)))
127
+ );
128
+ },
129
+ { immediate: !0, flush: "post" }
130
+ ), a = () => {
131
+ d(), c();
132
+ };
133
+ return C(a), a;
134
+ }
135
+ function he(e) {
136
+ return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
137
+ }
138
+ function Te(...e) {
139
+ let t, n, r = {};
140
+ e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
141
+ const {
142
+ target: s = y,
143
+ eventName: i = "keydown",
144
+ passive: c = !1,
145
+ dedupe: u = !1
146
+ } = r, d = he(t);
147
+ return _(s, i, (o) => {
148
+ o.repeat && h(u) || d(o) && n(o);
149
+ }, c);
150
+ }
151
+ function pe() {
152
+ const e = w(!1), t = k();
153
+ return t && q(() => {
154
+ e.value = !0;
155
+ }, t), e;
156
+ }
157
+ function V(e) {
158
+ const t = pe();
159
+ return g(() => (t.value, !!e()));
160
+ }
161
+ function we(e, t, n = {}) {
162
+ const { window: r = y, ...s } = n;
163
+ let i;
164
+ const c = V(() => r && "MutationObserver" in r), u = () => {
165
+ i && (i.disconnect(), i = void 0);
166
+ }, d = g(() => {
167
+ const f = h(e), m = (Array.isArray(f) ? f : [f]).map(T).filter(ie);
168
+ return new Set(m);
169
+ }), a = I(
170
+ () => d.value,
171
+ (f) => {
172
+ u(), c.value && f.size && (i = new MutationObserver(t), f.forEach((m) => i.observe(m, s)));
173
+ },
174
+ { immediate: !0, flush: "post" }
175
+ ), o = () => i == null ? void 0 : i.takeRecords(), l = () => {
176
+ a(), u();
177
+ };
178
+ return C(l), {
179
+ isSupported: c,
180
+ stop: l,
181
+ takeRecords: o
182
+ };
183
+ }
184
+ function be(e = {}) {
185
+ var t;
186
+ const {
187
+ window: n = y,
188
+ deep: r = !0,
189
+ triggerOnRemoval: s = !1
190
+ } = e, i = (t = e.document) != null ? t : n == null ? void 0 : n.document, c = () => {
191
+ var a;
192
+ let o = i == null ? void 0 : i.activeElement;
193
+ if (r)
194
+ for (; o != null && o.shadowRoot; )
195
+ o = (a = o == null ? void 0 : o.shadowRoot) == null ? void 0 : a.activeElement;
196
+ return o;
197
+ }, u = w(), d = () => {
198
+ u.value = c();
199
+ };
200
+ return n && (_(n, "blur", (a) => {
201
+ a.relatedTarget === null && d();
202
+ }, !0), _(n, "focus", d, !0)), s && we(i, (a) => {
203
+ a.filter((o) => o.removedNodes.length).map((o) => Array.from(o.removedNodes)).flat().forEach((o) => {
204
+ o === u.value && d();
205
+ });
206
+ }, {
207
+ childList: !0,
208
+ subtree: !0
209
+ }), d(), u;
210
+ }
211
+ function N(e, t = {}) {
212
+ const { window: n = y } = t, r = V(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
213
+ let s;
214
+ const i = w(!1), c = (a) => {
215
+ i.value = a.matches;
216
+ }, u = () => {
217
+ s && ("removeEventListener" in s ? s.removeEventListener("change", c) : s.removeListener(c));
218
+ }, d = oe(() => {
219
+ r.value && (u(), s = n.matchMedia(h(e)), "addEventListener" in s ? s.addEventListener("change", c) : s.addListener(c), i.value = s.matches);
220
+ });
221
+ return C(() => {
222
+ d(), u(), s = void 0;
223
+ }), i;
224
+ }
225
+ function xe(e, t = {}) {
226
+ function n(o, l) {
227
+ let f = h(e[h(o)]);
228
+ return l != null && (f = ae(f, l)), typeof f == "number" && (f = `${f}px`), f;
229
+ }
230
+ const { window: r = y, strategy: s = "min-width" } = t;
231
+ function i(o) {
232
+ return r ? r.matchMedia(o).matches : !1;
233
+ }
234
+ const c = (o) => N(() => `(min-width: ${n(o)})`, t), u = (o) => N(() => `(max-width: ${n(o)})`, t), d = Object.keys(e).reduce((o, l) => (Object.defineProperty(o, l, {
235
+ get: () => s === "min-width" ? c(l) : u(l),
236
+ enumerable: !0,
237
+ configurable: !0
238
+ }), o), {});
239
+ function a() {
240
+ const o = Object.keys(e).map((l) => [l, c(l)]);
241
+ return g(() => o.filter(([, l]) => l.value).map(([l]) => l));
242
+ }
243
+ return Object.assign(d, {
244
+ greaterOrEqual: c,
245
+ smallerOrEqual: u,
246
+ greater(o) {
247
+ return N(() => `(min-width: ${n(o, 0.1)})`, t);
248
+ },
249
+ smaller(o) {
250
+ return N(() => `(max-width: ${n(o, -0.1)})`, t);
251
+ },
252
+ between(o, l) {
253
+ return N(() => `(min-width: ${n(o)}) and (max-width: ${n(l, -0.1)})`, t);
254
+ },
255
+ isGreater(o) {
256
+ return i(`(min-width: ${n(o, 0.1)})`);
257
+ },
258
+ isGreaterOrEqual(o) {
259
+ return i(`(min-width: ${n(o)})`);
260
+ },
261
+ isSmaller(o) {
262
+ return i(`(max-width: ${n(o, -0.1)})`);
263
+ },
264
+ isSmallerOrEqual(o) {
265
+ return i(`(max-width: ${n(o)})`);
266
+ },
267
+ isInBetween(o, l) {
268
+ return i(`(min-width: ${n(o)}) and (max-width: ${n(l, -0.1)})`);
269
+ },
270
+ current: a,
271
+ active() {
272
+ const o = a();
273
+ return g(() => o.value.length === 0 ? "" : o.value.at(-1));
274
+ }
275
+ });
276
+ }
277
+ function ge(e, t, n = {}) {
278
+ const { window: r = y, ...s } = n;
279
+ let i;
280
+ const c = V(() => r && "ResizeObserver" in r), u = () => {
281
+ i && (i.disconnect(), i = void 0);
282
+ }, d = g(() => {
283
+ const l = h(e);
284
+ return Array.isArray(l) ? l.map((f) => T(f)) : [T(l)];
285
+ }), a = I(
286
+ d,
287
+ (l) => {
288
+ if (u(), c.value && r) {
289
+ i = new ResizeObserver(t);
290
+ for (const f of l)
291
+ f && i.observe(f, s);
292
+ }
293
+ },
294
+ { immediate: !0, flush: "post" }
295
+ ), o = () => {
296
+ u(), a();
297
+ };
298
+ return C(o), {
299
+ isSupported: c,
300
+ stop: o
301
+ };
302
+ }
303
+ function _e(e, t = { width: 0, height: 0 }, n = {}) {
304
+ const { window: r = y, box: s = "content-box" } = n, i = g(() => {
305
+ var l, f;
306
+ return (f = (l = T(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : f.includes("svg");
307
+ }), c = w(t.width), u = w(t.height), { stop: d } = ge(
308
+ e,
309
+ ([l]) => {
310
+ const f = s === "border-box" ? l.borderBoxSize : s === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
311
+ if (r && i.value) {
312
+ const m = T(e);
313
+ if (m) {
314
+ const p = m.getBoundingClientRect();
315
+ c.value = p.width, u.value = p.height;
316
+ }
317
+ } else if (f) {
318
+ const m = Array.isArray(f) ? f : [f];
319
+ c.value = m.reduce((p, { inlineSize: O }) => p + O, 0), u.value = m.reduce((p, { blockSize: O }) => p + O, 0);
320
+ } else
321
+ c.value = l.contentRect.width, u.value = l.contentRect.height;
322
+ },
323
+ n
324
+ );
325
+ F(() => {
326
+ const l = T(e);
327
+ l && (c.value = "offsetWidth" in l ? l.offsetWidth : t.width, u.value = "offsetHeight" in l ? l.offsetHeight : t.height);
328
+ });
329
+ const a = I(
330
+ () => T(e),
331
+ (l) => {
332
+ c.value = l ? t.width : 0, u.value = l ? t.height : 0;
333
+ }
334
+ );
335
+ function o() {
336
+ d(), a();
337
+ }
338
+ return {
339
+ width: c,
340
+ height: u,
341
+ stop: o
342
+ };
343
+ }
344
+ const ye = "focusin", Ee = "focusout";
345
+ function We(e, t = {}) {
346
+ const { window: n = y } = t, r = g(() => T(e)), s = w(!1), i = g(() => s.value), c = be(t);
347
+ return !n || !c.value ? { focused: i } : (_(r, ye, () => s.value = !0), _(r, Ee, () => s.value = !1), { focused: i });
348
+ }
349
+ const X = 1;
350
+ function Ae(e, t = {}) {
351
+ const {
352
+ throttle: n = 0,
353
+ idle: r = 200,
354
+ onStop: s = R,
355
+ onScroll: i = R,
356
+ offset: c = {
357
+ left: 0,
358
+ right: 0,
359
+ top: 0,
360
+ bottom: 0
361
+ },
362
+ eventListenerOptions: u = {
363
+ capture: !1,
364
+ passive: !0
365
+ },
366
+ behavior: d = "auto",
367
+ window: a = y,
368
+ onError: o = (v) => {
369
+ console.error(v);
370
+ }
371
+ } = t, l = w(0), f = w(0), m = g({
372
+ get() {
373
+ return l.value;
374
+ },
375
+ set(v) {
376
+ O(v, void 0);
377
+ }
378
+ }), p = g({
379
+ get() {
380
+ return f.value;
381
+ },
382
+ set(v) {
383
+ O(void 0, v);
384
+ }
385
+ });
386
+ function O(v, M) {
387
+ var b, D, $, W;
388
+ if (!a)
389
+ return;
390
+ const S = h(e);
391
+ if (!S)
392
+ return;
393
+ ($ = S instanceof Document ? a.document.body : S) == null || $.scrollTo({
394
+ top: (b = h(M)) != null ? b : p.value,
395
+ left: (D = h(v)) != null ? D : m.value,
396
+ behavior: h(d)
397
+ });
398
+ const j = ((W = S == null ? void 0 : S.document) == null ? void 0 : W.documentElement) || (S == null ? void 0 : S.documentElement) || S;
399
+ m != null && (l.value = j.scrollLeft), p != null && (f.value = j.scrollTop);
400
+ }
401
+ const A = w(!1), E = U({
402
+ left: !0,
403
+ right: !1,
404
+ top: !0,
405
+ bottom: !1
406
+ }), x = U({
407
+ left: !1,
408
+ right: !1,
409
+ top: !1,
410
+ bottom: !1
411
+ }), B = (v) => {
412
+ A.value && (A.value = !1, x.left = !1, x.right = !1, x.top = !1, x.bottom = !1, s(v));
413
+ }, Q = de(B, n + r), H = (v) => {
414
+ var M;
415
+ if (!a)
416
+ return;
417
+ const b = ((M = v == null ? void 0 : v.document) == null ? void 0 : M.documentElement) || (v == null ? void 0 : v.documentElement) || T(v), { display: D, flexDirection: $ } = getComputedStyle(b), W = b.scrollLeft;
418
+ x.left = W < l.value, x.right = W > l.value;
419
+ const S = Math.abs(W) <= (c.left || 0), j = Math.abs(W) + b.clientWidth >= b.scrollWidth - (c.right || 0) - X;
420
+ D === "flex" && $ === "row-reverse" ? (E.left = j, E.right = S) : (E.left = S, E.right = j), l.value = W;
421
+ let L = b.scrollTop;
422
+ v === a.document && !L && (L = a.document.body.scrollTop), x.top = L < f.value, x.bottom = L > f.value;
423
+ const Y = Math.abs(L) <= (c.top || 0), G = Math.abs(L) + b.clientHeight >= b.scrollHeight - (c.bottom || 0) - X;
424
+ D === "flex" && $ === "column-reverse" ? (E.top = G, E.bottom = Y) : (E.top = Y, E.bottom = G), f.value = L;
425
+ }, z = (v) => {
426
+ var M;
427
+ if (!a)
428
+ return;
429
+ const b = (M = v.target.documentElement) != null ? M : v.target;
430
+ H(b), A.value = !0, Q(v), i(v);
431
+ };
432
+ return _(
433
+ e,
434
+ "scroll",
435
+ n ? ve(z, n, !0, !1) : z,
436
+ u
437
+ ), F(() => {
438
+ try {
439
+ const v = h(e);
440
+ if (!v)
441
+ return;
442
+ H(v);
443
+ } catch (v) {
444
+ o(v);
445
+ }
446
+ }), _(
447
+ e,
448
+ "scrollend",
449
+ B,
450
+ u
451
+ ), {
452
+ x: m,
453
+ y: p,
454
+ isScrolling: A,
455
+ arrivedState: E,
456
+ directions: x,
457
+ measure() {
458
+ const v = h(e);
459
+ a && v && H(v);
460
+ }
461
+ };
462
+ }
463
+ function Me(e = {}) {
464
+ const { window: t = y, behavior: n = "auto" } = e;
465
+ if (!t)
466
+ return {
467
+ x: w(0),
468
+ y: w(0)
469
+ };
470
+ const r = w(t.scrollX), s = w(t.scrollY), i = g({
471
+ get() {
472
+ return r.value;
473
+ },
474
+ set(u) {
475
+ scrollTo({ left: u, behavior: n });
476
+ }
477
+ }), c = g({
478
+ get() {
479
+ return s.value;
480
+ },
481
+ set(u) {
482
+ scrollTo({ top: u, behavior: n });
483
+ }
484
+ });
485
+ return _(
486
+ t,
487
+ "scroll",
488
+ () => {
489
+ r.value = t.scrollX, s.value = t.scrollY;
490
+ },
491
+ {
492
+ capture: !1,
493
+ passive: !0
494
+ }
495
+ ), { x: i, y: c };
496
+ }
497
+ function Le(e = {}) {
498
+ const {
499
+ window: t = y,
500
+ initialWidth: n = Number.POSITIVE_INFINITY,
501
+ initialHeight: r = Number.POSITIVE_INFINITY,
502
+ listenOrientation: s = !0,
503
+ includeScrollbar: i = !0,
504
+ type: c = "inner"
505
+ } = e, u = w(n), d = w(r), a = () => {
506
+ t && (c === "outer" ? (u.value = t.outerWidth, d.value = t.outerHeight) : i ? (u.value = t.innerWidth, d.value = t.innerHeight) : (u.value = t.document.documentElement.clientWidth, d.value = t.document.documentElement.clientHeight));
507
+ };
508
+ if (a(), F(a), _("resize", a, { passive: !0 }), s) {
509
+ const o = N("(orientation: portrait)");
510
+ I(o, () => a());
511
+ }
512
+ return { width: u, height: d };
513
+ }
514
+ export {
515
+ _e as a,
516
+ Me as b,
517
+ Ae as c,
518
+ We as d,
519
+ N as e,
520
+ xe as f,
521
+ we as g,
522
+ be as h,
523
+ ge as i,
524
+ Te as o,
525
+ Le as u,
526
+ Oe as w
527
+ };
528
+ //# sourceMappingURL=index.CVpo3mlK.js.map