import { t as e } from "./utils-Ct96Mtjw.js";
import * as t from "react";
import { CheckIcon as n, ChevronRightIcon as r, CircleIcon as i } from "lucide-react";
import { jsx as a, jsxs as o } from "react/jsx-runtime";
import * as s from "@radix-ui/react-context-menu";
//#region src/components/ui/context-menu.tsx
var c = s.Root, l = s.Trigger, u = s.Group;
s.Portal;
var d = s.Sub, f = s.RadioGroup, p = t.forwardRef(({ className: t, inset: n, children: i, ...c }, l) => /* @__PURE__ */ o(s.SubTrigger, {
	ref: l,
	className: e("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent", n && "pl-8", t),
	...c,
	children: [i, /* @__PURE__ */ a(r, { className: "ml-auto h-4 w-4" })]
}));
p.displayName = s.SubTrigger.displayName;
var m = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.SubContent, {
	ref: r,
	className: e("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg 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", t),
	...n
}));
m.displayName = s.SubContent.displayName;
var h = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.Portal, { children: /* @__PURE__ */ a(s.Content, {
	ref: r,
	className: e("z-50 min-w-[12rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md 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", t),
	...n
}) }));
h.displayName = s.Content.displayName;
var g = t.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ a(s.Item, {
	ref: i,
	className: e("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", n && "pl-8", t),
	...r
}));
g.displayName = s.Item.displayName;
var _ = t.forwardRef(({ className: t, children: r, checked: i, ...c }, l) => /* @__PURE__ */ o(s.CheckboxItem, {
	ref: l,
	className: e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
	checked: i,
	...c,
	children: [/* @__PURE__ */ a("span", {
		className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
		children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(n, { className: "h-4 w-4" }) })
	}), r]
}));
_.displayName = s.CheckboxItem.displayName;
var v = t.forwardRef(({ className: t, children: n, ...r }, c) => /* @__PURE__ */ o(s.RadioItem, {
	ref: c,
	className: e("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", t),
	...r,
	children: [/* @__PURE__ */ a("span", {
		className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center",
		children: /* @__PURE__ */ a(s.ItemIndicator, { children: /* @__PURE__ */ a(i, { className: "h-2 w-2 fill-current" }) })
	}), n]
}));
v.displayName = s.RadioItem.displayName;
var y = t.forwardRef(({ className: t, inset: n, ...r }, i) => /* @__PURE__ */ a(s.Label, {
	ref: i,
	className: e("px-2 py-1.5 text-xs font-semibold text-muted-foreground", n && "pl-8", t),
	...r
}));
y.displayName = s.Label.displayName;
var b = t.forwardRef(({ className: t, ...n }, r) => /* @__PURE__ */ a(s.Separator, {
	ref: r,
	className: e("-mx-1 my-1 h-px bg-muted", t),
	...n
}));
b.displayName = s.Separator.displayName;
var x = ({ className: t, ...n }) => /* @__PURE__ */ a("span", {
	className: e("ml-auto text-xs tracking-widest opacity-60", t),
	...n
});
x.displayName = "ContextMenuShortcut";
//#endregion
export { g as a, v as c, d, m as f, u as i, b as l, l as m, _ as n, y as o, p, h as r, f as s, c as t, x as u };
