import { ref as m } from "vue";
import { useEventListener as i } from "./useEventListener.js";
function c(r, l = {}) {
  const { delayEnter: a = 0, delayLeave: f = 0 } = l, e = m(!1);
  let o;
  const s = (t) => {
    const u = t ? a : f;
    o && (clearTimeout(o), o = void 0), u ? o = setTimeout(() => e.value = t, u) : e.value = t;
  };
  return window && (i(r, "mouseenter", () => s(!0)), i(r, "mouseleave", () => s(!1))), e;
}
export {
  c as useHover
};
//# sourceMappingURL=useHover.js.map
