import * as e from "react";
import g from "../../../../../../../../../_virtual/index9.js";
import { Root as p, Portal as D, Overlay as C, Content as E, Title as N, Description as y, Trigger as h, Close as u } from "../../../../../../../@radix-ui_react-dialog@1.1.1_@types_react-dom@18.3.6_@types_react@18.3.3__@types_react@_9143b25e948bd9129bd17bd5c3edea54/node_modules/@radix-ui/react-dialog/dist/index.js";
import { dialogContentPropDefs as R } from "./dialog.props.js";
import { Heading as T } from "./heading.js";
import { Text as v } from "./text.js";
import { Theme as P } from "./theme.js";
import { extractProps as o } from "../helpers/extract-props.js";
import { requireReactElement as l } from "../helpers/require-react-element.js";
const w = (a) => e.createElement(p, { ...a, modal: !0 });
w.displayName = "Dialog.Root";
const B = e.forwardRef(({ children: a, ...r }, t) => e.createElement(h, { ...r, ref: t, asChild: !0 }, l(a)));
B.displayName = "Dialog.Trigger";
const S = e.forwardRef(({ align: a, ...r }, t) => {
  const { align: i, ...s } = R, { className: n } = o({ align: a }, { align: i }), { className: m, forceMount: c, container: d, ...f } = o(r, s);
  return e.createElement(D, { container: d, forceMount: c }, e.createElement(P, { asChild: !0 }, e.createElement(C, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, e.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, e.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${n}` }, e.createElement(E, { ...f, ref: t, className: g("rt-BaseDialogContent", "rt-DialogContent", m) }))))));
});
S.displayName = "Dialog.Content";
const $ = e.forwardRef((a, r) => e.createElement(N, { asChild: !0 }, e.createElement(T, { size: "5", mb: "3", trim: "start", ...a, asChild: !1, ref: r })));
$.displayName = "Dialog.Title";
const x = e.forwardRef((a, r) => e.createElement(y, { asChild: !0 }, e.createElement(v, { as: "p", size: "3", ...a, asChild: !1, ref: r })));
x.displayName = "Dialog.Description";
const O = e.forwardRef(({ children: a, ...r }, t) => e.createElement(u, { ...r, ref: t, asChild: !0 }, l(a)));
O.displayName = "Dialog.Close";
export {
  O as Close,
  S as Content,
  x as Description,
  w as Root,
  $ as Title,
  B as Trigger
};
//# sourceMappingURL=dialog.js.map
