UNPKG

@vela-ui/react

Version:

Vela UI React components

2 lines 64 kB
"use client" "use strict";var Jo=Object.create;var Ne=Object.defineProperty;var Qo=Object.getOwnPropertyDescriptor;var Yo=Object.getOwnPropertyNames;var jo=Object.getPrototypeOf,er=Object.prototype.hasOwnProperty;var tr=(e,t)=>{for(var o in t)Ne(e,o,{get:t[o],enumerable:!0})},At=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Yo(t))!er.call(e,r)&&r!==o&&Ne(e,r,{get:()=>t[r],enumerable:!(a=Qo(t,r))||a.enumerable});return e};var ze=(e,t,o)=>(o=e!=null?Jo(jo(e)):{},At(t||!e||!e.__esModule?Ne(o,"default",{value:e,enumerable:!0}):o,e)),or=e=>At(Ne({},"__esModule",{value:!0}),e);var ys={};tr(ys,{Alert:()=>pr,AlertContent:()=>lr,AlertDescription:()=>cr,AlertTitle:()=>dr,Avatar:()=>vr,AvatarFallback:()=>hr,AvatarImage:()=>br,Badge:()=>yr,Button:()=>K,Card:()=>Fr,CardAction:()=>_r,CardContent:()=>Or,CardDescription:()=>Gr,CardFooter:()=>Hr,CardHeader:()=>Er,CardTitle:()=>Mr,Checkbox:()=>Kr,CheckboxGroup:()=>Zr,CheckboxGroupRoot:()=>jt,Combobox:()=>aa,ComboboxDescription:()=>ca,ComboboxInput:()=>ia,ComboboxItem:()=>la,ComboboxLabel:()=>da,ComboboxList:()=>sa,ComboboxPopover:()=>na,ComboboxSection:()=>pa,Description:()=>w,Dialog:()=>ga,DialogBody:()=>xa,DialogClose:()=>vt,DialogCloseIcon:()=>Ge,DialogContent:()=>ut,DialogContext:()=>ke,DialogDescription:()=>xt,DialogFooter:()=>ft,DialogHeader:()=>mt,DialogTitle:()=>gt,DialogTrigger:()=>dt,Disclosure:()=>ya,DisclosureGroup:()=>Ra,DisclosureHeader:()=>wa,DisclosurePanel:()=>Ca,Drawer:()=>Aa,DrawerBody:()=>Va,DrawerClose:()=>Fa,DrawerCloseIcon:()=>Ba,DrawerContent:()=>za,DrawerDescription:()=>Ia,DrawerFooter:()=>Da,DrawerHeader:()=>Sa,DrawerTitle:()=>La,DrawerTrigger:()=>Na,FieldError:()=>C,FileTrigger:()=>co.FileTrigger,Form:()=>uo.Form,Input:()=>M,InputGroup:()=>re,Kbd:()=>Ea,KbdVariants:()=>go,Label:()=>y,Link:()=>Ga,LinkButton:()=>_a,ListBox:()=>Oa,ListBoxDescription:()=>Ka,ListBoxItem:()=>Ha,ListBoxLabel:()=>Ua,ListBoxSection:()=>Wa,Loader:()=>rt,Menu:()=>Qa,MenuDescription:()=>Za,MenuItem:()=>Ya,MenuLabel:()=>Xa,MenuPopover:()=>Ja,MenuSection:()=>ja,MenuSeparator:()=>$a,MenuShortcut:()=>en,MenuTrigger:()=>qa,Modal:()=>no,ModalContent:()=>lt,ModalOverlay:()=>ao,NativeSelect:()=>rn,NumberField:()=>ln,NumberFieldRoot:()=>wo,Popover:()=>ae,PopoverContent:()=>ra,PopoverTrigger:()=>oa,ProviderContext:()=>yt,Radio:()=>fn,RadioGroup:()=>cn,RadioGroupRoot:()=>No,SearchField:()=>xn,Select:()=>bn,SelectDescription:()=>kn,SelectItem:()=>An,SelectLabel:()=>Tn,SelectList:()=>wn,SelectPopover:()=>yn,SelectSection:()=>Cn,SelectSeparator:()=>Rn,SelectTrigger:()=>hn,SelectValue:()=>Pn,Separator:()=>Nn,Skeleton:()=>zn,Slider:()=>Mn,SliderOutput:()=>Gn,SliderRange:()=>On,SliderThumb:()=>Hn,SliderTrack:()=>_n,SubmenuTrigger:()=>u.SubmenuTrigger,Switch:()=>$n,Tab:()=>os,TabList:()=>ts,TabPanel:()=>rs,Tabs:()=>es,TextField:()=>ns,Textarea:()=>is,ThemeProvider:()=>ko,ThemeProviderContext:()=>We,ToggleButton:()=>cs,ToggleButtonGroup:()=>ds,Tooltip:()=>fs,TooltipTrigger:()=>ms,VelaUIProvider:()=>To,badgeVariants:()=>Et,buttonVariants:()=>Ie,componentColors:()=>hs,componentDirections:()=>Ps,componentPositions:()=>xs,componentShapes:()=>vs,componentSizes:()=>bs,componentStatuses:()=>Xo,defaultThemes:()=>gs,fieldVariants:()=>Yt,toggleButtonVariants:()=>Ko,useDialogContext:()=>ct,useProviderContext:()=>Ro,useTheme:()=>Ao,useToggleGroupContext:()=>kt});module.exports=or(ys);var Vt=require("tailwind-variants"),ve=require("react/jsx-runtime"),rr=(0,Vt.tv)({slots:{root:"bg-card text-card-foreground relative flex w-full items-start gap-3 rounded-lg border p-4 text-sm [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-5 [&>svg]:text-current",content:"flex flex-1 flex-col gap-1",title:"font-medium",description:"text-muted-foreground"}}),{root:ar,content:nr,title:sr,description:ir}=rr();function pr({className:e,...t}){return(0,ve.jsx)("div",{"data-slot":"alert",role:"alert",className:ar({className:e}),...t})}function lr({className:e,...t}){return(0,ve.jsx)("div",{"data-slot":"alert-content",className:nr({className:e}),...t})}function dr({className:e,...t}){return(0,ve.jsx)("div",{"data-slot":"alert-title",className:sr({className:e}),...t})}function cr({className:e,...t}){return(0,ve.jsx)("div",{"data-slot":"alert-description",className:ir({className:e}),...t})}var D=ze(require("react")),Lt=require("tailwind-variants");var pe=require("react");function Nt(e,t=[]){let o=(0,pe.useRef)(()=>{throw new Error("Cannot call an event handler while rendering.")});return(0,pe.useInsertionEffect)(()=>{o.current=e}),(0,pe.useCallback)((...a)=>{var r;return(r=o.current)==null?void 0:r.call(o,...a)},t)}var zt=ze(require("react"));function St(){return zt.useSyncExternalStore(()=>()=>{},()=>!0,()=>!1)}var Se=ze(require("react"));function F(e={}){let{strict:t=!0,errorMessage:o="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:a}=e,r=Se.createContext(void 0);r.displayName=a;function n(){var i;let s=Se.useContext(r);if(!s&&t){let p=new Error(o);throw p.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,p,n),p}return s}return[r.Provider,n,r]}var be=require("react/jsx-runtime"),ur=(0,Lt.tv)({slots:{root:"relative inline-flex shrink-0 overflow-hidden",image:"aspect-square size-full",fallback:"bg-muted flex size-full items-center justify-center select-none"},variants:{size:{xs:{root:"size-6"},sm:{root:"size-8"},md:{root:"size-10"},lg:{root:"size-12"},xl:{root:"size-14"}},shape:{circle:{root:"rounded-full"},square:{root:"rounded-sm"}}},defaultVariants:{size:"md",shape:"circle"}}),{root:mr,image:fr,fallback:gr}=ur(),[xr,It]=F({name:"AvatarContext"});function vr({className:e,shape:t,size:o,...a}){let[r,n]=D.default.useState("idle");return(0,be.jsx)(xr,{value:{shape:t,size:o,imageLoadingStatus:r,onImageLoadingStatusChange:n},children:(0,be.jsx)("span",{"data-slot":"avatar",className:mr({className:e,shape:t,size:o}),...a})})}function br({src:e,className:t,onLoadingStatusChange:o=()=>{},...a}){let r=It(),n=Pr(e,a),s=Nt(i=>{o(i),r.onImageLoadingStatusChange(i)});return(0,D.useLayoutEffect)(()=>{n!=="idle"&&s(n)},[n,s]),n==="loaded"?(0,be.jsx)("img",{"data-slot":"avatar-image",className:fr({className:t}),src:e,...a}):null}function hr({className:e,delayMs:t,...o}){let a=It(),[r,n]=(0,D.useState)(t===void 0);return(0,D.useEffect)(()=>{if(t!==void 0){let s=window.setTimeout(()=>n(!0),t);return()=>window.clearTimeout(s)}},[t]),r&&a.imageLoadingStatus!=="loaded"?(0,be.jsx)("span",{"data-slot":"avatar-fallback",className:gr({className:e}),...o}):null}function Dt(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Pr(e,{referrerPolicy:t,crossOrigin:o}){let a=St(),r=D.default.useRef(null),n=a?(r.current||(r.current=new window.Image),r.current):null,[s,i]=D.default.useState(()=>Dt(n,e));return(0,D.useLayoutEffect)(()=>{i(Dt(n,e))},[n,e]),(0,D.useLayoutEffect)(()=>{let p=te=>()=>{i(te)};if(!n)return;let d=p("loaded"),N=p("error");return n.addEventListener("load",d),n.addEventListener("error",N),t&&(n.referrerPolicy=t),typeof o=="string"&&(n.crossOrigin=o),()=>{n.removeEventListener("load",d),n.removeEventListener("error",N)}},[n,o,t]),s}var Ft=require("tailwind-variants");var Bt=require("tailwind-variants"),m=(0,Bt.tv)({base:"outline-hidden",variants:{isFocusVisible:{true:"border-ring ring-ring/50 ring-[3px]"},isInvalid:{true:"ring-destructive/20 dark:ring-destructive/40 border-destructive"}}});var Mt=require("react/jsx-runtime"),Et=(0,Ft.tv)({extend:m,base:"inline-flex w-fit shrink-0 items-center justify-center gap-1 overflow-hidden rounded-md border px-2 py-0.5 text-xs font-medium whitespace-nowrap transition-[color,box-shadow] [&>svg]:pointer-events-none [&>svg]:size-3",variants:{variant:{neutral:"bg-neutral text-neutral-foreground [a&]:hover:bg-neutral/90 border-transparent",primary:"bg-primary text-primary-foreground [a&]:hover:bg-primary/90 border-transparent",secondary:"bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90 border-transparent",accent:"bg-accent text-accent-foreground [a&]:hover:bg-accent/90 border-transparent",destructive:"bg-destructive [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 border-transparent text-white",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"primary"}});function yr({className:e,variant:t,...o}){return(0,Mt.jsx)("span",{"data-slot":"badge",className:Et({variant:t,className:e}),...o})}var Ce=require("react-aria-components"),Zt=require("tailwind-variants");var Xt=require("tailwind-variants");var Ze=require("react/jsx-runtime"),le=e=>(0,Ze.jsx)("svg",{fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,Ze.jsx)("path",{d:"M20 6 9 17l-5-5"})});var Je=require("react/jsx-runtime"),de=e=>(0,Je.jsx)("svg",{fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,Je.jsx)("path",{d:"m6 9 6 6 6-6"})});var Qe=require("react/jsx-runtime"),Gt=e=>(0,Qe.jsx)("svg",{fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,Qe.jsx)("path",{d:"m9 18 6-6-6-6"})});var Ye=require("react/jsx-runtime"),_t=e=>(0,Ye.jsx)("svg",{fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,Ye.jsx)("path",{d:"m18 15-6-6-6 6"})});var he=require("react/jsx-runtime"),Ot=e=>(0,he.jsxs)("svg",{fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,he.jsx)("path",{d:"m7 15 5 5 5-5"}),(0,he.jsx)("path",{d:"m7 9 5-5 5 5"})]});var je=require("react/jsx-runtime"),De=e=>(0,je.jsx)("svg",{fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,je.jsx)("circle",{cx:"12",cy:"12",r:"10"})});var Pe=require("react/jsx-runtime"),Le=e=>(0,Pe.jsxs)("svg",{fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,Pe.jsx)("path",{d:"M18 6 6 18"}),(0,Pe.jsx)("path",{d:"m6 6 12 12"})]});var et=require("react/jsx-runtime"),Ht=e=>(0,et.jsx)("svg",{fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,et.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})});var ye=require("react/jsx-runtime"),Wt=e=>(0,ye.jsxs)("svg",{fill:"none",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,ye.jsx)("path",{stroke:"currentColor",strokeOpacity:"0.25",strokeWidth:"3.636",d:"M11.909 21a9.09 9.09 0 1 0 0-18.182 9.09 9.09 0 0 0 0 18.182Z"}),(0,ye.jsx)("path",{fill:"currentColor",d:"M4.636 11.91a7.273 7.273 0 0 1 7.273-7.274V1C5.885 1 1 5.885 1 11.91zm1.819 4.81a7.24 7.24 0 0 1-1.819-4.81H1c0 2.764 1.032 5.294 2.727 7.215z"})]});var tt=require("react/jsx-runtime"),Ut=e=>(0,tt.jsx)("svg",{fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,tt.jsx)("path",{d:"M5 12h14"})});var we=require("react/jsx-runtime"),Kt=e=>(0,we.jsxs)("svg",{fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,we.jsx)("path",{d:"m21 21-4.34-4.34"}),(0,we.jsx)("circle",{cx:"11",cy:"11",r:"8"})]});var qt=require("clsx"),$t=require("react-aria-components"),ot=require("tailwind-merge"),l=(...e)=>(0,ot.twMerge)((0,qt.clsx)(...e));function L(e,t){return(0,$t.composeRenderProps)(e,o=>(0,ot.twMerge)(t,o))}var c=require("react/jsx-runtime"),wr=(0,Xt.tv)({base:"relative",variants:{size:{xs:"size-3",sm:"size-4",md:"size-5",lg:"size-8",xl:"size-10"}},defaultVariants:{size:"md"}});function Cr({className:e,...t}){return(0,c.jsx)(Ht,{className:l("size-4 animate-spin",e),"data-slot":"icon",...t})}var Rr=({className:e,...t})=>(0,c.jsx)(Wt,{className:l("size-4 animate-spin",e),"data-slot":"icon",...t});function Tr({className:e,...t}){return(0,c.jsx)("svg",{className:l("size-4 stroke-current",e),"data-slot":"icon",viewBox:"0 0 2400 2400",...t,children:(0,c.jsxs)("g",{strokeWidth:"200",strokeLinecap:"round",fill:"none",children:[(0,c.jsx)("line",{x1:"1200",y1:"600",x2:"1200",y2:"100"}),(0,c.jsx)("line",{opacity:"0.5",x1:"1200",y1:"2300",x2:"1200",y2:"1800"}),(0,c.jsx)("line",{opacity:"0.917",x1:"900",y1:"680.4",x2:"650",y2:"247.4"}),(0,c.jsx)("line",{opacity:"0.417",x1:"1750",y1:"2152.6",x2:"1500",y2:"1719.6"}),(0,c.jsx)("line",{opacity:"0.833",x1:"680.4",y1:"900",x2:"247.4",y2:"650"}),(0,c.jsx)("line",{opacity:"0.333",x1:"2152.6",y1:"1750",x2:"1719.6",y2:"1500"}),(0,c.jsx)("line",{opacity:"0.75",x1:"600",y1:"1200",x2:"100",y2:"1200"}),(0,c.jsx)("line",{opacity:"0.25",x1:"2300",y1:"1200",x2:"1800",y2:"1200"}),(0,c.jsx)("line",{opacity:"0.667",x1:"680.4",y1:"1500",x2:"247.4",y2:"1750"}),(0,c.jsx)("line",{opacity:"0.167",x1:"2152.6",y1:"650",x2:"1719.6",y2:"900"}),(0,c.jsx)("line",{opacity:"0.583",x1:"900",y1:"1719.6",x2:"650",y2:"2152.6"}),(0,c.jsx)("line",{opacity:"0.083",x1:"1750",y1:"247.4",x2:"1500",y2:"680.4"}),(0,c.jsx)("animateTransform",{attributeName:"transform",attributeType:"XML",type:"rotate",keyTimes:"0;0.08333;0.16667;0.25;0.33333;0.41667;0.5;0.58333;0.66667;0.75;0.83333;0.91667",values:"0 1199 1199;30 1199 1199;60 1199 1199;90 1199 1199;120 1199 1199;150 1199 1199;180 1199 1199;210 1199 1199;240 1199 1199;270 1199 1199;300 1199 1199;330 1199 1199",dur:"0.83333s",begin:"0.08333s",repeatCount:"indefinite",calcMode:"discrete"})]})})}var kr={default:Cr,ring:Rr,spin:Tr},Ar="default";function rt(e){let{className:t,size:o,ref:a,variant:r,...n}=e,s=kr[r!=null?r:Ar];return(0,c.jsx)(s,{role:"presentation",ref:a,className:wr({size:o,className:t}),...n})}var oe=require("react/jsx-runtime"),Ie=(0,Zt.tv)({extend:m,base:"inline-flex shrink-0 items-center justify-center rounded-md font-medium whitespace-nowrap transition-all [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{variant:{neutral:"bg-neutral text-neutral-foreground hover:bg-neutral/90 shadow-xs",primary:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-xs",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 shadow-xs",accent:"bg-accent text-accent-foreground hover:bg-accent/80 shadow-xs",destructive:"bg-destructive hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60 text-white shadow-xs",outline:"bg-background hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 border shadow-xs",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{xs:"size-8 gap-1 text-xs [&_svg:not([class*='size-'])]:size-4",sm:"size-9 gap-2 text-sm [&_svg:not([class*='size-'])]:size-4",md:"size-10 gap-2 text-sm [&_svg:not([class*='size-'])]:size-5",lg:"size-11 gap-2.5 text-base [&_svg:not([class*='size-'])]:size-5",xl:"size-12 gap-2.5 text-base [&_svg:not([class*='size-'])]:size-5"},shape:{rectangle:"",square:"",circle:"rounded-full"},isDisabled:{true:"pointer-events-none opacity-50"},isPending:{true:"pointer-events-none opacity-50"}},compoundVariants:[{size:"xs",shape:"rectangle",className:"w-auto px-2.5"},{size:"sm",shape:"rectangle",className:"w-auto px-3.5"},{size:"md",shape:"rectangle",className:"w-auto px-4"},{size:"lg",shape:"rectangle",className:"w-auto px-5"},{size:"xl",shape:"rectangle",className:"w-auto px-5"}],defaultVariants:{variant:"primary",size:"md",shape:"rectangle"}});function K({className:e,variant:t,size:o,shape:a,loader:r=(0,oe.jsx)(rt,{}),...n}){return(0,oe.jsx)(Ce.Button,{"data-slot":"button",className:(0,Ce.composeRenderProps)(e,(s,i)=>Ie({...i,variant:t,size:o,shape:a,className:s})),...n,children:(0,Ce.composeRenderProps)(n.children,s=>(0,oe.jsxs)(oe.Fragment,{children:[n.isPending&&r,s]}))})}var Jt=require("tailwind-variants"),q=require("react/jsx-runtime"),Vr=(0,Jt.tv)({slots:{root:"bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",header:"@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",title:"leading-none font-semibold",description:"text-muted-foreground text-sm",action:"col-start-2 row-span-2 row-start-1 self-start justify-self-end",content:"px-6",footer:"flex items-center px-6 [.border-t]:pt-6"}}),{root:Nr,header:zr,title:Sr,description:Dr,action:Lr,content:Ir,footer:Br}=Vr();function Fr({className:e,...t}){return(0,q.jsx)("div",{"data-slot":"card",className:Nr({className:e}),...t})}function Er({className:e,...t}){return(0,q.jsx)("div",{"data-slot":"card-header",className:zr({className:e}),...t})}function Mr({className:e,...t}){return(0,q.jsx)("div",{"data-slot":"card-title",className:Sr({className:e}),...t})}function Gr({className:e,...t}){return(0,q.jsx)("div",{"data-slot":"card-description",className:Dr({className:e}),...t})}function _r({className:e,...t}){return(0,q.jsx)("div",{"data-slot":"card-action",className:Lr({className:e}),...t})}function Or({className:e,...t}){return(0,q.jsx)("div",{"data-slot":"card-content",className:Ir({className:e}),...t})}function Hr({className:e,...t}){return(0,q.jsx)("div",{"data-slot":"card-footer",className:Br({className:e}),...t})}var Re=require("react-aria-components"),at=require("tailwind-variants");var O=require("react/jsx-runtime"),Wr=(0,at.tv)({base:"group relative flex items-center gap-2 text-sm transition",variants:{isDisabled:{true:"cursor-not-allowed opacity-50"}}}),Ur=(0,at.tv)({extend:m,base:"peer border-input dark:bg-input/30 flex shrink-0 items-center justify-center rounded-[4px] border shadow-xs transition-shadow [&_svg]:size-full",variants:{size:{sm:"size-4",md:"size-5 p-0.5",lg:"size-6 p-0.5"},isSelected:{true:"bg-primary dark:bg-primary text-primary-foreground border-primary"},isDisabled:{true:"cursor-not-allowed opacity-50"}},defaultVariants:{size:"md"}});function Kr({className:e,children:t,indicatorClassName:o,size:a,...r}){return(0,O.jsx)(Re.Checkbox,{className:(0,Re.composeRenderProps)(e,(n,s)=>Wr({...s,className:n})),...r,children:(0,Re.composeRenderProps)(t,(n,{isSelected:s,isIndeterminate:i,...p})=>(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{"data-slot":"checkbox-indicator",className:Ur({isSelected:s||i,size:a,...p,className:o}),children:i?(0,O.jsx)(Ut,{}):s?(0,O.jsx)(le,{}):null}),n]}))})}var Fe=require("react-aria-components");var $=require("react-aria-components"),Qt=require("tailwind-variants"),Be=require("react/jsx-runtime"),Yt=(0,Qt.tv)({slots:{label:"group-data-[invalid]:text-destructive flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",description:"text-muted-foreground text-sm",fieldError:"text-destructive text-sm"}}),{label:qr,description:$r,fieldError:Xr}=Yt();function y({className:e,...t}){return(0,Be.jsx)($.Label,{"data-slot":"label",className:qr({className:e}),...t})}function w({className:e,...t}){return(0,Be.jsx)($.Text,{slot:"description",className:$r({className:e}),...t})}function C({className:e,...t}){return(0,Be.jsx)($.FieldError,{className:(0,$.composeRenderProps)(e,o=>Xr({className:o})),...t})}var E=require("react/jsx-runtime");function jt({className:e,...t}){return(0,E.jsx)(Fe.CheckboxGroup,{"data-slot":"checkbox-group",className:L(e,"group flex flex-col gap-2"),...t})}function Zr({children:e,label:t,description:o,errorMessage:a,...r}){return(0,E.jsx)(jt,{...r,children:(0,Fe.composeRenderProps)(e,n=>(0,E.jsxs)(E.Fragment,{children:[t&&(0,E.jsx)(y,{children:t}),n,o&&(0,E.jsx)(w,{children:o}),(0,E.jsx)(C,{children:a})]}))})}var me=require("react-aria-components");var x=require("react-aria-components"),nt=require("tailwind-merge"),eo=require("tailwind-variants");var k=require("react/jsx-runtime"),st=(0,eo.tv)({base:"relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[selection-mode]:pr-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",variants:{variant:{default:"",destructive:"text-destructive *:[svg]:!text-destructive"},isFocused:{true:"bg-accent text-accent-foreground"},isHovered:{true:"bg-accent text-accent-foreground"},isDisabled:{true:"pointer-events-none opacity-50"}},compoundVariants:[{variant:"destructive",isFocused:!0,className:"bg-destructive/10 dark:bg-destructive/20 text-destructive"}]});function ce({className:e,...t}){return(0,k.jsxs)(x.ListBoxSection,{className:e,children:["title"in t&&(0,k.jsx)(x.Header,{className:"text-muted-foreground px-2 py-1.5 text-xs",children:t.title}),(0,k.jsx)(x.Collection,{items:t.items,children:t.children})]})}function ue({className:e,variant:t,...o}){let a=o.textValue||(typeof o.children=="string"?o.children:void 0);return(0,k.jsx)(x.ListBoxItem,{textValue:a,className:(0,x.composeRenderProps)(e,(r,n)=>st({...n,variant:t,className:r})),...o,children:(0,x.composeRenderProps)(o.children,(r,{isSelected:n})=>(0,k.jsxs)(k.Fragment,{children:[n&&(0,k.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:(0,k.jsx)(le,{})}),r]}))})}function X({className:e,...t}){return(0,k.jsx)(x.Text,{slot:"label",className:e,...t})}function Z({className:e,...t}){return(0,k.jsx)(x.Text,{slot:"description",className:(0,nt.twMerge)("text-muted-foreground text-sm",e),...t})}function Ee({className:e,...t}){return(0,k.jsx)(x.Separator,{orientation:"horizontal",className:(0,nt.twMerge)("bg-border -mx-1 my-1 h-px",e),...t})}var Me=require("react"),J=require("react-aria-components"),it=require("tailwind-variants");var z=require("react/jsx-runtime"),Jr=(0,it.tv)({extend:m,base:"file:text-foreground placeholder:text-muted-foreground dark:bg-input/30 border-input relative flex w-full min-w-0 rounded-md border bg-transparent py-1 shadow-xs transition-[color,box-shadow] file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50",variants:{size:{xs:"h-8 px-2 text-xs",sm:"h-9 px-2.5 text-sm",md:"h-10 px-3 text-sm",lg:"h-11 px-4 text-base",xl:"h-12 px-[1.125rem] text-base"},isFocused:m.variants.isFocusVisible,hasStartElement:{true:""},hasEndElement:{true:""}},compoundVariants:[{hasStartElement:!0,size:"xs",className:"pl-8"},{hasStartElement:!0,size:"sm",className:"pl-9"},{hasStartElement:!0,size:"md",className:"pl-10"},{hasStartElement:!0,size:"lg",className:"pl-11"},{hasStartElement:!0,size:"xl",className:"pl-12"},{hasEndElement:!0,size:"xs",className:"pr-8"},{hasEndElement:!0,size:"sm",className:"pr-9"},{hasEndElement:!0,size:"md",className:"pr-10"},{hasEndElement:!0,size:"lg",className:"pr-11"},{hasEndElement:!0,size:"xl",className:"pr-12"}],defaultVariants:{size:"md"}});function M({className:e,size:t,hasStartElement:o,hasEndElement:a,...r}){return(0,z.jsx)(J.Input,{"data-slot":"input",className:(0,J.composeRenderProps)(e,(n,s)=>Jr({...s,size:t,hasStartElement:o,hasEndElement:a,className:n})),...r})}var Qr=(0,it.tv)({slots:{root:["relative isolate flex w-full flex-row items-center justify-start gap-0","has-[[data-slot=input-addon]]:[&_:not(:first-child)]:-ml-px","has-[[data-slot=input-addon]]:[&_:not(:first-child)]:rounded-ss-none has-[[data-slot=input-addon]]:[&_:not(:first-child)]:rounded-es-none","has-[[data-slot=input-addon]]:[&_:not(:last-child)]:rounded-se-none has-[[data-slot=input-addon]]:[&_:not(:last-child)]:rounded-ee-none"],addon:"border-input bg-accent flex w-auto items-center self-stretch rounded-md border whitespace-nowrap",element:"text-muted-foreground absolute inset-y-0 z-50 flex items-center has-[button]:px-0 [&_button]:scale-75"},variants:{size:{xs:{root:"text-xs",addon:"px-2.5",element:"px-2.5"},sm:{root:"text-sm",addon:"px-3",element:"px-3"},md:{root:"text-sm",addon:"px-3",element:"px-3"},lg:{root:"text-base",addon:"px-3.5",element:"px-3.5"},xl:{root:"text-base",addon:"px-4",element:"px-4"}}},defaultVariants:{size:"md"}}),{root:Yr,addon:jr,element:ea}=Qr(),re=({children:e,startElement:t,endElement:o,startAddon:a,endAddon:r,size:n,className:s,...i})=>(0,z.jsx)(J.Group,{"data-slot":"input-group",className:(0,J.composeRenderProps)(s,p=>Yr({size:n,className:p})),...i,children:(0,J.composeRenderProps)(e,p=>(0,z.jsxs)(z.Fragment,{children:[t&&!a&&(0,z.jsx)(oo,{size:n,className:"left-0",children:t}),a&&(0,z.jsx)(to,{size:n,children:a}),(0,Me.isValidElement)(p)&&p.type===M?(0,Me.cloneElement)(p,{hasStartElement:!!t,hasEndElement:!!o,size:n,...p.props||{}}):p,o&&!r&&(0,z.jsx)(oo,{size:n,className:"right-0",children:o}),r&&(0,z.jsx)(to,{size:n,children:r})]}))});function to({className:e,size:t,...o}){return(0,z.jsx)("div",{"data-slot":"input-addon",className:jr({size:t,className:e}),...o})}function oo({className:e,size:t,...o}){return(0,z.jsx)("div",{"data-slot":"input-element",className:ea({size:t,className:e}),...o})}var R=require("react-aria-components"),ro=require("tailwind-variants");var G=require("react/jsx-runtime"),ta=(0,ro.tv)({base:"bg-popover text-popover-foreground z-50 rounded-md border shadow-md outline-hidden transition duration-200",variants:{isEntering:{true:["animate-in fade-in-0 zoom-in-95","data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2 data-[placement=bottom]:slide-in-from-top-2"]},isExiting:{true:["animate-out fade-out-0 zoom-out-95","data-[placement=left]:slide-out-to-right-2 data-[placement=right]:slide-out-to-left-2 data-[placement=top]:slide-out-to-bottom-2 data-[placement=bottom]:slide-out-to-top-2"]}}}),oa=R.DialogTrigger,ae=({className:e,showArrow:t,...o})=>{let a=(0,R.useSlottedContext)(R.PopoverContext),r=(a==null?void 0:a.trigger)==="SubmenuTrigger",n=t?12:8;return n=r?n-6:n,(0,G.jsx)(R.Popover,{"data-slot":"popover",offset:n,className:(0,R.composeRenderProps)(e,(s,i)=>ta({...i,className:s})),...o,children:(0,R.composeRenderProps)(o.children,s=>(0,G.jsxs)(G.Fragment,{children:[t&&(0,G.jsx)(R.OverlayArrow,{className:"group",children:(0,G.jsx)("svg",{width:12,height:12,viewBox:"0 0 12 12",className:"fill-popover stroke-border block stroke-1 group-data-[placement=bottom]:rotate-180 group-data-[placement=left]:-rotate-90 group-data-[placement=right]:rotate-90",children:(0,G.jsx)("path",{d:"M0 0 L6 6 L12 0"})})}),s]}))})};function ra({className:e,...t}){return(0,G.jsx)(R.Dialog,{"data-slot":"popover-content",className:l("p-4 outline-hidden",e),...t})}var T=require("react/jsx-runtime");function aa({label:e,description:t,errorMessage:o,children:a,className:r,...n}){return(0,T.jsx)(me.ComboBox,{"data-slot":"combobox",...n,className:L(r,"group flex w-full flex-col gap-2"),children:(0,me.composeRenderProps)(a,s=>(0,T.jsxs)(T.Fragment,{children:[e&&(0,T.jsx)(y,{children:e}),s,t&&(0,T.jsx)(w,{children:t}),(0,T.jsx)(C,{children:o})]}))})}function na({className:e,...t}){return(0,T.jsx)(ae,{showArrow:!1,className:e,style:{minWidth:"var(--trigger-width)"},...t})}function sa({className:e,...t}){return(0,T.jsx)(me.ListBox,{className:L(e,"max-h-[inherit] min-w-[inherit] overflow-auto p-1 outline-hidden"),...t})}function ia({size:e,endElementProps:t,endElement:o=(0,T.jsx)(K,{variant:"ghost",shape:"square",size:e,...t,children:(0,T.jsx)(Ot,{})}),...a}){return(0,T.jsx)(re,{size:e,endElement:o,children:(0,T.jsx)(M,{...a})})}var pa=ce,la=ue,da=X,ca=Z;var fe=require("react"),_=require("react-aria-components");var ne=require("react-aria-components"),pt=require("tailwind-variants"),Te=require("react/jsx-runtime"),ua=(0,pt.tv)({base:"fixed inset-0 z-50 flex w-full items-center justify-center bg-black/50",variants:{placement:{top:"items-start",center:"items-center",bottom:"items-end"},scrollBehavior:{inside:"items-stretch overflow-hidden",outside:"overflow-auto"},isBlurred:{true:"backdrop-blur-md backdrop-saturate-150"},isEntering:{true:"animate-in fade-in duration-300 ease-out"},isExiting:{true:"animate-out fade-out duration-200 ease-in"}},compoundVariants:[{placement:"center",scrollBehavior:"outside",className:"[&>div]:m-auto"},{placement:"bottom",scrollBehavior:"outside",className:"[&>div]:mt-auto"}],defaultVariants:{placement:"top",scrollBehavior:"outside",isBlurred:!1}}),ma=(0,pt.tv)({base:"bg-background my-16 w-full max-w-[calc(100%-2rem)] rounded-lg border shadow-lg transition",variants:{scrollBehavior:{inside:"max-h-[calc(100%-7.5rem)]",outside:""},isEntering:{true:"animate-in zoom-in-95 duration-300 ease-out"},isExiting:{true:"animate-out zoom-out-95 duration-200 ease-in"},size:{xs:"sm:max-w-xs",sm:"sm:max-w-sm",md:"sm:max-w-md",lg:"sm:max-w-lg",xl:"sm:max-w-xl","2xl":"sm:max-w-2xl","3xl":"sm:max-w-3xl","4xl":"sm:max-w-4xl","5xl":"sm:max-w-5xl",full:"my-0 h-dvh max-w-full rounded-none"}},defaultVariants:{size:"lg"}});function ao({className:e,placement:t,scrollBehavior:o,isBlurred:a,...r}){return(0,Te.jsx)(ne.ModalOverlay,{"data-slot":"modal-overlay",style:{height:"var(--visual-viewport-height)"},className:(0,ne.composeRenderProps)(e,(n,s)=>ua({...s,placement:t,scrollBehavior:o,isBlurred:a,className:n})),...r})}function no({className:e,size:t,scrollBehavior:o,...a}){return(0,Te.jsx)(ne.Modal,{"data-slot":"modal",className:(0,ne.composeRenderProps)(e,(r,n)=>ma({...n,size:t,scrollBehavior:o,className:r})),...a})}function lt({className:e,overlayClassName:t,isDismissable:o=!0,isOpen:a,onOpenChange:r,size:n,placement:s,scrollBehavior:i,isBlurred:p,...d}){return(0,Te.jsx)(ao,{isDismissable:o,isOpen:a,onOpenChange:r,className:t,placement:s,scrollBehavior:i,isBlurred:p,...d,children:(0,Te.jsx)(no,{className:e,size:n,scrollBehavior:i,...d})})}var f=require("react/jsx-runtime"),dt=_.DialogTrigger,fa={role:"dialog",isDismissable:!0,showCloseButton:!0,scrollBehavior:"outside"},ke=(0,fe.createContext)(fa),ct=()=>(0,fe.useContext)(ke),ga=({role:e="dialog",showCloseButton:t=!0,isDismissable:o,scrollBehavior:a,...r})=>{let n=o!=null?o:e!=="alertdialog",s=(0,fe.useMemo)(()=>({role:e,showCloseButton:t,isDismissable:n,scrollBehavior:a}),[e,t,n,a]);return(0,f.jsx)(ke.Provider,{value:s,children:(0,f.jsx)(lt,{isDismissable:n,scrollBehavior:a,...r})})},ut=({className:e,children:t,...o})=>{let{role:a,isDismissable:r,showCloseButton:n}=ct(),s=n&&r;return(0,f.jsx)(_.Dialog,{role:a,"data-slot":"dialog-content",className:l("relative flex h-full w-full flex-col gap-4 p-6 outline-hidden",e),...o,children:(0,_.composeRenderProps)(t,i=>(0,f.jsxs)(f.Fragment,{children:[i,s&&(0,f.jsx)(Ge,{})]}))})},xa=({className:e,...t})=>{let{scrollBehavior:o}=ct();return(0,f.jsx)("div",{"data-slot":"dialog-body",className:l("flex-1",o==="inside"?"overflow-auto":"",e),...t})},mt=({className:e,...t})=>(0,f.jsx)("div",{"data-slot":"dialog-header",className:l("flex flex-col gap-2 text-left",e),...t}),ft=({className:e,...t})=>(0,f.jsx)("div",{"data-slot":"dialog-footer",className:l("flex flex-row flex-wrap justify-end gap-2",e),...t}),gt=({className:e,...t})=>(0,f.jsx)(_.Heading,{slot:"title","data-slot":"dialog-title",className:l("text-lg leading-6 font-semibold",e),...t}),xt=({className:e,...t})=>(0,f.jsx)(_.Text,{elementType:"p",slot:"description","data-slot":"dialog-description",className:l("text-muted-foreground text-sm",e),...t}),Ge=({className:e,shape:t="circle",variant:o="ghost",size:a="xs",...r})=>(0,f.jsxs)(K,{"aria-label":"Close",slot:"close",className:l("absolute top-2 right-2",e),shape:t,variant:o,size:a,...r,children:[(0,f.jsx)(Le,{}),(0,f.jsx)("span",{className:"sr-only",children:"Close"})]}),vt=({className:e,variant:t="outline",...o})=>(0,f.jsx)(K,{slot:"close",className:e,variant:t,...o});var so=require("react"),g=require("react-aria-components"),io=require("tailwind-variants");var I=require("react/jsx-runtime"),va=(0,io.tv)({slots:{root:"group min-w-64",button:["flex flex-1 items-center justify-between rounded-md py-4 text-sm font-medium transition-all outline-none hover:underline","data-[focus-visible]:border-ring data-[focus-visible]:ring-ring/50 data-[focus-visible]:ring-[3px]","data-[disabled]:pointer-events-none data-[disabled]:opacity-50"],panel:"",indicator:"text-muted-foreground pointer-events-none size-4 shrink-0 transition-transform duration-200 group-data-[expanded]:rotate-180"},variants:{isInGroup:{true:{root:"border-0 border-b last:border-b-0"}}},defaultVariants:{}}),{root:po,button:ba,panel:ha,indicator:Pa}=va();function ya({children:e,className:t,...o}){let a=(0,so.useContext)(g.DisclosureGroupStateContext)!==null;return(0,I.jsx)(g.Disclosure,{"data-slot":"disclosure",...o,className:(0,g.composeRenderProps)(t,(r,n)=>po({...n,isInGroup:a,className:r})),children:e})}function wa({children:e,className:t,...o}){return(0,I.jsx)(g.Heading,{className:"flex",children:(0,I.jsx)(g.Button,{slot:"trigger",...o,className:(0,g.composeRenderProps)(t,(a,r)=>ba({...r,className:a})),children:(0,g.composeRenderProps)(e,a=>(0,I.jsxs)(I.Fragment,{children:[a,(0,I.jsx)(de,{"aria-hidden":!0,className:Pa()})]}))})})}function Ca({children:e,className:t,...o}){return(0,I.jsx)(g.DisclosurePanel,{"data-slot":"disclosure-panel",...o,className:(0,g.composeRenderProps)(t,(a,r)=>ha({...r,className:a})),children:e})}function Ra({children:e,className:t,...o}){return(0,I.jsx)(g.DisclosureGroup,{...o,className:(0,g.composeRenderProps)(t,(a,r)=>po({...r,className:a})),children:e})}var lo=require("react"),se=require("react-aria-components"),bt=require("tailwind-variants");var Ae=require("react/jsx-runtime"),Ta=(0,bt.tv)({base:"fixed inset-0 z-50 flex w-full items-center justify-center bg-black/50",variants:{isBlurred:{true:"backdrop-blur-md backdrop-saturate-150"},isEntering:{true:"animate-in fade-in duration-300 ease-out"},isExiting:{true:"animate-out fade-out duration-200 ease-in"}}}),ka=(0,bt.tv)({base:"bg-background fixed z-50 flex h-auto flex-col shadow-lg transition",variants:{placement:{top:"data-[entering]:slide-in-from-top data-[exiting]:slide-out-to-top inset-x-0 top-0 border-b",bottom:"data-[entering]:slide-in-from-bottom data-[exiting]:slide-out-to-bottom inset-x-0 bottom-0 border-t",left:"data-[entering]:slide-in-from-left data-[exiting]:slide-out-to-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",right:"data-[entering]:slide-in-from-right data-[exiting]:slide-out-to-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm"},isEntering:{true:"animate-in duration-300"},isExiting:{true:"animate-out duration-200"}},defaultVariants:{placement:"right",isBlurred:!1}}),Aa=({className:e,overlayClassName:t,showCloseButton:o=!0,isDismissable:a=!0,isOpen:r,onOpenChange:n,placement:s,isBlurred:i,...p})=>{let d=(0,lo.useMemo)(()=>({showCloseButton:o,isDismissable:a}),[o,a]);return(0,Ae.jsx)(ke.Provider,{value:d,children:(0,Ae.jsx)(se.ModalOverlay,{"data-slot":"drawer-overlay",style:{height:"var(--visual-viewport-height)"},isOpen:r,onOpenChange:n,isDismissable:a,className:(0,se.composeRenderProps)(t,(N,te)=>Ta({...te,isBlurred:i,className:N})),...p,children:(0,Ae.jsx)(se.Modal,{"data-slot":"drawer",className:(0,se.composeRenderProps)(e,(N,te)=>ka({...te,placement:s,className:N})),...p})})})},Va=({className:e,...t})=>(0,Ae.jsx)("div",{"data-slot":"drawer-body",className:l("flex-1 overflow-auto",e),...t}),Na=dt,za=ut,Sa=mt,Da=ft,La=gt,Ia=xt,Ba=Ge,Fa=vt;var co=require("react-aria-components");var uo=require("react-aria-components");var mo=require("react-aria-components"),fo=require("tailwind-variants"),xo=require("react/jsx-runtime"),go=(0,fo.tv)({base:"text-muted-foreground inline-flex min-w-5 items-center justify-center rounded-sm border p-1 font-sans text-xs leading-none tracking-widest"});function Ea({className:e,...t}){return(0,xo.jsx)(mo.Keyboard,{className:go({className:e}),...t})}var ge=require("react-aria-components"),vo=require("tailwind-variants");var ht=require("react/jsx-runtime"),Ma=(0,vo.tv)({base:"underline-offset-4 outline-0 outline-offset-2 outline-current focus-visible:outline-2",variants:{variant:{hover:"hover:underline",underline:"underline",none:"no-underline"},isDisabled:{true:"pointer-events-none cursor-default opacity-50"}},defaultVariants:{variant:"hover"}});function Ga({className:e,variant:t,...o}){return(0,ht.jsx)(ge.Link,{"data-slot":"link",className:(0,ge.composeRenderProps)(e,(a,r)=>Ma({...r,variant:t,className:a})),...o})}function _a({className:e,variant:t,size:o,shape:a,...r}){return(0,ht.jsx)(ge.Link,{"data-slot":"link",className:(0,ge.composeRenderProps)(e,(n,s)=>Ie({...s,variant:t,size:o,shape:a,className:n})),...r})}var bo=require("react-aria-components");var ho=require("react/jsx-runtime");function Oa({className:e,...t}){return(0,ho.jsx)(bo.ListBox,{className:L(e,"group bg-popover text-popover-foreground min-w-[8rem] overflow-auto rounded-md border p-1 shadow-md outline-hidden data-[empty]:p-6 data-[empty]:text-center data-[empty]:text-sm"),...t})}var Ha=ue,Wa=ce,Ua=X,Ka=Z;var u=require("react-aria-components");var v=require("react/jsx-runtime"),qa=u.MenuTrigger,$a=Ee,Xa=X,Za=Z;function Ja({className:e,...t}){return(0,v.jsx)(ae,{className:(0,u.composeRenderProps)(e,o=>l("w-auto",o)),...t})}function Qa({className:e,...t}){return(0,v.jsx)(u.Menu,{className:(0,u.composeRenderProps)(e,o=>l("max-h-[inherit] min-w-[8rem] overflow-auto rounded-md p-1 outline-hidden [clip-path:inset(0_0_0_0_round_calc(var(--radius)-2px))]",o)),...t})}function Ya({className:e,children:t,variant:o,...a}){let r=a.textValue||(typeof t=="string"?t:void 0);return(0,v.jsx)(u.MenuItem,{className:(0,u.composeRenderProps)(e,(n,s)=>st({...s,variant:o,className:l("data-[selection-mode]:pr-2 data-[selection-mode]:pl-8",n,{"data-[open=true]:bg-accent data-[open=true]:text-accent-foreground":s.hasSubmenu})})),textValue:r,...a,children:n=>(0,v.jsxs)(v.Fragment,{children:[n.isSelected&&(0,v.jsxs)("span",{className:"pointer-events-none absolute left-2 flex size-4 items-center justify-center",children:[n.selectionMode==="single"&&(0,v.jsx)(De,{className:"size-2 fill-current"}),n.selectionMode==="multiple"&&(0,v.jsx)(le,{className:"size-4"})]}),typeof t=="function"?t(n):t,n.hasSubmenu&&(0,v.jsx)(Gt,{className:"ml-auto size-4"})]})})}function ja({className:e,...t}){return(0,v.jsxs)(u.MenuSection,{className:e,...t,children:["title"in t&&(0,v.jsx)(u.Header,{className:"px-2 py-1.5 text-sm font-medium",children:t.title}),(0,v.jsx)(u.Collection,{items:t.items,children:t.children})]})}function en({className:e,...t}){return(0,v.jsx)(u.Keyboard,{className:l("text-muted-foreground ml-auto font-sans text-xs tracking-widest",e),...t})}var Po=require("tailwind-variants"),_e=require("react/jsx-runtime"),tn=(0,Po.tv)({base:["border-input dark:bg-input/30 dark:hover:bg-input/50 relative w-full appearance-none rounded-md border bg-transparent px-3 pr-9 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow]","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] focus-visible:outline-none","disabled:cursor-not-allowed disabled:opacity-50","aria-invalid:ring-destructive/20 aria-invalid:dark:ring-destructive/40 aria-invalid:border-destructive"],variants:{size:{xs:"h-8",sm:"h-9",md:"h-10",lg:"h-11"}},defaultVariants:{size:"md"}}),on={backgroundRepeat:"no-repeat",backgroundPosition:"right 0.75rem center",backgroundSize:"1.25em",paddingRight:"2.5rem",backgroundImage:`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='oklch(70.8% 0 0)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")`};function rn({className:e,placeholder:t,size:o="md",...a}){return(0,_e.jsxs)("select",{className:tn({className:e,size:o}),style:on,...a,children:[t&&(0,_e.jsx)("option",{value:"",children:t}),a.children]})}var H=require("react-aria-components"),Pt=require("tailwind-variants");var A=require("react/jsx-runtime"),yo=(0,Pt.tv)({base:"text-muted-foreground hover:bg-accent flex flex-1 cursor-pointer items-center justify-center leading-none select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50"}),an=(0,Pt.tv)({slots:{root:"group flex flex-col gap-2",group:"relative isolate z-0",control:"absolute end-0 top-0 z-10 m-px flex h-[calc(100%-2px)] flex-col border-s-1"},variants:{size:{xs:{control:"w-4 text-xs"},sm:{control:"w-5 text-xs"},md:{control:"w-6 text-sm"},lg:{control:"w-7 text-base"},xl:{control:"w-8 text-base"}}},defaultVariants:{size:"md"}}),{root:nn,group:sn,control:pn}=an();function ln({label:e,description:t,errorMessage:o,size:a,...r}){return(0,A.jsxs)(wo,{...r,children:[e&&(0,A.jsx)(y,{children:e}),(0,A.jsxs)(H.Group,{className:sn(),children:[(0,A.jsx)(M,{size:a}),(0,A.jsxs)("div",{className:pn({size:a}),children:[(0,A.jsx)(H.Button,{className:yo({className:"rounded-se-md"}),slot:"increment",children:(0,A.jsx)(_t,{})}),(0,A.jsx)(H.Button,{className:yo({className:"rounded-ee-md border-t-1"}),slot:"decrement",children:(0,A.jsx)(de,{})})]})]}),t&&(0,A.jsx)(w,{children:t}),(0,A.jsx)(C,{children:o})]})}function wo({className:e,...t}){return(0,A.jsx)(H.NumberField,{className:(0,H.composeRenderProps)(e,o=>nn({className:o})),...t})}var Co=require("react"),He=require("react-aria-components");var Oe=require("react/jsx-runtime"),[yt,Ro]=F({name:"ProviderContext",strict:!1}),To=({children:e,locale:t="en-US",navigate:o,useHref:a,prefix:r})=>{let n=e;o&&(n=(0,Oe.jsx)(He.RouterProvider,{navigate:o,useHref:a,children:n}));let s=(0,Co.useMemo)(()=>({prefix:r}),[r]);return(0,Oe.jsx)(yt,{value:s,children:(0,Oe.jsx)(He.I18nProvider,{locale:t,children:n})})};var Q=require("react"),Vo=require("react/jsx-runtime"),dn={theme:"system",setTheme:()=>null},We=(0,Q.createContext)(dn);function ko({children:e,defaultTheme:t="system",storageKey:o="vela-ui-theme",...a}){let[r,n]=(0,Q.useState)(()=>localStorage.getItem(o)||t);(0,Q.useEffect)(()=>{let i=window.document.documentElement;if(i.classList.remove("light","dark"),r==="system"){let p=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(p);return}i.classList.add(r)},[r]);let s={theme:r,setTheme:i=>{localStorage.setItem(o,i),n(i)}};return(0,Vo.jsx)(We.Provider,{...a,value:s,children:e})}var Ao=()=>{let e=(0,Q.useContext)(We);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};var Y=require("react-aria-components"),wt=require("tailwind-variants");var b=require("react/jsx-runtime");function No({className:e,...t}){return(0,b.jsx)(Y.RadioGroup,{"data-slot":"radio-group",className:L(e,"group flex flex-col gap-2"),...t})}function cn({wrapperClassName:e,children:t,label:o,description:a,errorMessage:r,...n}){return(0,b.jsx)(No,{...n,children:(0,Y.composeRenderProps)(t,s=>(0,b.jsxs)(b.Fragment,{children:[o&&(0,b.jsx)(y,{children:o}),(0,b.jsx)("div",{"data-slot":"radio-group-wrapper",className:l("flex gap-2 select-none group-data-[orientation=horizontal]:flex-wrap group-data-[orientation=vertical]:flex-col",e),children:s}),a&&(0,b.jsx)(w,{children:a}),(0,b.jsx)(C,{children:r})]}))})}var un=(0,wt.tv)({base:"group flex items-center gap-2 text-sm transition",variants:{isDisabled:{true:"text-foreground/50 cursor-not-allowed"}}}),mn=(0,wt.tv)({extend:m,base:"relative flex aspect-square shrink-0 items-center justify-center rounded-full border bg-transparent shadow-xs transition duration-250 ease-out motion-reduce:transition-none",variants:{variant:{default:"text-white",outline:"text-primary dark:bg-input/30"},size:{sm:"size-4 [&_svg]:size-2",md:"size-5 [&_svg]:size-2.5",lg:"size-6 [&_svg]:size-3"},isSelected:{true:""},isPressed:{true:"scale-95"},isDisabled:{true:"cursor-not-allowed opacity-50"}},compoundVariants:[{variant:"default",isSelected:!0,className:"bg-primary border-transparent"},{variant:"outline",isSelected:!0,className:"border-primary"}],defaultVariants:{variant:"default",size:"md"}});function fn({className:e,children:t,indicatorClassName:o,size:a,variant:r,...n}){return(0,b.jsx)(Y.Radio,{className:(0,Y.composeRenderProps)(e,(s,i)=>un({...i,className:s})),...n,children:(0,Y.composeRenderProps)(t,(s,{isSelected:i,...p})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{"data-slot":"radio-indicator",className:mn({size:a,variant:r,isSelected:i,...p,className:o}),children:(0,b.jsx)(De,{className:l("fill-current transition-[transform,scale,opacity] duration-250 ease-out motion-reduce:transition-none",i?"scale-100 opacity-100":"scale-0 opacity-0")})}),s]}))})}var Ue=require("react-aria-components"),zo=require("tailwind-variants");var B=require("react/jsx-runtime"),gn=(0,zo.tv)({base:"group flex flex-col gap-2 data-[empty=true]:[&_button]:hidden [&_input]:[&::-webkit-search-cancel-button]:appearance-none [&_input]:[&::-webkit-search-decoration]:appearance-none"});function xn({placeholder:e,label:t,description:o,errorMessage:a,size:r,className:n,startElement:s=(0,B.jsx)(Kt,{}),endElement:i=(0,B.jsx)(K,{variant:"ghost",shape:"circle",size:"xs",children:(0,B.jsx)(Le,{})}),...p}){var d;return(0,B.jsxs)(Ue.SearchField,{"aria-label":(d=e!=null?e:p["aria-label"])!=null?d:"Search",className:(0,Ue.composeRenderProps)(n,N=>gn({className:N})),...p,children:[t&&(0,B.jsx)(y,{children:t}),(0,B.jsx)(re,{size:r,startElement:s,endElement:i,children:(0,B.jsx)(M,{placeholder:e})}),o&&(0,B.jsx)(w,{children:o}),(0,B.jsx)(C,{children:a})]})}var S=require("react-aria-components"),So=require("tailwind-variants");var h=require("react/jsx-runtime"),vn=(0,So.tv)({extend:m,base:"border-input [&_svg:not([class*='text-'])]:text-muted-foreground dark:bg-input/30 dark:hover:bg-input/50 group-data-[invalid]:ring-destructive/20 group-data-[invalid]:dark:ring-destructive/40 group-data-[invalid]:border-destructive flex w-full items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] [&_svg]:pointer-events-none [&_svg]:shrink-0",variants:{size:{xs:"h-8 [&_svg:not([class*='size-'])]:size-3.5",sm:"h-9 [&_svg:not([class*='size-'])]:size-4",md:"h-10 [&_svg:not([class*='size-'])]:size-4",lg:"h-11 [&_svg:not([class*='size-'])]:size-5"},isDisabled:{true:"cursor-not-allowed opacity-50"}},defaultVariants:{size:"md"}});function bn({label:e,description:t,errorMessage:o,className:a,children:r,...n}){return(0,h.jsx)(S.Select,{"data-slot":"select",...n,className:L(a,"group flex w-full flex-col gap-2"),children:(0,S.composeRenderProps)(r,s=>(0,h.jsxs)(h.Fragment,{children:[e&&(0,h.jsx)(y,{children:e}),s,t&&(0,h.jsx)(w,{children:t}),(0,h.jsx)(C,{children:o})]}))})}function hn({className:e,size:t,children:o,...a}){return(0,h.jsx)(S.Button,{"data-slot":"select-trigger",className:(0,S.composeRenderProps)(e,(r,n)=>vn({...n,size:t,className:r})),...a,children:(0,S.composeRenderProps)(o,r=>(0,h.jsxs)(h.Fragment,{children:[r,(0,h.jsx)(de,{"aria-hidden":"true",className:"opacity-50"})]}))})}function Pn({className:e,...t}){return(0,h.jsx)(S.SelectValue,{"data-slot":"select-value",className:(0,S.composeRenderProps)(e,o=>l("data-[placeholder]:text-muted-foreground line-clamp-1 flex items-center gap-2","[&>[slot=description]]:hidden",o)),...t})}function yn({className:e,...t}){return(0,h.jsx)(ae,{showArrow:!1,className:e,style:{minWidth:"var(--trigger-width)"},...t})}function wn({className:e,...t}){return(0,h.jsx)(S.ListBox,{className:L(e,"max-h-[inherit] min-w-[inherit] overflow-auto p-1 outline-hidden"),...t})}var Cn=ce,Rn=Ee,Tn=X,kn=Z,An=ue;var Do=require("react-aria-components"),Lo=require("tailwind-variants"),Io=require("react/jsx-runtime"),Vn=(0,Lo.tv)({base:"bg-border shrink-0 border-none",variants:{orientation:{horizontal:"h-px w-full",vertical:"h-full w-px"}},defaultVariants:{orientation:"horizontal"}});function Nn({orientation:e,className:t,...o}){return(0,Io.jsx)(Do.Separator,{"data-slot":"separator",className:Vn({orientation:e,className:t}),...o})}var Ct=require("react/jsx-runtime");function zn({className:e,isLoaded:t,children:o,...a}){return(0,Ct.jsx)("div",{className:l("bg-accent group animate-pulse rounded-md data-[loaded=true]:animate-none",e),"data-slot":"skeleton","data-loaded":t?"true":void 0,...a,children:o&&(0,Ct.jsx)("div",{className:"opacity-0 transition-opacity duration-300 group-data-[loaded=true]:opacity-100 motion-reduce:transition-none",children:o})})}var Bo=ze(require("react")),P=require("react-aria-components"),Fo=require("tailwind-variants");var ie=require("react/jsx-runtime"),Sn=(0,Fo.tv)({slots:{root:"group relative isolate flex touch-none flex-col gap-2",track:"bg-muted relative grow cursor-pointer rounded-full",range:"bg-primary absolute rounded-full",thumb:"border-primary bg-background ring-ring/50 top-[50%] left-[50%] block shrink-0 rounded-full border shadow-sm transition-[color,box-shadow] hover:ring-4",output:"text-muted-foreground text-sm"},variants:{orientation:{horizontal:{root:"",track:"w-full",range:"h-full"},vertical:{root:"",track:"h-full",range:"w-full"}},size:{sm:{track:"data-[orientation=horizontal]:h-1.5 data-[orientation=vertical]:w-1.5",thumb:"size-4"},md:{track:"data-[orientation=horizontal]:h-2 data-[orientation=vertical]:w-2",thumb:"size-5"},lg:{track:"data-[orientation=horizontal]:h-2.5 data-[orientation=vertical]:w-2.5",thumb:"size-6"}},isD