@reeverdev/ui 0.2.44 → 0.2.45
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import*as Y from'react';import {createContext,useContext}from'react';import {cva}from'class-variance-authority';import {AlertCircle,AlertTriangle,CheckCircle2,Info,Loader2,Minus,Check,X as X$1,ChevronDown,Search,ChevronRight,Circle,ChevronsUpDown,EyeOff,Eye,Plus,Calendar,Heart,Star,PanelLeft,PanelLeftOpen,PanelLeftClose,TrendingUp,TrendingDown,Upload,Clock,Menu,ExternalLink,ArrowUp,File,Folder,FolderOpen,Copy,RefreshCw,CheckCircle,XCircle,HelpCircle,ZoomOut,ZoomIn,RotateCw,Download,Minimize2,Maximize2,ChevronLeft,GripVertical,Undo,Redo,Heading1,Heading2,Heading3,Bold,Italic,Underline,Strikethrough,List,ListOrdered,AlignLeft,AlignCenter,AlignRight,Quote,Code,Link,Unlink,Moon,Sun,Monitor,MoreHorizontal,MoreVertical,ArrowRight,Hash,User,Settings,Bell,CheckCheck,Trash2,Image,FileVideo,FileAudio,FileText,FileArchive,ChevronUp,ArrowDown}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Slot}from'@radix-ui/react-slot';import*as yo from'@radix-ui/react-checkbox';import*as oe from'@radix-ui/react-dialog';import*as Zi from'@radix-ui/react-label';import*as No from'@radix-ui/react-separator';import*as Po from'@radix-ui/react-switch';import*as Qt from'@radix-ui/react-avatar';import*as xt from'@radix-ui/react-tooltip';import*as Td from'react-dom';import {createPortal}from'react-dom';import*as it from'@radix-ui/react-scroll-area';import*as q from'@radix-ui/react-dropdown-menu';import*as yt from'@radix-ui/react-popover';import*as Rt from'@radix-ui/react-tabs';import*as Zf from'@radix-ui/react-visually-hidden';import {VisuallyHidden}from'@radix-ui/react-visually-hidden';import {Toaster}from'sonner';export{toast}from'sonner';import*as Z from'@radix-ui/react-context-menu';import*as Vr from'@radix-ui/react-radio-group';import*as ls from'@radix-ui/react-toggle';import*as za from'@radix-ui/react-toggle-group';import*as ar from'@radix-ui/react-slider';import*as It from'@radix-ui/react-accordion';import*as ca from'@radix-ui/react-collapsible';import*as ko from'@radix-ui/react-progress';import*as ma from'@radix-ui/react-hover-card';import*as Ec from'@radix-ui/react-aspect-ratio';import*as xe from'@radix-ui/react-navigation-menu';import {Drawer}from'vaul';import {DayPicker,useDayPicker}from'react-day-picker';import {format,getMonth,getYear,setMonth,setYear}from'date-fns';import {Command}from'cmdk';import {Panel,Group,Separator}from'react-resizable-panels';import {HexColorPicker,HexColorInput}from'react-colorful';import*as we from'@radix-ui/react-select';import*as X from'@radix-ui/react-menubar';import*as ke from'@radix-ui/react-alert-dialog';import {ResponsiveContainer,LineChart,CartesianGrid,XAxis,YAxis,Tooltip,Legend,Line,BarChart,Bar,PieChart,Pie,Cell,AreaChart,Area}from'recharts';import {useSensors,useSensor,PointerSensor,KeyboardSensor,DndContext,closestCorners,DragOverlay}from'@dnd-kit/core';import {sortableKeyboardCoordinates,SortableContext,verticalListSortingStrategy,useSortable}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';import ZP from'embla-carousel-react';import {useEditor,EditorContent}from'@tiptap/react';import iC from'@tiptap/starter-kit';import sC from'@tiptap/extension-link';import lC from'@tiptap/extension-underline';import dC from'@tiptap/extension-text-align';import cC from'@tiptap/extension-placeholder';import LC,{centerCrop,makeAspectCrop}from'react-image-crop';import'react-image-crop/dist/ReactCrop.css';import BC from'react-qr-code';import {useTheme,ThemeProvider}from'next-themes';export{useTheme}from'next-themes';import {motion,AnimatePresence,useInView,useSpring,useTransform,useScroll}from'framer-motion';import vo from'canvas-confetti';function o(...e){return twMerge(clsx(e))}var Bx=cva("relative w-full p-4",{variants:{variant:{solid:"border",bordered:"border bg-transparent",flat:""},type:{default:"",success:"",warning:"",error:""},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",type:"default",className:"!border-primary bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"bordered",type:"default",className:"!border-primary text-primary [&>svg]:text-primary"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"!border-green-600 bg-green-600 text-white dark:!border-green-500 dark:bg-green-500 [&>svg]:text-white"},{variant:"bordered",type:"success",className:"!border-green-600 text-green-600 dark:!border-green-500 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"!border-amber-600 bg-amber-600 text-white dark:!border-amber-500 dark:bg-amber-500 [&>svg]:text-white"},{variant:"bordered",type:"warning",className:"!border-amber-600 text-amber-600 dark:!border-amber-500 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"!border-red-600 bg-red-600 text-white dark:!border-red-500 dark:bg-red-500 [&>svg]:text-white"},{variant:"bordered",type:"error",className:"!border-red-600 text-red-600 dark:!border-red-500 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",radius:"md"}}),Ox={default:Info,success:CheckCircle2,warning:AlertTriangle,error:AlertCircle},Gx=Y.forwardRef(({className:e,variant:t="solid",type:r="default",radius:a="md",icon:n,hideIcon:i=false,endContent:s,children:l,...d},m)=>{let u=Ox[r],c=!i,g=n!==void 0?n:u?jsx(u,{className:"h-4 w-4"}):null;return jsxs("div",{ref:m,role:"alert",className:o(Bx({variant:t,type:r,radius:a}),s&&"flex items-center justify-between",e),...d,children:[jsxs("div",{className:"flex items-start gap-3",children:[c&&g&&jsx("span",{className:"mt-0.5 shrink-0",children:g}),jsx("div",{children:l})]}),s&&jsx("div",{className:"shrink-0 ml-4",children:s})]})});Gx.displayName="Alert";var Wx=Y.forwardRef(({className:e,...t},r)=>jsx("h5",{ref:r,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));Wx.displayName="AlertTitle";var $x=Y.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:o("text-sm [&_p]:leading-relaxed",e),...t}));$x.displayName="AlertDescription";var _x=cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"",md:"",lg:""},placement:{"top-right":"-top-1 -right-1","top-left":"-top-1 -left-1","bottom-right":"-bottom-1 -right-1","bottom-left":"-bottom-1 -left-1"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white dark:bg-green-500"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white dark:bg-amber-500"},{variant:"solid",color:"danger",className:"bg-red-600 text-white dark:bg-red-500"},{variant:"solid",color:"info",className:"bg-blue-600 text-white dark:bg-blue-500"},{variant:"bordered",color:"default",className:"bg-white border-zinc-800 text-zinc-800 dark:bg-zinc-900 dark:border-zinc-200 dark:text-zinc-200"},{variant:"bordered",color:"success",className:"bg-white border-green-600 text-green-600 dark:bg-zinc-900 dark:border-green-500 dark:text-green-500"},{variant:"bordered",color:"warning",className:"bg-white border-amber-600 text-amber-600 dark:bg-zinc-900 dark:border-amber-500 dark:text-amber-500"},{variant:"bordered",color:"danger",className:"bg-white border-red-600 text-red-600 dark:bg-zinc-900 dark:border-red-500 dark:text-red-500"},{variant:"bordered",color:"info",className:"bg-white border-blue-600 text-blue-600 dark:bg-zinc-900 dark:border-blue-500 dark:text-blue-500"},{size:"sm",className:"min-w-4 h-4 text-[10px] px-1"},{size:"md",className:"min-w-5 h-5 text-xs px-1"},{size:"lg",className:"min-w-6 h-6 text-sm px-1.5"}],defaultVariants:{variant:"solid",color:"default",size:"md",placement:"top-right"}}),Kx={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},Yx=Y.forwardRef(({className:e,children:t,content:r,variant:a="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsx("span",{className:o(_x({variant:a,color:n,size:l?void 0:i,placement:s}),l&&Kx[i||"md"],l&&"min-w-0 p-0"),children:!l&&r})]}));Yx.displayName="Badge";var jx=cva("inline-flex items-center gap-1 font-medium rounded-full",{variants:{color:{default:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white",success:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500",warning:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500",danger:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500",info:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},size:{sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{color:"default",size:"md"}}),ji=Y.forwardRef(({className:e,color:t,size:r,...a},n)=>jsx("span",{ref:n,className:o(jx({color:t,size:r}),e),...a}));ji.displayName="TextBadge";var Jt=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-200 ease-out cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{solid:"",bordered:"border-2 border-current bg-transparent hover:opacity-70",light:"bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800",flat:"bg-zinc-100 dark:bg-zinc-800 hover:opacity-70",ghost:"border-2 bg-transparent"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-9 px-3 text-xs",md:"h-10 px-4",lg:"h-11 px-5 text-base",icon:"h-10 w-10"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white hover:bg-zinc-700 dark:bg-zinc-200 dark:text-zinc-900 dark:hover:bg-zinc-300"},{variant:"bordered",color:"default",className:"text-zinc-900 dark:text-white"},{variant:"light",color:"default",className:"text-zinc-900 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800"},{variant:"flat",color:"default",className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white"},{variant:"ghost",color:"default",className:"text-zinc-900 border-zinc-900 hover:bg-zinc-900 hover:text-white dark:text-white dark:border-white dark:hover:bg-white dark:hover:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-700 dark:text-white dark:hover:bg-green-600"},{variant:"bordered",color:"success",className:"text-green-600 dark:text-green-500"},{variant:"light",color:"success",className:"text-green-600 hover:bg-green-600/10 dark:text-green-500 dark:hover:bg-green-500/10"},{variant:"flat",color:"success",className:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500"},{variant:"ghost",color:"success",className:"text-green-600 border-green-600 hover:bg-green-600 hover:text-white dark:text-green-500 dark:border-green-500 dark:hover:bg-green-500 dark:hover:text-white"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-700 dark:text-white dark:hover:bg-amber-600"},{variant:"bordered",color:"warning",className:"text-amber-600 dark:text-amber-500"},{variant:"light",color:"warning",className:"text-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:hover:bg-amber-500/10"},{variant:"flat",color:"warning",className:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500"},{variant:"ghost",color:"warning",className:"text-amber-600 border-amber-600 hover:bg-amber-600 hover:text-white dark:text-amber-500 dark:border-amber-500 dark:hover:bg-amber-500 dark:hover:text-white"},{variant:"solid",color:"danger",className:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:text-white dark:hover:bg-red-600"},{variant:"bordered",color:"danger",className:"text-red-600 dark:text-red-500"},{variant:"light",color:"danger",className:"text-red-600 hover:bg-red-600/10 dark:text-red-500 dark:hover:bg-red-500/10"},{variant:"flat",color:"danger",className:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500"},{variant:"ghost",color:"danger",className:"text-red-600 border-red-600 hover:bg-red-600 hover:text-white dark:text-red-500 dark:border-red-500 dark:hover:bg-red-500 dark:hover:text-white"},{variant:"solid",color:"info",className:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-700 dark:text-white dark:hover:bg-blue-600"},{variant:"bordered",color:"info",className:"text-blue-600 dark:text-blue-500"},{variant:"light",color:"info",className:"text-blue-600 hover:bg-blue-600/10 dark:text-blue-500 dark:hover:bg-blue-500/10"},{variant:"flat",color:"info",className:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},{variant:"ghost",color:"info",className:"text-blue-600 border-blue-600 hover:bg-blue-600 hover:text-white dark:text-blue-500 dark:border-blue-500 dark:hover:bg-blue-500 dark:hover:text-white"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),_=Y.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:u,disabled:c,style:g,...p},x)=>{let y=c||l,h=t==="bordered"?{borderColor:"currentColor",...g}:g,R=l?jsxs(Fragment,{children:[jsx(Loader2,{className:"animate-spin"}),u]}):jsxs(Fragment,{children:[d,u,m]});return i?jsx(Slot,{className:o(Jt({variant:t,color:r,size:a,radius:n,className:e})),ref:x,style:h,...p,children:R}):s?jsx("a",{href:s,className:o(Jt({variant:t,color:r,size:a,radius:n,className:e}),y&&"pointer-events-none opacity-50"),style:h,...p,children:R}):jsx("button",{className:o(Jt({variant:t,color:r,size:a,radius:n,className:e})),ref:x,disabled:y,style:h,...p,children:R})});_.displayName="Button";var nd=cva("border bg-card text-card-foreground shadow-sm",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"lg"}}),id=Y.forwardRef(({className:e,radius:t,...r},a)=>jsx("div",{ref:a,className:o(nd({radius:t,className:e})),...r}));id.displayName="Card";var sd=Y.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));sd.displayName="CardHeader";var ld=Y.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:o("p-6 pt-0",e),...t}));ld.displayName="CardContent";var dd=Y.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:o("flex items-center p-6 pt-0",e),...t}));dd.displayName="CardFooter";var Ro=Y.forwardRef(({className:e,checked:t,onFocus:r,onBlur:a,style:n,...i},s)=>{let[l,d]=Y.useState(false);return jsx(yo.Root,{ref:s,checked:t,className:o("peer h-4 w-4 shrink-0 rounded-sm border border-primary focus-visible:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-background data-[state=indeterminate]:text-foreground transition-colors",e),style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),r?.(m);},onBlur:m=>{d(false),a?.(m);},...i,children:jsx(yo.Indicator,{className:o("flex items-center justify-center text-current"),children:t==="indeterminate"?jsx(Minus,{className:"h-4 w-4"}):jsx(Check,{className:"h-4 w-4"})})})});Ro.displayName=yo.Root.displayName;var Xi=oe.Root,ry=oe.Trigger,cd=oe.Portal,ay=oe.Close,qi=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Overlay,{ref:r,className:o("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}));qi.displayName=oe.Overlay.displayName;var pn=Y.forwardRef(({className:e,children:t,...r},a)=>jsxs(cd,{children:[jsx(qi,{}),jsxs(oe.Content,{ref:a,className:o("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),...r,children:[t,jsxs(oe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsx(X$1,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]})]}));pn.displayName=oe.Content.displayName;var md=({className:e,...t})=>jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});md.displayName="DialogHeader";var ud=({className:e,...t})=>jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ud.displayName="DialogFooter";var pd=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Title,{ref:r,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));pd.displayName=oe.Title.displayName;var fd=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));fd.displayName=oe.Description.displayName;var ny=cva("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),gn=Y.forwardRef(({className:e,type:t,radius:r,onFocus:a,onBlur:n,style:i,...s},l)=>{let[d,m]=Y.useState(false);return jsx("input",{type:t,className:o(ny({radius:r,className:e})),ref:l,style:{...i,borderColor:d?"var(--color-foreground)":void 0},onFocus:u=>{m(true),a?.(u);},onBlur:u=>{m(false),n?.(u);},...s})});gn.displayName="Input";var ly=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ea=Y.forwardRef(({className:e,...t},r)=>jsx(Zi.Root,{ref:r,className:o(ly(),e),...t}));ea.displayName=Zi.Root.displayName;var kr=Y.forwardRef(({className:e,orientation:t="horizontal",decorative:r=true,text:a,...n},i)=>a&&t==="horizontal"?jsxs("div",{className:o("flex items-center gap-4",e),children:[jsx(No.Root,{decorative:r,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsx("span",{className:"text-sm text-muted-foreground",children:a}),jsx(No.Root,{decorative:r,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsx(No.Root,{ref:i,decorative:r,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));kr.displayName=No.Root.displayName;var xd=Y.forwardRef(({className:e,...t},r)=>jsx(Po.Root,{className:o("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors 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 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:jsx(Po.Thumb,{className:o("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")})}));xd.displayName=Po.Root.displayName;var uy=cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),yd=Y.forwardRef(({className:e,radius:t,onFocus:r,onBlur:a,style:n,...i},s)=>{let[l,d]=Y.useState(false);return jsx("textarea",{className:o(uy({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),r?.(m);},onBlur:m=>{d(false),a?.(m);},...i})});yd.displayName="Textarea";var wd=cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),hn=Y.forwardRef(({className:e,variant:t,...r},a)=>jsx("div",{ref:a,className:o(wd({variant:t,className:e})),...r}));hn.displayName="Skeleton";var vy=cva("relative flex shrink-0 overflow-hidden cursor-pointer",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",radius:"full"}}),ta=Y.forwardRef(({className:e,size:t,radius:r,...a},n)=>jsx(Qt.Root,{ref:n,className:o(vy({size:t,radius:r,className:e})),...a}));ta.displayName=Qt.Root.displayName;var Ha=Y.forwardRef(({className:e,...t},r)=>jsx(Qt.Image,{ref:r,className:o("aspect-square h-full w-full",e),...t}));Ha.displayName=Qt.Image.displayName;var ra=Y.forwardRef(({className:e,...t},r)=>jsx(Qt.Fallback,{ref:r,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));ra.displayName=Qt.Fallback.displayName;var aa=xt.Provider,oa=xt.Root,na=xt.Trigger,Dr=Y.forwardRef(({className:e,sideOffset:t=4,...r},a)=>jsx(xt.Portal,{children:jsx(xt.Content,{ref:a,sideOffset:t,className:o("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100 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),...r})}));Dr.displayName=xt.Content.displayName;var Me=Y.forwardRef(({className:e,children:t,...r},a)=>jsxs(it.Root,{ref:a,className:o("relative overflow-hidden group/scroll",e),...r,children:[jsx(it.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsx(es,{}),jsx(it.Corner,{})]}));Me.displayName=it.Root.displayName;var es=Y.forwardRef(({className:e,orientation:t="vertical",...r},a)=>jsx(it.ScrollAreaScrollbar,{ref:a,orientation:t,className:o("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2 flex-col border-t border-t-transparent p-[1px]",e),...r,children:jsx(it.ScrollAreaThumb,{className:o("relative flex-1 rounded-full transition-colors","bg-transparent group-hover/scroll:bg-border hover:!bg-muted-foreground")})}));es.displayName=it.ScrollAreaScrollbar.displayName;var Sd=cva("flex min-h-10 w-full cursor-pointer items-center justify-between border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),kd=Y.forwardRef(({options:e,multiple:t=false,value:r,defaultValue:a,onValueChange:n,placeholder:i="Select...",searchable:s=false,searchPlaceholder:l="Search...",emptyText:d="No results found.",disabled:m=false,clearable:u=false,maxDisplayItems:c=3,radius:g,className:p,...x},y)=>{let[f,h]=Y.useState(false),[R,b]=Y.useState(""),[v,P]=Y.useState(a||""),[w,S]=Y.useState(a||[]),[C,M]=Y.useState({top:0,left:0,width:0}),N=Y.useRef(null),T=Y.useRef(null),k=Y.useRef(null),L=Y.useRef(null),I=r!==void 0?r:v,V=r!==void 0?r:w,D=r!==void 0,E=A=>{u&&I===A?(D||P(""),n?.("")):(D||P(A),n?.(A)),h(false),b("");},B=A=>{let z=V.includes(A)?V.filter(ee=>ee!==A):[...V,A];D||S(z),n?.(z);},W=(A,z)=>{z.stopPropagation();let ee=V.filter(J=>J!==A);D||S(ee),n?.(ee);},H=A=>{A.stopPropagation(),t?(D||S([]),n?.([])):(D||P(""),n?.(""));},U=e.find(A=>A.value===I),$=e.filter(A=>V.includes(A.value)),Pe=$.slice(0,c),ie=$.length-c,F=s?e.filter(A=>A.label.toLowerCase().includes(R.toLowerCase())):e;Y.useEffect(()=>{if(f&&T.current){let A=T.current.getBoundingClientRect();M({top:A.bottom+4,left:A.left,width:A.width}),s&&setTimeout(()=>L.current?.focus(),0);}f||b("");},[f,s]),Y.useEffect(()=>{let A=z=>{let ee=z.target,J=N.current&&!N.current.contains(ee),Xe=k.current&&!k.current.contains(ee);J&&Xe&&(h(false),b(""));};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[]),Y.useEffect(()=>{if(!f)return;let A=z=>{k.current?.contains(z.target)||(h(false),b(""));};return window.addEventListener("scroll",A,true),()=>window.removeEventListener("scroll",A,true)},[f]);let O=t?V.length>0:!!I;return jsxs("div",{ref:N,className:o("relative",p),...x,children:[jsxs("div",{ref:A=>{T.current=A,typeof y=="function"?y(A):y&&(y.current=A);},role:"combobox","aria-expanded":f,"aria-haspopup":"listbox","aria-disabled":m,onClick:()=>!m&&h(!f),className:o(Sd({radius:g}),t&&"flex-wrap gap-1",m&&"cursor-not-allowed opacity-50"),children:[!t&&jsx("span",{className:o(!U&&"text-muted-foreground"),children:U?U.label:i}),t&&jsx(Fragment,{children:$.length===0?jsx("span",{className:"text-muted-foreground",children:i}):jsxs(Fragment,{children:[Pe.map(A=>jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground",children:[A.label,jsx("span",{role:"button",tabIndex:0,onClick:z=>W(A.value,z),onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&W(A.value,z);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsx(X$1,{className:"h-3 w-3"})})]},A.value)),ie>0&&jsxs("span",{className:"text-xs text-muted-foreground",children:["+",ie," more"]})]})}),jsxs("div",{className:"ml-auto flex items-center gap-1",children:[u&&O&&jsx("span",{role:"button",tabIndex:0,onClick:H,onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&H(A);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsx(X$1,{className:"h-4 w-4 opacity-50"})}),jsx(ChevronDown,{className:o("h-4 w-4 opacity-50 transition-transform",f&&"rotate-180")})]})]}),f&&!m&&typeof document<"u"&&Td.createPortal(jsxs("div",{ref:k,className:"fixed z-[9999] overflow-hidden rounded-md border border-zinc-300 dark:border-zinc-700 bg-background shadow-md",style:{top:C.top,left:C.left,minWidth:C.width},children:[s&&jsxs("div",{className:"flex items-center border-b border-zinc-300 dark:border-zinc-700 px-3",children:[jsx(Search,{className:"h-4 w-4 opacity-50 mr-2"}),jsx("input",{ref:L,type:"text",value:R,onChange:A=>b(A.target.value),placeholder:l,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground"})]}),jsx(Me,{style:{maxHeight:240},children:jsx("div",{className:"p-1",children:F.length===0?jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:d}):F.map(A=>{let z=t?V.includes(A.value):I===A.value;return jsxs("div",{role:"option","aria-selected":z,onClick:()=>{A.disabled||(t?B(A.value):E(A.value));},className:o("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800",A.disabled&&"pointer-events-none opacity-50"),children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:z&&jsx(Check,{className:"h-4 w-4"})}),A.label]},A.value)})})})]}),document.body)]})});kd.displayName="Select";var ia=q.Root,sa=q.Trigger,My=q.Group,Ty=q.Portal,Sy=q.Sub,ky=q.RadioGroup,Dd=Y.forwardRef(({className:e,inset:t,children:r,...a},n)=>jsxs(q.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a,children:[r,jsx(ChevronRight,{className:"ml-auto"})]}));Dd.displayName=q.SubTrigger.displayName;var Ld=Y.forwardRef(({className:e,...t},r)=>jsx(q.SubContent,{ref:r,className:o("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}));Ld.displayName=q.SubContent.displayName;var Lr=Y.forwardRef(({className:e,sideOffset:t=4,...r},a)=>jsx(q.Portal,{children:jsx(q.Content,{ref:a,sideOffset:t,className:o("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),...r})}));Lr.displayName=q.Content.displayName;var Lt=Y.forwardRef(({className:e,inset:t,...r},a)=>jsx(q.Item,{ref:a,className:o("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...r}));Lt.displayName=q.Item.displayName;var Vd=Y.forwardRef(({className:e,children:t,checked:r,...a},n)=>jsxs(q.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...a,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(q.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),t]}));Vd.displayName=q.CheckboxItem.displayName;var Id=Y.forwardRef(({className:e,children:t,...r},a)=>jsxs(q.RadioItem,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(q.ItemIndicator,{children:jsx(Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Id.displayName=q.RadioItem.displayName;var Ed=Y.forwardRef(({className:e,inset:t,...r},a)=>jsx(q.Label,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));Ed.displayName=q.Label.displayName;var yn=Y.forwardRef(({className:e,...t},r)=>jsx(q.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));yn.displayName=q.Separator.displayName;var Hd=({className:e,...t})=>jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});Hd.displayName="DropdownMenuShortcut";var Ee=yt.Root,_e=yt.Trigger,rs=yt.Anchor,Te=Y.forwardRef(({className:e,align:t="center",sideOffset:r=4,...a},n)=>jsx(yt.Portal,{children:jsx(yt.Content,{ref:n,align:t,sideOffset:r,className:o("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 origin-[--radix-popover-content-transform-origin]",e),...a})}));Te.displayName=yt.Content.displayName;var Fd=Y.createContext({variant:"solid",radius:"md"}),Bd=()=>Y.useContext(Fd),Od=Y.forwardRef(({variant:e="solid",radius:t="md",...r},a)=>jsx(Fd.Provider,{value:{variant:e,radius:t},children:jsx(Rt.Root,{ref:a,...r})}));Od.displayName="Tabs";var as={none:{list:"rounded-none",trigger:"rounded-none",indicator:"rounded-none"},sm:{list:"rounded-md",trigger:"rounded-sm",indicator:"rounded-sm"},md:{list:"rounded-lg",trigger:"rounded-md",indicator:"rounded-md"},lg:{list:"rounded-xl",trigger:"rounded-lg",indicator:"rounded-lg"},full:{list:"rounded-full",trigger:"rounded-full",indicator:"rounded-full"}},Gd=Y.forwardRef(({className:e,...t},r)=>{let{variant:a,radius:n}=Bd(),i=Y.useRef(null),[s,l]=Y.useState({opacity:0});Y.useEffect(()=>{let p=i.current;if(!p)return;let x=()=>{let h=p.querySelector('[data-state="active"]');if(h){let R=p.getBoundingClientRect(),b=h.getBoundingClientRect(),v=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";a==="underline"?l(v?{width:2,height:b.height,transform:`translateY(${b.top-R.top}px)`,opacity:1}:{width:b.width,height:2,transform:`translateX(${b.left-R.left}px)`,opacity:1}):a==="solid"&&l(v?{width:b.width,height:b.height,transform:`translateY(${b.top-R.top}px)`,opacity:1}:{width:b.width,height:b.height,transform:`translateX(${b.left-R.left}px)`,opacity:1});}};x();let y=new MutationObserver(x);y.observe(p,{attributes:true,subtree:true,attributeFilter:["data-state"]});let f=new ResizeObserver(x);return f.observe(p),()=>{y.disconnect(),f.disconnect();}},[a]);let d={solid:"bg-muted p-1",underline:"border-b border-border bg-transparent p-0 !rounded-none",outline:"bg-transparent p-0 gap-1 !rounded-none"},m=()=>{let p=i.current;return p?p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column":false},[u,c]=Y.useState(false);Y.useEffect(()=>{c(m());},[]);let g=()=>a==="solid"?u?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":a==="underline"?u?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxs(Rt.List,{ref:p=>{if(i.current=p,typeof r=="function"?r(p):r&&(r.current=p),p){let x=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";c(x);}},className:o("relative inline-flex h-9 items-center justify-center text-muted-foreground",as[n].list,d[a],e),...t,children:[(a==="solid"||a==="underline")&&jsx("span",{className:o("absolute transition-all duration-200 ease-out",as[n].indicator,g()),style:s,"aria-hidden":"true"}),t.children]})});Gd.displayName=Rt.List.displayName;var Wd=Y.forwardRef(({className:e,...t},r)=>{let{variant:a,radius:n}=Bd(),i={solid:"data-[state=active]:text-foreground",underline:"!rounded-none border-b-2 border-transparent pb-2 data-[state=active]:text-foreground",outline:"border border-transparent data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"};return jsx(Rt.Trigger,{ref:r,className:o("relative z-10 inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",as[n].trigger,i[a],e),...t})});Wd.displayName=Rt.Trigger.displayName;var $d=Y.forwardRef(({className:e,...t},r)=>jsx(Rt.Content,{ref:r,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 animate-in animate-out",e),...t}));$d.displayName=Rt.Content.displayName;var So=oe.Root,Ey=oe.Trigger,Hy=oe.Close,_d=oe.Portal,ns=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Overlay,{className:o("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:r}));ns.displayName=oe.Overlay.displayName;var Kd=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{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"}}),Aa=Y.forwardRef(({side:e="right",className:t,children:r,hideCloseButton:a,...n},i)=>jsxs(_d,{children:[jsx(ns,{}),jsxs(oe.Content,{ref:i,className:o(Kd({side:e}),t),"aria-describedby":void 0,...n,children:[jsx(VisuallyHidden,{asChild:true,children:jsx(oe.Title,{children:"Sheet"})}),!a&&jsxs(oe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsx(X$1,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));Aa.displayName=oe.Content.displayName;var Yd=({className:e,...t})=>jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});Yd.displayName="SheetHeader";var jd=({className:e,...t})=>jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});jd.displayName="SheetFooter";var Ud=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Title,{ref:r,className:o("text-lg font-semibold text-foreground",e),...t}));Ud.displayName=oe.Title.displayName;var Xd=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));Xd.displayName=oe.Description.displayName;var Fy=({theme:e="system",...t})=>jsx(Toaster,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});var $y=Z.Root,_y=Z.Trigger,Ky=Z.Group,Yy=Z.Portal,jy=Z.Sub,Uy=Z.RadioGroup,qd=Y.forwardRef(({className:e,inset:t,children:r,...a},n)=>jsxs(Z.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...a,children:[r,jsx(ChevronRight,{className:"ml-auto h-4 w-4"})]}));qd.displayName=Z.SubTrigger.displayName;var Zd=Y.forwardRef(({className:e,...t},r)=>jsx(Z.SubContent,{ref:r,className:o("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 origin-[--radix-context-menu-content-transform-origin]",e),...t}));Zd.displayName=Z.SubContent.displayName;var Jd=Y.forwardRef(({className:e,...t},r)=>jsx(Z.Portal,{children:jsx(Z.Content,{ref:r,className:o("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));Jd.displayName=Z.Content.displayName;var Qd=Y.forwardRef(({className:e,inset:t,...r},a)=>jsx(Z.Item,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));Qd.displayName=Z.Item.displayName;var ec=Y.forwardRef(({className:e,children:t,checked:r,...a},n)=>jsxs(Z.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...a,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(Z.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),t]}));ec.displayName=Z.CheckboxItem.displayName;var tc=Y.forwardRef(({className:e,children:t,...r},a)=>jsxs(Z.RadioItem,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(Z.ItemIndicator,{children:jsx(Circle,{className:"h-4 w-4 fill-current"})})}),t]}));tc.displayName=Z.RadioItem.displayName;var rc=Y.forwardRef(({className:e,inset:t,...r},a)=>jsx(Z.Label,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));rc.displayName=Z.Label.displayName;var ac=Y.forwardRef(({className:e,...t},r)=>jsx(Z.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-border",e),...t}));ac.displayName=Z.Separator.displayName;var oc=({className:e,...t})=>jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});oc.displayName="ContextMenuShortcut";var nc=Y.forwardRef(({className:e,...t},r)=>jsx(Vr.Root,{className:o("grid gap-2",e),...t,ref:r}));nc.displayName=Vr.Root.displayName;var ic=Y.forwardRef(({className:e,...t},r)=>jsx(Vr.Item,{ref:r,className:o("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:jsx(Vr.Indicator,{className:"flex items-center justify-center",children:jsx(Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ic.displayName=Vr.Item.displayName;var wn=cva("inline-flex items-center justify-center 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 gap-2",{variants:{variant:{solid:"bg-transparent hover:bg-muted data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",outline:"border border-input bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",ghost:"bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",soft:"bg-transparent hover:bg-primary/10 data-[state=on]:bg-primary/15 data-[state=on]:text-primary",surface:"bg-muted/50 hover:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground"},size:{sm:"h-9 px-2.5 min-w-9",md:"h-10 px-3 min-w-10",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"solid",size:"md"}}),lc=Y.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsx(ls.Root,{ref:n,className:o(wn({variant:t,size:r,className:e})),...a}));lc.displayName=ls.Root.displayName;var dc=Y.createContext({size:"md",variant:"solid"}),cc=Y.forwardRef(({className:e,variant:t,size:r,children:a,...n},i)=>jsx(za.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsx(dc.Provider,{value:{variant:t,size:r},children:a})}));cc.displayName=za.Root.displayName;var mc=Y.forwardRef(({className:e,children:t,variant:r,size:a,...n},i)=>{let s=Y.useContext(dc);return jsx(za.Item,{ref:i,className:o(wn({variant:s.variant||r,size:s.size||a}),e),...n,children:t})});mc.displayName=za.Item.displayName;var Nn=Y.forwardRef(({className:e,...t},r)=>jsxs(ar.Root,{ref:r,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsx(ar.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsx(ar.Range,{className:"absolute h-full bg-primary"})}),jsx(ar.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"})]}));Nn.displayName=ar.Root.displayName;var e0=`
|
|
1
|
+
import*as Y from'react';import {createContext,useContext}from'react';import {cva}from'class-variance-authority';import {AlertCircle,AlertTriangle,CheckCircle2,Info,Loader2,Minus,Check,X as X$1,ChevronDown,Search,ChevronRight,Circle,ChevronsUpDown,EyeOff,Eye,Plus,Calendar,Heart,Star,PanelLeft,PanelLeftOpen,PanelLeftClose,TrendingUp,TrendingDown,Upload,Clock,Menu,ExternalLink,ArrowUp,File,Folder,FolderOpen,Copy,RefreshCw,CheckCircle,XCircle,HelpCircle,ZoomOut,ZoomIn,RotateCw,Download,Minimize2,Maximize2,ChevronLeft,GripVertical,Undo,Redo,Heading1,Heading2,Heading3,Bold,Italic,Underline,Strikethrough,List,ListOrdered,AlignLeft,AlignCenter,AlignRight,Quote,Code,Link,Unlink,Moon,Sun,Monitor,MoreHorizontal,MoreVertical,ArrowRight,Hash,User,Settings,Bell,CheckCheck,Trash2,Image,FileVideo,FileAudio,FileText,FileArchive,ChevronUp,ArrowDown}from'lucide-react';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {jsx,jsxs,Fragment}from'react/jsx-runtime';import {Slot}from'@radix-ui/react-slot';import*as yo from'@radix-ui/react-checkbox';import*as oe from'@radix-ui/react-dialog';import*as Zi from'@radix-ui/react-label';import*as No from'@radix-ui/react-separator';import*as Po from'@radix-ui/react-switch';import*as Qt from'@radix-ui/react-avatar';import*as xt from'@radix-ui/react-tooltip';import*as Td from'react-dom';import {createPortal}from'react-dom';import*as it from'@radix-ui/react-scroll-area';import*as q from'@radix-ui/react-dropdown-menu';import*as yt from'@radix-ui/react-popover';import*as Rt from'@radix-ui/react-tabs';import*as Zf from'@radix-ui/react-visually-hidden';import {VisuallyHidden}from'@radix-ui/react-visually-hidden';import {Toaster}from'sonner';export{toast}from'sonner';import*as Z from'@radix-ui/react-context-menu';import*as Vr from'@radix-ui/react-radio-group';import*as ls from'@radix-ui/react-toggle';import*as za from'@radix-ui/react-toggle-group';import*as ar from'@radix-ui/react-slider';import*as It from'@radix-ui/react-accordion';import*as ca from'@radix-ui/react-collapsible';import*as ko from'@radix-ui/react-progress';import*as ma from'@radix-ui/react-hover-card';import*as Ec from'@radix-ui/react-aspect-ratio';import*as xe from'@radix-ui/react-navigation-menu';import {Drawer}from'vaul';import {DayPicker,useDayPicker}from'react-day-picker';import {format,getMonth,getYear,setMonth,setYear}from'date-fns';import {Command}from'cmdk';import {Panel,Group,Separator}from'react-resizable-panels';import {HexColorPicker,HexColorInput}from'react-colorful';import*as we from'@radix-ui/react-select';import*as X from'@radix-ui/react-menubar';import*as ke from'@radix-ui/react-alert-dialog';import {ResponsiveContainer,LineChart,CartesianGrid,XAxis,YAxis,Tooltip,Legend,Line,BarChart,Bar,PieChart,Pie,Cell,AreaChart,Area}from'recharts';import {useSensors,useSensor,PointerSensor,KeyboardSensor,DndContext,closestCorners,DragOverlay}from'@dnd-kit/core';import {sortableKeyboardCoordinates,SortableContext,verticalListSortingStrategy,useSortable}from'@dnd-kit/sortable';import {CSS}from'@dnd-kit/utilities';import ZP from'embla-carousel-react';import {useEditor,EditorContent}from'@tiptap/react';import iC from'@tiptap/starter-kit';import sC from'@tiptap/extension-link';import lC from'@tiptap/extension-underline';import dC from'@tiptap/extension-text-align';import cC from'@tiptap/extension-placeholder';import LC,{centerCrop,makeAspectCrop}from'react-image-crop';import'react-image-crop/dist/ReactCrop.css';import BC from'react-qr-code';import {useTheme,ThemeProvider}from'next-themes';export{useTheme}from'next-themes';import {motion,AnimatePresence,useInView,useSpring,useTransform,useScroll}from'framer-motion';import vo from'canvas-confetti';function o(...e){return twMerge(clsx(e))}var Bx=cva("relative w-full p-4",{variants:{variant:{solid:"border",bordered:"border bg-transparent",flat:""},type:{default:"",success:"",warning:"",error:""},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",type:"default",className:"!border-primary bg-primary text-primary-foreground [&>svg]:text-primary-foreground"},{variant:"bordered",type:"default",className:"!border-primary text-primary [&>svg]:text-primary"},{variant:"flat",type:"default",className:"bg-primary/10 text-primary [&>svg]:text-primary"},{variant:"solid",type:"success",className:"!border-green-600 bg-green-600 text-white dark:!border-green-500 dark:bg-green-500 [&>svg]:text-white"},{variant:"bordered",type:"success",className:"!border-green-600 text-green-600 dark:!border-green-500 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"flat",type:"success",className:"bg-green-600/10 text-green-600 dark:bg-green-500/10 dark:text-green-500 [&>svg]:text-green-600 dark:[&>svg]:text-green-500"},{variant:"solid",type:"warning",className:"!border-amber-600 bg-amber-600 text-white dark:!border-amber-500 dark:bg-amber-500 [&>svg]:text-white"},{variant:"bordered",type:"warning",className:"!border-amber-600 text-amber-600 dark:!border-amber-500 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"flat",type:"warning",className:"bg-amber-600/10 text-amber-600 dark:bg-amber-500/10 dark:text-amber-500 [&>svg]:text-amber-600 dark:[&>svg]:text-amber-500"},{variant:"solid",type:"error",className:"!border-red-600 bg-red-600 text-white dark:!border-red-500 dark:bg-red-500 [&>svg]:text-white"},{variant:"bordered",type:"error",className:"!border-red-600 text-red-600 dark:!border-red-500 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"},{variant:"flat",type:"error",className:"bg-red-600/10 text-red-600 dark:bg-red-500/10 dark:text-red-500 [&>svg]:text-red-600 dark:[&>svg]:text-red-500"}],defaultVariants:{variant:"solid",type:"default",radius:"md"}}),Ox={default:Info,success:CheckCircle2,warning:AlertTriangle,error:AlertCircle},Gx=Y.forwardRef(({className:e,variant:t="solid",type:r="default",radius:a="md",icon:n,hideIcon:i=false,endContent:s,children:l,...d},m)=>{let u=Ox[r],c=!i,g=n!==void 0?n:u?jsx(u,{className:"h-4 w-4"}):null;return jsxs("div",{ref:m,role:"alert",className:o(Bx({variant:t,type:r,radius:a}),s&&"flex items-center justify-between",e),...d,children:[jsxs("div",{className:"flex items-start gap-3",children:[c&&g&&jsx("span",{className:"mt-0.5 shrink-0",children:g}),jsx("div",{children:l})]}),s&&jsx("div",{className:"shrink-0 ml-4",children:s})]})});Gx.displayName="Alert";var Wx=Y.forwardRef(({className:e,...t},r)=>jsx("h5",{ref:r,className:o("mb-1 font-medium leading-none tracking-tight",e),...t}));Wx.displayName="AlertTitle";var $x=Y.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:o("text-sm [&_p]:leading-relaxed",e),...t}));$x.displayName="AlertDescription";var _x=cva("absolute rounded-full flex items-center justify-center font-semibold",{variants:{variant:{solid:"",bordered:"border-2"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"",md:"",lg:""},placement:{"top-right":"-top-1 -right-1","top-left":"-top-1 -left-1","bottom-right":"-bottom-1 -right-1","bottom-left":"-bottom-1 -left-1"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white dark:bg-zinc-200 dark:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white dark:bg-green-500"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white dark:bg-amber-500"},{variant:"solid",color:"danger",className:"bg-red-600 text-white dark:bg-red-500"},{variant:"solid",color:"info",className:"bg-blue-600 text-white dark:bg-blue-500"},{variant:"bordered",color:"default",className:"bg-white border-zinc-800 text-zinc-800 dark:bg-zinc-900 dark:border-zinc-200 dark:text-zinc-200"},{variant:"bordered",color:"success",className:"bg-white border-green-600 text-green-600 dark:bg-zinc-900 dark:border-green-500 dark:text-green-500"},{variant:"bordered",color:"warning",className:"bg-white border-amber-600 text-amber-600 dark:bg-zinc-900 dark:border-amber-500 dark:text-amber-500"},{variant:"bordered",color:"danger",className:"bg-white border-red-600 text-red-600 dark:bg-zinc-900 dark:border-red-500 dark:text-red-500"},{variant:"bordered",color:"info",className:"bg-white border-blue-600 text-blue-600 dark:bg-zinc-900 dark:border-blue-500 dark:text-blue-500"},{size:"sm",className:"min-w-4 h-4 text-[10px] px-1"},{size:"md",className:"min-w-5 h-5 text-xs px-1"},{size:"lg",className:"min-w-6 h-6 text-sm px-1.5"}],defaultVariants:{variant:"solid",color:"default",size:"md",placement:"top-right"}}),Kx={sm:"w-2 h-2",md:"w-2.5 h-2.5",lg:"w-3 h-3"},Yx=Y.forwardRef(({className:e,children:t,content:r,variant:a="solid",color:n="default",size:i="md",placement:s="top-right",isDot:l=false,...d},m)=>jsxs("div",{ref:m,className:o("relative inline-flex",e),...d,children:[t,jsx("span",{className:o(_x({variant:a,color:n,size:l?void 0:i,placement:s}),l&&Kx[i||"md"],l&&"min-w-0 p-0"),children:!l&&r})]}));Yx.displayName="Badge";var jx=cva("inline-flex items-center gap-1 font-medium rounded-full",{variants:{color:{default:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white",success:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500",warning:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500",danger:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500",info:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},size:{sm:"px-2 py-0.5 text-[10px]",md:"px-2.5 py-0.5 text-xs",lg:"px-3 py-1 text-sm"}},defaultVariants:{color:"default",size:"md"}}),ji=Y.forwardRef(({className:e,color:t,size:r,...a},n)=>jsx("span",{ref:n,className:o(jx({color:t,size:r}),e),...a}));ji.displayName="TextBadge";var Jt=cva("inline-flex items-center justify-center gap-2 whitespace-nowrap text-sm font-medium ring-offset-background transition-all duration-200 ease-out cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed active:scale-[0.97] [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{solid:"",bordered:"border-2 border-current bg-transparent hover:opacity-70",light:"bg-transparent hover:bg-zinc-100 dark:hover:bg-zinc-800",flat:"bg-zinc-100 dark:bg-zinc-800 hover:opacity-70",ghost:"border-2 bg-transparent"},color:{default:"",success:"",warning:"",danger:"",info:""},size:{sm:"h-9 px-3 text-xs",md:"h-10 px-4",lg:"h-11 px-5 text-base",icon:"h-10 w-10"},radius:{none:"rounded-none",sm:"rounded-md",md:"rounded-lg",lg:"rounded-xl",full:"rounded-full"}},compoundVariants:[{variant:"solid",color:"default",className:"bg-zinc-800 text-white hover:bg-zinc-700 dark:bg-zinc-200 dark:text-zinc-900 dark:hover:bg-zinc-300"},{variant:"bordered",color:"default",className:"text-zinc-900 dark:text-white"},{variant:"light",color:"default",className:"text-zinc-900 hover:bg-zinc-100 dark:text-white dark:hover:bg-zinc-800"},{variant:"flat",color:"default",className:"bg-zinc-100 text-zinc-900 dark:bg-zinc-800 dark:text-white"},{variant:"ghost",color:"default",className:"text-zinc-900 border-zinc-900 hover:bg-zinc-900 hover:text-white dark:text-white dark:border-white dark:hover:bg-white dark:hover:text-zinc-900"},{variant:"solid",color:"success",className:"bg-green-600 text-white hover:bg-green-700 dark:bg-green-700 dark:text-white dark:hover:bg-green-600"},{variant:"bordered",color:"success",className:"text-green-600 dark:text-green-500"},{variant:"light",color:"success",className:"text-green-600 hover:bg-green-600/10 dark:text-green-500 dark:hover:bg-green-500/10"},{variant:"flat",color:"success",className:"bg-green-600/20 text-green-700 dark:bg-green-500/20 dark:text-green-500"},{variant:"ghost",color:"success",className:"text-green-600 border-green-600 hover:bg-green-600 hover:text-white dark:text-green-500 dark:border-green-500 dark:hover:bg-green-500 dark:hover:text-white"},{variant:"solid",color:"warning",className:"bg-amber-600 text-white hover:bg-amber-700 dark:bg-amber-700 dark:text-white dark:hover:bg-amber-600"},{variant:"bordered",color:"warning",className:"text-amber-600 dark:text-amber-500"},{variant:"light",color:"warning",className:"text-amber-600 hover:bg-amber-600/10 dark:text-amber-500 dark:hover:bg-amber-500/10"},{variant:"flat",color:"warning",className:"bg-amber-600/20 text-amber-700 dark:bg-amber-500/20 dark:text-amber-500"},{variant:"ghost",color:"warning",className:"text-amber-600 border-amber-600 hover:bg-amber-600 hover:text-white dark:text-amber-500 dark:border-amber-500 dark:hover:bg-amber-500 dark:hover:text-white"},{variant:"solid",color:"danger",className:"bg-red-600 text-white hover:bg-red-700 dark:bg-red-700 dark:text-white dark:hover:bg-red-600"},{variant:"bordered",color:"danger",className:"text-red-600 dark:text-red-500"},{variant:"light",color:"danger",className:"text-red-600 hover:bg-red-600/10 dark:text-red-500 dark:hover:bg-red-500/10"},{variant:"flat",color:"danger",className:"bg-red-600/20 text-red-700 dark:bg-red-500/20 dark:text-red-500"},{variant:"ghost",color:"danger",className:"text-red-600 border-red-600 hover:bg-red-600 hover:text-white dark:text-red-500 dark:border-red-500 dark:hover:bg-red-500 dark:hover:text-white"},{variant:"solid",color:"info",className:"bg-blue-600 text-white hover:bg-blue-700 dark:bg-blue-700 dark:text-white dark:hover:bg-blue-600"},{variant:"bordered",color:"info",className:"text-blue-600 dark:text-blue-500"},{variant:"light",color:"info",className:"text-blue-600 hover:bg-blue-600/10 dark:text-blue-500 dark:hover:bg-blue-500/10"},{variant:"flat",color:"info",className:"bg-blue-600/20 text-blue-700 dark:bg-blue-500/20 dark:text-blue-500"},{variant:"ghost",color:"info",className:"text-blue-600 border-blue-600 hover:bg-blue-600 hover:text-white dark:text-blue-500 dark:border-blue-500 dark:hover:bg-blue-500 dark:hover:text-white"}],defaultVariants:{variant:"solid",color:"default",size:"md",radius:"md"}}),_=Y.forwardRef(({className:e,variant:t,color:r,size:a,radius:n,asChild:i=false,href:s,loading:l=false,startContent:d,endContent:m,children:u,disabled:c,style:g,...p},x)=>{let y=c||l,h=t==="bordered"?{borderColor:"currentColor",...g}:g,R=l?jsxs(Fragment,{children:[jsx(Loader2,{className:"animate-spin"}),u]}):jsxs(Fragment,{children:[d,u,m]});return i?jsx(Slot,{className:o(Jt({variant:t,color:r,size:a,radius:n,className:e})),ref:x,style:h,...p,children:R}):s?jsx("a",{href:s,className:o(Jt({variant:t,color:r,size:a,radius:n,className:e}),y&&"pointer-events-none opacity-50"),style:h,...p,children:R}):jsx("button",{className:o(Jt({variant:t,color:r,size:a,radius:n,className:e})),ref:x,disabled:y,style:h,...p,children:R})});_.displayName="Button";var nd=cva("border bg-card text-card-foreground shadow-sm",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"lg"}}),id=Y.forwardRef(({className:e,radius:t,...r},a)=>jsx("div",{ref:a,className:o(nd({radius:t,className:e})),...r}));id.displayName="Card";var sd=Y.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:o("p-6 text-2xl font-semibold leading-none tracking-tight",e),...t}));sd.displayName="CardHeader";var ld=Y.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:o("p-6 pt-0",e),...t}));ld.displayName="CardContent";var dd=Y.forwardRef(({className:e,...t},r)=>jsx("div",{ref:r,className:o("flex items-center p-6 pt-0",e),...t}));dd.displayName="CardFooter";var Ro=Y.forwardRef(({className:e,checked:t,onFocus:r,onBlur:a,style:n,...i},s)=>{let[l,d]=Y.useState(false);return jsx(yo.Root,{ref:s,checked:t,className:o("peer h-4 w-4 shrink-0 rounded-sm border border-primary focus-visible:outline-none cursor-pointer disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground data-[state=indeterminate]:bg-background data-[state=indeterminate]:text-foreground transition-colors",e),style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),r?.(m);},onBlur:m=>{d(false),a?.(m);},...i,children:jsx(yo.Indicator,{className:o("flex items-center justify-center text-current"),children:t==="indeterminate"?jsx(Minus,{className:"h-4 w-4"}):jsx(Check,{className:"h-4 w-4"})})})});Ro.displayName=yo.Root.displayName;var Xi=oe.Root,ry=oe.Trigger,cd=oe.Portal,ay=oe.Close,qi=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Overlay,{ref:r,className:o("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}));qi.displayName=oe.Overlay.displayName;var pn=Y.forwardRef(({className:e,children:t,...r},a)=>jsxs(cd,{children:[jsx(qi,{}),jsxs(oe.Content,{ref:a,className:o("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),...r,children:[t,jsxs(oe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsx(X$1,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]})]}));pn.displayName=oe.Content.displayName;var md=({className:e,...t})=>jsx("div",{className:o("flex flex-col space-y-1.5 text-center sm:text-left",e),...t});md.displayName="DialogHeader";var ud=({className:e,...t})=>jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});ud.displayName="DialogFooter";var pd=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Title,{ref:r,className:o("text-lg font-semibold leading-none tracking-tight",e),...t}));pd.displayName=oe.Title.displayName;var fd=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));fd.displayName=oe.Description.displayName;var ny=cva("flex h-10 w-full border border-input bg-background px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),gn=Y.forwardRef(({className:e,type:t,radius:r,onFocus:a,onBlur:n,style:i,...s},l)=>{let[d,m]=Y.useState(false);return jsx("input",{type:t,className:o(ny({radius:r,className:e})),ref:l,style:{...i,borderColor:d?"var(--color-foreground)":void 0},onFocus:u=>{m(true),a?.(u);},onBlur:u=>{m(false),n?.(u);},...s})});gn.displayName="Input";var ly=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ea=Y.forwardRef(({className:e,...t},r)=>jsx(Zi.Root,{ref:r,className:o(ly(),e),...t}));ea.displayName=Zi.Root.displayName;var kr=Y.forwardRef(({className:e,orientation:t="horizontal",decorative:r=true,text:a,...n},i)=>a&&t==="horizontal"?jsxs("div",{className:o("flex items-center gap-4",e),children:[jsx(No.Root,{decorative:r,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n}),jsx("span",{className:"text-sm text-muted-foreground",children:a}),jsx(No.Root,{decorative:r,orientation:t,className:"shrink-0 bg-border h-[1px] flex-1",...n})]}):jsx(No.Root,{ref:i,decorative:r,orientation:t,className:o("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...n}));kr.displayName=No.Root.displayName;var xd=Y.forwardRef(({className:e,...t},r)=>jsx(Po.Root,{className:o("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors 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 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",e),...t,ref:r,children:jsx(Po.Thumb,{className:o("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")})}));xd.displayName=Po.Root.displayName;var uy=cva("flex min-h-[80px] w-full border border-input bg-background px-3 py-2 text-sm placeholder:text-muted-foreground focus:outline-none transition-colors disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg"}},defaultVariants:{radius:"md"}}),yd=Y.forwardRef(({className:e,radius:t,onFocus:r,onBlur:a,style:n,...i},s)=>{let[l,d]=Y.useState(false);return jsx("textarea",{className:o(uy({radius:t,className:e})),ref:s,style:{...n,borderColor:l?"var(--color-foreground)":void 0},onFocus:m=>{d(true),r?.(m);},onBlur:m=>{d(false),a?.(m);},...i})});yd.displayName="Textarea";var wd=cva("rounded-md bg-muted",{variants:{variant:{pulse:"animate-pulse",shimmer:"skeleton-shimmer",static:""}},defaultVariants:{variant:"pulse"}}),hn=Y.forwardRef(({className:e,variant:t,...r},a)=>jsx("div",{ref:a,className:o(wd({variant:t,className:e})),...r}));hn.displayName="Skeleton";var vy=cva("relative flex shrink-0 overflow-hidden cursor-pointer",{variants:{size:{sm:"h-8 w-8",md:"h-10 w-10",lg:"h-12 w-12"},radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{size:"md",radius:"full"}}),ta=Y.forwardRef(({className:e,size:t,radius:r,...a},n)=>jsx(Qt.Root,{ref:n,className:o(vy({size:t,radius:r,className:e})),...a}));ta.displayName=Qt.Root.displayName;var Ha=Y.forwardRef(({className:e,...t},r)=>jsx(Qt.Image,{ref:r,className:o("aspect-square h-full w-full",e),...t}));Ha.displayName=Qt.Image.displayName;var ra=Y.forwardRef(({className:e,...t},r)=>jsx(Qt.Fallback,{ref:r,className:o("flex h-full w-full items-center justify-center bg-muted",e),...t}));ra.displayName=Qt.Fallback.displayName;var aa=xt.Provider,oa=xt.Root,na=xt.Trigger,Dr=Y.forwardRef(({className:e,sideOffset:t=4,...r},a)=>jsx(xt.Portal,{children:jsx(xt.Content,{ref:a,sideOffset:t,className:o("z-50 overflow-hidden rounded-md px-3 py-1.5 text-xs bg-zinc-100 text-zinc-900 dark:bg-zinc-900 dark:text-zinc-100 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),...r})}));Dr.displayName=xt.Content.displayName;var Me=Y.forwardRef(({className:e,children:t,...r},a)=>jsxs(it.Root,{ref:a,className:o("relative overflow-hidden group/scroll",e),...r,children:[jsx(it.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),jsx(es,{}),jsx(it.Corner,{})]}));Me.displayName=it.Root.displayName;var es=Y.forwardRef(({className:e,orientation:t="vertical",...r},a)=>jsx(it.ScrollAreaScrollbar,{ref:a,orientation:t,className:o("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2 flex-col border-t border-t-transparent p-[1px]",e),...r,children:jsx(it.ScrollAreaThumb,{className:o("relative flex-1 rounded-full transition-colors","bg-transparent group-hover/scroll:bg-border hover:!bg-muted-foreground")})}));es.displayName=it.ScrollAreaScrollbar.displayName;var Sd=cva("flex min-h-10 w-full cursor-pointer items-center justify-between border border-zinc-300 dark:border-zinc-700 bg-background px-3 py-2 text-sm outline-none disabled:cursor-not-allowed disabled:opacity-50",{variants:{radius:{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}},defaultVariants:{radius:"md"}}),kd=Y.forwardRef(({options:e,multiple:t=false,value:r,defaultValue:a,onValueChange:n,placeholder:i="Select...",searchable:s=false,searchPlaceholder:l="Search...",emptyText:d="No results found.",disabled:m=false,clearable:u=false,maxDisplayItems:c=3,radius:g,className:p,...x},y)=>{let[f,h]=Y.useState(false),[R,b]=Y.useState(""),[v,P]=Y.useState(a||""),[w,S]=Y.useState(a||[]),[C,M]=Y.useState({top:0,left:0,width:0}),N=Y.useRef(null),T=Y.useRef(null),k=Y.useRef(null),L=Y.useRef(null),I=r!==void 0?r:v,V=r!==void 0?r:w,D=r!==void 0,E=A=>{u&&I===A?(D||P(""),n?.("")):(D||P(A),n?.(A)),h(false),b("");},B=A=>{let z=V.includes(A)?V.filter(ee=>ee!==A):[...V,A];D||S(z),n?.(z);},W=(A,z)=>{z.stopPropagation();let ee=V.filter(J=>J!==A);D||S(ee),n?.(ee);},H=A=>{A.stopPropagation(),t?(D||S([]),n?.([])):(D||P(""),n?.(""));},U=e.find(A=>A.value===I),$=e.filter(A=>V.includes(A.value)),Pe=$.slice(0,c),ie=$.length-c,F=s?e.filter(A=>A.label.toLowerCase().includes(R.toLowerCase())):e;Y.useEffect(()=>{if(f&&T.current){let A=T.current.getBoundingClientRect();M({top:A.bottom+4,left:A.left,width:A.width}),s&&setTimeout(()=>L.current?.focus(),0);}f||b("");},[f,s]),Y.useEffect(()=>{let A=z=>{let ee=z.target,J=N.current&&!N.current.contains(ee),Xe=k.current&&!k.current.contains(ee);J&&Xe&&(h(false),b(""));};return document.addEventListener("mousedown",A),()=>document.removeEventListener("mousedown",A)},[]),Y.useEffect(()=>{if(!f)return;let A=z=>{k.current?.contains(z.target)||(h(false),b(""));};return window.addEventListener("scroll",A,true),()=>window.removeEventListener("scroll",A,true)},[f]);let O=t?V.length>0:!!I;return jsxs("div",{ref:N,className:o("relative",p),...x,children:[jsxs("div",{ref:A=>{T.current=A,typeof y=="function"?y(A):y&&(y.current=A);},role:"combobox","aria-expanded":f,"aria-haspopup":"listbox","aria-disabled":m,onClick:()=>!m&&h(!f),className:o(Sd({radius:g}),t&&"flex-wrap gap-1",m&&"cursor-not-allowed opacity-50"),children:[!t&&jsx("span",{className:o(!U&&"text-muted-foreground"),children:U?U.label:i}),t&&jsx(Fragment,{children:$.length===0?jsx("span",{className:"text-muted-foreground",children:i}):jsxs(Fragment,{children:[Pe.map(A=>jsxs("span",{className:"inline-flex items-center gap-1 rounded-md bg-secondary px-2 py-0.5 text-xs font-medium text-secondary-foreground",children:[A.label,jsx("span",{role:"button",tabIndex:0,onClick:z=>W(A.value,z),onKeyDown:z=>{(z.key==="Enter"||z.key===" ")&&W(A.value,z);},className:"rounded-full hover:bg-secondary-foreground/20 cursor-pointer",children:jsx(X$1,{className:"h-3 w-3"})})]},A.value)),ie>0&&jsxs("span",{className:"text-xs text-muted-foreground",children:["+",ie," more"]})]})}),jsxs("div",{className:"ml-auto flex items-center gap-1",children:[u&&O&&jsx("span",{role:"button",tabIndex:0,onClick:H,onKeyDown:A=>{(A.key==="Enter"||A.key===" ")&&H(A);},className:"rounded-full p-0.5 hover:bg-muted cursor-pointer",children:jsx(X$1,{className:"h-4 w-4 opacity-50"})}),jsx(ChevronDown,{className:o("h-4 w-4 opacity-50 transition-transform",f&&"rotate-180")})]})]}),f&&!m&&typeof document<"u"&&Td.createPortal(jsxs("div",{ref:k,className:"fixed z-[9999] overflow-hidden rounded-md border border-zinc-300 dark:border-zinc-700 bg-background shadow-md",style:{top:C.top,left:C.left,minWidth:C.width},children:[s&&jsxs("div",{className:"flex items-center border-b border-zinc-300 dark:border-zinc-700 px-3",children:[jsx(Search,{className:"h-4 w-4 opacity-50 mr-2"}),jsx("input",{ref:L,type:"text",value:R,onChange:A=>b(A.target.value),placeholder:l,className:"flex h-10 w-full bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground"})]}),jsx(Me,{className:"max-h-[240px]",children:jsx("div",{className:"p-1",children:F.length===0?jsx("div",{className:"py-6 text-center text-sm text-muted-foreground",children:d}):F.map(A=>{let z=t?V.includes(A.value):I===A.value;return jsxs("div",{role:"option","aria-selected":z,onClick:()=>{A.disabled||(t?B(A.value):E(A.value));},className:o("relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none hover:bg-zinc-100 dark:hover:bg-zinc-800",A.disabled&&"pointer-events-none opacity-50"),children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:z&&jsx(Check,{className:"h-4 w-4"})}),A.label]},A.value)})})})]}),document.body)]})});kd.displayName="Select";var ia=q.Root,sa=q.Trigger,My=q.Group,Ty=q.Portal,Sy=q.Sub,ky=q.RadioGroup,Dd=Y.forwardRef(({className:e,inset:t,children:r,...a},n)=>jsxs(q.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",t&&"pl-8",e),...a,children:[r,jsx(ChevronRight,{className:"ml-auto"})]}));Dd.displayName=q.SubTrigger.displayName;var Ld=Y.forwardRef(({className:e,...t},r)=>jsx(q.SubContent,{ref:r,className:o("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}));Ld.displayName=q.SubContent.displayName;var Lr=Y.forwardRef(({className:e,sideOffset:t=4,...r},a)=>jsx(q.Portal,{children:jsx(q.Content,{ref:a,sideOffset:t,className:o("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),...r})}));Lr.displayName=q.Content.displayName;var Lt=Y.forwardRef(({className:e,inset:t,...r},a)=>jsx(q.Item,{ref:a,className:o("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0",t&&"pl-8",e),...r}));Lt.displayName=q.Item.displayName;var Vd=Y.forwardRef(({className:e,children:t,checked:r,...a},n)=>jsxs(q.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...a,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(q.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),t]}));Vd.displayName=q.CheckboxItem.displayName;var Id=Y.forwardRef(({className:e,children:t,...r},a)=>jsxs(q.RadioItem,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(q.ItemIndicator,{children:jsx(Circle,{className:"h-2 w-2 fill-current"})})}),t]}));Id.displayName=q.RadioItem.displayName;var Ed=Y.forwardRef(({className:e,inset:t,...r},a)=>jsx(q.Label,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",e),...r}));Ed.displayName=q.Label.displayName;var yn=Y.forwardRef(({className:e,...t},r)=>jsx(q.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-muted",e),...t}));yn.displayName=q.Separator.displayName;var Hd=({className:e,...t})=>jsx("span",{className:o("ml-auto text-xs tracking-widest opacity-60",e),...t});Hd.displayName="DropdownMenuShortcut";var Ee=yt.Root,_e=yt.Trigger,rs=yt.Anchor,Te=Y.forwardRef(({className:e,align:t="center",sideOffset:r=4,...a},n)=>jsx(yt.Portal,{children:jsx(yt.Content,{ref:n,align:t,sideOffset:r,className:o("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 origin-[--radix-popover-content-transform-origin]",e),...a})}));Te.displayName=yt.Content.displayName;var Fd=Y.createContext({variant:"solid",radius:"md"}),Bd=()=>Y.useContext(Fd),Od=Y.forwardRef(({variant:e="solid",radius:t="md",...r},a)=>jsx(Fd.Provider,{value:{variant:e,radius:t},children:jsx(Rt.Root,{ref:a,...r})}));Od.displayName="Tabs";var as={none:{list:"rounded-none",trigger:"rounded-none",indicator:"rounded-none"},sm:{list:"rounded-md",trigger:"rounded-sm",indicator:"rounded-sm"},md:{list:"rounded-lg",trigger:"rounded-md",indicator:"rounded-md"},lg:{list:"rounded-xl",trigger:"rounded-lg",indicator:"rounded-lg"},full:{list:"rounded-full",trigger:"rounded-full",indicator:"rounded-full"}},Gd=Y.forwardRef(({className:e,...t},r)=>{let{variant:a,radius:n}=Bd(),i=Y.useRef(null),[s,l]=Y.useState({opacity:0});Y.useEffect(()=>{let p=i.current;if(!p)return;let x=()=>{let h=p.querySelector('[data-state="active"]');if(h){let R=p.getBoundingClientRect(),b=h.getBoundingClientRect(),v=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";a==="underline"?l(v?{width:2,height:b.height,transform:`translateY(${b.top-R.top}px)`,opacity:1}:{width:b.width,height:2,transform:`translateX(${b.left-R.left}px)`,opacity:1}):a==="solid"&&l(v?{width:b.width,height:b.height,transform:`translateY(${b.top-R.top}px)`,opacity:1}:{width:b.width,height:b.height,transform:`translateX(${b.left-R.left}px)`,opacity:1});}};x();let y=new MutationObserver(x);y.observe(p,{attributes:true,subtree:true,attributeFilter:["data-state"]});let f=new ResizeObserver(x);return f.observe(p),()=>{y.disconnect(),f.disconnect();}},[a]);let d={solid:"bg-muted p-1",underline:"border-b border-border bg-transparent p-0 !rounded-none",outline:"bg-transparent p-0 gap-1 !rounded-none"},m=()=>{let p=i.current;return p?p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column":false},[u,c]=Y.useState(false);Y.useEffect(()=>{c(m());},[]);let g=()=>a==="solid"?u?"top-0 left-1 bg-background shadow":"top-1 left-1 bg-background shadow":a==="underline"?u?"top-0 left-0 bg-primary !rounded-full":"bottom-0 left-0 bg-primary !rounded-full":"";return jsxs(Rt.List,{ref:p=>{if(i.current=p,typeof r=="function"?r(p):r&&(r.current=p),p){let x=p.getAttribute("aria-orientation")==="vertical"||window.getComputedStyle(p).flexDirection==="column";c(x);}},className:o("relative inline-flex h-9 items-center justify-center text-muted-foreground",as[n].list,d[a],e),...t,children:[(a==="solid"||a==="underline")&&jsx("span",{className:o("absolute transition-all duration-200 ease-out",as[n].indicator,g()),style:s,"aria-hidden":"true"}),t.children]})});Gd.displayName=Rt.List.displayName;var Wd=Y.forwardRef(({className:e,...t},r)=>{let{variant:a,radius:n}=Bd(),i={solid:"data-[state=active]:text-foreground",underline:"!rounded-none border-b-2 border-transparent pb-2 data-[state=active]:text-foreground",outline:"border border-transparent data-[state=active]:border-border data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm"};return jsx(Rt.Trigger,{ref:r,className:o("relative z-10 inline-flex items-center justify-center whitespace-nowrap px-3 py-1 text-sm font-medium ring-offset-background transition-all cursor-pointer focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed",as[n].trigger,i[a],e),...t})});Wd.displayName=Rt.Trigger.displayName;var $d=Y.forwardRef(({className:e,...t},r)=>jsx(Rt.Content,{ref:r,className:o("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 animate-in animate-out",e),...t}));$d.displayName=Rt.Content.displayName;var So=oe.Root,Ey=oe.Trigger,Hy=oe.Close,_d=oe.Portal,ns=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Overlay,{className:o("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:r}));ns.displayName=oe.Overlay.displayName;var Kd=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{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"}}),Aa=Y.forwardRef(({side:e="right",className:t,children:r,hideCloseButton:a,...n},i)=>jsxs(_d,{children:[jsx(ns,{}),jsxs(oe.Content,{ref:i,className:o(Kd({side:e}),t),"aria-describedby":void 0,...n,children:[jsx(VisuallyHidden,{asChild:true,children:jsx(oe.Title,{children:"Sheet"})}),!a&&jsxs(oe.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsx(X$1,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]}),r]})]}));Aa.displayName=oe.Content.displayName;var Yd=({className:e,...t})=>jsx("div",{className:o("flex flex-col space-y-2 text-center sm:text-left",e),...t});Yd.displayName="SheetHeader";var jd=({className:e,...t})=>jsx("div",{className:o("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",e),...t});jd.displayName="SheetFooter";var Ud=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Title,{ref:r,className:o("text-lg font-semibold text-foreground",e),...t}));Ud.displayName=oe.Title.displayName;var Xd=Y.forwardRef(({className:e,...t},r)=>jsx(oe.Description,{ref:r,className:o("text-sm text-muted-foreground",e),...t}));Xd.displayName=oe.Description.displayName;var Fy=({theme:e="system",...t})=>jsx(Toaster,{theme:e,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...t});var $y=Z.Root,_y=Z.Trigger,Ky=Z.Group,Yy=Z.Portal,jy=Z.Sub,Uy=Z.RadioGroup,qd=Y.forwardRef(({className:e,inset:t,children:r,...a},n)=>jsxs(Z.SubTrigger,{ref:n,className:o("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",e),...a,children:[r,jsx(ChevronRight,{className:"ml-auto h-4 w-4"})]}));qd.displayName=Z.SubTrigger.displayName;var Zd=Y.forwardRef(({className:e,...t},r)=>jsx(Z.SubContent,{ref:r,className:o("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 origin-[--radix-context-menu-content-transform-origin]",e),...t}));Zd.displayName=Z.SubContent.displayName;var Jd=Y.forwardRef(({className:e,...t},r)=>jsx(Z.Portal,{children:jsx(Z.Content,{ref:r,className:o("z-50 max-h-[--radix-context-menu-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-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 origin-[--radix-context-menu-content-transform-origin]",e),...t})}));Jd.displayName=Z.Content.displayName;var Qd=Y.forwardRef(({className:e,inset:t,...r},a)=>jsx(Z.Item,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t&&"pl-8",e),...r}));Qd.displayName=Z.Item.displayName;var ec=Y.forwardRef(({className:e,children:t,checked:r,...a},n)=>jsxs(Z.CheckboxItem,{ref:n,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),checked:r,...a,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(Z.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),t]}));ec.displayName=Z.CheckboxItem.displayName;var tc=Y.forwardRef(({className:e,children:t,...r},a)=>jsxs(Z.RadioItem,{ref:a,className:o("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r,children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(Z.ItemIndicator,{children:jsx(Circle,{className:"h-4 w-4 fill-current"})})}),t]}));tc.displayName=Z.RadioItem.displayName;var rc=Y.forwardRef(({className:e,inset:t,...r},a)=>jsx(Z.Label,{ref:a,className:o("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",e),...r}));rc.displayName=Z.Label.displayName;var ac=Y.forwardRef(({className:e,...t},r)=>jsx(Z.Separator,{ref:r,className:o("-mx-1 my-1 h-px bg-border",e),...t}));ac.displayName=Z.Separator.displayName;var oc=({className:e,...t})=>jsx("span",{className:o("ml-auto text-xs tracking-widest text-muted-foreground",e),...t});oc.displayName="ContextMenuShortcut";var nc=Y.forwardRef(({className:e,...t},r)=>jsx(Vr.Root,{className:o("grid gap-2",e),...t,ref:r}));nc.displayName=Vr.Root.displayName;var ic=Y.forwardRef(({className:e,...t},r)=>jsx(Vr.Item,{ref:r,className:o("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:jsx(Vr.Indicator,{className:"flex items-center justify-center",children:jsx(Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ic.displayName=Vr.Item.displayName;var wn=cva("inline-flex items-center justify-center 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 gap-2",{variants:{variant:{solid:"bg-transparent hover:bg-muted data-[state=on]:bg-primary data-[state=on]:text-primary-foreground",outline:"border border-input bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",ghost:"bg-transparent hover:bg-accent data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",soft:"bg-transparent hover:bg-primary/10 data-[state=on]:bg-primary/15 data-[state=on]:text-primary",surface:"bg-muted/50 hover:bg-muted data-[state=on]:bg-muted data-[state=on]:text-foreground"},size:{sm:"h-9 px-2.5 min-w-9",md:"h-10 px-3 min-w-10",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"solid",size:"md"}}),lc=Y.forwardRef(({className:e,variant:t,size:r,...a},n)=>jsx(ls.Root,{ref:n,className:o(wn({variant:t,size:r,className:e})),...a}));lc.displayName=ls.Root.displayName;var dc=Y.createContext({size:"md",variant:"solid"}),cc=Y.forwardRef(({className:e,variant:t,size:r,children:a,...n},i)=>jsx(za.Root,{ref:i,className:o("flex items-center justify-center gap-1",e),...n,children:jsx(dc.Provider,{value:{variant:t,size:r},children:a})}));cc.displayName=za.Root.displayName;var mc=Y.forwardRef(({className:e,children:t,variant:r,size:a,...n},i)=>{let s=Y.useContext(dc);return jsx(za.Item,{ref:i,className:o(wn({variant:s.variant||r,size:s.size||a}),e),...n,children:t})});mc.displayName=za.Item.displayName;var Nn=Y.forwardRef(({className:e,...t},r)=>jsxs(ar.Root,{ref:r,className:o("relative flex w-full touch-none select-none items-center",e),...t,children:[jsx(ar.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:jsx(ar.Range,{className:"absolute h-full bg-primary"})}),jsx(ar.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"})]}));Nn.displayName=ar.Root.displayName;var e0=`
|
|
2
2
|
@keyframes accordion-down {
|
|
3
3
|
from { height: 0; opacity: 0; }
|
|
4
4
|
to { height: var(--radix-accordion-content-height); opacity: 1; }
|