import i from "./index-extends.js";
import "react";
import { DIALOG_WIDTH as A } from "./index-dimensions.js";
import { jsxs as u, jsx as r } from "react/jsx-runtime";
import { PickersActionBar as P } from "./index-PickersActionBar.js";
import c from "./index-styled.js";
import B from "./index-Dialog.js";
import e from "./index-dialogClasses.js";
import h from "./index-DialogContent.js";
const k = c(B)({
  [`& .${e.container}`]: {
    outline: 0
  },
  [`& .${e.paper}`]: {
    outline: 0,
    minWidth: A
  }
}), x = c(h)({
  "&:first-of-type": {
    padding: 0
  }
}), W = (a) => {
  var o;
  const {
    children: l,
    DialogProps: s = {},
    onAccept: p,
    onClear: m,
    onDismiss: d,
    onCancel: f,
    onSetToday: D,
    open: g,
    components: n,
    componentsProps: t
  } = a, C = (o = n == null ? void 0 : n.ActionBar) != null ? o : P;
  return /* @__PURE__ */ u(k, i({
    open: g,
    onClose: d
  }, s, {
    children: [/* @__PURE__ */ r(x, {
      children: l
    }), /* @__PURE__ */ r(C, i({
      onAccept: p,
      onClear: m,
      onCancel: f,
      onSetToday: D,
      actions: ["cancel", "accept"]
    }, t == null ? void 0 : t.actionBar))]
  }));
};
export {
  W as PickersModalDialog
};
