import { cn } from "../../lib/utils.js";
import { c } from "react/compiler-runtime";
import "react";
import { jsx, jsxs } from "react/jsx-runtime";
import { CheckIcon, ChevronRightIcon, CircleIcon } from "lucide-react";
import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
function DropdownMenu(e) {
	let f = c(4), p;
	f[0] === e ? p = f[1] : ({...p} = e, f[0] = e, f[1] = p);
	let m;
	return f[2] === p ? m = f[3] : (m = /* @__PURE__ */ jsx(DropdownMenuPrimitive.Root, {
		"data-slot": "dropdown-menu",
		...p
	}), f[2] = p, f[3] = m), m;
}
function DropdownMenuPortal(e) {
	let f = c(4), p;
	f[0] === e ? p = f[1] : ({...p} = e, f[0] = e, f[1] = p);
	let m;
	return f[2] === p ? m = f[3] : (m = /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, {
		"data-slot": "dropdown-menu-portal",
		...p
	}), f[2] = p, f[3] = m), m;
}
function DropdownMenuTrigger(e) {
	let f = c(4), p;
	f[0] === e ? p = f[1] : ({...p} = e, f[0] = e, f[1] = p);
	let m;
	return f[2] === p ? m = f[3] : (m = /* @__PURE__ */ jsx(DropdownMenuPrimitive.Trigger, {
		"data-slot": "dropdown-menu-trigger",
		...p
	}), f[2] = p, f[3] = m), m;
}
function DropdownMenuContent(f) {
	let p = c(10), m, h, _;
	p[0] === f ? (m = p[1], h = p[2], _ = p[3]) : ({className: m, sideOffset: _, ...h} = f, p[0] = f, p[1] = m, p[2] = h, p[3] = _);
	let v = _ === void 0 ? 4 : _, y;
	p[4] === m ? y = p[5] : (y = cn("bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", m), p[4] = m, p[5] = y);
	let b;
	return p[6] !== h || p[7] !== v || p[8] !== y ? (b = /* @__PURE__ */ jsx(DropdownMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.Content, {
		"data-slot": "dropdown-menu-content",
		sideOffset: v,
		className: y,
		...h
	}) }), p[6] = h, p[7] = v, p[8] = y, p[9] = b) : b = p[9], b;
}
function DropdownMenuGroup(e) {
	let f = c(4), p;
	f[0] === e ? p = f[1] : ({...p} = e, f[0] = e, f[1] = p);
	let m;
	return f[2] === p ? m = f[3] : (m = /* @__PURE__ */ jsx(DropdownMenuPrimitive.Group, {
		"data-slot": "dropdown-menu-group",
		...p
	}), f[2] = p, f[3] = m), m;
}
function DropdownMenuItem(f) {
	let p = c(12), m, h, _, v;
	p[0] === f ? (m = p[1], h = p[2], _ = p[3], v = p[4]) : ({className: m, inset: h, variant: v, ..._} = f, p[0] = f, p[1] = m, p[2] = h, p[3] = _, p[4] = v);
	let y = v === void 0 ? "default" : v, b;
	p[5] === m ? b = p[6] : (b = cn("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", m), p[5] = m, p[6] = b);
	let x;
	return p[7] !== h || p[8] !== _ || p[9] !== b || p[10] !== y ? (x = /* @__PURE__ */ jsx(DropdownMenuPrimitive.Item, {
		"data-slot": "dropdown-menu-item",
		"data-inset": h,
		"data-variant": y,
		className: b,
		..._
	}), p[7] = h, p[8] = _, p[9] = b, p[10] = y, p[11] = x) : x = p[11], x;
}
function DropdownMenuCheckboxItem(m) {
	let h = c(13), _, v, y, b;
	h[0] === m ? (_ = h[1], v = h[2], y = h[3], b = h[4]) : ({className: y, children: v, checked: _, ...b} = m, h[0] = m, h[1] = _, h[2] = v, h[3] = y, h[4] = b);
	let x;
	h[5] === y ? x = h[6] : (x = cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", y), h[5] = y, h[6] = x);
	let S;
	h[7] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ jsx("span", {
		className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
		children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CheckIcon, { className: "size-4" }) })
	}), h[7] = S) : S = h[7];
	let C;
	return h[8] !== _ || h[9] !== v || h[10] !== b || h[11] !== x ? (C = /* @__PURE__ */ jsxs(DropdownMenuPrimitive.CheckboxItem, {
		"data-slot": "dropdown-menu-checkbox-item",
		className: x,
		checked: _,
		...b,
		children: [S, v]
	}), h[8] = _, h[9] = v, h[10] = b, h[11] = x, h[12] = C) : C = h[12], C;
}
function DropdownMenuRadioGroup(e) {
	let f = c(4), p;
	f[0] === e ? p = f[1] : ({...p} = e, f[0] = e, f[1] = p);
	let m;
	return f[2] === p ? m = f[3] : (m = /* @__PURE__ */ jsx(DropdownMenuPrimitive.RadioGroup, {
		"data-slot": "dropdown-menu-radio-group",
		...p
	}), f[2] = p, f[3] = m), m;
}
function DropdownMenuRadioItem(p) {
	let m = c(11), _, v, y;
	m[0] === p ? (_ = m[1], v = m[2], y = m[3]) : ({className: v, children: _, ...y} = p, m[0] = p, m[1] = _, m[2] = v, m[3] = y);
	let b;
	m[4] === v ? b = m[5] : (b = cn("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", v), m[4] = v, m[5] = b);
	let x;
	m[6] === Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ jsx("span", {
		className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
		children: /* @__PURE__ */ jsx(DropdownMenuPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx(CircleIcon, { className: "size-2 fill-current" }) })
	}), m[6] = x) : x = m[6];
	let S;
	return m[7] !== _ || m[8] !== y || m[9] !== b ? (S = /* @__PURE__ */ jsxs(DropdownMenuPrimitive.RadioItem, {
		"data-slot": "dropdown-menu-radio-item",
		className: b,
		...y,
		children: [x, _]
	}), m[7] = _, m[8] = y, m[9] = b, m[10] = S) : S = m[10], S;
}
function DropdownMenuLabel(f) {
	let p = c(10), m, h, _;
	p[0] === f ? (m = p[1], h = p[2], _ = p[3]) : ({className: m, inset: h, ..._} = f, p[0] = f, p[1] = m, p[2] = h, p[3] = _);
	let v;
	p[4] === m ? v = p[5] : (v = cn("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", m), p[4] = m, p[5] = v);
	let y;
	return p[6] !== h || p[7] !== _ || p[8] !== v ? (y = /* @__PURE__ */ jsx(DropdownMenuPrimitive.Label, {
		"data-slot": "dropdown-menu-label",
		"data-inset": h,
		className: v,
		..._
	}), p[6] = h, p[7] = _, p[8] = v, p[9] = y) : y = p[9], y;
}
function DropdownMenuSeparator(f) {
	let p = c(8), m, h;
	p[0] === f ? (m = p[1], h = p[2]) : ({className: m, ...h} = f, p[0] = f, p[1] = m, p[2] = h);
	let _;
	p[3] === m ? _ = p[4] : (_ = cn("bg-border -mx-1 my-1 h-px", m), p[3] = m, p[4] = _);
	let v;
	return p[5] !== h || p[6] !== _ ? (v = /* @__PURE__ */ jsx(DropdownMenuPrimitive.Separator, {
		"data-slot": "dropdown-menu-separator",
		className: _,
		...h
	}), p[5] = h, p[6] = _, p[7] = v) : v = p[7], v;
}
function DropdownMenuShortcut(f) {
	let p = c(8), m, h;
	p[0] === f ? (m = p[1], h = p[2]) : ({className: m, ...h} = f, p[0] = f, p[1] = m, p[2] = h);
	let g;
	p[3] === m ? g = p[4] : (g = cn("text-muted-foreground ml-auto text-xs tracking-widest", m), p[3] = m, p[4] = g);
	let _;
	return p[5] !== h || p[6] !== g ? (_ = /* @__PURE__ */ jsx("span", {
		"data-slot": "dropdown-menu-shortcut",
		className: g,
		...h
	}), p[5] = h, p[6] = g, p[7] = _) : _ = p[7], _;
}
function DropdownMenuSub(e) {
	let f = c(4), p;
	f[0] === e ? p = f[1] : ({...p} = e, f[0] = e, f[1] = p);
	let m;
	return f[2] === p ? m = f[3] : (m = /* @__PURE__ */ jsx(DropdownMenuPrimitive.Sub, {
		"data-slot": "dropdown-menu-sub",
		...p
	}), f[2] = p, f[3] = m), m;
}
function DropdownMenuSubTrigger(p) {
	let h = c(13), _, v, y, b;
	h[0] === p ? (_ = h[1], v = h[2], y = h[3], b = h[4]) : ({className: v, inset: y, children: _, ...b} = p, h[0] = p, h[1] = _, h[2] = v, h[3] = y, h[4] = b);
	let x;
	h[5] === v ? x = h[6] : (x = cn("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", v), h[5] = v, h[6] = x);
	let S;
	h[7] === Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ jsx(ChevronRightIcon, { className: "ml-auto size-4" }), h[7] = S) : S = h[7];
	let C;
	return h[8] !== _ || h[9] !== y || h[10] !== b || h[11] !== x ? (C = /* @__PURE__ */ jsxs(DropdownMenuPrimitive.SubTrigger, {
		"data-slot": "dropdown-menu-sub-trigger",
		"data-inset": y,
		className: x,
		...b,
		children: [_, S]
	}), h[8] = _, h[9] = y, h[10] = b, h[11] = x, h[12] = C) : C = h[12], C;
}
function DropdownMenuSubContent(f) {
	let p = c(8), m, h;
	p[0] === f ? (m = p[1], h = p[2]) : ({className: m, ...h} = f, p[0] = f, p[1] = m, p[2] = h);
	let _;
	p[3] === m ? _ = p[4] : (_ = cn("bg-popover text-popover-foreground 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 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", m), p[3] = m, p[4] = _);
	let v;
	return p[5] !== h || p[6] !== _ ? (v = /* @__PURE__ */ jsx(DropdownMenuPrimitive.SubContent, {
		"data-slot": "dropdown-menu-sub-content",
		className: _,
		...h
	}), p[5] = h, p[6] = _, p[7] = v) : v = p[7], v;
}
export { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger };
