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 { af as r } from "./context-menu-zu6r7B6f.js";
import { H as Ne, K as we, I as Se, J as Me, $ as je, a7 as De, a6 as Te, a1 as Re, a4 as Ie, a5 as Ae, a2 as ke, a3 as Pe, a0 as ze, B as Ge, f as Ve, i as Le, h as He, k as Fe, g as Be, ah as Ee, t as Oe, ar as qe, w as _e, x as Je, u as Ke, y as Qe, v as Ue, at as We, as as Xe, C as Ye, au as Ze, b as $e, az as et, c as tt, aw as at, aA as ot, aE as st, av as rt, ax as nt, ay as it, aB as dt, aC as lt, aD as ct, a as mt, D as ut, m as pt, p as ft, q as gt, n as xt, o as bt, l as ht, Q as vt, a8 as yt, U as Ct, Y as Nt, Z as wt, W as St, ak as Mt, ao as jt, aj as Dt, X as Tt, _ as Rt, al as It, am as At, an as kt, R as Pt, a9 as zt, ab as Gt, aa as Vt, N as Lt, L as Ht, P as Ft, s as Bt, r as Et, V as Ot, ai as qt, ac as _t, S as Jt, G as Kt, z as Qt, F as Ut, A as Wt, E as Xt, j as Yt, ae as Zt, T as $t, e as ea, O as ta, ad as aa, d as oa, ag as sa, ap as ra, aq as na, M as ia } from "./context-menu-zu6r7B6f.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 { S as la, d as ca, a as ma, f as ua, e as pa, g as fa, c as ga, b as xa } from "./select-1WwjQDp6.js";
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-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";
import "@radix-ui/react-select";
const v = 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: t, size: a, ...i }, l) => /* @__PURE__ */ o.jsx(m.Root, { ref: l, className: r(v({ variant: t, size: a, className: e })), ...i }));
y.displayName = m.Root.displayName;
const C = 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"
    }
  }
), N = n.forwardRef(({ className: e, variant: t, ...a }, i) => /* @__PURE__ */ o.jsx("div", { ref: i, role: "alert", className: r(C({ variant: t }), e), ...a }));
N.displayName = "Alert";
const w = n.forwardRef(
  ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("h5", { ref: a, className: r("mb-1 font-medium leading-none tracking-tight", e), ...t })
);
w.displayName = "AlertTitle";
const S = n.forwardRef(
  ({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: r("text-sm [&_p]:leading-relaxed", e), ...t })
);
S.displayName = "AlertDescription";
const M = c(
  "inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
  {
    variants: {
      variant: {
        default: "border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80",
        secondary: "border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",
        destructive: "border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80",
        outline: "text-foreground"
      }
    },
    defaultVariants: {
      variant: "default"
    }
  }
), me = ({ className: e, variant: t, ...a }) => /* @__PURE__ */ o.jsx("div", { className: r(M({ variant: t }), e), ...a }), ue = s.Menu, pe = s.Group, fe = s.Portal, ge = s.Sub, xe = s.RadioGroup, j = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  s.Root,
  {
    ref: a,
    className: r("flex h-9 items-center space-x-1 rounded-md border bg-background p-1 shadow-sm", e),
    ...t
  }
));
j.displayName = s.Root.displayName;
const D = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  s.Trigger,
  {
    ref: a,
    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
    ),
    ...t
  }
));
D.displayName = s.Trigger.displayName;
const T = n.forwardRef(({ className: e, inset: t, children: a, ...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",
      t && "pl-8",
      e
    ),
    ...i,
    children: [
      a,
      /* @__PURE__ */ o.jsx(g, { className: "ml-auto h-4 w-4" })
    ]
  }
));
T.displayName = s.SubTrigger.displayName;
const R = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(
  s.SubContent,
  {
    ref: a,
    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
    ),
    ...t
  }
));
R.displayName = s.SubContent.displayName;
const I = n.forwardRef(({ className: e, align: t = "start", alignOffset: a = -4, sideOffset: i = 8, ...l }, f) => /* @__PURE__ */ o.jsx(s.Portal, { children: /* @__PURE__ */ o.jsx(
  s.Content,
  {
    ref: f,
    align: t,
    alignOffset: a,
    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
  }
) }));
I.displayName = s.Content.displayName;
const A = n.forwardRef(({ className: e, inset: t, ...a }, 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",
      t && "pl-8",
      e
    ),
    ...a
  }
));
A.displayName = s.Item.displayName;
const k = n.forwardRef(({ className: e, children: t, checked: a, ...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: a,
    ...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" }) }) }),
      t
    ]
  }
));
k.displayName = s.CheckboxItem.displayName;
const P = n.forwardRef(({ className: e, children: t, ...a }, 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
    ),
    ...a,
    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" }) }) }),
      t
    ]
  }
));
P.displayName = s.RadioItem.displayName;
const z = n.forwardRef(({ className: e, inset: t, ...a }, i) => /* @__PURE__ */ o.jsx(
  s.Label,
  {
    ref: i,
    className: r("px-2 py-1.5 text-sm font-semibold", t && "pl-8", e),
    ...a
  }
));
z.displayName = s.Label.displayName;
const G = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(s.Separator, { ref: a, className: r("-mx-1 my-1 h-px bg-muted", e), ...t }));
G.displayName = s.Separator.displayName;
const V = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("span", { className: r("ml-auto text-xs tracking-widest text-muted-foreground", e), ...t });
V.displayname = "MenubarShortcut";
const be = d.Root, he = d.Trigger, ve = d.Close, u = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx(d.Portal, { className: r(e), ...t });
u.displayName = d.Portal.displayName;
const p = n.forwardRef(({ className: e, ...t }, a) => /* @__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
    ),
    ...t,
    ref: a
  }
));
p.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: t, children: a, ...i }, l) => /* @__PURE__ */ o.jsxs(u, { children: [
    /* @__PURE__ */ o.jsx(p, {}),
    /* @__PURE__ */ o.jsxs(d.Content, { ref: l, className: r(L({ side: e }), t), ...i, children: [
      a,
      /* @__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 F = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: r("flex flex-col space-y-2 text-center sm:text-left", e), ...t });
F.displayName = "SheetHeader";
const B = ({ className: e, ...t }) => /* @__PURE__ */ o.jsx("div", { className: r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2", e), ...t });
B.displayName = "SheetFooter";
const E = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(d.Title, { ref: a, className: r("text-lg font-semibold text-foreground", e), ...t }));
E.displayName = d.Title.displayName;
const O = n.forwardRef(({ className: e, ...t }, a) => /* @__PURE__ */ o.jsx(d.Description, { ref: a, className: r("text-sm text-muted-foreground", e), ...t }));
O.displayName = d.Description.displayName;
export {
  Ne as Accordion,
  we as AccordionContent,
  Se as AccordionItem,
  Me as AccordionTrigger,
  N as Alert,
  S as AlertDescription,
  je as AlertDialog,
  De as AlertDialogAction,
  Te as AlertDialogCancel,
  Re as AlertDialogContent,
  Ie as AlertDialogDescription,
  Ae as AlertDialogFooter,
  ke as AlertDialogHeader,
  Pe as AlertDialogTitle,
  ze as AlertDialogTrigger,
  w as AlertTitle,
  me as Badge,
  Ge as Button,
  Ve as Card,
  Le as CardContent,
  He as CardDescription,
  Fe as CardFooter,
  Be as CardHeader,
  Ee as CardTitle,
  Oe as Command,
  qe as CommandDialog,
  _e as CommandEmpty,
  Je as CommandGroup,
  Ke as CommandInput,
  Qe as CommandItem,
  Ue as CommandList,
  We as CommandSeparator,
  Xe as CommandShortcut,
  Ye as ContextMenu,
  Ze as ContextMenuCheckboxItem,
  $e as ContextMenuContent,
  et as ContextMenuGroup,
  tt as ContextMenuItem,
  at as ContextMenuLabel,
  ot as ContextMenuPortal,
  st as ContextMenuRadioGroup,
  rt as ContextMenuRadioItem,
  nt as ContextMenuSeparator,
  it as ContextMenuShortcut,
  dt as ContextMenuSub,
  lt as ContextMenuSubContent,
  ct as ContextMenuSubTrigger,
  mt as ContextMenuTrigger,
  ut as Dialog,
  pt as DialogContent,
  ft as DialogDescription,
  gt as DialogFooter,
  xt as DialogHeader,
  bt as DialogTitle,
  ht as DialogTrigger,
  vt as DropdownMenu,
  yt as DropdownMenuCheckboxItem,
  Ct as DropdownMenuContent,
  Nt as DropdownMenuGroup,
  wt as DropdownMenuItem,
  St as DropdownMenuLabel,
  Mt as DropdownMenuPortal,
  jt as DropdownMenuRadioGroup,
  Dt as DropdownMenuRadioItem,
  Tt as DropdownMenuSeparator,
  Rt as DropdownMenuShortcut,
  It as DropdownMenuSub,
  At as DropdownMenuSubContent,
  kt as DropdownMenuSubTrigger,
  Pt as DropdownMenuTrigger,
  zt as HoverCard,
  Gt as HoverCardContent,
  Vt as HoverCardTrigger,
  Lt as Input,
  Ht as Label,
  j as Menubar,
  k as MenubarCheckboxItem,
  I as MenubarContent,
  pe as MenubarGroup,
  A as MenubarItem,
  z as MenubarLabel,
  ue as MenubarMenu,
  fe as MenubarPortal,
  xe as MenubarRadioGroup,
  P as MenubarRadioItem,
  G as MenubarSeparator,
  V as MenubarShortcut,
  ge as MenubarSub,
  R as MenubarSubContent,
  T as MenubarSubTrigger,
  D as MenubarTrigger,
  Ft as Popover,
  Bt as PopoverContent,
  Et as PopoverTrigger,
  Ot as ScrollArea,
  qt as ScrollBar,
  la as Select,
  ca as SelectContent,
  ma as SelectGroup,
  ua as SelectItem,
  pa as SelectLabel,
  fa as SelectSeparator,
  ga as SelectTrigger,
  xa as SelectValue,
  _t as Separator,
  be as Sheet,
  ve as SheetClose,
  H as SheetContent,
  O as SheetDescription,
  B as SheetFooter,
  F as SheetHeader,
  E as SheetTitle,
  he as SheetTrigger,
  Jt as Skeleton,
  Kt as Switch,
  Qt as Tabs,
  Ut as TabsContent,
  Wt as TabsList,
  Xt as TabsTrigger,
  Yt as Textarea,
  Zt as Toaster,
  y as Toggle,
  $t as Tooltip,
  ea as TooltipContent,
  ta as TooltipPortal,
  aa as TooltipProvider,
  oa as TooltipTrigger,
  M as badgeVariants,
  sa as buttonVariants,
  ra as reducer,
  na as toast,
  v as toggleVariants,
  ia as useToast
};
