import { jsx, jsxs } from 'react/jsx-runtime';
import { c as cn } from '../utils-DdHUxIdC.js';
import { B as Button } from '../button-D6uWDFCs.js';
import { D as Dialog$1, a as DialogPortal$1, b as DialogOverlay$1, c as DialogHeader$1, d as DialogTitle$1, e as DialogDescription$1, f as DialogFooter$1, g as DialogClose$1, h as DialogTrigger$1 } from '../dialog-DK71SlsS.js';
import { X } from '../x-_o2T3n6D.js';
import { C as Content, a as Close } from '../index-9HvIbmnI.js';
import 'react';
import '../index-D7Zy7P05.js';
import '../index-CfriMyrd.js';
import '../index-BtkPdosV.js';
import 'react-i18next';
import '../createLucideIcon-C8ycilSN.js';
import '../index-DNzunGHb.js';
import '../index-CiyxEyB0.js';
import '../index-zW4GjM5L.js';
import '../index-DOzu5J1s.js';
import '../index-Cor698lu.js';
import '../index-BNPynZWM.js';
import '../index-DhnfW8wQ.js';
import 'react-dom';
import '../index-CSUSJzOJ.js';
import '../index-B4_fVWDx.js';
import '../index-fV_U4ZJM.js';
import '../index-yFgkK_AM.js';

const Dialog = (props) => (jsx(Dialog$1, { ...props }));
const DialogClose = (props) => (jsx(DialogClose$1, { ...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 }) => (jsxs(DialogPortal$1, { children: [jsx(DialogOverlay$1, { className: overlayClassName }), jsxs(Content, { "data-slot": "dialog-content", className: 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-5 rounded-xl bg-popover p-6 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 && (jsx(Close, { "data-slot": "dialog-close", asChild: true, children: jsxs(Button, { variant: "ghost", className: "absolute top-2 end-2", size: "icon-sm", children: [jsx(X, {}), jsx("span", { className: "sr-only", children: "Close" })] }) }))] })] }));
const DialogDescription = (props) => jsx(DialogDescription$1, { ...props });
const DialogFooter = ({ className, ...props }) => (jsx(DialogFooter$1, { className: cn("-mx-6 -mb-6 border-t-0 px-6 py-4", className), ...props }));
const DialogHeader = ({ className, ...props }) => (jsx(DialogHeader$1, { className: cn("gap-3", className), ...props }));
const DialogOverlay = (props) => jsx(DialogOverlay$1, { ...props });
const DialogPortal = (props) => jsx(DialogPortal$1, { ...props });
const DialogTitle = (props) => (jsx(DialogTitle$1, { ...props }));
const DialogTrigger = (props) => jsx(DialogTrigger$1, { ...props });

export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
//# sourceMappingURL=Dialog.js.map
