UNPKG

@vela-ui/react

Version:

Vela UI React components

2 lines 67.5 kB
"use client" "use strict";var or=Object.create;var Le=Object.defineProperty;var rr=Object.getOwnPropertyDescriptor;var ar=Object.getOwnPropertyNames;var nr=Object.getPrototypeOf,sr=Object.prototype.hasOwnProperty;var ir=(e,t)=>{for(var o in t)Le(e,o,{get:t[o],enumerable:!0})},Ht=(e,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ar(t))!sr.call(e,r)&&r!==o&&Le(e,r,{get:()=>t[r],enumerable:!(a=rr(t,r))||a.enumerable});return e};var Ie=(e,t,o)=>(o=e!=null?or(nr(e)):{},Ht(t||!e||!e.__esModule?Le(o,"default",{value:e,enumerable:!0}):o,e)),lr=e=>Ht(Le({},"__esModule",{value:!0}),e);var Ls={};ir(Ls,{Alert:()=>gr,AlertContent:()=>fr,AlertDescription:()=>vr,AlertTitle:()=>xr,Avatar:()=>Tr,AvatarFallback:()=>kr,AvatarImage:()=>Vr,Badge:()=>Nr,Button:()=>U,Card:()=>$r,CardAction:()=>Yr,CardContent:()=>jr,CardDescription:()=>Jr,CardFooter:()=>ea,CardHeader:()=>Qr,CardTitle:()=>Xr,CheckIcon:()=>oe,Checkbox:()=>ra,CheckboxGroup:()=>ia,CheckboxGroupRoot:()=>no,ChevronDownIcon:()=>re,ChevronRightIcon:()=>ot,ChevronUpIcon:()=>at,ChevronsUpDownIcon:()=>nt,CircleIcon:()=>we,CloseIcon:()=>Re,Combobox:()=>xa,ComboboxDescription:()=>Ca,ComboboxInput:()=>ha,ComboboxItem:()=>ya,ComboboxLabel:()=>wa,ComboboxList:()=>ba,ComboboxPopover:()=>va,ComboboxSection:()=>Pa,Description:()=>w,Dialog:()=>ka,DialogBody:()=>Aa,DialogClose:()=>Dt,DialogCloseIcon:()=>He,DialogContent:()=>kt,DialogContext:()=>Se,DialogDescription:()=>zt,DialogFooter:()=>Nt,DialogHeader:()=>At,DialogTitle:()=>St,DialogTrigger:()=>Tt,Disclosure:()=>La,DisclosureGroup:()=>Ma,DisclosureHeader:()=>Ia,DisclosurePanel:()=>Ba,Drawer:()=>Ga,DrawerBody:()=>_a,DrawerClose:()=>$a,DrawerCloseIcon:()=>qa,DrawerContent:()=>Ha,DrawerDescription:()=>Ka,DrawerFooter:()=>Za,DrawerHeader:()=>Wa,DrawerTitle:()=>Ua,DrawerTrigger:()=>Oa,ErrorIcon:()=>Sr,FieldError:()=>C,FileTrigger:()=>vo.FileTrigger,Form:()=>bo.Form,InfoIcon:()=>zr,Input:()=>F,InputGroup:()=>ne,Kbd:()=>Qa,KbdVariants:()=>yo,Label:()=>y,Link:()=>Ja,LinkButton:()=>Ya,ListBox:()=>ja,ListBoxDescription:()=>rn,ListBoxItem:()=>en,ListBoxLabel:()=>on,ListBoxSection:()=>tn,Loader:()=>bt,LoaderCircleIcon:()=>dt,LoaderRingIcon:()=>ct,Menu:()=>dn,MenuDescription:()=>ln,MenuItem:()=>cn,MenuLabel:()=>sn,MenuPopover:()=>pn,MenuSection:()=>un,MenuSeparator:()=>nn,MenuShortcut:()=>mn,MenuTrigger:()=>an,MinusIcon:()=>mt,Modal:()=>uo,ModalContent:()=>Rt,ModalOverlay:()=>co,NativeSelect:()=>xn,NumberField:()=>yn,NumberFieldRoot:()=>Ao,Popover:()=>se,PopoverContent:()=>fa,PopoverTrigger:()=>ga,ProviderContext:()=>Mt,Radio:()=>Vn,RadioGroup:()=>Cn,RadioGroupRoot:()=>Bo,SearchField:()=>An,SearchIcon:()=>gt,Select:()=>Sn,SelectDescription:()=>Fn,SelectItem:()=>Gn,SelectLabel:()=>En,SelectList:()=>In,SelectPopover:()=>Ln,SelectSection:()=>Bn,SelectSeparator:()=>Mn,SelectTrigger:()=>zn,SelectValue:()=>Dn,Separator:()=>On,Skeleton:()=>Hn,Slider:()=>Xn,SliderOutput:()=>Jn,SliderRange:()=>jn,SliderThumb:()=>es,SliderTrack:()=>Yn,SubmenuTrigger:()=>u.SubmenuTrigger,SuccessIcon:()=>Dr,Switch:()=>ns,Tab:()=>gs,TabList:()=>ms,TabPanel:()=>fs,Tabs:()=>us,TextField:()=>vs,Textarea:()=>hs,ThemeProvider:()=>Do,ThemeProviderContext:()=>Ke,ToggleButton:()=>Cs,ToggleButtonGroup:()=>ws,Tooltip:()=>Vs,TooltipTrigger:()=>Ts,VelaUIProvider:()=>zo,WarningIcon:()=>Lr,badgeVariants:()=>Xt,buttonVariants:()=>Ee,cn:()=>p,componentColors:()=>zs,componentDirections:()=>Ds,componentPositions:()=>As,componentShapes:()=>Ns,componentSizes:()=>Ss,componentStatuses:()=>er,composeTailwindRenderProps:()=>S,defaultThemes:()=>ks,fieldVariants:()=>ao,toggleButtonVariants:()=>Jo,useCallbackRef:()=>ce,useDialogContext:()=>Vt,useDisclosure:()=>br,useIsHydrated:()=>Ye,useMediaQuery:()=>hr,useProviderContext:()=>So,useTheme:()=>Lo,useToggleGroupContext:()=>Ot});module.exports=lr(Ls);var Wt=require("tailwind-variants"),he=require("react/jsx-runtime"),pr=(0,Wt.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:dr,content:cr,title:ur,description:mr}=pr();function gr({className:e,...t}){return(0,he.jsx)("div",{"data-slot":"alert",role:"alert",className:dr({className:e}),...t})}function fr({className:e,...t}){return(0,he.jsx)("div",{"data-slot":"alert-content",className:cr({className:e}),...t})}function xr({className:e,...t}){return(0,he.jsx)("div",{"data-slot":"alert-title",className:ur({className:e}),...t})}function vr({className:e,...t}){return(0,he.jsx)("div",{"data-slot":"alert-description",className:mr({className:e}),...t})}var L=Ie(require("react")),Kt=require("tailwind-variants");var de=require("react");function ce(e,t=[]){let o=(0,de.useRef)(()=>{throw new Error("Cannot call an event handler while rendering.")});return(0,de.useInsertionEffect)(()=>{o.current=e}),(0,de.useCallback)((...a)=>{var r;return(r=o.current)==null?void 0:r.call(o,...a)},t)}var ue=require("react");function br(e={}){let t=ce(e.onOpen),o=ce(e.onClose),[a,r]=(0,ue.useState)(e.defaultOpen||!1),n=e.isOpen!==void 0?e.isOpen:a,s=e.isOpen!==void 0,i=(0,ue.useCallback)(()=>{s||r(!1),o==null||o()},[s,o]),l=(0,ue.useCallback)(()=>{s||r(!0),t==null||t()},[s,t]),d=(0,ue.useCallback)(()=>{n?i():l()},[n,l,i]);return{isOpen:n,onOpen:l,onClose:i,onOpenChange:d,setOpen:r}}var Zt=Ie(require("react"));function Ye(){return Zt.useSyncExternalStore(()=>()=>{},()=>!0,()=>!1)}var Be=require("react"),hr=e=>{let[t,o]=(0,Be.useState)(!1);return(0,Be.useEffect)(()=>{let a=n=>{o(n.matches)},r=matchMedia(e);return r.addEventListener("change",a),o(r.matches),()=>r.removeEventListener("change",a)},[e]),t};var Me=Ie(require("react"));function M(e={}){let{strict:t=!0,errorMessage:o="useContext: `context` is undefined. Seems you forgot to wrap component within the Provider",name:a}=e,r=Me.createContext(void 0);r.displayName=a;function n(){var i;let s=Me.useContext(r);if(!s&&t){let l=new Error(o);throw l.name="ContextError",(i=Error.captureStackTrace)==null||i.call(Error,l,n),l}return s}return[r.Provider,n,r]}var Pe=require("react/jsx-runtime"),Pr=(0,Kt.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:yr,image:wr,fallback:Cr}=Pr(),[Rr,qt]=M({name:"AvatarContext"});function Tr({className:e,shape:t,size:o,...a}){let[r,n]=L.default.useState("idle");return(0,Pe.jsx)(Rr,{value:{shape:t,size:o,imageLoadingStatus:r,onImageLoadingStatusChange:n},children:(0,Pe.jsx)("span",{"data-slot":"avatar",className:yr({className:e,shape:t,size:o}),...a})})}function Vr({src:e,className:t,onLoadingStatusChange:o=()=>{},...a}){let r=qt(),n=Ar(e,a),s=ce(i=>{o(i),r.onImageLoadingStatusChange(i)});return(0,L.useLayoutEffect)(()=>{n!=="idle"&&s(n)},[n,s]),n==="loaded"?(0,Pe.jsx)("img",{"data-slot":"avatar-image",className:wr({className:t}),src:e,...a}):null}function kr({className:e,delayMs:t,...o}){let a=qt(),[r,n]=(0,L.useState)(t===void 0);return(0,L.useEffect)(()=>{if(t!==void 0){let s=window.setTimeout(()=>n(!0),t);return()=>window.clearTimeout(s)}},[t]),r&&a.imageLoadingStatus!=="loaded"?(0,Pe.jsx)("span",{"data-slot":"avatar-fallback",className:Cr({className:e}),...o}):null}function Ut(e,t){return e?t?(e.src!==t&&(e.src=t),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function Ar(e,{referrerPolicy:t,crossOrigin:o}){let a=Ye(),r=L.default.useRef(null),n=a?(r.current||(r.current=new window.Image),r.current):null,[s,i]=L.default.useState(()=>Ut(n,e));return(0,L.useLayoutEffect)(()=>{i(Ut(n,e))},[n,e]),(0,L.useLayoutEffect)(()=>{let l=te=>()=>{i(te)};if(!n)return;let d=l("loaded"),N=l("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 Qt=require("tailwind-variants");var $t=require("tailwind-variants"),m=(0,$t.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 Jt=require("react/jsx-runtime"),Xt=(0,Qt.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 Nr({className:e,variant:t,...o}){return(0,Jt.jsx)("span",{"data-slot":"badge",className:Xt({variant:t,className:e}),...o})}var ke=require("react-aria-components"),to=require("tailwind-variants");var eo=require("tailwind-variants");var je=require("react/jsx-runtime"),oe=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:"M20 6 9 17l-5-5"})});var et=require("react/jsx-runtime"),re=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:"m6 9 6 6 6-6"})});var tt=require("react/jsx-runtime"),ot=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:"m9 18 6-6-6-6"})});var rt=require("react/jsx-runtime"),at=e=>(0,rt.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,rt.jsx)("path",{d:"m18 15-6-6-6 6"})});var ye=require("react/jsx-runtime"),nt=e=>(0,ye.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,ye.jsx)("path",{d:"m7 15 5 5 5-5"}),(0,ye.jsx)("path",{d:"m7 9 5-5 5 5"})]});var st=require("react/jsx-runtime"),we=e=>(0,st.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,st.jsx)("circle",{cx:"12",cy:"12",r:"10"})});var Ce=require("react/jsx-runtime"),Re=e=>(0,Ce.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,Ce.jsx)("path",{d:"M18 6 6 18"}),(0,Ce.jsx)("path",{d:"m6 6 12 12"})]});var it=require("react/jsx-runtime"),Sr=e=>(0,it.jsx)("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,it.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 15H13V17H11V15ZM11 7H13V13H11V7Z"})});var lt=require("react/jsx-runtime"),zr=e=>(0,lt.jsx)("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,lt.jsx)("path",{d:"M12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22ZM12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11 7H13V9H11V7ZM11 11H13V17H11V11Z"})});var pt=require("react/jsx-runtime"),dt=e=>(0,pt.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,pt.jsx)("path",{d:"M21 12a9 9 0 1 1-6.219-8.56"})});var Te=require("react/jsx-runtime"),ct=e=>(0,Te.jsxs)("svg",{fill:"none",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,Te.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,Te.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 ut=require("react/jsx-runtime"),mt=e=>(0,ut.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,ut.jsx)("path",{d:"M5 12h14"})});var Ve=require("react/jsx-runtime"),gt=e=>(0,Ve.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,Ve.jsx)("path",{d:"m21 21-4.34-4.34"}),(0,Ve.jsx)("circle",{cx:"11",cy:"11",r:"8"})]});var ft=require("react/jsx-runtime"),Dr=e=>(0,ft.jsx)("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,ft.jsx)("path",{d:"M4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12ZM12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2ZM17.4571 9.45711L16.0429 8.04289L11 13.0858L8.20711 10.2929L6.79289 11.7071L11 15.9142L17.4571 9.45711Z"})});var xt=require("react/jsx-runtime"),Lr=e=>(0,xt.jsx)("svg",{fill:"currentColor",width:"1em",height:"1em",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",...e,children:(0,xt.jsx)("path",{d:"M12.8659 3.00017L22.3922 19.5002C22.6684 19.9785 22.5045 20.5901 22.0262 20.8662C21.8742 20.954 21.7017 21.0002 21.5262 21.0002H2.47363C1.92135 21.0002 1.47363 20.5525 1.47363 20.0002C1.47363 19.8246 1.51984 19.6522 1.60761 19.5002L11.1339 3.00017C11.41 2.52187 12.0216 2.358 12.4999 2.63414C12.6519 2.72191 12.7782 2.84815 12.8659 3.00017ZM4.20568 19.0002H19.7941L11.9999 5.50017L4.20568 19.0002ZM10.9999 16.0002H12.9999V18.0002H10.9999V16.0002ZM10.9999 9.00017H12.9999V14.0002H10.9999V9.00017Z"})});var Yt=require("clsx"),jt=require("react-aria-components"),vt=require("tailwind-merge"),p=(...e)=>(0,vt.twMerge)((0,Yt.clsx)(...e));function S(e,t){return(0,jt.composeRenderProps)(e,o=>(0,vt.twMerge)(t,o))}var c=require("react/jsx-runtime"),Ir=(0,eo.tv)({base:"relative",variants:{size:{xs:"size-3",sm:"size-4",md:"size-5",lg:"size-8",xl:"size-10"}},defaultVariants:{size:"md"}});function Br({className:e,...t}){return(0,c.jsx)(dt,{className:p("size-4 animate-spin",e),"data-slot":"icon",...t})}var Mr=({className:e,...t})=>(0,c.jsx)(ct,{className:p("size-4 animate-spin",e),"data-slot":"icon",...t});function Er({className:e,...t}){return(0,c.jsx)("svg",{className:p("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 Fr={default:Br,ring:Mr,spin:Er},Gr="default";function bt(e){let{className:t,size:o,ref:a,variant:r,...n}=e,s=Fr[r!=null?r:Gr];return(0,c.jsx)(s,{role:"presentation",ref:a,className:Ir({size:o,className:t}),...n})}var ae=require("react/jsx-runtime"),Ee=(0,to.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 U({className:e,variant:t,size:o,shape:a,loader:r=(0,ae.jsx)(bt,{}),...n}){return(0,ae.jsx)(ke.Button,{"data-slot":"button",className:(0,ke.composeRenderProps)(e,(s,i)=>Ee({...i,variant:t,size:o,shape:a,className:s})),...n,children:(0,ke.composeRenderProps)(n.children,s=>(0,ae.jsxs)(ae.Fragment,{children:[n.isPending&&r,s]}))})}var oo=require("tailwind-variants"),K=require("react/jsx-runtime"),_r=(0,oo.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:Or,header:Hr,title:Wr,description:Zr,action:Ur,content:Kr,footer:qr}=_r();function $r({className:e,...t}){return(0,K.jsx)("div",{"data-slot":"card",className:Or({className:e}),...t})}function Qr({className:e,...t}){return(0,K.jsx)("div",{"data-slot":"card-header",className:Hr({className:e}),...t})}function Xr({className:e,...t}){return(0,K.jsx)("div",{"data-slot":"card-title",className:Wr({className:e}),...t})}function Jr({className:e,...t}){return(0,K.jsx)("div",{"data-slot":"card-description",className:Zr({className:e}),...t})}function Yr({className:e,...t}){return(0,K.jsx)("div",{"data-slot":"card-action",className:Ur({className:e}),...t})}function jr({className:e,...t}){return(0,K.jsx)("div",{"data-slot":"card-content",className:Kr({className:e}),...t})}function ea({className:e,...t}){return(0,K.jsx)("div",{"data-slot":"card-footer",className:qr({className:e}),...t})}var Ae=require("react-aria-components"),ht=require("tailwind-variants");var O=require("react/jsx-runtime"),ta=(0,ht.tv)({base:"group relative flex items-center gap-2 text-sm transition",variants:{isDisabled:{true:"cursor-not-allowed opacity-50"}}}),oa=(0,ht.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 ra({className:e,children:t,indicatorClassName:o,size:a,...r}){return(0,O.jsx)(Ae.Checkbox,{className:(0,Ae.composeRenderProps)(e,(n,s)=>ta({...s,className:n})),...r,children:(0,Ae.composeRenderProps)(t,(n,{isSelected:s,isIndeterminate:i,...l})=>(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)("div",{"data-slot":"checkbox-indicator",className:oa({isSelected:s||i,size:a,...l,className:o}),children:i?(0,O.jsx)(mt,{}):s?(0,O.jsx)(oe,{}):null}),n]}))})}var Ge=require("react-aria-components");var q=require("react-aria-components"),ro=require("tailwind-variants"),Fe=require("react/jsx-runtime"),ao=(0,ro.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:aa,description:na,fieldError:sa}=ao();function y({className:e,...t}){return(0,Fe.jsx)(q.Label,{"data-slot":"label",className:aa({className:e}),...t})}function w({className:e,...t}){return(0,Fe.jsx)(q.Text,{slot:"description",className:na({className:e}),...t})}function C({className:e,...t}){return(0,Fe.jsx)(q.FieldError,{className:(0,q.composeRenderProps)(e,o=>sa({className:o})),...t})}var E=require("react/jsx-runtime");function no({className:e,...t}){return(0,E.jsx)(Ge.CheckboxGroup,{"data-slot":"checkbox-group",className:S(e,"group flex flex-col gap-2"),...t})}function ia({children:e,label:t,description:o,errorMessage:a,...r}){return(0,E.jsx)(no,{...r,children:(0,Ge.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 fe=require("react-aria-components");var x=require("react-aria-components"),Pt=require("tailwind-merge"),so=require("tailwind-variants");var V=require("react/jsx-runtime"),yt=(0,so.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 me({className:e,...t}){return(0,V.jsxs)(x.ListBoxSection,{className:e,children:["title"in t&&(0,V.jsx)(x.Header,{className:"text-muted-foreground px-2 py-1.5 text-xs",children:t.title}),(0,V.jsx)(x.Collection,{items:t.items,children:t.children})]})}function ge({className:e,variant:t,...o}){let a=o.textValue||(typeof o.children=="string"?o.children:void 0);return(0,V.jsx)(x.ListBoxItem,{textValue:a,className:(0,x.composeRenderProps)(e,(r,n)=>yt({...n,variant:t,className:r})),...o,children:(0,x.composeRenderProps)(o.children,(r,{isSelected:n})=>(0,V.jsxs)(V.Fragment,{children:[n&&(0,V.jsx)("span",{className:"pointer-events-none absolute right-2 flex size-4 items-center justify-center",children:(0,V.jsx)(oe,{})}),r]}))})}function $({className:e,...t}){return(0,V.jsx)(x.Text,{slot:"label",className:e,...t})}function Q({className:e,...t}){return(0,V.jsx)(x.Text,{slot:"description",className:(0,Pt.twMerge)("text-muted-foreground text-sm",e),...t})}function _e({className:e,...t}){return(0,V.jsx)(x.Separator,{orientation:"horizontal",className:(0,Pt.twMerge)("bg-border -mx-1 my-1 h-px",e),...t})}var Oe=require("react"),X=require("react-aria-components"),wt=require("tailwind-variants");var z=require("react/jsx-runtime"),la=(0,wt.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 F({className:e,size:t,hasStartElement:o,hasEndElement:a,...r}){return(0,z.jsx)(X.Input,{"data-slot":"input",className:(0,X.composeRenderProps)(e,(n,s)=>la({...s,size:t,hasStartElement:o,hasEndElement:a,className:n})),...r})}var pa=(0,wt.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:da,addon:ca,element:ua}=pa(),ne=({children:e,startElement:t,endElement:o,startAddon:a,endAddon:r,size:n,className:s,...i})=>(0,z.jsx)(X.Group,{"data-slot":"input-group",className:(0,X.composeRenderProps)(s,l=>da({size:n,className:l})),...i,children:(0,X.composeRenderProps)(e,l=>(0,z.jsxs)(z.Fragment,{children:[t&&!a&&(0,z.jsx)(lo,{size:n,className:"left-0",children:t}),a&&(0,z.jsx)(io,{size:n,children:a}),(0,Oe.isValidElement)(l)&&l.type===F?(0,Oe.cloneElement)(l,{hasStartElement:!!t,hasEndElement:!!o,size:n,...l.props||{}}):l,o&&!r&&(0,z.jsx)(lo,{size:n,className:"right-0",children:o}),r&&(0,z.jsx)(io,{size:n,children:r})]}))});function io({className:e,size:t,...o}){return(0,z.jsx)("div",{"data-slot":"input-addon",className:ca({size:t,className:e}),...o})}function lo({className:e,size:t,...o}){return(0,z.jsx)("div",{"data-slot":"input-element",className:ua({size:t,className:e}),...o})}var R=require("react-aria-components"),po=require("tailwind-variants");var G=require("react/jsx-runtime"),ma=(0,po.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"]}}}),ga=R.DialogTrigger,se=({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)=>ma({...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 fa({className:e,...t}){return(0,G.jsx)(R.Dialog,{"data-slot":"popover-content",className:p("p-4 outline-hidden",e),...t})}var T=require("react/jsx-runtime");function xa({label:e,description:t,errorMessage:o,children:a,className:r,...n}){return(0,T.jsx)(fe.ComboBox,{"data-slot":"combobox",...n,className:S(r,"group flex w-full flex-col gap-2"),children:(0,fe.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 va({className:e,...t}){return(0,T.jsx)(se,{showArrow:!1,className:e,style:{minWidth:"var(--trigger-width)"},...t})}function ba({className:e,...t}){return(0,T.jsx)(fe.ListBox,{className:S(e,"max-h-[inherit] min-w-[inherit] overflow-auto p-1 outline-hidden"),...t})}function ha({size:e,endElementProps:t,endElement:o=(0,T.jsx)(U,{variant:"ghost",shape:"square",size:e,...t,children:(0,T.jsx)(nt,{})}),...a}){return(0,T.jsx)(ne,{size:e,endElement:o,children:(0,T.jsx)(F,{...a})})}var Pa=me,ya=ge,wa=$,Ca=Q;var xe=require("react"),_=require("react-aria-components");var ie=require("react-aria-components"),Ct=require("tailwind-variants"),Ne=require("react/jsx-runtime"),Ra=(0,Ct.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}}),Ta=(0,Ct.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 co({className:e,placement:t,scrollBehavior:o,isBlurred:a,...r}){return(0,Ne.jsx)(ie.ModalOverlay,{"data-slot":"modal-overlay",style:{height:"var(--visual-viewport-height)"},className:(0,ie.composeRenderProps)(e,(n,s)=>Ra({...s,placement:t,scrollBehavior:o,isBlurred:a,className:n})),...r})}function uo({className:e,size:t,scrollBehavior:o,...a}){return(0,Ne.jsx)(ie.Modal,{"data-slot":"modal",className:(0,ie.composeRenderProps)(e,(r,n)=>Ta({...n,size:t,scrollBehavior:o,className:r})),...a})}function Rt({className:e,overlayClassName:t,isDismissable:o=!0,isOpen:a,onOpenChange:r,size:n,placement:s,scrollBehavior:i,isBlurred:l,...d}){return(0,Ne.jsx)(co,{isDismissable:o,isOpen:a,onOpenChange:r,className:t,placement:s,scrollBehavior:i,isBlurred:l,...d,children:(0,Ne.jsx)(uo,{className:e,size:n,scrollBehavior:i,...d})})}var g=require("react/jsx-runtime"),Tt=_.DialogTrigger,Va={role:"dialog",isDismissable:!0,showCloseButton:!0,scrollBehavior:"outside"},Se=(0,xe.createContext)(Va),Vt=()=>(0,xe.useContext)(Se),ka=({role:e="dialog",showCloseButton:t=!0,isDismissable:o,scrollBehavior:a,...r})=>{let n=o!=null?o:e!=="alertdialog",s=(0,xe.useMemo)(()=>({role:e,showCloseButton:t,isDismissable:n,scrollBehavior:a}),[e,t,n,a]);return(0,g.jsx)(Se.Provider,{value:s,children:(0,g.jsx)(Rt,{isDismissable:n,scrollBehavior:a,...r})})},kt=({className:e,children:t,...o})=>{let{role:a,isDismissable:r,showCloseButton:n}=Vt(),s=n&&r;return(0,g.jsx)(_.Dialog,{role:a,"data-slot":"dialog-content",className:p("relative flex h-full w-full flex-col gap-4 p-6 outline-hidden",e),...o,children:(0,_.composeRenderProps)(t,i=>(0,g.jsxs)(g.Fragment,{children:[i,s&&(0,g.jsx)(He,{})]}))})},Aa=({className:e,...t})=>{let{scrollBehavior:o}=Vt();return(0,g.jsx)("div",{"data-slot":"dialog-body",className:p("flex-1",o==="inside"?"overflow-auto":"",e),...t})},At=({className:e,...t})=>(0,g.jsx)("div",{"data-slot":"dialog-header",className:p("flex flex-col gap-2 text-left",e),...t}),Nt=({className:e,...t})=>(0,g.jsx)("div",{"data-slot":"dialog-footer",className:p("flex flex-row flex-wrap justify-end gap-2",e),...t}),St=({className:e,...t})=>(0,g.jsx)(_.Heading,{slot:"title","data-slot":"dialog-title",className:p("text-lg leading-6 font-semibold",e),...t}),zt=({className:e,...t})=>(0,g.jsx)(_.Text,{elementType:"p",slot:"description","data-slot":"dialog-description",className:p("text-muted-foreground text-sm",e),...t}),He=({className:e,shape:t="circle",variant:o="ghost",size:a="xs",...r})=>(0,g.jsxs)(U,{"aria-label":"Close",slot:"close",className:p("absolute top-2 right-2",e),shape:t,variant:o,size:a,...r,children:[(0,g.jsx)(Re,{}),(0,g.jsx)("span",{className:"sr-only",children:"Close"})]}),Dt=({className:e,variant:t="outline",...o})=>(0,g.jsx)(U,{slot:"close",className:e,variant:t,...o});var mo=require("react"),f=require("react-aria-components"),go=require("tailwind-variants");var I=require("react/jsx-runtime"),Na=(0,go.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:fo,button:Sa,panel:za,indicator:Da}=Na();function La({children:e,className:t,...o}){let a=(0,mo.useContext)(f.DisclosureGroupStateContext)!==null;return(0,I.jsx)(f.Disclosure,{"data-slot":"disclosure",...o,className:(0,f.composeRenderProps)(t,(r,n)=>fo({...n,isInGroup:a,className:r})),children:e})}function Ia({children:e,className:t,...o}){return(0,I.jsx)(f.Heading,{className:"flex",children:(0,I.jsx)(f.Button,{slot:"trigger",...o,className:(0,f.composeRenderProps)(t,(a,r)=>Sa({...r,className:a})),children:(0,f.composeRenderProps)(e,a=>(0,I.jsxs)(I.Fragment,{children:[a,(0,I.jsx)(re,{"aria-hidden":!0,className:Da()})]}))})})}function Ba({children:e,className:t,...o}){return(0,I.jsx)(f.DisclosurePanel,{"data-slot":"disclosure-panel",...o,className:(0,f.composeRenderProps)(t,(a,r)=>za({...r,className:a})),children:e})}function Ma({children:e,className:t,...o}){return(0,I.jsx)(f.DisclosureGroup,{...o,className:(0,f.composeRenderProps)(t,(a,r)=>fo({...r,className:a})),children:e})}var xo=require("react"),le=require("react-aria-components"),Lt=require("tailwind-variants");var ze=require("react/jsx-runtime"),Ea=(0,Lt.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"}}}),Fa=(0,Lt.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}}),Ga=({className:e,overlayClassName:t,showCloseButton:o=!0,isDismissable:a=!0,isOpen:r,onOpenChange:n,placement:s,isBlurred:i,...l})=>{let d=(0,xo.useMemo)(()=>({showCloseButton:o,isDismissable:a}),[o,a]);return(0,ze.jsx)(Se.Provider,{value:d,children:(0,ze.jsx)(le.ModalOverlay,{"data-slot":"drawer-overlay",style:{height:"var(--visual-viewport-height)"},isOpen:r,onOpenChange:n,isDismissable:a,className:(0,le.composeRenderProps)(t,(N,te)=>Ea({...te,isBlurred:i,className:N})),...l,children:(0,ze.jsx)(le.Modal,{"data-slot":"drawer",className:(0,le.composeRenderProps)(e,(N,te)=>Fa({...te,placement:s,className:N})),...l})})})},_a=({className:e,...t})=>(0,ze.jsx)("div",{"data-slot":"drawer-body",className:p("flex-1 overflow-auto",e),...t}),Oa=Tt,Ha=kt,Wa=At,Za=Nt,Ua=St,Ka=zt,qa=He,$a=Dt;var vo=require("react-aria-components");var bo=require("react-aria-components");var ho=require("react-aria-components"),Po=require("tailwind-variants"),wo=require("react/jsx-runtime"),yo=(0,Po.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 Qa({className:e,...t}){return(0,wo.jsx)(ho.Keyboard,{className:yo({className:e}),...t})}var ve=require("react-aria-components"),Co=require("tailwind-variants");var It=require("react/jsx-runtime"),Xa=(0,Co.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 Ja({className:e,variant:t,...o}){return(0,It.jsx)(ve.Link,{"data-slot":"link",className:(0,ve.composeRenderProps)(e,(a,r)=>Xa({...r,variant:t,className:a})),...o})}function Ya({className:e,variant:t,size:o,shape:a,...r}){return(0,It.jsx)(ve.Link,{"data-slot":"link",className:(0,ve.composeRenderProps)(e,(n,s)=>Ee({...s,variant:t,size:o,shape:a,className:n})),...r})}var Ro=require("react-aria-components");var To=require("react/jsx-runtime");function ja({className:e,...t}){return(0,To.jsx)(Ro.ListBox,{className:S(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 en=ge,tn=me,on=$,rn=Q;var u=require("react-aria-components");var v=require("react/jsx-runtime"),an=u.MenuTrigger,nn=_e,sn=$,ln=Q;function pn({className:e,...t}){return(0,v.jsx)(se,{className:(0,u.composeRenderProps)(e,o=>p("w-auto",o)),...t})}function dn({className:e,...t}){return(0,v.jsx)(u.Menu,{className:(0,u.composeRenderProps)(e,o=>p("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 cn({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)=>yt({...s,variant:o,className:p("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)(we,{className:"size-2 fill-current"}),n.selectionMode==="multiple"&&(0,v.jsx)(oe,{className:"size-4"})]}),typeof t=="function"?t(n):t,n.hasSubmenu&&(0,v.jsx)(ot,{className:"ml-auto size-4"})]})})}function un({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 mn({className:e,...t}){return(0,v.jsx)(u.Keyboard,{className:p("text-muted-foreground ml-auto font-sans text-xs tracking-widest",e),...t})}var Vo=require("tailwind-variants"),We=require("react/jsx-runtime"),gn=(0,Vo.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"}}),fn={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 xn({className:e,placeholder:t,size:o="md",...a}){return(0,We.jsxs)("select",{className:gn({className:e,size:o}),style:fn,...a,children:[t&&(0,We.jsx)("option",{value:"",children:t}),a.children]})}var H=require("react-aria-components"),Bt=require("tailwind-variants");var k=require("react/jsx-runtime"),ko=(0,Bt.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"}),vn=(0,Bt.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:bn,group:hn,control:Pn}=vn();function yn({label:e,description:t,errorMessage:o,size:a,...r}){return(0,k.jsxs)(Ao,{...r,children:[e&&(0,k.jsx)(y,{children:e}),(0,k.jsxs)(H.Group,{className:hn(),children:[(0,k.jsx)(F,{size:a}),(0,k.jsxs)("div",{className:Pn({size:a}),children:[(0,k.jsx)(H.Button,{className:ko({className:"rounded-se-md"}),slot:"increment",children:(0,k.jsx)(at,{})}),(0,k.jsx)(H.Button,{className:ko({className:"rounded-ee-md border-t-1"}),slot:"decrement",children:(0,k.jsx)(re,{})})]})]}),t&&(0,k.jsx)(w,{children:t}),(0,k.jsx)(C,{children:o})]})}function Ao({className:e,...t}){return(0,k.jsx)(H.NumberField,{className:(0,H.composeRenderProps)(e,o=>bn({className:o})),...t})}var No=require("react"),Ue=require("react-aria-components");var Ze=require("react/jsx-runtime"),[Mt,So]=M({name:"ProviderContext",strict:!1}),zo=({children:e,locale:t="en-US",navigate:o,useHref:a,prefix:r})=>{let n=e;o&&(n=(0,Ze.jsx)(Ue.RouterProvider,{navigate:o,useHref:a,children:n}));let s=(0,No.useMemo)(()=>({prefix:r}),[r]);return(0,Ze.jsx)(Mt,{value:s,children:(0,Ze.jsx)(Ue.I18nProvider,{locale:t,children:n})})};var J=require("react"),Io=require("react/jsx-runtime"),wn={theme:"system",setTheme:()=>null},Ke=(0,J.createContext)(wn);function Do({children:e,defaultTheme:t="system",storageKey:o="vela-ui-theme",...a}){let[r,n]=(0,J.useState)(()=>localStorage.getItem(o)||t);(0,J.useEffect)(()=>{let i=window.document.documentElement;if(i.classList.remove("light","dark"),r==="system"){let l=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light";i.classList.add(l);return}i.classList.add(r)},[r]);let s={theme:r,setTheme:i=>{localStorage.setItem(o,i),n(i)}};return(0,Io.jsx)(Ke.Provider,{...a,value:s,children:e})}var Lo=()=>{let e=(0,J.useContext)(Ke);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e};var Y=require("react-aria-components"),Et=require("tailwind-variants");var b=require("react/jsx-runtime");function Bo({className:e,...t}){return(0,b.jsx)(Y.RadioGroup,{"data-slot":"radio-group",className:S(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)(Bo,{...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:p("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 Rn=(0,Et.tv)({base:"group flex items-center gap-2 text-sm transition",variants:{isDisabled:{true:"text-foreground/50 cursor-not-allowed"}}}),Tn=(0,Et.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 Vn({className:e,children:t,indicatorClassName:o,size:a,variant:r,...n}){return(0,b.jsx)(Y.Radio,{className:(0,Y.composeRenderProps)(e,(s,i)=>Rn({...i,className:s})),...n,children:(0,Y.composeRenderProps)(t,(s,{isSelected:i,...l})=>(0,b.jsxs)(b.Fragment,{children:[(0,b.jsx)("div",{"data-slot":"radio-indicator",className:Tn({size:a,variant:r,isSelected:i,...l,className:o}),children:(0,b.jsx)(we,{className:p("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 qe=require("react-aria-components"),Mo=require("tailwind-variants");var B=require("react/jsx-runtime"),kn=(0,Mo.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 An({placeholder:e,label:t,description:o,errorMessage:a,size:r,className:n,startElement:s=(0,B.jsx)(gt,{}),endElement:i=(0,B.jsx)(U,{variant:"ghost",shape:"circle",size:"xs",children:(0,B.jsx)(Re,{})}),...l}){var d;return(0,B.jsxs)(qe.SearchField,{"aria-label":(d=e!=null?e:l["aria-label"])!=null?d:"Search",className:(0,qe.composeRenderProps)(n,N=>kn({className:N})),...l,children:[t&&(0,B.jsx)(y,{children:t}),(0,B.jsx)(ne,{size:r,startElement:s,endElement:i,children:(0,B.jsx)(F,{placeholder:e})}),o&&(0,B.jsx)(w,{children:o}),(0,B.jsx)(C,{children:a})]})}var D=require("react-aria-components"),Eo=require("tailwind-variants");var h=require("react/jsx-runtime"),Nn=(0,Eo.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