import { t as e } from "../../utils-B7XIe3qq.js";
import { t } from "../../x-BleQvk5v.js";
import { a as n, c as r, i, n as a, o, r as s, s as c, t as l } from "../../dist-D0hHNX_3.js";
import "react";
import { jsx as u, jsxs as d } from "react/jsx-runtime";
//#region src/react/primitives/dialog.tsx
function f({ ...e }) {
	return /* @__PURE__ */ u(o, {
		"data-slot": "dialog",
		...e
	});
}
function p({ ...e }) {
	return /* @__PURE__ */ u(r, {
		"data-slot": "dialog-trigger",
		...e
	});
}
function m({ ...e }) {
	return /* @__PURE__ */ u(n, {
		"data-slot": "dialog-portal",
		...e
	});
}
function h({ ...e }) {
	return /* @__PURE__ */ u(l, {
		"data-slot": "dialog-close",
		...e
	});
}
function g({ className: t, ...n }) {
	return /* @__PURE__ */ u(i, {
		"data-slot": "dialog-overlay",
		className: e("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/60 backdrop-blur-sm", t),
		...n
	});
}
function _({ className: n, children: r, showCloseButton: i = !0, ...o }) {
	return /* @__PURE__ */ d(m, {
		"data-slot": "dialog-portal",
		children: [/* @__PURE__ */ u(g, {}), /* @__PURE__ */ d(a, {
			"data-slot": "dialog-content",
			className: e("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg", n),
			...o,
			children: [r, i && /* @__PURE__ */ d(l, {
				"data-slot": "dialog-close",
				className: "ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
				children: [/* @__PURE__ */ u(t, {}), /* @__PURE__ */ u("span", {
					className: "sr-only",
					children: "Close"
				})]
			})]
		})]
	});
}
function v({ className: t, ...n }) {
	return /* @__PURE__ */ u("div", {
		"data-slot": "dialog-header",
		className: e("flex flex-col gap-2 text-center sm:text-left", t),
		...n
	});
}
function y({ className: t, ...n }) {
	return /* @__PURE__ */ u("div", {
		"data-slot": "dialog-footer",
		className: e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
		...n
	});
}
function b({ className: t, ...n }) {
	return /* @__PURE__ */ u(c, {
		"data-slot": "dialog-title",
		className: e("text-lg leading-none font-semibold", t),
		...n
	});
}
function x({ className: t, ...n }) {
	return /* @__PURE__ */ u(s, {
		"data-slot": "dialog-description",
		className: e("text-muted-foreground text-sm", t),
		...n
	});
}
//#endregion
export { f as Dialog, h as DialogClose, _ as DialogContent, x as DialogDescription, y as DialogFooter, v as DialogHeader, g as DialogOverlay, m as DialogPortal, b as DialogTitle, p as DialogTrigger };

//# sourceMappingURL=dialog.js.map