'use strict';

var jsxRuntime = require('react/jsx-runtime');
var utils = require('../utils-BhM0B89p.js');
var button = require('../button-CMl9rLXi.js');
var dialog = require('../dialog-Cs1qH5xA.js');
var x = require('../x-Brw3FJst.js');
var index = require('../index-BTsnrFFc.js');
require('react');
require('../index-vioSzJOw.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-CS_WSHYi.js');
require('../index-Df-Ffa3s.js');
require('../index-DcCSSgb7.js');

const Dialog = (props) => /* @__PURE__ */ jsxRuntime.jsx(dialog.Dialog, { ...props });
const DialogClose = (props) => /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogClose, { ...props });
const DialogContent = ({
  className,
  children,
  showCloseButton = true,
  overlayClassName,
  ...props
}) => /* @__PURE__ */ jsxRuntime.jsxs(dialog.DialogPortal, { children: [
  /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogOverlay, { className: overlayClassName }),
  /* @__PURE__ */ 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-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 && /* @__PURE__ */ jsxRuntime.jsx(index.Close, { "data-slot": "dialog-close", asChild: true, children: /* @__PURE__ */ jsxRuntime.jsxs(
          button.Button,
          {
            variant: "ghost",
            className: "absolute top-2 end-2",
            size: "icon-sm",
            children: [
              /* @__PURE__ */ jsxRuntime.jsx(x.X, {}),
              /* @__PURE__ */ jsxRuntime.jsx("span", { className: "sr-only", children: "Close" })
            ]
          }
        ) })
      ]
    }
  )
] });
const DialogDescription = (props) => /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogDescription, { ...props });
const DialogFooter = ({
  className,
  ...props
}) => /* @__PURE__ */ jsxRuntime.jsx(
  dialog.DialogFooter,
  {
    className: utils.cn("-mx-6 -mb-6 border-t-0 px-6 py-4", className),
    ...props
  }
);
const DialogHeader = ({
  className,
  ...props
}) => /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogHeader, { className: utils.cn("gap-3", className), ...props });
const DialogOverlay = (props) => /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogOverlay, { ...props });
const DialogPortal = (props) => /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogPortal, { ...props });
const DialogTitle = (props) => /* @__PURE__ */ jsxRuntime.jsx(dialog.DialogTitle, { ...props });
const DialogTrigger = (props) => /* @__PURE__ */ 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
