import { jsxs as d, jsx as n } from "react/jsx-runtime";
import * as e from "@radix-ui/react-context-menu";
import { Check as l, Circle as c, ChevronRight as m } from "lucide-react";
import { c as s } from "../../../index-BtlgVD4m.js";
const M = e.Root, z = e.Trigger, I = e.Group, S = e.Portal, R = e.Sub, k = e.RadioGroup, p = ({
  className: t,
  inset: a,
  children: o,
  ref: r,
  ...i
}) => /* @__PURE__ */ d(
  e.SubTrigger,
  {
    ref: r,
    className: s(
      "flex cursor-default select-none items-center rounded-[var(--border-radius-sm)] px-[var(--spacing-2)] py-[var(--spacing-1-5)] text-[length:var(--typography-base-sizes-small-font-size)] font-[var(--font-weight-semibold)] outline-none focus:bg-[var(--base-accent)] focus:text-[var(--base-accent-foreground)] data-[state=open]:bg-[var(--base-accent)] data-[state=open]:text-[var(--base-accent-foreground)]",
      a && "pl-8",
      t
    ),
    ...i,
    children: [
      o,
      /* @__PURE__ */ n(m, { className: "ml-auto h-4 w-4" })
    ]
  }
);
p.displayName = e.SubTrigger.displayName;
const u = ({
  className: t,
  ref: a,
  ...o
}) => /* @__PURE__ */ n(
  e.SubContent,
  {
    ref: a,
    className: s(
      "z-50 min-w-[8rem] overflow-hidden rounded-[var(--border-radius-md)] border border-[var(--base-border)] bg-[var(--base-popover)] p-[var(--spacing-1)] text-[var(--base-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 origin-[--radix-context-menu-content-transform-origin]",
      t
    ),
    ...o
  }
);
u.displayName = e.SubContent.displayName;
const f = ({
  className: t,
  ref: a,
  ...o
}) => /* @__PURE__ */ n(e.Portal, { children: /* @__PURE__ */ n(
  e.Content,
  {
    ref: a,
    className: s(
      "z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-[var(--border-radius-md)] border bg-[var(--base-popover)] p-1 text-[var(--base-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 origin-[--radix-context-menu-content-transform-origin]",
      t
    ),
    ...o
  }
) });
f.displayName = e.Content.displayName;
const b = ({
  className: t,
  inset: a,
  ref: o,
  disabled: r,
  ...i
}) => /* @__PURE__ */ n(
  e.Item,
  {
    ref: o,
    className: s(
      "relative flex cursor-default select-none items-center rounded-[var(--border-radius-sm)] px-[var(--spacing-2)] py-[var(--spacing-1-5)] text-[length:var(--typography-base-sizes-small-font-size)] font-[var(--font-weight-normal)] outline-none focus:bg-[var(--base-accent)] focus:text-[var(--base-accent-foreground)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      a && "pl-[var(--spacing-8)]",
      t,
      !r && "hover:bg-[var(--base-accent)]",
      r && "opacity-[var(--opacity-opacity-50)]"
    ),
    ...i
  }
);
b.displayName = e.Item.displayName;
const g = ({
  className: t,
  children: a,
  checked: o,
  ref: r,
  ...i
}) => /* @__PURE__ */ d(
  e.CheckboxItem,
  {
    ref: r,
    className: s(
      "relative flex cursor-default select-none items-center rounded-[var(--border-radius-sm)] py-[var(--spacing-1-5)] pl-[var(--spacing-8)] pr-[var(--spacing-2)] text-[length:var(--typography-base-sizes-small-font-size)] font-[var(--font-weight-normal)] outline-none focus:bg-[var(--base-accent)] focus:text-[var(--base-accent-foreground)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      t
    ),
    checked: o,
    ...i,
    children: [
      /* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(l, { className: "h-4 w-4" }) }) }),
      a
    ]
  }
);
g.displayName = e.CheckboxItem.displayName;
const v = ({
  className: t,
  children: a,
  ref: o,
  ...r
}) => /* @__PURE__ */ d(
  e.RadioItem,
  {
    ref: o,
    className: s(
      "relative flex cursor-default select-none items-center rounded-[var(--border-radius-sm)] py-[var(--spacing-1-5)] pl-[var(--spacing-2)] pr-[var(--spacing-2)] text-[length:var(--typography-base-sizes-small-font-size)] font-[var(--font-weight-normal)] outline-none focus:bg-[var(--base-accent)] focus:text-[var(--base-accent-foreground)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      t
    ),
    ...r,
    children: [
      /* @__PURE__ */ n("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ n(e.ItemIndicator, { children: /* @__PURE__ */ n(c, { className: "h-4 w-4 fill-current" }) }) }),
      a
    ]
  }
);
v.displayName = e.RadioItem.displayName;
const x = ({
  className: t,
  inset: a,
  ref: o,
  ...r
}) => /* @__PURE__ */ n(
  e.Label,
  {
    ref: o,
    className: s(
      "relative flex items-center px-[var(--spacing-2)] py-[var(--spacing-1-5)] text-[length:var(--typography-base-sizes-small-font-size)] font-[var(--font-weight-semibold)] text-[var(--base-popover-foreground)]",
      a && "pl-[var(--spacing-8)]",
      t
    ),
    ...r
  }
);
x.displayName = e.Label.displayName;
const h = ({
  className: t,
  ref: a,
  ...o
}) => /* @__PURE__ */ n(e.Separator, { ref: a, className: s("-mx-1 my-1 h-px bg-[var(--base-border)]", t), ...o });
h.displayName = e.Separator.displayName;
const y = ({ className: t, ...a }) => /* @__PURE__ */ n(
  "span",
  {
    className: s(
      "ml-auto text-[length:var(--typography-base-sizes-extra-small-font-size)] tracking-widest text-[var(--base-muted-foreground)] font-[var(--font-weight-normal)]",
      t
    ),
    ...a
  }
);
y.displayName = "ContextMenuShortcut";
export {
  g as ContextMenuCheckboxItem,
  f as ContextMenuContent,
  I as ContextMenuGroup,
  b as ContextMenuItemPrimitive,
  x as ContextMenuLabel,
  S as ContextMenuPortal,
  k as ContextMenuRadioGroup,
  v as ContextMenuRadioItem,
  M as ContextMenuRoot,
  h as ContextMenuSeparator,
  y as ContextMenuShortcut,
  R as ContextMenuSub,
  u as ContextMenuSubContent,
  p as ContextMenuSubTrigger,
  z as ContextMenuTrigger
};
//# sourceMappingURL=ContextMenuPrimitives.js.map
