import { jsx as g } from "@emotion/react/jsx-runtime";
import x, { createContext as M, useMemo as T } from "react";
const f = M(null);
function p(C) {
  const {
    children: W,
    getCookie: o,
    getWindowId: e,
    getCookies: t,
    setActions: s,
    setCookie: n,
    startProgress: i,
    stopProgress: r,
    toast: d,
    close: l,
    setFnQueryClose: c,
    setWindowTitle: m,
    setWindowSubTitle: u,
    setWindowEditionInfo: w
  } = C, a = T(() => ({
    getCookie: o,
    getWindowId: e,
    getCookies: t,
    setActions: s,
    setCookie: n,
    startProgress: i,
    stopProgress: r,
    toast: d,
    close: l,
    setFnQueryClose: c,
    setWindowTitle: m,
    setWindowSubTitle: u,
    setWindowEditionInfo: w
  }), [
    o,
    e,
    t,
    s,
    n,
    i,
    r,
    d,
    l,
    c,
    m,
    u,
    w
  ]);
  return /* @__PURE__ */ g(f.Provider, { value: a, children: W });
}
const k = x.memo(p);
export {
  k as MemonizedWindowToolsMFContext,
  f as WindowToolsMFContext,
  p as WindowToolsMFProvider
};
