'use strict';

var jsxRuntime = require('react/jsx-runtime');
var utils = require('../utils-CTr7wn5d.js');
var button = require('../button-CKlGvVqQ.js');
var dialog = require('../dialog-gFvX2Ajp.js');
var x = require('../x-Brw3FJst.js');
var index = require('../index-BLGrl3PF.js');
require('react');
require('../index-BZhTddX0.js');
require('../index-DuNgWCXZ.js');
require('../index-D-iDn9RI.js');
require('react-i18next');
require('../createLucideIcon-D0tRgV6l.js');
require('../index-COPkC3I5.js');
require('../index-CGUGhyIp.js');
require('../index-BwAq9ba8.js');
require('../index-CCdG4z4E.js');
require('../index-CyrAgb4H.js');
require('../index-Bvu9MiFi.js');
require('../index-DMbj7vXd.js');
require('react-dom');
require('../index-lWVw05cs.js');
require('../index-ChSOMM8b.js');
require('../index-Df-Ffa3s.js');
require('../index-DcCSSgb7.js');

const Dialog = (props) => (jsxRuntime.jsx(dialog.Dialog, { ...props }));
const DialogClose = (props) => (jsxRuntime.jsx(dialog.DialogClose, { ...props }));
/**
 * DialogContent composes Portal + Overlay + Radix Content so that
 * `overlayClassName` can be forwarded to the overlay element.
 */
const DialogContent = ({ className, children, showCloseButton = true, overlayClassName, ...props }) => (jsxRuntime.jsxs(dialog.DialogPortal, { children: [jsxRuntime.jsx(dialog.DialogOverlay, { className: overlayClassName }), jsxRuntime.jsxs(index.Content, { "data-slot": "dialog-content", className: utils.cn("fixed top-1/2 start-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-sm text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95", className), ...props, children: [children, showCloseButton && (jsxRuntime.jsx(index.Close, { "data-slot": "dialog-close", asChild: true, children: jsxRuntime.jsxs(button.Button, { variant: "ghost", className: "absolute top-2 end-2", size: "icon-sm", children: [jsxRuntime.jsx(x.X, {}), jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })] }) }))] })] }));
const DialogDescription = (props) => jsxRuntime.jsx(dialog.DialogDescription, { ...props });
const DialogFooter = (props) => jsxRuntime.jsx(dialog.DialogFooter, { ...props });
const DialogHeader = (props) => jsxRuntime.jsx(dialog.DialogHeader, { ...props });
const DialogOverlay = (props) => jsxRuntime.jsx(dialog.DialogOverlay, { ...props });
const DialogPortal = (props) => jsxRuntime.jsx(dialog.DialogPortal, { ...props });
const DialogTitle = (props) => (jsxRuntime.jsx(dialog.DialogTitle, { ...props }));
const DialogTrigger = (props) => jsxRuntime.jsx(dialog.DialogTrigger, { ...props });

exports.Dialog = Dialog;
exports.DialogClose = DialogClose;
exports.DialogContent = DialogContent;
exports.DialogDescription = DialogDescription;
exports.DialogFooter = DialogFooter;
exports.DialogHeader = DialogHeader;
exports.DialogOverlay = DialogOverlay;
exports.DialogPortal = DialogPortal;
exports.DialogTitle = DialogTitle;
exports.DialogTrigger = DialogTrigger;
//# sourceMappingURL=Dialog.js.map
