import * as React from "react";
import y from "../../../../../../../../../_virtual/index12.js";
import { dialogContentPropDefs as s$1 } from "./dialog.props.js";
import { Heading as r } from "./heading.js";
import { Text as p$1 } from "./text.js";
import { Theme as R } from "./theme.js";
import { extractProps as v } from "../helpers/extract-props.js";
import { requireReactElement as a } from "../helpers/require-react-element.js";
import { Root, Portal, Overlay, Content, Title, Description, Trigger, Close } from "../../../../../../../@radix-ui_react-dialog@1.1.15_@types_react-dom@19.1.9_@types_react@19.1.13__@types_reac_bbd0308d7323ed93f55473fd7485b2a1/node_modules/@radix-ui/react-dialog/dist/index.js";
const s = (e) => React.createElement(Root, { ...e, modal: true });
s.displayName = "Dialog.Root";
const n = React.forwardRef(({ children: e, ...i }, r2) => React.createElement(Trigger, { ...i, ref: r2, asChild: true }, a(e)));
n.displayName = "Dialog.Trigger";
const p = React.forwardRef(({ align: e, ...i }, r2) => {
  const { align: P, ...f } = s$1, { className: C } = v({ align: e }, { align: P }), { className: d, forceMount: c, container: y$1, ...T } = v(i, f);
  return React.createElement(Portal, { container: y$1, forceMount: c }, React.createElement(R, { asChild: true }, React.createElement(Overlay, { className: "rt-BaseDialogOverlay rt-DialogOverlay" }, React.createElement("div", { className: "rt-BaseDialogScroll rt-DialogScroll" }, React.createElement("div", { className: `rt-BaseDialogScrollPadding rt-DialogScrollPadding ${C}` }, React.createElement(Content, { ...T, ref: r2, className: y("rt-BaseDialogContent", "rt-DialogContent", d) }))))));
});
p.displayName = "Dialog.Content";
const g = React.forwardRef((e, i) => React.createElement(Title, { asChild: true }, React.createElement(r, { size: "5", mb: "3", trim: "start", ...e, asChild: false, ref: i })));
g.displayName = "Dialog.Title";
const m = React.forwardRef((e, i) => React.createElement(Description, { asChild: true }, React.createElement(p$1, { as: "p", size: "3", ...e, asChild: false, ref: i })));
m.displayName = "Dialog.Description";
const D = React.forwardRef(({ children: e, ...i }, r2) => React.createElement(Close, { ...i, ref: r2, asChild: true }, a(e)));
D.displayName = "Dialog.Close";
export {
  D as Close,
  p as Content,
  m as Description,
  s as Root,
  g as Title,
  n as Trigger
};
//# sourceMappingURL=dialog.js.map
