import m from "./index-objectWithoutPropertiesLoose.js";
import r from "./index-extends.js";
import * as f from "react";
import o from "./index-_virtual16.js";
import { clsx as d } from "./index-clsx.js";
import g from "./index-styled.js";
import { getDialogActionsUtilityClass as u } from "./index-dialogActionsClasses.js";
import { jsx as b } from "react/jsx-runtime";
import { useDefaultProps as y } from "./index-DefaultPropsProvider.js";
import x from "./index-composeClasses.js";
const S = ["className", "disableSpacing"], D = (s) => {
  const {
    classes: t,
    disableSpacing: e
  } = s;
  return x({
    root: ["root", !e && "spacing"]
  }, u, t);
}, j = g("div", {
  name: "MuiDialogActions",
  slot: "Root",
  overridesResolver: (s, t) => {
    const {
      ownerState: e
    } = s;
    return [t.root, !e.disableSpacing && t.spacing];
  }
})(({
  ownerState: s
}) => r({
  display: "flex",
  alignItems: "center",
  padding: 8,
  justifyContent: "flex-end",
  flex: "0 0 auto"
}, !s.disableSpacing && {
  "& > :not(style) ~ :not(style)": {
    marginLeft: 8
  }
})), A = /* @__PURE__ */ f.forwardRef(function(t, e) {
  const i = y({
    props: t,
    name: "MuiDialogActions"
  }), {
    className: a,
    disableSpacing: c = !1
  } = i, l = m(i, S), n = r({}, i, {
    disableSpacing: c
  }), p = D(n);
  return /* @__PURE__ */ b(j, r({
    className: d(p.root, a),
    ownerState: n,
    ref: e
  }, l));
});
process.env.NODE_ENV !== "production" && (A.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,
  /**
   * If `true`, the actions do not have additional margin.
   * @default false
   */
  disableSpacing: 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 {
  A as default
};
