import u from "./index-extends.js";
import p from "./index-objectWithoutPropertiesLoose.js";
import * as h from "react";
import { clsx as B } from "./index-clsx2.js";
import N from "./index-styled-engine.js";
import P from "./index-useTheme2.js";
import { jsx as _ } from "react/jsx-runtime";
import R from "./index-styleFunctionSx.js";
import S from "./index-extendSxProp.js";
const j = ["className", "component"];
function L(a = {}) {
  const {
    themeId: t,
    defaultTheme: n,
    defaultClassName: r = "MuiBox-root",
    generateClassName: m
  } = a, c = N("div", {
    shouldForwardProp: (o) => o !== "theme" && o !== "sx" && o !== "as"
  })(R);
  return /* @__PURE__ */ h.forwardRef(function(f, i) {
    const e = P(n), s = S(f), {
      className: x,
      component: d = "div"
    } = s, l = p(s, j);
    return /* @__PURE__ */ _(c, u({
      as: d,
      ref: i,
      className: B(x, m ? m(r) : r),
      theme: t && e[t] || e
    }, l));
  });
}
export {
  L as default
};
