@cyberbloxai/ui-kit 0.2.2 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/dist/components/ui/badge.d.ts +1 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +118 -104
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/showcase/ComponentsShowcase.tsx +14 -11
- package/src/components/ui/badge.tsx +13 -5
- package/src/components/ui/button.tsx +10 -9
- package/src/components/ui/card.tsx +8 -1
- package/src/components/ui/checkbox.tsx +1 -1
- package/src/components/ui/dialog.tsx +1 -1
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/popover.tsx +1 -1
- package/src/components/ui/select.tsx +2 -2
- package/src/components/ui/switch.tsx +2 -2
- package/src/components/ui/tabs.tsx +2 -2
- package/src/components/ui/textarea.tsx +1 -1
- package/src/pages/Index.tsx +3 -3
package/README.md
CHANGED
|
@@ -4,6 +4,36 @@ Production-ready component library built with Radix UI and Tailwind CSS, develop
|
|
|
4
4
|
|
|
5
5
|
**Live Preview**: [https://ui.cyberbloxai.in/](https://ui.cyberbloxai.in/)
|
|
6
6
|
|
|
7
|
+
## Components
|
|
8
|
+
|
|
9
|
+
CyberBlox UI includes a comprehensive set of production-ready components.
|
|
10
|
+
|
|
11
|
+
### Core Components
|
|
12
|
+
- **Button**: Enhanced with modern variants including `shiny`, `outline`, and `ghost`.
|
|
13
|
+
- **Input & Textarea**: Polished fields with smooth transitions and rounded-lg styling.
|
|
14
|
+
- **Badge**: Status indicators with `success`, `warning`, `info`, and `destructive` variants.
|
|
15
|
+
- **Card**: Versatile containers with hover lift effects and rounded-xl corners.
|
|
16
|
+
- **Checkbox & Switch**: Accessible toggle components with fluid animations.
|
|
17
|
+
- **Select & Popover**: Modern dropdowns and floating panels with `rounded-xl` design.
|
|
18
|
+
- **Dialog**: Fully accessible modal system with smooth transitions.
|
|
19
|
+
- **Tabs**: Tabbed navigation with refined active states and shadows.
|
|
20
|
+
|
|
21
|
+
### Advanced Components
|
|
22
|
+
- **Accordion**: Vertically stacked interactive headings.
|
|
23
|
+
- **Alert & Alert Dialog**: Important messages and confirmation modals.
|
|
24
|
+
- **Avatar**: Visual representation of users with fallback support.
|
|
25
|
+
- **Carousel**: Responsive image and content sliders.
|
|
26
|
+
- **Chart**: Data visualization components built on Recharts.
|
|
27
|
+
- **Command**: Fast, composable command menu/search.
|
|
28
|
+
- **Form**: Powerful form builder integrated with `react-hook-form` and `zod`.
|
|
29
|
+
- **Navigation Menu**: Complex header and side navigation patterns.
|
|
30
|
+
- **Sidebar**: Fully responsive and collapsible dashboard sidebar.
|
|
31
|
+
- **Table**: Data tables with support for headers, footers, and rows.
|
|
32
|
+
- **Toast & Sonner**: Action notifications and system alerts.
|
|
33
|
+
|
|
34
|
+
### And many more...
|
|
35
|
+
*Breadcrumb, Calendar, Collapsible, Context Menu, Drawer, Hover Card, Label, Menubar, Pagination, Progress, Scroll Area, Separator, Sheet, Skeleton, Slider, Tooltip.*
|
|
36
|
+
|
|
7
37
|
## Overview
|
|
8
38
|
|
|
9
39
|
CyberBlox UI Kit is a modular, themeable component library designed for building SaaS applications faster. It includes production-grade components for authentication flows, dashboards, notifications, error pages, and more.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const badgeVariants: (props?: {
|
|
4
|
-
variant?: "default" | "destructive" | "outline" | "secondary";
|
|
4
|
+
variant?: "default" | "destructive" | "outline" | "secondary" | "success" | "warning" | "info";
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
6
6
|
export interface BadgeProps extends React.HTMLAttributes<HTMLDivElement>, VariantProps<typeof badgeVariants> {
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
import { type VariantProps } from "class-variance-authority";
|
|
3
3
|
declare const buttonVariants: (props?: {
|
|
4
|
-
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost";
|
|
4
|
+
variant?: "link" | "default" | "destructive" | "outline" | "secondary" | "ghost" | "shiny";
|
|
5
5
|
size?: "default" | "sm" | "lg" | "icon";
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) => string;
|
|
7
7
|
export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof buttonVariants> {
|
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ro=require("clsx"),so=require("tailwind-merge"),o=require("react/jsx-runtime"),no=require("react"),io=require("@radix-ui/react-accordion"),l=require("lucide-react"),lo=require("@radix-ui/react-alert-dialog"),me=require("@radix-ui/react-slot"),T=require("class-variance-authority"),co=require("@radix-ui/react-aspect-ratio"),mo=require("@radix-ui/react-avatar"),uo=require("react-day-picker"),po=require("embla-carousel-react"),fo=require("@radix-ui/react-checkbox"),go=require("@radix-ui/react-collapsible"),N=require("cmdk"),xo=require("@radix-ui/react-dialog"),bo=require("@radix-ui/react-context-menu"),v=require("vaul"),No=require("@radix-ui/react-dropdown-menu"),ho=require("@radix-ui/react-hover-card"),ue=require("input-otp"),yo=require("@radix-ui/react-label"),vo=require("@radix-ui/react-menubar"),wo=require("@radix-ui/react-navigation-menu"),jo=require("@radix-ui/react-popover"),Co=require("@radix-ui/react-progress"),Ro=require("@radix-ui/react-radio-group"),So=require("react-resizable-panels"),To=require("@radix-ui/react-scroll-area"),Do=require("@radix-ui/react-select"),Po=require("@radix-ui/react-separator"),Mo=require("@radix-ui/react-slider"),Io=require("@radix-ui/react-switch"),ko=require("@radix-ui/react-tabs"),_o=require("@radix-ui/react-toggle"),Ao=require("@radix-ui/react-toggle-group"),zo=require("@radix-ui/react-tooltip");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const s=c(no),R=c(io),b=c(lo),Oo=c(co),P=c(mo),W=c(fo),Y=c(go),m=c(xo),u=c(bo),p=c(No),G=c(ho),pe=c(yo),d=c(vo),h=c(wo),_=c(jo),$=c(Co),A=c(Ro),J=c(So),C=c(To),f=c(Do),fe=c(Po),I=c(Mo),Q=c(Io),D=c(ko),ge=c(_o),q=c(Ao),z=c(zo);function r(...e){return so.twMerge(ro.clsx(e))}const Lo=R.Root,xe=s.forwardRef(({className:e,...t},a)=>o.jsx(R.Item,{ref:a,className:r("border-b",e),...t}));xe.displayName="AccordionItem";const be=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(R.Header,{className:"flex",children:o.jsxs(R.Trigger,{ref:n,className:r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,o.jsx(l.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));be.displayName=R.Trigger.displayName;const Ne=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(R.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:o.jsx("div",{className:r("pb-4 pt-0",e),children:t})}));Ne.displayName=R.Content.displayName;const S=T.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-background hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),B=s.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...i},x)=>{const y=n?me.Slot:"button";return o.jsx(y,{className:r(S({variant:t,size:a,className:e})),ref:x,...i})});B.displayName="Button";const Go=b.Root,qo=b.Trigger,he=b.Portal,Z=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Overlay,{className:r("fixed inset-0 z-50 bg-black/80 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}));Z.displayName=b.Overlay.displayName;const ye=s.forwardRef(({className:e,...t},a)=>o.jsxs(he,{children:[o.jsx(Z,{}),o.jsx(b.Content,{ref:a,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));ye.displayName=b.Content.displayName;const ve=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});ve.displayName="AlertDialogHeader";const we=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});we.displayName="AlertDialogFooter";const je=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Title,{ref:a,className:r("text-lg font-semibold",e),...t}));je.displayName=b.Title.displayName;const Ce=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));Ce.displayName=b.Description.displayName;const Re=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Action,{ref:a,className:r(S(),e),...t}));Re.displayName=b.Action.displayName;const Se=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Cancel,{ref:a,className:r(S({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Se.displayName=b.Cancel.displayName;const Bo=T.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>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"}}),Te=s.forwardRef(({className:e,variant:t,...a},n)=>o.jsx("div",{ref:n,role:"alert",className:r(Bo({variant:t}),e),...a}));Te.displayName="Alert";const De=s.forwardRef(({className:e,...t},a)=>o.jsx("h5",{ref:a,className:r("mb-1 font-medium leading-none tracking-tight",e),...t}));De.displayName="AlertTitle";const Pe=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("text-sm [&_p]:leading-relaxed",e),...t}));Pe.displayName="AlertDescription";const Ho=Oo.Root,Me=s.forwardRef(({className:e,...t},a)=>o.jsx(P.Root,{ref:a,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Me.displayName=P.Root.displayName;const Ie=s.forwardRef(({className:e,...t},a)=>o.jsx(P.Image,{ref:a,className:r("aspect-square h-full w-full",e),...t}));Ie.displayName=P.Image.displayName;const ke=s.forwardRef(({className:e,...t},a)=>o.jsx(P.Fallback,{ref:a,className:r("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ke.displayName=P.Fallback.displayName;const _e=T.cva("inline-flex items-center rounded-full 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 hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});function Eo({className:e,variant:t,...a}){return o.jsx("div",{className:r(_e({variant:t}),e),...a})}const Ae=s.forwardRef(({...e},t)=>o.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ae.displayName="Breadcrumb";const ze=s.forwardRef(({className:e,...t},a)=>o.jsx("ol",{ref:a,className:r("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ze.displayName="BreadcrumbList";const Oe=s.forwardRef(({className:e,...t},a)=>o.jsx("li",{ref:a,className:r("inline-flex items-center gap-1.5",e),...t}));Oe.displayName="BreadcrumbItem";const Le=s.forwardRef(({asChild:e,className:t,...a},n)=>{const i=e?me.Slot:"a";return o.jsx(i,{ref:n,className:r("transition-colors hover:text-foreground",t),...a})});Le.displayName="BreadcrumbLink";const Ge=s.forwardRef(({className:e,...t},a)=>o.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:r("font-normal text-foreground",e),...t}));Ge.displayName="BreadcrumbPage";const qe=({children:e,className:t,...a})=>o.jsx("li",{role:"presentation","aria-hidden":"true",className:r("[&>svg]:size-3.5",t),...a,children:e??o.jsx(l.ChevronRight,{})});qe.displayName="BreadcrumbSeparator";const Be=({className:e,...t})=>o.jsxs("span",{role:"presentation","aria-hidden":"true",className:r("flex h-9 w-9 items-center justify-center",e),...t,children:[o.jsx(l.MoreHorizontal,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"More"})]});Be.displayName="BreadcrumbElipssis";function He({className:e,classNames:t,showOutsideDays:a=!0,...n}){return o.jsx(uo.DayPicker,{showOutsideDays:a,className:r("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:r(S({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:r(S({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...i})=>o.jsx(l.ChevronLeft,{className:"h-4 w-4"}),IconRight:({...i})=>o.jsx(l.ChevronRight,{className:"h-4 w-4"})},...n})}He.displayName="Calendar";const Ee=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("rounded-lg border bg-card text-card-foreground shadow-sm",e),...t}));Ee.displayName="Card";const Ve=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex flex-col space-y-1.5 p-6",e),...t}));Ve.displayName="CardHeader";const Fe=s.forwardRef(({className:e,...t},a)=>o.jsx("h3",{ref:a,className:r("text-2xl font-semibold leading-none tracking-tight",e),...t}));Fe.displayName="CardTitle";const Ue=s.forwardRef(({className:e,...t},a)=>o.jsx("p",{ref:a,className:r("text-sm text-muted-foreground",e),...t}));Ue.displayName="CardDescription";const Xe=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("p-6 pt-0",e),...t}));Xe.displayName="CardContent";const Ke=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex items-center p-6 pt-0",e),...t}));Ke.displayName="CardFooter";const We=s.createContext(null);function H(){const e=s.useContext(We);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const $e=s.forwardRef(({orientation:e="horizontal",opts:t,setApi:a,plugins:n,className:i,children:x,...y},j)=>{const[Ja,g]=po({...t,axis:e==="horizontal"?"x":"y"},n),[Za,eo]=s.useState(!1),[to,ao]=s.useState(!1),M=s.useCallback(w=>{w&&(eo(w.canScrollPrev()),ao(w.canScrollNext()))},[]),V=s.useCallback(()=>{g==null||g.scrollPrev()},[g]),F=s.useCallback(()=>{g==null||g.scrollNext()},[g]),oo=s.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),V()):w.key==="ArrowRight"&&(w.preventDefault(),F())},[V,F]);return s.useEffect(()=>{!g||!a||a(g)},[g,a]),s.useEffect(()=>{if(g)return M(g),g.on("reInit",M),g.on("select",M),()=>{g==null||g.off("select",M)}},[g,M]),o.jsx(We.Provider,{value:{carouselRef:Ja,api:g,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:V,scrollNext:F,canScrollPrev:Za,canScrollNext:to},children:o.jsx("div",{ref:j,onKeyDownCapture:oo,className:r("relative",i),role:"region","aria-roledescription":"carousel",...y,children:x})})});$e.displayName="Carousel";const Qe=s.forwardRef(({className:e,...t},a)=>{const{carouselRef:n,orientation:i}=H();return o.jsx("div",{ref:n,className:"overflow-hidden",children:o.jsx("div",{ref:a,className:r("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Qe.displayName="CarouselContent";const Ye=s.forwardRef(({className:e,...t},a)=>{const{orientation:n}=H();return o.jsx("div",{ref:a,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})});Ye.displayName="CarouselItem";const Je=s.forwardRef(({className:e,variant:t="outline",size:a="icon",...n},i)=>{const{orientation:x,scrollPrev:y,canScrollPrev:j}=H();return o.jsxs(B,{ref:i,variant:t,size:a,className:r("absolute h-8 w-8 rounded-full",x==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!j,onClick:y,...n,children:[o.jsx(l.ArrowLeft,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Je.displayName="CarouselPrevious";const Ze=s.forwardRef(({className:e,variant:t="outline",size:a="icon",...n},i)=>{const{orientation:x,scrollNext:y,canScrollNext:j}=H();return o.jsxs(B,{ref:i,variant:t,size:a,className:r("absolute h-8 w-8 rounded-full",x==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!j,onClick:y,...n,children:[o.jsx(l.ArrowRight,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Next slide"})]})});Ze.displayName="CarouselNext";const et=s.forwardRef(({className:e,...t},a)=>o.jsx(W.Root,{ref:a,className:r("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:o.jsx(W.Indicator,{className:r("flex items-center justify-center text-current"),children:o.jsx(l.Check,{className:"h-4 w-4"})})}));et.displayName=W.Root.displayName;const Vo=Y.Root,Fo=Y.CollapsibleTrigger,Uo=Y.CollapsibleContent,tt=m.Root,Xo=m.Trigger,at=m.Portal,Ko=m.Close,ee=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Overlay,{ref:a,className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ee.displayName=m.Overlay.displayName;const te=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(at,{children:[o.jsx(ee,{}),o.jsxs(m.Content,{ref:n,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...a,children:[t,o.jsxs(m.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[o.jsx(l.X,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));te.displayName=m.Content.displayName;const ot=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ot.displayName="DialogHeader";const rt=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});rt.displayName="DialogFooter";const st=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Title,{ref:a,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));st.displayName=m.Title.displayName;const nt=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));nt.displayName=m.Description.displayName;const ae=s.forwardRef(({className:e,...t},a)=>o.jsx(N.Command,{ref:a,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));ae.displayName=N.Command.displayName;const Wo=({children:e,...t})=>o.jsx(tt,{...t,children:o.jsx(te,{className:"overflow-hidden p-0 shadow-lg",children:o.jsx(ae,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),it=s.forwardRef(({className:e,...t},a)=>o.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[o.jsx(l.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),o.jsx(N.Command.Input,{ref:a,className:r("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));it.displayName=N.Command.Input.displayName;const lt=s.forwardRef(({className:e,...t},a)=>o.jsx(N.Command.List,{ref:a,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));lt.displayName=N.Command.List.displayName;const dt=s.forwardRef((e,t)=>o.jsx(N.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));dt.displayName=N.Command.Empty.displayName;const ct=s.forwardRef(({className:e,...t},a)=>o.jsx(N.Command.Group,{ref:a,className:r("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));ct.displayName=N.Command.Group.displayName;const mt=s.forwardRef(({className:e,...t},a)=>o.jsx(N.Command.Separator,{ref:a,className:r("-mx-1 h-px bg-border",e),...t}));mt.displayName=N.Command.Separator.displayName;const ut=s.forwardRef(({className:e,...t},a)=>o.jsx(N.Command.Item,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));ut.displayName=N.Command.Item.displayName;const pt=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});pt.displayName="CommandShortcut";const $o=u.Root,Qo=u.Trigger,Yo=u.Group,Jo=u.Portal,Zo=u.Sub,er=u.RadioGroup,ft=s.forwardRef(({className:e,inset:t,children:a,...n},i)=>o.jsxs(u.SubTrigger,{ref:i,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n,children:[a,o.jsx(l.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ft.displayName=u.SubTrigger.displayName;const gt=s.forwardRef(({className:e,...t},a)=>o.jsx(u.SubContent,{ref:a,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-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",e),...t}));gt.displayName=u.SubContent.displayName;const xt=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Portal,{children:o.jsx(u.Content,{ref:a,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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})}));xt.displayName=u.Content.displayName;const bt=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(u.Item,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...a}));bt.displayName=u.Item.displayName;const Nt=s.forwardRef(({className:e,children:t,checked:a,...n},i)=>o.jsxs(u.CheckboxItem,{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 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(u.ItemIndicator,{children:o.jsx(l.Check,{className:"h-4 w-4"})})}),t]}));Nt.displayName=u.CheckboxItem.displayName;const ht=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(u.RadioItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(u.ItemIndicator,{children:o.jsx(l.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));ht.displayName=u.RadioItem.displayName;const yt=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(u.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));yt.displayName=u.Label.displayName;const vt=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-border",e),...t}));vt.displayName=u.Separator.displayName;const wt=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});wt.displayName="ContextMenuShortcut";const jt=({shouldScaleBackground:e=!0,...t})=>o.jsx(v.Drawer.Root,{shouldScaleBackground:e,...t});jt.displayName="Drawer";const tr=v.Drawer.Trigger,Ct=v.Drawer.Portal,ar=v.Drawer.Close,oe=s.forwardRef(({className:e,...t},a)=>o.jsx(v.Drawer.Overlay,{ref:a,className:r("fixed inset-0 z-50 bg-black/80",e),...t}));oe.displayName=v.Drawer.Overlay.displayName;const Rt=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(Ct,{children:[o.jsx(oe,{}),o.jsxs(v.Drawer.Content,{ref:n,className:r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...a,children:[o.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Rt.displayName="DrawerContent";const St=({className:e,...t})=>o.jsx("div",{className:r("grid gap-1.5 p-4 text-center sm:text-left",e),...t});St.displayName="DrawerHeader";const Tt=({className:e,...t})=>o.jsx("div",{className:r("mt-auto flex flex-col gap-2 p-4",e),...t});Tt.displayName="DrawerFooter";const Dt=s.forwardRef(({className:e,...t},a)=>o.jsx(v.Drawer.Title,{ref:a,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));Dt.displayName=v.Drawer.Title.displayName;const Pt=s.forwardRef(({className:e,...t},a)=>o.jsx(v.Drawer.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));Pt.displayName=v.Drawer.Description.displayName;const or=p.Root,rr=p.Trigger,sr=p.Group,nr=p.Portal,ir=p.Sub,lr=p.RadioGroup,Mt=s.forwardRef(({className:e,inset:t,children:a,...n},i)=>o.jsxs(p.SubTrigger,{ref:i,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...n,children:[a,o.jsx(l.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Mt.displayName=p.SubTrigger.displayName;const It=s.forwardRef(({className:e,...t},a)=>o.jsx(p.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}));It.displayName=p.SubContent.displayName;const kt=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(p.Portal,{children:o.jsx(p.Content,{ref:n,sideOffset:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-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",e),...a})}));kt.displayName=p.Content.displayName;const _t=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(p.Item,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...a}));_t.displayName=p.Item.displayName;const At=s.forwardRef(({className:e,children:t,checked:a,...n},i)=>o.jsxs(p.CheckboxItem,{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 transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(p.ItemIndicator,{children:o.jsx(l.Check,{className:"h-4 w-4"})})}),t]}));At.displayName=p.CheckboxItem.displayName;const zt=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(p.RadioItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(p.ItemIndicator,{children:o.jsx(l.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));zt.displayName=p.RadioItem.displayName;const Ot=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(p.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Ot.displayName=p.Label.displayName;const Lt=s.forwardRef(({className:e,...t},a)=>o.jsx(p.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));Lt.displayName=p.Separator.displayName;const Gt=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...t});Gt.displayName="DropdownMenuShortcut";const dr=G.Root,cr=G.Trigger,qt=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},i)=>o.jsx(G.Content,{ref:i,align:t,sideOffset:a,className:r("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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),...n}));qt.displayName=G.Content.displayName;const Bt=s.forwardRef(({className:e,containerClassName:t,...a},n)=>o.jsx(ue.OTPInput,{ref:n,containerClassName:r("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:r("disabled:cursor-not-allowed",e),...a}));Bt.displayName="InputOTP";const Ht=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex items-center",e),...t}));Ht.displayName="InputOTPGroup";const Et=s.forwardRef(({index:e,className:t,...a},n)=>{const i=s.useContext(ue.OTPInputContext),{char:x,hasFakeCaret:y,isActive:j}=i.slots[e];return o.jsxs("div",{ref:n,className:r("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",j&&"z-10 ring-2 ring-ring ring-offset-background",t),...a,children:[x,y&&o.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:o.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})});Et.displayName="InputOTPSlot";const Vt=s.forwardRef(({...e},t)=>o.jsx("div",{ref:t,role:"separator",...e,children:o.jsx(l.Dot,{})}));Vt.displayName="InputOTPSeparator";const Ft=s.forwardRef(({className:e,type:t,...a},n)=>o.jsx("input",{type:t,className:r("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),ref:n,...a}));Ft.displayName="Input";const mr=T.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ut=s.forwardRef(({className:e,...t},a)=>o.jsx(pe.Root,{ref:a,className:r(mr(),e),...t}));Ut.displayName=pe.Root.displayName;const ur=d.Menu,pr=d.Group,fr=d.Portal,gr=d.Sub,xr=d.RadioGroup,Xt=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Root,{ref:a,className:r("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));Xt.displayName=d.Root.displayName;const Kt=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Trigger,{ref:a,className:r("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",e),...t}));Kt.displayName=d.Trigger.displayName;const Wt=s.forwardRef(({className:e,inset:t,children:a,...n},i)=>o.jsxs(d.SubTrigger,{ref:i,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n,children:[a,o.jsx(l.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Wt.displayName=d.SubTrigger.displayName;const $t=s.forwardRef(({className:e,...t},a)=>o.jsx(d.SubContent,{ref:a,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",e),...t}));$t.displayName=d.SubContent.displayName;const Qt=s.forwardRef(({className:e,align:t="start",alignOffset:a=-4,sideOffset:n=8,...i},x)=>o.jsx(d.Portal,{children:o.jsx(d.Content,{ref:x,align:t,alignOffset:a,sideOffset:n,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),...i})}));Qt.displayName=d.Content.displayName;const Yt=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Item,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...a}));Yt.displayName=d.Item.displayName;const Jt=s.forwardRef(({className:e,children:t,checked:a,...n},i)=>o.jsxs(d.CheckboxItem,{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 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(l.Check,{className:"h-4 w-4"})})}),t]}));Jt.displayName=d.CheckboxItem.displayName;const Zt=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(d.RadioItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(l.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Zt.displayName=d.RadioItem.displayName;const ea=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ea.displayName=d.Label.displayName;const ta=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));ta.displayName=d.Separator.displayName;const aa=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});aa.displayname="MenubarShortcut";const oa=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(h.Root,{ref:n,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[t,o.jsx(re,{})]}));oa.displayName=h.Root.displayName;const ra=s.forwardRef(({className:e,...t},a)=>o.jsx(h.List,{ref:a,className:r("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));ra.displayName=h.List.displayName;const br=h.Item,sa=T.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),na=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(h.Trigger,{ref:n,className:r(sa(),"group",e),...a,children:[t," ",o.jsx(l.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));na.displayName=h.Trigger.displayName;const ia=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Content,{ref:a,className:r("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));ia.displayName=h.Content.displayName;const Nr=h.Link,re=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{className:r("absolute left-0 top-full flex justify-center"),children:o.jsx(h.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:a,...t})}));re.displayName=h.Viewport.displayName;const la=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Indicator,{ref:a,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:o.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));la.displayName=h.Indicator.displayName;const da=({className:e,...t})=>o.jsx("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center",e),...t});da.displayName="Pagination";const ca=s.forwardRef(({className:e,...t},a)=>o.jsx("ul",{ref:a,className:r("flex flex-row items-center gap-1",e),...t}));ca.displayName="PaginationContent";const ma=s.forwardRef(({className:e,...t},a)=>o.jsx("li",{ref:a,className:r("",e),...t}));ma.displayName="PaginationItem";const E=({className:e,isActive:t,size:a="icon",...n})=>o.jsx("a",{"aria-current":t?"page":void 0,className:r(S({variant:t?"outline":"ghost",size:a}),e),...n});E.displayName="PaginationLink";const ua=({className:e,...t})=>o.jsxs(E,{"aria-label":"Go to previous page",size:"default",className:r("gap-1 pl-2.5",e),...t,children:[o.jsx(l.ChevronLeft,{className:"h-4 w-4"}),o.jsx("span",{children:"Previous"})]});ua.displayName="PaginationPrevious";const pa=({className:e,...t})=>o.jsxs(E,{"aria-label":"Go to next page",size:"default",className:r("gap-1 pr-2.5",e),...t,children:[o.jsx("span",{children:"Next"}),o.jsx(l.ChevronRight,{className:"h-4 w-4"})]});pa.displayName="PaginationNext";const fa=({className:e,...t})=>o.jsxs("span",{"aria-hidden":!0,className:r("flex h-9 w-9 items-center justify-center",e),...t,children:[o.jsx(l.MoreHorizontal,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"More pages"})]});fa.displayName="PaginationEllipsis";const hr=_.Root,yr=_.Trigger,ga=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},i)=>o.jsx(_.Portal,{children:o.jsx(_.Content,{ref:i,align:t,sideOffset:a,className:r("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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),...n})}));ga.displayName=_.Content.displayName;const xa=s.forwardRef(({className:e,value:t,...a},n)=>o.jsx($.Root,{ref:n,className:r("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:o.jsx($.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));xa.displayName=$.Root.displayName;const ba=s.forwardRef(({className:e,...t},a)=>o.jsx(A.Root,{className:r("grid gap-2",e),...t,ref:a}));ba.displayName=A.Root.displayName;const Na=s.forwardRef(({className:e,...t},a)=>o.jsx(A.Item,{ref:a,className:r("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:o.jsx(A.Indicator,{className:"flex items-center justify-center",children:o.jsx(l.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Na.displayName=A.Item.displayName;const vr=({className:e,...t})=>o.jsx(J.PanelGroup,{className:r("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),wr=J.Panel,jr=({withHandle:e,className:t,...a})=>o.jsx(J.PanelResizeHandle,{className:r("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...a,children:e&&o.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:o.jsx(l.GripVertical,{className:"h-2.5 w-2.5"})})}),ha=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(C.Root,{ref:n,className:r("relative overflow-hidden",e),...a,children:[o.jsx(C.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(se,{}),o.jsx(C.Corner,{})]}));ha.displayName=C.Root.displayName;const se=s.forwardRef(({className:e,orientation:t="vertical",...a},n)=>o.jsx(C.ScrollAreaScrollbar,{ref:n,orientation:t,className:r("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:o.jsx(C.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));se.displayName=C.ScrollAreaScrollbar.displayName;const Cr=f.Root,Rr=f.Group,Sr=f.Value,ya=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(f.Trigger,{ref:n,className:r("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,o.jsx(f.Icon,{asChild:!0,children:o.jsx(l.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));ya.displayName=f.Trigger.displayName;const ne=s.forwardRef(({className:e,...t},a)=>o.jsx(f.ScrollUpButton,{ref:a,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(l.ChevronUp,{className:"h-4 w-4"})}));ne.displayName=f.ScrollUpButton.displayName;const ie=s.forwardRef(({className:e,...t},a)=>o.jsx(f.ScrollDownButton,{ref:a,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(l.ChevronDown,{className:"h-4 w-4"})}));ie.displayName=f.ScrollDownButton.displayName;const va=s.forwardRef(({className:e,children:t,position:a="popper",...n},i)=>o.jsx(f.Portal,{children:o.jsxs(f.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-popover text-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",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...n,children:[o.jsx(ne,{}),o.jsx(f.Viewport,{className:r("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),o.jsx(ie,{})]})}));va.displayName=f.Content.displayName;const wa=s.forwardRef(({className:e,...t},a)=>o.jsx(f.Label,{ref:a,className:r("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));wa.displayName=f.Label.displayName;const ja=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(f.Item,{ref:n,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(f.ItemIndicator,{children:o.jsx(l.Check,{className:"h-4 w-4"})})}),o.jsx(f.ItemText,{children:t})]}));ja.displayName=f.Item.displayName;const Ca=s.forwardRef(({className:e,...t},a)=>o.jsx(f.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));Ca.displayName=f.Separator.displayName;const Ra=s.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...n},i)=>o.jsx(fe.Root,{ref:i,decorative:a,orientation:t,className:r("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ra.displayName=fe.Root.displayName;const Tr=m.Root,Dr=m.Trigger,Pr=m.Close,Sa=m.Portal,le=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Overlay,{className:r("fixed inset-0 z-50 bg-black/80 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}));le.displayName=m.Overlay.displayName;const Mr=T.cva("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"}}),Ta=s.forwardRef(({side:e="right",className:t,children:a,...n},i)=>o.jsxs(Sa,{children:[o.jsx(le,{}),o.jsxs(m.Content,{ref:i,className:r(Mr({side:e}),t),...n,children:[a,o.jsxs(m.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[o.jsx(l.X,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ta.displayName=m.Content.displayName;const Da=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});Da.displayName="SheetHeader";const Pa=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Pa.displayName="SheetFooter";const Ma=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Title,{ref:a,className:r("text-lg font-semibold text-foreground",e),...t}));Ma.displayName=m.Title.displayName;const Ia=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));Ia.displayName=m.Description.displayName;function Ir({className:e,...t}){return o.jsx("div",{className:r("animate-pulse rounded-md bg-muted",e),...t})}const ka=s.forwardRef(({className:e,...t},a)=>o.jsxs(I.Root,{ref:a,className:r("relative flex w-full touch-none select-none items-center",e),...t,children:[o.jsx(I.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:o.jsx(I.Range,{className:"absolute h-full bg-primary"})}),o.jsx(I.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));ka.displayName=I.Root.displayName;const _a=s.forwardRef(({className:e,...t},a)=>o.jsx(Q.Root,{className:r("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:a,children:o.jsx(Q.Thumb,{className:r("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));_a.displayName=Q.Root.displayName;const Aa=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:a,className:r("w-full caption-bottom text-sm",e),...t})}));Aa.displayName="Table";const za=s.forwardRef(({className:e,...t},a)=>o.jsx("thead",{ref:a,className:r("[&_tr]:border-b",e),...t}));za.displayName="TableHeader";const Oa=s.forwardRef(({className:e,...t},a)=>o.jsx("tbody",{ref:a,className:r("[&_tr:last-child]:border-0",e),...t}));Oa.displayName="TableBody";const La=s.forwardRef(({className:e,...t},a)=>o.jsx("tfoot",{ref:a,className:r("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));La.displayName="TableFooter";const Ga=s.forwardRef(({className:e,...t},a)=>o.jsx("tr",{ref:a,className:r("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Ga.displayName="TableRow";const qa=s.forwardRef(({className:e,...t},a)=>o.jsx("th",{ref:a,className:r("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));qa.displayName="TableHead";const Ba=s.forwardRef(({className:e,...t},a)=>o.jsx("td",{ref:a,className:r("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Ba.displayName="TableCell";const Ha=s.forwardRef(({className:e,...t},a)=>o.jsx("caption",{ref:a,className:r("mt-4 text-sm text-muted-foreground",e),...t}));Ha.displayName="TableCaption";const kr=D.Root,Ea=s.forwardRef(({className:e,...t},a)=>o.jsx(D.List,{ref:a,className:r("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",e),...t}));Ea.displayName=D.List.displayName;const Va=s.forwardRef(({className:e,...t},a)=>o.jsx(D.Trigger,{ref:a,className:r("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));Va.displayName=D.Trigger.displayName;const Fa=s.forwardRef(({className:e,...t},a)=>o.jsx(D.Content,{ref:a,className:r("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Fa.displayName=D.Content.displayName;const Ua=s.forwardRef(({className:e,...t},a)=>o.jsx("textarea",{className:r("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Ua.displayName="Textarea";const de=T.cva("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"}}),Xa=s.forwardRef(({className:e,variant:t,size:a,...n},i)=>o.jsx(ge.Root,{ref:i,className:r(de({variant:t,size:a,className:e})),...n}));Xa.displayName=ge.Root.displayName;const Ka=s.createContext({size:"default",variant:"default"}),Wa=s.forwardRef(({className:e,variant:t,size:a,children:n,...i},x)=>o.jsx(q.Root,{ref:x,className:r("flex items-center justify-center gap-1",e),...i,children:o.jsx(Ka.Provider,{value:{variant:t,size:a},children:n})}));Wa.displayName=q.Root.displayName;const $a=s.forwardRef(({className:e,children:t,variant:a,size:n,...i},x)=>{const y=s.useContext(Ka);return o.jsx(q.Item,{ref:x,className:r(de({variant:y.variant||a,size:y.size||n}),e),...i,children:t})});$a.displayName=q.Item.displayName;const _r=z.Provider,Ar=z.Root,zr=z.Trigger,Qa=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(z.Content,{ref:n,sideOffset:t,className:r("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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}));Qa.displayName=z.Content.displayName;const U=768;function Or(){const[e,t]=s.useState(void 0);return s.useEffect(()=>{const a=window.matchMedia(`(max-width: ${U-1}px)`),n=()=>{t(window.innerWidth<U)};return a.addEventListener("change",n),t(window.innerWidth<U),()=>a.removeEventListener("change",n)},[]),!!e}const Lr=1,Gr=1e6;let X=0;function qr(){return X=(X+1)%Number.MAX_SAFE_INTEGER,X.toString()}const K=new Map,ce=e=>{if(K.has(e))return;const t=setTimeout(()=>{K.delete(e),k({type:"REMOVE_TOAST",toastId:e})},Gr);K.set(e,t)},Br=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Lr)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{const{toastId:a}=t;return a?ce(a):e.toasts.forEach(n=>{ce(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===a||a===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},O=[];let L={toasts:[]};function k(e){L=Br(L,e),O.forEach(t=>{t(L)})}function Ya({...e}){const t=qr(),a=i=>k({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>k({type:"DISMISS_TOAST",toastId:t});return k({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:a}}function Hr(){const[e,t]=s.useState(L);return s.useEffect(()=>(O.push(t),()=>{const a=O.indexOf(t);a>-1&&O.splice(a,1)}),[e]),{...e,toast:Ya,dismiss:a=>k({type:"DISMISS_TOAST",toastId:a})}}exports.Accordion=Lo;exports.AccordionContent=Ne;exports.AccordionItem=xe;exports.AccordionTrigger=be;exports.Alert=Te;exports.AlertDescription=Pe;exports.AlertDialog=Go;exports.AlertDialogAction=Re;exports.AlertDialogCancel=Se;exports.AlertDialogContent=ye;exports.AlertDialogDescription=Ce;exports.AlertDialogFooter=we;exports.AlertDialogHeader=ve;exports.AlertDialogOverlay=Z;exports.AlertDialogPortal=he;exports.AlertDialogTitle=je;exports.AlertDialogTrigger=qo;exports.AlertTitle=De;exports.AspectRatio=Ho;exports.Avatar=Me;exports.AvatarFallback=ke;exports.AvatarImage=Ie;exports.Badge=Eo;exports.Breadcrumb=Ae;exports.BreadcrumbEllipsis=Be;exports.BreadcrumbItem=Oe;exports.BreadcrumbLink=Le;exports.BreadcrumbList=ze;exports.BreadcrumbPage=Ge;exports.BreadcrumbSeparator=qe;exports.Button=B;exports.Calendar=He;exports.Card=Ee;exports.CardContent=Xe;exports.CardDescription=Ue;exports.CardFooter=Ke;exports.CardHeader=Ve;exports.CardTitle=Fe;exports.Carousel=$e;exports.CarouselContent=Qe;exports.CarouselItem=Ye;exports.CarouselNext=Ze;exports.CarouselPrevious=Je;exports.Checkbox=et;exports.Collapsible=Vo;exports.CollapsibleContent=Uo;exports.CollapsibleTrigger=Fo;exports.Command=ae;exports.CommandDialog=Wo;exports.CommandEmpty=dt;exports.CommandGroup=ct;exports.CommandInput=it;exports.CommandItem=ut;exports.CommandList=lt;exports.CommandSeparator=mt;exports.CommandShortcut=pt;exports.ContextMenu=$o;exports.ContextMenuCheckboxItem=Nt;exports.ContextMenuContent=xt;exports.ContextMenuGroup=Yo;exports.ContextMenuItem=bt;exports.ContextMenuLabel=yt;exports.ContextMenuPortal=Jo;exports.ContextMenuRadioGroup=er;exports.ContextMenuRadioItem=ht;exports.ContextMenuSeparator=vt;exports.ContextMenuShortcut=wt;exports.ContextMenuSub=Zo;exports.ContextMenuSubContent=gt;exports.ContextMenuSubTrigger=ft;exports.ContextMenuTrigger=Qo;exports.Dialog=tt;exports.DialogClose=Ko;exports.DialogContent=te;exports.DialogDescription=nt;exports.DialogFooter=rt;exports.DialogHeader=ot;exports.DialogOverlay=ee;exports.DialogPortal=at;exports.DialogTitle=st;exports.DialogTrigger=Xo;exports.Drawer=jt;exports.DrawerClose=ar;exports.DrawerContent=Rt;exports.DrawerDescription=Pt;exports.DrawerFooter=Tt;exports.DrawerHeader=St;exports.DrawerOverlay=oe;exports.DrawerPortal=Ct;exports.DrawerTitle=Dt;exports.DrawerTrigger=tr;exports.DropdownMenu=or;exports.DropdownMenuCheckboxItem=At;exports.DropdownMenuContent=kt;exports.DropdownMenuGroup=sr;exports.DropdownMenuItem=_t;exports.DropdownMenuLabel=Ot;exports.DropdownMenuPortal=nr;exports.DropdownMenuRadioGroup=lr;exports.DropdownMenuRadioItem=zt;exports.DropdownMenuSeparator=Lt;exports.DropdownMenuShortcut=Gt;exports.DropdownMenuSub=ir;exports.DropdownMenuSubContent=It;exports.DropdownMenuSubTrigger=Mt;exports.DropdownMenuTrigger=rr;exports.HoverCard=dr;exports.HoverCardContent=qt;exports.HoverCardTrigger=cr;exports.Input=Ft;exports.InputOTP=Bt;exports.InputOTPGroup=Ht;exports.InputOTPSeparator=Vt;exports.InputOTPSlot=Et;exports.Label=Ut;exports.Menubar=Xt;exports.MenubarCheckboxItem=Jt;exports.MenubarContent=Qt;exports.MenubarGroup=pr;exports.MenubarItem=Yt;exports.MenubarLabel=ea;exports.MenubarMenu=ur;exports.MenubarPortal=fr;exports.MenubarRadioGroup=xr;exports.MenubarRadioItem=Zt;exports.MenubarSeparator=ta;exports.MenubarShortcut=aa;exports.MenubarSub=gr;exports.MenubarSubContent=$t;exports.MenubarSubTrigger=Wt;exports.MenubarTrigger=Kt;exports.NavigationMenu=oa;exports.NavigationMenuContent=ia;exports.NavigationMenuIndicator=la;exports.NavigationMenuItem=br;exports.NavigationMenuLink=Nr;exports.NavigationMenuList=ra;exports.NavigationMenuTrigger=na;exports.NavigationMenuViewport=re;exports.Pagination=da;exports.PaginationContent=ca;exports.PaginationEllipsis=fa;exports.PaginationItem=ma;exports.PaginationLink=E;exports.PaginationNext=pa;exports.PaginationPrevious=ua;exports.Popover=hr;exports.PopoverContent=ga;exports.PopoverTrigger=yr;exports.Progress=xa;exports.RadioGroup=ba;exports.RadioGroupItem=Na;exports.ResizableHandle=jr;exports.ResizablePanel=wr;exports.ResizablePanelGroup=vr;exports.ScrollArea=ha;exports.ScrollBar=se;exports.Select=Cr;exports.SelectContent=va;exports.SelectGroup=Rr;exports.SelectItem=ja;exports.SelectLabel=wa;exports.SelectScrollDownButton=ie;exports.SelectScrollUpButton=ne;exports.SelectSeparator=Ca;exports.SelectTrigger=ya;exports.SelectValue=Sr;exports.Separator=Ra;exports.Sheet=Tr;exports.SheetClose=Pr;exports.SheetContent=Ta;exports.SheetDescription=Ia;exports.SheetFooter=Pa;exports.SheetHeader=Da;exports.SheetOverlay=le;exports.SheetPortal=Sa;exports.SheetTitle=Ma;exports.SheetTrigger=Dr;exports.Skeleton=Ir;exports.Slider=ka;exports.Switch=_a;exports.Table=Aa;exports.TableBody=Oa;exports.TableCaption=Ha;exports.TableCell=Ba;exports.TableFooter=La;exports.TableHead=qa;exports.TableHeader=za;exports.TableRow=Ga;exports.Tabs=kr;exports.TabsContent=Fa;exports.TabsList=Ea;exports.TabsTrigger=Va;exports.Textarea=Ua;exports.Toggle=Xa;exports.ToggleGroup=Wa;exports.ToggleGroupItem=$a;exports.Tooltip=Ar;exports.TooltipContent=Qa;exports.TooltipProvider=_r;exports.TooltipTrigger=zr;exports.badgeVariants=_e;exports.buttonVariants=S;exports.cn=r;exports.navigationMenuTriggerStyle=sa;exports.toast=Ya;exports.toggleVariants=de;exports.useIsMobile=Or;exports.useToast=Hr;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const ro=require("clsx"),so=require("tailwind-merge"),o=require("react/jsx-runtime"),no=require("react"),io=require("@radix-ui/react-accordion"),l=require("lucide-react"),lo=require("@radix-ui/react-alert-dialog"),me=require("@radix-ui/react-slot"),T=require("class-variance-authority"),co=require("@radix-ui/react-aspect-ratio"),mo=require("@radix-ui/react-avatar"),uo=require("react-day-picker"),po=require("embla-carousel-react"),fo=require("@radix-ui/react-checkbox"),go=require("@radix-ui/react-collapsible"),h=require("cmdk"),xo=require("@radix-ui/react-dialog"),bo=require("@radix-ui/react-context-menu"),y=require("vaul"),ho=require("@radix-ui/react-dropdown-menu"),No=require("@radix-ui/react-hover-card"),ue=require("input-otp"),vo=require("@radix-ui/react-label"),yo=require("@radix-ui/react-menubar"),wo=require("@radix-ui/react-navigation-menu"),jo=require("@radix-ui/react-popover"),Co=require("@radix-ui/react-progress"),Ro=require("@radix-ui/react-radio-group"),So=require("react-resizable-panels"),To=require("@radix-ui/react-scroll-area"),Do=require("@radix-ui/react-select"),Po=require("@radix-ui/react-separator"),Mo=require("@radix-ui/react-slider"),Io=require("@radix-ui/react-switch"),ko=require("@radix-ui/react-tabs"),_o=require("@radix-ui/react-toggle"),Ao=require("@radix-ui/react-toggle-group"),zo=require("@radix-ui/react-tooltip");function c(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const s=c(no),R=c(io),b=c(lo),Oo=c(co),P=c(mo),W=c(fo),Y=c(go),m=c(xo),u=c(bo),p=c(ho),G=c(No),pe=c(vo),d=c(yo),N=c(wo),_=c(jo),$=c(Co),A=c(Ro),J=c(So),C=c(To),f=c(Do),fe=c(Po),I=c(Mo),Q=c(Io),D=c(ko),ge=c(_o),q=c(Ao),z=c(zo);function r(...e){return so.twMerge(ro.clsx(e))}const Lo=R.Root,xe=s.forwardRef(({className:e,...t},a)=>o.jsx(R.Item,{ref:a,className:r("border-b",e),...t}));xe.displayName="AccordionItem";const be=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(R.Header,{className:"flex",children:o.jsxs(R.Trigger,{ref:n,className:r("flex flex-1 items-center justify-between py-4 font-medium transition-all hover:underline [&[data-state=open]>svg]:rotate-180",e),...a,children:[t,o.jsx(l.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));be.displayName=R.Trigger.displayName;const he=s.forwardRef(({className:e,children:t,...a},n)=>o.jsx(R.Content,{ref:n,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...a,children:o.jsx("div",{className:r("pb-4 pt-0",e),children:t})}));he.displayName=R.Content.displayName;const S=T.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-lg text-sm font-semibold ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 active:scale-[0.98]",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-sm hover:bg-primary/90 hover:shadow-md",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90 hover:shadow-md",outline:"border-2 border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground hover:border-accent",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80 hover:shadow-md",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",shiny:"bg-primary text-primary-foreground shadow-lg hover:shadow-primary/20 hover:-translate-y-0.5 relative overflow-hidden before:absolute before:inset-0 before:bg-gradient-to-r before:from-transparent before:via-white/20 before:to-transparent before:translate-x-[-100%] hover:before:translate-x-[100%] before:transition-transform before:duration-700"},size:{default:"h-11 px-6 py-2.5",sm:"h-9 rounded-md px-4 text-xs",lg:"h-13 rounded-xl px-10 text-base",icon:"h-11 w-11"}},defaultVariants:{variant:"default",size:"default"}}),B=s.forwardRef(({className:e,variant:t,size:a,asChild:n=!1,...i},x)=>{const v=n?me.Slot:"button";return o.jsx(v,{className:r(S({variant:t,size:a,className:e})),ref:x,...i})});B.displayName="Button";const Go=b.Root,qo=b.Trigger,Ne=b.Portal,Z=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Overlay,{className:r("fixed inset-0 z-50 bg-black/80 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}));Z.displayName=b.Overlay.displayName;const ve=s.forwardRef(({className:e,...t},a)=>o.jsxs(Ne,{children:[o.jsx(Z,{}),o.jsx(b.Content,{ref:a,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",e),...t})]}));ve.displayName=b.Content.displayName;const ye=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});ye.displayName="AlertDialogHeader";const we=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});we.displayName="AlertDialogFooter";const je=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Title,{ref:a,className:r("text-lg font-semibold",e),...t}));je.displayName=b.Title.displayName;const Ce=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));Ce.displayName=b.Description.displayName;const Re=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Action,{ref:a,className:r(S(),e),...t}));Re.displayName=b.Action.displayName;const Se=s.forwardRef(({className:e,...t},a)=>o.jsx(b.Cancel,{ref:a,className:r(S({variant:"outline"}),"mt-2 sm:mt-0",e),...t}));Se.displayName=b.Cancel.displayName;const Bo=T.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>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"}}),Te=s.forwardRef(({className:e,variant:t,...a},n)=>o.jsx("div",{ref:n,role:"alert",className:r(Bo({variant:t}),e),...a}));Te.displayName="Alert";const De=s.forwardRef(({className:e,...t},a)=>o.jsx("h5",{ref:a,className:r("mb-1 font-medium leading-none tracking-tight",e),...t}));De.displayName="AlertTitle";const Pe=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("text-sm [&_p]:leading-relaxed",e),...t}));Pe.displayName="AlertDescription";const Ho=Oo.Root,Me=s.forwardRef(({className:e,...t},a)=>o.jsx(P.Root,{ref:a,className:r("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",e),...t}));Me.displayName=P.Root.displayName;const Ie=s.forwardRef(({className:e,...t},a)=>o.jsx(P.Image,{ref:a,className:r("aspect-square h-full w-full",e),...t}));Ie.displayName=P.Image.displayName;const ke=s.forwardRef(({className:e,...t},a)=>o.jsx(P.Fallback,{ref:a,className:r("flex h-full w-full items-center justify-center rounded-full bg-muted",e),...t}));ke.displayName=P.Fallback.displayName;const _e=T.cva("inline-flex items-center rounded-full border px-3 py-0.5 text-xs font-semibold transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/80",outline:"text-foreground border-border hover:bg-accent hover:text-accent-foreground",success:"border-transparent bg-emerald-500 text-white shadow-sm hover:bg-emerald-600",warning:"border-transparent bg-amber-500 text-white shadow-sm hover:bg-amber-600",info:"border-transparent bg-blue-500 text-white shadow-sm hover:bg-blue-600"}},defaultVariants:{variant:"default"}});function Eo({className:e,variant:t,...a}){return o.jsx("div",{className:r(_e({variant:t}),e),...a})}const Ae=s.forwardRef(({...e},t)=>o.jsx("nav",{ref:t,"aria-label":"breadcrumb",...e}));Ae.displayName="Breadcrumb";const ze=s.forwardRef(({className:e,...t},a)=>o.jsx("ol",{ref:a,className:r("flex flex-wrap items-center gap-1.5 break-words text-sm text-muted-foreground sm:gap-2.5",e),...t}));ze.displayName="BreadcrumbList";const Oe=s.forwardRef(({className:e,...t},a)=>o.jsx("li",{ref:a,className:r("inline-flex items-center gap-1.5",e),...t}));Oe.displayName="BreadcrumbItem";const Le=s.forwardRef(({asChild:e,className:t,...a},n)=>{const i=e?me.Slot:"a";return o.jsx(i,{ref:n,className:r("transition-colors hover:text-foreground",t),...a})});Le.displayName="BreadcrumbLink";const Ge=s.forwardRef(({className:e,...t},a)=>o.jsx("span",{ref:a,role:"link","aria-disabled":"true","aria-current":"page",className:r("font-normal text-foreground",e),...t}));Ge.displayName="BreadcrumbPage";const qe=({children:e,className:t,...a})=>o.jsx("li",{role:"presentation","aria-hidden":"true",className:r("[&>svg]:size-3.5",t),...a,children:e??o.jsx(l.ChevronRight,{})});qe.displayName="BreadcrumbSeparator";const Be=({className:e,...t})=>o.jsxs("span",{role:"presentation","aria-hidden":"true",className:r("flex h-9 w-9 items-center justify-center",e),...t,children:[o.jsx(l.MoreHorizontal,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"More"})]});Be.displayName="BreadcrumbElipssis";function He({className:e,classNames:t,showOutsideDays:a=!0,...n}){return o.jsx(uo.DayPicker,{showOutsideDays:a,className:r("p-3",e),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:r(S({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:r(S({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{IconLeft:({...i})=>o.jsx(l.ChevronLeft,{className:"h-4 w-4"}),IconRight:({...i})=>o.jsx(l.ChevronRight,{className:"h-4 w-4"})},...n})}He.displayName="Calendar";const Ee=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("rounded-xl border bg-card text-card-foreground shadow-sm transition-all duration-200 hover:shadow-md",e),...t}));Ee.displayName="Card";const Ve=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex flex-col space-y-1.5 p-6",e),...t}));Ve.displayName="CardHeader";const Fe=s.forwardRef(({className:e,...t},a)=>o.jsx("h3",{ref:a,className:r("text-2xl font-semibold leading-none tracking-tight",e),...t}));Fe.displayName="CardTitle";const Ue=s.forwardRef(({className:e,...t},a)=>o.jsx("p",{ref:a,className:r("text-sm text-muted-foreground",e),...t}));Ue.displayName="CardDescription";const Xe=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("p-6 pt-0",e),...t}));Xe.displayName="CardContent";const Ke=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex items-center p-6 pt-0",e),...t}));Ke.displayName="CardFooter";const We=s.createContext(null);function H(){const e=s.useContext(We);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const $e=s.forwardRef(({orientation:e="horizontal",opts:t,setApi:a,plugins:n,className:i,children:x,...v},j)=>{const[Ja,g]=po({...t,axis:e==="horizontal"?"x":"y"},n),[Za,eo]=s.useState(!1),[to,ao]=s.useState(!1),M=s.useCallback(w=>{w&&(eo(w.canScrollPrev()),ao(w.canScrollNext()))},[]),V=s.useCallback(()=>{g==null||g.scrollPrev()},[g]),F=s.useCallback(()=>{g==null||g.scrollNext()},[g]),oo=s.useCallback(w=>{w.key==="ArrowLeft"?(w.preventDefault(),V()):w.key==="ArrowRight"&&(w.preventDefault(),F())},[V,F]);return s.useEffect(()=>{!g||!a||a(g)},[g,a]),s.useEffect(()=>{if(g)return M(g),g.on("reInit",M),g.on("select",M),()=>{g==null||g.off("select",M)}},[g,M]),o.jsx(We.Provider,{value:{carouselRef:Ja,api:g,opts:t,orientation:e||((t==null?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:V,scrollNext:F,canScrollPrev:Za,canScrollNext:to},children:o.jsx("div",{ref:j,onKeyDownCapture:oo,className:r("relative",i),role:"region","aria-roledescription":"carousel",...v,children:x})})});$e.displayName="Carousel";const Qe=s.forwardRef(({className:e,...t},a)=>{const{carouselRef:n,orientation:i}=H();return o.jsx("div",{ref:n,className:"overflow-hidden",children:o.jsx("div",{ref:a,className:r("flex",i==="horizontal"?"-ml-4":"-mt-4 flex-col",e),...t})})});Qe.displayName="CarouselContent";const Ye=s.forwardRef(({className:e,...t},a)=>{const{orientation:n}=H();return o.jsx("div",{ref:a,role:"group","aria-roledescription":"slide",className:r("min-w-0 shrink-0 grow-0 basis-full",n==="horizontal"?"pl-4":"pt-4",e),...t})});Ye.displayName="CarouselItem";const Je=s.forwardRef(({className:e,variant:t="outline",size:a="icon",...n},i)=>{const{orientation:x,scrollPrev:v,canScrollPrev:j}=H();return o.jsxs(B,{ref:i,variant:t,size:a,className:r("absolute h-8 w-8 rounded-full",x==="horizontal"?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!j,onClick:v,...n,children:[o.jsx(l.ArrowLeft,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Je.displayName="CarouselPrevious";const Ze=s.forwardRef(({className:e,variant:t="outline",size:a="icon",...n},i)=>{const{orientation:x,scrollNext:v,canScrollNext:j}=H();return o.jsxs(B,{ref:i,variant:t,size:a,className:r("absolute h-8 w-8 rounded-full",x==="horizontal"?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",e),disabled:!j,onClick:v,...n,children:[o.jsx(l.ArrowRight,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Next slide"})]})});Ze.displayName="CarouselNext";const et=s.forwardRef(({className:e,...t},a)=>o.jsx(W.Root,{ref:a,className:r("peer h-4 w-4 shrink-0 rounded border border-primary ring-offset-background transition-all duration-200 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:o.jsx(W.Indicator,{className:r("flex items-center justify-center text-current"),children:o.jsx(l.Check,{className:"h-4 w-4"})})}));et.displayName=W.Root.displayName;const Vo=Y.Root,Fo=Y.CollapsibleTrigger,Uo=Y.CollapsibleContent,tt=m.Root,Xo=m.Trigger,at=m.Portal,Ko=m.Close,ee=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Overlay,{ref:a,className:r("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",e),...t}));ee.displayName=m.Overlay.displayName;const te=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(at,{children:[o.jsx(ee,{}),o.jsxs(m.Content,{ref:n,className:r("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-xl duration-300 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-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-xl",e),...a,children:[t,o.jsxs(m.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-accent data-[state=open]:text-muted-foreground hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[o.jsx(l.X,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));te.displayName=m.Content.displayName;const ot=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});ot.displayName="DialogHeader";const rt=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});rt.displayName="DialogFooter";const st=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Title,{ref:a,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));st.displayName=m.Title.displayName;const nt=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));nt.displayName=m.Description.displayName;const ae=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Command,{ref:a,className:r("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...t}));ae.displayName=h.Command.displayName;const Wo=({children:e,...t})=>o.jsx(tt,{...t,children:o.jsx(te,{className:"overflow-hidden p-0 shadow-lg",children:o.jsx(ae,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})})}),it=s.forwardRef(({className:e,...t},a)=>o.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[o.jsx(l.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),o.jsx(h.Command.Input,{ref:a,className:r("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...t})]}));it.displayName=h.Command.Input.displayName;const lt=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Command.List,{ref:a,className:r("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...t}));lt.displayName=h.Command.List.displayName;const dt=s.forwardRef((e,t)=>o.jsx(h.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...e}));dt.displayName=h.Command.Empty.displayName;const ct=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Command.Group,{ref:a,className:r("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...t}));ct.displayName=h.Command.Group.displayName;const mt=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Command.Separator,{ref:a,className:r("-mx-1 h-px bg-border",e),...t}));mt.displayName=h.Command.Separator.displayName;const ut=s.forwardRef(({className:e,...t},a)=>o.jsx(h.Command.Item,{ref:a,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",e),...t}));ut.displayName=h.Command.Item.displayName;const pt=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});pt.displayName="CommandShortcut";const $o=u.Root,Qo=u.Trigger,Yo=u.Group,Jo=u.Portal,Zo=u.Sub,er=u.RadioGroup,ft=s.forwardRef(({className:e,inset:t,children:a,...n},i)=>o.jsxs(u.SubTrigger,{ref:i,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n,children:[a,o.jsx(l.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ft.displayName=u.SubTrigger.displayName;const gt=s.forwardRef(({className:e,...t},a)=>o.jsx(u.SubContent,{ref:a,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-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",e),...t}));gt.displayName=u.SubContent.displayName;const xt=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Portal,{children:o.jsx(u.Content,{ref:a,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 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})}));xt.displayName=u.Content.displayName;const bt=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(u.Item,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...a}));bt.displayName=u.Item.displayName;const ht=s.forwardRef(({className:e,children:t,checked:a,...n},i)=>o.jsxs(u.CheckboxItem,{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 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(u.ItemIndicator,{children:o.jsx(l.Check,{className:"h-4 w-4"})})}),t]}));ht.displayName=u.CheckboxItem.displayName;const Nt=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(u.RadioItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(u.ItemIndicator,{children:o.jsx(l.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Nt.displayName=u.RadioItem.displayName;const vt=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(u.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...a}));vt.displayName=u.Label.displayName;const yt=s.forwardRef(({className:e,...t},a)=>o.jsx(u.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-border",e),...t}));yt.displayName=u.Separator.displayName;const wt=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});wt.displayName="ContextMenuShortcut";const jt=({shouldScaleBackground:e=!0,...t})=>o.jsx(y.Drawer.Root,{shouldScaleBackground:e,...t});jt.displayName="Drawer";const tr=y.Drawer.Trigger,Ct=y.Drawer.Portal,ar=y.Drawer.Close,oe=s.forwardRef(({className:e,...t},a)=>o.jsx(y.Drawer.Overlay,{ref:a,className:r("fixed inset-0 z-50 bg-black/80",e),...t}));oe.displayName=y.Drawer.Overlay.displayName;const Rt=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(Ct,{children:[o.jsx(oe,{}),o.jsxs(y.Drawer.Content,{ref:n,className:r("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",e),...a,children:[o.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Rt.displayName="DrawerContent";const St=({className:e,...t})=>o.jsx("div",{className:r("grid gap-1.5 p-4 text-center sm:text-left",e),...t});St.displayName="DrawerHeader";const Tt=({className:e,...t})=>o.jsx("div",{className:r("mt-auto flex flex-col gap-2 p-4",e),...t});Tt.displayName="DrawerFooter";const Dt=s.forwardRef(({className:e,...t},a)=>o.jsx(y.Drawer.Title,{ref:a,className:r("text-lg font-semibold leading-none tracking-tight",e),...t}));Dt.displayName=y.Drawer.Title.displayName;const Pt=s.forwardRef(({className:e,...t},a)=>o.jsx(y.Drawer.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));Pt.displayName=y.Drawer.Description.displayName;const or=p.Root,rr=p.Trigger,sr=p.Group,nr=p.Portal,ir=p.Sub,lr=p.RadioGroup,Mt=s.forwardRef(({className:e,inset:t,children:a,...n},i)=>o.jsxs(p.SubTrigger,{ref:i,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent focus:bg-accent",t&&"pl-8",e),...n,children:[a,o.jsx(l.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Mt.displayName=p.SubTrigger.displayName;const It=s.forwardRef(({className:e,...t},a)=>o.jsx(p.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}));It.displayName=p.SubContent.displayName;const kt=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(p.Portal,{children:o.jsx(p.Content,{ref:n,sideOffset:t,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-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",e),...a})}));kt.displayName=p.Content.displayName;const _t=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(p.Item,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...a}));_t.displayName=p.Item.displayName;const At=s.forwardRef(({className:e,children:t,checked:a,...n},i)=>o.jsxs(p.CheckboxItem,{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 transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(p.ItemIndicator,{children:o.jsx(l.Check,{className:"h-4 w-4"})})}),t]}));At.displayName=p.CheckboxItem.displayName;const zt=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(p.RadioItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(p.ItemIndicator,{children:o.jsx(l.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));zt.displayName=p.RadioItem.displayName;const Ot=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(p.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));Ot.displayName=p.Label.displayName;const Lt=s.forwardRef(({className:e,...t},a)=>o.jsx(p.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));Lt.displayName=p.Separator.displayName;const Gt=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest opacity-60",e),...t});Gt.displayName="DropdownMenuShortcut";const dr=G.Root,cr=G.Trigger,qt=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},i)=>o.jsx(G.Content,{ref:i,align:t,sideOffset:a,className:r("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-none 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),...n}));qt.displayName=G.Content.displayName;const Bt=s.forwardRef(({className:e,containerClassName:t,...a},n)=>o.jsx(ue.OTPInput,{ref:n,containerClassName:r("flex items-center gap-2 has-[:disabled]:opacity-50",t),className:r("disabled:cursor-not-allowed",e),...a}));Bt.displayName="InputOTP";const Ht=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{ref:a,className:r("flex items-center",e),...t}));Ht.displayName="InputOTPGroup";const Et=s.forwardRef(({index:e,className:t,...a},n)=>{const i=s.useContext(ue.OTPInputContext),{char:x,hasFakeCaret:v,isActive:j}=i.slots[e];return o.jsxs("div",{ref:n,className:r("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",j&&"z-10 ring-2 ring-ring ring-offset-background",t),...a,children:[x,v&&o.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:o.jsx("div",{className:"animate-caret-blink h-4 w-px bg-foreground duration-1000"})})]})});Et.displayName="InputOTPSlot";const Vt=s.forwardRef(({...e},t)=>o.jsx("div",{ref:t,role:"separator",...e,children:o.jsx(l.Dot,{})}));Vt.displayName="InputOTPSeparator";const Ft=s.forwardRef(({className:e,type:t,...a},n)=>o.jsx("input",{type:t,className:r("flex h-11 w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background transition-all duration-200 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground hover:border-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:n,...a}));Ft.displayName="Input";const mr=T.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ut=s.forwardRef(({className:e,...t},a)=>o.jsx(pe.Root,{ref:a,className:r(mr(),e),...t}));Ut.displayName=pe.Root.displayName;const ur=d.Menu,pr=d.Group,fr=d.Portal,gr=d.Sub,xr=d.RadioGroup,Xt=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Root,{ref:a,className:r("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",e),...t}));Xt.displayName=d.Root.displayName;const Kt=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Trigger,{ref:a,className:r("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",e),...t}));Kt.displayName=d.Trigger.displayName;const Wt=s.forwardRef(({className:e,inset:t,children:a,...n},i)=>o.jsxs(d.SubTrigger,{ref:i,className:r("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[state=open]:bg-accent data-[state=open]:text-accent-foreground focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...n,children:[a,o.jsx(l.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Wt.displayName=d.SubTrigger.displayName;const $t=s.forwardRef(({className:e,...t},a)=>o.jsx(d.SubContent,{ref:a,className:r("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 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",e),...t}));$t.displayName=d.SubContent.displayName;const Qt=s.forwardRef(({className:e,align:t="start",alignOffset:a=-4,sideOffset:n=8,...i},x)=>o.jsx(d.Portal,{children:o.jsx(d.Content,{ref:x,align:t,alignOffset:a,sideOffset:n,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),...i})}));Qt.displayName=d.Content.displayName;const Yt=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Item,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",t&&"pl-8",e),...a}));Yt.displayName=d.Item.displayName;const Jt=s.forwardRef(({className:e,children:t,checked:a,...n},i)=>o.jsxs(d.CheckboxItem,{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 data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),checked:a,...n,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(l.Check,{className:"h-4 w-4"})})}),t]}));Jt.displayName=d.CheckboxItem.displayName;const Zt=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(d.RadioItem,{ref:n,className:r("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(d.ItemIndicator,{children:o.jsx(l.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Zt.displayName=d.RadioItem.displayName;const ea=s.forwardRef(({className:e,inset:t,...a},n)=>o.jsx(d.Label,{ref:n,className:r("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...a}));ea.displayName=d.Label.displayName;const ta=s.forwardRef(({className:e,...t},a)=>o.jsx(d.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));ta.displayName=d.Separator.displayName;const aa=({className:e,...t})=>o.jsx("span",{className:r("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});aa.displayname="MenubarShortcut";const oa=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(N.Root,{ref:n,className:r("relative z-10 flex max-w-max flex-1 items-center justify-center",e),...a,children:[t,o.jsx(re,{})]}));oa.displayName=N.Root.displayName;const ra=s.forwardRef(({className:e,...t},a)=>o.jsx(N.List,{ref:a,className:r("group flex flex-1 list-none items-center justify-center space-x-1",e),...t}));ra.displayName=N.List.displayName;const br=N.Item,sa=T.cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"),na=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(N.Trigger,{ref:n,className:r(sa(),"group",e),...a,children:[t," ",o.jsx(l.ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));na.displayName=N.Trigger.displayName;const ia=s.forwardRef(({className:e,...t},a)=>o.jsx(N.Content,{ref:a,className:r("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",e),...t}));ia.displayName=N.Content.displayName;const hr=N.Link,re=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{className:r("absolute left-0 top-full flex justify-center"),children:o.jsx(N.Viewport,{className:r("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",e),ref:a,...t})}));re.displayName=N.Viewport.displayName;const la=s.forwardRef(({className:e,...t},a)=>o.jsx(N.Indicator,{ref:a,className:r("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",e),...t,children:o.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}));la.displayName=N.Indicator.displayName;const da=({className:e,...t})=>o.jsx("nav",{role:"navigation","aria-label":"pagination",className:r("mx-auto flex w-full justify-center",e),...t});da.displayName="Pagination";const ca=s.forwardRef(({className:e,...t},a)=>o.jsx("ul",{ref:a,className:r("flex flex-row items-center gap-1",e),...t}));ca.displayName="PaginationContent";const ma=s.forwardRef(({className:e,...t},a)=>o.jsx("li",{ref:a,className:r("",e),...t}));ma.displayName="PaginationItem";const E=({className:e,isActive:t,size:a="icon",...n})=>o.jsx("a",{"aria-current":t?"page":void 0,className:r(S({variant:t?"outline":"ghost",size:a}),e),...n});E.displayName="PaginationLink";const ua=({className:e,...t})=>o.jsxs(E,{"aria-label":"Go to previous page",size:"default",className:r("gap-1 pl-2.5",e),...t,children:[o.jsx(l.ChevronLeft,{className:"h-4 w-4"}),o.jsx("span",{children:"Previous"})]});ua.displayName="PaginationPrevious";const pa=({className:e,...t})=>o.jsxs(E,{"aria-label":"Go to next page",size:"default",className:r("gap-1 pr-2.5",e),...t,children:[o.jsx("span",{children:"Next"}),o.jsx(l.ChevronRight,{className:"h-4 w-4"})]});pa.displayName="PaginationNext";const fa=({className:e,...t})=>o.jsxs("span",{"aria-hidden":!0,className:r("flex h-9 w-9 items-center justify-center",e),...t,children:[o.jsx(l.MoreHorizontal,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"More pages"})]});fa.displayName="PaginationEllipsis";const Nr=_.Root,vr=_.Trigger,ga=s.forwardRef(({className:e,align:t="center",sideOffset:a=4,...n},i)=>o.jsx(_.Portal,{children:o.jsx(_.Content,{ref:i,align:t,sideOffset:a,className:r("z-50 w-72 rounded-xl border bg-popover p-4 text-popover-foreground shadow-xl outline-none duration-300 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),...n})}));ga.displayName=_.Content.displayName;const xa=s.forwardRef(({className:e,value:t,...a},n)=>o.jsx($.Root,{ref:n,className:r("relative h-4 w-full overflow-hidden rounded-full bg-secondary",e),...a,children:o.jsx($.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));xa.displayName=$.Root.displayName;const ba=s.forwardRef(({className:e,...t},a)=>o.jsx(A.Root,{className:r("grid gap-2",e),...t,ref:a}));ba.displayName=A.Root.displayName;const ha=s.forwardRef(({className:e,...t},a)=>o.jsx(A.Item,{ref:a,className:r("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),...t,children:o.jsx(A.Indicator,{className:"flex items-center justify-center",children:o.jsx(l.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ha.displayName=A.Item.displayName;const yr=({className:e,...t})=>o.jsx(J.PanelGroup,{className:r("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",e),...t}),wr=J.Panel,jr=({withHandle:e,className:t,...a})=>o.jsx(J.PanelResizeHandle,{className:r("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...a,children:e&&o.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:o.jsx(l.GripVertical,{className:"h-2.5 w-2.5"})})}),Na=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(C.Root,{ref:n,className:r("relative overflow-hidden",e),...a,children:[o.jsx(C.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),o.jsx(se,{}),o.jsx(C.Corner,{})]}));Na.displayName=C.Root.displayName;const se=s.forwardRef(({className:e,orientation:t="vertical",...a},n)=>o.jsx(C.ScrollAreaScrollbar,{ref:n,orientation:t,className:r("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...a,children:o.jsx(C.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));se.displayName=C.ScrollAreaScrollbar.displayName;const Cr=f.Root,Rr=f.Group,Sr=f.Value,va=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(f.Trigger,{ref:n,className:r("flex h-11 w-full items-center justify-between rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground hover:border-accent focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",e),...a,children:[t,o.jsx(f.Icon,{asChild:!0,children:o.jsx(l.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));va.displayName=f.Trigger.displayName;const ne=s.forwardRef(({className:e,...t},a)=>o.jsx(f.ScrollUpButton,{ref:a,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(l.ChevronUp,{className:"h-4 w-4"})}));ne.displayName=f.ScrollUpButton.displayName;const ie=s.forwardRef(({className:e,...t},a)=>o.jsx(f.ScrollDownButton,{ref:a,className:r("flex cursor-default items-center justify-center py-1",e),...t,children:o.jsx(l.ChevronDown,{className:"h-4 w-4"})}));ie.displayName=f.ScrollDownButton.displayName;const ya=s.forwardRef(({className:e,children:t,position:a="popper",...n},i)=>o.jsx(f.Portal,{children:o.jsxs(f.Content,{ref:i,className:r("relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-xl border bg-popover text-popover-foreground shadow-xl 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",a==="popper"&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:a,...n,children:[o.jsx(ne,{}),o.jsx(f.Viewport,{className:r("p-1",a==="popper"&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]"),children:t}),o.jsx(ie,{})]})}));ya.displayName=f.Content.displayName;const wa=s.forwardRef(({className:e,...t},a)=>o.jsx(f.Label,{ref:a,className:r("py-1.5 pl-8 pr-2 text-sm font-semibold",e),...t}));wa.displayName=f.Label.displayName;const ja=s.forwardRef(({className:e,children:t,...a},n)=>o.jsxs(f.Item,{ref:n,className:r("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-accent focus:text-accent-foreground",e),...a,children:[o.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:o.jsx(f.ItemIndicator,{children:o.jsx(l.Check,{className:"h-4 w-4"})})}),o.jsx(f.ItemText,{children:t})]}));ja.displayName=f.Item.displayName;const Ca=s.forwardRef(({className:e,...t},a)=>o.jsx(f.Separator,{ref:a,className:r("-mx-1 my-1 h-px bg-muted",e),...t}));Ca.displayName=f.Separator.displayName;const Ra=s.forwardRef(({className:e,orientation:t="horizontal",decorative:a=!0,...n},i)=>o.jsx(fe.Root,{ref:i,decorative:a,orientation:t,className:r("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));Ra.displayName=fe.Root.displayName;const Tr=m.Root,Dr=m.Trigger,Pr=m.Close,Sa=m.Portal,le=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Overlay,{className:r("fixed inset-0 z-50 bg-black/80 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}));le.displayName=m.Overlay.displayName;const Mr=T.cva("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"}}),Ta=s.forwardRef(({side:e="right",className:t,children:a,...n},i)=>o.jsxs(Sa,{children:[o.jsx(le,{}),o.jsxs(m.Content,{ref:i,className:r(Mr({side:e}),t),...n,children:[a,o.jsxs(m.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity data-[state=open]:bg-secondary hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none",children:[o.jsx(l.X,{className:"h-4 w-4"}),o.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ta.displayName=m.Content.displayName;const Da=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col space-y-2 text-center sm:text-left",e),...t});Da.displayName="SheetHeader";const Pa=({className:e,...t})=>o.jsx("div",{className:r("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});Pa.displayName="SheetFooter";const Ma=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Title,{ref:a,className:r("text-lg font-semibold text-foreground",e),...t}));Ma.displayName=m.Title.displayName;const Ia=s.forwardRef(({className:e,...t},a)=>o.jsx(m.Description,{ref:a,className:r("text-sm text-muted-foreground",e),...t}));Ia.displayName=m.Description.displayName;function Ir({className:e,...t}){return o.jsx("div",{className:r("animate-pulse rounded-md bg-muted",e),...t})}const ka=s.forwardRef(({className:e,...t},a)=>o.jsxs(I.Root,{ref:a,className:r("relative flex w-full touch-none select-none items-center",e),...t,children:[o.jsx(I.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:o.jsx(I.Range,{className:"absolute h-full bg-primary"})}),o.jsx(I.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));ka.displayName=I.Root.displayName;const _a=s.forwardRef(({className:e,...t},a)=>o.jsx(Q.Root,{className:r("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-all duration-300 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50",e),...t,ref:a,children:o.jsx(Q.Thumb,{className:r("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform duration-300 data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));_a.displayName=Q.Root.displayName;const Aa=s.forwardRef(({className:e,...t},a)=>o.jsx("div",{className:"relative w-full overflow-auto",children:o.jsx("table",{ref:a,className:r("w-full caption-bottom text-sm",e),...t})}));Aa.displayName="Table";const za=s.forwardRef(({className:e,...t},a)=>o.jsx("thead",{ref:a,className:r("[&_tr]:border-b",e),...t}));za.displayName="TableHeader";const Oa=s.forwardRef(({className:e,...t},a)=>o.jsx("tbody",{ref:a,className:r("[&_tr:last-child]:border-0",e),...t}));Oa.displayName="TableBody";const La=s.forwardRef(({className:e,...t},a)=>o.jsx("tfoot",{ref:a,className:r("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",e),...t}));La.displayName="TableFooter";const Ga=s.forwardRef(({className:e,...t},a)=>o.jsx("tr",{ref:a,className:r("border-b transition-colors data-[state=selected]:bg-muted hover:bg-muted/50",e),...t}));Ga.displayName="TableRow";const qa=s.forwardRef(({className:e,...t},a)=>o.jsx("th",{ref:a,className:r("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",e),...t}));qa.displayName="TableHead";const Ba=s.forwardRef(({className:e,...t},a)=>o.jsx("td",{ref:a,className:r("p-4 align-middle [&:has([role=checkbox])]:pr-0",e),...t}));Ba.displayName="TableCell";const Ha=s.forwardRef(({className:e,...t},a)=>o.jsx("caption",{ref:a,className:r("mt-4 text-sm text-muted-foreground",e),...t}));Ha.displayName="TableCaption";const kr=D.Root,Ea=s.forwardRef(({className:e,...t},a)=>o.jsx(D.List,{ref:a,className:r("inline-flex h-11 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground",e),...t}));Ea.displayName=D.List.displayName;const Va=s.forwardRef(({className:e,...t},a)=>o.jsx(D.Trigger,{ref:a,className:r("inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1.5 text-sm font-medium ring-offset-background transition-all duration-200 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-md focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",e),...t}));Va.displayName=D.Trigger.displayName;const Fa=s.forwardRef(({className:e,...t},a)=>o.jsx(D.Content,{ref:a,className:r("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",e),...t}));Fa.displayName=D.Content.displayName;const Ua=s.forwardRef(({className:e,...t},a)=>o.jsx("textarea",{className:r("flex min-h-[80px] w-full rounded-lg border border-input bg-background px-3 py-2 text-sm ring-offset-background transition-all duration-200 placeholder:text-muted-foreground hover:border-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",e),ref:a,...t}));Ua.displayName="Textarea";const de=T.cva("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"}}),Xa=s.forwardRef(({className:e,variant:t,size:a,...n},i)=>o.jsx(ge.Root,{ref:i,className:r(de({variant:t,size:a,className:e})),...n}));Xa.displayName=ge.Root.displayName;const Ka=s.createContext({size:"default",variant:"default"}),Wa=s.forwardRef(({className:e,variant:t,size:a,children:n,...i},x)=>o.jsx(q.Root,{ref:x,className:r("flex items-center justify-center gap-1",e),...i,children:o.jsx(Ka.Provider,{value:{variant:t,size:a},children:n})}));Wa.displayName=q.Root.displayName;const $a=s.forwardRef(({className:e,children:t,variant:a,size:n,...i},x)=>{const v=s.useContext(Ka);return o.jsx(q.Item,{ref:x,className:r(de({variant:v.variant||a,size:v.size||n}),e),...i,children:t})});$a.displayName=q.Item.displayName;const _r=z.Provider,Ar=z.Root,zr=z.Trigger,Qa=s.forwardRef(({className:e,sideOffset:t=4,...a},n)=>o.jsx(z.Content,{ref:n,sideOffset:t,className:r("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-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}));Qa.displayName=z.Content.displayName;const U=768;function Or(){const[e,t]=s.useState(void 0);return s.useEffect(()=>{const a=window.matchMedia(`(max-width: ${U-1}px)`),n=()=>{t(window.innerWidth<U)};return a.addEventListener("change",n),t(window.innerWidth<U),()=>a.removeEventListener("change",n)},[]),!!e}const Lr=1,Gr=1e6;let X=0;function qr(){return X=(X+1)%Number.MAX_SAFE_INTEGER,X.toString()}const K=new Map,ce=e=>{if(K.has(e))return;const t=setTimeout(()=>{K.delete(e),k({type:"REMOVE_TOAST",toastId:e})},Gr);K.set(e,t)},Br=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,Lr)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(a=>a.id===t.toast.id?{...a,...t.toast}:a)};case"DISMISS_TOAST":{const{toastId:a}=t;return a?ce(a):e.toasts.forEach(n=>{ce(n.id)}),{...e,toasts:e.toasts.map(n=>n.id===a||a===void 0?{...n,open:!1}:n)}}case"REMOVE_TOAST":return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(a=>a.id!==t.toastId)}}},O=[];let L={toasts:[]};function k(e){L=Br(L,e),O.forEach(t=>{t(L)})}function Ya({...e}){const t=qr(),a=i=>k({type:"UPDATE_TOAST",toast:{...i,id:t}}),n=()=>k({type:"DISMISS_TOAST",toastId:t});return k({type:"ADD_TOAST",toast:{...e,id:t,open:!0,onOpenChange:i=>{i||n()}}}),{id:t,dismiss:n,update:a}}function Hr(){const[e,t]=s.useState(L);return s.useEffect(()=>(O.push(t),()=>{const a=O.indexOf(t);a>-1&&O.splice(a,1)}),[e]),{...e,toast:Ya,dismiss:a=>k({type:"DISMISS_TOAST",toastId:a})}}exports.Accordion=Lo;exports.AccordionContent=he;exports.AccordionItem=xe;exports.AccordionTrigger=be;exports.Alert=Te;exports.AlertDescription=Pe;exports.AlertDialog=Go;exports.AlertDialogAction=Re;exports.AlertDialogCancel=Se;exports.AlertDialogContent=ve;exports.AlertDialogDescription=Ce;exports.AlertDialogFooter=we;exports.AlertDialogHeader=ye;exports.AlertDialogOverlay=Z;exports.AlertDialogPortal=Ne;exports.AlertDialogTitle=je;exports.AlertDialogTrigger=qo;exports.AlertTitle=De;exports.AspectRatio=Ho;exports.Avatar=Me;exports.AvatarFallback=ke;exports.AvatarImage=Ie;exports.Badge=Eo;exports.Breadcrumb=Ae;exports.BreadcrumbEllipsis=Be;exports.BreadcrumbItem=Oe;exports.BreadcrumbLink=Le;exports.BreadcrumbList=ze;exports.BreadcrumbPage=Ge;exports.BreadcrumbSeparator=qe;exports.Button=B;exports.Calendar=He;exports.Card=Ee;exports.CardContent=Xe;exports.CardDescription=Ue;exports.CardFooter=Ke;exports.CardHeader=Ve;exports.CardTitle=Fe;exports.Carousel=$e;exports.CarouselContent=Qe;exports.CarouselItem=Ye;exports.CarouselNext=Ze;exports.CarouselPrevious=Je;exports.Checkbox=et;exports.Collapsible=Vo;exports.CollapsibleContent=Uo;exports.CollapsibleTrigger=Fo;exports.Command=ae;exports.CommandDialog=Wo;exports.CommandEmpty=dt;exports.CommandGroup=ct;exports.CommandInput=it;exports.CommandItem=ut;exports.CommandList=lt;exports.CommandSeparator=mt;exports.CommandShortcut=pt;exports.ContextMenu=$o;exports.ContextMenuCheckboxItem=ht;exports.ContextMenuContent=xt;exports.ContextMenuGroup=Yo;exports.ContextMenuItem=bt;exports.ContextMenuLabel=vt;exports.ContextMenuPortal=Jo;exports.ContextMenuRadioGroup=er;exports.ContextMenuRadioItem=Nt;exports.ContextMenuSeparator=yt;exports.ContextMenuShortcut=wt;exports.ContextMenuSub=Zo;exports.ContextMenuSubContent=gt;exports.ContextMenuSubTrigger=ft;exports.ContextMenuTrigger=Qo;exports.Dialog=tt;exports.DialogClose=Ko;exports.DialogContent=te;exports.DialogDescription=nt;exports.DialogFooter=rt;exports.DialogHeader=ot;exports.DialogOverlay=ee;exports.DialogPortal=at;exports.DialogTitle=st;exports.DialogTrigger=Xo;exports.Drawer=jt;exports.DrawerClose=ar;exports.DrawerContent=Rt;exports.DrawerDescription=Pt;exports.DrawerFooter=Tt;exports.DrawerHeader=St;exports.DrawerOverlay=oe;exports.DrawerPortal=Ct;exports.DrawerTitle=Dt;exports.DrawerTrigger=tr;exports.DropdownMenu=or;exports.DropdownMenuCheckboxItem=At;exports.DropdownMenuContent=kt;exports.DropdownMenuGroup=sr;exports.DropdownMenuItem=_t;exports.DropdownMenuLabel=Ot;exports.DropdownMenuPortal=nr;exports.DropdownMenuRadioGroup=lr;exports.DropdownMenuRadioItem=zt;exports.DropdownMenuSeparator=Lt;exports.DropdownMenuShortcut=Gt;exports.DropdownMenuSub=ir;exports.DropdownMenuSubContent=It;exports.DropdownMenuSubTrigger=Mt;exports.DropdownMenuTrigger=rr;exports.HoverCard=dr;exports.HoverCardContent=qt;exports.HoverCardTrigger=cr;exports.Input=Ft;exports.InputOTP=Bt;exports.InputOTPGroup=Ht;exports.InputOTPSeparator=Vt;exports.InputOTPSlot=Et;exports.Label=Ut;exports.Menubar=Xt;exports.MenubarCheckboxItem=Jt;exports.MenubarContent=Qt;exports.MenubarGroup=pr;exports.MenubarItem=Yt;exports.MenubarLabel=ea;exports.MenubarMenu=ur;exports.MenubarPortal=fr;exports.MenubarRadioGroup=xr;exports.MenubarRadioItem=Zt;exports.MenubarSeparator=ta;exports.MenubarShortcut=aa;exports.MenubarSub=gr;exports.MenubarSubContent=$t;exports.MenubarSubTrigger=Wt;exports.MenubarTrigger=Kt;exports.NavigationMenu=oa;exports.NavigationMenuContent=ia;exports.NavigationMenuIndicator=la;exports.NavigationMenuItem=br;exports.NavigationMenuLink=hr;exports.NavigationMenuList=ra;exports.NavigationMenuTrigger=na;exports.NavigationMenuViewport=re;exports.Pagination=da;exports.PaginationContent=ca;exports.PaginationEllipsis=fa;exports.PaginationItem=ma;exports.PaginationLink=E;exports.PaginationNext=pa;exports.PaginationPrevious=ua;exports.Popover=Nr;exports.PopoverContent=ga;exports.PopoverTrigger=vr;exports.Progress=xa;exports.RadioGroup=ba;exports.RadioGroupItem=ha;exports.ResizableHandle=jr;exports.ResizablePanel=wr;exports.ResizablePanelGroup=yr;exports.ScrollArea=Na;exports.ScrollBar=se;exports.Select=Cr;exports.SelectContent=ya;exports.SelectGroup=Rr;exports.SelectItem=ja;exports.SelectLabel=wa;exports.SelectScrollDownButton=ie;exports.SelectScrollUpButton=ne;exports.SelectSeparator=Ca;exports.SelectTrigger=va;exports.SelectValue=Sr;exports.Separator=Ra;exports.Sheet=Tr;exports.SheetClose=Pr;exports.SheetContent=Ta;exports.SheetDescription=Ia;exports.SheetFooter=Pa;exports.SheetHeader=Da;exports.SheetOverlay=le;exports.SheetPortal=Sa;exports.SheetTitle=Ma;exports.SheetTrigger=Dr;exports.Skeleton=Ir;exports.Slider=ka;exports.Switch=_a;exports.Table=Aa;exports.TableBody=Oa;exports.TableCaption=Ha;exports.TableCell=Ba;exports.TableFooter=La;exports.TableHead=qa;exports.TableHeader=za;exports.TableRow=Ga;exports.Tabs=kr;exports.TabsContent=Fa;exports.TabsList=Ea;exports.TabsTrigger=Va;exports.Textarea=Ua;exports.Toggle=Xa;exports.ToggleGroup=Wa;exports.ToggleGroupItem=$a;exports.Tooltip=Ar;exports.TooltipContent=Qa;exports.TooltipProvider=_r;exports.TooltipTrigger=zr;exports.badgeVariants=_e;exports.buttonVariants=S;exports.cn=r;exports.navigationMenuTriggerStyle=sa;exports.toast=Ya;exports.toggleVariants=de;exports.useIsMobile=Or;exports.useToast=Hr;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|