@syscore/ui-library 1.1.8 → 1.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/components/ui/Navigation.tsx +958 -0
- package/client/components/ui/SearchField.tsx +157 -0
- package/client/components/ui/StrategyTable.tsx +303 -0
- package/client/components/ui/Tag.tsx +127 -0
- package/client/components/ui/alert-dialog.tsx +1 -1
- package/client/components/ui/button.tsx +67 -127
- package/client/components/ui/calendar.tsx +2 -2
- package/client/components/ui/card.tsx +10 -13
- package/client/components/ui/carousel.tsx +56 -46
- package/client/components/ui/command.tsx +27 -16
- package/client/components/ui/dialog.tsx +113 -92
- package/client/components/ui/label.tsx +5 -3
- package/client/components/ui/menubar.tsx +1 -1
- package/client/components/ui/pagination.tsx +3 -3
- package/client/components/ui/sidebar.tsx +1 -1
- package/client/components/ui/tabs.tsx +350 -5
- package/client/components/ui/toggle.tsx +71 -19
- package/client/components/ui/tooltip.tsx +69 -18
- package/client/global.css +635 -58
- package/dist/ui/fonts/FT-Made/FTMade-Regular.otf +0 -0
- package/dist/ui/fonts/FT-Made/FTMade-Regular.ttf +0 -0
- package/dist/ui/fonts/FT-Made/FTMade-Regular.woff +0 -0
- package/dist/ui/fonts/FT-Made/FTMade-Regular.woff2 +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-black.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-blackitalic.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-bold.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-bolditalic.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-extrabold.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-extrabolditalic.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-extralight.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-extralightitalic.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-italic.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-light.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-lightitalic.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-medium.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-mediumitalic.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-regular.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-semibold.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-semibolditalic.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-thin.otf +0 -0
- package/dist/ui/fonts/Mazzard-M/mazzardsoftm-thinitalic.otf +0 -0
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.es.js +401 -329
- package/package.json +3 -2
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
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-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;
|
|
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"),s=require("lucide-react"),r=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"),u=require("@radix-ui/react-dialog"),f=require("@radix-ui/react-tooltip"),p=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-alert-dialog"),C=require("@radix-ui/react-avatar"),R=require("@radix-ui/react-progress"),S=require("react-day-picker");require("motion/react");const k=require("@radix-ui/react-tabs"),T=require("@radix-ui/react-navigation-menu"),I=require("@radix-ui/react-menubar"),z=require("@radix-ui/react-dropdown-menu"),D=require("vaul"),M=require("@radix-ui/react-popover"),_=require("@radix-ui/react-hover-card"),P=require("@radix-ui/react-context-menu"),A=require("embla-carousel-react"),O=require("@radix-ui/react-collapsible"),L=require("cmdk"),q=require("@radix-ui/react-toast"),F=require("recharts"),B=require("next-themes"),G=require("sonner");function E(e){const a=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const t in e)if("default"!==t){const s=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(a,t,s.get?s:{enumerable:!0,get:()=>e[t]})}return a.default=e,Object.freeze(a)}const V=E(a),H=E(t),$=E(i),K=E(n),U=E(d),X=E(l),W=E(u),Z=E(f),J=E(p),Q=E(x),Y=E(g),ee=E(b),ae=E(h),te=E(v),se=E(w),re=E(j),oe=E(C),ie=E(R),ne=E(k),de=E(T),le=E(I),ce=E(z),me=E(M),ue=E(_),fe=E(P),pe=E(O),xe=E(q),ge=E(F);function be(...e){return o.twMerge(r.clsx(e))}const he=H.Root,Ne=V.forwardRef(({className:a,...t},s)=>e.jsx(H.Item,{ref:s,className:be("border-b",a),...t}));Ne.displayName="AccordionItem";const ve=V.forwardRef(({className:a,children:t,...r},o)=>e.jsx(H.Header,{className:"flex",children:e.jsxs(H.Trigger,{ref:o,className:be("flex flex-1 items-center justify-between py-4 font-medium transition-all [&[data-state=open]>svg]:rotate-180",a),...r,children:[t,e.jsx(s.ChevronDown,{className:"h-4 w-4 shrink-0 transition-transform duration-200"})]})}));ve.displayName=H.Trigger.displayName;const ye=V.forwardRef(({className:a,children:t,...s},r)=>e.jsx(H.Content,{ref:r,className:"overflow-hidden text-sm transition-all data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",...s,children:e.jsx("div",{className:be("pb-4 pt-0",a),children:t})}));ye.displayName=H.Content.displayName;const we=$.Root,je=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:be("rounded-lg border border-gray-100 bg-cyan-50 shadow-xs p-6 space-y-6",a),...t}));je.displayName="Card";const Ce=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:be("flex flex-col gap-6",a),...t}));Ce.displayName="CardHeader";const Re=V.forwardRef(({className:a,...t},s)=>e.jsx("h3",{ref:s,className:be("heading-xxsmall text-gray-800",a),...t}));Re.displayName="CardTitle";const Se=V.forwardRef(({className:a,...t},s)=>e.jsx("p",{ref:s,className:be("body-base text-gray-800",a),...t}));Se.displayName="CardDescription";const ke=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:be("body-base text-gray-800",a),...t}));ke.displayName="CardContent";const Te=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:be("flex items-center body-base text-gray-800",a),...t}));Te.displayName="CardFooter";const Ie=V.forwardRef(({className:a,orientation:t="horizontal",decorative:s=!0,...r},o)=>e.jsx(K.Root,{ref:o,decorative:s,orientation:t,className:be("shrink-0 bg-border","horizontal"===t?"h-px w-full":"h-full w-px",a),...r}));Ie.displayName=K.Root.displayName;const ze=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(U.Root,{ref:r,className:be("relative overflow-hidden",a),...s,children:[e.jsx(U.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),e.jsx(De,{}),e.jsx(U.Corner,{})]}));ze.displayName=U.Root.displayName;const De=V.forwardRef(({className:a,orientation:t="vertical",...s},r)=>e.jsx(U.ScrollAreaScrollbar,{ref:r,orientation:t,className:be("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),...s,children:e.jsx(U.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));De.displayName=U.ScrollAreaScrollbar.displayName;const Me=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{className:"relative w-full overflow-auto",children:e.jsx("table",{ref:s,className:be("w-full caption-bottom text-sm",a),...t})}));Me.displayName="Table";const _e=V.forwardRef(({className:a,...t},s)=>e.jsx("thead",{ref:s,className:be("[&_tr]:border-b",a),...t}));_e.displayName="TableHeader";const Pe=V.forwardRef(({className:a,...t},s)=>e.jsx("tbody",{ref:s,className:be("[&_tr:last-child]:border-0",a),...t}));Pe.displayName="TableBody";const Ae=V.forwardRef(({className:a,...t},s)=>e.jsx("tfoot",{ref:s,className:be("border-t bg-muted/50 font-medium last:[&>tr]:border-b-0",a),...t}));Ae.displayName="TableFooter";const Oe=V.forwardRef(({className:a,...t},s)=>e.jsx("tr",{ref:s,className:be("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",a),...t}));Oe.displayName="TableRow";const Le=V.forwardRef(({className:a,...t},s)=>e.jsx("th",{ref:s,className:be("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",a),...t}));Le.displayName="TableHead";const qe=V.forwardRef(({className:a,...t},s)=>e.jsx("td",{ref:s,className:be("p-4 align-middle [&:has([role=checkbox])]:pr-0",a),...t}));qe.displayName="TableCell";const Fe=V.forwardRef(({className:a,...t},s)=>e.jsx("caption",{ref:s,className:be("mt-4 text-sm text-muted-foreground",a),...t}));Fe.displayName="TableCaption";const Be=X.Panel;const Ge=m.cva("group inline-flex items-center justify-center rounded-full transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 cursor-pointer",{variants:{variant:{"primary-gradient":"text-white hover:opacity-90 btn-primary-gradient","primary-dark":"bg-cyan-800 text-white hover:bg-cyan-900 focus-visible:ring-cyan-800","secondary-light":"bg-white border border-gray-200 text-cyan-800 hover:bg-gray-50 focus-visible:ring-gray-200","tertiary-light":"bg-blue-50 border border-blue-200 text-blue-600 hover:bg-blue-100 focus-visible:ring-blue-200","general-primary":"bg-blue-600 text-white hover:bg-blue-700 focus-visible:ring-blue-600","general-secondary":"bg-white border border-blue-200 text-blue-600 hover:bg-blue-50 focus-visible:ring-blue-200","general-tertiary":"bg-white border border-gray-200 text-gray-600 hover:bg-gray-50 focus-visible:ring-gray-200","tooltip-primary":"bg-cyan-300 text-white hover:bg-cyan-400 focus-visible:ring-cyan-300","tooltip-secondary":"bg-gray-500 text-white hover:bg-gray-600 focus-visible:ring-gray-500"},size:{xlarge:"h-16 px-10",large:"h-12 px-8",utility:"h-8 px-4",icon:"size-[32px]"}},compoundVariants:[{size:"xlarge",className:"font-semibold"},{size:"large",className:"font-semibold"},{size:"utility",className:"font-semibold"},{size:"icon",className:"p-0 bg-white border border-gray-100 "}],defaultVariants:{variant:"primary-dark",size:"large"}}),Ee=V.forwardRef(({className:a,variant:t,size:s,children:r,style:o,...i},n)=>{const d="xlarge"===s?"body-large":"large"===s?"body-base":"utility"===s?"body-small":"";return e.jsx("button",{className:be(Ge({variant:t,size:s}),a),style:o,ref:n,...i,children:"icon"===s?r:e.jsx("span",{className:be("relative z-10",d),children:r})})});Ee.displayName="Button";const Ve=V.forwardRef(({className:a,type:t,...s},r)=>e.jsx("input",{type:t,className:be("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:r,...s}));Ve.displayName="Input";const He=W.Root,$e=W.Trigger,Ke=W.Close,Ue=W.Portal,Xe=V.forwardRef(({className:a,...t},s)=>e.jsx(W.Overlay,{className:be("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:s}));Xe.displayName=W.Overlay.displayName;const We=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"}}),Ze=V.forwardRef(({side:a="right",className:t,children:r,...o},i)=>e.jsxs(Ue,{children:[e.jsx(Xe,{}),e.jsxs(W.Content,{ref:i,className:be(We({side:a}),t),...o,children:[r,e.jsxs(W.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(s.X,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]}));Ze.displayName=W.Content.displayName;const Je=({className:a,...t})=>e.jsx("div",{className:be("flex flex-col space-y-2 text-center sm:text-left",a),...t});Je.displayName="SheetHeader";const Qe=({className:a,...t})=>e.jsx("div",{className:be("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});Qe.displayName="SheetFooter";const Ye=V.forwardRef(({className:a,...t},s)=>e.jsx(W.Title,{ref:s,className:be("text-lg font-semibold text-foreground",a),...t}));Ye.displayName=W.Title.displayName;const ea=V.forwardRef(({className:a,...t},s)=>e.jsx(W.Description,{ref:s,className:be("text-sm text-muted-foreground",a),...t}));function aa({className:a,...t}){return e.jsx("div",{className:be("animate-pulse rounded-md bg-muted",a),...t})}function ta({delayDuration:a=0,...t}){return e.jsx(Z.Provider,{"data-slot":"tooltip-provider",delayDuration:a,...t})}function sa({...a}){return e.jsx(ta,{children:e.jsx(Z.Root,{"data-slot":"tooltip",...a})})}function ra({...a}){return e.jsx(Z.Trigger,{"data-slot":"tooltip-trigger",...a})}function oa({className:a,sideOffset:t=0,side:s="bottom",children:r,alignOffset:o=0,...i}){return e.jsx(Z.Portal,{children:e.jsxs(Z.Content,{"data-slot":"tooltip-content",sideOffset:t,alignOffset:o,side:s,className:be("group relative bg-gray-700 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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-lg px-6 pt-8 pb-6 text-balance shadow-sm",a),...i,children:[e.jsx("div",{className:"absolute left-1/2 -translate-x-1/2 flex justify-center group-data-[side=top]:bottom-0 group-data-[side=top]:rotate-180 group-data-[side=bottom]:top-0 group-data-[side=left]:right-0 group-data-[side=right]:left-0",children:e.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"5",viewBox:"0 0 10 5",fill:"none",children:e.jsx("path",{d:"M10 -1.74846e-06L-7.36867e-07 0C-3.29906e-07 2.76142 2.23858 5 5 5C7.76142 5 10 2.76142 10 -1.74846e-06Z",fill:"#39C9EA"})})}),r]})})}ea.displayName=W.Description.displayName;const ia=V.createContext(null);function na(){const e=V.useContext(ia);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}V.forwardRef(({defaultOpen:a=!0,open:t,onOpenChange:s,className:r,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),[u,f]=V.useState(a),p=t??u,x=V.useCallback(e=>{const a="function"==typeof e?e(p):e;s?s(a):f(a),document.cookie=`sidebar:state=${a}; path=/; max-age=604800`},[s,p]),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=p?"expanded":"collapsed",h=V.useMemo(()=>({state:b,open:p,setOpen:x,isMobile:l,openMobile:c,setOpenMobile:m,toggleSidebar:g}),[b,p,x,l,c,m,g]);return e.jsx(ia.Provider,{value:h,children:e.jsx(ta,{delayDuration:0,children:e.jsx("div",{style:{"--sidebar-width":"16rem","--sidebar-width-icon":"3rem",...o},className:be("group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar",r),ref:d,...n,children:i})})})}).displayName="SidebarProvider";const da=V.forwardRef(({side:a="left",variant:t="sidebar",collapsible:s="offcanvas",className:r,children:o,...i},n)=>{const{isMobile:d,state:l,openMobile:c,setOpenMobile:m}=na();return"none"===s?e.jsx("div",{className:be("flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground",r),ref:n,...i,children:o}):d?e.jsx(He,{open:c,onOpenChange:m,...i,children:e.jsx(Ze,{"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?s:"","data-variant":t,"data-side":a,children:[e.jsx("div",{className:be("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:be("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",r),...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})})]})});da.displayName="Sidebar";V.forwardRef(({className:a,onClick:t,...r},o)=>{const{toggleSidebar:i}=na();return e.jsxs(Ee,{ref:o,"data-sidebar":"trigger",variant:"general-tertiary",size:"icon",className:be("h-7 w-7",a),onClick:e=>{null==t||t(e),i()},...r,children:[e.jsx(s.PanelLeft,{}),e.jsx("span",{className:"sr-only",children:"Toggle Sidebar"})]})}).displayName="SidebarTrigger";V.forwardRef(({className:a,...t},s)=>{const{toggleSidebar:r}=na();return e.jsx("button",{ref:s,"data-sidebar":"rail","aria-label":"Toggle Sidebar",tabIndex:-1,onClick:r,title:"Toggle Sidebar",className:be("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},s)=>e.jsx("main",{ref:s,className:be("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},s)=>e.jsx(Ve,{ref:s,"data-sidebar":"input",className:be("h-8 w-full bg-background shadow-none focus-visible:ring-2 focus-visible:ring-sidebar-ring",a),...t})).displayName="SidebarInput";const la=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"header",className:be("flex flex-col gap-2 p-2",a),...t}));la.displayName="SidebarHeader";const ca=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"footer",className:be("flex flex-col gap-2 p-2",a),...t}));ca.displayName="SidebarFooter";V.forwardRef(({className:a,...t},s)=>e.jsx(Ie,{ref:s,"data-sidebar":"separator",className:be("mx-2 w-auto bg-sidebar-border",a),...t})).displayName="SidebarSeparator";const ma=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"content",className:be("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",a),...t}));ma.displayName="SidebarContent";const ua=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"group",className:be("relative flex w-full min-w-0 flex-col p-2",a),...t}));ua.displayName="SidebarGroup";const fa=V.forwardRef(({className:a,asChild:t=!1,...s},r)=>{const o=t?c.Slot:"div";return e.jsx(o,{ref:r,"data-sidebar":"group-label",className:be("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),...s})});fa.displayName="SidebarGroupLabel";V.forwardRef(({className:a,asChild:t=!1,...s},r)=>{const o=t?c.Slot:"button";return e.jsx(o,{ref:r,"data-sidebar":"group-action",className:be("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),...s})}).displayName="SidebarGroupAction";const pa=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"group-content",className:be("w-full text-sm",a),...t}));pa.displayName="SidebarGroupContent";const xa=V.forwardRef(({className:a,...t},s)=>e.jsx("ul",{ref:s,"data-sidebar":"menu",className:be("flex w-full min-w-0 flex-col gap-1",a),...t}));xa.displayName="SidebarMenu";const ga=V.forwardRef(({className:a,...t},s)=>e.jsx("li",{ref:s,"data-sidebar":"menu-item",className:be("group/menu-item relative",a),...t}));ga.displayName="SidebarMenuItem";const ba=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"}}),ha=V.forwardRef(({asChild:a=!1,isActive:t=!1,variant:s="default",size:r="default",tooltip:o,className:i,...n},d)=>{const l=a?c.Slot:"button",{isMobile:m,state:u}=na(),f=e.jsx(l,{ref:d,"data-sidebar":"menu-button","data-size":r,"data-active":t,className:be(ba({variant:s,size:r}),i),...n});return o?("string"==typeof o&&(o={children:o}),e.jsxs(sa,{children:[e.jsx(ra,{asChild:!0,children:f}),e.jsx(oa,{side:"right",align:"center",hidden:"collapsed"!==u||m,...o})]})):f});ha.displayName="SidebarMenuButton";V.forwardRef(({className:a,asChild:t=!1,showOnHover:s=!1,...r},o)=>{const i=t?c.Slot:"button";return e.jsx(i,{ref:o,"data-sidebar":"menu-action",className:be("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",s&&"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),...r})}).displayName="SidebarMenuAction";V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,"data-sidebar":"menu-badge",className:be("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,...s},r)=>{const o=V.useMemo(()=>`${Math.floor(40*Math.random())+50}%`,[]);return e.jsxs("div",{ref:r,"data-sidebar":"menu-skeleton",className:be("rounded-md h-8 flex gap-2 px-2 items-center",a),...s,children:[t&&e.jsx(aa,{className:"size-4 rounded-md","data-sidebar":"menu-skeleton-icon"}),e.jsx(aa,{className:"h-4 flex-1 max-w-(--skeleton-width)","data-sidebar":"menu-skeleton-text",style:{"--skeleton-width":o}})]})}).displayName="SidebarMenuSkeleton";const Na=V.forwardRef(({className:a,...t},s)=>e.jsx("ul",{ref:s,"data-sidebar":"menu-sub",className:be("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}));Na.displayName="SidebarMenuSub";const va=V.forwardRef(({...a},t)=>e.jsx("li",{ref:t,...a}));va.displayName="SidebarMenuSubItem";const ya=V.forwardRef(({asChild:a=!1,size:t="md",isActive:s,className:r,...o},i)=>{const n=a?c.Slot:"a";return e.jsx(n,{ref:i,"data-sidebar":"menu-sub-button","data-size":t,"data-active":s,className:be("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",r),...o})});ya.displayName="SidebarMenuSubButton";const wa=m.cva("overline-medium peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),ja=V.forwardRef(({className:a,children:t,...s},r)=>e.jsx(J.Root,{ref:r,className:be(wa(),a),...s,children:t}));ja.displayName=J.Root.displayName;const Ca=V.forwardRef(({className:a,...t},s)=>e.jsx("textarea",{className:be("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:s,...t}));Ca.displayName="Textarea";const Ra=V.forwardRef(({className:a,...t},r)=>e.jsx(Q.Root,{ref:r,className:be("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(Q.Indicator,{className:be("flex items-center justify-center text-current"),children:e.jsx(s.Check,{className:"h-4 w-4"})})}));Ra.displayName=Q.Root.displayName;const Sa=V.forwardRef(({className:a,...t},s)=>e.jsx(Y.Root,{className:be("grid gap-2",a),...t,ref:s}));Sa.displayName=Y.Root.displayName;const ka=V.forwardRef(({className:a,...t},r)=>e.jsx(Y.Item,{ref:r,className:be("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(Y.Indicator,{className:"flex items-center justify-center",children:e.jsx(s.Circle,{className:"h-2.5 w-2.5 fill-current text-current"})})}));ka.displayName=Y.Item.displayName;const Ta=V.forwardRef(({className:a,...t},s)=>e.jsx(ee.Root,{className:be("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:s,children:e.jsx(ee.Thumb,{className:be("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")})}));Ta.displayName=ee.Root.displayName;const Ia=V.forwardRef(({className:a,...t},s)=>e.jsxs(ae.Root,{ref:s,className:be("relative flex w-full touch-none select-none items-center",a),...t,children:[e.jsx(ae.Track,{className:"relative h-2 w-full grow overflow-hidden rounded-full bg-secondary",children:e.jsx(ae.Range,{className:"absolute h-full bg-primary"})}),e.jsx(ae.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"})]}));Ia.displayName=ae.Root.displayName;const za=V.forwardRef(({className:a,containerClassName:t,...s},r)=>e.jsx(N.OTPInput,{ref:r,containerClassName:be("flex items-center gap-2 has-disabled:opacity-50",t),className:be("disabled:cursor-not-allowed",a),...s}));za.displayName="InputOTP";const Da=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:be("flex items-center",a),...t}));Da.displayName="InputOTPGroup";const Ma=V.forwardRef(({index:a,className:t,...s},r)=>{const o=V.useContext(N.OTPInputContext),{char:i,hasFakeCaret:n,isActive:d}=o.slots[a];return e.jsxs("div",{ref:r,className:be("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),...s,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"})})]})});Ma.displayName="InputOTPSlot";const _a=V.forwardRef(({...a},t)=>e.jsx("div",{ref:t,role:"separator",...a,children:e.jsx(s.Dot,{})}));_a.displayName="InputOTPSeparator";const Pa=te.Root,Aa=te.Group,Oa=te.Value,La=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(te.Trigger,{ref:o,className:be("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),...r,children:[t,e.jsx(te.Icon,{asChild:!0,children:e.jsx(s.ChevronDown,{className:"h-4 w-4 opacity-50"})})]}));La.displayName=te.Trigger.displayName;const qa=V.forwardRef(({className:a,...t},r)=>e.jsx(te.ScrollUpButton,{ref:r,className:be("flex cursor-default items-center justify-center py-1",a),...t,children:e.jsx(s.ChevronUp,{className:"h-4 w-4"})}));qa.displayName=te.ScrollUpButton.displayName;const Fa=V.forwardRef(({className:a,...t},r)=>e.jsx(te.ScrollDownButton,{ref:r,className:be("flex cursor-default items-center justify-center py-1",a),...t,children:e.jsx(s.ChevronDown,{className:"h-4 w-4"})}));Fa.displayName=te.ScrollDownButton.displayName;const Ba=V.forwardRef(({className:a,children:t,position:s="popper",...r},o)=>e.jsx(te.Portal,{children:e.jsxs(te.Content,{ref:o,className:be("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"===s&&"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:s,...r,children:[e.jsx(qa,{}),e.jsx(te.Viewport,{className:be("p-1","popper"===s&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"),children:t}),e.jsx(Fa,{})]})}));Ba.displayName=te.Content.displayName;const Ga=V.forwardRef(({className:a,...t},s)=>e.jsx(te.Label,{ref:s,className:be("py-1.5 pl-8 pr-2 text-sm font-semibold",a),...t}));Ga.displayName=te.Label.displayName;const Ea=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(te.Item,{ref:o,className:be("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),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(te.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),e.jsx(te.ItemText,{children:t})]}));Ea.displayName=te.Item.displayName;const Va=V.forwardRef(({className:a,...t},s)=>e.jsx(te.Separator,{ref:s,className:be("-mx-1 my-1 h-px bg-muted",a),...t}));Va.displayName=te.Separator.displayName;const Ha=y.FormProvider,$a=V.createContext({}),Ka=()=>{const e=V.useContext($a),a=V.useContext(Ua),{getFieldState:t,formState:s}=y.useFormContext(),r=t(e.name,s);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`,...r}},Ua=V.createContext({}),Xa=V.forwardRef(({className:a,...t},s)=>{const r=V.useId();return e.jsx(Ua.Provider,{value:{id:r},children:e.jsx("div",{ref:s,className:be("space-y-2",a),...t})})});Xa.displayName="FormItem";const Wa=V.forwardRef(({className:a,...t},s)=>{const{error:r,formItemId:o}=Ka();return e.jsx(ja,{ref:s,className:be(r&&"text-destructive",a),htmlFor:o,...t})});Wa.displayName="FormLabel";const Za=V.forwardRef(({...a},t)=>{const{error:s,formItemId:r,formDescriptionId:o,formMessageId:i}=Ka();return e.jsx(c.Slot,{ref:t,id:r,"aria-describedby":s?`${o} ${i}`:`${o}`,"aria-invalid":!!s,...a})});Za.displayName="FormControl";const Ja=V.forwardRef(({className:a,...t},s)=>{const{formDescriptionId:r}=Ka();return e.jsx("p",{ref:s,id:r,className:be("text-sm text-muted-foreground",a),...t})});Ja.displayName="FormDescription";const Qa=V.forwardRef(({className:a,children:t,...s},r)=>{const{error:o,formMessageId:i}=Ka(),n=o?String(null==o?void 0:o.message):t;return n?e.jsx("p",{ref:r,id:i,className:be("text-sm font-medium text-destructive",a),...s,children:n}):null});Qa.displayName="FormMessage";const Ya=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-none 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"}}),et=V.forwardRef(({className:t,options:s,value:r,defaultValue:o,onValueChange:i,...n},d)=>{var l;const{value:c,onValueChange:m}=function({value:e,defaultValue:t,onValueChange:s}){const[r,o]=a.useState(e??t);a.useEffect(()=>{void 0!==e&&o(e)},[e]);const i=a.useCallback(a=>{void 0===e&&o(a),null==s||s(a)},[e,s]);return{value:e??r,onValueChange:i}}({value:r,defaultValue:o??(null==(l=s[0])?void 0:l.value),onValueChange:i});return e.jsx("div",{ref:d,className:be(t),...n,children:s.map(a=>{const t=V.isValidElement(a.label);return e.jsx("button",{className:be("inline-flex items-center justify-center h-8 px-6 rounded-full transition-all focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring",c===a.value?"bg-cyan-700 text-white font-semibold":"text-gray-600 hover:bg-gray-50 font-medium"),onClick:()=>m(a.value),type:"button","data-active":c===a.value,children:t?a.label:e.jsx("span",{className:"body-small font-medium",children:a.label})},a.value)})})});et.displayName="SegmentedControl";const at=et,tt=V.createContext({size:"default",variant:"default"}),st=V.forwardRef(({className:a,variant:t,size:s,children:r,...o},i)=>e.jsx(se.Root,{ref:i,className:be("flex items-center justify-center gap-1",a),...o,children:e.jsx(tt.Provider,{value:{variant:t,size:s},children:r})}));st.displayName=se.Root.displayName;const rt=V.forwardRef(({className:a,children:t,variant:s,size:r,...o},i)=>{const n=V.useContext(tt);return e.jsx(se.Item,{ref:i,className:be(Ya({variant:n.variant||s,size:n.size||r}),a),...o,children:t})});rt.displayName=se.Item.displayName;const ot=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 it=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"}}),nt=V.forwardRef(({className:a,variant:t,...s},r)=>e.jsx("div",{ref:r,role:"alert",className:be(it({variant:t}),a),...s}));nt.displayName="Alert";const dt=V.forwardRef(({className:a,...t},s)=>e.jsx("h5",{ref:s,className:be("mb-1 font-medium leading-none tracking-tight",a),...t}));dt.displayName="AlertTitle";const lt=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:be("text-sm [&_p]:leading-relaxed",a),...t}));lt.displayName="AlertDescription";const ct=re.Root,mt=re.Trigger,ut=re.Portal,ft=V.forwardRef(({className:a,...t},s)=>e.jsx(re.Overlay,{className:be("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:s}));ft.displayName=re.Overlay.displayName;const pt=V.forwardRef(({className:a,...t},s)=>e.jsxs(ut,{children:[e.jsx(ft,{}),e.jsx(re.Content,{ref:s,className:be("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})]}));pt.displayName=re.Content.displayName;const xt=({className:a,...t})=>e.jsx("div",{className:be("flex flex-col space-y-2 text-center sm:text-left",a),...t});xt.displayName="AlertDialogHeader";const gt=({className:a,...t})=>e.jsx("div",{className:be("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",a),...t});gt.displayName="AlertDialogFooter";const bt=V.forwardRef(({className:a,...t},s)=>e.jsx(re.Title,{ref:s,className:be("text-lg font-semibold",a),...t}));bt.displayName=re.Title.displayName;const ht=V.forwardRef(({className:a,...t},s)=>e.jsx(re.Description,{ref:s,className:be("text-sm text-muted-foreground",a),...t}));ht.displayName=re.Description.displayName;const Nt=V.forwardRef(({className:a,...t},s)=>e.jsx(re.Action,{ref:s,className:be(Ge(),a),...t}));Nt.displayName=re.Action.displayName;const vt=V.forwardRef(({className:a,...t},s)=>e.jsx(re.Cancel,{ref:s,className:be(Ge({variant:"general-secondary"}),"mt-2 sm:mt-0",a),...t}));vt.displayName=re.Cancel.displayName;const yt=V.forwardRef(({className:a,...t},s)=>e.jsx(oe.Root,{ref:s,className:be("relative flex h-10 w-10 shrink-0 overflow-hidden rounded-full",a),...t}));yt.displayName=oe.Root.displayName;const wt=V.forwardRef(({className:a,...t},s)=>e.jsx(oe.Image,{ref:s,className:be("aspect-square h-full w-full",a),...t}));wt.displayName=oe.Image.displayName;const jt=V.forwardRef(({className:a,...t},s)=>e.jsx(oe.Fallback,{ref:s,className:be("flex h-full w-full items-center justify-center rounded-full bg-muted",a),...t}));jt.displayName=oe.Fallback.displayName;const Ct=V.forwardRef(({...a},t)=>e.jsx("nav",{ref:t,"aria-label":"breadcrumb",...a}));Ct.displayName="Breadcrumb";const Rt=V.forwardRef(({className:a,...t},s)=>e.jsx("ol",{ref:s,className:be("flex flex-wrap items-center gap-1.5 wrap-break-word text-sm text-muted-foreground sm:gap-2.5",a),...t}));Rt.displayName="BreadcrumbList";const St=V.forwardRef(({className:a,...t},s)=>e.jsx("li",{ref:s,className:be("inline-flex items-center gap-1.5",a),...t}));St.displayName="BreadcrumbItem";const kt=V.forwardRef(({asChild:a,className:t,...s},r)=>{const o=a?c.Slot:"a";return e.jsx(o,{ref:r,className:be("transition-colors hover:text-foreground",t),...s})});kt.displayName="BreadcrumbLink";const Tt=V.forwardRef(({className:a,...t},s)=>e.jsx("span",{ref:s,role:"link","aria-disabled":"true","aria-current":"page",className:be("font-normal text-foreground",a),...t}));Tt.displayName="BreadcrumbPage";const It=({children:a,className:t,...r})=>e.jsx("li",{role:"presentation","aria-hidden":"true",className:be("[&>svg]:size-3.5",t),...r,children:a??e.jsx(s.ChevronRight,{})});It.displayName="BreadcrumbSeparator";const zt=V.forwardRef(({className:a,value:t,...s},r)=>e.jsx(ie.Root,{ref:r,className:be("relative h-4 w-full overflow-hidden rounded-full bg-secondary",a),...s,children:e.jsx(ie.Indicator,{className:"h-full w-full flex-1 bg-primary transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})}));function Dt({className:a,classNames:t,showOutsideDays:r=!0,...o}){return e.jsx(S.DayPicker,{showOutsideDays:r,className:be("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:be(Ge({variant:"general-secondary"}),"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:be(Ge({variant:"general-tertiary"}),"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(s.ChevronLeft,{className:"h-4 w-4"}):e.jsx(s.ChevronRight,{className:"h-4 w-4"})},...o})}zt.displayName=ie.Root.displayName,Dt.displayName="Calendar";const Mt=a.forwardRef(({className:a,...t},s)=>e.jsx(ne.Root,{ref:s,className:be("w-full",a),...t}));Mt.displayName=ne.Root.displayName;const _t=a.forwardRef(({className:a,...t},s)=>e.jsx(ne.List,{ref:s,className:be("inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground",a),...t}));_t.displayName=ne.List.displayName;const Pt=a.forwardRef(({className:a,...t},s)=>e.jsx(ne.Trigger,{ref:s,className:be("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-none 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-sm",a),...t}));Pt.displayName=ne.Trigger.displayName;const At=a.forwardRef(({className:a,...t},s)=>e.jsx(ne.Content,{ref:s,className:be("mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",a),...t}));At.displayName=ne.Content.displayName;const Ot=({className:a,...t})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:be("mx-auto flex w-full justify-center",a),...t});Ot.displayName="Pagination";const Lt=V.forwardRef(({className:a,...t},s)=>e.jsx("ul",{ref:s,className:be("flex flex-row items-center gap-1",a),...t}));Lt.displayName="PaginationContent";const qt=V.forwardRef(({className:a,...t},s)=>e.jsx("li",{ref:s,className:be("",a),...t}));qt.displayName="PaginationItem";const Ft=({className:a,isActive:t,size:s="icon",...r})=>e.jsx("a",{"aria-current":t?"page":void 0,className:be(Ge({variant:t?"general-secondary":"general-tertiary",size:s}),a),...r});Ft.displayName="PaginationLink";const Bt=({className:a,...t})=>e.jsxs(Ft,{"aria-label":"Go to previous page",size:"utility",className:be("gap-1 pl-2.5",a),...t,children:[e.jsx(s.ChevronLeft,{className:"h-4 w-4"}),e.jsx("span",{children:"Previous"})]});Bt.displayName="PaginationPrevious";const Gt=({className:a,...t})=>e.jsxs(Ft,{"aria-label":"Go to next page",size:"utility",className:be("gap-1 pr-2.5",a),...t,children:[e.jsx("span",{children:"Next"}),e.jsx(s.ChevronRight,{className:"h-4 w-4"})]});Gt.displayName="PaginationNext";const Et=({className:a,...t})=>e.jsxs("span",{"aria-hidden":!0,className:be("flex h-9 w-9 items-center justify-center",a),...t,children:[e.jsx(s.MoreHorizontal,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"More pages"})]});Et.displayName="PaginationEllipsis";const Vt=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(de.Root,{ref:r,className:be("relative z-10 flex max-w-max flex-1 items-center justify-center",a),...s,children:[t,e.jsx(Zt,{})]}));Vt.displayName=de.Root.displayName;const Ht=V.forwardRef(({className:a,...t},s)=>e.jsx(de.List,{ref:s,className:be("group flex flex-1 list-none items-center justify-center space-x-1",a),...t}));Ht.displayName=de.List.displayName;const $t=de.Item,Kt=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"),Ut=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(de.Trigger,{ref:o,className:be(Kt(),"group",a),...r,children:[t," ",e.jsx(s.ChevronDown,{className:"relative top-px ml-1 h-3 w-3 transition duration-200 group-data-[state=open]:rotate-180","aria-hidden":"true"})]}));Ut.displayName=de.Trigger.displayName;const Xt=V.forwardRef(({className:a,...t},s)=>e.jsx(de.Content,{ref:s,className:be("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=de.Content.displayName;const Wt=de.Link,Zt=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{className:be("absolute left-0 top-full flex justify-center"),children:e.jsx(de.Viewport,{className:be("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:s,...t})}));Zt.displayName=de.Viewport.displayName;V.forwardRef(({className:a,...t},s)=>e.jsx(de.Indicator,{ref:s,className:be("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=de.Indicator.displayName;const Jt=le.Menu,Qt=le.Sub,Yt=le.RadioGroup,es=V.forwardRef(({className:a,...t},s)=>e.jsx(le.Root,{ref:s,className:be("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",a),...t}));es.displayName=le.Root.displayName;const as=V.forwardRef(({className:a,...t},s)=>e.jsx(le.Trigger,{ref:s,className:be("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}));as.displayName=le.Trigger.displayName;const ts=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(le.SubTrigger,{ref:i,className:be("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:[r,e.jsx(s.ChevronRight,{className:"ml-auto h-4 w-4"})]}));ts.displayName=le.SubTrigger.displayName;const ss=V.forwardRef(({className:a,...t},s)=>e.jsx(le.SubContent,{ref:s,className:be("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}));ss.displayName=le.SubContent.displayName;const rs=V.forwardRef(({className:a,align:t="start",alignOffset:s=-4,sideOffset:r=8,...o},i)=>e.jsx(le.Portal,{children:e.jsx(le.Content,{ref:i,align:t,alignOffset:s,sideOffset:r,className:be("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})}));rs.displayName=le.Content.displayName;const os=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(le.Item,{ref:r,className:be("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),...s}));os.displayName=le.Item.displayName;const is=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(le.CheckboxItem,{ref:i,className:be("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:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(le.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));is.displayName=le.CheckboxItem.displayName;const ns=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(le.RadioItem,{ref:o,className:be("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),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(le.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));ns.displayName=le.RadioItem.displayName;const ds=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(le.Label,{ref:r,className:be("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));ds.displayName=le.Label.displayName;const ls=V.forwardRef(({className:a,...t},s)=>e.jsx(le.Separator,{ref:s,className:be("-mx-1 my-1 h-px bg-muted",a),...t}));ls.displayName=le.Separator.displayName;const cs=({className:a,...t})=>e.jsx("span",{className:be("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});cs.displayname="MenubarShortcut";const ms=ce.Root,us=ce.Trigger,fs=ce.Group,ps=ce.Portal,xs=ce.Sub,gs=ce.RadioGroup,bs=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(ce.SubTrigger,{ref:i,className:be("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:[r,e.jsx(s.ChevronRight,{className:"ml-auto h-4 w-4"})]}));bs.displayName=ce.SubTrigger.displayName;const hs=V.forwardRef(({className:a,...t},s)=>e.jsx(ce.SubContent,{ref:s,className:be("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}));hs.displayName=ce.SubContent.displayName;const Ns=V.forwardRef(({className:a,sideOffset:t=4,...s},r)=>e.jsx(ce.Portal,{children:e.jsx(ce.Content,{ref:r,sideOffset:t,className:be("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),...s})}));Ns.displayName=ce.Content.displayName;const vs=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(ce.Item,{ref:r,className:be("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),...s}));vs.displayName=ce.Item.displayName;const ys=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(ce.CheckboxItem,{ref:i,className:be("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:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(ce.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));ys.displayName=ce.CheckboxItem.displayName;const ws=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(ce.RadioItem,{ref:o,className:be("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),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(ce.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));ws.displayName=ce.RadioItem.displayName;const js=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(ce.Label,{ref:r,className:be("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));js.displayName=ce.Label.displayName;const Cs=V.forwardRef(({className:a,...t},s)=>e.jsx(ce.Separator,{ref:s,className:be("-mx-1 my-1 h-px bg-muted",a),...t}));Cs.displayName=ce.Separator.displayName;const Rs=({className:a,...t})=>e.jsx("span",{className:be("ml-auto text-xs tracking-widest opacity-60",a),...t});function Ss({...a}){return e.jsx(W.Root,{"data-slot":"dialog",...a})}function ks({...a}){return e.jsx(W.Portal,{"data-slot":"dialog-portal",...a})}function Ts({className:a,...t}){return e.jsx(W.Overlay,{"data-slot":"dialog-overlay",className:be("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",a),...t})}function Is({className:a,children:t,showCloseButton:r=!0,...o}){return e.jsxs(ks,{"data-slot":"dialog-portal",children:[e.jsx(Ts,{}),e.jsxs(W.Content,{"data-slot":"dialog-content",className:be("DialogContent overflow-hidden rounded-[40px] gap-4 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 fixed top-[30%] left-[50%] z-50 grid max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] border-12 border-[rgba(255,255,255,0.20)] duration-200 sm:max-w-lg",a),...o,children:[e.jsx("div",{className:"p-6 bg-gray-50",children:t}),r&&e.jsxs(W.Close,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[e.jsx(s.XIcon,{}),e.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}Rs.displayName="DropdownMenuShortcut";const zs=({shouldScaleBackground:a=!0,...t})=>e.jsx(D.Drawer.Root,{shouldScaleBackground:a,...t});zs.displayName="Drawer";const Ds=D.Drawer.Trigger,Ms=D.Drawer.Portal,_s=D.Drawer.Close,Ps=V.forwardRef(({className:a,...t},s)=>e.jsx(D.Drawer.Overlay,{ref:s,className:be("fixed inset-0 z-50 bg-black/80",a),...t}));Ps.displayName=D.Drawer.Overlay.displayName;const As=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(Ms,{children:[e.jsx(Ps,{}),e.jsxs(D.Drawer.Content,{ref:r,className:be("fixed inset-x-0 bottom-0 z-50 mt-24 flex h-auto flex-col rounded-t-[10px] border bg-background",a),...s,children:[e.jsx("div",{className:"mx-auto mt-4 h-2 w-[100px] rounded-full bg-muted"}),t]})]}));As.displayName="DrawerContent";const Os=({className:a,...t})=>e.jsx("div",{className:be("grid gap-1.5 p-4 text-center sm:text-left",a),...t});Os.displayName="DrawerHeader";const Ls=({className:a,...t})=>e.jsx("div",{className:be("mt-auto flex flex-col gap-2 p-4",a),...t});Ls.displayName="DrawerFooter";const qs=V.forwardRef(({className:a,...t},s)=>e.jsx(D.Drawer.Title,{ref:s,className:be("text-lg font-semibold leading-none tracking-tight",a),...t}));qs.displayName=D.Drawer.Title.displayName;const Fs=V.forwardRef(({className:a,...t},s)=>e.jsx(D.Drawer.Description,{ref:s,className:be("text-sm text-muted-foreground",a),...t}));Fs.displayName=D.Drawer.Description.displayName;const Bs=me.Root,Gs=me.Trigger,Es=V.forwardRef(({className:a,align:t="center",sideOffset:s=4,...r},o)=>e.jsx(me.Portal,{children:e.jsx(me.Content,{ref:o,align:t,sideOffset:s,className:be("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),...r})}));Es.displayName=me.Content.displayName;const Vs=ue.Root,Hs=ue.Trigger,$s=V.forwardRef(({className:a,align:t="center",sideOffset:s=4,...r},o)=>e.jsx(ue.Content,{ref:o,align:t,sideOffset:s,className:be("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),...r}));$s.displayName=ue.Content.displayName;const Ks=fe.Root,Us=fe.Trigger,Xs=fe.Group,Ws=fe.Portal,Zs=fe.Sub,Js=fe.RadioGroup,Qs=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(fe.SubTrigger,{ref:i,className:be("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:[r,e.jsx(s.ChevronRight,{className:"ml-auto h-4 w-4"})]}));Qs.displayName=fe.SubTrigger.displayName;const Ys=V.forwardRef(({className:a,...t},s)=>e.jsx(fe.SubContent,{ref:s,className:be("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}));Ys.displayName=fe.SubContent.displayName;const er=V.forwardRef(({className:a,...t},s)=>e.jsx(fe.Portal,{children:e.jsx(fe.Content,{ref:s,className:be("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})}));er.displayName=fe.Content.displayName;const ar=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(fe.Item,{ref:r,className:be("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),...s}));ar.displayName=fe.Item.displayName;const tr=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(fe.CheckboxItem,{ref:i,className:be("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:r,...o,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(fe.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));tr.displayName=fe.CheckboxItem.displayName;const sr=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(fe.RadioItem,{ref:o,className:be("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),...r,children:[e.jsx("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center",children:e.jsx(fe.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));sr.displayName=fe.RadioItem.displayName;const rr=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(fe.Label,{ref:r,className:be("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",a),...s}));rr.displayName=fe.Label.displayName;const or=V.forwardRef(({className:a,...t},s)=>e.jsx(fe.Separator,{ref:s,className:be("-mx-1 my-1 h-px bg-border",a),...t}));or.displayName=fe.Separator.displayName;const ir=({className:a,...t})=>e.jsx("span",{className:be("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});ir.displayName="ContextMenuShortcut";const nr=V.createContext(null);function dr(){const e=V.useContext(nr);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const lr=V.forwardRef(({orientation:a="horizontal",opts:t,setApi:s,plugins:r,className:o,children:i,...n},d)=>{const[l,c]=A({...t,axis:"horizontal"===a?"x":"y"},r),[m,u]=V.useState(!1),[f,p]=V.useState(!1),x=V.useCallback(e=>{e&&(u(e.canScrollPrev()),p(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&&s&&s(c)},[c,s]),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(nr.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:be("relative",o),role:"region","aria-roledescription":"carousel",...n,children:i})})});lr.displayName="Carousel";const cr=V.forwardRef(({className:a,...t},s)=>{const{carouselRef:r,orientation:o}=dr();return e.jsx("div",{ref:r,className:"overflow-hidden",children:e.jsx("div",{ref:s,className:be("flex","horizontal"===o?"-ml-4":"-mt-4 flex-col",a),...t})})});cr.displayName="CarouselContent";const mr=V.forwardRef(({className:a,...t},s)=>{const{orientation:r}=dr();return e.jsx("div",{ref:s,role:"group","aria-roledescription":"slide",className:be("min-w-0 shrink-0 grow-0 basis-full","horizontal"===r?"pl-4":"pt-4",a),...t})});mr.displayName="CarouselItem";const ur=V.forwardRef(({className:a,variant:t="general-secondary",size:r="icon",...o},i)=>{const{orientation:n,scrollPrev:d,canScrollPrev:l}=dr();return e.jsxs(Ee,{ref:i,variant:t,size:r,className:be("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(s.ArrowLeft,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Previous slide"})]})});ur.displayName="CarouselPrevious";const fr=V.forwardRef(({className:a,variant:t="general-secondary",size:r="icon",...o},i)=>{const{orientation:n,scrollNext:d,canScrollNext:l}=dr();return e.jsxs(Ee,{ref:i,variant:t,size:r,className:be("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(s.ArrowRight,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Next slide"})]})});fr.displayName="CarouselNext";const pr=pe.Root,xr=pe.CollapsibleTrigger,gr=pe.CollapsibleContent,br=V.forwardRef(({className:a,...t},s)=>e.jsx(L.Command,{ref:s,className:be("flex h-full w-full flex-col overflow-hidden",a),...t}));br.displayName=L.Command.displayName;const hr=V.forwardRef(({className:a,icon:t=s.Search,...r},o)=>e.jsxs("div",{className:be("group relative flex h-14 w-full sm:min-w-[344px] items-center gap-4 rounded-lg border border-gray-200 bg-white p-4 focus:ring-0 focus:outline-none",a),"cmdk-input-wrapper":"",children:[e.jsx(t,{className:" h-4 w-4 shrink-0 group-focus-within:-translate-x-4 group-focus-within:opacity-0 ease-in-out duration-200"}),e.jsx(L.Command.Input,{ref:o,className:be("text-base w-full ring-0 outline-none group-focus-within:-translate-x-8 ease-in-out duration-200",a),...r})]}));hr.displayName=L.Command.Input.displayName;const Nr=V.forwardRef(({className:a,...t},s)=>e.jsx(L.Command.List,{ref:s,className:be("max-h-[300px] overflow-y-auto overflow-x-hidden bg-gray-700 rounded-b-lg",a),...t}));Nr.displayName=L.Command.List.displayName;const vr=V.forwardRef((a,t)=>e.jsx(L.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...a}));vr.displayName=L.Command.Empty.displayName;const yr=V.forwardRef(({className:a,...t},s)=>e.jsx(L.Command.Group,{ref:s,className:be("group overflow-hidden [&_[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}));yr.displayName=L.Command.Group.displayName;const wr=V.forwardRef(({className:a,...t},s)=>e.jsx(L.Command.Separator,{ref:s,className:be("-mx-1 h-px bg-border",a),...t}));wr.displayName=L.Command.Separator.displayName;const jr=V.forwardRef(({className:a,...t},s)=>e.jsx(L.Command.Item,{ref:s,className:be("relative flex w-full items-center gap-2 cursor-default select-none p-4 text-sm outline-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 bg-gray-700 hover:bg-[rgba(0,0,0,0.2)] text-gray-200",a),...t}));jr.displayName=L.Command.Item.displayName;const Cr=({className:a,...t})=>e.jsx("span",{className:be("ml-auto text-xs tracking-widest text-muted-foreground",a),...t});Cr.displayName="CommandShortcut";const Rr=xe.Provider,Sr=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.Viewport,{ref:s,className:be("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}));Sr.displayName=xe.Viewport.displayName;const kr=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"}}),Tr=V.forwardRef(({className:a,variant:t,...s},r)=>e.jsx(xe.Root,{ref:r,className:be(kr({variant:t}),a),...s}));Tr.displayName=xe.Root.displayName;const Ir=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.Action,{ref:s,className:be("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}));Ir.displayName=xe.Action.displayName;const zr=V.forwardRef(({className:a,...t},r)=>e.jsx(xe.Close,{ref:r,className:be("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(s.X,{className:"h-4 w-4"})}));zr.displayName=xe.Close.displayName;const Dr=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.Title,{ref:s,className:be("text-sm font-semibold",a),...t}));Dr.displayName=xe.Title.displayName;const Mr=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.Description,{ref:s,className:be("text-sm opacity-90",a),...t}));Mr.displayName=xe.Description.displayName;let _r=0;const Pr=new Map,Ar=e=>{if(Pr.has(e))return;const a=setTimeout(()=>{Pr.delete(e),Fr({type:"REMOVE_TOAST",toastId:e})},1e6);Pr.set(e,a)},Or=(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?Ar(t):e.toasts.forEach(e=>{Ar(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)}}},Lr=[];let qr={toasts:[]};function Fr(e){qr=Or(qr,e),Lr.forEach(e=>{e(qr)})}function Br({...e}){const a=(_r=(_r+1)%Number.MAX_SAFE_INTEGER,_r.toString()),t=()=>Fr({type:"DISMISS_TOAST",toastId:a});return Fr({type:"ADD_TOAST",toast:{...e,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>Fr({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function Gr(){const[e,a]=V.useState(qr);return V.useEffect(()=>(Lr.push(a),()=>{const e=Lr.indexOf(a);e>-1&&Lr.splice(e,1)}),[e]),{...e,toast:Br,dismiss:e=>Fr({type:"DISMISS_TOAST",toastId:e})}}const Er={light:"",dark:".dark"},Vr=V.createContext(null);function Hr(){const e=V.useContext(Vr);if(!e)throw new Error("useChart must be used within a <ChartContainer />");return e}const $r=V.forwardRef(({id:a,className:t,children:s,config:r,...o},i)=>{const n=V.useId(),d=`chart-${a||n.replace(/:/g,"")}`;return e.jsx(Vr.Provider,{value:{config:r},children:e.jsxs("div",{"data-chart":d,ref:i,className:be("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(Kr,{id:d,config:r}),e.jsx(ge.ResponsiveContainer,{children:s})]})})});$r.displayName="Chart";const Kr=({id:a,config:t})=>{const s=Object.entries(t).filter(([e,a])=>a.theme||a.color);return s.length?e.jsx("style",{dangerouslySetInnerHTML:{__html:Object.entries(Er).map(([e,t])=>`\n${t} [data-chart=${a}] {\n${s.map(([a,t])=>{var s;const r=(null==(s=t.theme)?void 0:s[e])||t.color;return r?` --color-${a}: ${r};`:null}).join("\n")}\n}\n`).join("\n")}}):null},Ur=ge.Tooltip,Xr=V.forwardRef(({active:a,payload:t,className:s,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:n,labelFormatter:d,labelClassName:l,formatter:c,color:m,nameKey:u,labelKey:f},p)=>{const{config:x}=Hr(),g=V.useMemo(()=>{var a;if(o||!(null==t?void 0:t.length))return null;const[s]=t,r=`${f||s.dataKey||s.name||"value"}`,i=Zr(x,s,r),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:be("font-medium",l),children:d(c,t)}):c?e.jsx("div",{className:be("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"!==r;return e.jsxs("div",{ref:p,className:be("grid min-w-32 items-start gap-1.5 rounded-lg border bg-background px-2.5 py-1.5 text-xs shadow-xl",s),children:[b?null:g,e.jsx("div",{className:"grid gap-1.5",children:t.map((a,t)=>{const s=`${u||a.name||a.dataKey||"value"}`,o=Zr(x,a,s),n=m||a.payload.fill||a.color;return e.jsx("div",{className:be("flex w-full flex-wrap items-stretch gap-2 [&>svg]:h-2.5 [&>svg]:w-2.5 [&>svg]:text-muted-foreground","dot"===r&&"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:be("shrink-0 rounded-[2px] border-border bg-(--color-bg)",{"h-2.5 w-2.5":"dot"===r,"w-1":"line"===r,"w-0 border-[1.5px] border-dashed bg-transparent":"dashed"===r,"my-0.5":b&&"dashed"===r}),style:{"--color-bg":n,"--color-border":n}}),e.jsxs("div",{className:be("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)})})]})});Xr.displayName="ChartTooltip";const Wr=ge.Legend;function Zr(e,a,t){if("object"!=typeof a||null===a)return;const s="payload"in a&&"object"==typeof a.payload&&null!==a.payload?a.payload:void 0;let r=t;return t in a&&"string"==typeof a[t]?r=a[t]:s&&t in s&&"string"==typeof s[t]&&(r=s[t]),r in e?e[r]:e[t]}V.forwardRef(({className:a,hideIcon:t=!1,payload:s,verticalAlign:r="bottom",nameKey:o},i)=>{const{config:n}=Hr();return(null==s?void 0:s.length)?e.jsx("div",{ref:i,className:be("flex items-center justify-center gap-4","top"===r?"pb-3":"pt-3",a),children:s.map(a=>{const s=`${o||a.dataKey||"value"}`,r=Zr(n,a,s);return e.jsxs("div",{className:be("flex items-center gap-1.5 [&>svg]:h-3 [&>svg]:w-3 [&>svg]:text-muted-foreground"),children:[(null==r?void 0:r.icon)&&!t?e.jsx(r.icon,{}):e.jsx("div",{className:"h-2 w-2 shrink-0 rounded-[2px]",style:{backgroundColor:a.color}}),null==r?void 0:r.label]},a.value)})}):null}).displayName="ChartLegend";exports.Accordion=he,exports.AccordionContent=ye,exports.AccordionItem=Ne,exports.AccordionTrigger=ve,exports.Alert=nt,exports.AlertDescription=lt,exports.AlertDialog=ct,exports.AlertDialogAction=Nt,exports.AlertDialogCancel=vt,exports.AlertDialogContent=pt,exports.AlertDialogDescription=ht,exports.AlertDialogFooter=gt,exports.AlertDialogHeader=xt,exports.AlertDialogTitle=bt,exports.AlertDialogTrigger=mt,exports.AlertTitle=dt,exports.AspectRatio=we,exports.Avatar=yt,exports.AvatarFallback=jt,exports.AvatarImage=wt,exports.Badge=function({className:a,variant:t,...s}){return e.jsx("div",{className:be(ot({variant:t}),a),...s})},exports.Breadcrumb=Ct,exports.BreadcrumbItem=St,exports.BreadcrumbLink=kt,exports.BreadcrumbList=Rt,exports.BreadcrumbPage=Tt,exports.BreadcrumbSeparator=It,exports.Button=Ee,exports.Calendar=Dt,exports.Card=je,exports.CardContent=ke,exports.CardDescription=Se,exports.CardFooter=Te,exports.CardHeader=Ce,exports.CardTitle=Re,exports.Carousel=lr,exports.CarouselContent=cr,exports.CarouselItem=mr,exports.CarouselNext=fr,exports.CarouselPrevious=ur,exports.ChartContainer=$r,exports.ChartLegend=Wr,exports.ChartStyle=Kr,exports.ChartTooltip=Ur,exports.ChartTooltipContent=Xr,exports.Checkbox=Ra,exports.Collapsible=pr,exports.CollapsibleContent=gr,exports.CollapsibleTrigger=xr,exports.Command=br,exports.CommandDialog=({children:a,...t})=>e.jsx(Ss,{...t,children:e.jsx(Is,{className:"overflow-hidden p-0 shadow-lg",children:e.jsx(br,{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=vr,exports.CommandGroup=yr,exports.CommandInput=hr,exports.CommandItem=jr,exports.CommandList=Nr,exports.CommandSeparator=wr,exports.CommandShortcut=Cr,exports.ContextMenu=Ks,exports.ContextMenuCheckboxItem=tr,exports.ContextMenuContent=er,exports.ContextMenuGroup=Xs,exports.ContextMenuItem=ar,exports.ContextMenuLabel=rr,exports.ContextMenuPortal=Ws,exports.ContextMenuRadioGroup=Js,exports.ContextMenuRadioItem=sr,exports.ContextMenuSeparator=or,exports.ContextMenuShortcut=ir,exports.ContextMenuSub=Zs,exports.ContextMenuSubContent=Ys,exports.ContextMenuSubTrigger=Qs,exports.ContextMenuTrigger=Us,exports.Dialog=Ss,exports.DialogClose=function({...a}){return e.jsx(W.Close,{"data-slot":"dialog-close",...a})},exports.DialogContent=Is,exports.DialogDescription=function({className:a,...t}){return e.jsx(W.Description,{"data-slot":"dialog-description",className:be("text-muted-foreground text-sm",a),...t})},exports.DialogFooter=function({className:a,...t}){return e.jsx("div",{"data-slot":"dialog-footer",className:be("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",a),...t})},exports.DialogHeader=function({className:a,...t}){return e.jsx("div",{"data-slot":"dialog-header",className:be("flex flex-col gap-2 text-center sm:text-left",a),...t})},exports.DialogTitle=function({className:a,...t}){return e.jsx(W.Title,{"data-slot":"dialog-title",className:be("heading-xxsmall ",a),...t})},exports.DialogTrigger=function({...a}){return e.jsx(W.Trigger,{"data-slot":"dialog-trigger",...a})},exports.Drawer=zs,exports.DrawerClose=_s,exports.DrawerContent=As,exports.DrawerDescription=Fs,exports.DrawerFooter=Ls,exports.DrawerHeader=Os,exports.DrawerTitle=qs,exports.DrawerTrigger=Ds,exports.DropdownMenu=ms,exports.DropdownMenuCheckboxItem=ys,exports.DropdownMenuContent=Ns,exports.DropdownMenuGroup=fs,exports.DropdownMenuItem=vs,exports.DropdownMenuLabel=js,exports.DropdownMenuPortal=ps,exports.DropdownMenuRadioGroup=gs,exports.DropdownMenuRadioItem=ws,exports.DropdownMenuSeparator=Cs,exports.DropdownMenuShortcut=Rs,exports.DropdownMenuSub=xs,exports.DropdownMenuSubContent=hs,exports.DropdownMenuSubTrigger=bs,exports.DropdownMenuTrigger=us,exports.Form=Ha,exports.FormControl=Za,exports.FormDescription=Ja,exports.FormField=({...a})=>e.jsx($a.Provider,{value:{name:a.name},children:e.jsx(y.Controller,{...a})}),exports.FormItem=Xa,exports.FormLabel=Wa,exports.FormMessage=Qa,exports.HoverCard=Vs,exports.HoverCardContent=$s,exports.HoverCardTrigger=Hs,exports.Input=Ve,exports.InputOTP=za,exports.InputOTPGroup=Da,exports.InputOTPSeparator=_a,exports.InputOTPSlot=Ma,exports.Label=ja,exports.Menubar=es,exports.MenubarCheckboxItem=is,exports.MenubarContent=rs,exports.MenubarItem=os,exports.MenubarLabel=ds,exports.MenubarMenu=Jt,exports.MenubarRadioGroup=Yt,exports.MenubarRadioItem=ns,exports.MenubarSeparator=ls,exports.MenubarShortcut=cs,exports.MenubarSub=Qt,exports.MenubarSubContent=ss,exports.MenubarSubTrigger=ts,exports.MenubarTrigger=as,exports.NavigationMenu=Vt,exports.NavigationMenuContent=Xt,exports.NavigationMenuItem=$t,exports.NavigationMenuLink=Wt,exports.NavigationMenuList=Ht,exports.NavigationMenuTrigger=Ut,exports.Pagination=Ot,exports.PaginationContent=Lt,exports.PaginationEllipsis=Et,exports.PaginationItem=qt,exports.PaginationLink=Ft,exports.PaginationNext=Gt,exports.PaginationPrevious=Bt,exports.Popover=Bs,exports.PopoverContent=Es,exports.PopoverTrigger=Gs,exports.Progress=zt,exports.RadioGroup=Sa,exports.RadioGroupItem=ka,exports.ResizableHandle=({withHandle:a,className:t,...r})=>e.jsx(X.PanelResizeHandle,{className:be("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),...r,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(s.GripVertical,{className:"h-2.5 w-2.5"})})}),exports.ResizablePanel=Be,exports.ResizablePanelGroup=({className:a,...t})=>e.jsx(X.PanelGroup,{className:be("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",a),...t}),exports.ScrollArea=ze,exports.ScrollBar=De,exports.Select=Pa,exports.SelectContent=Ba,exports.SelectGroup=Aa,exports.SelectItem=Ea,exports.SelectLabel=Ga,exports.SelectScrollDownButton=Fa,exports.SelectScrollUpButton=qa,exports.SelectSeparator=Va,exports.SelectTrigger=La,exports.SelectValue=Oa,exports.Separator=Ie,exports.Sheet=He,exports.SheetClose=Ke,exports.SheetContent=Ze,exports.SheetDescription=ea,exports.SheetFooter=Qe,exports.SheetHeader=Je,exports.SheetTitle=Ye,exports.SheetTrigger=$e,exports.Sidebar=da,exports.SidebarContent=ma,exports.SidebarFooter=ca,exports.SidebarGroup=ua,exports.SidebarGroupContent=pa,exports.SidebarGroupLabel=fa,exports.SidebarHeader=la,exports.SidebarMenu=xa,exports.SidebarMenuButton=ha,exports.SidebarMenuItem=ga,exports.SidebarMenuSub=Na,exports.SidebarMenuSubButton=ya,exports.SidebarMenuSubItem=va,exports.Skeleton=aa,exports.Slider=Ia,exports.Sonner=({...a})=>{const{theme:t="system"}=B.useTheme();return e.jsx(G.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=Ta,exports.Table=Me,exports.TableBody=Pe,exports.TableCaption=Fe,exports.TableCell=qe,exports.TableFooter=Ae,exports.TableHead=Le,exports.TableHeader=_e,exports.TableRow=Oe,exports.Tabs=Mt,exports.TabsContent=At,exports.TabsList=_t,exports.TabsTrigger=Pt,exports.Textarea=Ca,exports.Toast=Tr,exports.ToastAction=Ir,exports.ToastClose=zr,exports.ToastDescription=Mr,exports.ToastProvider=Rr,exports.ToastTitle=Dr,exports.ToastViewport=Sr,exports.Toaster=function(){const{toasts:a}=Gr();return e.jsxs(Rr,{children:[a.map(function({id:a,title:t,description:s,action:r,...o}){return e.jsxs(Tr,{...o,children:[e.jsxs("div",{className:"grid gap-1",children:[t&&e.jsx(Dr,{children:t}),s&&e.jsx(Mr,{children:s})]}),r,e.jsx(zr,{})]},a)}),e.jsx(Sr,{})]})},exports.Toggle=at,exports.ToggleGroup=st,exports.ToggleGroupItem=rt,exports.Tooltip=sa,exports.TooltipContent=oa,exports.TooltipProvider=ta,exports.TooltipTrigger=ra,exports.badgeVariants=ot,exports.buttonVariants=Ge,exports.navigationMenuTriggerStyle=Kt,exports.useToast=Gr;
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { InputOTP, InputOTPGroup, InputOTPSlot, InputOTPSeparator, } from '../cl
|
|
|
18
18
|
export { Select, SelectGroup, SelectValue, SelectTrigger, SelectContent, SelectLabel, SelectItem, SelectSeparator, SelectScrollUpButton, SelectScrollDownButton, } from '../client/components/ui/select';
|
|
19
19
|
export { Form, FormField, FormItem, FormLabel, FormControl, FormDescription, FormMessage, } from '../client/components/ui/form';
|
|
20
20
|
export { ToggleGroup, ToggleGroupItem, } from '../client/components/ui/toggle-group';
|
|
21
|
-
export { Toggle
|
|
21
|
+
export { Toggle } from '../client/components/ui/toggle';
|
|
22
22
|
export { Badge, badgeVariants } from '../client/components/ui/badge';
|
|
23
23
|
export { Alert, AlertTitle, AlertDescription, } from '../client/components/ui/alert';
|
|
24
24
|
export { AlertDialog, AlertDialogTrigger, AlertDialogContent, AlertDialogHeader, AlertDialogFooter, AlertDialogTitle, AlertDialogDescription, AlertDialogAction, AlertDialogCancel, } from '../client/components/ui/alert-dialog';
|