import { j as o } from "./jsx-runtime-Sp0orL4X.js";
import * as n from "react";
import * as m from "@radix-ui/react-toggle";
import { cva as c } from "class-variance-authority";
import { al as r } from "./context-menu-9cWJcKdh.js";
import { H as ye, K as Ne, I as ve, J as we, $ as Se, a7 as Me, a6 as je, a0 as De, a4 as Te, a5 as Re, a1 as Ie, a2 as Ae, a3 as ke, ad as Pe, B as ze, f as Ge, i as Le, h as He, k as Ve, g as Fe, ao as Be, t as Oe, aB as Ee, w as qe, x as Je, u as Ke, y as _e, v as Qe, aD as Ue, aC as We, C as Xe, aE as Ye, b as Ze, aJ as $e, c as ea, aG as aa, aK as ta, aO as oa, aF as sa, aH as ra, aI as na, aL as ia, aM as da, aN as la, a as ca, D as ma, m as pa, p as ua, q as fa, n as ga, o as xa, l as ba, Q as ha, a8 as Ca, U as ya, Y as Na, Z as va, W as wa, au as Sa, ay as Ma, at as ja, X as Da, _ as Ta, av as Ra, aw as Ia, ax as Aa, R as ka, a9 as Pa, ab as za, aa as Ga, N as La, L as Ha, P as Va, s as Fa, r as Ba, V as Oa, ap as Ea, ae as qa, ah as Ja, aq as Ka, ai as _a, ar as Qa, as as Ua, af as Wa, ag as Xa, ac as Ya, S as Za, G as $a, z as et, F as at, A as tt, E as ot, j as st, ak as rt, T as nt, e as it, O as dt, aj as lt, d as ct, an as mt, am as pt, az as ut, aA as ft, M as gt } from "./context-menu-9cWJcKdh.js";
import { ChevronRightIcon as g, CheckIcon as x, DotFilledIcon as b, Cross2Icon as h } from "@radix-ui/react-icons";
import * as s from "@radix-ui/react-menubar";
import * as d from "@radix-ui/react-dialog";
import "@radix-ui/react-switch";
import "@radix-ui/react-accordion";
import "@radix-ui/react-alert-dialog";
import "@radix-ui/react-slot";
import "@radix-ui/react-label";
import "@radix-ui/react-scroll-area";
import "@radix-ui/react-tabs";
import "@radix-ui/react-tooltip";
import "@radix-ui/react-popover";
import "@radix-ui/react-hover-card";
import "@radix-ui/react-select";
import "@radix-ui/react-dropdown-menu";
import "@radix-ui/react-separator";
import "@radix-ui/react-toast";
import "cmdk";
import "@radix-ui/react-context-menu";
import "clsx";
import "tailwind-merge";
const C = c(
  "inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
  {
    variants: {
      variant: {
        default: "bg-transparent",
        outline: "border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"
      },
      size: {
        default: "h-10 px-3",
        sm: "h-9 px-2.5",
        lg: "h-11 px-5"
      }
    },
    defaultVariants: {
      variant: "default",
      size: "default"
    }
  }
), y = n.forwardRef(({ className: e, variant: a, size: t, ...i }, l) => /* @__PURE__ */ o.jsx(m.Root, { ref: l, className: r(C({ variant: a, size: t, className: e })), ...i }));
y.displayName = m.Root.displayName;
const N = c(
  "relative w-full rounded-lg border px-4 py-3 text-sm [&:has(svg)]:pl-11 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",
  {
    variants: {
      variant: {
        default: "bg-background text-foreground",
        destructive: "border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"
      }
    },
    defaultVariants: {
      variant: "default"
    }
  }
), v = n.forwardRef(({ className: e, variant: a, ...t }, i) => /* @__PURE__ */ o.jsx("div", { ref: i, role: "alert", className: r(N({ variant: a }), e), ...t }));
v.displayName = "Alert";
const w = n.forwardRef(
  ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("h5", { ref: t, className: r("mb-1 font-medium leading-none tracking-tight", e), ...a })
);
w.displayName = "AlertTitle";
const S = n.forwardRef(
  ({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx("div", { ref: t, className: r("text-sm [&_p]:leading-relaxed", e), ...a })
);
S.displayName = "AlertDescription";
const ce = s.Menu, me = s.Group, pe = s.Portal, ue = s.Sub, fe = s.RadioGroup, M = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
  s.Root,
  {
    ref: t,
    className: r("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
    ...a
  }
));
M.displayName = s.Root.displayName;
const j = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
  s.Trigger,
  {
    ref: t,
    className: r(
      "flex cursor-default select-none items-center rounded-sm px-3 py-1 text-sm font-medium outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
      e
    ),
    ...a
  }
));
j.displayName = s.Trigger.displayName;
const D = n.forwardRef(({ className: e, inset: a, children: t, ...i }, l) => /* @__PURE__ */ o.jsxs(
  s.SubTrigger,
  {
    ref: l,
    className: r(
      "flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",
      a && "pl-8",
      e
    ),
    ...i,
    children: [
      t,
      /* @__PURE__ */ o.jsx(g, { className: "ml-auto h-4 w-4" })
    ]
  }
));
D.displayName = s.SubTrigger.displayName;
const T = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
  s.SubContent,
  {
    ref: t,
    className: r(
      "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",
      e
    ),
    ...a
  }
));
T.displayName = s.SubContent.displayName;
const R = n.forwardRef(({ className: e, align: a = "start", alignOffset: t = -4, sideOffset: i = 8, ...l }, f) => /* @__PURE__ */ o.jsx(s.Portal, { children: /* @__PURE__ */ o.jsx(
  s.Content,
  {
    ref: f,
    align: a,
    alignOffset: t,
    sideOffset: i,
    className: r(
      "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]: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",
      e
    ),
    ...l
  }
) }));
R.displayName = s.Content.displayName;
const I = n.forwardRef(({ className: e, inset: a, ...t }, i) => /* @__PURE__ */ o.jsx(
  s.Item,
  {
    ref: i,
    className: r(
      "relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      a && "pl-8",
      e
    ),
    ...t
  }
));
I.displayName = s.Item.displayName;
const A = n.forwardRef(({ className: e, children: a, checked: t, ...i }, l) => /* @__PURE__ */ o.jsxs(
  s.CheckboxItem,
  {
    ref: l,
    className: r(
      "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      e
    ),
    checked: t,
    ...i,
    children: [
      /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(s.ItemIndicator, { children: /* @__PURE__ */ o.jsx(x, { className: "h-4 w-4" }) }) }),
      a
    ]
  }
));
A.displayName = s.CheckboxItem.displayName;
const k = n.forwardRef(({ className: e, children: a, ...t }, i) => /* @__PURE__ */ o.jsxs(
  s.RadioItem,
  {
    ref: i,
    className: r(
      "relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
      e
    ),
    ...t,
    children: [
      /* @__PURE__ */ o.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ o.jsx(s.ItemIndicator, { children: /* @__PURE__ */ o.jsx(b, { className: "h-4 w-4 fill-current" }) }) }),
      a
    ]
  }
));
k.displayName = s.RadioItem.displayName;
const P = n.forwardRef(({ className: e, inset: a, ...t }, i) => /* @__PURE__ */ o.jsx(
  s.Label,
  {
    ref: i,
    className: r("px-2 py-1.5 text-sm font-semibold", a && "pl-8", e),
    ...t
  }
));
P.displayName = s.Label.displayName;
const z = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(s.Separator, { ref: t, className: r("-mx-1 my-1 h-px bg-muted", e), ...a }));
z.displayName = s.Separator.displayName;
const G = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...a });
G.displayname = "MenubarShortcut";
const ge = d.Root, xe = d.Trigger, be = d.Close, p = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx(d.Portal, { className: r(e), ...a });
p.displayName = d.Portal.displayName;
const u = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(
  d.Overlay,
  {
    className: r(
      "fixed inset-0 z-50 bg-background/80 backdrop-blur-sm data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
      e
    ),
    ...a,
    ref: t
  }
));
u.displayName = d.Overlay.displayName;
const L = c(
  "fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",
  {
    variants: {
      side: {
        top: "inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",
        bottom: "inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",
        left: "inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",
        right: "inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"
      }
    },
    defaultVariants: {
      side: "right"
    }
  }
), H = n.forwardRef(
  ({ side: e = "right", className: a, children: t, ...i }, l) => /* @__PURE__ */ o.jsxs(p, { children: [
    /* @__PURE__ */ o.jsx(u, {}),
    /* @__PURE__ */ o.jsxs(d.Content, { ref: l, className: r(L({ side: e }), a), ...i, children: [
      t,
      /* @__PURE__ */ o.jsxs(d.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
        /* @__PURE__ */ o.jsx(h, { className: "h-4 w-4" }),
        /* @__PURE__ */ o.jsx("span", { className: "sr-only", children: "Close" })
      ] })
    ] })
  ] })
);
H.displayName = d.Content.displayName;
const V = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...a });
V.displayName = "SheetHeader";
const F = ({ className: e, ...a }) => /* @__PURE__ */ o.jsx("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...a });
F.displayName = "SheetFooter";
const B = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(d.Title, { ref: t, className: r("text-lg font-semibold text-foreground", e), ...a }));
B.displayName = d.Title.displayName;
const O = n.forwardRef(({ className: e, ...a }, t) => /* @__PURE__ */ o.jsx(d.Description, { ref: t, className: r("text-sm text-muted-foreground", e), ...a }));
O.displayName = d.Description.displayName;
export {
  ye as Accordion,
  Ne as AccordionContent,
  ve as AccordionItem,
  we as AccordionTrigger,
  v as Alert,
  S as AlertDescription,
  Se as AlertDialog,
  Me as AlertDialogAction,
  je as AlertDialogCancel,
  De as AlertDialogContent,
  Te as AlertDialogDescription,
  Re as AlertDialogFooter,
  Ie as AlertDialogHeader,
  Ae as AlertDialogTitle,
  ke as AlertDialogTrigger,
  w as AlertTitle,
  Pe as Badge,
  ze as Button,
  Ge as Card,
  Le as CardContent,
  He as CardDescription,
  Ve as CardFooter,
  Fe as CardHeader,
  Be as CardTitle,
  Oe as Command,
  Ee as CommandDialog,
  qe as CommandEmpty,
  Je as CommandGroup,
  Ke as CommandInput,
  _e as CommandItem,
  Qe as CommandList,
  Ue as CommandSeparator,
  We as CommandShortcut,
  Xe as ContextMenu,
  Ye as ContextMenuCheckboxItem,
  Ze as ContextMenuContent,
  $e as ContextMenuGroup,
  ea as ContextMenuItem,
  aa as ContextMenuLabel,
  ta as ContextMenuPortal,
  oa as ContextMenuRadioGroup,
  sa as ContextMenuRadioItem,
  ra as ContextMenuSeparator,
  na as ContextMenuShortcut,
  ia as ContextMenuSub,
  da as ContextMenuSubContent,
  la as ContextMenuSubTrigger,
  ca as ContextMenuTrigger,
  ma as Dialog,
  pa as DialogContent,
  ua as DialogDescription,
  fa as DialogFooter,
  ga as DialogHeader,
  xa as DialogTitle,
  ba as DialogTrigger,
  ha as DropdownMenu,
  Ca as DropdownMenuCheckboxItem,
  ya as DropdownMenuContent,
  Na as DropdownMenuGroup,
  va as DropdownMenuItem,
  wa as DropdownMenuLabel,
  Sa as DropdownMenuPortal,
  Ma as DropdownMenuRadioGroup,
  ja as DropdownMenuRadioItem,
  Da as DropdownMenuSeparator,
  Ta as DropdownMenuShortcut,
  Ra as DropdownMenuSub,
  Ia as DropdownMenuSubContent,
  Aa as DropdownMenuSubTrigger,
  ka as DropdownMenuTrigger,
  Pa as HoverCard,
  za as HoverCardContent,
  Ga as HoverCardTrigger,
  La as Input,
  Ha as Label,
  M as Menubar,
  A as MenubarCheckboxItem,
  R as MenubarContent,
  me as MenubarGroup,
  I as MenubarItem,
  P as MenubarLabel,
  ce as MenubarMenu,
  pe as MenubarPortal,
  fe as MenubarRadioGroup,
  k as MenubarRadioItem,
  z as MenubarSeparator,
  G as MenubarShortcut,
  ue as MenubarSub,
  T as MenubarSubContent,
  D as MenubarSubTrigger,
  j as MenubarTrigger,
  Va as Popover,
  Fa as PopoverContent,
  Ba as PopoverTrigger,
  Oa as ScrollArea,
  Ea as ScrollBar,
  qa as Select,
  Ja as SelectContent,
  Ka as SelectGroup,
  _a as SelectItem,
  Qa as SelectLabel,
  Ua as SelectSeparator,
  Wa as SelectTrigger,
  Xa as SelectValue,
  Ya as Separator,
  ge as Sheet,
  be as SheetClose,
  H as SheetContent,
  O as SheetDescription,
  F as SheetFooter,
  V as SheetHeader,
  B as SheetTitle,
  xe as SheetTrigger,
  Za as Skeleton,
  $a as Switch,
  et as Tabs,
  at as TabsContent,
  tt as TabsList,
  ot as TabsTrigger,
  st as Textarea,
  rt as Toaster,
  y as Toggle,
  nt as Tooltip,
  it as TooltipContent,
  dt as TooltipPortal,
  lt as TooltipProvider,
  ct as TooltipTrigger,
  mt as badgeVariants,
  pt as buttonVariants,
  ut as reducer,
  ft as toast,
  C as toggleVariants,
  gt as useToast
};
