@syscore/ui-library 1.1.7 → 1.1.8
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.
|
@@ -9,7 +9,7 @@ const buttonVariants = cva(
|
|
|
9
9
|
variant: {
|
|
10
10
|
// CTA Button Variants
|
|
11
11
|
"primary-gradient": [
|
|
12
|
-
"text-
|
|
12
|
+
"text-black shadow-xs",
|
|
13
13
|
"bg-linear-to-r from-cyan-gradient-from via-cyan-gradient-via to-cyan-gradient-to",
|
|
14
14
|
"hover:shadow-lg hover:scale-[1.02]",
|
|
15
15
|
"relative",
|
package/dist/ui/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("@radix-ui/react-accordion"),r=require("lucide-react"),s=require("clsx"),o=require("tailwind-merge"),i=require("@radix-ui/react-aspect-ratio"),n=require("@radix-ui/react-separator"),d=require("@radix-ui/react-scroll-area"),l=require("react-resizable-panels"),c=require("@radix-ui/react-slot"),m=require("class-variance-authority"),p=require("@radix-ui/react-dialog"),f=require("@radix-ui/react-tooltip"),u=require("@radix-ui/react-label"),x=require("@radix-ui/react-checkbox"),g=require("@radix-ui/react-radio-group"),b=require("@radix-ui/react-switch"),h=require("@radix-ui/react-slider"),N=require("input-otp"),v=require("@radix-ui/react-select"),y=require("react-hook-form"),w=require("@radix-ui/react-toggle-group"),j=require("@radix-ui/react-toggle"),C=require("@radix-ui/react-alert-dialog"),R=require("@radix-ui/react-avatar"),S=require("@radix-ui/react-progress"),k=require("react-day-picker"),T=require("@radix-ui/react-tabs"),I=require("@radix-ui/react-navigation-menu"),z=require("@radix-ui/react-menubar"),D=require("@radix-ui/react-dropdown-menu"),M=require("vaul"),P=require("@radix-ui/react-popover"),_=require("@radix-ui/react-hover-card"),A=require("@radix-ui/react-context-menu"),O=require("embla-carousel-react"),L=require("@radix-ui/react-collapsible"),q=require("cmdk"),F=require("@radix-ui/react-toast"),B=require("recharts"),G=require("next-themes"),E=require("sonner");function H(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}return a.default=e,Object.freeze(a)}const V=H(a),$=H(t),K=H(i),U=H(n),W=H(d),X=H(l),J=H(p),Q=H(f),Y=H(u),Z=H(x),ee=H(g),ae=H(b),te=H(h),re=H(v),se=H(w),oe=H(j),ie=H(C),ne=H(R),de=H(S),le=H(T),ce=H(I),me=H(z),pe=H(D),fe=H(P),ue=H(_),xe=H(A),ge=H(L),be=H(F),he=H(B);function Ne(...e){return o.twMerge(s.clsx(e))}const ve=$.Root,ye=V.forwardRef(({className:a,...t},r)=>e.jsx($.Item,{ref:r,className:Ne("border-b",a),...t}));ye.displayName="AccordionItem";const we=V.forwardRef(({className:a,children:t,...s},o)=>e.jsx($.Header,{className:"flex",children:e.jsxs($.Trigger,{ref:o,className:Ne("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",a),...s,children:[t,e.jsx(r.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));we.displayName=$.Trigger.displayName;const je=V.forwardRef(({className:a,children:t,...r},s)=>e.jsx($.Content,{ref:s,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:e.jsx("div",{className:Ne("pb-4 pt-0",a),children:t})}));je.displayName=$.Content.displayName;const Ce=K.Root,Re=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("rounded-lg border bg-card text-card-foreground shadow-xs",a),...t}));Re.displayName="Card";const Se=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("flex flex-col space-y-1.5 p-6",a),...t}));Se.displayName="CardHeader";const ke=V.forwardRef(({className:a,...t},r)=>e.jsx("h3",{ref:r,className:Ne("text-2xl font-semibold leading-none tracking-tight",a),...t}));ke.displayName="CardTitle";const Te=V.forwardRef(({className:a,...t},r)=>e.jsx("p",{ref:r,className:Ne("text-sm text-muted-foreground",a),...t}));Te.displayName="CardDescription";const Ie=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("p-6 pt-0",a),...t}));Ie.displayName="CardContent";const ze=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("flex items-center p-6 pt-0",a),...t}));ze.displayName="CardFooter";const De=V.forwardRef(({className:a,orientation:t="horizontal",decorative:r=!0,...s},o)=>e.jsx(U.Root,{ref:o,decorative:r,orientation:t,className:Ne("shrink-0 bg-border","horizontal"===t?"h-px w-full":"h-full w-px",a),...s}));De.displayName=U.Root.displayName;const Me=V.forwardRef(({className:a,children:t,...r},s)=>e.jsxs(W.Root,{ref:s,className:Ne("relative overflow-hidden",a),...r,children:[e.jsx(W.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),e.jsx(Pe,{}),e.jsx(W.Corner,{})]}));Me.displayName=W.Root.displayName;const Pe=V.forwardRef(({className:a,orientation:t="vertical",...r},s)=>e.jsx(W.ScrollAreaScrollbar,{ref:s,orientation:t,className:Ne("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-px","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-px",a),...r,children:e.jsx(W.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Pe.displayName=W.ScrollAreaScrollbar.displayName;const _e=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:r,className:Ne("w-full caption-bottom text-sm",a),...t})}));_e.displayName="Table";const Ae=V.forwardRef(({className:a,...t},r)=>e.jsx("thead",{ref:r,className:Ne("[&_tr]:border-b",a),...t}));Ae.displayName="TableHeader";const Oe=V.forwardRef(({className:a,...t},r)=>e.jsx("tbody",{ref:r,className:Ne("[&_tr:last-child]:border-0",a),...t}));Oe.displayName="TableBody";const Le=V.forwardRef(({className:a,...t},r)=>e.jsx("tfoot",{ref:r,className:Ne("border-t bg-muted/50 font-medium last:[&>tr]:border-b-0",a),...t}));Le.displayName="TableFooter";const qe=V.forwardRef(({className:a,...t},r)=>e.jsx("tr",{ref:r,className:Ne("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...t}));qe.displayName="TableRow";const Fe=V.forwardRef(({className:a,...t},r)=>e.jsx("th",{ref:r,className:Ne("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...t}));Fe.displayName="TableHead";const Be=V.forwardRef(({className:a,...t},r)=>e.jsx("td",{ref:r,className:Ne("p-4 align-middle [&:has([role=checkbox])]:pr-0",a),...t}));Be.displayName="TableCell";const Ge=V.forwardRef(({className:a,...t},r)=>e.jsx("caption",{ref:r,className:Ne("mt-4 text-sm text-muted-foreground",a),...t}));Ge.displayName="TableCaption";const Ee=X.Panel;const He=m.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap font-semibold transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 active:scale-[.98]",{variants:{variant:{"primary-gradient":["text-white shadow-xs","bg-linear-to-r from-cyan-gradient-from via-cyan-gradient-via to-cyan-gradient-to","hover:shadow-lg hover:scale-[1.02]","relative","before:absolute before:inset-0 before:rounded-[inherit] before:bg-linear-to-r before:from-cyan-800 before:to-cyan-800 before:opacity-60 before:mix-blend-overlay"],"primary-dark":["text-white shadow-xs","bg-linear-to-r from-cyan-800 to-cyan-dark","hover:shadow-lg hover:brightness-110"],"secondary-light":["text-cyan-800 bg-white shadow-xs","border border-gray-200","hover:bg-gray-50/80"],"tertiary-light":["text-blue-600 bg-blue-50 shadow-xs","border border-blue-200","hover:bg-blue-50/80"],"utility-primary":["text-white bg-blue-600","hover:bg-blue-600/90"],"utility-secondary":["text-blue-600 bg-white","border border-blue-200","hover:bg-gray-50"],"utility-tertiary":["text-gray-600 bg-white","border border-gray-200","hover:bg-gray-50"],"tooltip-primary":["text-white bg-cyan-300","hover:bg-cyan-300/90"],"tooltip-secondary":["text-white bg-gray-500","hover:bg-gray-500/90"],"icon-reset":["text-gray-500 bg-white","border border-gray-100","hover:bg-gray-50","p-0"],"icon-close":["text-gray-500 bg-white","border border-gray-100","hover:bg-gray-50","p-0"],"icon-close-semi":["text-white bg-black/8","hover:bg-black/12","p-0"],"icon-utility":["text-gray-500 bg-white","border border-gray-100","hover:bg-gray-50","p-0"],"icon-account":["bg-white border border-gray-100","hover:bg-gray-50","p-0"],"icon-account-semi":["bg-black/8 hover:bg-black/12","p-0"]},size:{xs:"h-8 px-4 text-sm rounded-full",sm:"h-8 px-3 text-xs rounded-md",md:"h-10 px-4 text-sm rounded-md",lg:"h-12 px-8 text-base rounded-full",xl:"h-16 px-10 text-lg rounded-full",icon:"h-8 w-8 rounded-full"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary-gradient",size:"md"}}),Ve=V.forwardRef(({className:a,variant:t,size:r,fullWidth:s,leftIcon:o,rightIcon:i,iconOnly:n,children:d,style:l,...c},m)=>{const p={fontFamily:"'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",...l};return n?e.jsx("button",{ref:m,className:Ne(He({variant:t,size:r||"icon",fullWidth:s}),a),style:p,...c,children:n}):e.jsxs("button",{ref:m,className:Ne(He({variant:t,size:r,fullWidth:s}),a),style:p,...c,children:[o,e.jsx("span",{children:d}),i]})});Ve.displayName="Button";const $e=V.forwardRef(({className:a,type:t,...r},s)=>e.jsx("input",{type:t,className:Ne("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:s,...r}));$e.displayName="Input";const Ke=J.Root,Ue=J.Trigger,We=J.Close,Xe=J.Portal,Je=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Overlay,{className:Ne("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",a),...t,ref:r}));Je.displayName=J.Overlay.displayName;const Qe=m.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ye=V.forwardRef(({side:a="right",className:t,children:s,...o},i)=>e.jsxs(Xe,{children:[e.jsx(Je,{}),e.jsxs(J.Content,{ref:i,className:Ne(Qe({side:a}),t),...o,children:[s,e.jsxs(J.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(r.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ye.displayName=J.Content.displayName;const Ze=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col space-y-2 text-center sm:text-left",a),...t});Ze.displayName="SheetHeader";const ea=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});ea.displayName="SheetFooter";const aa=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Title,{ref:r,className:Ne("text-lg font-semibold text-foreground",a),...t}));aa.displayName=J.Title.displayName;const ta=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Description,{ref:r,className:Ne("text-sm text-muted-foreground",a),...t}));function ra({className:a,...t}){return e.jsx("div",{className:Ne("animate-pulse rounded-md bg-muted",a),...t})}ta.displayName=J.Description.displayName;const sa=Q.Provider,oa=Q.Root,ia=Q.Trigger,na=V.forwardRef(({className:a,sideOffset:t=4,...r},s)=>e.jsx(Q.Content,{ref:s,sideOffset:t,className:Ne("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r}));na.displayName=Q.Content.displayName;const da=V.createContext(null);function la(){const e=V.useContext(da);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}V.forwardRef(({defaultOpen:a=!0,open:t,onOpenChange:r,className:s,style:o,children:i,...n},d)=>{const l=function(){const[e,a]=V.useState(void 0);return V.useEffect(()=>{const e=window.matchMedia("(max-width: 767px)"),t=()=>{a(window.innerWidth<768)};return e.addEventListener("change",t),a(window.innerWidth<768),()=>e.removeEventListener("change",t)},[]),!!e}(),[c,m]=V.useState(!1),[p,f]=V.useState(a),u=t??p,x=V.useCallback(e=>{const a="function"==typeof e?e(u):e;r?r(a):f(a),document.cookie=`sidebar:state=${a}; path=/; max-age=604800`},[r,u]),g=V.useCallback(()=>l?m(e=>!e):x(e=>!e),[l,x,m]);V.useEffect(()=>{const e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);const b=u?"expanded":"collapsed",h=V.useMemo(()=>({state:b,open:u,setOpen:x,isMobile:l,openMobile:c,setOpenMobile:m,toggleSidebar:g}),[b,u,x,l,c,m,g]);return e.jsx(da.Provider,{value:h,children:e.jsx(sa,{delayDuration:0,children:e.jsx("div",{style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...o},className:Ne("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",s),ref:d,...n,children:i})})})}).displayName="SidebarProvider";const ca=V.forwardRef(({side:a="left",variant:t="sidebar",collapsible:r="offcanvas",className:s,children:o,...i},n)=>{const{isMobile:d,state:l,openMobile:c,setOpenMobile:m}=la();return"none"===r?e.jsx("div",{className:Ne("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",s),ref:n,...i,children:o}):d?e.jsx(Ke,{open:c,onOpenChange:m,...i,children:e.jsx(Ye,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:a,children:e.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):e.jsxs("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":l,"data-collapsible":"collapsed"===l?r:"","data-variant":t,"data-side":a,children:[e.jsx("div",{className:Ne("duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),e.jsx("div",{className:Ne("duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex","left"===a?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...i,children:e.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-sm",children:o})})]})});ca.displayName="Sidebar";V.forwardRef(({className:a,onClick:t,...s},o)=>{const{toggleSidebar:i}=la();return e.jsxs(Ve,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:Ne("h-7 w-7",a),onClick:e=>{null==t||t(e),i()},...s,children:[e.jsx(r.PanelLeft,{}),e.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}).displayName="SidebarTrigger";V.forwardRef(({className:a,...t},r)=>{const{toggleSidebar:s}=la();return e.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:s,title:"Toggle Sidebar",className:Ne("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","in-data-[side=left]:cursor-w-resize in-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 hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...t})}).displayName="SidebarRail";V.forwardRef(({className:a,...t},r)=>e.jsx("main",{ref:r,className:Ne("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",a),...t})).displayName="SidebarInset";V.forwardRef(({className:a,...t},r)=>e.jsx($e,{ref:r,"data-sidebar":"input",className:Ne("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...t})).displayName="SidebarInput";const ma=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"header",className:Ne("flex flex-col gap-2 p-2",a),...t}));ma.displayName="SidebarHeader";const pa=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"footer",className:Ne("flex flex-col gap-2 p-2",a),...t}));pa.displayName="SidebarFooter";V.forwardRef(({className:a,...t},r)=>e.jsx(De,{ref:r,"data-sidebar":"separator",className:Ne("mx-2 w-auto bg-sidebar-border",a),...t})).displayName="SidebarSeparator";const fa=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"content",className:Ne("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...t}));fa.displayName="SidebarContent";const ua=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"group",className:Ne("relative flex w-full min-w-0 flex-col p-2",a),...t}));ua.displayName="SidebarGroup";const xa=V.forwardRef(({className:a,asChild:t=!1,...r},s)=>{const o=t?c.Slot:"div";return e.jsx(o,{ref:s,"data-sidebar":"group-label",className:Ne("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...r})});xa.displayName="SidebarGroupLabel";V.forwardRef(({className:a,asChild:t=!1,...r},s)=>{const o=t?c.Slot:"button";return e.jsx(o,{ref:s,"data-sidebar":"group-action",className:Ne("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden 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 md:after:hidden","group-data-[collapsible=icon]:hidden",a),...r})}).displayName="SidebarGroupAction";const ga=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"group-content",className:Ne("w-full text-sm",a),...t}));ga.displayName="SidebarGroupContent";const ba=V.forwardRef(({className:a,...t},r)=>e.jsx("ul",{ref:r,"data-sidebar":"menu",className:Ne("flex w-full min-w-0 flex-col gap-1",a),...t}));ba.displayName="SidebarMenu";const ha=V.forwardRef(({className:a,...t},r)=>e.jsx("li",{ref:r,"data-sidebar":"menu-item",className:Ne("group/menu-item relative",a),...t}));ha.displayName="SidebarMenuItem";const Na=m.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden 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"}}),va=V.forwardRef(({asChild:a=!1,isActive:t=!1,variant:r="default",size:s="default",tooltip:o,className:i,...n},d)=>{const l=a?c.Slot:"button",{isMobile:m,state:p}=la(),f=e.jsx(l,{ref:d,"data-sidebar":"menu-button","data-size":s,"data-active":t,className:Ne(Na({variant:r,size:s}),i),...n});return o?("string"==typeof o&&(o={children:o}),e.jsxs(oa,{children:[e.jsx(ia,{asChild:!0,children:f}),e.jsx(na,{side:"right",align:"center",hidden:"collapsed"!==p||m,...o})]})):f});va.displayName="SidebarMenuButton";V.forwardRef(({className:a,asChild:t=!1,showOnHover:r=!1,...s},o)=>{const i=t?c.Slot:"button";return e.jsx(i,{ref:o,"data-sidebar":"menu-action",className:Ne("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden 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 md:after: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",r&&"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",a),...s})}).displayName="SidebarMenuAction";V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:Ne("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","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",a),...t})).displayName="SidebarMenuBadge";V.forwardRef(({className:a,showIcon:t=!1,...r},s)=>{const o=V.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return e.jsxs("div",{ref:s,"data-sidebar":"menu-skeleton",className:Ne("rounded-md h-8 flex gap-2 px-2 items-center",a),...r,children:[t&&e.jsx(ra,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),e.jsx(ra,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}).displayName="SidebarMenuSkeleton";const ya=V.forwardRef(({className:a,...t},r)=>e.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:Ne("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",a),...t}));ya.displayName="SidebarMenuSub";const wa=V.forwardRef(({...a},t)=>e.jsx("li",{ref:t,...a}));wa.displayName="SidebarMenuSubItem";const ja=V.forwardRef(({asChild:a=!1,size:t="md",isActive:r,className:s,...o},i)=>{const n=a?c.Slot:"a";return e.jsx(n,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:Ne("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden 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","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",s),...o})});ja.displayName="SidebarMenuSubButton";const Ca=m.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ra=V.forwardRef(({className:a,...t},r)=>e.jsx(Y.Root,{ref:r,className:Ne(Ca(),a),...t}));Ra.displayName=Y.Root.displayName;const Sa=V.forwardRef(({className:a,...t},r)=>e.jsx("textarea",{className:Ne("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),ref:r,...t}));Sa.displayName="Textarea";const ka=V.forwardRef(({className:a,...t},s)=>e.jsx(Z.Root,{ref:s,className:Ne("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...t,children:e.jsx(Z.Indicator,{className:Ne("flex items-center justify-center text-current"),children:e.jsx(r.Check,{className:"h-4 w-4"})})}));ka.displayName=Z.Root.displayName;const Ta=V.forwardRef(({className:a,...t},r)=>e.jsx(ee.Root,{className:Ne("grid gap-2",a),...t,ref:r}));Ta.displayName=ee.Root.displayName;const Ia=V.forwardRef(({className:a,...t},s)=>e.jsx(ee.Item,{ref:s,className:Ne("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),...t,children:e.jsx(ee.Indicator,{className:"flex items-center justify-center",children:e.jsx(r.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Ia.displayName=ee.Item.displayName;const za=V.forwardRef(({className:a,...t},r)=>e.jsx(ae.Root,{className:Ne("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...t,ref:r,children:e.jsx(ae.Thumb,{className:Ne("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));za.displayName=ae.Root.displayName;const Da=V.forwardRef(({className:a,...t},r)=>e.jsxs(te.Root,{ref:r,className:Ne("relative flex w-full touch-none select-none items-center",a),...t,children:[e.jsx(te.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(te.Range,{className:"absolute h-full bg-primary"})}),e.jsx(te.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Da.displayName=te.Root.displayName;const Ma=V.forwardRef(({className:a,containerClassName:t,...r},s)=>e.jsx(N.OTPInput,{ref:s,containerClassName:Ne("flex items-center gap-2 has-disabled:opacity-50",t),className:Ne("disabled:cursor-not-allowed",a),...r}));Ma.displayName="InputOTP";const Pa=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("flex items-center",a),...t}));Pa.displayName="InputOTPGroup";const _a=V.forwardRef(({index:a,className:t,...r},s)=>{const o=V.useContext(N.OTPInputContext),{char:i,hasFakeCaret:n,isActive:d}=o.slots[a];return e.jsxs("div",{ref:s,className:Ne("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",d&&"z-10 ring-2 ring-ring ring-offset-background",t),...r,children:[i,n&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});_a.displayName="InputOTPSlot";const Aa=V.forwardRef(({...a},t)=>e.jsx("div",{ref:t,role:"separator",...a,children:e.jsx(r.Dot,{})}));Aa.displayName="InputOTPSeparator";const Oa=re.Root,La=re.Group,qa=re.Value,Fa=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(re.Trigger,{ref:o,className:Ne("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...s,children:[t,e.jsx(re.Icon,{asChild:!0,children:e.jsx(r.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Fa.displayName=re.Trigger.displayName;const Ba=V.forwardRef(({className:a,...t},s)=>e.jsx(re.ScrollUpButton,{ref:s,className:Ne("flex cursor-default items-center justify-center py-1",a),...t,children:e.jsx(r.ChevronUp,{className:"h-4 w-4"})}));Ba.displayName=re.ScrollUpButton.displayName;const Ga=V.forwardRef(({className:a,...t},s)=>e.jsx(re.ScrollDownButton,{ref:s,className:Ne("flex cursor-default items-center justify-center py-1",a),...t,children:e.jsx(r.ChevronDown,{className:"h-4 w-4"})}));Ga.displayName=re.ScrollDownButton.displayName;const Ea=V.forwardRef(({className:a,children:t,position:r="popper",...s},o)=>e.jsx(re.Portal,{children:e.jsxs(re.Content,{ref:o,className:Ne("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:r,...s,children:[e.jsx(Ba,{}),e.jsx(re.Viewport,{className:Ne("p-1","popper"===r&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),e.jsx(Ga,{})]})}));Ea.displayName=re.Content.displayName;const Ha=V.forwardRef(({className:a,...t},r)=>e.jsx(re.Label,{ref:r,className:Ne("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...t}));Ha.displayName=re.Label.displayName;const Va=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(re.Item,{ref:o,className:Ne("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(re.ItemIndicator,{children:e.jsx(r.Check,{className:"h-4 w-4"})})}),e.jsx(re.ItemText,{children:t})]}));Va.displayName=re.Item.displayName;const $a=V.forwardRef(({className:a,...t},r)=>e.jsx(re.Separator,{ref:r,className:Ne("-mx-1 my-1 h-px bg-muted",a),...t}));$a.displayName=re.Separator.displayName;const Ka=y.FormProvider,Ua=V.createContext({}),Wa=()=>{const e=V.useContext(Ua),a=V.useContext(Xa),{getFieldState:t,formState:r}=y.useFormContext(),s=t(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=a;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...s}},Xa=V.createContext({}),Ja=V.forwardRef(({className:a,...t},r)=>{const s=V.useId();return e.jsx(Xa.Provider,{value:{id:s},children:e.jsx("div",{ref:r,className:Ne("space-y-2",a),...t})})});Ja.displayName="FormItem";const Qa=V.forwardRef(({className:a,...t},r)=>{const{error:s,formItemId:o}=Wa();return e.jsx(Ra,{ref:r,className:Ne(s&&"text-destructive",a),htmlFor:o,...t})});Qa.displayName="FormLabel";const Ya=V.forwardRef(({...a},t)=>{const{error:r,formItemId:s,formDescriptionId:o,formMessageId:i}=Wa();return e.jsx(c.Slot,{ref:t,id:s,"aria-describedby":r?`${o} ${i}`:`${o}`,"aria-invalid":!!r,...a})});Ya.displayName="FormControl";const Za=V.forwardRef(({className:a,...t},r)=>{const{formDescriptionId:s}=Wa();return e.jsx("p",{ref:r,id:s,className:Ne("text-sm text-muted-foreground",a),...t})});Za.displayName="FormDescription";const et=V.forwardRef(({className:a,children:t,...r},s)=>{const{error:o,formMessageId:i}=Wa(),n=o?String(null==o?void 0:o.message):t;return n?e.jsx("p",{ref:s,id:i,className:Ne("text-sm font-medium text-destructive",a),...r,children:n}):null});et.displayName="FormMessage";const at=m.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),tt=V.forwardRef(({className:a,variant:t,size:r,...s},o)=>e.jsx(oe.Root,{ref:o,className:Ne(at({variant:t,size:r,className:a})),...s}));tt.displayName=oe.Root.displayName;const rt=V.createContext({size:"default",variant:"default"}),st=V.forwardRef(({className:a,variant:t,size:r,children:s,...o},i)=>e.jsx(se.Root,{ref:i,className:Ne("flex items-center justify-center gap-1",a),...o,children:e.jsx(rt.Provider,{value:{variant:t,size:r},children:s})}));st.displayName=se.Root.displayName;const ot=V.forwardRef(({className:a,children:t,variant:r,size:s,...o},i)=>{const n=V.useContext(rt);return e.jsx(se.Item,{ref:i,className:Ne(at({variant:n.variant||r,size:n.size||s}),a),...o,children:t})});ot.displayName=se.Item.displayName;const it=m.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});const nt=m.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),dt=V.forwardRef(({className:a,variant:t,...r},s)=>e.jsx("div",{ref:s,role:"alert",className:Ne(nt({variant:t}),a),...r}));dt.displayName="Alert";const lt=V.forwardRef(({className:a,...t},r)=>e.jsx("h5",{ref:r,className:Ne("mb-1 font-medium leading-none tracking-tight",a),...t}));lt.displayName="AlertTitle";const ct=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("text-sm [&_p]:leading-relaxed",a),...t}));ct.displayName="AlertDescription";const mt=ie.Root,pt=ie.Trigger,ft=ie.Portal,ut=V.forwardRef(({className:a,...t},r)=>e.jsx(ie.Overlay,{className:Ne("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",a),...t,ref:r}));ut.displayName=ie.Overlay.displayName;const xt=V.forwardRef(({className:a,...t},r)=>e.jsxs(ft,{children:[e.jsx(ut,{}),e.jsx(ie.Content,{ref:r,className:Ne("fixed left-[50%] top-[50%] z-50 border-green 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",a),...t})]}));xt.displayName=ie.Content.displayName;const gt=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col space-y-2 text-center sm:text-left",a),...t});gt.displayName="AlertDialogHeader";const bt=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});bt.displayName="AlertDialogFooter";const ht=V.forwardRef(({className:a,...t},r)=>e.jsx(ie.Title,{ref:r,className:Ne("text-lg font-semibold",a),...t}));ht.displayName=ie.Title.displayName;const Nt=V.forwardRef(({className:a,...t},r)=>e.jsx(ie.Description,{ref:r,className:Ne("text-sm text-muted-foreground",a),...t}));Nt.displayName=ie.Description.displayName;const vt=V.forwardRef(({className:a,...t},r)=>e.jsx(ie.Action,{ref:r,className:Ne(He(),a),...t}));vt.displayName=ie.Action.displayName;const yt=V.forwardRef(({className:a,...t},r)=>e.jsx(ie.Cancel,{ref:r,className:Ne(He({variant:"outline"}),"mt-2 sm:mt-0",a),...t}));yt.displayName=ie.Cancel.displayName;const wt=V.forwardRef(({className:a,...t},r)=>e.jsx(ne.Root,{ref:r,className:Ne("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...t}));wt.displayName=ne.Root.displayName;const jt=V.forwardRef(({className:a,...t},r)=>e.jsx(ne.Image,{ref:r,className:Ne("aspect-square h-full w-full",a),...t}));jt.displayName=ne.Image.displayName;const Ct=V.forwardRef(({className:a,...t},r)=>e.jsx(ne.Fallback,{ref:r,className:Ne("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...t}));Ct.displayName=ne.Fallback.displayName;const Rt=V.forwardRef(({...a},t)=>e.jsx("nav",{ref:t,"aria-label":"breadcrumb",...a}));Rt.displayName="Breadcrumb";const St=V.forwardRef(({className:a,...t},r)=>e.jsx("ol",{ref:r,className:Ne("flex flex-wrap items-center gap-1.5 wrap-break-word text-sm text-muted-foreground sm:gap-2.5",a),...t}));St.displayName="BreadcrumbList";const kt=V.forwardRef(({className:a,...t},r)=>e.jsx("li",{ref:r,className:Ne("inline-flex items-center gap-1.5",a),...t}));kt.displayName="BreadcrumbItem";const Tt=V.forwardRef(({asChild:a,className:t,...r},s)=>{const o=a?c.Slot:"a";return e.jsx(o,{ref:s,className:Ne("transition-colors hover:text-foreground",t),...r})});Tt.displayName="BreadcrumbLink";const It=V.forwardRef(({className:a,...t},r)=>e.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:Ne("font-normal text-foreground",a),...t}));It.displayName="BreadcrumbPage";const zt=({children:a,className:t,...s})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:Ne("[&>svg]:size-3.5",t),...s,children:a??e.jsx(r.ChevronRight,{})});zt.displayName="BreadcrumbSeparator";const Dt=V.forwardRef(({className:a,value:t,...r},s)=>e.jsx(de.Root,{ref:s,className:Ne("relative h-4 w-full overflow-hidden rounded-full bg-secondary",a),...r,children:e.jsx(de.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));function Mt({className:a,classNames:t,showOutsideDays:s=!0,...o}){return e.jsx(k.DayPicker,{showOutsideDays:s,className:Ne("p-3",a),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Ne(He({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:Ne(He({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{Chevron:a=>"left"===a.orientation?e.jsx(r.ChevronLeft,{className:"h-4 w-4"}):e.jsx(r.ChevronRight,{className:"h-4 w-4"})},...o})}Dt.displayName=de.Root.displayName,Mt.displayName="Calendar";const Pt=le.Root,_t=V.forwardRef(({className:a,...t},r)=>e.jsx(le.List,{ref:r,className:Ne("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...t}));_t.displayName=le.List.displayName;const At=V.forwardRef(({className:a,...t},r)=>e.jsx(le.Trigger,{ref:r,className:Ne("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-xs",a),...t}));At.displayName=le.Trigger.displayName;const Ot=V.forwardRef(({className:a,...t},r)=>e.jsx(le.Content,{ref:r,className:Ne("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...t}));Ot.displayName=le.Content.displayName;const Lt=({className:a,...t})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:Ne("mx-auto flex w-full justify-center",a),...t});Lt.displayName="Pagination";const qt=V.forwardRef(({className:a,...t},r)=>e.jsx("ul",{ref:r,className:Ne("flex flex-row items-center gap-1",a),...t}));qt.displayName="PaginationContent";const Ft=V.forwardRef(({className:a,...t},r)=>e.jsx("li",{ref:r,className:Ne("",a),...t}));Ft.displayName="PaginationItem";const Bt=({className:a,isActive:t,size:r="icon",...s})=>e.jsx("a",{"aria-current":t?"page":void 0,className:Ne(He({variant:t?"outline-solid":"ghost",size:r}),a),...s});Bt.displayName="PaginationLink";const Gt=({className:a,...t})=>e.jsxs(Bt,{"aria-label":"Go to previous page",size:"default",className:Ne("gap-1 pl-2.5",a),...t,children:[e.jsx(r.ChevronLeft,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});Gt.displayName="PaginationPrevious";const Et=({className:a,...t})=>e.jsxs(Bt,{"aria-label":"Go to next page",size:"default",className:Ne("gap-1 pr-2.5",a),...t,children:[e.jsx("span",{children:"Next"}),e.jsx(r.ChevronRight,{className:"h-4 w-4"})]});Et.displayName="PaginationNext";const Ht=({className:a,...t})=>e.jsxs("span",{"aria-hidden":!0,className:Ne("flex h-9 w-9 items-center justify-center",a),...t,children:[e.jsx(r.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});Ht.displayName="PaginationEllipsis";const Vt=V.forwardRef(({className:a,children:t,...r},s)=>e.jsxs(ce.Root,{ref:s,className:Ne("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...r,children:[t,e.jsx(Qt,{})]}));Vt.displayName=ce.Root.displayName;const $t=V.forwardRef(({className:a,...t},r)=>e.jsx(ce.List,{ref:r,className:Ne("group flex flex-1 list-none items-center justify-center space-x-1",a),...t}));$t.displayName=ce.List.displayName;const Kt=ce.Item,Ut=m.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-hidden disabled:pointer-events-none disabled:opacity-50 data-active:bg-accent/50 data-[state=open]:bg-accent/50"),Wt=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(ce.Trigger,{ref:o,className:Ne(Ut(),"group",a),...s,children:[t," ",e.jsx(r.ChevronDown,{className:"relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Wt.displayName=ce.Trigger.displayName;const Xt=V.forwardRef(({className:a,...t},r)=>e.jsx(ce.Content,{ref:r,className:Ne("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 ",a),...t}));Xt.displayName=ce.Content.displayName;const Jt=ce.Link,Qt=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{className:Ne("absolute left-0 top-full flex justify-center"),children:e.jsx(ce.Viewport,{className:Ne("origin-top-center relative mt-1.5 h-(--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-(--radix-navigation-menu-viewport-width)",a),ref:r,...t})}));Qt.displayName=ce.Viewport.displayName;V.forwardRef(({className:a,...t},r)=>e.jsx(ce.Indicator,{ref:r,className:Ne("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",a),...t,children:e.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})).displayName=ce.Indicator.displayName;const Yt=me.Menu,Zt=me.Sub,er=me.RadioGroup,ar=V.forwardRef(({className:a,...t},r)=>e.jsx(me.Root,{ref:r,className:Ne("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",a),...t}));ar.displayName=me.Root.displayName;const tr=V.forwardRef(({className:a,...t},r)=>e.jsx(me.Trigger,{ref:r,className:Ne("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",a),...t}));tr.displayName=me.Trigger.displayName;const rr=V.forwardRef(({className:a,inset:t,children:s,...o},i)=>e.jsxs(me.SubTrigger,{ref:i,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",a),...o,children:[s,e.jsx(r.ChevronRight,{className:"ml-auto h-4 w-4"})]}));rr.displayName=me.SubTrigger.displayName;const sr=V.forwardRef(({className:a,...t},r)=>e.jsx(me.SubContent,{ref:r,className:Ne("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t}));sr.displayName=me.SubContent.displayName;const or=V.forwardRef(({className:a,align:t="start",alignOffset:r=-4,sideOffset:s=8,...o},i)=>e.jsx(me.Portal,{children:e.jsx(me.Content,{ref:i,align:t,alignOffset:r,sideOffset:s,className:Ne("z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})}));or.displayName=me.Content.displayName;const ir=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(me.Item,{ref:s,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",a),...r}));ir.displayName=me.Item.displayName;const nr=V.forwardRef(({className:a,children:t,checked:s,...o},i)=>e.jsxs(me.CheckboxItem,{ref:i,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),checked:s,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(me.ItemIndicator,{children:e.jsx(r.Check,{className:"h-4 w-4"})})}),t]}));nr.displayName=me.CheckboxItem.displayName;const dr=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(me.RadioItem,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(me.ItemIndicator,{children:e.jsx(r.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));dr.displayName=me.RadioItem.displayName;const lr=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(me.Label,{ref:s,className:Ne("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...r}));lr.displayName=me.Label.displayName;const cr=V.forwardRef(({className:a,...t},r)=>e.jsx(me.Separator,{ref:r,className:Ne("-mx-1 my-1 h-px bg-muted",a),...t}));cr.displayName=me.Separator.displayName;const mr=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});mr.displayname="MenubarShortcut";const pr=pe.Root,fr=pe.Trigger,ur=pe.Group,xr=pe.Portal,gr=pe.Sub,br=pe.RadioGroup,hr=V.forwardRef(({className:a,inset:t,children:s,...o},i)=>e.jsxs(pe.SubTrigger,{ref:i,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",a),...o,children:[s,e.jsx(r.ChevronRight,{className:"ml-auto h-4 w-4"})]}));hr.displayName=pe.SubTrigger.displayName;const Nr=V.forwardRef(({className:a,...t},r)=>e.jsx(pe.SubContent,{ref:r,className:Ne("z-50 min-w-32 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",a),...t}));Nr.displayName=pe.SubContent.displayName;const vr=V.forwardRef(({className:a,sideOffset:t=4,...r},s)=>e.jsx(pe.Portal,{children:e.jsx(pe.Content,{ref:s,sideOffset:t,className:Ne("z-50 min-w-32 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",a),...r})}));vr.displayName=pe.Content.displayName;const yr=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(pe.Item,{ref:s,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",a),...r}));yr.displayName=pe.Item.displayName;const wr=V.forwardRef(({className:a,children:t,checked:s,...o},i)=>e.jsxs(pe.CheckboxItem,{ref:i,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),checked:s,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(pe.ItemIndicator,{children:e.jsx(r.Check,{className:"h-4 w-4"})})}),t]}));wr.displayName=pe.CheckboxItem.displayName;const jr=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(pe.RadioItem,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(pe.ItemIndicator,{children:e.jsx(r.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));jr.displayName=pe.RadioItem.displayName;const Cr=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(pe.Label,{ref:s,className:Ne("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...r}));Cr.displayName=pe.Label.displayName;const Rr=V.forwardRef(({className:a,...t},r)=>e.jsx(pe.Separator,{ref:r,className:Ne("-mx-1 my-1 h-px bg-muted",a),...t}));Rr.displayName=pe.Separator.displayName;const Sr=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest opacity-60",a),...t});Sr.displayName="DropdownMenuShortcut";const kr=J.Root,Tr=J.Trigger,Ir=J.Portal,zr=J.Close,Dr=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Overlay,{ref:r,className:Ne("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",a),...t}));Dr.displayName=J.Overlay.displayName;const Mr=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(Ir,{children:[e.jsx(Dr,{}),e.jsxs(J.Content,{ref:o,className:Ne("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",a),...s,children:[t,e.jsxs(J.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden 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:[e.jsx(r.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Mr.displayName=J.Content.displayName;const Pr=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col space-y-1.5 text-center sm:text-left",a),...t});Pr.displayName="DialogHeader";const _r=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});_r.displayName="DialogFooter";const Ar=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Title,{ref:r,className:Ne("text-lg font-semibold leading-none tracking-tight",a),...t}));Ar.displayName=J.Title.displayName;const Or=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Description,{ref:r,className:Ne("text-sm text-muted-foreground",a),...t}));Or.displayName=J.Description.displayName;const Lr=({shouldScaleBackground:a=!0,...t})=>e.jsx(M.Drawer.Root,{shouldScaleBackground:a,...t});Lr.displayName="Drawer";const qr=M.Drawer.Trigger,Fr=M.Drawer.Portal,Br=M.Drawer.Close,Gr=V.forwardRef(({className:a,...t},r)=>e.jsx(M.Drawer.Overlay,{ref:r,className:Ne("fixed inset-0 z-50 bg-black/80",a),...t}));Gr.displayName=M.Drawer.Overlay.displayName;const Er=V.forwardRef(({className:a,children:t,...r},s)=>e.jsxs(Fr,{children:[e.jsx(Gr,{}),e.jsxs(M.Drawer.Content,{ref:s,className:Ne("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",a),...r,children:[e.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Er.displayName="DrawerContent";const Hr=({className:a,...t})=>e.jsx("div",{className:Ne("grid gap-1.5 p-4 text-center sm:text-left",a),...t});Hr.displayName="DrawerHeader";const Vr=({className:a,...t})=>e.jsx("div",{className:Ne("mt-auto flex flex-col gap-2 p-4",a),...t});Vr.displayName="DrawerFooter";const $r=V.forwardRef(({className:a,...t},r)=>e.jsx(M.Drawer.Title,{ref:r,className:Ne("text-lg font-semibold leading-none tracking-tight",a),...t}));$r.displayName=M.Drawer.Title.displayName;const Kr=V.forwardRef(({className:a,...t},r)=>e.jsx(M.Drawer.Description,{ref:r,className:Ne("text-sm text-muted-foreground",a),...t}));Kr.displayName=M.Drawer.Description.displayName;const Ur=fe.Root,Wr=fe.Trigger,Xr=V.forwardRef(({className:a,align:t="center",sideOffset:r=4,...s},o)=>e.jsx(fe.Portal,{children:e.jsx(fe.Content,{ref:o,align:t,sideOffset:r,className:Ne("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}));Xr.displayName=fe.Content.displayName;const Jr=ue.Root,Qr=ue.Trigger,Yr=V.forwardRef(({className:a,align:t="center",sideOffset:r=4,...s},o)=>e.jsx(ue.Content,{ref:o,align:t,sideOffset:r,className:Ne("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s}));Yr.displayName=ue.Content.displayName;const Zr=xe.Root,es=xe.Trigger,as=xe.Group,ts=xe.Portal,rs=xe.Sub,ss=xe.RadioGroup,os=V.forwardRef(({className:a,inset:t,children:s,...o},i)=>e.jsxs(xe.SubTrigger,{ref:i,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",a),...o,children:[s,e.jsx(r.ChevronRight,{className:"ml-auto h-4 w-4"})]}));os.displayName=xe.SubTrigger.displayName;const is=V.forwardRef(({className:a,...t},r)=>e.jsx(xe.SubContent,{ref:r,className:Ne("z-50 min-w-32 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",a),...t}));is.displayName=xe.SubContent.displayName;const ns=V.forwardRef(({className:a,...t},r)=>e.jsx(xe.Portal,{children:e.jsx(xe.Content,{ref:r,className:Ne("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t})}));ns.displayName=xe.Content.displayName;const ds=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(xe.Item,{ref:s,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",a),...r}));ds.displayName=xe.Item.displayName;const ls=V.forwardRef(({className:a,children:t,checked:s,...o},i)=>e.jsxs(xe.CheckboxItem,{ref:i,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),checked:s,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(xe.ItemIndicator,{children:e.jsx(r.Check,{className:"h-4 w-4"})})}),t]}));ls.displayName=xe.CheckboxItem.displayName;const cs=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(xe.RadioItem,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(xe.ItemIndicator,{children:e.jsx(r.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));cs.displayName=xe.RadioItem.displayName;const ms=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(xe.Label,{ref:s,className:Ne("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",a),...r}));ms.displayName=xe.Label.displayName;const ps=V.forwardRef(({className:a,...t},r)=>e.jsx(xe.Separator,{ref:r,className:Ne("-mx-1 my-1 h-px bg-border",a),...t}));ps.displayName=xe.Separator.displayName;const fs=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});fs.displayName="ContextMenuShortcut";const us=V.createContext(null);function xs(){const e=V.useContext(us);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const gs=V.forwardRef(({orientation:a="horizontal",opts:t,setApi:r,plugins:s,className:o,children:i,...n},d)=>{const[l,c]=O({...t,axis:"horizontal"===a?"x":"y"},s),[m,p]=V.useState(!1),[f,u]=V.useState(!1),x=V.useCallback(e=>{e&&(p(e.canScrollPrev()),u(e.canScrollNext()))},[]),g=V.useCallback(()=>{null==c||c.scrollPrev()},[c]),b=V.useCallback(()=>{null==c||c.scrollNext()},[c]),h=V.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),b())},[g,b]);return V.useEffect(()=>{c&&r&&r(c)},[c,r]),V.useEffect(()=>{if(c)return x(c),c.on("reInit",x),c.on("select",x),()=>{null==c||c.off("select",x)}},[c,x]),e.jsx(us.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:a||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:g,scrollNext:b,canScrollPrev:m,canScrollNext:f},children:e.jsx("div",{ref:d,onKeyDownCapture:h,className:Ne("relative",o),role:"region","aria-roledescription":"carousel",...n,children:i})})});gs.displayName="Carousel";const bs=V.forwardRef(({className:a,...t},r)=>{const{carouselRef:s,orientation:o}=xs();return e.jsx("div",{ref:s,className:"overflow-hidden",children:e.jsx("div",{ref:r,className:Ne("flex","horizontal"===o?"-ml-4":"-mt-4 flex-col",a),...t})})});bs.displayName="CarouselContent";const hs=V.forwardRef(({className:a,...t},r)=>{const{orientation:s}=xs();return e.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:Ne("min-w-0 shrink-0 grow-0 basis-full","horizontal"===s?"pl-4":"pt-4",a),...t})});hs.displayName="CarouselItem";const Ns=V.forwardRef(({className:a,variant:t="outline",size:s="icon",...o},i)=>{const{orientation:n,scrollPrev:d,canScrollPrev:l}=xs();return e.jsxs(Ve,{ref:i,variant:t,size:s,className:Ne("absolute h-8 w-8 rounded-full","horizontal"===n?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!l,onClick:d,...o,children:[e.jsx(r.ArrowLeft,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Ns.displayName="CarouselPrevious";const vs=V.forwardRef(({className:a,variant:t="outline",size:s="icon",...o},i)=>{const{orientation:n,scrollNext:d,canScrollNext:l}=xs();return e.jsxs(Ve,{ref:i,variant:t,size:s,className:Ne("absolute h-8 w-8 rounded-full","horizontal"===n?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!l,onClick:d,...o,children:[e.jsx(r.ArrowRight,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Next slide"})]})});vs.displayName="CarouselNext";const ys=ge.Root,ws=ge.CollapsibleTrigger,js=ge.CollapsibleContent,Cs=V.forwardRef(({className:a,...t},r)=>e.jsx(q.Command,{ref:r,className:Ne("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",a),...t}));Cs.displayName=q.Command.displayName;const Rs=V.forwardRef(({className:a,...t},s)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(r.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(q.Command.Input,{ref:s,className:Ne("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",a),...t})]}));Rs.displayName=q.Command.Input.displayName;const Ss=V.forwardRef(({className:a,...t},r)=>e.jsx(q.Command.List,{ref:r,className:Ne("max-h-[300px] overflow-y-auto overflow-x-hidden",a),...t}));Ss.displayName=q.Command.List.displayName;const ks=V.forwardRef((a,t)=>e.jsx(q.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...a}));ks.displayName=q.Command.Empty.displayName;const Ts=V.forwardRef(({className:a,...t},r)=>e.jsx(q.Command.Group,{ref:r,className:Ne("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",a),...t}));Ts.displayName=q.Command.Group.displayName;const Is=V.forwardRef(({className:a,...t},r)=>e.jsx(q.Command.Separator,{ref:r,className:Ne("-mx-1 h-px bg-border",a),...t}));Is.displayName=q.Command.Separator.displayName;const zs=V.forwardRef(({className:a,...t},r)=>e.jsx(q.Command.Item,{ref:r,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",a),...t}));zs.displayName=q.Command.Item.displayName;const Ds=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});Ds.displayName="CommandShortcut";const Ms=be.Provider,Ps=V.forwardRef(({className:a,...t},r)=>e.jsx(be.Viewport,{ref:r,className:Ne("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...t}));Ps.displayName=be.Viewport.displayName;const _s=m.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),As=V.forwardRef(({className:a,variant:t,...r},s)=>e.jsx(be.Root,{ref:s,className:Ne(_s({variant:t}),a),...r}));As.displayName=be.Root.displayName;const Os=V.forwardRef(({className:a,...t},r)=>e.jsx(be.Action,{ref:r,className:Ne("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",a),...t}));Os.displayName=be.Action.displayName;const Ls=V.forwardRef(({className:a,...t},s)=>e.jsx(be.Close,{ref:s,className:Ne("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-50 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",a),"toast-close":"",...t,children:e.jsx(r.X,{className:"h-4 w-4"})}));Ls.displayName=be.Close.displayName;const qs=V.forwardRef(({className:a,...t},r)=>e.jsx(be.Title,{ref:r,className:Ne("text-sm font-semibold",a),...t}));qs.displayName=be.Title.displayName;const Fs=V.forwardRef(({className:a,...t},r)=>e.jsx(be.Description,{ref:r,className:Ne("text-sm opacity-90",a),...t}));Fs.displayName=be.Description.displayName;let Bs=0;const Gs=new Map,Es=e=>{if(Gs.has(e))return;const a=setTimeout(()=>{Gs.delete(e),Ks({type:"REMOVE_TOAST",toastId:e})},1e6);Gs.set(e,a)},Hs=(e,a)=>{switch(a.type){case"ADD_TOAST":return{...e,toasts:[a.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===a.toast.id?{...e,...a.toast}:e)};case"DISMISS_TOAST":{const{toastId:t}=a;return t?Es(t):e.toasts.forEach(e=>{Es(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":return void 0===a.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==a.toastId)}}},Vs=[];let $s={toasts:[]};function Ks(e){$s=Hs($s,e),Vs.forEach(e=>{e($s)})}function Us({...e}){const a=(Bs=(Bs+1)%Number.MAX_SAFE_INTEGER,Bs.toString()),t=()=>Ks({type:"DISMISS_TOAST",toastId:a});return Ks({type:"ADD_TOAST",toast:{...e,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>Ks({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function Ws(){const[e,a]=V.useState($s);return V.useEffect(()=>(Vs.push(a),()=>{const e=Vs.indexOf(a);e>-1&&Vs.splice(e,1)}),[e]),{...e,toast:Us,dismiss:e=>Ks({type:"DISMISS_TOAST",toastId:e})}}const Xs={light:"",dark:".dark"},Js=V.createContext(null);function Qs(){const e=V.useContext(Js);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Ys=V.forwardRef(({id:a,className:t,children:r,config:s,...o},i)=>{const n=V.useId(),d=`chart-${a||n.replace(/:/g,"")}`;return e.jsx(Js.Provider,{value:{config:s},children:e.jsxs("div",{"data-chart":d,ref:i,className:Ne("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden",t),...o,children:[e.jsx(Zs,{id:d,config:s}),e.jsx(he.ResponsiveContainer,{children:r})]})})});Ys.displayName="Chart";const Zs=({id:a,config:t})=>{const r=Object.entries(t).filter(([e,a])=>a.theme||a.color);return r.length?e.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Xs).map(([e,t])=>`\n${t} [data-chart=${a}] {\n${r.map(([a,t])=>{var r;const s=(null==(r=t.theme)?void 0:r[e])||t.color;return s?` --color-${a}: ${s};`:null}).join("\n")}\n}\n`).join("\n")}}):null},eo=he.Tooltip,ao=V.forwardRef(({active:a,payload:t,className:r,indicator:s="dot",hideLabel:o=!1,hideIndicator:i=!1,label:n,labelFormatter:d,labelClassName:l,formatter:c,color:m,nameKey:p,labelKey:f},u)=>{const{config:x}=Qs(),g=V.useMemo(()=>{var a;if(o||!(null==t?void 0:t.length))return null;const[r]=t,s=`${f||r.dataKey||r.name||"value"}`,i=ro(x,r,s),c=f||"string"!=typeof n?null==i?void 0:i.label:(null==(a=x[n])?void 0:a.label)||n;return d?e.jsx("div",{className:Ne("font-medium",l),children:d(c,t)}):c?e.jsx("div",{className:Ne("font-medium",l),children:c}):null},[n,d,t,o,l,x,f]);if(!a||!(null==t?void 0:t.length))return null;const b=1===t.length&&"dot"!==s;return e.jsxs("div",{ref:u,className:Ne("grid min-w-32 items-start gap-1.5 rounded-lg border bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[b?null:g,e.jsx("div",{className:"grid gap-1.5",children:t.map((a,t)=>{const r=`${p||a.name||a.dataKey||"value"}`,o=ro(x,a,r),n=m||a.payload.fill||a.color;return e.jsx("div",{className:Ne("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===s&&"items-center"),children:c&&void 0!==(null==a?void 0:a.value)&&a.name?c(a.value,a.name,a,t,a.payload):e.jsxs(e.Fragment,{children:[(null==o?void 0:o.icon)?e.jsx(o.icon,{}):!i&&e.jsx("div",{className:Ne("shrink-0 rounded-[2px] border-border bg-(--color-bg)",{"h-2.5 w-2.5":"dot"===s,"w-1":"line"===s,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===s,"my-0.5":b&&"dashed"===s}),style:{"--color-bg":n,"--color-border":n}}),e.jsxs("div",{className:Ne("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[e.jsxs("div",{className:"grid gap-1.5",children:[b?g:null,e.jsx("span",{className:"text-muted-foreground",children:(null==o?void 0:o.label)||a.name})]}),a.value&&e.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:a.value.toLocaleString()})]})]})},a.dataKey)})})]})});ao.displayName="ChartTooltip";const to=he.Legend;function ro(e,a,t){if("object"!=typeof a||null===a)return;const r="payload"in a&&"object"==typeof a.payload&&null!==a.payload?a.payload:void 0;let s=t;return t in a&&"string"==typeof a[t]?s=a[t]:r&&t in r&&"string"==typeof r[t]&&(s=r[t]),s in e?e[s]:e[t]}V.forwardRef(({className:a,hideIcon:t=!1,payload:r,verticalAlign:s="bottom",nameKey:o},i)=>{const{config:n}=Qs();return(null==r?void 0:r.length)?e.jsx("div",{ref:i,className:Ne("flex items-center justify-center gap-4","top"===s?"pb-3":"pt-3",a),children:r.map(a=>{const r=`${o||a.dataKey||"value"}`,s=ro(n,a,r);return e.jsxs("div",{className:Ne("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==s?void 0:s.icon)&&!t?e.jsx(s.icon,{}):e.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:a.color}}),null==s?void 0:s.label]},a.value)})}):null}).displayName="ChartLegend";exports.Accordion=ve,exports.AccordionContent=je,exports.AccordionItem=ye,exports.AccordionTrigger=we,exports.Alert=dt,exports.AlertDescription=ct,exports.AlertDialog=mt,exports.AlertDialogAction=vt,exports.AlertDialogCancel=yt,exports.AlertDialogContent=xt,exports.AlertDialogDescription=Nt,exports.AlertDialogFooter=bt,exports.AlertDialogHeader=gt,exports.AlertDialogTitle=ht,exports.AlertDialogTrigger=pt,exports.AlertTitle=lt,exports.AspectRatio=Ce,exports.Avatar=wt,exports.AvatarFallback=Ct,exports.AvatarImage=jt,exports.Badge=function({className:a,variant:t,...r}){return e.jsx("div",{className:Ne(it({variant:t}),a),...r})},exports.Breadcrumb=Rt,exports.BreadcrumbItem=kt,exports.BreadcrumbLink=Tt,exports.BreadcrumbList=St,exports.BreadcrumbPage=It,exports.BreadcrumbSeparator=zt,exports.Button=Ve,exports.Calendar=Mt,exports.Card=Re,exports.CardContent=Ie,exports.CardDescription=Te,exports.CardFooter=ze,exports.CardHeader=Se,exports.CardTitle=ke,exports.Carousel=gs,exports.CarouselContent=bs,exports.CarouselItem=hs,exports.CarouselNext=vs,exports.CarouselPrevious=Ns,exports.ChartContainer=Ys,exports.ChartLegend=to,exports.ChartStyle=Zs,exports.ChartTooltip=eo,exports.ChartTooltipContent=ao,exports.Checkbox=ka,exports.Collapsible=ys,exports.CollapsibleContent=js,exports.CollapsibleTrigger=ws,exports.Command=Cs,exports.CommandDialog=({children:a,...t})=>e.jsx(kr,{...t,children:e.jsx(Mr,{className:"overflow-hidden p-0 shadow-lg",children:e.jsx(Cs,{className:"**:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 **:[[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:a})})}),exports.CommandEmpty=ks,exports.CommandGroup=Ts,exports.CommandInput=Rs,exports.CommandItem=zs,exports.CommandList=Ss,exports.CommandSeparator=Is,exports.CommandShortcut=Ds,exports.ContextMenu=Zr,exports.ContextMenuCheckboxItem=ls,exports.ContextMenuContent=ns,exports.ContextMenuGroup=as,exports.ContextMenuItem=ds,exports.ContextMenuLabel=ms,exports.ContextMenuPortal=ts,exports.ContextMenuRadioGroup=ss,exports.ContextMenuRadioItem=cs,exports.ContextMenuSeparator=ps,exports.ContextMenuShortcut=fs,exports.ContextMenuSub=rs,exports.ContextMenuSubContent=is,exports.ContextMenuSubTrigger=os,exports.ContextMenuTrigger=es,exports.Dialog=kr,exports.DialogClose=zr,exports.DialogContent=Mr,exports.DialogDescription=Or,exports.DialogFooter=_r,exports.DialogHeader=Pr,exports.DialogTitle=Ar,exports.DialogTrigger=Tr,exports.Drawer=Lr,exports.DrawerClose=Br,exports.DrawerContent=Er,exports.DrawerDescription=Kr,exports.DrawerFooter=Vr,exports.DrawerHeader=Hr,exports.DrawerTitle=$r,exports.DrawerTrigger=qr,exports.DropdownMenu=pr,exports.DropdownMenuCheckboxItem=wr,exports.DropdownMenuContent=vr,exports.DropdownMenuGroup=ur,exports.DropdownMenuItem=yr,exports.DropdownMenuLabel=Cr,exports.DropdownMenuPortal=xr,exports.DropdownMenuRadioGroup=br,exports.DropdownMenuRadioItem=jr,exports.DropdownMenuSeparator=Rr,exports.DropdownMenuShortcut=Sr,exports.DropdownMenuSub=gr,exports.DropdownMenuSubContent=Nr,exports.DropdownMenuSubTrigger=hr,exports.DropdownMenuTrigger=fr,exports.Form=Ka,exports.FormControl=Ya,exports.FormDescription=Za,exports.FormField=({...a})=>e.jsx(Ua.Provider,{value:{name:a.name},children:e.jsx(y.Controller,{...a})}),exports.FormItem=Ja,exports.FormLabel=Qa,exports.FormMessage=et,exports.HoverCard=Jr,exports.HoverCardContent=Yr,exports.HoverCardTrigger=Qr,exports.Input=$e,exports.InputOTP=Ma,exports.InputOTPGroup=Pa,exports.InputOTPSeparator=Aa,exports.InputOTPSlot=_a,exports.Label=Ra,exports.Menubar=ar,exports.MenubarCheckboxItem=nr,exports.MenubarContent=or,exports.MenubarItem=ir,exports.MenubarLabel=lr,exports.MenubarMenu=Yt,exports.MenubarRadioGroup=er,exports.MenubarRadioItem=dr,exports.MenubarSeparator=cr,exports.MenubarShortcut=mr,exports.MenubarSub=Zt,exports.MenubarSubContent=sr,exports.MenubarSubTrigger=rr,exports.MenubarTrigger=tr,exports.NavigationMenu=Vt,exports.NavigationMenuContent=Xt,exports.NavigationMenuItem=Kt,exports.NavigationMenuLink=Jt,exports.NavigationMenuList=$t,exports.NavigationMenuTrigger=Wt,exports.Pagination=Lt,exports.PaginationContent=qt,exports.PaginationEllipsis=Ht,exports.PaginationItem=Ft,exports.PaginationLink=Bt,exports.PaginationNext=Et,exports.PaginationPrevious=Gt,exports.Popover=Ur,exports.PopoverContent=Xr,exports.PopoverTrigger=Wr,exports.Progress=Dt,exports.RadioGroup=Ta,exports.RadioGroupItem=Ia,exports.ResizableHandle=({withHandle:a,className:t,...s})=>e.jsx(X.PanelResizeHandle,{className:Ne("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...s,children:a&&e.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e.jsx(r.GripVertical,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=Ee,exports.ResizablePanelGroup=({className:a,...t})=>e.jsx(X.PanelGroup,{className:Ne("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",a),...t}),exports.ScrollArea=Me,exports.ScrollBar=Pe,exports.Select=Oa,exports.SelectContent=Ea,exports.SelectGroup=La,exports.SelectItem=Va,exports.SelectLabel=Ha,exports.SelectScrollDownButton=Ga,exports.SelectScrollUpButton=Ba,exports.SelectSeparator=$a,exports.SelectTrigger=Fa,exports.SelectValue=qa,exports.Separator=De,exports.Sheet=Ke,exports.SheetClose=We,exports.SheetContent=Ye,exports.SheetDescription=ta,exports.SheetFooter=ea,exports.SheetHeader=Ze,exports.SheetTitle=aa,exports.SheetTrigger=Ue,exports.Sidebar=ca,exports.SidebarContent=fa,exports.SidebarFooter=pa,exports.SidebarGroup=ua,exports.SidebarGroupContent=ga,exports.SidebarGroupLabel=xa,exports.SidebarHeader=ma,exports.SidebarMenu=ba,exports.SidebarMenuButton=va,exports.SidebarMenuItem=ha,exports.SidebarMenuSub=ya,exports.SidebarMenuSubButton=ja,exports.SidebarMenuSubItem=wa,exports.Skeleton=ra,exports.Slider=Da,exports.Sonner=({...a})=>{const{theme:t="system"}=G.useTheme();return e.jsx(E.Toaster,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster] group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...a})},exports.Switch=za,exports.Table=_e,exports.TableBody=Oe,exports.TableCaption=Ge,exports.TableCell=Be,exports.TableFooter=Le,exports.TableHead=Fe,exports.TableHeader=Ae,exports.TableRow=qe,exports.Tabs=Pt,exports.TabsContent=Ot,exports.TabsList=_t,exports.TabsTrigger=At,exports.Textarea=Sa,exports.Toast=As,exports.ToastAction=Os,exports.ToastClose=Ls,exports.ToastDescription=Fs,exports.ToastProvider=Ms,exports.ToastTitle=qs,exports.ToastViewport=Ps,exports.Toaster=function(){const{toasts:a}=Ws();return e.jsxs(Ms,{children:[a.map(function({id:a,title:t,description:r,action:s,...o}){return e.jsxs(As,{...o,children:[e.jsxs("div",{className:"grid gap-1",children:[t&&e.jsx(qs,{children:t}),r&&e.jsx(Fs,{children:r})]}),s,e.jsx(Ls,{})]},a)}),e.jsx(Ps,{})]})},exports.Toggle=tt,exports.ToggleGroup=st,exports.ToggleGroupItem=ot,exports.Tooltip=oa,exports.TooltipContent=na,exports.TooltipProvider=sa,exports.TooltipTrigger=ia,exports.badgeVariants=it,exports.buttonVariants=He,exports.navigationMenuTriggerStyle=Ut,exports.toggleVariants=at,exports.useToast=Ws;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),a=require("react"),t=require("@radix-ui/react-accordion"),r=require("lucide-react"),s=require("clsx"),o=require("tailwind-merge"),i=require("@radix-ui/react-aspect-ratio"),n=require("@radix-ui/react-separator"),d=require("@radix-ui/react-scroll-area"),l=require("react-resizable-panels"),c=require("@radix-ui/react-slot"),m=require("class-variance-authority"),p=require("@radix-ui/react-dialog"),f=require("@radix-ui/react-tooltip"),u=require("@radix-ui/react-label"),x=require("@radix-ui/react-checkbox"),g=require("@radix-ui/react-radio-group"),b=require("@radix-ui/react-switch"),h=require("@radix-ui/react-slider"),N=require("input-otp"),v=require("@radix-ui/react-select"),y=require("react-hook-form"),w=require("@radix-ui/react-toggle-group"),j=require("@radix-ui/react-toggle"),C=require("@radix-ui/react-alert-dialog"),R=require("@radix-ui/react-avatar"),S=require("@radix-ui/react-progress"),k=require("react-day-picker"),T=require("@radix-ui/react-tabs"),I=require("@radix-ui/react-navigation-menu"),z=require("@radix-ui/react-menubar"),D=require("@radix-ui/react-dropdown-menu"),M=require("vaul"),P=require("@radix-ui/react-popover"),_=require("@radix-ui/react-hover-card"),A=require("@radix-ui/react-context-menu"),O=require("embla-carousel-react"),L=require("@radix-ui/react-collapsible"),q=require("cmdk"),F=require("@radix-ui/react-toast"),B=require("recharts"),G=require("next-themes"),E=require("sonner");function H(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,r.get?r:{enumerable:!0,get:()=>e[t]})}return a.default=e,Object.freeze(a)}const V=H(a),$=H(t),K=H(i),U=H(n),W=H(d),X=H(l),J=H(p),Q=H(f),Y=H(u),Z=H(x),ee=H(g),ae=H(b),te=H(h),re=H(v),se=H(w),oe=H(j),ie=H(C),ne=H(R),de=H(S),le=H(T),ce=H(I),me=H(z),pe=H(D),fe=H(P),ue=H(_),xe=H(A),ge=H(L),be=H(F),he=H(B);function Ne(...e){return o.twMerge(s.clsx(e))}const ve=$.Root,ye=V.forwardRef(({className:a,...t},r)=>e.jsx($.Item,{ref:r,className:Ne("border-b",a),...t}));ye.displayName="AccordionItem";const we=V.forwardRef(({className:a,children:t,...s},o)=>e.jsx($.Header,{className:"flex",children:e.jsxs($.Trigger,{ref:o,className:Ne("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",a),...s,children:[t,e.jsx(r.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));we.displayName=$.Trigger.displayName;const je=V.forwardRef(({className:a,children:t,...r},s)=>e.jsx($.Content,{ref:s,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...r,children:e.jsx("div",{className:Ne("pb-4 pt-0",a),children:t})}));je.displayName=$.Content.displayName;const Ce=K.Root,Re=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("rounded-lg border bg-card text-card-foreground shadow-xs",a),...t}));Re.displayName="Card";const Se=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("flex flex-col space-y-1.5 p-6",a),...t}));Se.displayName="CardHeader";const ke=V.forwardRef(({className:a,...t},r)=>e.jsx("h3",{ref:r,className:Ne("text-2xl font-semibold leading-none tracking-tight",a),...t}));ke.displayName="CardTitle";const Te=V.forwardRef(({className:a,...t},r)=>e.jsx("p",{ref:r,className:Ne("text-sm text-muted-foreground",a),...t}));Te.displayName="CardDescription";const Ie=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("p-6 pt-0",a),...t}));Ie.displayName="CardContent";const ze=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("flex items-center p-6 pt-0",a),...t}));ze.displayName="CardFooter";const De=V.forwardRef(({className:a,orientation:t="horizontal",decorative:r=!0,...s},o)=>e.jsx(U.Root,{ref:o,decorative:r,orientation:t,className:Ne("shrink-0 bg-border","horizontal"===t?"h-px w-full":"h-full w-px",a),...s}));De.displayName=U.Root.displayName;const Me=V.forwardRef(({className:a,children:t,...r},s)=>e.jsxs(W.Root,{ref:s,className:Ne("relative overflow-hidden",a),...r,children:[e.jsx(W.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),e.jsx(Pe,{}),e.jsx(W.Corner,{})]}));Me.displayName=W.Root.displayName;const Pe=V.forwardRef(({className:a,orientation:t="vertical",...r},s)=>e.jsx(W.ScrollAreaScrollbar,{ref:s,orientation:t,className:Ne("flex touch-none select-none transition-colors","vertical"===t&&"h-full w-2.5 border-l border-l-transparent p-px","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent p-px",a),...r,children:e.jsx(W.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));Pe.displayName=W.ScrollAreaScrollbar.displayName;const _e=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:r,className:Ne("w-full caption-bottom text-sm",a),...t})}));_e.displayName="Table";const Ae=V.forwardRef(({className:a,...t},r)=>e.jsx("thead",{ref:r,className:Ne("[&_tr]:border-b",a),...t}));Ae.displayName="TableHeader";const Oe=V.forwardRef(({className:a,...t},r)=>e.jsx("tbody",{ref:r,className:Ne("[&_tr:last-child]:border-0",a),...t}));Oe.displayName="TableBody";const Le=V.forwardRef(({className:a,...t},r)=>e.jsx("tfoot",{ref:r,className:Ne("border-t bg-muted/50 font-medium last:[&>tr]:border-b-0",a),...t}));Le.displayName="TableFooter";const qe=V.forwardRef(({className:a,...t},r)=>e.jsx("tr",{ref:r,className:Ne("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...t}));qe.displayName="TableRow";const Fe=V.forwardRef(({className:a,...t},r)=>e.jsx("th",{ref:r,className:Ne("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...t}));Fe.displayName="TableHead";const Be=V.forwardRef(({className:a,...t},r)=>e.jsx("td",{ref:r,className:Ne("p-4 align-middle [&:has([role=checkbox])]:pr-0",a),...t}));Be.displayName="TableCell";const Ge=V.forwardRef(({className:a,...t},r)=>e.jsx("caption",{ref:r,className:Ne("mt-4 text-sm text-muted-foreground",a),...t}));Ge.displayName="TableCaption";const Ee=X.Panel;const He=m.cva("inline-flex items-center justify-center gap-2 whitespace-nowrap font-semibold transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-60 active:scale-[.98]",{variants:{variant:{"primary-gradient":["text-black shadow-xs","bg-linear-to-r from-cyan-gradient-from via-cyan-gradient-via to-cyan-gradient-to","hover:shadow-lg hover:scale-[1.02]","relative","before:absolute before:inset-0 before:rounded-[inherit] before:bg-linear-to-r before:from-cyan-800 before:to-cyan-800 before:opacity-60 before:mix-blend-overlay"],"primary-dark":["text-white shadow-xs","bg-linear-to-r from-cyan-800 to-cyan-dark","hover:shadow-lg hover:brightness-110"],"secondary-light":["text-cyan-800 bg-white shadow-xs","border border-gray-200","hover:bg-gray-50/80"],"tertiary-light":["text-blue-600 bg-blue-50 shadow-xs","border border-blue-200","hover:bg-blue-50/80"],"utility-primary":["text-white bg-blue-600","hover:bg-blue-600/90"],"utility-secondary":["text-blue-600 bg-white","border border-blue-200","hover:bg-gray-50"],"utility-tertiary":["text-gray-600 bg-white","border border-gray-200","hover:bg-gray-50"],"tooltip-primary":["text-white bg-cyan-300","hover:bg-cyan-300/90"],"tooltip-secondary":["text-white bg-gray-500","hover:bg-gray-500/90"],"icon-reset":["text-gray-500 bg-white","border border-gray-100","hover:bg-gray-50","p-0"],"icon-close":["text-gray-500 bg-white","border border-gray-100","hover:bg-gray-50","p-0"],"icon-close-semi":["text-white bg-black/8","hover:bg-black/12","p-0"],"icon-utility":["text-gray-500 bg-white","border border-gray-100","hover:bg-gray-50","p-0"],"icon-account":["bg-white border border-gray-100","hover:bg-gray-50","p-0"],"icon-account-semi":["bg-black/8 hover:bg-black/12","p-0"]},size:{xs:"h-8 px-4 text-sm rounded-full",sm:"h-8 px-3 text-xs rounded-md",md:"h-10 px-4 text-sm rounded-md",lg:"h-12 px-8 text-base rounded-full",xl:"h-16 px-10 text-lg rounded-full",icon:"h-8 w-8 rounded-full"},fullWidth:{true:"w-full"}},defaultVariants:{variant:"primary-gradient",size:"md"}}),Ve=V.forwardRef(({className:a,variant:t,size:r,fullWidth:s,leftIcon:o,rightIcon:i,iconOnly:n,children:d,style:l,...c},m)=>{const p={fontFamily:"'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif",...l};return n?e.jsx("button",{ref:m,className:Ne(He({variant:t,size:r||"icon",fullWidth:s}),a),style:p,...c,children:n}):e.jsxs("button",{ref:m,className:Ne(He({variant:t,size:r,fullWidth:s}),a),style:p,...c,children:[o,e.jsx("span",{children:d}),i]})});Ve.displayName="Button";const $e=V.forwardRef(({className:a,type:t,...r},s)=>e.jsx("input",{type:t,className:Ne("flex h-10 w-full rounded-md border border-input bg-background px-3 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",a),ref:s,...r}));$e.displayName="Input";const Ke=J.Root,Ue=J.Trigger,We=J.Close,Xe=J.Portal,Je=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Overlay,{className:Ne("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",a),...t,ref:r}));Je.displayName=J.Overlay.displayName;const Qe=m.cva("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Ye=V.forwardRef(({side:a="right",className:t,children:s,...o},i)=>e.jsxs(Xe,{children:[e.jsx(Je,{}),e.jsxs(J.Content,{ref:i,className:Ne(Qe({side:a}),t),...o,children:[s,e.jsxs(J.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",children:[e.jsx(r.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ye.displayName=J.Content.displayName;const Ze=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col space-y-2 text-center sm:text-left",a),...t});Ze.displayName="SheetHeader";const ea=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});ea.displayName="SheetFooter";const aa=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Title,{ref:r,className:Ne("text-lg font-semibold text-foreground",a),...t}));aa.displayName=J.Title.displayName;const ta=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Description,{ref:r,className:Ne("text-sm text-muted-foreground",a),...t}));function ra({className:a,...t}){return e.jsx("div",{className:Ne("animate-pulse rounded-md bg-muted",a),...t})}ta.displayName=J.Description.displayName;const sa=Q.Provider,oa=Q.Root,ia=Q.Trigger,na=V.forwardRef(({className:a,sideOffset:t=4,...r},s)=>e.jsx(Q.Content,{ref:s,sideOffset:t,className:Ne("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...r}));na.displayName=Q.Content.displayName;const da=V.createContext(null);function la(){const e=V.useContext(da);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}V.forwardRef(({defaultOpen:a=!0,open:t,onOpenChange:r,className:s,style:o,children:i,...n},d)=>{const l=function(){const[e,a]=V.useState(void 0);return V.useEffect(()=>{const e=window.matchMedia("(max-width: 767px)"),t=()=>{a(window.innerWidth<768)};return e.addEventListener("change",t),a(window.innerWidth<768),()=>e.removeEventListener("change",t)},[]),!!e}(),[c,m]=V.useState(!1),[p,f]=V.useState(a),u=t??p,x=V.useCallback(e=>{const a="function"==typeof e?e(u):e;r?r(a):f(a),document.cookie=`sidebar:state=${a}; path=/; max-age=604800`},[r,u]),g=V.useCallback(()=>l?m(e=>!e):x(e=>!e),[l,x,m]);V.useEffect(()=>{const e=e=>{"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),g())};return window.addEventListener("keydown",e),()=>window.removeEventListener("keydown",e)},[g]);const b=u?"expanded":"collapsed",h=V.useMemo(()=>({state:b,open:u,setOpen:x,isMobile:l,openMobile:c,setOpenMobile:m,toggleSidebar:g}),[b,u,x,l,c,m,g]);return e.jsx(da.Provider,{value:h,children:e.jsx(sa,{delayDuration:0,children:e.jsx("div",{style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...o},className:Ne("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",s),ref:d,...n,children:i})})})}).displayName="SidebarProvider";const ca=V.forwardRef(({side:a="left",variant:t="sidebar",collapsible:r="offcanvas",className:s,children:o,...i},n)=>{const{isMobile:d,state:l,openMobile:c,setOpenMobile:m}=la();return"none"===r?e.jsx("div",{className:Ne("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",s),ref:n,...i,children:o}):d?e.jsx(Ke,{open:c,onOpenChange:m,...i,children:e.jsx(Ye,{"data-sidebar":"sidebar","data-mobile":"true",className:"w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:a,children:e.jsx("div",{className:"flex h-full w-full flex-col",children:o})})}):e.jsxs("div",{ref:n,className:"group peer hidden md:block text-sidebar-foreground","data-state":l,"data-collapsible":"collapsed"===l?r:"","data-variant":t,"data-side":a,children:[e.jsx("div",{className:Ne("duration-200 relative h-svh w-(--sidebar-width) bg-transparent transition-[width] ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180","floating"===t||"inset"===t?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),e.jsx("div",{className:Ne("duration-200 fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] ease-linear md:flex","left"===a?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===t||"inset"===t?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",s),...i,children:e.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-sm",children:o})})]})});ca.displayName="Sidebar";V.forwardRef(({className:a,onClick:t,...s},o)=>{const{toggleSidebar:i}=la();return e.jsxs(Ve,{ref:o,"data-sidebar":"trigger",variant:"ghost",size:"icon",className:Ne("h-7 w-7",a),onClick:e=>{null==t||t(e),i()},...s,children:[e.jsx(r.PanelLeft,{}),e.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}).displayName="SidebarTrigger";V.forwardRef(({className:a,...t},r)=>{const{toggleSidebar:s}=la();return e.jsx("button",{ref:r,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:s,title:"Toggle Sidebar",className:Ne("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","in-data-[side=left]:cursor-w-resize in-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 hover:group-data-[collapsible=offcanvas]:bg-sidebar","[[data-side=left][data-collapsible=offcanvas]_&]:-right-2","[[data-side=right][data-collapsible=offcanvas]_&]:-left-2",a),...t})}).displayName="SidebarRail";V.forwardRef(({className:a,...t},r)=>e.jsx("main",{ref:r,className:Ne("relative flex min-h-svh flex-1 flex-col bg-background","peer-data-[variant=inset]:min-h-[calc(100svh-(--spacing(4)))] md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm",a),...t})).displayName="SidebarInset";V.forwardRef(({className:a,...t},r)=>e.jsx($e,{ref:r,"data-sidebar":"input",className:Ne("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...t})).displayName="SidebarInput";const ma=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"header",className:Ne("flex flex-col gap-2 p-2",a),...t}));ma.displayName="SidebarHeader";const pa=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"footer",className:Ne("flex flex-col gap-2 p-2",a),...t}));pa.displayName="SidebarFooter";V.forwardRef(({className:a,...t},r)=>e.jsx(De,{ref:r,"data-sidebar":"separator",className:Ne("mx-2 w-auto bg-sidebar-border",a),...t})).displayName="SidebarSeparator";const fa=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"content",className:Ne("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...t}));fa.displayName="SidebarContent";const ua=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"group",className:Ne("relative flex w-full min-w-0 flex-col p-2",a),...t}));ua.displayName="SidebarGroup";const xa=V.forwardRef(({className:a,asChild:t=!1,...r},s)=>{const o=t?c.Slot:"div";return e.jsx(o,{ref:s,"data-sidebar":"group-label",className:Ne("duration-200 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 outline-hidden ring-sidebar-ring transition-[margin,opa] ease-linear focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",a),...r})});xa.displayName="SidebarGroupLabel";V.forwardRef(({className:a,asChild:t=!1,...r},s)=>{const o=t?c.Slot:"button";return e.jsx(o,{ref:s,"data-sidebar":"group-action",className:Ne("absolute right-3 top-3.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden 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 md:after:hidden","group-data-[collapsible=icon]:hidden",a),...r})}).displayName="SidebarGroupAction";const ga=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"group-content",className:Ne("w-full text-sm",a),...t}));ga.displayName="SidebarGroupContent";const ba=V.forwardRef(({className:a,...t},r)=>e.jsx("ul",{ref:r,"data-sidebar":"menu",className:Ne("flex w-full min-w-0 flex-col gap-1",a),...t}));ba.displayName="SidebarMenu";const ha=V.forwardRef(({className:a,...t},r)=>e.jsx("li",{ref:r,"data-sidebar":"menu-item",className:Ne("group/menu-item relative",a),...t}));ha.displayName="SidebarMenuItem";const Na=m.cva("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden 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"}}),va=V.forwardRef(({asChild:a=!1,isActive:t=!1,variant:r="default",size:s="default",tooltip:o,className:i,...n},d)=>{const l=a?c.Slot:"button",{isMobile:m,state:p}=la(),f=e.jsx(l,{ref:d,"data-sidebar":"menu-button","data-size":s,"data-active":t,className:Ne(Na({variant:r,size:s}),i),...n});return o?("string"==typeof o&&(o={children:o}),e.jsxs(oa,{children:[e.jsx(ia,{asChild:!0,children:f}),e.jsx(na,{side:"right",align:"center",hidden:"collapsed"!==p||m,...o})]})):f});va.displayName="SidebarMenuButton";V.forwardRef(({className:a,asChild:t=!1,showOnHover:r=!1,...s},o)=>{const i=t?c.Slot:"button";return e.jsx(i,{ref:o,"data-sidebar":"menu-action",className:Ne("absolute right-1 top-1.5 flex aspect-square w-5 items-center justify-center rounded-md p-0 text-sidebar-foreground outline-hidden 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 md:after: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",r&&"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",a),...s})}).displayName="SidebarMenuAction";V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,"data-sidebar":"menu-badge",className:Ne("absolute right-1 flex h-5 min-w-5 items-center justify-center rounded-md px-1 text-xs font-medium tabular-nums text-sidebar-foreground select-none pointer-events-none","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",a),...t})).displayName="SidebarMenuBadge";V.forwardRef(({className:a,showIcon:t=!1,...r},s)=>{const o=V.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return e.jsxs("div",{ref:s,"data-sidebar":"menu-skeleton",className:Ne("rounded-md h-8 flex gap-2 px-2 items-center",a),...r,children:[t&&e.jsx(ra,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),e.jsx(ra,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}).displayName="SidebarMenuSkeleton";const ya=V.forwardRef(({className:a,...t},r)=>e.jsx("ul",{ref:r,"data-sidebar":"menu-sub",className:Ne("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",a),...t}));ya.displayName="SidebarMenuSub";const wa=V.forwardRef(({...a},t)=>e.jsx("li",{ref:t,...a}));wa.displayName="SidebarMenuSubItem";const ja=V.forwardRef(({asChild:a=!1,size:t="md",isActive:r,className:s,...o},i)=>{const n=a?c.Slot:"a";return e.jsx(n,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":r,className:Ne("flex h-7 min-w-0 -translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground outline-hidden 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","sm"===t&&"text-xs","md"===t&&"text-sm","group-data-[collapsible=icon]:hidden",s),...o})});ja.displayName="SidebarMenuSubButton";const Ca=m.cva("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),Ra=V.forwardRef(({className:a,...t},r)=>e.jsx(Y.Root,{ref:r,className:Ne(Ca(),a),...t}));Ra.displayName=Y.Root.displayName;const Sa=V.forwardRef(({className:a,...t},r)=>e.jsx("textarea",{className:Ne("flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),ref:r,...t}));Sa.displayName="Textarea";const ka=V.forwardRef(({className:a,...t},s)=>e.jsx(Z.Root,{ref:s,className:Ne("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",a),...t,children:e.jsx(Z.Indicator,{className:Ne("flex items-center justify-center text-current"),children:e.jsx(r.Check,{className:"h-4 w-4"})})}));ka.displayName=Z.Root.displayName;const Ta=V.forwardRef(({className:a,...t},r)=>e.jsx(ee.Root,{className:Ne("grid gap-2",a),...t,ref:r}));Ta.displayName=ee.Root.displayName;const Ia=V.forwardRef(({className:a,...t},s)=>e.jsx(ee.Item,{ref:s,className:Ne("aspect-square h-4 w-4 rounded-full border border-primary text-primary ring-offset-background focus:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",a),...t,children:e.jsx(ee.Indicator,{className:"flex items-center justify-center",children:e.jsx(r.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));Ia.displayName=ee.Item.displayName;const za=V.forwardRef(({className:a,...t},r)=>e.jsx(ae.Root,{className:Ne("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",a),...t,ref:r,children:e.jsx(ae.Thumb,{className:Ne("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")})}));za.displayName=ae.Root.displayName;const Da=V.forwardRef(({className:a,...t},r)=>e.jsxs(te.Root,{ref:r,className:Ne("relative flex w-full touch-none select-none items-center",a),...t,children:[e.jsx(te.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(te.Range,{className:"absolute h-full bg-primary"})}),e.jsx(te.Thumb,{className:"block h-5 w-5 rounded-full border-2 border-primary bg-background ring-offset-background transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50"})]}));Da.displayName=te.Root.displayName;const Ma=V.forwardRef(({className:a,containerClassName:t,...r},s)=>e.jsx(N.OTPInput,{ref:s,containerClassName:Ne("flex items-center gap-2 has-disabled:opacity-50",t),className:Ne("disabled:cursor-not-allowed",a),...r}));Ma.displayName="InputOTP";const Pa=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("flex items-center",a),...t}));Pa.displayName="InputOTPGroup";const _a=V.forwardRef(({index:a,className:t,...r},s)=>{const o=V.useContext(N.OTPInputContext),{char:i,hasFakeCaret:n,isActive:d}=o.slots[a];return e.jsxs("div",{ref:s,className:Ne("relative flex h-10 w-10 items-center justify-center border-y border-r border-input text-sm transition-all first:rounded-l-md first:border-l last:rounded-r-md",d&&"z-10 ring-2 ring-ring ring-offset-background",t),...r,children:[i,n&&e.jsx("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:e.jsx("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})});_a.displayName="InputOTPSlot";const Aa=V.forwardRef(({...a},t)=>e.jsx("div",{ref:t,role:"separator",...a,children:e.jsx(r.Dot,{})}));Aa.displayName="InputOTPSeparator";const Oa=re.Root,La=re.Group,qa=re.Value,Fa=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(re.Trigger,{ref:o,className:Ne("flex h-10 w-full items-center justify-between rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",a),...s,children:[t,e.jsx(re.Icon,{asChild:!0,children:e.jsx(r.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));Fa.displayName=re.Trigger.displayName;const Ba=V.forwardRef(({className:a,...t},s)=>e.jsx(re.ScrollUpButton,{ref:s,className:Ne("flex cursor-default items-center justify-center py-1",a),...t,children:e.jsx(r.ChevronUp,{className:"h-4 w-4"})}));Ba.displayName=re.ScrollUpButton.displayName;const Ga=V.forwardRef(({className:a,...t},s)=>e.jsx(re.ScrollDownButton,{ref:s,className:Ne("flex cursor-default items-center justify-center py-1",a),...t,children:e.jsx(r.ChevronDown,{className:"h-4 w-4"})}));Ga.displayName=re.ScrollDownButton.displayName;const Ea=V.forwardRef(({className:a,children:t,position:r="popper",...s},o)=>e.jsx(re.Portal,{children:e.jsxs(re.Content,{ref:o,className:Ne("relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2","popper"===r&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",a),position:r,...s,children:[e.jsx(Ba,{}),e.jsx(re.Viewport,{className:Ne("p-1","popper"===r&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),e.jsx(Ga,{})]})}));Ea.displayName=re.Content.displayName;const Ha=V.forwardRef(({className:a,...t},r)=>e.jsx(re.Label,{ref:r,className:Ne("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...t}));Ha.displayName=re.Label.displayName;const Va=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(re.Item,{ref:o,className:Ne("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(re.ItemIndicator,{children:e.jsx(r.Check,{className:"h-4 w-4"})})}),e.jsx(re.ItemText,{children:t})]}));Va.displayName=re.Item.displayName;const $a=V.forwardRef(({className:a,...t},r)=>e.jsx(re.Separator,{ref:r,className:Ne("-mx-1 my-1 h-px bg-muted",a),...t}));$a.displayName=re.Separator.displayName;const Ka=y.FormProvider,Ua=V.createContext({}),Wa=()=>{const e=V.useContext(Ua),a=V.useContext(Xa),{getFieldState:t,formState:r}=y.useFormContext(),s=t(e.name,r);if(!e)throw new Error("useFormField should be used within <FormField>");const{id:o}=a;return{id:o,name:e.name,formItemId:`${o}-form-item`,formDescriptionId:`${o}-form-item-description`,formMessageId:`${o}-form-item-message`,...s}},Xa=V.createContext({}),Ja=V.forwardRef(({className:a,...t},r)=>{const s=V.useId();return e.jsx(Xa.Provider,{value:{id:s},children:e.jsx("div",{ref:r,className:Ne("space-y-2",a),...t})})});Ja.displayName="FormItem";const Qa=V.forwardRef(({className:a,...t},r)=>{const{error:s,formItemId:o}=Wa();return e.jsx(Ra,{ref:r,className:Ne(s&&"text-destructive",a),htmlFor:o,...t})});Qa.displayName="FormLabel";const Ya=V.forwardRef(({...a},t)=>{const{error:r,formItemId:s,formDescriptionId:o,formMessageId:i}=Wa();return e.jsx(c.Slot,{ref:t,id:s,"aria-describedby":r?`${o} ${i}`:`${o}`,"aria-invalid":!!r,...a})});Ya.displayName="FormControl";const Za=V.forwardRef(({className:a,...t},r)=>{const{formDescriptionId:s}=Wa();return e.jsx("p",{ref:r,id:s,className:Ne("text-sm text-muted-foreground",a),...t})});Za.displayName="FormDescription";const et=V.forwardRef(({className:a,children:t,...r},s)=>{const{error:o,formMessageId:i}=Wa(),n=o?String(null==o?void 0:o.message):t;return n?e.jsx("p",{ref:s,id:i,className:Ne("text-sm font-medium text-destructive",a),...r,children:n}):null});et.displayName="FormMessage";const at=m.cva("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3",sm:"h-9 px-2.5",lg:"h-11 px-5"}},defaultVariants:{variant:"default",size:"default"}}),tt=V.forwardRef(({className:a,variant:t,size:r,...s},o)=>e.jsx(oe.Root,{ref:o,className:Ne(at({variant:t,size:r,className:a})),...s}));tt.displayName=oe.Root.displayName;const rt=V.createContext({size:"default",variant:"default"}),st=V.forwardRef(({className:a,variant:t,size:r,children:s,...o},i)=>e.jsx(se.Root,{ref:i,className:Ne("flex items-center justify-center gap-1",a),...o,children:e.jsx(rt.Provider,{value:{variant:t,size:r},children:s})}));st.displayName=se.Root.displayName;const ot=V.forwardRef(({className:a,children:t,variant:r,size:s,...o},i)=>{const n=V.useContext(rt);return e.jsx(se.Item,{ref:i,className:Ne(at({variant:n.variant||r,size:n.size||s}),a),...o,children:t})});ot.displayName=se.Item.displayName;const it=m.cva("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground hover:bg-primary/80",secondary:"border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80",destructive:"border-transparent bg-destructive text-destructive-foreground hover:bg-destructive/80",outline:"text-foreground"}},defaultVariants:{variant:"default"}});const nt=m.cva("relative w-full rounded-lg border p-4 [&>svg~*]:pl-7 [&>svg+div]:translate-y-[-3px] [&>svg]:absolute [&>svg]:left-4 [&>svg]:top-4 [&>svg]:text-foreground",{variants:{variant:{default:"bg-background text-foreground",destructive:"border-destructive/50 text-destructive dark:border-destructive [&>svg]:text-destructive"}},defaultVariants:{variant:"default"}}),dt=V.forwardRef(({className:a,variant:t,...r},s)=>e.jsx("div",{ref:s,role:"alert",className:Ne(nt({variant:t}),a),...r}));dt.displayName="Alert";const lt=V.forwardRef(({className:a,...t},r)=>e.jsx("h5",{ref:r,className:Ne("mb-1 font-medium leading-none tracking-tight",a),...t}));lt.displayName="AlertTitle";const ct=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{ref:r,className:Ne("text-sm [&_p]:leading-relaxed",a),...t}));ct.displayName="AlertDescription";const mt=ie.Root,pt=ie.Trigger,ft=ie.Portal,ut=V.forwardRef(({className:a,...t},r)=>e.jsx(ie.Overlay,{className:Ne("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",a),...t,ref:r}));ut.displayName=ie.Overlay.displayName;const xt=V.forwardRef(({className:a,...t},r)=>e.jsxs(ft,{children:[e.jsx(ut,{}),e.jsx(ie.Content,{ref:r,className:Ne("fixed left-[50%] top-[50%] z-50 border-green 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",a),...t})]}));xt.displayName=ie.Content.displayName;const gt=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col space-y-2 text-center sm:text-left",a),...t});gt.displayName="AlertDialogHeader";const bt=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});bt.displayName="AlertDialogFooter";const ht=V.forwardRef(({className:a,...t},r)=>e.jsx(ie.Title,{ref:r,className:Ne("text-lg font-semibold",a),...t}));ht.displayName=ie.Title.displayName;const Nt=V.forwardRef(({className:a,...t},r)=>e.jsx(ie.Description,{ref:r,className:Ne("text-sm text-muted-foreground",a),...t}));Nt.displayName=ie.Description.displayName;const vt=V.forwardRef(({className:a,...t},r)=>e.jsx(ie.Action,{ref:r,className:Ne(He(),a),...t}));vt.displayName=ie.Action.displayName;const yt=V.forwardRef(({className:a,...t},r)=>e.jsx(ie.Cancel,{ref:r,className:Ne(He({variant:"outline"}),"mt-2 sm:mt-0",a),...t}));yt.displayName=ie.Cancel.displayName;const wt=V.forwardRef(({className:a,...t},r)=>e.jsx(ne.Root,{ref:r,className:Ne("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...t}));wt.displayName=ne.Root.displayName;const jt=V.forwardRef(({className:a,...t},r)=>e.jsx(ne.Image,{ref:r,className:Ne("aspect-square h-full w-full",a),...t}));jt.displayName=ne.Image.displayName;const Ct=V.forwardRef(({className:a,...t},r)=>e.jsx(ne.Fallback,{ref:r,className:Ne("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...t}));Ct.displayName=ne.Fallback.displayName;const Rt=V.forwardRef(({...a},t)=>e.jsx("nav",{ref:t,"aria-label":"breadcrumb",...a}));Rt.displayName="Breadcrumb";const St=V.forwardRef(({className:a,...t},r)=>e.jsx("ol",{ref:r,className:Ne("flex flex-wrap items-center gap-1.5 wrap-break-word text-sm text-muted-foreground sm:gap-2.5",a),...t}));St.displayName="BreadcrumbList";const kt=V.forwardRef(({className:a,...t},r)=>e.jsx("li",{ref:r,className:Ne("inline-flex items-center gap-1.5",a),...t}));kt.displayName="BreadcrumbItem";const Tt=V.forwardRef(({asChild:a,className:t,...r},s)=>{const o=a?c.Slot:"a";return e.jsx(o,{ref:s,className:Ne("transition-colors hover:text-foreground",t),...r})});Tt.displayName="BreadcrumbLink";const It=V.forwardRef(({className:a,...t},r)=>e.jsx("span",{ref:r,role:"link","aria-disabled":"true","aria-current":"page",className:Ne("font-normal text-foreground",a),...t}));It.displayName="BreadcrumbPage";const zt=({children:a,className:t,...s})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:Ne("[&>svg]:size-3.5",t),...s,children:a??e.jsx(r.ChevronRight,{})});zt.displayName="BreadcrumbSeparator";const Dt=V.forwardRef(({className:a,value:t,...r},s)=>e.jsx(de.Root,{ref:s,className:Ne("relative h-4 w-full overflow-hidden rounded-full bg-secondary",a),...r,children:e.jsx(de.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));function Mt({className:a,classNames:t,showOutsideDays:s=!0,...o}){return e.jsx(k.DayPicker,{showOutsideDays:s,className:Ne("p-3",a),classNames:{months:"flex flex-col sm:flex-row space-y-4 sm:space-x-4 sm:space-y-0",month:"space-y-4",caption:"flex justify-center pt-1 relative items-center",caption_label:"text-sm font-medium",nav:"space-x-1 flex items-center",nav_button:Ne(He({variant:"outline"}),"h-7 w-7 bg-transparent p-0 opacity-50 hover:opacity-100"),nav_button_previous:"absolute left-1",nav_button_next:"absolute right-1",table:"w-full border-collapse space-y-1",head_row:"flex",head_cell:"text-muted-foreground rounded-md w-9 font-normal text-[0.8rem]",row:"flex w-full mt-2",cell:"h-9 w-9 text-center text-sm p-0 relative [&:has([aria-selected].day-range-end)]:rounded-r-md [&:has([aria-selected].day-outside)]:bg-accent/50 [&:has([aria-selected])]:bg-accent first:[&:has([aria-selected])]:rounded-l-md last:[&:has([aria-selected])]:rounded-r-md focus-within:relative focus-within:z-20",day:Ne(He({variant:"ghost"}),"h-9 w-9 p-0 font-normal aria-selected:opacity-100"),day_range_end:"day-range-end",day_selected:"bg-primary text-primary-foreground hover:bg-primary hover:text-primary-foreground focus:bg-primary focus:text-primary-foreground",day_today:"bg-accent text-accent-foreground",day_outside:"day-outside text-muted-foreground opacity-50 aria-selected:bg-accent/50 aria-selected:text-muted-foreground aria-selected:opacity-30",day_disabled:"text-muted-foreground opacity-50",day_range_middle:"aria-selected:bg-accent aria-selected:text-accent-foreground",day_hidden:"invisible",...t},components:{Chevron:a=>"left"===a.orientation?e.jsx(r.ChevronLeft,{className:"h-4 w-4"}):e.jsx(r.ChevronRight,{className:"h-4 w-4"})},...o})}Dt.displayName=de.Root.displayName,Mt.displayName="Calendar";const Pt=le.Root,_t=V.forwardRef(({className:a,...t},r)=>e.jsx(le.List,{ref:r,className:Ne("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...t}));_t.displayName=le.List.displayName;const At=V.forwardRef(({className:a,...t},r)=>e.jsx(le.Trigger,{ref:r,className:Ne("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-xs",a),...t}));At.displayName=le.Trigger.displayName;const Ot=V.forwardRef(({className:a,...t},r)=>e.jsx(le.Content,{ref:r,className:Ne("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...t}));Ot.displayName=le.Content.displayName;const Lt=({className:a,...t})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:Ne("mx-auto flex w-full justify-center",a),...t});Lt.displayName="Pagination";const qt=V.forwardRef(({className:a,...t},r)=>e.jsx("ul",{ref:r,className:Ne("flex flex-row items-center gap-1",a),...t}));qt.displayName="PaginationContent";const Ft=V.forwardRef(({className:a,...t},r)=>e.jsx("li",{ref:r,className:Ne("",a),...t}));Ft.displayName="PaginationItem";const Bt=({className:a,isActive:t,size:r="icon",...s})=>e.jsx("a",{"aria-current":t?"page":void 0,className:Ne(He({variant:t?"outline-solid":"ghost",size:r}),a),...s});Bt.displayName="PaginationLink";const Gt=({className:a,...t})=>e.jsxs(Bt,{"aria-label":"Go to previous page",size:"default",className:Ne("gap-1 pl-2.5",a),...t,children:[e.jsx(r.ChevronLeft,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});Gt.displayName="PaginationPrevious";const Et=({className:a,...t})=>e.jsxs(Bt,{"aria-label":"Go to next page",size:"default",className:Ne("gap-1 pr-2.5",a),...t,children:[e.jsx("span",{children:"Next"}),e.jsx(r.ChevronRight,{className:"h-4 w-4"})]});Et.displayName="PaginationNext";const Ht=({className:a,...t})=>e.jsxs("span",{"aria-hidden":!0,className:Ne("flex h-9 w-9 items-center justify-center",a),...t,children:[e.jsx(r.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});Ht.displayName="PaginationEllipsis";const Vt=V.forwardRef(({className:a,children:t,...r},s)=>e.jsxs(ce.Root,{ref:s,className:Ne("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...r,children:[t,e.jsx(Qt,{})]}));Vt.displayName=ce.Root.displayName;const $t=V.forwardRef(({className:a,...t},r)=>e.jsx(ce.List,{ref:r,className:Ne("group flex flex-1 list-none items-center justify-center space-x-1",a),...t}));$t.displayName=ce.List.displayName;const Kt=ce.Item,Ut=m.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-hidden disabled:pointer-events-none disabled:opacity-50 data-active:bg-accent/50 data-[state=open]:bg-accent/50"),Wt=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(ce.Trigger,{ref:o,className:Ne(Ut(),"group",a),...s,children:[t," ",e.jsx(r.ChevronDown,{className:"relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Wt.displayName=ce.Trigger.displayName;const Xt=V.forwardRef(({className:a,...t},r)=>e.jsx(ce.Content,{ref:r,className:Ne("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 ",a),...t}));Xt.displayName=ce.Content.displayName;const Jt=ce.Link,Qt=V.forwardRef(({className:a,...t},r)=>e.jsx("div",{className:Ne("absolute left-0 top-full flex justify-center"),children:e.jsx(ce.Viewport,{className:Ne("origin-top-center relative mt-1.5 h-(--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-(--radix-navigation-menu-viewport-width)",a),ref:r,...t})}));Qt.displayName=ce.Viewport.displayName;V.forwardRef(({className:a,...t},r)=>e.jsx(ce.Indicator,{ref:r,className:Ne("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",a),...t,children:e.jsx("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"})})).displayName=ce.Indicator.displayName;const Yt=me.Menu,Zt=me.Sub,er=me.RadioGroup,ar=V.forwardRef(({className:a,...t},r)=>e.jsx(me.Root,{ref:r,className:Ne("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",a),...t}));ar.displayName=me.Root.displayName;const tr=V.forwardRef(({className:a,...t},r)=>e.jsx(me.Trigger,{ref:r,className:Ne("flex cursor-default select-none items-center rounded-sm px-3 py-1.5 text-sm font-medium outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",a),...t}));tr.displayName=me.Trigger.displayName;const rr=V.forwardRef(({className:a,inset:t,children:s,...o},i)=>e.jsxs(me.SubTrigger,{ref:i,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",a),...o,children:[s,e.jsx(r.ChevronRight,{className:"ml-auto h-4 w-4"})]}));rr.displayName=me.SubTrigger.displayName;const sr=V.forwardRef(({className:a,...t},r)=>e.jsx(me.SubContent,{ref:r,className:Ne("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t}));sr.displayName=me.SubContent.displayName;const or=V.forwardRef(({className:a,align:t="start",alignOffset:r=-4,sideOffset:s=8,...o},i)=>e.jsx(me.Portal,{children:e.jsx(me.Content,{ref:i,align:t,alignOffset:r,sideOffset:s,className:Ne("z-50 min-w-48 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...o})}));or.displayName=me.Content.displayName;const ir=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(me.Item,{ref:s,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",a),...r}));ir.displayName=me.Item.displayName;const nr=V.forwardRef(({className:a,children:t,checked:s,...o},i)=>e.jsxs(me.CheckboxItem,{ref:i,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),checked:s,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(me.ItemIndicator,{children:e.jsx(r.Check,{className:"h-4 w-4"})})}),t]}));nr.displayName=me.CheckboxItem.displayName;const dr=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(me.RadioItem,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(me.ItemIndicator,{children:e.jsx(r.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));dr.displayName=me.RadioItem.displayName;const lr=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(me.Label,{ref:s,className:Ne("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...r}));lr.displayName=me.Label.displayName;const cr=V.forwardRef(({className:a,...t},r)=>e.jsx(me.Separator,{ref:r,className:Ne("-mx-1 my-1 h-px bg-muted",a),...t}));cr.displayName=me.Separator.displayName;const mr=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});mr.displayname="MenubarShortcut";const pr=pe.Root,fr=pe.Trigger,ur=pe.Group,xr=pe.Portal,gr=pe.Sub,br=pe.RadioGroup,hr=V.forwardRef(({className:a,inset:t,children:s,...o},i)=>e.jsxs(pe.SubTrigger,{ref:i,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent data-[state=open]:bg-accent",t&&"pl-8",a),...o,children:[s,e.jsx(r.ChevronRight,{className:"ml-auto h-4 w-4"})]}));hr.displayName=pe.SubTrigger.displayName;const Nr=V.forwardRef(({className:a,...t},r)=>e.jsx(pe.SubContent,{ref:r,className:Ne("z-50 min-w-32 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",a),...t}));Nr.displayName=pe.SubContent.displayName;const vr=V.forwardRef(({className:a,sideOffset:t=4,...r},s)=>e.jsx(pe.Portal,{children:e.jsx(pe.Content,{ref:s,sideOffset:t,className:Ne("z-50 min-w-32 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",a),...r})}));vr.displayName=pe.Content.displayName;const yr=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(pe.Item,{ref:s,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",a),...r}));yr.displayName=pe.Item.displayName;const wr=V.forwardRef(({className:a,children:t,checked:s,...o},i)=>e.jsxs(pe.CheckboxItem,{ref:i,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),checked:s,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(pe.ItemIndicator,{children:e.jsx(r.Check,{className:"h-4 w-4"})})}),t]}));wr.displayName=pe.CheckboxItem.displayName;const jr=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(pe.RadioItem,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden transition-colors focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(pe.ItemIndicator,{children:e.jsx(r.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));jr.displayName=pe.RadioItem.displayName;const Cr=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(pe.Label,{ref:s,className:Ne("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...r}));Cr.displayName=pe.Label.displayName;const Rr=V.forwardRef(({className:a,...t},r)=>e.jsx(pe.Separator,{ref:r,className:Ne("-mx-1 my-1 h-px bg-muted",a),...t}));Rr.displayName=pe.Separator.displayName;const Sr=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest opacity-60",a),...t});Sr.displayName="DropdownMenuShortcut";const kr=J.Root,Tr=J.Trigger,Ir=J.Portal,zr=J.Close,Dr=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Overlay,{ref:r,className:Ne("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",a),...t}));Dr.displayName=J.Overlay.displayName;const Mr=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(Ir,{children:[e.jsx(Dr,{}),e.jsxs(J.Content,{ref:o,className:Ne("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",a),...s,children:[t,e.jsxs(J.Close,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden 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:[e.jsx(r.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Mr.displayName=J.Content.displayName;const Pr=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col space-y-1.5 text-center sm:text-left",a),...t});Pr.displayName="DialogHeader";const _r=({className:a,...t})=>e.jsx("div",{className:Ne("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});_r.displayName="DialogFooter";const Ar=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Title,{ref:r,className:Ne("text-lg font-semibold leading-none tracking-tight",a),...t}));Ar.displayName=J.Title.displayName;const Or=V.forwardRef(({className:a,...t},r)=>e.jsx(J.Description,{ref:r,className:Ne("text-sm text-muted-foreground",a),...t}));Or.displayName=J.Description.displayName;const Lr=({shouldScaleBackground:a=!0,...t})=>e.jsx(M.Drawer.Root,{shouldScaleBackground:a,...t});Lr.displayName="Drawer";const qr=M.Drawer.Trigger,Fr=M.Drawer.Portal,Br=M.Drawer.Close,Gr=V.forwardRef(({className:a,...t},r)=>e.jsx(M.Drawer.Overlay,{ref:r,className:Ne("fixed inset-0 z-50 bg-black/80",a),...t}));Gr.displayName=M.Drawer.Overlay.displayName;const Er=V.forwardRef(({className:a,children:t,...r},s)=>e.jsxs(Fr,{children:[e.jsx(Gr,{}),e.jsxs(M.Drawer.Content,{ref:s,className:Ne("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",a),...r,children:[e.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));Er.displayName="DrawerContent";const Hr=({className:a,...t})=>e.jsx("div",{className:Ne("grid gap-1.5 p-4 text-center sm:text-left",a),...t});Hr.displayName="DrawerHeader";const Vr=({className:a,...t})=>e.jsx("div",{className:Ne("mt-auto flex flex-col gap-2 p-4",a),...t});Vr.displayName="DrawerFooter";const $r=V.forwardRef(({className:a,...t},r)=>e.jsx(M.Drawer.Title,{ref:r,className:Ne("text-lg font-semibold leading-none tracking-tight",a),...t}));$r.displayName=M.Drawer.Title.displayName;const Kr=V.forwardRef(({className:a,...t},r)=>e.jsx(M.Drawer.Description,{ref:r,className:Ne("text-sm text-muted-foreground",a),...t}));Kr.displayName=M.Drawer.Description.displayName;const Ur=fe.Root,Wr=fe.Trigger,Xr=V.forwardRef(({className:a,align:t="center",sideOffset:r=4,...s},o)=>e.jsx(fe.Portal,{children:e.jsx(fe.Content,{ref:o,align:t,sideOffset:r,className:Ne("z-50 w-72 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s})}));Xr.displayName=fe.Content.displayName;const Jr=ue.Root,Qr=ue.Trigger,Yr=V.forwardRef(({className:a,align:t="center",sideOffset:r=4,...s},o)=>e.jsx(ue.Content,{ref:o,align:t,sideOffset:r,className:Ne("z-50 w-64 rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...s}));Yr.displayName=ue.Content.displayName;const Zr=xe.Root,es=xe.Trigger,as=xe.Group,ts=xe.Portal,rs=xe.Sub,ss=xe.RadioGroup,os=V.forwardRef(({className:a,inset:t,children:s,...o},i)=>e.jsxs(xe.SubTrigger,{ref:i,className:Ne("flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",t&&"pl-8",a),...o,children:[s,e.jsx(r.ChevronRight,{className:"ml-auto h-4 w-4"})]}));os.displayName=xe.SubTrigger.displayName;const is=V.forwardRef(({className:a,...t},r)=>e.jsx(xe.SubContent,{ref:r,className:Ne("z-50 min-w-32 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",a),...t}));is.displayName=xe.SubContent.displayName;const ns=V.forwardRef(({className:a,...t},r)=>e.jsx(xe.Portal,{children:e.jsx(xe.Content,{ref:r,className:Ne("z-50 min-w-32 overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md animate-in fade-in-80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",a),...t})}));ns.displayName=xe.Content.displayName;const ds=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(xe.Item,{ref:s,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",t&&"pl-8",a),...r}));ds.displayName=xe.Item.displayName;const ls=V.forwardRef(({className:a,children:t,checked:s,...o},i)=>e.jsxs(xe.CheckboxItem,{ref:i,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),checked:s,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(xe.ItemIndicator,{children:e.jsx(r.Check,{className:"h-4 w-4"})})}),t]}));ls.displayName=xe.CheckboxItem.displayName;const cs=V.forwardRef(({className:a,children:t,...s},o)=>e.jsxs(xe.RadioItem,{ref:o,className:Ne("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",a),...s,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(xe.ItemIndicator,{children:e.jsx(r.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));cs.displayName=xe.RadioItem.displayName;const ms=V.forwardRef(({className:a,inset:t,...r},s)=>e.jsx(xe.Label,{ref:s,className:Ne("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",a),...r}));ms.displayName=xe.Label.displayName;const ps=V.forwardRef(({className:a,...t},r)=>e.jsx(xe.Separator,{ref:r,className:Ne("-mx-1 my-1 h-px bg-border",a),...t}));ps.displayName=xe.Separator.displayName;const fs=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});fs.displayName="ContextMenuShortcut";const us=V.createContext(null);function xs(){const e=V.useContext(us);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const gs=V.forwardRef(({orientation:a="horizontal",opts:t,setApi:r,plugins:s,className:o,children:i,...n},d)=>{const[l,c]=O({...t,axis:"horizontal"===a?"x":"y"},s),[m,p]=V.useState(!1),[f,u]=V.useState(!1),x=V.useCallback(e=>{e&&(p(e.canScrollPrev()),u(e.canScrollNext()))},[]),g=V.useCallback(()=>{null==c||c.scrollPrev()},[c]),b=V.useCallback(()=>{null==c||c.scrollNext()},[c]),h=V.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),g()):"ArrowRight"===e.key&&(e.preventDefault(),b())},[g,b]);return V.useEffect(()=>{c&&r&&r(c)},[c,r]),V.useEffect(()=>{if(c)return x(c),c.on("reInit",x),c.on("select",x),()=>{null==c||c.off("select",x)}},[c,x]),e.jsx(us.Provider,{value:{carouselRef:l,api:c,opts:t,orientation:a||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:g,scrollNext:b,canScrollPrev:m,canScrollNext:f},children:e.jsx("div",{ref:d,onKeyDownCapture:h,className:Ne("relative",o),role:"region","aria-roledescription":"carousel",...n,children:i})})});gs.displayName="Carousel";const bs=V.forwardRef(({className:a,...t},r)=>{const{carouselRef:s,orientation:o}=xs();return e.jsx("div",{ref:s,className:"overflow-hidden",children:e.jsx("div",{ref:r,className:Ne("flex","horizontal"===o?"-ml-4":"-mt-4 flex-col",a),...t})})});bs.displayName="CarouselContent";const hs=V.forwardRef(({className:a,...t},r)=>{const{orientation:s}=xs();return e.jsx("div",{ref:r,role:"group","aria-roledescription":"slide",className:Ne("min-w-0 shrink-0 grow-0 basis-full","horizontal"===s?"pl-4":"pt-4",a),...t})});hs.displayName="CarouselItem";const Ns=V.forwardRef(({className:a,variant:t="outline",size:s="icon",...o},i)=>{const{orientation:n,scrollPrev:d,canScrollPrev:l}=xs();return e.jsxs(Ve,{ref:i,variant:t,size:s,className:Ne("absolute h-8 w-8 rounded-full","horizontal"===n?"-left-12 top-1/2 -translate-y-1/2":"-top-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!l,onClick:d,...o,children:[e.jsx(r.ArrowLeft,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Previous slide"})]})});Ns.displayName="CarouselPrevious";const vs=V.forwardRef(({className:a,variant:t="outline",size:s="icon",...o},i)=>{const{orientation:n,scrollNext:d,canScrollNext:l}=xs();return e.jsxs(Ve,{ref:i,variant:t,size:s,className:Ne("absolute h-8 w-8 rounded-full","horizontal"===n?"-right-12 top-1/2 -translate-y-1/2":"-bottom-12 left-1/2 -translate-x-1/2 rotate-90",a),disabled:!l,onClick:d,...o,children:[e.jsx(r.ArrowRight,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Next slide"})]})});vs.displayName="CarouselNext";const ys=ge.Root,ws=ge.CollapsibleTrigger,js=ge.CollapsibleContent,Cs=V.forwardRef(({className:a,...t},r)=>e.jsx(q.Command,{ref:r,className:Ne("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",a),...t}));Cs.displayName=q.Command.displayName;const Rs=V.forwardRef(({className:a,...t},s)=>e.jsxs("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[e.jsx(r.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),e.jsx(q.Command.Input,{ref:s,className:Ne("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",a),...t})]}));Rs.displayName=q.Command.Input.displayName;const Ss=V.forwardRef(({className:a,...t},r)=>e.jsx(q.Command.List,{ref:r,className:Ne("max-h-[300px] overflow-y-auto overflow-x-hidden",a),...t}));Ss.displayName=q.Command.List.displayName;const ks=V.forwardRef((a,t)=>e.jsx(q.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...a}));ks.displayName=q.Command.Empty.displayName;const Ts=V.forwardRef(({className:a,...t},r)=>e.jsx(q.Command.Group,{ref:r,className:Ne("overflow-hidden p-1 text-foreground **:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:py-1.5 **:[[cmdk-group-heading]]:text-xs **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground",a),...t}));Ts.displayName=q.Command.Group.displayName;const Is=V.forwardRef(({className:a,...t},r)=>e.jsx(q.Command.Separator,{ref:r,className:Ne("-mx-1 h-px bg-border",a),...t}));Is.displayName=q.Command.Separator.displayName;const zs=V.forwardRef(({className:a,...t},r)=>e.jsx(q.Command.Item,{ref:r,className:Ne("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected='true']:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50",a),...t}));zs.displayName=q.Command.Item.displayName;const Ds=({className:a,...t})=>e.jsx("span",{className:Ne("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});Ds.displayName="CommandShortcut";const Ms=be.Provider,Ps=V.forwardRef(({className:a,...t},r)=>e.jsx(be.Viewport,{ref:r,className:Ne("fixed top-0 z-100 flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",a),...t}));Ps.displayName=be.Viewport.displayName;const _s=m.cva("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-(--radix-toast-swipe-end-x) data-[swipe=move]:translate-x-(--radix-toast-swipe-move-x) data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),As=V.forwardRef(({className:a,variant:t,...r},s)=>e.jsx(be.Root,{ref:s,className:Ne(_s({variant:t}),a),...r}));As.displayName=be.Root.displayName;const Os=V.forwardRef(({className:a,...t},r)=>e.jsx(be.Action,{ref:r,className:Ne("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground focus:group-[.destructive]:ring-destructive",a),...t}));Os.displayName=be.Action.displayName;const Ls=V.forwardRef(({className:a,...t},s)=>e.jsx(be.Close,{ref:s,className:Ne("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 hover:group-[.destructive]:text-red-50 focus:group-[.destructive]:ring-red-400 focus:group-[.destructive]:ring-offset-red-600",a),"toast-close":"",...t,children:e.jsx(r.X,{className:"h-4 w-4"})}));Ls.displayName=be.Close.displayName;const qs=V.forwardRef(({className:a,...t},r)=>e.jsx(be.Title,{ref:r,className:Ne("text-sm font-semibold",a),...t}));qs.displayName=be.Title.displayName;const Fs=V.forwardRef(({className:a,...t},r)=>e.jsx(be.Description,{ref:r,className:Ne("text-sm opacity-90",a),...t}));Fs.displayName=be.Description.displayName;let Bs=0;const Gs=new Map,Es=e=>{if(Gs.has(e))return;const a=setTimeout(()=>{Gs.delete(e),Ks({type:"REMOVE_TOAST",toastId:e})},1e6);Gs.set(e,a)},Hs=(e,a)=>{switch(a.type){case"ADD_TOAST":return{...e,toasts:[a.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===a.toast.id?{...e,...a.toast}:e)};case"DISMISS_TOAST":{const{toastId:t}=a;return t?Es(t):e.toasts.forEach(e=>{Es(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===t||void 0===t?{...e,open:!1}:e)}}case"REMOVE_TOAST":return void 0===a.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(e=>e.id!==a.toastId)}}},Vs=[];let $s={toasts:[]};function Ks(e){$s=Hs($s,e),Vs.forEach(e=>{e($s)})}function Us({...e}){const a=(Bs=(Bs+1)%Number.MAX_SAFE_INTEGER,Bs.toString()),t=()=>Ks({type:"DISMISS_TOAST",toastId:a});return Ks({type:"ADD_TOAST",toast:{...e,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>Ks({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function Ws(){const[e,a]=V.useState($s);return V.useEffect(()=>(Vs.push(a),()=>{const e=Vs.indexOf(a);e>-1&&Vs.splice(e,1)}),[e]),{...e,toast:Us,dismiss:e=>Ks({type:"DISMISS_TOAST",toastId:e})}}const Xs={light:"",dark:".dark"},Js=V.createContext(null);function Qs(){const e=V.useContext(Js);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const Ys=V.forwardRef(({id:a,className:t,children:r,config:s,...o},i)=>{const n=V.useId(),d=`chart-${a||n.replace(/:/g,"")}`;return e.jsx(Js.Provider,{value:{config:s},children:e.jsxs("div",{"data-chart":d,ref:i,className:Ne("flex aspect-video justify-center text-xs [&_.recharts-cartesian-axis-tick_text]:fill-muted-foreground [&_.recharts-cartesian-grid_line[stroke='#ccc']]:stroke-border/50 [&_.recharts-curve.recharts-tooltip-cursor]:stroke-border [&_.recharts-dot[stroke='#fff']]:stroke-transparent [&_.recharts-layer]:outline-hidden [&_.recharts-polar-grid_[stroke='#ccc']]:stroke-border [&_.recharts-radial-bar-background-sector]:fill-muted [&_.recharts-rectangle.recharts-tooltip-cursor]:fill-muted [&_.recharts-reference-line_[stroke='#ccc']]:stroke-border [&_.recharts-sector[stroke='#fff']]:stroke-transparent [&_.recharts-sector]:outline-hidden [&_.recharts-surface]:outline-hidden",t),...o,children:[e.jsx(Zs,{id:d,config:s}),e.jsx(he.ResponsiveContainer,{children:r})]})})});Ys.displayName="Chart";const Zs=({id:a,config:t})=>{const r=Object.entries(t).filter(([e,a])=>a.theme||a.color);return r.length?e.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Xs).map(([e,t])=>`\n${t} [data-chart=${a}] {\n${r.map(([a,t])=>{var r;const s=(null==(r=t.theme)?void 0:r[e])||t.color;return s?` --color-${a}: ${s};`:null}).join("\n")}\n}\n`).join("\n")}}):null},eo=he.Tooltip,ao=V.forwardRef(({active:a,payload:t,className:r,indicator:s="dot",hideLabel:o=!1,hideIndicator:i=!1,label:n,labelFormatter:d,labelClassName:l,formatter:c,color:m,nameKey:p,labelKey:f},u)=>{const{config:x}=Qs(),g=V.useMemo(()=>{var a;if(o||!(null==t?void 0:t.length))return null;const[r]=t,s=`${f||r.dataKey||r.name||"value"}`,i=ro(x,r,s),c=f||"string"!=typeof n?null==i?void 0:i.label:(null==(a=x[n])?void 0:a.label)||n;return d?e.jsx("div",{className:Ne("font-medium",l),children:d(c,t)}):c?e.jsx("div",{className:Ne("font-medium",l),children:c}):null},[n,d,t,o,l,x,f]);if(!a||!(null==t?void 0:t.length))return null;const b=1===t.length&&"dot"!==s;return e.jsxs("div",{ref:u,className:Ne("grid min-w-32 items-start gap-1.5 rounded-lg border bg-background px-2.5 py-1.5 text-xs shadow-xl",r),children:[b?null:g,e.jsx("div",{className:"grid gap-1.5",children:t.map((a,t)=>{const r=`${p||a.name||a.dataKey||"value"}`,o=ro(x,a,r),n=m||a.payload.fill||a.color;return e.jsx("div",{className:Ne("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===s&&"items-center"),children:c&&void 0!==(null==a?void 0:a.value)&&a.name?c(a.value,a.name,a,t,a.payload):e.jsxs(e.Fragment,{children:[(null==o?void 0:o.icon)?e.jsx(o.icon,{}):!i&&e.jsx("div",{className:Ne("shrink-0 rounded-[2px] border-border bg-(--color-bg)",{"h-2.5 w-2.5":"dot"===s,"w-1":"line"===s,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===s,"my-0.5":b&&"dashed"===s}),style:{"--color-bg":n,"--color-border":n}}),e.jsxs("div",{className:Ne("flex flex-1 justify-between leading-none",b?"items-end":"items-center"),children:[e.jsxs("div",{className:"grid gap-1.5",children:[b?g:null,e.jsx("span",{className:"text-muted-foreground",children:(null==o?void 0:o.label)||a.name})]}),a.value&&e.jsx("span",{className:"font-mono font-medium tabular-nums text-foreground",children:a.value.toLocaleString()})]})]})},a.dataKey)})})]})});ao.displayName="ChartTooltip";const to=he.Legend;function ro(e,a,t){if("object"!=typeof a||null===a)return;const r="payload"in a&&"object"==typeof a.payload&&null!==a.payload?a.payload:void 0;let s=t;return t in a&&"string"==typeof a[t]?s=a[t]:r&&t in r&&"string"==typeof r[t]&&(s=r[t]),s in e?e[s]:e[t]}V.forwardRef(({className:a,hideIcon:t=!1,payload:r,verticalAlign:s="bottom",nameKey:o},i)=>{const{config:n}=Qs();return(null==r?void 0:r.length)?e.jsx("div",{ref:i,className:Ne("flex items-center justify-center gap-4","top"===s?"pb-3":"pt-3",a),children:r.map(a=>{const r=`${o||a.dataKey||"value"}`,s=ro(n,a,r);return e.jsxs("div",{className:Ne("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==s?void 0:s.icon)&&!t?e.jsx(s.icon,{}):e.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:a.color}}),null==s?void 0:s.label]},a.value)})}):null}).displayName="ChartLegend";exports.Accordion=ve,exports.AccordionContent=je,exports.AccordionItem=ye,exports.AccordionTrigger=we,exports.Alert=dt,exports.AlertDescription=ct,exports.AlertDialog=mt,exports.AlertDialogAction=vt,exports.AlertDialogCancel=yt,exports.AlertDialogContent=xt,exports.AlertDialogDescription=Nt,exports.AlertDialogFooter=bt,exports.AlertDialogHeader=gt,exports.AlertDialogTitle=ht,exports.AlertDialogTrigger=pt,exports.AlertTitle=lt,exports.AspectRatio=Ce,exports.Avatar=wt,exports.AvatarFallback=Ct,exports.AvatarImage=jt,exports.Badge=function({className:a,variant:t,...r}){return e.jsx("div",{className:Ne(it({variant:t}),a),...r})},exports.Breadcrumb=Rt,exports.BreadcrumbItem=kt,exports.BreadcrumbLink=Tt,exports.BreadcrumbList=St,exports.BreadcrumbPage=It,exports.BreadcrumbSeparator=zt,exports.Button=Ve,exports.Calendar=Mt,exports.Card=Re,exports.CardContent=Ie,exports.CardDescription=Te,exports.CardFooter=ze,exports.CardHeader=Se,exports.CardTitle=ke,exports.Carousel=gs,exports.CarouselContent=bs,exports.CarouselItem=hs,exports.CarouselNext=vs,exports.CarouselPrevious=Ns,exports.ChartContainer=Ys,exports.ChartLegend=to,exports.ChartStyle=Zs,exports.ChartTooltip=eo,exports.ChartTooltipContent=ao,exports.Checkbox=ka,exports.Collapsible=ys,exports.CollapsibleContent=js,exports.CollapsibleTrigger=ws,exports.Command=Cs,exports.CommandDialog=({children:a,...t})=>e.jsx(kr,{...t,children:e.jsx(Mr,{className:"overflow-hidden p-0 shadow-lg",children:e.jsx(Cs,{className:"**:[[cmdk-group-heading]]:px-2 **:[[cmdk-group-heading]]:font-medium **:[[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 **:[[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 **:[[cmdk-input]]:h-12 **:[[cmdk-item]]:px-2 **:[[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:a})})}),exports.CommandEmpty=ks,exports.CommandGroup=Ts,exports.CommandInput=Rs,exports.CommandItem=zs,exports.CommandList=Ss,exports.CommandSeparator=Is,exports.CommandShortcut=Ds,exports.ContextMenu=Zr,exports.ContextMenuCheckboxItem=ls,exports.ContextMenuContent=ns,exports.ContextMenuGroup=as,exports.ContextMenuItem=ds,exports.ContextMenuLabel=ms,exports.ContextMenuPortal=ts,exports.ContextMenuRadioGroup=ss,exports.ContextMenuRadioItem=cs,exports.ContextMenuSeparator=ps,exports.ContextMenuShortcut=fs,exports.ContextMenuSub=rs,exports.ContextMenuSubContent=is,exports.ContextMenuSubTrigger=os,exports.ContextMenuTrigger=es,exports.Dialog=kr,exports.DialogClose=zr,exports.DialogContent=Mr,exports.DialogDescription=Or,exports.DialogFooter=_r,exports.DialogHeader=Pr,exports.DialogTitle=Ar,exports.DialogTrigger=Tr,exports.Drawer=Lr,exports.DrawerClose=Br,exports.DrawerContent=Er,exports.DrawerDescription=Kr,exports.DrawerFooter=Vr,exports.DrawerHeader=Hr,exports.DrawerTitle=$r,exports.DrawerTrigger=qr,exports.DropdownMenu=pr,exports.DropdownMenuCheckboxItem=wr,exports.DropdownMenuContent=vr,exports.DropdownMenuGroup=ur,exports.DropdownMenuItem=yr,exports.DropdownMenuLabel=Cr,exports.DropdownMenuPortal=xr,exports.DropdownMenuRadioGroup=br,exports.DropdownMenuRadioItem=jr,exports.DropdownMenuSeparator=Rr,exports.DropdownMenuShortcut=Sr,exports.DropdownMenuSub=gr,exports.DropdownMenuSubContent=Nr,exports.DropdownMenuSubTrigger=hr,exports.DropdownMenuTrigger=fr,exports.Form=Ka,exports.FormControl=Ya,exports.FormDescription=Za,exports.FormField=({...a})=>e.jsx(Ua.Provider,{value:{name:a.name},children:e.jsx(y.Controller,{...a})}),exports.FormItem=Ja,exports.FormLabel=Qa,exports.FormMessage=et,exports.HoverCard=Jr,exports.HoverCardContent=Yr,exports.HoverCardTrigger=Qr,exports.Input=$e,exports.InputOTP=Ma,exports.InputOTPGroup=Pa,exports.InputOTPSeparator=Aa,exports.InputOTPSlot=_a,exports.Label=Ra,exports.Menubar=ar,exports.MenubarCheckboxItem=nr,exports.MenubarContent=or,exports.MenubarItem=ir,exports.MenubarLabel=lr,exports.MenubarMenu=Yt,exports.MenubarRadioGroup=er,exports.MenubarRadioItem=dr,exports.MenubarSeparator=cr,exports.MenubarShortcut=mr,exports.MenubarSub=Zt,exports.MenubarSubContent=sr,exports.MenubarSubTrigger=rr,exports.MenubarTrigger=tr,exports.NavigationMenu=Vt,exports.NavigationMenuContent=Xt,exports.NavigationMenuItem=Kt,exports.NavigationMenuLink=Jt,exports.NavigationMenuList=$t,exports.NavigationMenuTrigger=Wt,exports.Pagination=Lt,exports.PaginationContent=qt,exports.PaginationEllipsis=Ht,exports.PaginationItem=Ft,exports.PaginationLink=Bt,exports.PaginationNext=Et,exports.PaginationPrevious=Gt,exports.Popover=Ur,exports.PopoverContent=Xr,exports.PopoverTrigger=Wr,exports.Progress=Dt,exports.RadioGroup=Ta,exports.RadioGroupItem=Ia,exports.ResizableHandle=({withHandle:a,className:t,...s})=>e.jsx(X.PanelResizeHandle,{className:Ne("relative flex w-px items-center justify-center bg-border after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-1 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 [&[data-panel-group-direction=vertical]>div]:rotate-90",t),...s,children:a&&e.jsx("div",{className:"z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border",children:e.jsx(r.GripVertical,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=Ee,exports.ResizablePanelGroup=({className:a,...t})=>e.jsx(X.PanelGroup,{className:Ne("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",a),...t}),exports.ScrollArea=Me,exports.ScrollBar=Pe,exports.Select=Oa,exports.SelectContent=Ea,exports.SelectGroup=La,exports.SelectItem=Va,exports.SelectLabel=Ha,exports.SelectScrollDownButton=Ga,exports.SelectScrollUpButton=Ba,exports.SelectSeparator=$a,exports.SelectTrigger=Fa,exports.SelectValue=qa,exports.Separator=De,exports.Sheet=Ke,exports.SheetClose=We,exports.SheetContent=Ye,exports.SheetDescription=ta,exports.SheetFooter=ea,exports.SheetHeader=Ze,exports.SheetTitle=aa,exports.SheetTrigger=Ue,exports.Sidebar=ca,exports.SidebarContent=fa,exports.SidebarFooter=pa,exports.SidebarGroup=ua,exports.SidebarGroupContent=ga,exports.SidebarGroupLabel=xa,exports.SidebarHeader=ma,exports.SidebarMenu=ba,exports.SidebarMenuButton=va,exports.SidebarMenuItem=ha,exports.SidebarMenuSub=ya,exports.SidebarMenuSubButton=ja,exports.SidebarMenuSubItem=wa,exports.Skeleton=ra,exports.Slider=Da,exports.Sonner=({...a})=>{const{theme:t="system"}=G.useTheme();return e.jsx(E.Toaster,{theme:t,className:"toaster group",toastOptions:{classNames:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster] group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}},...a})},exports.Switch=za,exports.Table=_e,exports.TableBody=Oe,exports.TableCaption=Ge,exports.TableCell=Be,exports.TableFooter=Le,exports.TableHead=Fe,exports.TableHeader=Ae,exports.TableRow=qe,exports.Tabs=Pt,exports.TabsContent=Ot,exports.TabsList=_t,exports.TabsTrigger=At,exports.Textarea=Sa,exports.Toast=As,exports.ToastAction=Os,exports.ToastClose=Ls,exports.ToastDescription=Fs,exports.ToastProvider=Ms,exports.ToastTitle=qs,exports.ToastViewport=Ps,exports.Toaster=function(){const{toasts:a}=Ws();return e.jsxs(Ms,{children:[a.map(function({id:a,title:t,description:r,action:s,...o}){return e.jsxs(As,{...o,children:[e.jsxs("div",{className:"grid gap-1",children:[t&&e.jsx(qs,{children:t}),r&&e.jsx(Fs,{children:r})]}),s,e.jsx(Ls,{})]},a)}),e.jsx(Ps,{})]})},exports.Toggle=tt,exports.ToggleGroup=st,exports.ToggleGroupItem=ot,exports.Tooltip=oa,exports.TooltipContent=na,exports.TooltipProvider=sa,exports.TooltipTrigger=ia,exports.badgeVariants=it,exports.buttonVariants=He,exports.navigationMenuTriggerStyle=Ut,exports.toggleVariants=at,exports.useToast=Ws;
|
package/dist/ui/index.es.js
CHANGED
|
@@ -307,7 +307,7 @@ const buttonVariants = cva(
|
|
|
307
307
|
variant: {
|
|
308
308
|
// CTA Button Variants
|
|
309
309
|
"primary-gradient": [
|
|
310
|
-
"text-
|
|
310
|
+
"text-black shadow-xs",
|
|
311
311
|
"bg-linear-to-r from-cyan-gradient-from via-cyan-gradient-via to-cyan-gradient-to",
|
|
312
312
|
"hover:shadow-lg hover:scale-[1.02]",
|
|
313
313
|
"relative",
|