import { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogTitle } from "../ui/alert-dialog.js";
import { c } from "react/compiler-runtime";
import { jsx, jsxs } from "react/jsx-runtime";
var ConfirmDialog_default = (f) => {
	let p = c(23), { isOpen: m, onOpenChange: h, title: g, description: _, onConfirm: v, confirmText: y, cancelText: b, variant: x } = f, S = y === void 0 ? "Confirm" : y, C = b === void 0 ? "Cancel" : b, w = x === void 0 ? "default" : x, T;
	p[0] === g ? T = p[1] : (T = /* @__PURE__ */ jsx(AlertDialogTitle, { children: g }), p[0] = g, p[1] = T);
	let E;
	p[2] === _ ? E = p[3] : (E = /* @__PURE__ */ jsx(AlertDialogDescription, { children: _ }), p[2] = _, p[3] = E);
	let D;
	p[4] !== T || p[5] !== E ? (D = /* @__PURE__ */ jsxs(AlertDialogHeader, { children: [T, E] }), p[4] = T, p[5] = E, p[6] = D) : D = p[6];
	let O;
	p[7] === C ? O = p[8] : (O = /* @__PURE__ */ jsx(AlertDialogCancel, { children: C }), p[7] = C, p[8] = O);
	let k = w === "destructive" ? "bg-destructive text-destructive-foreground hover:bg-destructive/90 text-white" : "", A;
	p[9] !== S || p[10] !== v || p[11] !== k ? (A = /* @__PURE__ */ jsx(AlertDialogAction, {
		onClick: v,
		className: k,
		children: S
	}), p[9] = S, p[10] = v, p[11] = k, p[12] = A) : A = p[12];
	let j;
	p[13] !== O || p[14] !== A ? (j = /* @__PURE__ */ jsxs(AlertDialogFooter, { children: [O, A] }), p[13] = O, p[14] = A, p[15] = j) : j = p[15];
	let M;
	p[16] !== j || p[17] !== D ? (M = /* @__PURE__ */ jsxs(AlertDialogContent, { children: [D, j] }), p[16] = j, p[17] = D, p[18] = M) : M = p[18];
	let N;
	return p[19] !== m || p[20] !== h || p[21] !== M ? (N = /* @__PURE__ */ jsx(AlertDialog, {
		open: m,
		onOpenChange: h,
		children: M
	}), p[19] = m, p[20] = h, p[21] = M, p[22] = N) : N = p[22], N;
};
export { ConfirmDialog_default as default };
