import { getEl as r } from "@das-fed/utils/directive/utils";
const o = {
  mounted: async (s, a) => {
    const e = a.value, n = await r(s, e);
    function i(t, d) {
      n._inside_event = i, typeof e == "function" ? e(t, d) : e != null && e.fn && typeof (e == null ? void 0 : e.fn) == "function" && (e == null || e.fn(t, d));
    }
    n.addEventListener("mouseenter", (t) => {
      i(!0, t);
    }), n.addEventListener("mouseleave", (t) => {
      i(!1, t);
    });
  },
  beforeUnmount: async (s, a) => {
    const e = a.value, n = await r(s, e);
    n.addEventListener("mouseenter", n._inside_event), n.addEventListener("mouseleave", n._inside_event), delete n._inside_event;
  }
};
export {
  o as vHoverInside
};
