import { useRouter as n } from "vue-router";
import { effectScope as l, ref as i, readonly as a } from "vue";
function u(e) {
  let o = !1, r;
  const t = l(!0);
  return (...c) => (o || (r = t.run(() => e(...c)), o = !0), r);
}
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const f = u(() => {
  const e = i([]), o = (t) => e.value.includes(t), r = (t) => {
    e.value = t;
  };
  return {
    aclList: a(e),
    checkPermission: o,
    setPermission: r
  };
}), h = (e) => {
  const o = n(), { ability: r, fallback: t } = e, s = f().checkPermission(r);
  return s || o.push({ path: t }), s;
};
export {
  h as useCheckAcl
};
//# sourceMappingURL=useCheckAcl.mjs.map
