import { t as e } from "./utils-B7XIe3qq.js";
import { n as t } from "./dist-CTlQcJNK.js";
import { buttonVariants as n } from "./react/primitives/button.js";
import { a as r, o as i } from "./dist-koa_pEtu.js";
import { a, c as o, i as s, l as ee, n as c, o as l, r as u, s as d, t as f, u as p } from "./dist-D0hHNX_3.js";
import * as m from "react";
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
//#region node_modules/@radix-ui/react-alert-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs
var v = Symbol("radix.slottable");
/* @__NO_SIDE_EFFECTS__ */
function y(e) {
	let t = ({ children: e }) => /* @__PURE__ */ g(h, { children: e });
	return t.displayName = `${e}.Slottable`, t.__radixId = v, t;
}
//#endregion
//#region node_modules/@radix-ui/react-alert-dialog/dist/index.mjs
var b = "AlertDialog", [x, te] = r(b, [p]), S = p(), C = (e) => {
	let { __scopeAlertDialog: t, ...n } = e;
	return /* @__PURE__ */ g(l, {
		...S(t),
		...n,
		modal: !0
	});
};
C.displayName = b;
var w = "AlertDialogTrigger", T = m.forwardRef((e, t) => {
	let { __scopeAlertDialog: n, ...r } = e;
	return /* @__PURE__ */ g(o, {
		...S(n),
		...r,
		ref: t
	});
});
T.displayName = w;
var E = "AlertDialogPortal", D = (e) => {
	let { __scopeAlertDialog: t, ...n } = e;
	return /* @__PURE__ */ g(a, {
		...S(t),
		...n
	});
};
D.displayName = E;
var O = "AlertDialogOverlay", k = m.forwardRef((e, t) => {
	let { __scopeAlertDialog: n, ...r } = e;
	return /* @__PURE__ */ g(s, {
		...S(n),
		...r,
		ref: t
	});
});
k.displayName = O;
var A = "AlertDialogContent", [ne, j] = x(A), M = /* @__PURE__ */ y("AlertDialogContent"), N = m.forwardRef((e, n) => {
	let { __scopeAlertDialog: r, children: a, ...o } = e, s = S(r), l = m.useRef(null), u = t(n, l), d = m.useRef(null);
	return /* @__PURE__ */ g(ee, {
		contentName: A,
		titleName: P,
		docsSlug: "alert-dialog",
		children: /* @__PURE__ */ g(ne, {
			scope: r,
			cancelRef: d,
			children: /* @__PURE__ */ _(c, {
				role: "alertdialog",
				...s,
				...o,
				ref: u,
				onOpenAutoFocus: i(o.onOpenAutoFocus, (e) => {
					e.preventDefault(), d.current?.focus({ preventScroll: !0 });
				}),
				onPointerDownOutside: (e) => e.preventDefault(),
				onInteractOutside: (e) => e.preventDefault(),
				children: [/* @__PURE__ */ g(M, { children: a }), /* @__PURE__ */ g(H, { contentRef: l })]
			})
		})
	});
});
N.displayName = A;
var P = "AlertDialogTitle", F = m.forwardRef((e, t) => {
	let { __scopeAlertDialog: n, ...r } = e;
	return /* @__PURE__ */ g(d, {
		...S(n),
		...r,
		ref: t
	});
});
F.displayName = P;
var I = "AlertDialogDescription", L = m.forwardRef((e, t) => {
	let { __scopeAlertDialog: n, ...r } = e;
	return /* @__PURE__ */ g(u, {
		...S(n),
		...r,
		ref: t
	});
});
L.displayName = I;
var R = "AlertDialogAction", z = m.forwardRef((e, t) => {
	let { __scopeAlertDialog: n, ...r } = e;
	return /* @__PURE__ */ g(f, {
		...S(n),
		...r,
		ref: t
	});
});
z.displayName = R;
var B = "AlertDialogCancel", V = m.forwardRef((e, n) => {
	let { __scopeAlertDialog: r, ...i } = e, { cancelRef: a } = j(B, r), o = S(r), s = t(n, a);
	return /* @__PURE__ */ g(f, {
		...o,
		...i,
		ref: s
	});
});
V.displayName = B;
var H = ({ contentRef: e }) => {
	let t = `\`${A}\` requires a description for the component to be accessible for screen reader users.

You can add a description to the \`${A}\` by passing a \`${I}\` component as a child, which also benefits sighted users by adding visible context to the dialog.

Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${A}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.

For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;
	return m.useEffect(() => {
		document.getElementById(e.current?.getAttribute("aria-describedby")) || console.warn(t);
	}, [t, e]), null;
}, U = C, W = T, G = D, K = k, q = N, J = z, Y = V, X = F, Z = L;
//#endregion
//#region src/react/primitives/alert-dialog.tsx
function re({ ...e }) {
	return /* @__PURE__ */ g(U, {
		"data-slot": "alert-dialog",
		...e
	});
}
function ie({ ...e }) {
	return /* @__PURE__ */ g(W, {
		"data-slot": "alert-dialog-trigger",
		...e
	});
}
function Q({ ...e }) {
	return /* @__PURE__ */ g(G, {
		"data-slot": "alert-dialog-portal",
		...e
	});
}
function $({ className: t, ...n }) {
	return /* @__PURE__ */ g(K, {
		"data-slot": "alert-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 ae({ className: t, ...n }) {
	return /* @__PURE__ */ _(Q, { children: [/* @__PURE__ */ g($, {}), /* @__PURE__ */ g(q, {
		"data-slot": "alert-dialog-content",
		className: e("bg-background-elevated border-border-glass 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-xl border p-6 shadow-2xl duration-200 outline-none sm:max-w-lg", t),
		...n
	})] });
}
function oe({ className: t, ...n }) {
	return /* @__PURE__ */ g("div", {
		"data-slot": "alert-dialog-header",
		className: e("flex flex-col gap-2 text-center sm:text-left", t),
		...n
	});
}
function se({ className: t, ...n }) {
	return /* @__PURE__ */ g("div", {
		"data-slot": "alert-dialog-footer",
		className: e("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end", t),
		...n
	});
}
function ce({ className: t, ...n }) {
	return /* @__PURE__ */ g(X, {
		"data-slot": "alert-dialog-title",
		className: e("text-foreground text-lg font-semibold", t),
		...n
	});
}
function le({ className: t, ...n }) {
	return /* @__PURE__ */ g(Z, {
		"data-slot": "alert-dialog-description",
		className: e("text-foreground-secondary text-sm", t),
		...n
	});
}
function ue({ className: t, ...r }) {
	return /* @__PURE__ */ g(J, {
		className: e(n(), t),
		...r
	});
}
function de({ className: t, ...r }) {
	return /* @__PURE__ */ g(Y, {
		className: e(n({ variant: "outline" }), t),
		...r
	});
}
//#endregion
export { le as a, $ as c, ie as d, ae as i, Q as l, ue as n, se as o, de as r, oe as s, re as t, ce as u };

//# sourceMappingURL=alert-dialog-DXa-O6E4.js.map