@adyen/bento-vue2 1.56.2 → 1.57.1

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 +19 -0
  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/avatar.js +1 -1
  22. package/dist/button.js +3 -3
  23. package/dist/card.js +1 -1
  24. package/dist/checkbox.js +3 -3
  25. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +7 -0
  26. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +1 -0
  27. package/dist/chunks/{action-bar.c68S34TI.js → action-bar.nUvnRVwP.js} +6 -6
  28. package/dist/chunks/{action-bar.c68S34TI.js.map → action-bar.nUvnRVwP.js.map} +1 -1
  29. package/dist/chunks/{alert.D8qqrobi.js → alert.Du9NfW-V.js} +2 -2
  30. package/dist/chunks/{alert.D8qqrobi.js.map → alert.Du9NfW-V.js.map} +1 -1
  31. package/dist/chunks/{avatar.BgwjpLQO.js → avatar.CP1oL5W2.js} +3 -4
  32. package/dist/chunks/{avatar.BgwjpLQO.js.map → avatar.CP1oL5W2.js.map} +1 -1
  33. package/dist/chunks/{base-modal.B9JnRNty.js → base-modal.DdznUtgC.js} +20 -20
  34. package/dist/chunks/base-modal.DdznUtgC.js.map +1 -0
  35. package/dist/chunks/{button-actions-with-menu.DhPRdnSt.js → button-actions-with-menu.CDLJMdJh.js} +5 -5
  36. package/dist/chunks/{button-actions-with-menu.DhPRdnSt.js.map → button-actions-with-menu.CDLJMdJh.js.map} +1 -1
  37. package/dist/chunks/{button-actions.ZBlB7bp4.js → button-actions.DUn_iPDm.js} +2 -2
  38. package/dist/chunks/{button-actions.ZBlB7bp4.js.map → button-actions.DUn_iPDm.js.map} +1 -1
  39. package/dist/chunks/{button.D7K0uXQm.js → button.BuD-IsW5.js} +2 -2
  40. package/dist/chunks/{button.D7K0uXQm.js.map → button.BuD-IsW5.js.map} +1 -1
  41. package/dist/chunks/{calendar.CiLR27-B.js → calendar.C0iatn5N.js} +39 -42
  42. package/dist/chunks/{calendar.CiLR27-B.js.map → calendar.C0iatn5N.js.map} +1 -1
  43. package/dist/chunks/{card.CZkqwnNe.js → card.BYUqSnBy.js} +2 -2
  44. package/dist/chunks/{card.CZkqwnNe.js.map → card.BYUqSnBy.js.map} +1 -1
  45. package/dist/chunks/{checkbox-group.COqNevz5.js → checkbox-group.HhNN-r-o.js} +4 -4
  46. package/dist/chunks/{checkbox-group.COqNevz5.js.map → checkbox-group.HhNN-r-o.js.map} +1 -1
  47. package/dist/chunks/{checkbox-input.CMhyJDdo.js → checkbox-input.Dr1GS2BZ.js} +53 -45
  48. package/dist/chunks/checkbox-input.Dr1GS2BZ.js.map +1 -0
  49. package/dist/chunks/{checkbox.LFeWM5p4.js → checkbox.CkaV8-b-.js} +4 -4
  50. package/dist/chunks/{checkbox.LFeWM5p4.js.map → checkbox.CkaV8-b-.js.map} +1 -1
  51. package/dist/chunks/{code-snippet.p15Tfobh.js → code-snippet.BdwtKOEj.js} +5 -5
  52. package/dist/chunks/{code-snippet.p15Tfobh.js.map → code-snippet.BdwtKOEj.js.map} +1 -1
  53. package/dist/chunks/{controls-group.B-JUz-ir.js → controls-group.CG5RvOSi.js} +2 -2
  54. package/dist/chunks/{controls-group.B-JUz-ir.js.map → controls-group.CG5RvOSi.js.map} +1 -1
  55. package/dist/chunks/{copy.JmRKnqLo.js → copy.MTsLLiC0.js} +4 -4
  56. package/dist/chunks/{copy.JmRKnqLo.js.map → copy.MTsLLiC0.js.map} +1 -1
  57. package/dist/chunks/{dashboard-section.DJ39VLp3.js → dashboard-section.DYk4LVm8.js} +4 -4
  58. package/dist/chunks/{dashboard-section.DJ39VLp3.js.map → dashboard-section.DYk4LVm8.js.map} +1 -1
  59. package/dist/chunks/{dashed-underline.D29Z776j.js → dashed-underline.lDp966e8.js} +3 -3
  60. package/dist/chunks/{dashed-underline.D29Z776j.js.map → dashed-underline.lDp966e8.js.map} +1 -1
  61. package/dist/chunks/{data-grid-template.BrgmYdx9.js → data-grid-template.Dcnw2_Du.js} +3 -3
  62. package/dist/chunks/{data-grid-template.BrgmYdx9.js.map → data-grid-template.Dcnw2_Du.js.map} +1 -1
  63. package/dist/chunks/{data-grid.CX58NCuD.js → data-grid.DwdO-UCB.js} +20 -20
  64. package/dist/chunks/{data-grid.CX58NCuD.js.map → data-grid.DwdO-UCB.js.map} +1 -1
  65. package/dist/chunks/{date-picker.2shSM0mi.js → date-picker.oVG4b_5b.js} +6 -7
  66. package/dist/chunks/{date-picker.2shSM0mi.js.map → date-picker.oVG4b_5b.js.map} +1 -1
  67. package/dist/chunks/{date-range-picker.hAWOq77C.js → date-range-picker.CbLz3jJx.js} +10 -11
  68. package/dist/chunks/{date-range-picker.hAWOq77C.js.map → date-range-picker.CbLz3jJx.js.map} +1 -1
  69. package/dist/chunks/dialog-page.uGh0kYDL.js +131 -0
  70. package/dist/chunks/dialog-page.uGh0kYDL.js.map +1 -0
  71. package/dist/chunks/{dropdown-tag.D_LJJSDW.js → dropdown-tag.CqcduQgK.js} +4 -4
  72. package/dist/chunks/{dropdown-tag.D_LJJSDW.js.map → dropdown-tag.CqcduQgK.js.map} +1 -1
  73. package/dist/chunks/{dropdown.DfnKDRBQ.js → dropdown.sRIb4drl.js} +5 -5
  74. package/dist/chunks/{dropdown.DfnKDRBQ.js.map → dropdown.sRIb4drl.js.map} +1 -1
  75. package/dist/chunks/{empty-state.Z97lmDoK.js → empty-state.IvvHHQ35.js} +2 -2
  76. package/dist/chunks/{empty-state.Z97lmDoK.js.map → empty-state.IvvHHQ35.js.map} +1 -1
  77. package/dist/chunks/{error-message.7bsic_sK.js → error-message.JskAm-Td.js} +8 -8
  78. package/dist/chunks/error-message.JskAm-Td.js.map +1 -0
  79. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  80. package/dist/chunks/{file-uploader.DtiNK2cF.js → file-uploader.DhOTdtfm.js} +6 -6
  81. package/dist/chunks/{file-uploader.DtiNK2cF.js.map → file-uploader.DhOTdtfm.js.map} +1 -1
  82. package/dist/chunks/{filter-bar.C3MsA2SC.js → filter-bar.DRDC6mhJ.js} +22 -23
  83. package/dist/chunks/{filter-bar.C3MsA2SC.js.map → filter-bar.DRDC6mhJ.js.map} +1 -1
  84. package/dist/chunks/{fixed-scroller.BJh4fxeV.js → fixed-scroller.D0a6q8_i.js} +2 -2
  85. package/dist/chunks/{fixed-scroller.BJh4fxeV.js.map → fixed-scroller.D0a6q8_i.js.map} +1 -1
  86. package/dist/chunks/{focus-trap.DEHn1dxN.js → focus-trap.DiqwA-bw.js} +2 -2
  87. package/dist/chunks/{focus-trap.DEHn1dxN.js.map → focus-trap.DiqwA-bw.js.map} +1 -1
  88. package/dist/chunks/{footer-actions.Blk5X8z1.js → footer-actions.CWOEDPKJ.js} +3 -3
  89. package/dist/chunks/{footer-actions.Blk5X8z1.js.map → footer-actions.CWOEDPKJ.js.map} +1 -1
  90. package/dist/chunks/{form-layout-title.CbdwXVqj.js → form-layout-title.DBCY18f8.js} +2 -2
  91. package/dist/chunks/{form-layout-title.CbdwXVqj.js.map → form-layout-title.DBCY18f8.js.map} +1 -1
  92. package/dist/chunks/{header-with-views.DCmkDn7u.js → header-with-views.B8ncHkZt.js} +15 -16
  93. package/dist/chunks/{header-with-views.DCmkDn7u.js.map → header-with-views.B8ncHkZt.js.map} +1 -1
  94. package/dist/chunks/{header.DbB-XuIe.js → header.byOrhnHk.js} +4 -4
  95. package/dist/chunks/{header.DbB-XuIe.js.map → header.byOrhnHk.js.map} +1 -1
  96. package/dist/chunks/index.oJzeCMPe.js +529 -0
  97. package/dist/chunks/{index.48Mn1OCp.js.map → index.oJzeCMPe.js.map} +1 -1
  98. package/dist/chunks/{info-icon-with-popover.CzP2P-pl.js → info-icon-with-popover.Cfng_pMj.js} +2 -2
  99. package/dist/chunks/{info-icon-with-popover.CzP2P-pl.js.map → info-icon-with-popover.Cfng_pMj.js.map} +1 -1
  100. package/dist/chunks/{info-icon.Dn0FHy-U.js → info-icon.DgCYoVE3.js} +3 -3
  101. package/dist/chunks/{info-icon.Dn0FHy-U.js.map → info-icon.DgCYoVE3.js.map} +1 -1
  102. package/dist/chunks/{input-field-password.DwRXYgcD.js → input-field-password.GhHsOaiD.js} +7 -7
  103. package/dist/chunks/{input-field-password.DwRXYgcD.js.map → input-field-password.GhHsOaiD.js.map} +1 -1
  104. package/dist/chunks/{input-field-phone-number.DGNoMZfu.js → input-field-phone-number.DFt3iS_A.js} +3 -3
  105. package/dist/chunks/{input-field-phone-number.DGNoMZfu.js.map → input-field-phone-number.DFt3iS_A.js.map} +1 -1
  106. package/dist/chunks/{input-field.BdJBLLFI.js → input-field.rHXIJKN8.js} +3 -3
  107. package/dist/chunks/{input-field.BdJBLLFI.js.map → input-field.rHXIJKN8.js.map} +1 -1
  108. package/dist/chunks/inspector.types.Dab4xYKV.js +104 -0
  109. package/dist/chunks/inspector.types.Dab4xYKV.js.map +1 -0
  110. package/dist/chunks/{layout-row.DWRoI0dm.js → layout-row.c0ugsIw6.js} +2 -2
  111. package/dist/chunks/{layout-row.DWRoI0dm.js.map → layout-row.c0ugsIw6.js.map} +1 -1
  112. package/dist/chunks/{link.BH3eB_7E.js → link.D0P79Toh.js} +35 -28
  113. package/dist/chunks/link.D0P79Toh.js.map +1 -0
  114. package/dist/chunks/{listbox-option-tag.BSQ8bM-O.js → listbox-option-tag.CBGk4m-_.js} +2 -2
  115. package/dist/chunks/{listbox-option-tag.BSQ8bM-O.js.map → listbox-option-tag.CBGk4m-_.js.map} +1 -1
  116. package/dist/chunks/{menu.BKcBx2qB.js → menu.DZEDTBYV.js} +3 -3
  117. package/dist/chunks/{menu.BKcBx2qB.js.map → menu.DZEDTBYV.js.map} +1 -1
  118. package/dist/chunks/{modal-fullscreen.BwVQfDn1.js → modal-fullscreen.DRQ4V5tT.js} +5 -5
  119. package/dist/chunks/{modal-fullscreen.BwVQfDn1.js.map → modal-fullscreen.DRQ4V5tT.js.map} +1 -1
  120. package/dist/chunks/{modal.BL-FWXsY.js → modal.DDF63uBR.js} +5 -5
  121. package/dist/chunks/{modal.BL-FWXsY.js.map → modal.DDF63uBR.js.map} +1 -1
  122. package/dist/chunks/{pagination.CX5fg6Ma.js → pagination.BJ4qwHJn.js} +50 -58
  123. package/dist/chunks/pagination.BJ4qwHJn.js.map +1 -0
  124. package/dist/chunks/{popover.Bb9JeZVy.js → popover.DXo3nXew.js} +4 -4
  125. package/dist/chunks/{popover.Bb9JeZVy.js.map → popover.DXo3nXew.js.map} +1 -1
  126. package/dist/chunks/{popper-container.DieshXa8.js → popper-container.1kHSxyxu.js} +2 -2
  127. package/dist/chunks/{popper-container.DieshXa8.js.map → popper-container.1kHSxyxu.js.map} +1 -1
  128. package/dist/chunks/{promo-banner.D5QXTiEH.js → promo-banner.BpLrkuMc.js} +3 -3
  129. package/dist/chunks/{promo-banner.D5QXTiEH.js.map → promo-banner.BpLrkuMc.js.map} +1 -1
  130. package/dist/chunks/{radio-group.BuKC_n23.js → radio-group.DtCgLBuL.js} +4 -4
  131. package/dist/chunks/{radio-group.BuKC_n23.js.map → radio-group.DtCgLBuL.js.map} +1 -1
  132. package/dist/chunks/{search-bar.C-_Ba3wd.js → search-bar.Cc8VBCjQ.js} +3 -3
  133. package/dist/chunks/{search-bar.C-_Ba3wd.js.map → search-bar.Cc8VBCjQ.js.map} +1 -1
  134. package/dist/chunks/{secondary-nav.uhESbxKZ.js → secondary-nav.DEDQjtj6.js} +3 -3
  135. package/dist/chunks/{secondary-nav.uhESbxKZ.js.map → secondary-nav.DEDQjtj6.js.map} +1 -1
  136. package/dist/chunks/{segmented-control.CCgCeLDQ.js → segmented-control.BQlmGv2x.js} +2 -2
  137. package/dist/chunks/{segmented-control.CCgCeLDQ.js.map → segmented-control.BQlmGv2x.js.map} +1 -1
  138. package/dist/chunks/{selection-card-group.Dj9wWfmY.js → selection-card-group.BniN7KWU.js} +5 -5
  139. package/dist/chunks/{selection-card-group.Dj9wWfmY.js.map → selection-card-group.BniN7KWU.js.map} +1 -1
  140. package/dist/chunks/{sidepanel.DMXzlqbw.js → sidepanel.DfQaLZEA.js} +5 -5
  141. package/dist/chunks/{sidepanel.DMXzlqbw.js.map → sidepanel.DfQaLZEA.js.map} +1 -1
  142. package/dist/chunks/{structured-list-item.DZ1_vy5W.js → structured-list-item.xaedKywV.js} +5 -5
  143. package/dist/chunks/{structured-list-item.DZ1_vy5W.js.map → structured-list-item.xaedKywV.js.map} +1 -1
  144. package/dist/chunks/{summary-grid.types.D-OotxnX.js → summary-grid.types.CNEeGgWh.js} +5 -5
  145. package/dist/chunks/{summary-grid.types.D-OotxnX.js.map → summary-grid.types.CNEeGgWh.js.map} +1 -1
  146. package/dist/chunks/{tabs.BfL4CUD1.js → tabs.DX_Gq12z.js} +2 -2
  147. package/dist/chunks/{tabs.BfL4CUD1.js.map → tabs.DX_Gq12z.js.map} +1 -1
  148. package/dist/chunks/{tag.C7ATWnRW.js → tag.C7kJJ5Ki.js} +2 -2
  149. package/dist/chunks/{tag.C7ATWnRW.js.map → tag.C7kJJ5Ki.js.map} +1 -1
  150. package/dist/chunks/{textarea.BkUzMu8d.js → textarea.CdA36VsY.js} +3 -3
  151. package/dist/chunks/{textarea.BkUzMu8d.js.map → textarea.CdA36VsY.js.map} +1 -1
  152. package/dist/chunks/{timeline-item.DcutETie.js → timeline-item.D87PFH_o.js} +7 -7
  153. package/dist/chunks/{timeline-item.DcutETie.js.map → timeline-item.D87PFH_o.js.map} +1 -1
  154. package/dist/chunks/{toast.BV0qP2AF.js → toast.BuxfqZJb.js} +4 -5
  155. package/dist/chunks/{toast.BV0qP2AF.js.map → toast.BuxfqZJb.js.map} +1 -1
  156. package/dist/chunks/{toggle-button.TDry-9iu.js → toggle-button.ChDbeBZ8.js} +2 -2
  157. package/dist/chunks/{toggle-button.TDry-9iu.js.map → toggle-button.ChDbeBZ8.js.map} +1 -1
  158. package/dist/chunks/{tooltip.CfER_5In.js → tooltip.8KbMqaXP.js} +5 -3
  159. package/dist/chunks/{tooltip.CfER_5In.js.map → tooltip.8KbMqaXP.js.map} +1 -1
  160. package/dist/chunks/{tutorial.AOMH-Jq3.js → tutorial.D74hJVBb.js} +5 -5
  161. package/dist/chunks/{tutorial.AOMH-Jq3.js.map → tutorial.D74hJVBb.js.map} +1 -1
  162. package/dist/chunks/{use-cached-selected-values.KPoAaRPS.js → use-cached-selected-values.CSVs_E5A.js} +4 -4
  163. package/dist/chunks/{use-cached-selected-values.KPoAaRPS.js.map → use-cached-selected-values.CSVs_E5A.js.map} +1 -1
  164. package/dist/code-snippet.js +1 -1
  165. package/dist/dashboard-template.js +1 -1
  166. package/dist/dashed-underline.js +1 -1
  167. package/dist/data-grid-template.js +1 -1
  168. package/dist/data-grid.js +1 -1
  169. package/dist/date-picker.js +2 -2
  170. package/dist/date-range-picker.js +2 -2
  171. package/dist/dropdown.js +3 -3
  172. package/dist/empty-state.js +1 -1
  173. package/dist/file-uploader.js +1 -1
  174. package/dist/filter-bar.js +1 -1
  175. package/dist/focus-trap.js +1 -1
  176. package/dist/form-layout.js +1 -1
  177. package/dist/header-with-views.js +1 -1
  178. package/dist/header.js +1 -1
  179. package/dist/index.js +56 -56
  180. package/dist/info-icon.js +1 -1
  181. package/dist/input-field-password.js +1 -1
  182. package/dist/input-field-phone-number.js +1 -1
  183. package/dist/input-field.js +1 -1
  184. package/dist/inspector.js +1 -1
  185. package/dist/internal.js +12 -12
  186. package/dist/layout.js +1 -1
  187. package/dist/link.js +1 -1
  188. package/dist/menu.js +1 -1
  189. package/dist/modal-fullscreen.js +1 -1
  190. package/dist/modal.js +2 -2
  191. package/dist/pagination.js +1 -1
  192. package/dist/popover.js +1 -1
  193. package/dist/popper-container.js +1 -1
  194. package/dist/promo-banner.js +1 -1
  195. package/dist/radio-group.js +1 -1
  196. package/dist/rich-text-editor.js +6203 -0
  197. package/dist/rich-text-editor.js.map +1 -0
  198. package/dist/search-bar.js +2 -2
  199. package/dist/secondary-nav.js +1 -1
  200. package/dist/segmented-control.js +1 -1
  201. package/dist/selection-card.js +1 -1
  202. package/dist/sidepanel.js +1 -1
  203. package/dist/structured-list.js +1 -1
  204. package/dist/styles/bento-dark.css +22 -1
  205. package/dist/styles/bento-light.css +22 -1
  206. package/dist/styles/bento.css +22 -1
  207. package/dist/styles/legacy.css +22 -1
  208. package/dist/styles/styleguide.css +22 -1
  209. package/dist/summary-grid.js +1 -1
  210. package/dist/tabs.js +1 -1
  211. package/dist/tag.js +1 -1
  212. package/dist/textarea.js +1 -1
  213. package/dist/timeline.js +1 -1
  214. package/dist/toast.js +1 -1
  215. package/dist/tutorial.js +1 -1
  216. package/dist/web-types.json +254 -1
  217. package/package.json +16 -5
  218. package/dist/chunks/base-modal.B9JnRNty.js.map +0 -1
  219. package/dist/chunks/checkbox-input.CMhyJDdo.js.map +0 -1
  220. package/dist/chunks/dialog-page.BveDXzz1.js +0 -130
  221. package/dist/chunks/dialog-page.BveDXzz1.js.map +0 -1
  222. package/dist/chunks/error-message.7bsic_sK.js.map +0 -1
  223. package/dist/chunks/index.48Mn1OCp.js +0 -387
  224. package/dist/chunks/inspector.types.Cloa1Rnz.js +0 -105
  225. package/dist/chunks/inspector.types.Cloa1Rnz.js.map +0 -1
  226. package/dist/chunks/link.BH3eB_7E.js.map +0 -1
  227. package/dist/chunks/pagination.CX5fg6Ma.js.map +0 -1
