@adyen/bento-vue3 1.42.0 → 1.44.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 (237) hide show
  1. package/dist/@types/packages/vue2/src/components/button/components/button-actions/composables/use-stack-buttons/use-stack-buttons.d.ts +10 -0
  2. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/checkbox/checkbox.vue.d.ts +3 -3
  4. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +8 -8
  5. package/dist/@types/packages/vue2/src/components/code-snippet/code-snippet.vue.d.ts +50 -32
  6. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-cell/data-grid-cell.vue.d.ts +15 -0
  7. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-config-settings/data-grid-config-settings.vue.d.ts +3 -3
  8. package/dist/@types/packages/vue2/src/components/data-grid/components/data-grid-row/data-grid-row.vue.d.ts +1 -350
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-calculate-column-width/use-calculate-column-width.types.d.ts +1 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-scroller/use-scroller.d.ts +1 -0
  11. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-selector/use-selector.d.ts +3 -2
  12. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +3 -0
  13. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +36 -4
  14. package/dist/@types/packages/vue2/src/components/date-picker/date-picker.vue.d.ts +21 -15
  15. package/dist/@types/packages/vue2/src/components/date-range-picker/components/date-range-picker-calendar/date-range-picker-calendar.vue.d.ts +56 -38
  16. package/dist/@types/packages/vue2/src/components/date-range-picker/date-range-picker.vue.d.ts +77 -53
  17. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +6 -4
  18. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +4 -2
  19. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  20. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +20 -12
  21. package/dist/@types/packages/vue2/src/components/empty-state/empty-state.vue.d.ts +1 -1
  22. package/dist/@types/packages/vue2/src/components/file-uploader/file-uploader.types.d.ts +6 -2
  23. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +228 -180
  24. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter/base-filter.vue.d.ts +6 -6
  25. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +12 -12
  26. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +27 -21
  27. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +139 -97
  28. package/dist/@types/packages/vue2/src/components/filter-bar/components/filter-bar-button/filter-bar-button.vue.d.ts +1 -1
  29. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +15 -15
  30. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +15 -15
  31. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +208 -160
  32. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +9 -0
  33. package/dist/@types/packages/vue2/src/components/input-field/input-field.vue.d.ts +3 -3
  34. package/dist/@types/packages/vue2/src/components/input-field-password/input-field-password.vue.d.ts +1 -1
  35. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.keys.d.ts +1 -0
  36. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue.d.ts +16 -1
  37. package/dist/@types/packages/vue2/src/components/internal/button-actions-with-menu/index.d.ts +2 -0
  38. package/dist/@types/packages/vue2/src/components/internal/checkbox-input/checkbox-input.vue.d.ts +1 -1
  39. package/dist/@types/packages/vue2/src/components/internal/controls-group/controls-group.vue.d.ts +1 -1
  40. package/dist/@types/packages/vue2/src/components/internal/field-label/field-label.vue.d.ts +1 -1
  41. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  42. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/components/listbox-multi-select-category/listbox-multi-select-category.vue.d.ts +3 -3
  43. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/components/listbox-multi-select-options/listbox-multi-select-options.vue.d.ts +6 -6
  44. package/dist/@types/packages/vue2/src/components/internal/listbox/components/listbox-multi-select/listbox-multi-select.vue.d.ts +9 -9
  45. package/dist/@types/packages/vue2/src/components/internal/listbox/listbox.vue.d.ts +15 -15
  46. package/dist/@types/packages/vue2/src/components/internal/radio-input/radio-input.vue.d.ts +1 -1
  47. package/dist/@types/packages/vue2/src/components/internal/tooltip/tooltip.vue.d.ts +5 -5
  48. package/dist/@types/packages/vue2/src/components/menu/components/menu-item-list/menu-item-list.vue.d.ts +15 -0
  49. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +48 -3
  50. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +1 -1
  51. package/dist/@types/packages/vue2/src/components/modal/components/modal-default/modal-default.vue.d.ts +1 -1
  52. package/dist/@types/packages/vue2/src/components/modal/components/modal-dialog/modal-dialog.vue.d.ts +1 -1
  53. package/dist/@types/packages/vue2/src/components/modal/components/modal-page/modal-page.vue.d.ts +1 -1
  54. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +7 -7
  55. package/dist/@types/packages/vue2/src/components/modal-fullscreen/components/modal-fullscreen-page.vue.d.ts +1 -1
  56. package/dist/@types/packages/vue2/src/components/modal-fullscreen/modal-fullscreen.vue.d.ts +1 -1
  57. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +1 -1
  58. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +1 -1
  59. package/dist/@types/packages/vue2/src/components/promo-banner/promo-banner.vue.d.ts +2 -2
  60. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +2 -2
  61. package/dist/@types/packages/vue2/src/components/selection-card/components/selection-card-group/selection-card-group.vue.d.ts +3 -3
  62. package/dist/@types/packages/vue2/src/components/sidepanel/components/sidepanel-page.vue.d.ts +1 -1
  63. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -1
  64. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +2 -2
  65. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-custom/summary-grid-item-custom.vue.d.ts +1 -1
  66. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +1 -1
  67. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +1 -1
  68. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-text/summary-grid-item-text.vue.d.ts +1 -1
  69. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +6 -4
  70. package/dist/@types/packages/vue2/src/components/timeline/timeline.vue.d.ts +6 -4
  71. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.d.ts +9 -6
  72. package/dist/@types/packages/vue2/src/composables/use-form-validate/use-form.types.d.ts +5 -1
  73. package/dist/action-bar.js +1 -1
  74. package/dist/assets/accordion-item.css +1 -1
  75. package/dist/assets/action-bar.css +1 -1
  76. package/dist/assets/base-modal.css +1 -1
  77. package/dist/assets/button-actions-with-menu.css +1 -1
  78. package/dist/assets/button-actions.css +1 -1
  79. package/dist/assets/card.css +1 -1
  80. package/dist/assets/data-grid.css +1 -1
  81. package/dist/assets/date-range-picker.css +1 -1
  82. package/dist/assets/dialog-page.css +1 -1
  83. package/dist/assets/dropdown-default-textbox.css +1 -1
  84. package/dist/assets/dropdown.css +1 -1
  85. package/dist/assets/file-uploader.css +1 -1
  86. package/dist/assets/filter-bar.css +1 -1
  87. package/dist/assets/header.css +1 -1
  88. package/dist/assets/inspector.css +1 -1
  89. package/dist/assets/menu.css +1 -1
  90. package/dist/assets/modal-fullscreen.css +1 -1
  91. package/dist/assets/popover.css +1 -1
  92. package/dist/assets/selection-card-group.css +1 -1
  93. package/dist/assets/sidepanel.css +1 -1
  94. package/dist/assets/textarea.css +1 -1
  95. package/dist/assets/typography.css +1 -1
  96. package/dist/button.js +7 -8
  97. package/dist/button.js.map +1 -1
  98. package/dist/card.js +1 -1
  99. package/dist/chunks/{action-bar.C1Vu3qJu.js → action-bar.B-_JS43H.js} +11 -10
  100. package/dist/chunks/action-bar.B-_JS43H.js.map +1 -0
  101. package/dist/chunks/{base-modal.ku0lyHOs.js → base-modal.BR_pB6eH.js} +2 -2
  102. package/dist/chunks/{base-modal.ku0lyHOs.js.map → base-modal.BR_pB6eH.js.map} +1 -1
  103. package/dist/chunks/button-actions-with-menu.GT_kNv28.js +119 -0
  104. package/dist/chunks/button-actions-with-menu.GT_kNv28.js.map +1 -0
  105. package/dist/chunks/button-actions.BjlQS6tm.js +322 -0
  106. package/dist/chunks/button-actions.BjlQS6tm.js.map +1 -0
  107. package/dist/chunks/{card.D_XL2TWr.js → card.BrEfcUoE.js} +2 -2
  108. package/dist/chunks/{card.D_XL2TWr.js.map → card.BrEfcUoE.js.map} +1 -1
  109. package/dist/chunks/{code-snippet.CiOcZKKH.js → code-snippet.S5NdUu0p.js} +4 -4
  110. package/dist/chunks/{code-snippet.CiOcZKKH.js.map → code-snippet.S5NdUu0p.js.map} +1 -1
  111. package/dist/chunks/{dashboard-section.BCc8HoQG.js → dashboard-section.LWxBcOV_.js} +3 -3
  112. package/dist/chunks/{dashboard-section.BCc8HoQG.js.map → dashboard-section.LWxBcOV_.js.map} +1 -1
  113. package/dist/chunks/{dashed-underline.BKfUevuM.js → dashed-underline.CRlWNPrd.js} +2 -2
  114. package/dist/chunks/{dashed-underline.BKfUevuM.js.map → dashed-underline.CRlWNPrd.js.map} +1 -1
  115. package/dist/chunks/{data-grid-template.DI27ou71.js → data-grid-template.BZVeRN6g.js} +2 -2
  116. package/dist/chunks/{data-grid-template.DI27ou71.js.map → data-grid-template.BZVeRN6g.js.map} +1 -1
  117. package/dist/chunks/data-grid.CKDW-rbM.js +3374 -0
  118. package/dist/chunks/data-grid.CKDW-rbM.js.map +1 -0
  119. package/dist/chunks/{date-picker.DDsfecHp.js → date-picker.BrZ2X1nQ.js} +3 -3
  120. package/dist/chunks/{date-picker.DDsfecHp.js.map → date-picker.BrZ2X1nQ.js.map} +1 -1
  121. package/dist/chunks/{date-range-picker.C9Ht_Egi.js → date-range-picker.4y2goCI8.js} +204 -201
  122. package/dist/chunks/date-range-picker.4y2goCI8.js.map +1 -0
  123. package/dist/chunks/{dropdown-default-textbox.CcRQ1f4U.js → dropdown-default-textbox.ZjVeMHVC.js} +131 -120
  124. package/dist/chunks/{dropdown-default-textbox.CcRQ1f4U.js.map → dropdown-default-textbox.ZjVeMHVC.js.map} +1 -1
  125. package/dist/chunks/{dropdown-tag.Bc4qxPRN.js → dropdown-tag.ClKm4xAo.js} +2 -2
  126. package/dist/chunks/{dropdown-tag.Bc4qxPRN.js.map → dropdown-tag.ClKm4xAo.js.map} +1 -1
  127. package/dist/chunks/dropdown.Sj2OLuEF.js +911 -0
  128. package/dist/chunks/{dropdown.BqkUB1So.js.map → dropdown.Sj2OLuEF.js.map} +1 -1
  129. package/dist/chunks/es6.C-HLzYPA.js +11 -0
  130. package/dist/chunks/es6.C-HLzYPA.js.map +1 -0
  131. package/dist/chunks/{file-uploader.cRbwpcAw.js → file-uploader.BgRbkW2V.js} +368 -365
  132. package/dist/chunks/file-uploader.BgRbkW2V.js.map +1 -0
  133. package/dist/chunks/{filter-bar.DVLYNNwQ.js → filter-bar.CM1FZ02d.js} +19 -20
  134. package/dist/chunks/filter-bar.CM1FZ02d.js.map +1 -0
  135. package/dist/chunks/{footer-actions.DvIVWqWv.js → footer-actions.Dvsb0g5Y.js} +2 -2
  136. package/dist/chunks/{footer-actions.DvIVWqWv.js.map → footer-actions.Dvsb0g5Y.js.map} +1 -1
  137. package/dist/chunks/{header.C0NBlBJv.js → header.8BzBNgxj.js} +23 -23
  138. package/dist/chunks/{header.C0NBlBJv.js.map → header.8BzBNgxj.js.map} +1 -1
  139. package/dist/chunks/index.lHdwuJAx.js +366 -0
  140. package/dist/chunks/index.lHdwuJAx.js.map +1 -0
  141. package/dist/chunks/{input-field-password.BA0EpVMY.js → input-field-password.CXsERnQX.js} +4 -4
  142. package/dist/chunks/{input-field-password.BA0EpVMY.js.map → input-field-password.CXsERnQX.js.map} +1 -1
  143. package/dist/chunks/{input-field.CWMgbw48.js → input-field.C-7_iMIS.js} +2 -2
  144. package/dist/chunks/{input-field.CWMgbw48.js.map → input-field.C-7_iMIS.js.map} +1 -1
  145. package/dist/chunks/{layout-row.iTtAEvD2.js → layout-row.DcyZ3DP3.js} +2 -2
  146. package/dist/chunks/{layout-row.iTtAEvD2.js.map → layout-row.DcyZ3DP3.js.map} +1 -1
  147. package/dist/chunks/{menu.BpqOdkxR.js → menu.hDynz4lc.js} +132 -104
  148. package/dist/chunks/menu.hDynz4lc.js.map +1 -0
  149. package/dist/chunks/{modal-fullscreen.DtgTb1Xh.js → modal-fullscreen.BCGaxVNb.js} +2 -2
  150. package/dist/chunks/{modal-fullscreen.DtgTb1Xh.js.map → modal-fullscreen.BCGaxVNb.js.map} +1 -1
  151. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js → modal.vue_vue_type_script_setup_true_lang.DJXx8ftn.js} +4 -4
  152. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.CjD91zJo.js.map → modal.vue_vue_type_script_setup_true_lang.DJXx8ftn.js.map} +1 -1
  153. package/dist/chunks/{pagination.DrWx8K01.js → pagination.C9kqX5tD.js} +2 -2
  154. package/dist/chunks/{pagination.DrWx8K01.js.map → pagination.C9kqX5tD.js.map} +1 -1
  155. package/dist/chunks/{popover.D9Zw4w9l.js → popover.DwGgnCyn.js} +2 -2
  156. package/dist/chunks/{popover.D9Zw4w9l.js.map → popover.DwGgnCyn.js.map} +1 -1
  157. package/dist/chunks/{promo-banner.oUapgyV-.js → promo-banner.CzR9ri5v.js} +2 -2
  158. package/dist/chunks/{promo-banner.oUapgyV-.js.map → promo-banner.CzR9ri5v.js.map} +1 -1
  159. package/dist/chunks/{search-bar.DDePObYJ.js → search-bar.DPC0amNg.js} +3 -3
  160. package/dist/chunks/{search-bar.DDePObYJ.js.map → search-bar.DPC0amNg.js.map} +1 -1
  161. package/dist/chunks/{secondary-nav.ysDOs9J9.js → secondary-nav.DH7aXddE.js} +4 -4
  162. package/dist/chunks/{secondary-nav.ysDOs9J9.js.map → secondary-nav.DH7aXddE.js.map} +1 -1
  163. package/dist/chunks/{selection-card-group.pUl1EuFV.js → selection-card-group.DDBJ423n.js} +13 -13
  164. package/dist/chunks/{selection-card-group.pUl1EuFV.js.map → selection-card-group.DDBJ423n.js.map} +1 -1
  165. package/dist/chunks/{sidepanel.BywianGe.js → sidepanel.8NclWh0V.js} +2 -2
  166. package/dist/chunks/{sidepanel.BywianGe.js.map → sidepanel.8NclWh0V.js.map} +1 -1
  167. package/dist/chunks/{teleport.CI0k6eaC.js → teleport.B255JhsV.js} +26 -17
  168. package/dist/chunks/teleport.B255JhsV.js.map +1 -0
  169. package/dist/chunks/{textarea.vAp6HFi9.js → textarea.D1weaQCC.js} +72 -68
  170. package/dist/chunks/{textarea.vAp6HFi9.js.map → textarea.D1weaQCC.js.map} +1 -1
  171. package/dist/chunks/{timeline-item.ND_EMuwP.js → timeline-item.BDYrjKhM.js} +3 -3
  172. package/dist/chunks/{timeline-item.ND_EMuwP.js.map → timeline-item.BDYrjKhM.js.map} +1 -1
  173. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js → tutorial.vue_vue_type_script_setup_true_lang.ltZUbc6M.js} +4 -4
  174. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.LBw_ALfS.js.map → tutorial.vue_vue_type_script_setup_true_lang.ltZUbc6M.js.map} +1 -1
  175. package/dist/chunks/{use-cached-selected-values.DWVHnlNN.js → use-cached-selected-values.B6beyyvX.js} +7 -4
  176. package/dist/chunks/{use-cached-selected-values.DWVHnlNN.js.map → use-cached-selected-values.B6beyyvX.js.map} +1 -1
  177. package/dist/code-snippet.js +1 -1
  178. package/dist/dashboard-template.js +1 -1
  179. package/dist/dashed-underline.js +1 -1
  180. package/dist/data-grid-template.js +1 -1
  181. package/dist/data-grid.js +1 -1
  182. package/dist/date-picker.js +1 -1
  183. package/dist/date-range-picker.js +1 -1
  184. package/dist/dropdown.js +4 -4
  185. package/dist/file-uploader.js +1 -1
  186. package/dist/filter-bar.js +1 -1
  187. package/dist/header.js +1 -1
  188. package/dist/index.js +68 -69
  189. package/dist/index.js.map +1 -1
  190. package/dist/input-field-password.js +1 -1
  191. package/dist/input-field.js +1 -1
  192. package/dist/internal.js +28 -24
  193. package/dist/internal.js.map +1 -1
  194. package/dist/layout.js +1 -1
  195. package/dist/menu.js +1 -1
  196. package/dist/modal-fullscreen.js +1 -1
  197. package/dist/modal.js +2 -2
  198. package/dist/pagination.js +1 -1
  199. package/dist/popover.js +1 -1
  200. package/dist/promo-banner.js +1 -1
  201. package/dist/search-bar.js +2 -2
  202. package/dist/secondary-nav.js +1 -1
  203. package/dist/selection-card.js +1 -1
  204. package/dist/sidepanel.js +1 -1
  205. package/dist/styles/bento-dark.css +3 -0
  206. package/dist/styles/bento-light.css +3 -0
  207. package/dist/styles/bento.css +3 -0
  208. package/dist/styles/legacy.css +3 -0
  209. package/dist/styles/styleguide.css +3 -0
  210. package/dist/textarea.js +1 -1
  211. package/dist/timeline.js +1 -1
  212. package/dist/tutorial.js +1 -1
  213. package/dist/web-types.json +1 -1
  214. package/package.json +5 -3
  215. package/dist/@types/packages/vue2/src/components/button/button.demo.d.ts +0 -6
  216. package/dist/assets/loading-button.css +0 -1
  217. package/dist/chunks/action-bar.C1Vu3qJu.js.map +0 -1
  218. package/dist/chunks/button-actions-with-menu.Bn7Kdx4v.js +0 -106
  219. package/dist/chunks/button-actions-with-menu.Bn7Kdx4v.js.map +0 -1
  220. package/dist/chunks/button-actions.Bjfo46Q_.js +0 -150
  221. package/dist/chunks/button-actions.Bjfo46Q_.js.map +0 -1
  222. package/dist/chunks/data-grid.eX0SZIFQ.js +0 -3174
  223. package/dist/chunks/data-grid.eX0SZIFQ.js.map +0 -1
  224. package/dist/chunks/date-range-picker.C9Ht_Egi.js.map +0 -1
  225. package/dist/chunks/dropdown.BqkUB1So.js +0 -907
  226. package/dist/chunks/es6.b4enG1py.js +0 -10
  227. package/dist/chunks/es6.b4enG1py.js.map +0 -1
  228. package/dist/chunks/file-uploader.cRbwpcAw.js.map +0 -1
  229. package/dist/chunks/filter-bar.DVLYNNwQ.js.map +0 -1
  230. package/dist/chunks/index.Cwtxz7pr.js +0 -344
  231. package/dist/chunks/index.Cwtxz7pr.js.map +0 -1
  232. package/dist/chunks/loading-button.CNWhVIPK.js +0 -137
  233. package/dist/chunks/loading-button.CNWhVIPK.js.map +0 -1
  234. package/dist/chunks/menu.BpqOdkxR.js.map +0 -1
  235. package/dist/chunks/teleport.CI0k6eaC.js.map +0 -1
  236. package/dist/chunks/use-click-outside.D6aIgS15.js +0 -14
  237. package/dist/chunks/use-click-outside.D6aIgS15.js.map +0 -1
