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 ContextMenuPrimitive from "@radix-ui/react-context-menu";
function ContextMenu(e) {
	let i = c(4), a;
	i[0] === e ? a = i[1] : ({...a} = e, i[0] = e, i[1] = a);
	let o;
	return i[2] === a ? o = i[3] : (o = /* @__PURE__ */ jsx(ContextMenuPrimitive.Root, {
		"data-slot": "context-menu",
		...a
	}), i[2] = a, i[3] = o), o;
}
function ContextMenuTrigger(e) {
	let i = c(4), a;
	i[0] === e ? a = i[1] : ({...a} = e, i[0] = e, i[1] = a);
	let o;
	return i[2] === a ? o = i[3] : (o = /* @__PURE__ */ jsx(ContextMenuPrimitive.Trigger, {
		"data-slot": "context-menu-trigger",
		...a
	}), i[2] = a, i[3] = o), o;
}
function ContextMenuContent(i) {
	let a = c(8), o, s;
	a[0] === i ? (o = a[1], s = a[2]) : ({className: o, ...s} = i, a[0] = i, a[1] = o, a[2] = s);
	let l;
	a[3] === o ? l = a[4] : (l = 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-context-menu-content-available-height) min-w-[8rem] origin-(--radix-context-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", o), a[3] = o, a[4] = l);
	let u;
	return a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ jsx(ContextMenuPrimitive.Portal, { children: /* @__PURE__ */ jsx(ContextMenuPrimitive.Content, {
		"data-slot": "context-menu-content",
		className: l,
		...s
	}) }), a[5] = s, a[6] = l, a[7] = u) : u = a[7], u;
}
function ContextMenuItem(i) {
	let a = c(12), o, s, l, u;
	a[0] === i ? (o = a[1], s = a[2], l = a[3], u = a[4]) : ({className: o, inset: s, variant: u, ...l} = i, a[0] = i, a[1] = o, a[2] = s, a[3] = l, a[4] = u);
	let d = u === void 0 ? "default" : u, f;
	a[5] === o ? f = a[6] : (f = 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", o), a[5] = o, a[6] = f);
	let p;
	return a[7] !== s || a[8] !== l || a[9] !== f || a[10] !== d ? (p = /* @__PURE__ */ jsx(ContextMenuPrimitive.Item, {
		"data-slot": "context-menu-item",
		"data-inset": s,
		"data-variant": d,
		className: f,
		...l
	}), a[7] = s, a[8] = l, a[9] = f, a[10] = d, a[11] = p) : p = a[11], p;
}
function ContextMenuSeparator(i) {
	let a = c(8), o, s;
	a[0] === i ? (o = a[1], s = a[2]) : ({className: o, ...s} = i, a[0] = i, a[1] = o, a[2] = s);
	let l;
	a[3] === o ? l = a[4] : (l = cn("bg-border -mx-1 my-1 h-px", o), a[3] = o, a[4] = l);
	let u;
	return a[5] !== s || a[6] !== l ? (u = /* @__PURE__ */ jsx(ContextMenuPrimitive.Separator, {
		"data-slot": "context-menu-separator",
		className: l,
		...s
	}), a[5] = s, a[6] = l, a[7] = u) : u = a[7], u;
}
export { ContextMenu, ContextMenuContent, ContextMenuItem, ContextMenuSeparator, ContextMenuTrigger };
