import { jsx as r, jsxs as m } from "react/jsx-runtime";
import { cn as a } from "../../utils/cn.js";
import p from "../../node_modules/.pnpm/lucide-react@0.453.0_react@18.3.1/node_modules/lucide-react/dist/esm/icons/check.js";
import { MenuRoot as u } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/root/MenuRoot.js";
import { MenuPortal as l } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/portal/MenuPortal.js";
import { MenuPositioner as h } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/positioner/MenuPositioner.js";
import { MenuPopup as g } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/popup/MenuPopup.js";
import { MenuItem as x } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/item/MenuItem.js";
import { MenuTrigger as w } from "../../node_modules/.pnpm/@base-ui_react@1.1.0_@types_react@18.3.27_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@base-ui/react/esm/menu/trigger/MenuTrigger.js";
const f = ({ children: t, open: e, onOpenChange: o }) => /* @__PURE__ */ r(u, { onOpenChange: o, open: e, children: t });
f.displayName = "DropdownMenu";
const c = ({
  className: t,
  children: e,
  ...o
}) => /* @__PURE__ */ r(
  w,
  {
    className: a(
      "group group overflow-hidden rounded-lg disabled:pointer-events-none [&>span]:line-clamp-1",
      "flex items-center gap-1 py-0.5 text-sm text-stone-950/50 group-hover:text-stone-950/70 dark:text-white/50 dark:group-hover:text-white/70",
      t
    ),
    ...o,
    children: e
  }
);
c.displayName = "DropdownMenuTrigger";
const y = ({
  className: t,
  sideOffset: e = 4,
  align: o = "start",
  ...n
}) => /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r(
  h,
  {
    align: o,
    className: "z-50",
    collisionPadding: 16,
    sideOffset: e,
    children: /* @__PURE__ */ r(
      g,
      {
        className: a(
          "relative max-h-96 min-w-(--anchor-width) overflow-y-auto rounded-2xl border-standard bg-white p-1 text-stone-950/70 shadow-stone-500/5 shadow-xl dark:bg-stone-950 dark:text-white/70 dark:shadow-none dark:shadow-stone-500/5",
          "data-[ending-style]:fade-out-0 data-[starting-style]:fade-in-0 data-[ending-style]:zoom-out-95 data-[starting-style]:zoom-in-95",
          t
        ),
        style: { textRendering: "geometricPrecision" },
        ...n
      }
    )
  }
) });
y.displayName = "DropdownMenuContent";
const M = ({
  className: t,
  isSelected: e,
  children: o,
  onSelect: n,
  onClick: d,
  ...s
}) => /* @__PURE__ */ m(
  x,
  {
    className: a(
      "group relative flex w-full cursor-pointer select-none items-center justify-between gap-2 rounded-md px-2 py-1 text-sm outline-0 hover:bg-stone-950/3 focus:bg-stone-950/5 data-disabled:pointer-events-none data-disabled:cursor-default data-disabled:opacity-50 dark:focus:bg-white/5 dark:hover:bg-white/3",
      e ? "font-medium text-primary dark:text-primary-light" : "text-stone-950/50 hover:text-stone-950/75 focus:text-stone-950/75 dark:text-white/50 dark:focus:text-white/75 dark:hover:text-white/75",
      t
    ),
    onClick: (i) => {
      d == null || d(i), n == null || n();
    },
    ...s,
    children: [
      o,
      /* @__PURE__ */ r(
        p,
        {
          className: a(
            "size-3.5 shrink-0 text-primary dark:text-primary-light",
            !e && "opacity-0"
          ),
          strokeWidth: 2.5
        }
      )
    ]
  }
);
M.displayName = "DropdownMenuItem";
export {
  f as DropdownMenu,
  y as DropdownMenuContent,
  M as DropdownMenuItem,
  c as DropdownMenuTrigger
};
