"use client";
import { cn as e } from "./lib/utils.js";
import { a as t, c as n, i as r, n as i, o as a, r as o, s, t as c } from "./DialogTrigger-BuKadcdL.js";
import { t as l } from "./button-BNOmhdpM.js";
import { jsx as u, jsxs as d } from "react/jsx-runtime";
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/alert-dialog/root/AlertDialogRoot.js
function f(e) {
	return n(e, "alert-dialog");
}
//#endregion
//#region ../../node_modules/.bun/@base-ui+react@1.5.0+f4ada88178b00e6f/node_modules/@base-ui/react/esm/alert-dialog/trigger/AlertDialogTrigger.js
var p = c;
//#endregion
//#region lib/components/ui/atoms/alert-dialog.tsx
function m({ ...e }) {
	return /* @__PURE__ */ u(f, {
		"data-slot": "alert-dialog",
		...e
	});
}
function h({ ...e }) {
	return /* @__PURE__ */ u(p, {
		"data-slot": "alert-dialog-trigger",
		...e
	});
}
function g({ ...e }) {
	return /* @__PURE__ */ u(o, {
		"data-slot": "alert-dialog-portal",
		...e
	});
}
function _({ className: t, ...n }) {
	return /* @__PURE__ */ u(s, {
		className: e("data-open:fade-in-0 data-closed:fade-out-0 fixed inset-0 isolate z-50 bg-black/10 duration-100 data-closed:animate-out data-open:animate-in supports-backdrop-filter:backdrop-blur-xs", t),
		"data-slot": "alert-dialog-overlay",
		...n
	});
}
function v({ className: t, size: n = "default", ...i }) {
	return /* @__PURE__ */ d(g, { children: [/* @__PURE__ */ u(_, {}), /* @__PURE__ */ u(r, {
		className: e("group/alert-dialog-content data-open:fade-in-0 data-open:zoom-in-95 data-closed:fade-out-0 data-closed:zoom-out-95 fixed top-1/2 left-1/2 z-50 grid w-full -translate-x-1/2 -translate-y-1/2 gap-6 rounded-xl bg-popover p-6 text-popover-foreground outline-none ring-1 ring-foreground/10 duration-100 data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-closed:animate-out data-open:animate-in data-[size=default]:sm:max-w-lg", t),
		"data-size": n,
		"data-slot": "alert-dialog-content",
		...i
	})] });
}
function y({ className: t, ...n }) {
	return /* @__PURE__ */ u("div", {
		className: e("grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-6 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-left sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]", t),
		"data-slot": "alert-dialog-header",
		...n
	});
}
function b({ className: t, ...n }) {
	return /* @__PURE__ */ u("div", {
		className: e("flex flex-col-reverse gap-2 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end", t),
		"data-slot": "alert-dialog-footer",
		...n
	});
}
function x({ className: t, ...n }) {
	return /* @__PURE__ */ u("div", {
		className: e("mb-2 inline-flex size-16 items-center justify-center rounded-md bg-muted sm:group-data-[size=default]/alert-dialog-content:row-span-2 *:[svg:not([class*='size-'])]:size-8", t),
		"data-slot": "alert-dialog-media",
		...n
	});
}
function S({ className: t, ...n }) {
	return /* @__PURE__ */ u(i, {
		className: e("font-medium text-lg sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2", t),
		"data-slot": "alert-dialog-title",
		...n
	});
}
function C({ className: n, ...r }) {
	return /* @__PURE__ */ u(t, {
		className: e("text-balance text-muted-foreground text-sm md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground", n),
		"data-slot": "alert-dialog-description",
		...r
	});
}
function w({ className: t, ...n }) {
	return /* @__PURE__ */ u(l, {
		className: e(t),
		"data-slot": "alert-dialog-action",
		...n
	});
}
function T({ className: t, variant: n = "outline", size: r = "default", ...i }) {
	return /* @__PURE__ */ u(a, {
		className: e(t),
		"data-slot": "alert-dialog-cancel",
		render: /* @__PURE__ */ u(l, {
			size: r,
			variant: n
		}),
		...i
	});
}
//#endregion
export { C as a, x as c, S as d, h as f, v as i, _ as l, w as n, b as o, T as r, y as s, m as t, g as u };
