import { jsx as t } from "react/jsx-runtime";
import { LocaleProvider as C, useLocaleContext as x } from "../Locale/context.js";
import a, { useColorScheme as d } from "../Theme/theme-provider.js";
import { useTheme as v } from "@mui/material";
import "../Theme/theme.js";
function j({
  children: o,
  // theme provider
  theme: e,
  injectFirst: r,
  darkSchemeClass: m,
  prefer: i,
  disableBlockletTheme: n = !1,
  enableColorScheme: c,
  disableStyleCache: f,
  // locale provider
  locale: s,
  fallbackLocale: l,
  translations: u = {},
  languages: h,
  onLoadingTranslation: p
}) {
  return /* @__PURE__ */ t(
    a,
    {
      theme: e,
      injectFirst: r,
      darkSchemeClass: m,
      prefer: i,
      disableBlockletTheme: n,
      enableColorScheme: c,
      disableStyleCache: f,
      children: /* @__PURE__ */ t(
        C,
        {
          locale: s,
          fallbackLocale: l,
          translations: u,
          onLoadingTranslation: p,
          languages: h,
          children: o
        }
      )
    }
  );
}
function b() {
  const o = v(), e = x(), r = d();
  return {
    theme: o,
    ...e,
    ...r
  };
}
export {
  j as ConfigProvider,
  b as useConfig
};
