import { cn as e } from "../../lib/utils.js";
import "react";
import { jsx as t, jsxs as n } from "react/jsx-runtime";
import { CheckIcon as r, ChevronRightIcon as i, CircleIcon as a } from "lucide-react";
import * as o from "@radix-ui/react-dropdown-menu";
//#region src/components/ui/dropdown-menu.tsx
function s({ ...e }) {
	return /* @__PURE__ */ t(o.Root, {
		"data-slot": "dropdown-menu",
		...e
	});
}
function c({ ...e }) {
	return /* @__PURE__ */ t(o.Portal, {
		"data-slot": "dropdown-menu-portal",
		...e
	});
}
function l({ ...e }) {
	return /* @__PURE__ */ t(o.Trigger, {
		"data-slot": "dropdown-menu-trigger",
		...e
	});
}
function u({ className: n, sideOffset: r = 4, ...i }) {
	return /* @__PURE__ */ t(o.Portal, { children: /* @__PURE__ */ t(o.Content, {
		"data-slot": "dropdown-menu-content",
		sideOffset: r,
		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-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md", n),
		...i
	}) });
}
function d({ ...e }) {
	return /* @__PURE__ */ t(o.Group, {
		"data-slot": "dropdown-menu-group",
		...e
	});
}
function f({ className: n, inset: r, variant: i = "default", ...a }) {
	return /* @__PURE__ */ t(o.Item, {
		"data-slot": "dropdown-menu-item",
		"data-inset": r,
		"data-variant": i,
		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", n),
		...a
	});
}
function p({ className: i, children: a, checked: s, ...c }) {
	return /* @__PURE__ */ n(o.CheckboxItem, {
		"data-slot": "dropdown-menu-checkbox-item",
		className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", i),
		checked: s,
		...c,
		children: [/* @__PURE__ */ t("span", {
			className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
			children: /* @__PURE__ */ t(o.ItemIndicator, { children: /* @__PURE__ */ t(r, { className: "size-4" }) })
		}), a]
	});
}
function m({ ...e }) {
	return /* @__PURE__ */ t(o.RadioGroup, {
		"data-slot": "dropdown-menu-radio-group",
		...e
	});
}
function h({ className: r, children: i, ...s }) {
	return /* @__PURE__ */ n(o.RadioItem, {
		"data-slot": "dropdown-menu-radio-item",
		className: e("focus:bg-accent focus:text-accent-foreground relative flex cursor-default items-center gap-2 rounded-sm py-1.5 pr-2 pl-8 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r),
		...s,
		children: [/* @__PURE__ */ t("span", {
			className: "pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",
			children: /* @__PURE__ */ t(o.ItemIndicator, { children: /* @__PURE__ */ t(a, { className: "size-2 fill-current" }) })
		}), i]
	});
}
function g({ className: n, inset: r, ...i }) {
	return /* @__PURE__ */ t(o.Label, {
		"data-slot": "dropdown-menu-label",
		"data-inset": r,
		className: e("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8", n),
		...i
	});
}
function _({ className: n, ...r }) {
	return /* @__PURE__ */ t(o.Separator, {
		"data-slot": "dropdown-menu-separator",
		className: e("bg-border -mx-1 my-1 h-px", n),
		...r
	});
}
function v({ className: n, ...r }) {
	return /* @__PURE__ */ t("span", {
		"data-slot": "dropdown-menu-shortcut",
		className: e("text-muted-foreground ml-auto text-xs tracking-widest", n),
		...r
	});
}
function y({ ...e }) {
	return /* @__PURE__ */ t(o.Sub, {
		"data-slot": "dropdown-menu-sub",
		...e
	});
}
function b({ className: r, inset: a, children: s, ...c }) {
	return /* @__PURE__ */ n(o.SubTrigger, {
		"data-slot": "dropdown-menu-sub-trigger",
		"data-inset": a,
		className: e("focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", r),
		...c,
		children: [s, /* @__PURE__ */ t(i, { className: "ml-auto size-4" })]
	});
}
function x({ className: n, ...r }) {
	return /* @__PURE__ */ t(o.SubContent, {
		"data-slot": "dropdown-menu-sub-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 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg", n),
		...r
	});
}
//#endregion
export { s as DropdownMenu, p as DropdownMenuCheckboxItem, u as DropdownMenuContent, d as DropdownMenuGroup, f as DropdownMenuItem, g as DropdownMenuLabel, c as DropdownMenuPortal, m as DropdownMenuRadioGroup, h as DropdownMenuRadioItem, _ as DropdownMenuSeparator, v as DropdownMenuShortcut, y as DropdownMenuSub, x as DropdownMenuSubContent, b as DropdownMenuSubTrigger, l as DropdownMenuTrigger };
