@me1a/ui 2.0.2 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import*as p from'react';import {Slot}from'@radix-ui/react-slot';import {cva}from'class-variance-authority';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {Loader2,X,ChevronDown,PanelLeft,ChevronRight,Check,Circle}from'lucide-react';import {jsx,jsxs}from'react/jsx-runtime';import*as ue from'@radix-ui/react-label';import*as R from'@radix-ui/react-dialog';import*as ge from'@radix-ui/react-separator';import*as H from'@radix-ui/react-avatar';import*as T from'@radix-ui/react-tooltip';import*as b from'@radix-ui/react-navigation-menu';import {useFormContext,Controller}from'react-hook-form';import {Drawer}from'vaul';import*as m from'@radix-ui/react-dropdown-menu';var Nt=Object.defineProperty,Mt=Object.defineProperties;var Dt=Object.getOwnPropertyDescriptors;var ae=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Fe=(t,e,o)=>e in t?Nt(t,e,{enumerable:true,configurable:true,writable:true,value:o}):t[e]=o,i=(t,e)=>{for(var o in e||(e={}))Le.call(e,o)&&Fe(t,o,e[o]);if(ae)for(var o of ae(e))Ee.call(e,o)&&Fe(t,o,e[o]);return t},f=(t,e)=>Mt(t,Dt(e));var s=(t,e)=>{var o={};for(var r in t)Le.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&ae)for(var r of ae(t))e.indexOf(r)<0&&Ee.call(t,r)&&(o[r]=t[r]);return o};function n(...t){return twMerge(clsx(t))}var Ie=cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),fe=p.forwardRef((L,x)=>{var A=L,{className:t,variant:e,size:o,asChild:r=false,startIcon:a,endIcon:d,loading:l=false,disabled:u,children:g,type:v="button","aria-label":h}=A,P=s(A,["className","variant","size","asChild","startIcon","endIcon","loading","disabled","children","type","aria-label"]);let C=r?Slot:"button",D=u||l,y=h||(typeof g=="string"?g:void 0),E=S=>{(S.key==="Enter"||S.key===" ")&&(S.preventDefault(),!D&&P.onClick&&P.onClick(S));};return r?jsx(C,f(i({className:n(Ie({variant:e,size:o,className:t})),ref:x,disabled:D,type:v,"aria-label":y,"aria-disabled":D},P),{children:g})):jsxs(C,f(i({className:n(Ie({variant:e,size:o,className:t})),ref:x,disabled:D,type:v,"aria-label":y,"aria-disabled":D,onKeyDown:E},P),{children:[l&&jsx(Loader2,{className:"mr-2 h-4 w-4 animate-spin",role:"status","aria-label":"Loading","aria-hidden":"true"}),!l&&a&&jsx("span",{className:"mr-2","aria-hidden":"true",children:a}),g,!l&&d&&jsx("span",{className:"ml-2","aria-hidden":"true",children:d})]}))});fe.displayName="Button";var W=p.forwardRef((a,r)=>{var d=a,{className:t,type:e}=d,o=s(d,["className","type"]);return jsx("input",i({type:e,className:n("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r},o))});W.displayName="Input";var kt=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),q=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(ue.Root,i({ref:o,className:n(kt(),t)},e))});q.displayName=ue.Root.displayName;var Bt=cva("w-full",{variants:{variant:{default:"",error:"border-destructive focus-visible:ring-destructive"},size:{default:"h-10",sm:"h-8 text-xs",lg:"h-12 text-base"}},defaultVariants:{variant:"default",size:"default"}}),Ot=p.forwardRef((x,P)=>{var L=x,{className:t,variant:e,size:o,startIcon:r,endIcon:a,loading:d=false,error:l,label:u,helperText:g,disabled:v}=L,h=s(L,["className","variant","size","startIcon","endIcon","loading","error","label","helperText","disabled"]);let A=p.useId();return jsxs("div",{className:"w-full space-y-2",children:[u&&jsx(q,{htmlFor:A,children:u}),jsxs("div",{className:"relative",children:[r&&jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:r}),jsx(W,i({id:A,className:n(Bt({variant:l?"error":e,size:o,className:t}),r&&"pl-9",(a||d)&&"pr-9"),ref:P,disabled:v||d},h)),(a||d)&&jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:d?jsx(Loader2,{className:"h-4 w-4 animate-spin"}):a})]}),(l||g)&&jsx("p",{className:n("text-sm",l?"text-destructive":"text-muted-foreground"),children:l||g})]})});Ot.displayName="TextField";var _t=p.forwardRef((l,d)=>{var u=l,{className:t,maxWidth:e="lg",disablePadding:o=false,fluid:r=false}=u,a=s(u,["className","maxWidth","disablePadding","fluid"]);return jsx("div",i({ref:d,className:n("mx-auto w-full",!o&&"px-4 sm:px-6 lg:px-8",!r&&{"max-w-screen-sm":e==="sm","max-w-screen-md":e==="md","max-w-screen-lg":e==="lg","max-w-screen-xl":e==="xl","max-w-full":e==="full"},t)},a))});_t.displayName="Container";var Gt=p.forwardRef((a,r)=>{var d=a,{as:t="div",className:e}=d,o=s(d,["as","className"]);return jsx(t,i({ref:r,className:n(e)},o))});Gt.displayName="Box";var $t=p.forwardRef((v,g)=>{var h=v,{className:t,direction:e="vertical",spacing:o="md",wrap:r=false,center:a=false,justify:d,align:l}=h,u=s(h,["className","direction","spacing","wrap","center","justify","align"]);return jsx("div",i({ref:g,className:n("flex",e==="vertical"?"flex-col":"flex-row",{"gap-0":o==="none","gap-1":o==="xs","gap-2":o==="sm","gap-4":o==="md","gap-6":o==="lg","gap-8":o==="xl"},r&&"flex-wrap",a&&"items-center justify-center",d&&{"justify-start":d==="start","justify-end":d==="end","justify-center":d==="center","justify-between":d==="between","justify-around":d==="around","justify-evenly":d==="evenly"},l&&{"items-start":l==="start","items-end":l==="end","items-center":l==="center","items-stretch":l==="stretch","items-baseline":l==="baseline"},t)},u))});$t.displayName="Stack";var pr=R.Root,cr=R.Trigger,Xt=R.Portal,fr=R.Close,_e=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Overlay,i({ref:o,className:n("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t)},e))});_e.displayName=R.Overlay.displayName;var Yt=p.forwardRef((a,r)=>{var d=a,{className:t,children:e}=d,o=s(d,["className","children"]);return jsxs(Xt,{children:[jsx(_e,{}),jsxs(R.Content,f(i({ref:r,className:n("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t)},o),{children:[e,jsxs(R.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsx(X,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})});Yt.displayName=R.Content.displayName;var Jt=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("flex flex-col space-y-1.5 text-center sm:text-left",t)},e))};Jt.displayName="DialogHeader";var Qt=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},e))};Qt.displayName="DialogFooter";var Zt=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Title,i({ref:o,className:n("text-lg font-semibold leading-none tracking-tight",t)},e))});Zt.displayName=R.Title.displayName;var jt=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Description,i({ref:o,className:n("text-sm text-muted-foreground",t)},e))});jt.displayName=R.Description.displayName;var ve=p.forwardRef((d,a)=>{var l=d,{className:t,orientation:e="horizontal",decorative:o=true}=l,r=s(l,["className","orientation","decorative"]);return jsx(ge.Root,i({ref:a,decorative:o,orientation:e,className:n("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t)},r))});ve.displayName=ge.Root.displayName;var Ge=R.Root,Nr=R.Trigger,Mr=R.Close,oa=R.Portal,Ke=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Overlay,f(i({className:n("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t)},e),{ref:o}))});Ke.displayName=R.Overlay.displayName;var ra=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),we=p.forwardRef((d,a)=>{var l=d,{side:t="right",className:e,children:o}=l,r=s(l,["side","className","children"]);return jsxs(oa,{children:[jsx(Ke,{}),jsxs(R.Content,f(i({ref:a,className:n(ra({side:t}),e)},r),{children:[jsxs(R.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsx(X,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]}),o]}))]})});we.displayName=R.Content.displayName;var he=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("flex flex-col space-y-2 text-center sm:text-left",t)},e))};he.displayName="SheetHeader";var ia=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},e))};ia.displayName="SheetFooter";var ye=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Title,i({ref:o,className:n("text-lg font-semibold text-foreground",t)},e))});ye.displayName=R.Title.displayName;var xe=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Description,i({ref:o,className:n("text-sm text-muted-foreground",t)},e))});xe.displayName=R.Description.displayName;function Pe(o){var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("animate-pulse rounded-md bg-primary/10",t)},e))}var $e=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(H.Root,i({ref:o,className:n("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t)},e))});$e.displayName=H.Root.displayName;var qe=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(H.Image,i({ref:o,className:n("aspect-square h-full w-full",t)},e))});qe.displayName=H.Image.displayName;var Ue=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(H.Fallback,i({ref:o,className:n("flex h-full w-full items-center justify-center rounded-full bg-muted",t)},e))});Ue.displayName=H.Fallback.displayName;var Je=T.Provider,Qe=T.Root,Ze=T.Trigger,Me=p.forwardRef((a,r)=>{var d=a,{className:t,sideOffset:e=4}=d,o=s(d,["className","sideOffset"]);return jsx(T.Portal,{children:jsx(T.Content,i({ref:r,sideOffset:e,className:n("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",t)},o))})});Me.displayName=T.Content.displayName;var De=cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-500/80",warning:"border-transparent bg-yellow-500 text-white hover:bg-yellow-500/80",info:"border-transparent bg-blue-500 text-white hover:bg-blue-500/80"},size:{default:"h-5",sm:"h-4 text-[10px]",lg:"h-6 text-sm"}},defaultVariants:{variant:"default",size:"default"}});var tt=p.forwardRef((g,u)=>{var v=g,{className:t,variant:e,size:o,icon:r,iconAfter:a,children:d}=v,l=s(v,["className","variant","size","icon","iconAfter","children"]);return jsxs("div",f(i({ref:u,className:n(De({variant:e,size:o}),t)},l),{children:[r&&jsx("span",{className:"mr-1",children:r}),d,a&&jsx("span",{className:"ml-1",children:a})]}))});tt.displayName="Badge";var la=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,className:n("rounded-lg border bg-card text-card-foreground shadow-sm",t)},e))});la.displayName="Card";var ma=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,className:n("flex flex-col space-y-1.5 p-6",t)},e))});ma.displayName="CardHeader";var pa=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("h3",i({ref:o,className:n("text-2xl font-semibold leading-none tracking-tight",t)},e))});pa.displayName="CardTitle";var ca=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("p",i({ref:o,className:n("text-sm text-muted-foreground",t)},e))});ca.displayName="CardDescription";var fa=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,className:n("p-6 pt-0",t)},e))});fa.displayName="CardContent";var ua=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,className:n("flex items-center p-6 pt-0",t)},e))});ua.displayName="CardFooter";var at=cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50",{variants:{variant:{default:"text-foreground",ghost:"hover:bg-transparent hover:underline",link:"text-primary underline-offset-4 hover:underline",mobile:"w-full justify-between border-b border-border py-4 text-base font-medium"}},defaultVariants:{variant:"default"}});var ot=p.forwardRef((a,r)=>{var d=a,{className:t,children:e}=d,o=s(d,["className","children"]);return jsxs(b.Root,f(i({ref:r,className:n("relative z-10 flex max-w-max flex-1 items-center justify-center",t)},o),{children:[e,jsx(Ce,{})]}))});ot.displayName=b.Root.displayName;var rt=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(b.List,i({ref:o,className:n("group flex flex-1 list-none items-center justify-center space-x-1",t)},e))});rt.displayName=b.List.displayName;var va=b.Item,it=p.forwardRef((d,a)=>{var l=d,{className:t,children:e,variant:o}=l,r=s(l,["className","children","variant"]);return jsxs(b.Trigger,f(i({ref:a,className:n(at({variant:o}),t)},r),{children:[e," ",jsx(ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}))});it.displayName=b.Trigger.displayName;var nt=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(b.Content,i({ref:o,className:n("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",t)},e))});nt.displayName=b.Content.displayName;var Ra=b.Link,Ce=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",{className:n("absolute left-0 top-full flex justify-center"),children:jsx(b.Viewport,i({className:n("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:o},e))})});Ce.displayName=b.Viewport.displayName;var st=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(b.Indicator,f(i({ref:o,className:n("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t)},e),{children:jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}))});st.displayName=b.Indicator.displayName;var ya=p.createContext({});var j=()=>{let t=p.useContext(ya),e=p.useContext(lt),{getFieldState:o,formState:r}=useFormContext(),a=o(t.name,r);if(!t)throw new Error("useFormField should be used within <FormField>");let{id:d}=e;return i({id:d,name:t.name,formItemId:`${d}-form-item`,formDescriptionId:`${d}-form-item-description`,formMessageId:`${d}-form-item-message`},a)},lt=p.createContext({}),ne=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);let d=p.useId();return jsx(lt.Provider,{value:{id:d},children:jsx("div",i({ref:o,className:n("space-y-2",t),role:"group"},e))})});ne.displayName="FormItem";var se=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);let{error:d,formItemId:l}=j();return jsx(q,i({ref:o,className:n("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",d&&"text-destructive",t),htmlFor:l},e))});se.displayName="FormLabel";var de=p.forwardRef((o,e)=>{var t=s(o,[]);let{error:r,formItemId:a,formDescriptionId:d,formMessageId:l}=j();return jsx(Slot,i({ref:e,id:a,"aria-describedby":r?`${d} ${l}`:`${d}`,"aria-invalid":!!r},t))});de.displayName="FormControl";var le=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);let{formDescriptionId:d}=j();return jsx("p",i({ref:o,id:d,className:n("text-[0.8rem] text-muted-foreground",t)},e))});le.displayName="FormDescription";var me=p.forwardRef((a,r)=>{var d=a,{className:t,children:e}=d,o=s(d,["className","children"]);var v;let{error:l,formMessageId:u}=j(),g=l?String((v=l==null?void 0:l.message)!=null?v:""):e;return g?jsx("p",f(i({ref:r,id:u,className:n("text-[0.8rem] font-medium text-destructive",t),role:"alert"},o),{children:g})):null});me.displayName="FormMessage";function Ti(A){var C=A,{name:t,label:e,description:o,className:r,type:a="text",warningText:d,required:l,disabled:u,readOnly:g,placeholder:v,"aria-label":h,"aria-describedby":P,onBlur:x}=C,L=s(C,["name","label","description","className","type","warningText","required","disabled","readOnly","placeholder","aria-label","aria-describedby","onBlur"]);let{control:D}=useFormContext();return jsx(Controller,{name:t,control:D,render:({field:y,fieldState:{error:E}})=>jsxs(ne,{children:[e&&jsxs(se,{children:[e,l&&jsx("span",{className:"text-destructive ml-1",children:"*"})]}),jsx(de,{children:jsx(W,i(f(i({},y),{type:a,value:a==="number"&&y.value===0?"":y.value,onChange:S=>{a==="number"?y.onChange(Number(S.target.value)):y.onChange(S.target.value);},onBlur:S=>{a!=="number"&&typeof y.value=="string"&&y.onChange(y.value.trim()),y.onBlur(),x==null||x(S);},className:n(E&&"border-destructive focus-visible:ring-destructive",r),disabled:u,readOnly:g,required:l,placeholder:v,"aria-label":h,"aria-describedby":P,"aria-invalid":!!E,"aria-required":l}),L))}),o&&jsx(le,{children:o}),E&&jsx(me,{children:E.message}),!E&&d&&jsx("p",{className:"text-sm text-yellow-600 dark:text-yellow-500",role:"alert",children:d})]})})}var Na=o=>{var r=o,{shouldScaleBackground:t=true}=r,e=s(r,["shouldScaleBackground"]);return jsx(Drawer.Root,i({shouldScaleBackground:t},e))};Na.displayName="Drawer";var ki=Drawer.Trigger,Ma=Drawer.Portal,Ai=Drawer.Close,ct=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(Drawer.Overlay,i({ref:o,className:n("fixed inset-0 z-50 bg-black/80",t)},e))});ct.displayName=Drawer.Overlay.displayName;var Da=p.forwardRef((a,r)=>{var d=a,{className:t,children:e}=d,o=s(d,["className","children"]);return jsxs(Ma,{children:[jsx(ct,{}),jsxs(Drawer.Content,f(i({ref:r,className:n("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t)},o),{children:[jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),e]}))]})});Da.displayName="DrawerContent";var Ca=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("grid gap-1.5 p-4 text-center sm:text-left",t)},e))};Ca.displayName="DrawerHeader";var Sa=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("mt-auto flex flex-col gap-2 p-4",t)},e))};Sa.displayName="DrawerFooter";var Ta=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(Drawer.Title,i({ref:o,className:n("text-lg font-semibold leading-none tracking-tight",t)},e))});Ta.displayName=Drawer.Title.displayName;var Fa=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(Drawer.Description,i({ref:o,className:n("text-sm text-muted-foreground",t)},e))});Fa.displayName=Drawer.Description.displayName;var Se=768;function ft(){let[t,e]=p.useState(void 0);return p.useEffect(()=>{let o=window.matchMedia(`(max-width: ${Se-1}px)`),r=()=>{e(window.innerWidth<Se);};return o.addEventListener("change",r),e(window.innerWidth<Se),()=>o.removeEventListener("change",r)},[]),!!t}var Ia="sidebar_state",Ha=60*60*24*7,ka="16rem",Aa="18rem",Va="3rem",za="b",ut=p.createContext(null);function ce(){let t=p.useContext(ut);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}var Ba=p.forwardRef((g,u)=>{var v=g,{defaultOpen:t=true,open:e,onOpenChange:o,className:r,style:a,children:d}=v,l=s(v,["defaultOpen","open","onOpenChange","className","style","children"]);let h=ft(),[P,x]=p.useState(false),[L,A]=p.useState(t),C=e!=null?e:L,D=p.useCallback(I=>{let V=typeof I=="function"?I(C):I;o?o(V):A(V),document.cookie=`${Ia}=${V}; path=/; max-age=${Ha}`;},[o,C]),y=p.useCallback(()=>h?x(I=>!I):D(I=>!I),[h,D,x]);p.useEffect(()=>{let I=V=>{V.key===za&&(V.metaKey||V.ctrlKey)&&(V.preventDefault(),y());};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[y]);let E=C?"expanded":"collapsed",S=p.useMemo(()=>({state:E,open:C,setOpen:D,isMobile:h,openMobile:P,setOpenMobile:x,toggleSidebar:y}),[E,C,D,h,P,x,y]);return jsx(ut.Provider,{value:S,children:jsx(Je,{delayDuration:0,children:jsx("div",f(i({style:i({"--sidebar-width":ka,"--sidebar-width-icon":Va},a),className:n("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:u},l),{children:d}))})})});Ba.displayName="SidebarProvider";var Oa=p.forwardRef((u,l)=>{var g=u,{side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:a}=g,d=s(g,["side","variant","collapsible","className","children"]);let{isMobile:v,state:h,openMobile:P,setOpenMobile:x}=ce();return o==="none"?jsx("div",f(i({className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:l},d),{children:a})):v?jsx(Ge,f(i({open:P,onOpenChange:x},d),{children:jsxs(we,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Aa},side:t,children:[jsxs(he,{className:"sr-only",children:[jsx(ye,{children:"Sidebar"}),jsx(xe,{children:"Displays the mobile sidebar."})]}),jsx("div",{className:"flex h-full w-full flex-col",children:a})]})})):jsxs("div",{ref:l,className:"group peer hidden text-sidebar-foreground md:block","data-state":h,"data-collapsible":h==="collapsed"?o:"","data-variant":e,"data-side":t,children:[jsx("div",{className:n("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),jsx("div",f(i({className:n("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},d),{children:jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})}))]})});Oa.displayName="Sidebar";var _a=p.forwardRef((a,r)=>{var d=a,{className:t,onClick:e}=d,o=s(d,["className","onClick"]);let{toggleSidebar:l}=ce();return jsxs(fe,f(i({ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",t),onClick:u=>{e==null||e(u),l();}},o),{children:[jsx(PanelLeft,{}),jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}))});_a.displayName="SidebarTrigger";var Wa=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);let{toggleSidebar:d}=ce();return jsx("button",i({ref:o,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:d,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t)},e))});Wa.displayName="SidebarRail";var Ga=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("main",i({ref:o,className:n("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",t)},e))});Ga.displayName="SidebarInset";var Ka=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(W,i({ref:o,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",t)},e))});Ka.displayName="SidebarInput";var $a=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",t)},e))});$a.displayName="SidebarHeader";var qa=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",t)},e))});qa.displayName="SidebarFooter";var Ua=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(ve,i({ref:o,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",t)},e))});Ua.displayName="SidebarSeparator";var Xa=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t)},e))});Xa.displayName="SidebarContent";var Ya=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",t)},e))});Ya.displayName="SidebarGroup";var Ja=p.forwardRef((a,r)=>{var d=a,{className:t,asChild:e=false}=d,o=s(d,["className","asChild"]);return jsx(e?Slot:"div",i({ref:r,"data-sidebar":"group-label",className:n("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t)},o))});Ja.displayName="SidebarGroupLabel";var Qa=p.forwardRef((a,r)=>{var d=a,{className:t,asChild:e=false}=d,o=s(d,["className","asChild"]);return jsx(e?Slot:"button",i({ref:r,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t)},o))});Qa.displayName="SidebarGroupAction";var Za=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"group-content",className:n("w-full text-sm",t)},e))});Za.displayName="SidebarGroupContent";var ja=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("ul",i({ref:o,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",t)},e))});ja.displayName="SidebarMenu";var eo=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("li",i({ref:o,"data-sidebar":"menu-item",className:n("group/menu-item relative",t)},e))});eo.displayName="SidebarMenuItem";var to=cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),ao=p.forwardRef((g,u)=>{var v=g,{asChild:t=false,isActive:e=false,variant:o="default",size:r="default",tooltip:a,className:d}=v,l=s(v,["asChild","isActive","variant","size","tooltip","className"]);let h=t?Slot:"button",{isMobile:P,state:x}=ce(),L=jsx(h,i({ref:u,"data-sidebar":"menu-button","data-size":r,"data-active":e,className:n(to({variant:o,size:r}),d)},l));return a?(typeof a=="string"&&(a={children:a}),jsxs(Qe,{children:[jsx(Ze,{asChild:true,children:L}),jsx(Me,i({side:"right",align:"center",hidden:x!=="collapsed"||P},a))]})):L});ao.displayName="SidebarMenuButton";var oo=p.forwardRef((d,a)=>{var l=d,{className:t,asChild:e=false,showOnHover:o=false}=l,r=s(l,["className","asChild","showOnHover"]);return jsx(e?Slot:"button",i({ref:a,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",t)},r))});oo.displayName="SidebarMenuAction";var ro=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"menu-badge",className:n("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t)},e))});ro.displayName="SidebarMenuBadge";var io=p.forwardRef((a,r)=>{var d=a,{className:t,showIcon:e=false}=d,o=s(d,["className","showIcon"]);let l=p.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxs("div",f(i({ref:r,"data-sidebar":"menu-skeleton",className:n("flex h-8 items-center gap-2 rounded-md px-2",t)},o),{children:[e&&jsx(Pe,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsx(Pe,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]}))});io.displayName="SidebarMenuSkeleton";var no=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("ul",i({ref:o,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t)},e))});no.displayName="SidebarMenuSub";var so=p.forwardRef((o,e)=>{var t=s(o,[]);return jsx("li",i({ref:e},t))});so.displayName="SidebarMenuSubItem";var lo=p.forwardRef((l,d)=>{var u=l,{asChild:t=false,size:e="md",isActive:o,className:r}=u,a=s(u,["asChild","size","isActive","className"]);return jsx(t?Slot:"a",i({ref:d,"data-sidebar":"menu-sub-button","data-size":e,"data-active":o,className:n("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r)},a))});lo.displayName="SidebarMenuSubButton";var fo=m.Root,uo=m.Trigger,bo=m.Group,go=m.Portal,vo=m.Sub,Ro=m.RadioGroup,bt=p.forwardRef((d,a)=>{var l=d,{className:t,inset:e,children:o}=l,r=s(l,["className","inset","children"]);return jsxs(m.SubTrigger,f(i({ref:a,className:n("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t)},r),{children:[o,jsx(ChevronRight,{className:"ml-auto h-4 w-4"})]}))});bt.displayName=m.SubTrigger.displayName;var gt=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(m.SubContent,i({ref:o,className:n("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t)},e))});gt.displayName=m.SubContent.displayName;var vt=p.forwardRef((a,r)=>{var d=a,{className:t,sideOffset:e=4}=d,o=s(d,["className","sideOffset"]);return jsx(m.Portal,{children:jsx(m.Content,i({ref:r,sideOffset:e,className:n("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t)},o))})});vt.displayName=m.Content.displayName;var Rt=p.forwardRef((a,r)=>{var d=a,{className:t,inset:e}=d,o=s(d,["className","inset"]);return jsx(m.Item,i({ref:r,className:n("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t)},o))});Rt.displayName=m.Item.displayName;var wt=p.forwardRef((d,a)=>{var l=d,{className:t,children:e,checked:o}=l,r=s(l,["className","children","checked"]);return jsxs(m.CheckboxItem,f(i({ref:a,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o},r),{children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(m.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),e]}))});wt.displayName=m.CheckboxItem.displayName;var ht=p.forwardRef((a,r)=>{var d=a,{className:t,children:e}=d,o=s(d,["className","children"]);return jsxs(m.RadioItem,f(i({ref:r,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t)},o),{children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(m.ItemIndicator,{children:jsx(Circle,{className:"h-2 w-2 fill-current"})})}),e]}))});ht.displayName=m.RadioItem.displayName;var yt=p.forwardRef((a,r)=>{var d=a,{className:t,inset:e}=d,o=s(d,["className","inset"]);return jsx(m.Label,i({ref:r,className:n("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t)},o))});yt.displayName=m.Label.displayName;var xt=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(m.Separator,i({ref:o,className:n("-mx-1 my-1 h-px bg-muted",t)},e))});xt.displayName=m.Separator.displayName;var Pt=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("span",i({className:n("ml-auto text-xs tracking-widest opacity-60",t)},e))};Pt.displayName="DropdownMenuShortcut";export{$e as Avatar,Ue as AvatarFallback,qe as AvatarImage,tt as Badge,Gt as Box,fe as Button,la as Card,fa as CardContent,ca as CardDescription,ua as CardFooter,ma as CardHeader,pa as CardTitle,_t as Container,pr as Dialog,fr as DialogClose,Yt as DialogContent,jt as DialogDescription,Qt as DialogFooter,Jt as DialogHeader,_e as DialogOverlay,Xt as DialogPortal,Zt as DialogTitle,cr as DialogTrigger,Na as Drawer,Ai as DrawerClose,Da as DrawerContent,Fa as DrawerDescription,Sa as DrawerFooter,Ca as DrawerHeader,ct as DrawerOverlay,Ma as DrawerPortal,Ta as DrawerTitle,ki as DrawerTrigger,fo as DropdownMenu,wt as DropdownMenuCheckboxItem,vt as DropdownMenuContent,bo as DropdownMenuGroup,Rt as DropdownMenuItem,yt as DropdownMenuLabel,go as DropdownMenuPortal,Ro as DropdownMenuRadioGroup,ht as DropdownMenuRadioItem,xt as DropdownMenuSeparator,Pt as DropdownMenuShortcut,vo as DropdownMenuSub,gt as DropdownMenuSubContent,bt as DropdownMenuSubTrigger,uo as DropdownMenuTrigger,W as Input,ot as NavigationMenu,nt as NavigationMenuContent,st as NavigationMenuIndicator,va as NavigationMenuItem,Ra as NavigationMenuLink,rt as NavigationMenuList,it as NavigationMenuTrigger,Ce as NavigationMenuViewport,Ti as RHFTextField,ve as Separator,Ge as Sheet,Mr as SheetClose,we as SheetContent,xe as SheetDescription,ia as SheetFooter,he as SheetHeader,Ke as SheetOverlay,oa as SheetPortal,ye as SheetTitle,Nr as SheetTrigger,Oa as Sidebar,Xa as SidebarContent,qa as SidebarFooter,Ya as SidebarGroup,Qa as SidebarGroupAction,Za as SidebarGroupContent,Ja as SidebarGroupLabel,$a as SidebarHeader,Ka as SidebarInput,Ga as SidebarInset,ja as SidebarMenu,oo as SidebarMenuAction,ro as SidebarMenuBadge,ao as SidebarMenuButton,eo as SidebarMenuItem,io as SidebarMenuSkeleton,no as SidebarMenuSub,lo as SidebarMenuSubButton,so as SidebarMenuSubItem,Ba as SidebarProvider,Wa as SidebarRail,Ua as SidebarSeparator,_a as SidebarTrigger,Pe as Skeleton,$t as Stack,Ot as TextField,Qe as Tooltip,Me as TooltipContent,Je as TooltipProvider,Ze as TooltipTrigger,De as badgeVariants,Ie as buttonVariants,n as cn,to as sidebarMenuButtonVariants,Bt as textFieldVariants,ce as useSidebar};//# sourceMappingURL=index.mjs.map
1
+ import*as p from'react';import {Slot}from'@radix-ui/react-slot';import {cva}from'class-variance-authority';import {clsx}from'clsx';import {twMerge}from'tailwind-merge';import {Loader2,X,ChevronDown,PanelLeft,ChevronRight,Check,Circle}from'lucide-react';import {jsx,jsxs}from'react/jsx-runtime';import*as ue from'@radix-ui/react-label';import*as R from'@radix-ui/react-dialog';import*as be from'@radix-ui/react-separator';import*as H from'@radix-ui/react-avatar';import*as F from'@radix-ui/react-tooltip';import {useFormContext,FormProvider,Controller}from'react-hook-form';import*as v from'@radix-ui/react-navigation-menu';import {Drawer}from'vaul';import*as m from'@radix-ui/react-dropdown-menu';var Dt=Object.defineProperty,Ct=Object.defineProperties;var St=Object.getOwnPropertyDescriptors;var ae=Object.getOwnPropertySymbols;var Le=Object.prototype.hasOwnProperty,Ee=Object.prototype.propertyIsEnumerable;var Fe=(t,e,o)=>e in t?Dt(t,e,{enumerable:true,configurable:true,writable:true,value:o}):t[e]=o,i=(t,e)=>{for(var o in e||(e={}))Le.call(e,o)&&Fe(t,o,e[o]);if(ae)for(var o of ae(e))Ee.call(e,o)&&Fe(t,o,e[o]);return t},f=(t,e)=>Ct(t,St(e));var s=(t,e)=>{var o={};for(var r in t)Le.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(t!=null&&ae)for(var r of ae(t))e.indexOf(r)<0&&Ee.call(t,r)&&(o[r]=t[r]);return o};function n(...t){return twMerge(clsx(t))}var Ie=cva("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-10 rounded-md px-8",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),fe=p.forwardRef((D,w)=>{var V=D,{className:t,variant:e,size:o,asChild:r=false,startIcon:a,endIcon:d,loading:l=false,disabled:u,children:g,type:b="button","aria-label":y}=V,x=s(V,["className","variant","size","asChild","startIcon","endIcon","loading","disabled","children","type","aria-label"]);let S=r?Slot:"button",C=u||l,P=y||(typeof g=="string"?g:void 0),E=T=>{(T.key==="Enter"||T.key===" ")&&(T.preventDefault(),!C&&x.onClick&&x.onClick(T));};return r?jsx(S,f(i({className:n(Ie({variant:e,size:o,className:t})),ref:w,disabled:C,type:b,"aria-label":P,"aria-disabled":C},x),{children:g})):jsxs(S,f(i({className:n(Ie({variant:e,size:o,className:t})),ref:w,disabled:C,type:b,"aria-label":P,"aria-disabled":C,onKeyDown:E},x),{children:[l&&jsx(Loader2,{className:"mr-2 h-4 w-4 animate-spin",role:"status","aria-label":"Loading","aria-hidden":"true"}),!l&&a&&jsx("span",{className:"mr-2","aria-hidden":"true",children:a}),g,!l&&d&&jsx("span",{className:"ml-2","aria-hidden":"true",children:d})]}))});fe.displayName="Button";var G=p.forwardRef((a,r)=>{var d=a,{className:t,type:e}=d,o=s(d,["className","type"]);return jsx("input",i({type:e,className:n("flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",t),ref:r},o))});G.displayName="Input";var At=cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),U=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(ue.Root,i({ref:o,className:n(At(),t)},e))});U.displayName=ue.Root.displayName;var _t=cva("w-full",{variants:{variant:{default:"",error:"border-destructive focus-visible:ring-destructive"},size:{default:"h-10",sm:"h-8 text-xs",lg:"h-12 text-base"}},defaultVariants:{variant:"default",size:"default"}}),Wt=p.forwardRef((w,x)=>{var D=w,{className:t,variant:e,size:o,startIcon:r,endIcon:a,loading:d=false,error:l,label:u,helperText:g,disabled:b}=D,y=s(D,["className","variant","size","startIcon","endIcon","loading","error","label","helperText","disabled"]);let V=p.useId();return jsxs("div",{className:"w-full space-y-2",children:[u&&jsx(U,{htmlFor:V,children:u}),jsxs("div",{className:"relative",children:[r&&jsx("div",{className:"absolute left-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:r}),jsx(G,i({id:V,className:n(_t({variant:l?"error":e,size:o,className:t}),r&&"pl-9",(a||d)&&"pr-9"),ref:x,disabled:b||d},y)),(a||d)&&jsx("div",{className:"absolute right-3 top-1/2 -translate-y-1/2 text-muted-foreground",children:d?jsx(Loader2,{className:"h-4 w-4 animate-spin"}):a})]}),(l||g)&&jsx("p",{className:n("text-sm",l?"text-destructive":"text-muted-foreground"),children:l||g})]})});Wt.displayName="TextField";var Gt=p.forwardRef((l,d)=>{var u=l,{className:t,maxWidth:e="lg",disablePadding:o=false,fluid:r=false}=u,a=s(u,["className","maxWidth","disablePadding","fluid"]);return jsx("div",i({ref:d,className:n("mx-auto w-full",!o&&"px-4 sm:px-6 lg:px-8",!r&&{"max-w-screen-sm":e==="sm","max-w-screen-md":e==="md","max-w-screen-lg":e==="lg","max-w-screen-xl":e==="xl","max-w-full":e==="full"},t)},a))});Gt.displayName="Container";var Kt=p.forwardRef((u,l)=>{var g=u,{as:t="div",className:e,width:o,height:r,style:a}=g,d=s(g,["as","className","width","height","style"]);let b=i({width:typeof o=="number"?`${o}px`:o,height:typeof r=="number"?`${r}px`:r},a);return jsx(t,i({ref:l,className:n(e),style:b},d))});Kt.displayName="Box";var Ut=p.forwardRef((w,x)=>{var D=w,{className:t,direction:e="vertical",spacing:o="md",wrap:r=false,center:a=false,justify:d,align:l,width:u,height:g,style:b}=D,y=s(D,["className","direction","spacing","wrap","center","justify","align","width","height","style"]);return jsx("div",i({ref:x,className:n("flex",e==="vertical"?"flex-col":"flex-row",{"gap-0":o==="none","gap-1":o==="xs","gap-2":o==="sm","gap-4":o==="md","gap-6":o==="lg","gap-8":o==="xl"},r&&"flex-wrap",a&&"items-center justify-center",d&&{"justify-start":d==="start","justify-end":d==="end","justify-center":d==="center","justify-between":d==="between","justify-around":d==="around","justify-evenly":d==="evenly"},l&&{"items-start":l==="start","items-end":l==="end","items-center":l==="center","items-stretch":l==="stretch","items-baseline":l==="baseline"},t),style:i({width:u,height:g},b)},y))});Ut.displayName="Stack";var yr=R.Root,xr=R.Trigger,Jt=R.Portal,wr=R.Close,_e=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Overlay,i({ref:o,className:n("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t)},e))});_e.displayName=R.Overlay.displayName;var Qt=p.forwardRef((a,r)=>{var d=a,{className:t,children:e}=d,o=s(d,["className","children"]);return jsxs(Jt,{children:[jsx(_e,{}),jsxs(R.Content,f(i({ref:r,className:n("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border bg-background p-6 shadow-lg duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] sm:rounded-lg",t)},o),{children:[e,jsxs(R.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground",children:[jsx(X,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]})]}))]})});Qt.displayName=R.Content.displayName;var Zt=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("flex flex-col space-y-1.5 text-center sm:text-left",t)},e))};Zt.displayName="DialogHeader";var jt=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},e))};jt.displayName="DialogFooter";var ea=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Title,i({ref:o,className:n("text-lg font-semibold leading-none tracking-tight",t)},e))});ea.displayName=R.Title.displayName;var ta=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Description,i({ref:o,className:n("text-sm text-muted-foreground",t)},e))});ta.displayName=R.Description.displayName;var ve=p.forwardRef((d,a)=>{var l=d,{className:t,orientation:e="horizontal",decorative:o=true}=l,r=s(l,["className","orientation","decorative"]);return jsx(be.Root,i({ref:a,decorative:o,orientation:e,className:n("shrink-0 bg-border",e==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",t)},r))});ve.displayName=be.Root.displayName;var Ge=R.Root,Ir=R.Trigger,Hr=R.Close,ia=R.Portal,$e=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Overlay,f(i({className:n("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t)},e),{ref:o}))});$e.displayName=R.Overlay.displayName;var na=cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),he=p.forwardRef((d,a)=>{var l=d,{side:t="right",className:e,children:o}=l,r=s(l,["side","className","children"]);return jsxs(ia,{children:[jsx($e,{}),jsxs(R.Content,f(i({ref:a,className:n(na({side:t}),e)},r),{children:[jsxs(R.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[jsx(X,{className:"h-4 w-4"}),jsx("span",{className:"sr-only",children:"Close"})]}),o]}))]})});he.displayName=R.Content.displayName;var ye=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("flex flex-col space-y-2 text-center sm:text-left",t)},e))};ye.displayName="SheetHeader";var sa=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},e))};sa.displayName="SheetFooter";var xe=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Title,i({ref:o,className:n("text-lg font-semibold text-foreground",t)},e))});xe.displayName=R.Title.displayName;var we=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(R.Description,i({ref:o,className:n("text-sm text-muted-foreground",t)},e))});we.displayName=R.Description.displayName;function Pe(o){var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("animate-pulse rounded-md bg-primary/10",t)},e))}var Ke=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(H.Root,i({ref:o,className:n("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",t)},e))});Ke.displayName=H.Root.displayName;var qe=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(H.Image,i({ref:o,className:n("aspect-square h-full w-full",t)},e))});qe.displayName=H.Image.displayName;var Ue=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(H.Fallback,i({ref:o,className:n("flex h-full w-full items-center justify-center rounded-full bg-muted",t)},e))});Ue.displayName=H.Fallback.displayName;var Je=F.Provider,Qe=F.Root,Ze=F.Trigger,Me=p.forwardRef((a,r)=>{var d=a,{className:t,sideOffset:e=4}=d,o=s(d,["className","sideOffset"]);return jsx(F.Portal,{children:jsx(F.Content,i({ref:r,sideOffset:e,className:n("z-50 overflow-hidden rounded-md bg-primary px-3 py-1.5 text-xs text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 origin-[--radix-tooltip-content-transform-origin]",t)},o))})});Me.displayName=F.Content.displayName;var De=cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground",success:"border-transparent bg-green-500 text-white hover:bg-green-500/80",warning:"border-transparent bg-yellow-500 text-white hover:bg-yellow-500/80",info:"border-transparent bg-blue-500 text-white hover:bg-blue-500/80"},size:{default:"h-5",sm:"h-4 text-[10px]",lg:"h-6 text-sm"}},defaultVariants:{variant:"default",size:"default"}});var tt=p.forwardRef((g,u)=>{var b=g,{className:t,variant:e,size:o,icon:r,iconAfter:a,children:d}=b,l=s(b,["className","variant","size","icon","iconAfter","children"]);return jsxs("div",f(i({ref:u,className:n(De({variant:e,size:o}),t)},l),{children:[r&&jsx("span",{className:"mr-1",children:r}),d,a&&jsx("span",{className:"ml-1",children:a})]}))});tt.displayName="Badge";var ga=FormProvider,at=p.createContext({}),ba=e=>{var t=s(e,[]);return jsx(at.Provider,{value:{name:t.name},children:jsx(Controller,i({},t))})},j=()=>{let t=p.useContext(at),e=p.useContext(ot),{getFieldState:o,formState:r}=useFormContext(),a=o(t.name,r);if(!t)throw new Error("useFormField should be used within <FormField>");let{id:d}=e;return i({id:d,name:t.name,formItemId:`${d}-form-item`,formDescriptionId:`${d}-form-item-description`,formMessageId:`${d}-form-item-message`},a)},ot=p.createContext({}),ne=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);let d=p.useId();return jsx(ot.Provider,{value:{id:d},children:jsx("div",i({ref:o,className:n("space-y-2",t),role:"group"},e))})});ne.displayName="FormItem";var se=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);let{error:d,formItemId:l}=j();return jsx(U,i({ref:o,className:n("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",d&&"text-destructive",t),htmlFor:l},e))});se.displayName="FormLabel";var de=p.forwardRef((o,e)=>{var t=s(o,[]);let{error:r,formItemId:a,formDescriptionId:d,formMessageId:l}=j();return jsx(Slot,i({ref:e,id:a,"aria-describedby":r?`${d} ${l}`:`${d}`,"aria-invalid":!!r},t))});de.displayName="FormControl";var le=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);let{formDescriptionId:d}=j();return jsx("p",i({ref:o,id:d,className:n("text-[0.8rem] text-muted-foreground",t)},e))});le.displayName="FormDescription";var me=p.forwardRef((a,r)=>{var d=a,{className:t,children:e}=d,o=s(d,["className","children"]);var b;let{error:l,formMessageId:u}=j(),g=l?String((b=l==null?void 0:l.message)!=null?b:""):e;return g?jsx("p",f(i({ref:r,id:u,className:n("text-[0.8rem] font-medium text-destructive",t),role:"alert"},o),{children:g})):null});me.displayName="FormMessage";var Ra=cva("",{variants:{variant:{h1:"scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl",h2:"scroll-m-20 text-3xl font-semibold tracking-tight",h3:"scroll-m-20 text-2xl font-semibold tracking-tight",h4:"scroll-m-20 text-xl font-semibold tracking-tight",h5:"scroll-m-20 text-lg font-semibold tracking-tight",h6:"scroll-m-20 text-base font-semibold tracking-tight",p:"leading-7 [&:not(:first-child)]:mt-6",blockquote:"mt-6 border-l-2 border-slate-300 pl-6 italic",list:"my-6 ml-6 list-disc [&>li]:mt-2",lead:"text-xl text-muted-foreground",large:"text-lg font-semibold",small:"text-sm font-medium leading-none",muted:"text-sm text-muted-foreground"},align:{left:"text-left",center:"text-center",right:"text-right",justify:"text-justify"}},defaultVariants:{variant:"p",align:"left"}}),ha=p.forwardRef((l,d)=>{var u=l,{className:t,variant:e,align:o,as:r="p"}=u,a=s(u,["className","variant","align","as"]);return jsx(r,i({className:n(Ra({variant:e,align:o,className:t})),ref:d},a))});ha.displayName="Typography";var xa=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,className:n("rounded-lg border bg-card text-card-foreground shadow-sm",t)},e))});xa.displayName="Card";var wa=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,className:n("flex flex-col space-y-1.5 p-6",t)},e))});wa.displayName="CardHeader";var Pa=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("h3",i({ref:o,className:n("text-2xl font-semibold leading-none tracking-tight",t)},e))});Pa.displayName="CardTitle";var Na=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("p",i({ref:o,className:n("text-sm text-muted-foreground",t)},e))});Na.displayName="CardDescription";var Ma=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,className:n("p-6 pt-0",t)},e))});Ma.displayName="CardContent";var Da=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,className:n("flex items-center p-6 pt-0",t)},e))});Da.displayName="CardFooter";var it=cva("group inline-flex h-10 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50",{variants:{variant:{default:"text-foreground",ghost:"hover:bg-transparent hover:underline",link:"text-primary underline-offset-4 hover:underline",mobile:"w-full justify-between border-b border-border py-4 text-base font-medium"}},defaultVariants:{variant:"default"}});var nt=p.forwardRef((a,r)=>{var d=a,{className:t,children:e}=d,o=s(d,["className","children"]);return jsxs(v.Root,f(i({ref:r,className:n("relative z-10 flex max-w-max flex-1 items-center justify-center",t)},o),{children:[e,jsx(Ce,{})]}))});nt.displayName=v.Root.displayName;var st=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(v.List,i({ref:o,className:n("group flex flex-1 list-none items-center justify-center space-x-1",t)},e))});st.displayName=v.List.displayName;var Ta=v.Item,dt=p.forwardRef((d,a)=>{var l=d,{className:t,children:e,variant:o}=l,r=s(l,["className","children","variant"]);return jsxs(v.Trigger,f(i({ref:a,className:n(it({variant:o}),t)},r),{children:[e," ",jsx(ChevronDown,{className:"relative top-[1px] ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}))});dt.displayName=v.Trigger.displayName;var lt=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(v.Content,i({ref:o,className:n("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto",t)},e))});lt.displayName=v.Content.displayName;var Fa=v.Link,Ce=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",{className:n("absolute left-0 top-full flex justify-center"),children:jsx(v.Viewport,i({className:n("origin-top-center relative mt-1.5 h-[var(--radix-navigation-menu-viewport-height)] w-full overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-90 md:w-[var(--radix-navigation-menu-viewport-width)]",t),ref:o},e))})});Ce.displayName=v.Viewport.displayName;var mt=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(v.Indicator,f(i({ref:o,className:n("top-full z-[1] flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in",t)},e),{children:jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})}))});mt.displayName=v.Indicator.displayName;function Bi(V){var S=V,{name:t,label:e,description:o,className:r,type:a="text",warningText:d,required:l,disabled:u,readOnly:g,placeholder:b,"aria-label":y,"aria-describedby":x,onBlur:w}=S,D=s(S,["name","label","description","className","type","warningText","required","disabled","readOnly","placeholder","aria-label","aria-describedby","onBlur"]);let{control:C}=useFormContext();return jsx(Controller,{name:t,control:C,render:({field:P,fieldState:{error:E}})=>jsxs(ne,{children:[e&&jsxs(se,{children:[e,l&&jsx("span",{className:"text-destructive ml-1",children:"*"})]}),jsx(de,{children:jsx(G,i(f(i({},P),{type:a,value:a==="number"&&P.value===0?"":P.value,onChange:T=>{a==="number"?P.onChange(Number(T.target.value)):P.onChange(T.target.value);},onBlur:T=>{a!=="number"&&typeof P.value=="string"&&P.onChange(P.value.trim()),P.onBlur(),w==null||w(T);},className:n(E&&"border-destructive focus-visible:ring-destructive",r),disabled:u,readOnly:g,required:l,placeholder:b,"aria-label":y,"aria-describedby":x,"aria-invalid":!!E,"aria-required":l}),D))}),o&&jsx(le,{children:o}),E&&jsx(me,{children:E.message}),!E&&d&&jsx("p",{className:"text-sm text-yellow-600 dark:text-yellow-500",role:"alert",children:d})]})})}var Ia=o=>{var r=o,{shouldScaleBackground:t=true}=r,e=s(r,["shouldScaleBackground"]);return jsx(Drawer.Root,i({shouldScaleBackground:t},e))};Ia.displayName="Drawer";var Ki=Drawer.Trigger,Ha=Drawer.Portal,qi=Drawer.Close,ut=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(Drawer.Overlay,i({ref:o,className:n("fixed inset-0 z-50 bg-black/80",t)},e))});ut.displayName=Drawer.Overlay.displayName;var ka=p.forwardRef((a,r)=>{var d=a,{className:t,children:e}=d,o=s(d,["className","children"]);return jsxs(Ha,{children:[jsx(ut,{}),jsxs(Drawer.Content,f(i({ref:r,className:n("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",t)},o),{children:[jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),e]}))]})});ka.displayName="DrawerContent";var Va=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("grid gap-1.5 p-4 text-center sm:text-left",t)},e))};Va.displayName="DrawerHeader";var Aa=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("div",i({className:n("mt-auto flex flex-col gap-2 p-4",t)},e))};Aa.displayName="DrawerFooter";var za=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(Drawer.Title,i({ref:o,className:n("text-lg font-semibold leading-none tracking-tight",t)},e))});za.displayName=Drawer.Title.displayName;var Ba=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(Drawer.Description,i({ref:o,className:n("text-sm text-muted-foreground",t)},e))});Ba.displayName=Drawer.Description.displayName;var Se=768;function gt(){let[t,e]=p.useState(void 0);return p.useEffect(()=>{let o=window.matchMedia(`(max-width: ${Se-1}px)`),r=()=>{e(window.innerWidth<Se);};return o.addEventListener("change",r),e(window.innerWidth<Se),()=>o.removeEventListener("change",r)},[]),!!t}var Wa="sidebar_state",Ga=60*60*24*7,$a="16rem",Ka="18rem",qa="3rem",Ua="b",bt=p.createContext(null);function ce(){let t=p.useContext(bt);if(!t)throw new Error("useSidebar must be used within a SidebarProvider.");return t}var Xa=p.forwardRef((g,u)=>{var b=g,{defaultOpen:t=true,open:e,onOpenChange:o,className:r,style:a,children:d}=b,l=s(b,["defaultOpen","open","onOpenChange","className","style","children"]);let y=gt(),[x,w]=p.useState(false),[D,V]=p.useState(t),S=e!=null?e:D,C=p.useCallback(I=>{let A=typeof I=="function"?I(S):I;o?o(A):V(A),document.cookie=`${Wa}=${A}; path=/; max-age=${Ga}`;},[o,S]),P=p.useCallback(()=>y?w(I=>!I):C(I=>!I),[y,C,w]);p.useEffect(()=>{let I=A=>{A.key===Ua&&(A.metaKey||A.ctrlKey)&&(A.preventDefault(),P());};return window.addEventListener("keydown",I),()=>window.removeEventListener("keydown",I)},[P]);let E=S?"expanded":"collapsed",T=p.useMemo(()=>({state:E,open:S,setOpen:C,isMobile:y,openMobile:x,setOpenMobile:w,toggleSidebar:P}),[E,S,C,y,x,w,P]);return jsx(bt.Provider,{value:T,children:jsx(Je,{delayDuration:0,children:jsx("div",f(i({style:i({"--sidebar-width":$a,"--sidebar-width-icon":qa},a),className:n("group/sidebar-wrapper flex min-h-svh w-full has-[[data-variant=inset]]:bg-sidebar",r),ref:u},l),{children:d}))})})});Xa.displayName="SidebarProvider";var Ya=p.forwardRef((u,l)=>{var g=u,{side:t="left",variant:e="sidebar",collapsible:o="offcanvas",className:r,children:a}=g,d=s(g,["side","variant","collapsible","className","children"]);let{isMobile:b,state:y,openMobile:x,setOpenMobile:w}=ce();return o==="none"?jsx("div",f(i({className:n("flex h-full w-[--sidebar-width] flex-col bg-sidebar text-sidebar-foreground",r),ref:l},d),{children:a})):b?jsx(Ge,f(i({open:x,onOpenChange:w},d),{children:jsxs(he,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-[--sidebar-width] bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":Ka},side:t,children:[jsxs(ye,{className:"sr-only",children:[jsx(xe,{children:"Sidebar"}),jsx(we,{children:"Displays the mobile sidebar."})]}),jsx("div",{className:"flex h-full w-full flex-col",children:a})]})})):jsxs("div",{ref:l,className:"group peer hidden text-sidebar-foreground md:block","data-state":y,"data-collapsible":y==="collapsed"?o:"","data-variant":e,"data-side":t,children:[jsx("div",{className:n("relative w-[--sidebar-width] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",e==="floating"||e==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4))]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon]")}),jsx("div",f(i({className:n("fixed inset-y-0 z-10 hidden h-svh w-[--sidebar-width] transition-[left,right,width] duration-200 ease-linear md:flex",t==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",e==="floating"||e==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)_+_theme(spacing.4)_+2px)]":"group-data-[collapsible=icon]:w-[--sidebar-width-icon] group-data-[side=left]:border-r group-data-[side=right]:border-l",r)},d),{children:jsx("div",{"data-sidebar":"sidebar",className:"flex h-full w-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:border-sidebar-border group-data-[variant=floating]:shadow",children:a})}))]})});Ya.displayName="Sidebar";var Ja=p.forwardRef((a,r)=>{var d=a,{className:t,onClick:e}=d,o=s(d,["className","onClick"]);let{toggleSidebar:l}=ce();return jsxs(fe,f(i({ref:r,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:n("h-7 w-7",t),onClick:u=>{e==null||e(u),l();}},o),{children:[jsx(PanelLeft,{}),jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]}))});Ja.displayName="SidebarTrigger";var Qa=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);let{toggleSidebar:d}=ce();return jsx("button",i({ref:o,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:d,title:"Toggle Sidebar",className:n("absolute inset-y-0 z-20 hidden w-4 -translate-x-1/2 transition-all ease-linear after:absolute after:inset-y-0 after:left-1/2 after:w-[2px] hover:after:bg-sidebar-border group-data-[side=left]:-right-4 group-data-[side=right]:left-0 sm:flex","[[data-side=left]_&]:cursor-w-resize [[data-side=right]_&]:cursor-e-resize","[[data-side=left][data-state=collapsed]_&]:cursor-e-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize","group-data-[collapsible=offcanvas]:translate-x-0 group-data-[collapsible=offcanvas]:after:left-full group-data-[collapsible=offcanvas]:hover:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",t)},e))});Qa.displayName="SidebarRail";var Za=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("main",i({ref:o,className:n("relative flex w-full flex-1 flex-col bg-background","md:peer-data-[variant=inset]:m-2 md:peer-data-[state=collapsed]:peer-data-[variant=inset]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow",t)},e))});Za.displayName="SidebarInset";var ja=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(G,i({ref:o,"data-sidebar":"input",className:n("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",t)},e))});ja.displayName="SidebarInput";var eo=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"header",className:n("flex flex-col gap-2 p-2",t)},e))});eo.displayName="SidebarHeader";var to=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"footer",className:n("flex flex-col gap-2 p-2",t)},e))});to.displayName="SidebarFooter";var ao=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(ve,i({ref:o,"data-sidebar":"separator",className:n("mx-2 w-auto bg-sidebar-border",t)},e))});ao.displayName="SidebarSeparator";var oo=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"content",className:n("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t)},e))});oo.displayName="SidebarContent";var ro=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"group",className:n("relative flex w-full min-w-0 flex-col p-2",t)},e))});ro.displayName="SidebarGroup";var io=p.forwardRef((a,r)=>{var d=a,{className:t,asChild:e=false}=d,o=s(d,["className","asChild"]);return jsx(e?Slot:"div",i({ref:r,"data-sidebar":"group-label",className:n("flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-none ring-sidebar-ring transition-[margin,opacity] duration-200 ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t)},o))});io.displayName="SidebarGroupLabel";var no=p.forwardRef((a,r)=>{var d=a,{className:t,asChild:e=false}=d,o=s(d,["className","asChild"]);return jsx(e?Slot:"button",i({ref:r,"data-sidebar":"group-action",className:n("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","group-data-[collapsible=icon]:hidden",t)},o))});no.displayName="SidebarGroupAction";var so=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"group-content",className:n("w-full text-sm",t)},e))});so.displayName="SidebarGroupContent";var lo=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("ul",i({ref:o,"data-sidebar":"menu",className:n("flex w-full min-w-0 flex-col gap-1",t)},e))});lo.displayName="SidebarMenu";var mo=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("li",i({ref:o,"data-sidebar":"menu-item",className:n("group/menu-item relative",t)},e))});mo.displayName="SidebarMenuItem";var po=cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-none ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-[[data-sidebar=menu-action]]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:!size-8 group-data-[collapsible=icon]:!p-2 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:!p-0"}},defaultVariants:{variant:"default",size:"default"}}),co=p.forwardRef((g,u)=>{var b=g,{asChild:t=false,isActive:e=false,variant:o="default",size:r="default",tooltip:a,className:d}=b,l=s(b,["asChild","isActive","variant","size","tooltip","className"]);let y=t?Slot:"button",{isMobile:x,state:w}=ce(),D=jsx(y,i({ref:u,"data-sidebar":"menu-button","data-size":r,"data-active":e,className:n(po({variant:o,size:r}),d)},l));return a?(typeof a=="string"&&(a={children:a}),jsxs(Qe,{children:[jsx(Ze,{asChild:true,children:D}),jsx(Me,i({side:"right",align:"center",hidden:w!=="collapsed"||x},a))]})):D});co.displayName="SidebarMenuButton";var fo=p.forwardRef((d,a)=>{var l=d,{className:t,asChild:e=false,showOnHover:o=false}=l,r=s(l,["className","asChild","showOnHover"]);return jsx(e?Slot:"button",i({ref:a,"data-sidebar":"menu-action",className:n("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-none ring-sidebar-ring transition-transform hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 peer-hover/menu-button:text-sidebar-accent-foreground [&>svg]:size-4 [&>svg]:shrink-0","after:absolute after:-inset-2 after:md:hidden","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",o&&"group-focus-within/menu-item:opacity-100 group-hover/menu-item:opacity-100 data-[state=open]:opacity-100 peer-data-[active=true]/menu-button:text-sidebar-accent-foreground md:opacity-0",t)},r))});fo.displayName="SidebarMenuAction";var uo=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("div",i({ref:o,"data-sidebar":"menu-badge",className:n("pointer-events-none absolute right-1 flex h-5 min-w-5 select-none items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground","peer-hover/menu-button:text-sidebar-accent-foreground peer-data-[active=true]/menu-button:text-sidebar-accent-foreground","peer-data-[size=sm]/menu-button:top-1","peer-data-[size=default]/menu-button:top-1.5","peer-data-[size=lg]/menu-button:top-2.5","group-data-[collapsible=icon]:hidden",t)},e))});uo.displayName="SidebarMenuBadge";var go=p.forwardRef((a,r)=>{var d=a,{className:t,showIcon:e=false}=d,o=s(d,["className","showIcon"]);let l=p.useMemo(()=>`${Math.floor(Math.random()*40)+50}%`,[]);return jsxs("div",f(i({ref:r,"data-sidebar":"menu-skeleton",className:n("flex h-8 items-center gap-2 rounded-md px-2",t)},o),{children:[e&&jsx(Pe,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),jsx(Pe,{className:"h-4 max-w-[--skeleton-width] flex-1","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":l}})]}))});go.displayName="SidebarMenuSkeleton";var bo=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx("ul",i({ref:o,"data-sidebar":"menu-sub",className:n("mx-3.5 flex min-w-0 translate-x-px flex-col gap-1 border-l border-sidebar-border px-2.5 py-0.5","group-data-[collapsible=icon]:hidden",t)},e))});bo.displayName="SidebarMenuSub";var vo=p.forwardRef((o,e)=>{var t=s(o,[]);return jsx("li",i({ref:e},t))});vo.displayName="SidebarMenuSubItem";var Ro=p.forwardRef((l,d)=>{var u=l,{asChild:t=false,size:e="md",isActive:o,className:r}=u,a=s(u,["asChild","size","isActive","className"]);return jsx(t?Slot:"a",i({ref:d,"data-sidebar":"menu-sub-button","data-size":e,"data-active":o,className:n("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-none ring-sidebar-ring hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground","data-[active=true]:bg-sidebar-accent data-[active=true]:text-sidebar-accent-foreground",e==="sm"&&"text-xs",e==="md"&&"text-sm","group-data-[collapsible=icon]:hidden",r)},a))});Ro.displayName="SidebarMenuSubButton";var wo=m.Root,Po=m.Trigger,No=m.Group,Mo=m.Portal,Do=m.Sub,Co=m.RadioGroup,vt=p.forwardRef((d,a)=>{var l=d,{className:t,inset:e,children:o}=l,r=s(l,["className","inset","children"]);return jsxs(m.SubTrigger,f(i({ref:a,className:n("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent",e&&"pl-8",t)},r),{children:[o,jsx(ChevronRight,{className:"ml-auto h-4 w-4"})]}))});vt.displayName=m.SubTrigger.displayName;var Rt=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(m.SubContent,i({ref:o,className:n("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t)},e))});Rt.displayName=m.SubContent.displayName;var ht=p.forwardRef((a,r)=>{var d=a,{className:t,sideOffset:e=4}=d,o=s(d,["className","sideOffset"]);return jsx(m.Portal,{children:jsx(m.Content,i({ref:r,sideOffset:e,className:n("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t)},o))})});ht.displayName=m.Content.displayName;var yt=p.forwardRef((a,r)=>{var d=a,{className:t,inset:e}=d,o=s(d,["className","inset"]);return jsx(m.Item,i({ref:r,className:n("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e&&"pl-8",t)},o))});yt.displayName=m.Item.displayName;var xt=p.forwardRef((d,a)=>{var l=d,{className:t,children:e,checked:o}=l,r=s(l,["className","children","checked"]);return jsxs(m.CheckboxItem,f(i({ref:a,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t),checked:o},r),{children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(m.ItemIndicator,{children:jsx(Check,{className:"h-4 w-4"})})}),e]}))});xt.displayName=m.CheckboxItem.displayName;var wt=p.forwardRef((a,r)=>{var d=a,{className:t,children:e}=d,o=s(d,["className","children"]);return jsxs(m.RadioItem,f(i({ref:r,className:n("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",t)},o),{children:[jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:jsx(m.ItemIndicator,{children:jsx(Circle,{className:"h-2 w-2 fill-current"})})}),e]}))});wt.displayName=m.RadioItem.displayName;var Pt=p.forwardRef((a,r)=>{var d=a,{className:t,inset:e}=d,o=s(d,["className","inset"]);return jsx(m.Label,i({ref:r,className:n("px-2 py-1.5 text-sm font-semibold",e&&"pl-8",t)},o))});Pt.displayName=m.Label.displayName;var Nt=p.forwardRef((r,o)=>{var a=r,{className:t}=a,e=s(a,["className"]);return jsx(m.Separator,i({ref:o,className:n("-mx-1 my-1 h-px bg-muted",t)},e))});Nt.displayName=m.Separator.displayName;var Mt=o=>{var r=o,{className:t}=r,e=s(r,["className"]);return jsx("span",i({className:n("ml-auto text-xs tracking-widest opacity-60",t)},e))};Mt.displayName="DropdownMenuShortcut";export{Ke as Avatar,Ue as AvatarFallback,qe as AvatarImage,tt as Badge,Kt as Box,fe as Button,xa as Card,Ma as CardContent,Na as CardDescription,Da as CardFooter,wa as CardHeader,Pa as CardTitle,Gt as Container,yr as Dialog,wr as DialogClose,Qt as DialogContent,ta as DialogDescription,jt as DialogFooter,Zt as DialogHeader,_e as DialogOverlay,Jt as DialogPortal,ea as DialogTitle,xr as DialogTrigger,Ia as Drawer,qi as DrawerClose,ka as DrawerContent,Ba as DrawerDescription,Aa as DrawerFooter,Va as DrawerHeader,ut as DrawerOverlay,Ha as DrawerPortal,za as DrawerTitle,Ki as DrawerTrigger,wo as DropdownMenu,xt as DropdownMenuCheckboxItem,ht as DropdownMenuContent,No as DropdownMenuGroup,yt as DropdownMenuItem,Pt as DropdownMenuLabel,Mo as DropdownMenuPortal,Co as DropdownMenuRadioGroup,wt as DropdownMenuRadioItem,Nt as DropdownMenuSeparator,Mt as DropdownMenuShortcut,Do as DropdownMenuSub,Rt as DropdownMenuSubContent,vt as DropdownMenuSubTrigger,Po as DropdownMenuTrigger,ga as Form,de as FormControl,le as FormDescription,ba as FormField,ne as FormItem,se as FormLabel,me as FormMessage,G as Input,nt as NavigationMenu,lt as NavigationMenuContent,mt as NavigationMenuIndicator,Ta as NavigationMenuItem,Fa as NavigationMenuLink,st as NavigationMenuList,dt as NavigationMenuTrigger,Ce as NavigationMenuViewport,Bi as RHFTextField,ve as Separator,Ge as Sheet,Hr as SheetClose,he as SheetContent,we as SheetDescription,sa as SheetFooter,ye as SheetHeader,$e as SheetOverlay,ia as SheetPortal,xe as SheetTitle,Ir as SheetTrigger,Ya as Sidebar,oo as SidebarContent,to as SidebarFooter,ro as SidebarGroup,no as SidebarGroupAction,so as SidebarGroupContent,io as SidebarGroupLabel,eo as SidebarHeader,ja as SidebarInput,Za as SidebarInset,lo as SidebarMenu,fo as SidebarMenuAction,uo as SidebarMenuBadge,co as SidebarMenuButton,mo as SidebarMenuItem,go as SidebarMenuSkeleton,bo as SidebarMenuSub,Ro as SidebarMenuSubButton,vo as SidebarMenuSubItem,Xa as SidebarProvider,Qa as SidebarRail,ao as SidebarSeparator,Ja as SidebarTrigger,Pe as Skeleton,Ut as Stack,Wt as TextField,Qe as Tooltip,Me as TooltipContent,Je as TooltipProvider,Ze as TooltipTrigger,ha as Typography,De as badgeVariants,Ie as buttonVariants,n as cn,po as sidebarMenuButtonVariants,_t as textFieldVariants,Ra as typographyVariants,j as useFormField,gt as useIsMobile,ce as useSidebar};//# sourceMappingURL=index.mjs.map
2
2
  //# sourceMappingURL=index.mjs.map