import { cn as e } from "../../lib/utils.js";
import "react";
import { jsx as t } from "react/jsx-runtime";
import "lucide-react";
import * as n from "@radix-ui/react-context-menu";
//#region src/components/ui/context-menu.tsx
function r({ ...e }) {
	return /* @__PURE__ */ t(n.Root, {
		"data-slot": "context-menu",
		...e
	});
}
function i({ ...e }) {
	return /* @__PURE__ */ t(n.Trigger, {
		"data-slot": "context-menu-trigger",
		...e
	});
}
function a({ className: r, ...i }) {
	return /* @__PURE__ */ t(n.Portal, { children: /* @__PURE__ */ t(n.Content, {
		"data-slot": "context-menu-content",
		className: e("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", r),
		...i
	}) });
}
function o({ className: r, inset: i, variant: a = "default", ...o }) {
	return /* @__PURE__ */ t(n.Item, {
		"data-slot": "context-menu-item",
		"data-inset": i,
		"data-variant": a,
		className: e("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", r),
		...o
	});
}
function s({ className: r, ...i }) {
	return /* @__PURE__ */ t(n.Separator, {
		"data-slot": "context-menu-separator",
		className: e("bg-border -mx-1 my-1 h-px", r),
		...i
	});
}
//#endregion
export { r as ContextMenu, a as ContextMenuContent, o as ContextMenuItem, s as ContextMenuSeparator, i as ContextMenuTrigger };
