import { getCurrentInstance as a, provide as i, inject as s } from "vue";
const o = /* @__PURE__ */ new WeakMap(), u = (t, n) => {
  var r;
  const e = (r = a()) == null ? void 0 : r.proxy;
  if (e == null)
    throw new Error("provideLocal must be called in setup");
  o.has(e) || o.set(e, /* @__PURE__ */ Object.create(null));
  const l = o.get(e);
  l[t] = n, i(t, n);
}, d = (...t) => {
  var n;
  const r = t[0], e = (n = a()) == null ? void 0 : n.proxy;
  if (e == null)
    throw new Error("injectLocal must be called in setup");
  return o.has(e) && r in o.get(e) ? o.get(e)[r] : s(...t);
};
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
const c = Symbol("FORM_PROVIDER_CONTEXT"), b = (t) => u(c, t), v = () => d(c);
export {
  c as FS_DATA_TABLE_PROVIDER_CONTEXT,
  b as createFsDataTableProvider,
  v as useFsDataTableContext
};
//# sourceMappingURL=fs-table.mjs.map
