import c from "./index-objectWithoutPropertiesLoose.js";
import i from "./index-extends.js";
import * as m from "react";
import o from "./index-_virtual16.js";
import { clsx as f } from "./index-clsx.js";
import v from "./index-styled.js";
import { getDialogContentUtilityClass as u } from "./index-dialogContentClasses.js";
import g from "./index-dialogTitleClasses.js";
import { jsx as x } from "react/jsx-runtime";
import { useDefaultProps as C } from "./index-DefaultPropsProvider.js";
import b from "./index-composeClasses.js";
const D = ["className", "dividers"], y = (t) => {
  const {
    classes: e,
    dividers: s
  } = t;
  return b({
    root: ["root", s && "dividers"]
  }, u, e);
}, T = v("div", {
  name: "MuiDialogContent",
  slot: "Root",
  overridesResolver: (t, e) => {
    const {
      ownerState: s
    } = t;
    return [e.root, s.dividers && e.dividers];
  }
})(({
  theme: t,
  ownerState: e
}) => i({
  flex: "1 1 auto",
  // Add iOS momentum scrolling for iOS < 13.0
  WebkitOverflowScrolling: "touch",
  overflowY: "auto",
  padding: "20px 24px"
}, e.dividers ? {
  padding: "16px 24px",
  borderTop: `1px solid ${(t.vars || t).palette.divider}`,
  borderBottom: `1px solid ${(t.vars || t).palette.divider}`
} : {
  [`.${g.root} + &`]: {
    paddingTop: 0
  }
})), w = /* @__PURE__ */ m.forwardRef(function(e, s) {
  const r = C({
    props: e,
    name: "MuiDialogContent"
  }), {
    className: a,
    dividers: d = !1
  } = r, l = c(r, D), n = i({}, r, {
    dividers: d
  }), p = y(n);
  return /* @__PURE__ */ x(T, i({
    className: f(p.root, a),
    ownerState: n,
    ref: s
  }, l));
});
process.env.NODE_ENV !== "production" && (w.propTypes = {
  // ┌────────────────────────────── Warning ──────────────────────────────┐
  // │ These PropTypes are generated from the TypeScript type definitions. │
  // │    To update them, edit the d.ts file and run `pnpm proptypes`.     │
  // └─────────────────────────────────────────────────────────────────────┘
  /**
   * The content of the component.
   */
  children: o.node,
  /**
   * Override or extend the styles applied to the component.
   */
  classes: o.object,
  /**
   * @ignore
   */
  className: o.string,
  /**
   * Display the top and bottom dividers.
   * @default false
   */
  dividers: o.bool,
  /**
   * The system prop that allows defining system overrides as well as additional CSS styles.
   */
  sx: o.oneOfType([o.arrayOf(o.oneOfType([o.func, o.object, o.bool])), o.func, o.object])
});
export {
  w as default
};
