import { j as o, c as d } from "./DocsApp-CEu0IOyd.js";
import * as r from "react";
import * as e from "@radix-ui/react-context-menu";
import { ChevronRightIcon as l, CheckIcon as c, CircleIcon as m } from "lucide-react";
const w = e.Root, R = e.Trigger, I = e.Group, M = e.Sub, v = e.RadioGroup, u = r.forwardRef(({ className: t, inset: a, children: s, ...n }, i) => /* @__PURE__ */ o.jsxs(
  e.SubTrigger,
  {
    ref: i,
    className: d(
      "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",
      a && "pl-8",
      t
    ),
    ...n,
    children: [
      s,
      /* @__PURE__ */ o.jsx(l, { className: "ml-auto h-4 w-4" })
    ]
  }
));
u.displayName = e.SubTrigger.displayName;
const p = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o.jsx(
  e.SubContent,
  {
    ref: s,
    className: d(
      "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
    ),
    ...a
  }
));
p.displayName = e.SubContent.displayName;
const f = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o.jsx(e.Portal, { children: /* @__PURE__ */ o.jsx(
  e.Content,
  {
    ref: s,
    className: d(
      "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
    ),
    ...a
  }
) }));
f.displayName = e.Content.displayName;
const x = r.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */ o.jsx(
  e.Item,
  {
    ref: n,
    className: d(
      "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",
      a && "pl-8",
      t
    ),
    ...s
  }
));
x.displayName = e.Item.displayName;
const b = r.forwardRef(({ className: t, children: a, checked: s, ...n }, i) => /* @__PURE__ */ o.jsxs(
  e.CheckboxItem,
  {
    ref: i,
    className: d(
      "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: s,
    ...n,
    children: [
      /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(e.ItemIndicator, { children: /* @__PURE__ */ o.jsx(c, { className: "h-4 w-4" }) }) }),
      a
    ]
  }
));
b.displayName = e.CheckboxItem.displayName;
const g = r.forwardRef(({ className: t, children: a, ...s }, n) => /* @__PURE__ */ o.jsxs(
  e.RadioItem,
  {
    ref: n,
    className: d(
      "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
    ),
    ...s,
    children: [
      /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(e.ItemIndicator, { children: /* @__PURE__ */ o.jsx(m, { className: "h-2 w-2 fill-current" }) }) }),
      a
    ]
  }
));
g.displayName = e.RadioItem.displayName;
const h = r.forwardRef(({ className: t, inset: a, ...s }, n) => /* @__PURE__ */ o.jsx(
  e.Label,
  {
    ref: n,
    className: d(
      "px-2 py-1.5 text-xs font-semibold text-muted-foreground",
      a && "pl-8",
      t
    ),
    ...s
  }
));
h.displayName = e.Label.displayName;
const N = r.forwardRef(({ className: t, ...a }, s) => /* @__PURE__ */ o.jsx(
  e.Separator,
  {
    ref: s,
    className: d("-mx-1 my-1 h-px bg-muted", t),
    ...a
  }
));
N.displayName = e.Separator.displayName;
const y = ({
  className: t,
  ...a
}) => /* @__PURE__ */ o.jsx(
  "span",
  {
    className: d("ml-auto text-xs tracking-widest opacity-60", t),
    ...a
  }
);
y.displayName = "ContextMenuShortcut";
export {
  w as C,
  R as a,
  f as b,
  h as c,
  I as d,
  x as e,
  N as f,
  M as g,
  u as h,
  p as i,
  v as j,
  g as k,
  b as l,
  y as m
};