@@ -0,0 +1,529 @@
1
+ import "./index.Cl4_42j5.js";
2
+ import { onMounted as q, nextTick as J, watch as I, unref as Z, 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";
3
+ function C(e) {
4
+ return ee() ? (te(e), !0) : !1;
5
+ }
6
+ function h(e) {
7
+ return typeof e == "function" ? e() : Z(e);
8
+ }
9
+ const re = typeof window < "u" && typeof document < "u";
10
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
11
+ const ie = (e) => e != null, le = Object.prototype.toString, se = (e) => le.call(e) === "[object Object]", R = () => {
12
+ };
13
+ function P(e, t) {
14
+ function n(...r) {
15
+ return new Promise((s, i) => {
16
+ Promise.resolve(e(() => t.apply(this, r), { fn: t, thisArg: this, args: r })).then(s).catch(i);
17
+ });
18
+ }
19
+ return n;
20
+ }
21
+ const ue = (e) => e();
22
+ function K(e, t = {}) {
23
+ let n, r, s = R;
24
+ const i = (u) => {
25
+ clearTimeout(u), s(), s = R;
26
+ };
27
+ return (u) => {
28
+ const d = h(e), a = h(t.maxWait);
29
+ return n && i(n), d <= 0 || a !== void 0 && a <= 0 ? (r && (i(r), r = null), Promise.resolve(u())) : new Promise((o, l) => {
30
+ s = t.rejectOnCancel ? l : o, a && !r && (r = setTimeout(() => {
31
+ n && i(n), r = null, o(u());
32
+ }, a)), n = setTimeout(() => {
33
+ r && i(r), r = null, o(u());
34
+ }, d);
35
+ });
36
+ };
37
+ }
38
+ function ce(...e) {
39
+ let t = 0, n, r = !0, s = R, i, c, u, d, a;
40
+ !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;
41
+ const o = () => {
42
+ n && (clearTimeout(n), n = void 0, s(), s = R);
43
+ };
44
+ return (f) => {
45
+ const m = h(c), p = Date.now() - t, O = () => i = f();
46
+ return o(), m <= 0 ? (t = Date.now(), O()) : (p > m && (d || !r) ? (t = Date.now(), O()) : u && (i = new Promise((A, E) => {
47
+ s = a ? E : A, n = setTimeout(() => {
48
+ t = Date.now(), r = !0, A(O()), o();
49
+ }, Math.max(0, m - p));
50
+ })), !d && !n && (n = setTimeout(() => r = !0, m)), r = !1, i);
51
+ };
52
+ }
53
+ function ae(e, t) {
54
+ var n;
55
+ if (typeof e == "number")
56
+ return e + t;
57
+ const r = ((n = e.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", s = e.slice(r.length), i = Number.parseFloat(r) + t;
58
+ return Number.isNaN(i) ? e : i + s;
59
+ }
60
+ function fe(e) {
61
+ return k();
62
+ }
63
+ function de(e, t = 200, n = {}) {
64
+ return P(
65
+ K(t, n),
66
+ e
67
+ );
68
+ }
69
+ function ve(e, t = 200, n = !1, r = !0, s = !1) {
70
+ return P(
71
+ ce(t, n, r, s),
72
+ e
73
+ );
74
+ }
75
+ function me(e, t, n = {}) {
76
+ const {
77
+ eventFilter: r = ue,
78
+ ...s
79
+ } = n;
80
+ return I(
81
+ e,
82
+ P(
83
+ r,
84
+ t
85
+ ),
86
+ s
87
+ );
88
+ }
89
+ function F(e, t = !0, n) {
90
+ fe() ? q(e, n) : t ? e() : J(e);
91
+ }
92
+ function Te(e, t, n = {}) {
93
+ const {
94
+ debounce: r = 0,
95
+ maxWait: s = void 0,
96
+ ...i
97
+ } = n;
98
+ return me(
99
+ e,
100
+ t,
101
+ {
102
+ ...i,
103
+ eventFilter: K(r, { maxWait: s })
104
+ }
105
+ );
106
+ }
107
+ const y = re ? window : void 0;
108
+ function T(e) {
109
+ var t;
110
+ const n = h(e);
111
+ return (t = n == null ? void 0 : n.$el) != null ? t : n;
112
+ }
113
+ function _(...e) {
114
+ let t, n, r, s;
115
+ if (typeof e[0] == "string" || Array.isArray(e[0]) ? ([n, r, s] = e, t = y) : [t, n, r, s] = e, !t)
116
+ return R;
117
+ Array.isArray(n) || (n = [n]), Array.isArray(r) || (r = [r]);
118
+ const i = [], c = () => {
119
+ i.forEach((o) => o()), i.length = 0;
120
+ }, u = (o, l, f, m) => (o.addEventListener(l, f, m), () => o.removeEventListener(l, f, m)), d = I(
121
+ () => [T(t), h(s)],
122
+ ([o, l]) => {
123
+ if (c(), !o)
124
+ return;
125
+ const f = se(l) ? { ...l } : l;
126
+ i.push(
127
+ ...n.flatMap((m) => r.map((p) => u(o, m, p, f)))
128
+ );
129
+ },
130
+ { immediate: !0, flush: "post" }
131
+ ), a = () => {
132
+ d(), c();
133
+ };
134
+ return C(a), a;
135
+ }
136
+ function he(e) {
137
+ return typeof e == "function" ? e : typeof e == "string" ? (t) => t.key === e : Array.isArray(e) ? (t) => e.includes(t.key) : () => !0;
138
+ }
139
+ function xe(...e) {
140
+ let t, n, r = {};
141
+ 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]);
142
+ const {
143
+ target: s = y,
144
+ eventName: i = "keydown",
145
+ passive: c = !1,
146
+ dedupe: u = !1
147
+ } = r, d = he(t);
148
+ return _(s, i, (o) => {
149
+ o.repeat && h(u) || d(o) && n(o);
150
+ }, c);
151
+ }
152
+ function pe() {
153
+ const e = w(!1);
154
+ return k() && q(() => {
155
+ e.value = !0;
156
+ }, void 0), e;
157
+ }
158
+ function V(e) {
159
+ const t = pe();
160
+ return g(() => (t.value, !!e()));
161
+ }
162
+ function we(e, t, n = {}) {
163
+ const { window: r = y, ...s } = n;
164
+ let i;
165
+ const c = V(() => r && "MutationObserver" in r), u = () => {
166
+ i && (i.disconnect(), i = void 0);
167
+ }, d = g(() => {
168
+ const f = h(e), m = (Array.isArray(f) ? f : [f]).map(T).filter(ie);
169
+ return new Set(m);
170
+ }), a = I(
171
+ () => d.value,
172
+ (f) => {
173
+ u(), c.value && f.size && (i = new MutationObserver(t), f.forEach((m) => i.observe(m, s)));
174
+ },
175
+ { immediate: !0, flush: "post" }
176
+ ), o = () => i == null ? void 0 : i.takeRecords(), l = () => {
177
+ a(), u();
178
+ };
179
+ return C(l), {
180
+ isSupported: c,
181
+ stop: l,
182
+ takeRecords: o
183
+ };
184
+ }
185
+ function be(e = {}) {
186
+ var t;
187
+ const {
188
+ window: n = y,
189
+ deep: r = !0,
190
+ triggerOnRemoval: s = !1
191
+ } = e, i = (t = e.document) != null ? t : n == null ? void 0 : n.document, c = () => {
192
+ var a;
193
+ let o = i == null ? void 0 : i.activeElement;
194
+ if (r)
195
+ for (; o != null && o.shadowRoot; )
196
+ o = (a = o == null ? void 0 : o.shadowRoot) == null ? void 0 : a.activeElement;
197
+ return o;
198
+ }, u = w(), d = () => {
199
+ u.value = c();
200
+ };
201
+ return n && (_(n, "blur", (a) => {
202
+ a.relatedTarget === null && d();
203
+ }, !0), _(n, "focus", d, !0)), s && we(i, (a) => {
204
+ a.filter((o) => o.removedNodes.length).map((o) => Array.from(o.removedNodes)).flat().forEach((o) => {
205
+ o === u.value && d();
206
+ });
207
+ }, {
208
+ childList: !0,
209
+ subtree: !0
210
+ }), d(), u;
211
+ }
212
+ function N(e, t = {}) {
213
+ const { window: n = y } = t, r = V(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
214
+ let s;
215
+ const i = w(!1), c = (a) => {
216
+ i.value = a.matches;
217
+ }, u = () => {
218
+ s && ("removeEventListener" in s ? s.removeEventListener("change", c) : s.removeListener(c));
219
+ }, d = oe(() => {
220
+ r.value && (u(), s = n.matchMedia(h(e)), "addEventListener" in s ? s.addEventListener("change", c) : s.addListener(c), i.value = s.matches);
221
+ });
222
+ return C(() => {
223
+ d(), u(), s = void 0;
224
+ }), i;
225
+ }
226
+ function _e(e, t = {}) {
227
+ function n(o, l) {
228
+ let f = h(e[h(o)]);
229
+ return l != null && (f = ae(f, l)), typeof f == "number" && (f = `${f}px`), f;
230
+ }
231
+ const { window: r = y, strategy: s = "min-width" } = t;
232
+ function i(o) {
233
+ return r ? r.matchMedia(o).matches : !1;
234
+ }
235
+ 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, {
236
+ get: () => s === "min-width" ? c(l) : u(l),
237
+ enumerable: !0,
238
+ configurable: !0
239
+ }), o), {});
240
+ function a() {
241
+ const o = Object.keys(e).map((l) => [l, c(l)]);
242
+ return g(() => o.filter(([, l]) => l.value).map(([l]) => l));
243
+ }
244
+ return Object.assign(d, {
245
+ greaterOrEqual: c,
246
+ smallerOrEqual: u,
247
+ greater(o) {
248
+ return N(() => `(min-width: ${n(o, 0.1)})`, t);
249
+ },
250
+ smaller(o) {
251
+ return N(() => `(max-width: ${n(o, -0.1)})`, t);
252
+ },
253
+ between(o, l) {
254
+ return N(() => `(min-width: ${n(o)}) and (max-width: ${n(l, -0.1)})`, t);
255
+ },
256
+ isGreater(o) {
257
+ return i(`(min-width: ${n(o, 0.1)})`);
258
+ },
259
+ isGreaterOrEqual(o) {
260
+ return i(`(min-width: ${n(o)})`);
261
+ },
262
+ isSmaller(o) {
263
+ return i(`(max-width: ${n(o, -0.1)})`);
264
+ },
265
+ isSmallerOrEqual(o) {
266
+ return i(`(max-width: ${n(o)})`);
267
+ },
268
+ isInBetween(o, l) {
269
+ return i(`(min-width: ${n(o)}) and (max-width: ${n(l, -0.1)})`);
270
+ },
271
+ current: a,
272
+ active() {
273
+ const o = a();
274
+ return g(() => o.value.length === 0 ? "" : o.value.at(-1));
275
+ }
276
+ });
277
+ }
278
+ function ge(e, t, n = {}) {
279
+ const { window: r = y, ...s } = n;
280
+ let i;
281
+ const c = V(() => r && "ResizeObserver" in r), u = () => {
282
+ i && (i.disconnect(), i = void 0);
283
+ }, d = g(() => {
284
+ const l = h(e);
285
+ return Array.isArray(l) ? l.map((f) => T(f)) : [T(l)];
286
+ }), a = I(
287
+ d,
288
+ (l) => {
289
+ if (u(), c.value && r) {
290
+ i = new ResizeObserver(t);
291
+ for (const f of l)
292
+ f && i.observe(f, s);
293
+ }
294
+ },
295
+ { immediate: !0, flush: "post" }
296
+ ), o = () => {
297
+ u(), a();
298
+ };
299
+ return C(o), {
300
+ isSupported: c,
301
+ stop: o
302
+ };
303
+ }
304
+ function We(e, t = { width: 0, height: 0 }, n = {}) {
305
+ const { window: r = y, box: s = "content-box" } = n, i = g(() => {
306
+ var l, f;
307
+ return (f = (l = T(e)) == null ? void 0 : l.namespaceURI) == null ? void 0 : f.includes("svg");
308
+ }), c = w(t.width), u = w(t.height), { stop: d } = ge(
309
+ e,
310
+ ([l]) => {
311
+ const f = s === "border-box" ? l.borderBoxSize : s === "content-box" ? l.contentBoxSize : l.devicePixelContentBoxSize;
312
+ if (r && i.value) {
313
+ const m = T(e);
314
+ if (m) {
315
+ const p = m.getBoundingClientRect();
316
+ c.value = p.width, u.value = p.height;
317
+ }
318
+ } else if (f) {
319
+ const m = Array.isArray(f) ? f : [f];
320
+ c.value = m.reduce((p, { inlineSize: O }) => p + O, 0), u.value = m.reduce((p, { blockSize: O }) => p + O, 0);
321
+ } else
322
+ c.value = l.contentRect.width, u.value = l.contentRect.height;
323
+ },
324
+ n
325
+ );
326
+ F(() => {
327
+ const l = T(e);
328
+ l && (c.value = "offsetWidth" in l ? l.offsetWidth : t.width, u.value = "offsetHeight" in l ? l.offsetHeight : t.height);
329
+ });
330
+ const a = I(
331
+ () => T(e),
332
+ (l) => {
333
+ c.value = l ? t.width : 0, u.value = l ? t.height : 0;
334
+ }
335
+ );
336
+ function o() {
337
+ d(), a();
338
+ }
339
+ return {
340
+ width: c,
341
+ height: u,
342
+ stop: o
343
+ };
344
+ }
345
+ const ye = "focusin", Ee = "focusout";
346
+ function Ae(e, t = {}) {
347
+ const { window: n = y } = t, r = g(() => T(e)), s = w(!1), i = g(() => s.value), c = be(t);
348
+ return !n || !c.value ? { focused: i } : (_(r, ye, () => s.value = !0), _(r, Ee, () => s.value = !1), { focused: i });
349
+ }
350
+ const X = 1;
351
+ function Me(e, t = {}) {
352
+ const {
353
+ throttle: n = 0,
354
+ idle: r = 200,
355
+ onStop: s = R,
356
+ onScroll: i = R,
357
+ offset: c = {
358
+ left: 0,
359
+ right: 0,
360
+ top: 0,
361
+ bottom: 0
362
+ },
363
+ eventListenerOptions: u = {
364
+ capture: !1,
365
+ passive: !0
366
+ },
367
+ behavior: d = "auto",
368
+ window: a = y,
369
+ onError: o = (v) => {
370
+ console.error(v);
371
+ }
372
+ } = t, l = w(0), f = w(0), m = g({
373
+ get() {
374
+ return l.value;
375
+ },
376
+ set(v) {
377
+ O(v, void 0);
378
+ }
379
+ }), p = g({
380
+ get() {
381
+ return f.value;
382
+ },
383
+ set(v) {
384
+ O(void 0, v);
385
+ }
386
+ });
387
+ function O(v, M) {
388
+ var b, D, $, W;
389
+ if (!a)
390
+ return;
391
+ const S = h(e);
392
+ if (!S)
393
+ return;
394
+ ($ = S instanceof Document ? a.document.body : S) == null || $.scrollTo({
395
+ top: (b = h(M)) != null ? b : p.value,
396
+ left: (D = h(v)) != null ? D : m.value,
397
+ behavior: h(d)
398
+ });
399
+ const j = ((W = S == null ? void 0 : S.document) == null ? void 0 : W.documentElement) || (S == null ? void 0 : S.documentElement) || S;
400
+ m != null && (l.value = j.scrollLeft), p != null && (f.value = j.scrollTop);
401
+ }
402
+ const A = w(!1), E = U({
403
+ left: !0,
404
+ right: !1,
405
+ top: !0,
406
+ bottom: !1
407
+ }), x = U({
408
+ left: !1,
409
+ right: !1,
410
+ top: !1,
411
+ bottom: !1
412
+ }), B = (v) => {
413
+ A.value && (A.value = !1, x.left = !1, x.right = !1, x.top = !1, x.bottom = !1, s(v));
414
+ }, Q = de(B, n + r), H = (v) => {
415
+ var M;
416
+ if (!a)
417
+ return;
418
+ 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;
419
+ x.left = W < l.value, x.right = W > l.value;
420
+ const S = Math.abs(W) <= (c.left || 0), j = Math.abs(W) + b.clientWidth >= b.scrollWidth - (c.right || 0) - X;
421
+ D === "flex" && $ === "row-reverse" ? (E.left = j, E.right = S) : (E.left = S, E.right = j), l.value = W;
422
+ let L = b.scrollTop;
423
+ v === a.document && !L && (L = a.document.body.scrollTop), x.top = L < f.value, x.bottom = L > f.value;
424
+ const Y = Math.abs(L) <= (c.top || 0), G = Math.abs(L) + b.clientHeight >= b.scrollHeight - (c.bottom || 0) - X;
425
+ D === "flex" && $ === "column-reverse" ? (E.top = G, E.bottom = Y) : (E.top = Y, E.bottom = G), f.value = L;
426
+ }, z = (v) => {
427
+ var M;
428
+ if (!a)
429
+ return;
430
+ const b = (M = v.target.documentElement) != null ? M : v.target;
431
+ H(b), A.value = !0, Q(v), i(v);
432
+ };
433
+ return _(
434
+ e,
435
+ "scroll",
436
+ n ? ve(z, n, !0, !1) : z,
437
+ u
438
+ ), F(() => {
439
+ try {
440
+ const v = h(e);
441
+ if (!v)
442
+ return;
443
+ H(v);
444
+ } catch (v) {
445
+ o(v);
446
+ }
447
+ }), _(
448
+ e,
449
+ "scrollend",
450
+ B,
451
+ u
452
+ ), {
453
+ x: m,
454
+ y: p,
455
+ isScrolling: A,
456
+ arrivedState: E,
457
+ directions: x,
458
+ measure() {
459
+ const v = h(e);
460
+ a && v && H(v);
461
+ }
462
+ };
463
+ }
464
+ function Le(e = {}) {
465
+ const { window: t = y, behavior: n = "auto" } = e;
466
+ if (!t)
467
+ return {
468
+ x: w(0),
469
+ y: w(0)
470
+ };
471
+ const r = w(t.scrollX), s = w(t.scrollY), i = g({
472
+ get() {
473
+ return r.value;
474
+ },
475
+ set(u) {
476
+ scrollTo({ left: u, behavior: n });
477
+ }
478
+ }), c = g({
479
+ get() {
480
+ return s.value;
481
+ },
482
+ set(u) {
483
+ scrollTo({ top: u, behavior: n });
484
+ }
485
+ });
486
+ return _(
487
+ t,
488
+ "scroll",
489
+ () => {
490
+ r.value = t.scrollX, s.value = t.scrollY;
491
+ },
492
+ {
493
+ capture: !1,
494
+ passive: !0
495
+ }
496
+ ), { x: i, y: c };
497
+ }
498
+ function Re(e = {}) {
499
+ const {
500
+ window: t = y,
501
+ initialWidth: n = Number.POSITIVE_INFINITY,
502
+ initialHeight: r = Number.POSITIVE_INFINITY,
503
+ listenOrientation: s = !0,
504
+ includeScrollbar: i = !0,
505
+ type: c = "inner"
506
+ } = e, u = w(n), d = w(r), a = () => {
507
+ 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));
508
+ };
509
+ if (a(), F(a), _("resize", a, { passive: !0 }), s) {
510
+ const o = N("(orientation: portrait)");
511
+ I(o, () => a());
512
+ }
513
+ return { width: u, height: d };
514
+ }
515
+ export {
516
+ We as a,
517
+ Le as b,
518
+ Me as c,
519
+ Ae as d,
520
+ N as e,
521
+ _e as f,
522
+ we as g,
523
+ be as h,
524
+ ge as i,
525
+ xe as o,
526
+ Re as u,
527
+ Te as w
528
+ };
529
+ //# sourceMappingURL=index.oJzeCMPe.js.map