@@ -0,0 +1,366 @@
1
+ import { getCurrentScope as M, onScopeDispose as $, unref as I, watch as O, onMounted as A, nextTick as R, getCurrentInstance as N, ref as m, watchEffect as F, computed as v } from "vue";
2
+ function x(t) {
3
+ return M() ? ($(t), !0) : !1;
4
+ }
5
+ function b(t) {
6
+ return typeof t == "function" ? t() : I(t);
7
+ }
8
+ const L = typeof window < "u" && typeof document < "u";
9
+ typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
10
+ const j = (t) => t != null, C = Object.prototype.toString, B = (t) => C.call(t) === "[object Object]", W = () => {
11
+ };
12
+ function P(t, e) {
13
+ function n(...u) {
14
+ return new Promise((s, i) => {
15
+ Promise.resolve(t(() => e.apply(this, u), { fn: e, thisArg: this, args: u })).then(s).catch(i);
16
+ });
17
+ }
18
+ return n;
19
+ }
20
+ const z = (t) => t();
21
+ function V(t, e = {}) {
22
+ let n, u, s = W;
23
+ const i = (c) => {
24
+ clearTimeout(c), s(), s = W;
25
+ };
26
+ return (c) => {
27
+ const f = b(t), d = b(e.maxWait);
28
+ return n && i(n), f <= 0 || d !== void 0 && d <= 0 ? (u && (i(u), u = null), Promise.resolve(c())) : new Promise((r, o) => {
29
+ s = e.rejectOnCancel ? o : r, d && !u && (u = setTimeout(() => {
30
+ n && i(n), u = null, r(c());
31
+ }, d)), n = setTimeout(() => {
32
+ u && i(u), u = null, r(c());
33
+ }, f);
34
+ });
35
+ };
36
+ }
37
+ function H(t, e) {
38
+ var n;
39
+ if (typeof t == "number")
40
+ return t + e;
41
+ const u = ((n = t.match(/^-?\d+\.?\d*/)) == null ? void 0 : n[0]) || "", s = t.slice(u.length), i = Number.parseFloat(u) + e;
42
+ return Number.isNaN(i) ? t : i + s;
43
+ }
44
+ function D(t) {
45
+ return N();
46
+ }
47
+ function G(t, e, n = {}) {
48
+ const {
49
+ eventFilter: u = z,
50
+ ...s
51
+ } = n;
52
+ return O(
53
+ t,
54
+ P(
55
+ u,
56
+ e
57
+ ),
58
+ s
59
+ );
60
+ }
61
+ function _(t, e = !0, n) {
62
+ D() ? A(t, n) : e ? t() : R(t);
63
+ }
64
+ function K(t, e, n = {}) {
65
+ const {
66
+ debounce: u = 0,
67
+ maxWait: s = void 0,
68
+ ...i
69
+ } = n;
70
+ return G(
71
+ t,
72
+ e,
73
+ {
74
+ ...i,
75
+ eventFilter: V(u, { maxWait: s })
76
+ }
77
+ );
78
+ }
79
+ const p = L ? window : void 0;
80
+ function w(t) {
81
+ var e;
82
+ const n = b(t);
83
+ return (e = n == null ? void 0 : n.$el) != null ? e : n;
84
+ }
85
+ function E(...t) {
86
+ let e, n, u, s;
87
+ if (typeof t[0] == "string" || Array.isArray(t[0]) ? ([n, u, s] = t, e = p) : [e, n, u, s] = t, !e)
88
+ return W;
89
+ Array.isArray(n) || (n = [n]), Array.isArray(u) || (u = [u]);
90
+ const i = [], a = () => {
91
+ i.forEach((r) => r()), i.length = 0;
92
+ }, c = (r, o, l, h) => (r.addEventListener(o, l, h), () => r.removeEventListener(o, l, h)), f = O(
93
+ () => [w(e), b(s)],
94
+ ([r, o]) => {
95
+ if (a(), !r)
96
+ return;
97
+ const l = B(o) ? { ...o } : o;
98
+ i.push(
99
+ ...n.flatMap((h) => u.map((g) => c(r, h, g, l)))
100
+ );
101
+ },
102
+ { immediate: !0, flush: "post" }
103
+ ), d = () => {
104
+ f(), a();
105
+ };
106
+ return x(d), d;
107
+ }
108
+ function U() {
109
+ const t = m(!1), e = N();
110
+ return e && A(() => {
111
+ t.value = !0;
112
+ }, e), t;
113
+ }
114
+ function T(t) {
115
+ const e = U();
116
+ return v(() => (e.value, !!t()));
117
+ }
118
+ function Y(t, e, n = {}) {
119
+ const { window: u = p, ...s } = n;
120
+ let i;
121
+ const a = T(() => u && "MutationObserver" in u), c = () => {
122
+ i && (i.disconnect(), i = void 0);
123
+ }, f = v(() => {
124
+ const l = b(t), h = (Array.isArray(l) ? l : [l]).map(w).filter(j);
125
+ return new Set(h);
126
+ }), d = O(
127
+ () => f.value,
128
+ (l) => {
129
+ c(), a.value && l.size && (i = new MutationObserver(e), l.forEach((h) => i.observe(h, s)));
130
+ },
131
+ { immediate: !0, flush: "post" }
132
+ ), r = () => i == null ? void 0 : i.takeRecords(), o = () => {
133
+ d(), c();
134
+ };
135
+ return x(o), {
136
+ isSupported: a,
137
+ stop: o,
138
+ takeRecords: r
139
+ };
140
+ }
141
+ function q(t = {}) {
142
+ var e;
143
+ const {
144
+ window: n = p,
145
+ deep: u = !0,
146
+ triggerOnRemoval: s = !1
147
+ } = t, i = (e = t.document) != null ? e : n == null ? void 0 : n.document, a = () => {
148
+ var d;
149
+ let r = i == null ? void 0 : i.activeElement;
150
+ if (u)
151
+ for (; r != null && r.shadowRoot; )
152
+ r = (d = r == null ? void 0 : r.shadowRoot) == null ? void 0 : d.activeElement;
153
+ return r;
154
+ }, c = m(), f = () => {
155
+ c.value = a();
156
+ };
157
+ return n && (E(n, "blur", (d) => {
158
+ d.relatedTarget === null && f();
159
+ }, !0), E(n, "focus", f, !0)), s && Y(i, (d) => {
160
+ d.filter((r) => r.removedNodes.length).map((r) => Array.from(r.removedNodes)).flat().forEach((r) => {
161
+ r === c.value && f();
162
+ });
163
+ }, {
164
+ childList: !0,
165
+ subtree: !0
166
+ }), f(), c;
167
+ }
168
+ function y(t, e = {}) {
169
+ const { window: n = p } = e, u = T(() => n && "matchMedia" in n && typeof n.matchMedia == "function");
170
+ let s;
171
+ const i = m(!1), a = (d) => {
172
+ i.value = d.matches;
173
+ }, c = () => {
174
+ s && ("removeEventListener" in s ? s.removeEventListener("change", a) : s.removeListener(a));
175
+ }, f = F(() => {
176
+ u.value && (c(), s = n.matchMedia(b(t)), "addEventListener" in s ? s.addEventListener("change", a) : s.addListener(a), i.value = s.matches);
177
+ });
178
+ return x(() => {
179
+ f(), c(), s = void 0;
180
+ }), i;
181
+ }
182
+ function Z(t, e = {}) {
183
+ function n(r, o) {
184
+ let l = b(t[b(r)]);
185
+ return o != null && (l = H(l, o)), typeof l == "number" && (l = `${l}px`), l;
186
+ }
187
+ const { window: u = p, strategy: s = "min-width" } = e;
188
+ function i(r) {
189
+ return u ? u.matchMedia(r).matches : !1;
190
+ }
191
+ const a = (r) => y(() => `(min-width: ${n(r)})`, e), c = (r) => y(() => `(max-width: ${n(r)})`, e), f = Object.keys(t).reduce((r, o) => (Object.defineProperty(r, o, {
192
+ get: () => s === "min-width" ? a(o) : c(o),
193
+ enumerable: !0,
194
+ configurable: !0
195
+ }), r), {});
196
+ function d() {
197
+ const r = Object.keys(t).map((o) => [o, a(o)]);
198
+ return v(() => r.filter(([, o]) => o.value).map(([o]) => o));
199
+ }
200
+ return Object.assign(f, {
201
+ greaterOrEqual: a,
202
+ smallerOrEqual: c,
203
+ greater(r) {
204
+ return y(() => `(min-width: ${n(r, 0.1)})`, e);
205
+ },
206
+ smaller(r) {
207
+ return y(() => `(max-width: ${n(r, -0.1)})`, e);
208
+ },
209
+ between(r, o) {
210
+ return y(() => `(min-width: ${n(r)}) and (max-width: ${n(o, -0.1)})`, e);
211
+ },
212
+ isGreater(r) {
213
+ return i(`(min-width: ${n(r, 0.1)})`);
214
+ },
215
+ isGreaterOrEqual(r) {
216
+ return i(`(min-width: ${n(r)})`);
217
+ },
218
+ isSmaller(r) {
219
+ return i(`(max-width: ${n(r, -0.1)})`);
220
+ },
221
+ isSmallerOrEqual(r) {
222
+ return i(`(max-width: ${n(r)})`);
223
+ },
224
+ isInBetween(r, o) {
225
+ return i(`(min-width: ${n(r)}) and (max-width: ${n(o, -0.1)})`);
226
+ },
227
+ current: d,
228
+ active() {
229
+ const r = d();
230
+ return v(() => r.value.length === 0 ? "" : r.value.at(-1));
231
+ }
232
+ });
233
+ }
234
+ function X(t, e, n = {}) {
235
+ const { window: u = p, ...s } = n;
236
+ let i;
237
+ const a = T(() => u && "ResizeObserver" in u), c = () => {
238
+ i && (i.disconnect(), i = void 0);
239
+ }, f = v(() => {
240
+ const o = b(t);
241
+ return Array.isArray(o) ? o.map((l) => w(l)) : [w(o)];
242
+ }), d = O(
243
+ f,
244
+ (o) => {
245
+ if (c(), a.value && u) {
246
+ i = new ResizeObserver(e);
247
+ for (const l of o)
248
+ l && i.observe(l, s);
249
+ }
250
+ },
251
+ { immediate: !0, flush: "post" }
252
+ ), r = () => {
253
+ c(), d();
254
+ };
255
+ return x(r), {
256
+ isSupported: a,
257
+ stop: r
258
+ };
259
+ }
260
+ function ee(t, e = { width: 0, height: 0 }, n = {}) {
261
+ const { window: u = p, box: s = "content-box" } = n, i = v(() => {
262
+ var o, l;
263
+ return (l = (o = w(t)) == null ? void 0 : o.namespaceURI) == null ? void 0 : l.includes("svg");
264
+ }), a = m(e.width), c = m(e.height), { stop: f } = X(
265
+ t,
266
+ ([o]) => {
267
+ const l = s === "border-box" ? o.borderBoxSize : s === "content-box" ? o.contentBoxSize : o.devicePixelContentBoxSize;
268
+ if (u && i.value) {
269
+ const h = w(t);
270
+ if (h) {
271
+ const g = h.getBoundingClientRect();
272
+ a.value = g.width, c.value = g.height;
273
+ }
274
+ } else if (l) {
275
+ const h = Array.isArray(l) ? l : [l];
276
+ a.value = h.reduce((g, { inlineSize: S }) => g + S, 0), c.value = h.reduce((g, { blockSize: S }) => g + S, 0);
277
+ } else
278
+ a.value = o.contentRect.width, c.value = o.contentRect.height;
279
+ },
280
+ n
281
+ );
282
+ _(() => {
283
+ const o = w(t);
284
+ o && (a.value = "offsetWidth" in o ? o.offsetWidth : e.width, c.value = "offsetHeight" in o ? o.offsetHeight : e.height);
285
+ });
286
+ const d = O(
287
+ () => w(t),
288
+ (o) => {
289
+ a.value = o ? e.width : 0, c.value = o ? e.height : 0;
290
+ }
291
+ );
292
+ function r() {
293
+ f(), d();
294
+ }
295
+ return {
296
+ width: a,
297
+ height: c,
298
+ stop: r
299
+ };
300
+ }
301
+ const k = "focusin", Q = "focusout";
302
+ function te(t, e = {}) {
303
+ const { window: n = p } = e, u = v(() => w(t)), s = m(!1), i = v(() => s.value), a = q(e);
304
+ return !n || !a.value ? { focused: i } : (E(u, k, () => s.value = !0), E(u, Q, () => s.value = !1), { focused: i });
305
+ }
306
+ function ne(t = {}) {
307
+ const { window: e = p, behavior: n = "auto" } = t;
308
+ if (!e)
309
+ return {
310
+ x: m(0),
311
+ y: m(0)
312
+ };
313
+ const u = m(e.scrollX), s = m(e.scrollY), i = v({
314
+ get() {
315
+ return u.value;
316
+ },
317
+ set(c) {
318
+ scrollTo({ left: c, behavior: n });
319
+ }
320
+ }), a = v({
321
+ get() {
322
+ return s.value;
323
+ },
324
+ set(c) {
325
+ scrollTo({ top: c, behavior: n });
326
+ }
327
+ });
328
+ return E(
329
+ e,
330
+ "scroll",
331
+ () => {
332
+ u.value = e.scrollX, s.value = e.scrollY;
333
+ },
334
+ {
335
+ capture: !1,
336
+ passive: !0
337
+ }
338
+ ), { x: i, y: a };
339
+ }
340
+ function re(t = {}) {
341
+ const {
342
+ window: e = p,
343
+ initialWidth: n = Number.POSITIVE_INFINITY,
344
+ initialHeight: u = Number.POSITIVE_INFINITY,
345
+ listenOrientation: s = !0,
346
+ includeScrollbar: i = !0,
347
+ type: a = "inner"
348
+ } = t, c = m(n), f = m(u), d = () => {
349
+ e && (a === "outer" ? (c.value = e.outerWidth, f.value = e.outerHeight) : i ? (c.value = e.innerWidth, f.value = e.innerHeight) : (c.value = e.document.documentElement.clientWidth, f.value = e.document.documentElement.clientHeight));
350
+ };
351
+ if (d(), _(d), E("resize", d, { passive: !0 }), s) {
352
+ const r = y("(orientation: portrait)");
353
+ O(r, () => d());
354
+ }
355
+ return { width: c, height: f };
356
+ }
357
+ export {
358
+ ee as a,
359
+ ne as b,
360
+ te as c,
361
+ y as d,
362
+ Z as e,
363
+ re as u,
364
+ K as w
365
+ };
366
+ //# sourceMappingURL=index.lHdwuJAx.js.map