import { provide as t, inject as i, ref as n, computed as c } from "vue";
const o = /* @__PURE__ */ Symbol("agGridExpandableKey"), r = /* @__PURE__ */ Symbol("agGridMaskVisibleKey"), a = /* @__PURE__ */ Symbol("agGridSorterContextKey");
function f(e) {
  t(o, e);
}
function x() {
  return i(o, {
    expandable: n({})
  });
}
function m(e) {
  t(a, e);
}
function p() {
  return i(a, {
    sorter: n({}),
    setSorter: () => {
    }
  });
}
function y(e) {
  t(r, e);
}
function d() {
  return i(r, {
    masks: n({}),
    setMaskVisible: () => {
    }
  });
}
function V(e) {
  const { masks: u, setMaskVisible: l } = d(), s = c(() => u.value[e.value]);
  function b() {
    l(e.value, !s.value);
  }
  return {
    maskVisible: s,
    toggleMaskVisible: b
  };
}
export {
  o as AgGridExpandableContextKey,
  r as AgGridMaskVisibleContextKey,
  a as AgGridSorterContextKey,
  x as useInjectExpandable,
  d as useInjectMaskVisible,
  p as useInjectSorter,
  V as useMaskVisible,
  f as useProvideExpandable,
  y as useProvideMaskVisible,
  m as useProvideSorter
};
