@syscore/ui-library 1.1.10 → 1.1.11
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/App.tsx +47 -0
- package/client/components/icons/ConceptIcons.tsx +667 -0
- package/client/components/icons/NavAccount.tsx +31 -0
- package/client/components/icons/NavBullet.tsx +19 -0
- package/client/components/icons/NavLogo.tsx +36 -0
- package/client/components/icons/ProviderBadges.tsx +295 -0
- package/client/components/icons/ProviderSeals.tsx +319 -0
- package/client/components/icons/SealHealthSafetyRating.tsx +65 -0
- package/client/components/icons/SealIwbiMember.tsx +86 -0
- package/client/components/icons/SealWell.tsx +84 -0
- package/client/components/icons/SealWellCertification.tsx +138 -0
- package/client/components/icons/SealWellCommunity.tsx +122 -0
- package/client/components/icons/SealWellResidence.tsx +122 -0
- package/client/components/icons/SealWorksWithWell.tsx +140 -0
- package/client/components/icons/UtilityAccordion.tsx +21 -0
- package/client/components/icons/UtilityChevronDown.tsx +36 -0
- package/client/components/icons/UtilityClassification.tsx +45 -0
- package/client/components/icons/UtilityClose.tsx +41 -0
- package/client/components/icons/UtilityDrag.tsx +69 -0
- package/client/components/icons/UtilityEdit.tsx +42 -0
- package/client/components/icons/UtilityOptions.tsx +45 -0
- package/client/components/icons/UtilityPortfolio.tsx +87 -0
- package/client/components/icons/UtilityReset.tsx +41 -0
- package/client/components/icons/UtilityScoring.tsx +43 -0
- package/client/components/icons/UtilitySearch.tsx +38 -0
- package/client/components/icons/UtilitySort.tsx +52 -0
- package/client/components/icons/UtilityText.tsx +34 -0
- package/client/components/icons/WaterMarkWWWProducts.tsx +26 -0
- package/client/components/icons/WaterMarkWellProjects.tsx +30 -0
- package/client/components/icons/WatermarkMemberOrg.tsx +59 -0
- package/client/components/icons/WellSeal.tsx +79 -0
- package/client/components/icons/X.tsx +35 -0
- package/client/hooks/UseTabs.tsx +35 -0
- package/client/hooks/use-mobile.tsx +21 -0
- package/client/hooks/use-segmented-control.ts +42 -0
- package/client/hooks/use-toast.ts +188 -0
- package/client/pages/Index.tsx +88 -0
- package/client/pages/NotFound.tsx +29 -0
- package/client/ui/Accordion/Accordion.stories.tsx +74 -0
- package/client/ui/Alert/Alert.stories.tsx +82 -0
- package/client/ui/AlertDialog/AlertDialog.stories.tsx +106 -0
- package/client/ui/AspectRatio.stories.tsx +78 -0
- package/client/ui/Avatar/Avatar.stories.tsx +94 -0
- package/client/ui/Badge/Badge.stories.tsx +60 -0
- package/client/ui/Breadcrumb/Breadcrumb.stories.tsx +97 -0
- package/client/ui/Button.stories.tsx +429 -0
- package/client/ui/Calendar/Calendar.stories.tsx +99 -0
- package/client/ui/Card.stories.tsx +84 -0
- package/client/ui/Carousel/Carousel.stories.tsx +85 -0
- package/client/ui/Chart/Chart.stories.tsx +58 -0
- package/client/ui/Checkbox/Checkbox.stories.tsx +112 -0
- package/client/ui/Collapsible/Collapsible.stories.tsx +101 -0
- package/client/ui/Colors.stories.tsx +1041 -0
- package/client/ui/Command/Command.stories.tsx +97 -0
- package/client/ui/ContextMenu/ContextMenu.stories.tsx +74 -0
- package/client/ui/Dialog.stories.tsx +69 -0
- package/client/ui/Drawer/Drawer.stories.tsx +87 -0
- package/client/ui/DropdownMenu/DropdownMenu.stories.tsx +139 -0
- package/client/ui/Form/Form.stories.tsx +74 -0
- package/client/ui/HoverCard/HoverCard.stories.tsx +94 -0
- package/client/ui/Icons.stories.tsx +328 -0
- package/client/ui/Input/Input.stories.tsx +69 -0
- package/client/ui/InputOTP/InputOTP.stories.tsx +85 -0
- package/client/ui/Label.stories.tsx +66 -0
- package/client/ui/Menubar/Menubar.stories.tsx +88 -0
- package/client/ui/Navigation.stories.tsx +57 -0
- package/client/ui/NavigationMenu/NavigationMenu.stories.tsx +106 -0
- package/client/ui/Pagination/Pagination.stories.tsx +115 -0
- package/client/ui/Popover/Popover.stories.tsx +99 -0
- package/client/ui/Progress/Progress.stories.tsx +63 -0
- package/client/ui/RadioGroup/RadioGroup.stories.tsx +110 -0
- package/client/ui/Resizable/Resizable.stories.tsx +88 -0
- package/client/ui/ScrollArea/ScrollArea.stories.tsx +64 -0
- package/client/ui/SearchField.stories.tsx +63 -0
- package/client/ui/Select/Select.stories.tsx +111 -0
- package/client/ui/Separator/Separator.stories.tsx +67 -0
- package/client/ui/Sheet/Sheet.stories.tsx +138 -0
- package/client/ui/Sidebar/Sidebar.stories.tsx +92 -0
- package/client/ui/Skeleton/Skeleton.stories.tsx +65 -0
- package/client/ui/Slider/Slider.stories.tsx +101 -0
- package/client/ui/Sonner/Sonner.stories.tsx +48 -0
- package/client/ui/StrategyTable.stories.tsx +138 -0
- package/client/ui/Switch/Switch.stories.tsx +96 -0
- package/client/ui/Table/Table.stories.tsx +135 -0
- package/client/ui/Tabs.stories.tsx +33 -0
- package/client/ui/Tag.stories.tsx +190 -0
- package/client/ui/Textarea/Textarea.stories.tsx +56 -0
- package/client/ui/Toast/Toast.stories.tsx +76 -0
- package/client/ui/Toaster/Toaster.stories.tsx +52 -0
- package/client/ui/Toggle.stories.tsx +248 -0
- package/client/ui/ToggleGroup/ToggleGroup.stories.tsx +88 -0
- package/client/ui/Tooltip.stories.tsx +72 -0
- package/client/ui/Typography.stories.tsx +421 -0
- package/client/ui/WELLDashboard/WELLDashboard.stories.tsx +115 -0
- package/client/ui/WELLDashboard/index.tsx +221 -0
- package/client/vite-env.d.ts +1 -0
- package/dist/ui/index.cjs.js +1 -1
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.es.js +163 -1
- package/package.json +2 -1
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"),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;
|
|
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"),l=require("@radix-ui/react-scroll-area"),d=require("react-resizable-panels"),c=require("@radix-ui/react-slot"),m=require("class-variance-authority"),f=require("@radix-ui/react-dialog"),u=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"),D=require("@radix-ui/react-navigation-menu"),T=require("@radix-ui/react-menubar"),I=require("@radix-ui/react-dropdown-menu"),z=require("vaul"),M=require("@radix-ui/react-popover"),P=require("@radix-ui/react-hover-card"),_=require("@radix-ui/react-context-menu"),A=require("embla-carousel-react"),L=require("@radix-ui/react-collapsible"),F=require("cmdk"),O=require("@radix-ui/react-toast"),E=require("recharts"),B=require("next-themes"),q=require("sonner");function G(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=G(a),H=G(t),$=G(i),W=G(n),K=G(l),U=G(d),X=G(f),Z=G(u),J=G(p),Q=G(x),Y=G(g),ee=G(b),ae=G(h),te=G(v),se=G(w),re=G(j),oe=G(C),ie=G(R),ne=G(k),le=G(D),de=G(T),ce=G(I),me=G(M),fe=G(P),ue=G(_),pe=G(L),xe=G(O),ge=G(E);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 De=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:be("flex items-center body-base text-gray-800",a),...t}));De.displayName="CardFooter";const Te=V.forwardRef(({className:a,orientation:t="horizontal",decorative:s=!0,...r},o)=>e.jsx(W.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}));Te.displayName=W.Root.displayName;const Ie=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(K.Root,{ref:r,className:be("relative overflow-hidden",a),...s,children:[e.jsx(K.Viewport,{className:"h-full w-full rounded-[inherit]",children:t}),e.jsx(ze,{}),e.jsx(K.Corner,{})]}));Ie.displayName=K.Root.displayName;const ze=V.forwardRef(({className:a,orientation:t="vertical",...s},r)=>e.jsx(K.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(K.ScrollAreaThumb,{className:"relative flex-1 rounded-full bg-border"})}));ze.displayName=K.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 Pe=V.forwardRef(({className:a,...t},s)=>e.jsx("thead",{ref:s,className:be("[&_tr]:border-b",a),...t}));Pe.displayName="TableHeader";const _e=V.forwardRef(({className:a,...t},s)=>e.jsx("tbody",{ref:s,className:be("[&_tr:last-child]:border-0",a),...t}));_e.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 Le=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}));Le.displayName="TableRow";const Fe=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}));Fe.displayName="TableHead";const Oe=V.forwardRef(({className:a,...t},s)=>e.jsx("td",{ref:s,className:be("p-4 align-middle [&:has([role=checkbox])]:pr-0",a),...t}));Oe.displayName="TableCell";const Ee=V.forwardRef(({className:a,...t},s)=>e.jsx("caption",{ref:s,className:be("mt-4 text-sm text-muted-foreground",a),...t}));Ee.displayName="TableCaption";const Be=U.Panel;const qe=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"}}),Ge=V.forwardRef(({className:a,variant:t,size:s,children:r,style:o,...i},n)=>{const l="xlarge"===s?"body-large":"large"===s?"body-base":"utility"===s?"body-small":"";return e.jsx("button",{className:be(qe({variant:t,size:s}),a),style:o,ref:n,...i,children:"icon"===s?r:e.jsx("span",{className:be("relative z-10",l),children:r})})});Ge.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=X.Root,$e=X.Trigger,We=X.Close,Ke=X.Portal,Ue=V.forwardRef(({className:a,...t},s)=>e.jsx(X.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}));Ue.displayName=X.Overlay.displayName;const Xe=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(Ke,{children:[e.jsx(Ue,{}),e.jsxs(X.Content,{ref:i,className:be(Xe({side:a}),t),...o,children:[r,e.jsxs(X.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=X.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(X.Title,{ref:s,className:be("text-lg font-semibold text-foreground",a),...t}));Ye.displayName=X.Title.displayName;const ea=V.forwardRef(({className:a,...t},s)=>e.jsx(X.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=X.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},l)=>{const d=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),[f,u]=V.useState(a),p=t??f,x=V.useCallback(e=>{const a="function"==typeof e?e(p):e;s?s(a):u(a),document.cookie=`sidebar:state=${a}; path=/; max-age=604800`},[s,p]),g=V.useCallback(()=>d?m(e=>!e):x(e=>!e),[d,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:d,openMobile:c,setOpenMobile:m,toggleSidebar:g}),[b,p,x,d,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:l,...n,children:i})})})}).displayName="SidebarProvider";const la=V.forwardRef(({side:a="left",variant:t="sidebar",collapsible:s="offcanvas",className:r,children:o,...i},n)=>{const{isMobile:l,state:d,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}):l?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":d,"data-collapsible":"collapsed"===d?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})})]})});la.displayName="Sidebar";V.forwardRef(({className:a,onClick:t,...r},o)=>{const{toggleSidebar:i}=na();return e.jsxs(Ge,{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 da=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}));da.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(Te,{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 fa=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}));fa.displayName="SidebarGroup";const ua=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})});ua.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},l)=>{const d=a?c.Slot:"button",{isMobile:m,state:f}=na(),u=e.jsx(d,{ref:l,"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:u}),e.jsx(oa,{side:"right",align:"center",hidden:"collapsed"!==f||m,...o})]})):u});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 Da=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")})}));Da.displayName=ee.Root.displayName;const Ta=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"})]}));Ta.displayName=ae.Root.displayName;const Ia=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}));Ia.displayName="InputOTP";const za=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:be("flex items-center",a),...t}));za.displayName="InputOTPGroup";const Ma=V.forwardRef(({index:a,className:t,...s},r)=>{const o=V.useContext(N.OTPInputContext),{char:i,hasFakeCaret:n,isActive:l}=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",l&&"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 Pa=V.forwardRef(({...a},t)=>e.jsx("div",{ref:t,role:"separator",...a,children:e.jsx(s.Dot,{})}));Pa.displayName="InputOTPSeparator";const _a=te.Root,Aa=te.Group,La=te.Value,Fa=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"})})]}));Fa.displayName=te.Trigger.displayName;const Oa=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"})}));Oa.displayName=te.ScrollUpButton.displayName;const Ea=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"})}));Ea.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(Oa,{}),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(Ea,{})]})}));Ba.displayName=te.Content.displayName;const qa=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}));qa.displayName=te.Label.displayName;const Ga=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})]}));Ga.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({}),Wa=()=>{const e=V.useContext($a),a=V.useContext(Ka),{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}},Ka=V.createContext({}),Ua=V.forwardRef(({className:a,...t},s)=>{const r=V.useId();return e.jsx(Ka.Provider,{value:{id:r},children:e.jsx("div",{ref:s,className:be("space-y-2",a),...t})})});Ua.displayName="FormItem";const Xa=V.forwardRef(({className:a,...t},s)=>{const{error:r,formItemId:o}=Wa();return e.jsx(ja,{ref:s,className:be(r&&"text-destructive",a),htmlFor:o,...t})});Xa.displayName="FormLabel";const Za=V.forwardRef(({...a},t)=>{const{error:s,formItemId:r,formDescriptionId:o,formMessageId:i}=Wa();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}=Wa();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}=Wa(),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},l)=>{var d;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==(d=s[0])?void 0:d.value),onValueChange:i});return e.jsx("div",{ref:l,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 lt=V.forwardRef(({className:a,...t},s)=>e.jsx("h5",{ref:s,className:be("mb-1 font-medium leading-none tracking-tight",a),...t}));lt.displayName="AlertTitle";const dt=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{ref:s,className:be("text-sm [&_p]:leading-relaxed",a),...t}));dt.displayName="AlertDescription";const ct=re.Root,mt=re.Trigger,ft=re.Portal,ut=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}));ut.displayName=re.Overlay.displayName;const pt=V.forwardRef(({className:a,...t},s)=>e.jsxs(ft,{children:[e.jsx(ut,{}),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(qe(),a),...t}));Nt.displayName=re.Action.displayName;const vt=V.forwardRef(({className:a,...t},s)=>e.jsx(re.Cancel,{ref:s,className:be(qe({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 Dt=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}));Dt.displayName="BreadcrumbPage";const Tt=({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,{})});Tt.displayName="BreadcrumbSeparator";const It=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 zt({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(qe({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(qe({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})}It.displayName=ie.Root.displayName,zt.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 Pt=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}));Pt.displayName=ne.List.displayName;const _t=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}));_t.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 Lt=({className:a,...t})=>e.jsx("nav",{role:"navigation","aria-label":"pagination",className:be("mx-auto flex w-full justify-center",a),...t});Lt.displayName="Pagination";const Ft=V.forwardRef(({className:a,...t},s)=>e.jsx("ul",{ref:s,className:be("flex flex-row items-center gap-1",a),...t}));Ft.displayName="PaginationContent";const Ot=V.forwardRef(({className:a,...t},s)=>e.jsx("li",{ref:s,className:be("",a),...t}));Ot.displayName="PaginationItem";const Et=({className:a,isActive:t,size:s="icon",...r})=>e.jsx("a",{"aria-current":t?"page":void 0,className:be(qe({variant:t?"general-secondary":"general-tertiary",size:s}),a),...r});Et.displayName="PaginationLink";const Bt=({className:a,...t})=>e.jsxs(Et,{"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 qt=({className:a,...t})=>e.jsxs(Et,{"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"})]});qt.displayName="PaginationNext";const Gt=({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"})]});Gt.displayName="PaginationEllipsis";const Vt=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(le.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=le.Root.displayName;const Ht=V.forwardRef(({className:a,...t},s)=>e.jsx(le.List,{ref:s,className:be("group flex flex-1 list-none items-center justify-center space-x-1",a),...t}));Ht.displayName=le.List.displayName;const $t=le.Item,Wt=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"),Kt=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(le.Trigger,{ref:o,className:be(Wt(),"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"})]}));Kt.displayName=le.Trigger.displayName;const Ut=V.forwardRef(({className:a,...t},s)=>e.jsx(le.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}));Ut.displayName=le.Content.displayName;const Xt=le.Link,Zt=V.forwardRef(({className:a,...t},s)=>e.jsx("div",{className:be("absolute left-0 top-full flex justify-center"),children:e.jsx(le.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=le.Viewport.displayName;V.forwardRef(({className:a,...t},s)=>e.jsx(le.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=le.Indicator.displayName;const Jt=de.Menu,Qt=de.Sub,Yt=de.RadioGroup,es=V.forwardRef(({className:a,...t},s)=>e.jsx(de.Root,{ref:s,className:be("flex h-10 items-center space-x-1 rounded-md border bg-background p-1",a),...t}));es.displayName=de.Root.displayName;const as=V.forwardRef(({className:a,...t},s)=>e.jsx(de.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=de.Trigger.displayName;const ts=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(de.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=de.SubTrigger.displayName;const ss=V.forwardRef(({className:a,...t},s)=>e.jsx(de.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=de.SubContent.displayName;const rs=V.forwardRef(({className:a,align:t="start",alignOffset:s=-4,sideOffset:r=8,...o},i)=>e.jsx(de.Portal,{children:e.jsx(de.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=de.Content.displayName;const os=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(de.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=de.Item.displayName;const is=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(de.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(de.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));is.displayName=de.CheckboxItem.displayName;const ns=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(de.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(de.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));ns.displayName=de.RadioItem.displayName;const ls=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(de.Label,{ref:r,className:be("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",a),...s}));ls.displayName=de.Label.displayName;const ds=V.forwardRef(({className:a,...t},s)=>e.jsx(de.Separator,{ref:s,className:be("-mx-1 my-1 h-px bg-muted",a),...t}));ds.displayName=de.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,fs=ce.Trigger,us=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(X.Root,{"data-slot":"dialog",...a})}function ks({...a}){return e.jsx(X.Portal,{"data-slot":"dialog-portal",...a})}function Ds({className:a,...t}){return e.jsx(X.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 Ts({className:a,children:t,showCloseButton:r=!0,...o}){return e.jsxs(ks,{"data-slot":"dialog-portal",children:[e.jsx(Ds,{}),e.jsxs(X.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(X.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 Is=({shouldScaleBackground:a=!0,...t})=>e.jsx(z.Drawer.Root,{shouldScaleBackground:a,...t});Is.displayName="Drawer";const zs=z.Drawer.Trigger,Ms=z.Drawer.Portal,Ps=z.Drawer.Close,_s=V.forwardRef(({className:a,...t},s)=>e.jsx(z.Drawer.Overlay,{ref:s,className:be("fixed inset-0 z-50 bg-black/80",a),...t}));_s.displayName=z.Drawer.Overlay.displayName;const As=V.forwardRef(({className:a,children:t,...s},r)=>e.jsxs(Ms,{children:[e.jsx(_s,{}),e.jsxs(z.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 Ls=({className:a,...t})=>e.jsx("div",{className:be("grid gap-1.5 p-4 text-center sm:text-left",a),...t});Ls.displayName="DrawerHeader";const Fs=({className:a,...t})=>e.jsx("div",{className:be("mt-auto flex flex-col gap-2 p-4",a),...t});Fs.displayName="DrawerFooter";const Os=V.forwardRef(({className:a,...t},s)=>e.jsx(z.Drawer.Title,{ref:s,className:be("text-lg font-semibold leading-none tracking-tight",a),...t}));Os.displayName=z.Drawer.Title.displayName;const Es=V.forwardRef(({className:a,...t},s)=>e.jsx(z.Drawer.Description,{ref:s,className:be("text-sm text-muted-foreground",a),...t}));Es.displayName=z.Drawer.Description.displayName;const Bs=me.Root,qs=me.Trigger,Gs=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})}));Gs.displayName=me.Content.displayName;const Vs=fe.Root,Hs=fe.Trigger,$s=V.forwardRef(({className:a,align:t="center",sideOffset:s=4,...r},o)=>e.jsx(fe.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=fe.Content.displayName;const Ws=ue.Root,Ks=ue.Trigger,Us=ue.Group,Xs=ue.Portal,Zs=ue.Sub,Js=ue.RadioGroup,Qs=V.forwardRef(({className:a,inset:t,children:r,...o},i)=>e.jsxs(ue.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=ue.SubTrigger.displayName;const Ys=V.forwardRef(({className:a,...t},s)=>e.jsx(ue.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=ue.SubContent.displayName;const er=V.forwardRef(({className:a,...t},s)=>e.jsx(ue.Portal,{children:e.jsx(ue.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=ue.Content.displayName;const ar=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(ue.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=ue.Item.displayName;const tr=V.forwardRef(({className:a,children:t,checked:r,...o},i)=>e.jsxs(ue.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(ue.ItemIndicator,{children:e.jsx(s.Check,{className:"h-4 w-4"})})}),t]}));tr.displayName=ue.CheckboxItem.displayName;const sr=V.forwardRef(({className:a,children:t,...r},o)=>e.jsxs(ue.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(ue.ItemIndicator,{children:e.jsx(s.Circle,{className:"h-2 w-2 fill-current"})})}),t]}));sr.displayName=ue.RadioItem.displayName;const rr=V.forwardRef(({className:a,inset:t,...s},r)=>e.jsx(ue.Label,{ref:r,className:be("px-2 py-1.5 text-sm font-semibold text-foreground",t&&"pl-8",a),...s}));rr.displayName=ue.Label.displayName;const or=V.forwardRef(({className:a,...t},s)=>e.jsx(ue.Separator,{ref:s,className:be("-mx-1 my-1 h-px bg-border",a),...t}));or.displayName=ue.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 lr(){const e=V.useContext(nr);if(!e)throw new Error("useCarousel must be used within a <Carousel />");return e}const dr=V.forwardRef(({orientation:a="horizontal",opts:t,setApi:s,plugins:r,className:o,children:i,...n},l)=>{const[d,c]=A({...t,axis:"horizontal"===a?"x":"y"},r),[m,f]=V.useState(!1),[u,p]=V.useState(!1),x=V.useCallback(e=>{e&&(f(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:d,api:c,opts:t,orientation:a||("y"===(null==t?void 0:t.axis)?"vertical":"horizontal"),scrollPrev:g,scrollNext:b,canScrollPrev:m,canScrollNext:u},children:e.jsx("div",{ref:l,onKeyDownCapture:h,className:be("relative",o),role:"region","aria-roledescription":"carousel",...n,children:i})})});dr.displayName="Carousel";const cr=V.forwardRef(({className:a,...t},s)=>{const{carouselRef:r,orientation:o}=lr();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}=lr();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 fr=V.forwardRef(({className:a,variant:t="general-secondary",size:r="icon",...o},i)=>{const{orientation:n,scrollPrev:l,canScrollPrev:d}=lr();return e.jsxs(Ge,{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:!d,onClick:l,...o,children:[e.jsx(s.ArrowLeft,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Previous slide"})]})});fr.displayName="CarouselPrevious";const ur=V.forwardRef(({className:a,variant:t="general-secondary",size:r="icon",...o},i)=>{const{orientation:n,scrollNext:l,canScrollNext:d}=lr();return e.jsxs(Ge,{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:!d,onClick:l,...o,children:[e.jsx(s.ArrowRight,{className:"h-4 w-4"}),e.jsx("span",{className:"sr-only",children:"Next slide"})]})});ur.displayName="CarouselNext";const pr=pe.Root,xr=pe.CollapsibleTrigger,gr=pe.CollapsibleContent,br=V.forwardRef(({className:a,...t},s)=>e.jsx(F.Command,{ref:s,className:be("flex h-full w-full flex-col overflow-hidden",a),...t}));br.displayName=F.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(F.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=F.Command.Input.displayName;const Nr=V.forwardRef(({className:a,...t},s)=>e.jsx(F.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=F.Command.List.displayName;const vr=V.forwardRef((a,t)=>e.jsx(F.Command.Empty,{ref:t,className:"py-6 text-center text-sm",...a}));vr.displayName=F.Command.Empty.displayName;const yr=V.forwardRef(({className:a,...t},s)=>e.jsx(F.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=F.Command.Group.displayName;const wr=V.forwardRef(({className:a,...t},s)=>e.jsx(F.Command.Separator,{ref:s,className:be("-mx-1 h-px bg-border",a),...t}));wr.displayName=F.Command.Separator.displayName;const jr=V.forwardRef(({className:a,...t},s)=>e.jsx(F.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=F.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"}}),Dr=V.forwardRef(({className:a,variant:t,...s},r)=>e.jsx(xe.Root,{ref:r,className:be(kr({variant:t}),a),...s}));Dr.displayName=xe.Root.displayName;const Tr=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}));Tr.displayName=xe.Action.displayName;const Ir=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"})}));Ir.displayName=xe.Close.displayName;const zr=V.forwardRef(({className:a,...t},s)=>e.jsx(xe.Title,{ref:s,className:be("text-sm font-semibold",a),...t}));zr.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 Pr=0;const _r=new Map,Ar=e=>{if(_r.has(e))return;const a=setTimeout(()=>{_r.delete(e),Er({type:"REMOVE_TOAST",toastId:e})},1e6);_r.set(e,a)},Lr=(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)}}},Fr=[];let Or={toasts:[]};function Er(e){Or=Lr(Or,e),Fr.forEach(e=>{e(Or)})}function Br({...e}){const a=(Pr=(Pr+1)%Number.MAX_SAFE_INTEGER,Pr.toString()),t=()=>Er({type:"DISMISS_TOAST",toastId:a});return Er({type:"ADD_TOAST",toast:{...e,id:a,open:!0,onOpenChange:e=>{e||t()}}}),{id:a,dismiss:t,update:e=>Er({type:"UPDATE_TOAST",toast:{...e,id:a}})}}function qr(){const[e,a]=V.useState(Or);return V.useEffect(()=>(Fr.push(a),()=>{const e=Fr.indexOf(a);e>-1&&Fr.splice(e,1)}),[e]),{...e,toast:Br,dismiss:e=>Er({type:"DISMISS_TOAST",toastId:e})}}const Gr={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(),l=`chart-${a||n.replace(/:/g,"")}`;return e.jsx(Vr.Provider,{value:{config:r},children:e.jsxs("div",{"data-chart":l,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(Wr,{id:l,config:r}),e.jsx(ge.ResponsiveContainer,{children:s})]})})});$r.displayName="Chart";const Wr=({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(Gr).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},Kr=ge.Tooltip,Ur=V.forwardRef(({active:a,payload:t,className:s,indicator:r="dot",hideLabel:o=!1,hideIndicator:i=!1,label:n,labelFormatter:l,labelClassName:d,formatter:c,color:m,nameKey:f,labelKey:u},p)=>{const{config:x}=Hr(),g=V.useMemo(()=>{var a;if(o||!(null==t?void 0:t.length))return null;const[s]=t,r=`${u||s.dataKey||s.name||"value"}`,i=Zr(x,s,r),c=u||"string"!=typeof n?null==i?void 0:i.label:(null==(a=x[n])?void 0:a.label)||n;return l?e.jsx("div",{className:be("font-medium",d),children:l(c,t)}):c?e.jsx("div",{className:be("font-medium",d),children:c}):null},[n,l,t,o,d,x,u]);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=`${f||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)})})]})});Ur.displayName="ChartTooltip";const Xr=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";const Jr=[{name:"Platinum",locations:1,color:"#A8A7AE",icon:"platinum"},{name:"Gold",locations:1,color:"#D7C686",icon:"gold"},{name:"Silver",locations:1,color:"#C0C2C4",icon:"silver"},{name:"Bronze",locations:1,color:"#D1A778",icon:"bronze"},{name:"Precertified",locations:1,color:"#44B0BC",icon:"precertified"}],Qr=[{name:"Health-Safety",locations:1,color:"#7FB3DC",percentage:50,icon:"health"},{name:"Equity",locations:1,color:"#41937D",percentage:67,icon:"equity"},{name:"Performance",locations:"Not Pursued",color:"#0B667F",percentage:2,icon:"performance",inactive:!0},{name:"Coworking",locations:"Not Pursued",color:"#AD7DA3",percentage:2,icon:"coworking",inactive:!0}],Yr=V.forwardRef(({certifiedPercentage:a=60,certifications:t=Jr,ratings:r=Qr,className:o},i)=>e.jsxs("div",{ref:i,className:be("flex flex-col gap-4",o),children:[e.jsxs("div",{className:"flex flex-col lg:flex-row gap-4",children:[e.jsxs("div",{className:"flex-1 min-w-0 rounded-md border border-[#DEDEE5] bg-white/0 p-4 shadow-xs",children:[e.jsx("h2",{className:"text-xl font-medium text-[#3D3E46] text-center mb-6",style:{fontFamily:"'DM Sans', sans-serif"},children:"WELL Certified Locations"}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-10",children:[e.jsxs("div",{className:"relative w-60 h-60 shrink-0",children:[e.jsxs("svg",{width:"240",height:"240",viewBox:"0 0 240 240",className:"transform -rotate-90",children:[e.jsx("circle",{cx:"120",cy:"120",r:"120",fill:"#F5F9FB"}),e.jsx("circle",{cx:"120",cy:"120",r:"100",fill:"none",stroke:"#327DB9",strokeWidth:"20",strokeDasharray:a/100*628+" 628",strokeLinecap:"round"}),t.map((s,r)=>{const o=t.length,i=a/100*360/o,n=r*i,l=i*Math.PI*100/180,d=n*Math.PI*100/180;return e.jsx("circle",{cx:"120",cy:"120",r:"100",fill:"none",stroke:s.color,strokeWidth:"20",strokeDasharray:`${l} 628`,strokeDashoffset:-d,opacity:"0.7"},s.name)}),e.jsx("circle",{cx:"120",cy:"120",r:"80",fill:"white",filter:"drop-shadow(0 0 16px rgba(0,0,0,0.04))"})]}),e.jsxs("div",{className:"absolute inset-0 flex flex-col items-center justify-center",children:[e.jsxs("div",{className:"text-5xl font-medium text-[#327DB9]",style:{fontFamily:"'DM Sans', sans-serif"},children:[a,"%"]}),e.jsx("div",{className:"text-sm font-medium text-[#78777F] mt-1",style:{fontFamily:"'DM Sans', sans-serif"},children:"Certified"})]})]}),e.jsx("div",{className:"flex flex-col gap-4 min-w-[160px]",children:t.map(a=>e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("div",{className:"w-10 h-10 rounded-full shrink-0 flex items-center justify-center",style:{backgroundColor:a.color},children:"precertified"===a.icon&&e.jsx("div",{className:"w-9 h-6 bg-[#44B0BC] rounded-sm flex items-center justify-center text-white text-[10px] font-bold",children:"WELL"})}),e.jsxs("div",{className:"flex flex-col gap-0.5 flex-1",children:[e.jsx("div",{className:"text-base font-medium text-[#3D3E46]",style:{fontFamily:"'DM Sans', sans-serif"},children:a.name}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(s.Building2,{size:16,className:"text-[#327DB9]",strokeWidth:1.2}),e.jsxs("span",{className:"text-xs font-medium text-[#327DB9]",style:{fontFamily:"'DM Sans', sans-serif"},children:[a.locations," Location",1!==a.locations?"s":""]})]})]})]},a.name))})]})]}),e.jsxs("div",{className:"flex-1 min-w-0 rounded-md border border-[#DEDEE5] bg-white/0 p-4 shadow-xs",children:[e.jsx("h2",{className:"text-xl font-medium text-[#3D3E46] text-center mb-6",style:{fontFamily:"'DM Sans', sans-serif"},children:"WELL Rated Locations"}),e.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-10",children:[e.jsxs("div",{className:"flex items-end gap-4 h-60 px-4",children:[r.map(a=>e.jsxs("div",{className:"w-10 h-60 relative",children:[e.jsx("div",{className:"absolute inset-0 rounded-t border border-[#DEDEE5] bg-[#F5F9FB]"}),e.jsx("div",{className:"absolute bottom-0 left-0 right-0 rounded-t transition-all",style:{backgroundColor:a.color,height:`${a.percentage}%`}})]},a.name)),e.jsx("div",{className:"w-px h-60 bg-[#DEDEE5]"})]}),e.jsx("div",{className:"flex flex-col gap-4 min-w-[160px]",children:r.map(a=>e.jsxs("div",{className:be("flex items-center gap-2",a.inactive&&"opacity-50"),children:[e.jsx("div",{className:"w-10 h-10 rounded-full shrink-0 flex items-center justify-center",style:{backgroundColor:a.color}}),e.jsxs("div",{className:"flex flex-col gap-0.5 flex-1",children:[e.jsx("div",{className:"text-base font-medium text-[#3D3E46]",style:{fontFamily:"'DM Sans', sans-serif"},children:a.name}),e.jsxs("div",{className:"flex items-center gap-1",children:[e.jsx(s.Building2,{size:16,className:a.inactive?"text-[#78777F]":"text-[#327DB9]",strokeWidth:1.2}),e.jsx("span",{className:be("text-xs font-medium",a.inactive?"text-[#78777F]":"text-[#327DB9]"),style:{fontFamily:"'DM Sans', sans-serif"},children:"number"==typeof a.locations?`${a.locations} Location${1!==a.locations?"s":""}`:a.locations})]})]})]},a.name))})]})]})]}),e.jsxs("p",{className:"text-[10px] leading-3 font-medium text-[#78777F] text-center",style:{fontFamily:"'DM Sans', sans-serif"},children:["Achievement metrics reflect all active program achievements, as of ",(new Date).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})]})]}));Yr.displayName="WELLDashboard";exports.Accordion=he,exports.AccordionContent=ye,exports.AccordionItem=Ne,exports.AccordionTrigger=ve,exports.Alert=nt,exports.AlertDescription=dt,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=lt,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=Dt,exports.BreadcrumbSeparator=Tt,exports.Button=Ge,exports.Calendar=zt,exports.Card=je,exports.CardContent=ke,exports.CardDescription=Se,exports.CardFooter=De,exports.CardHeader=Ce,exports.CardTitle=Re,exports.Carousel=dr,exports.CarouselContent=cr,exports.CarouselItem=mr,exports.CarouselNext=ur,exports.CarouselPrevious=fr,exports.ChartContainer=$r,exports.ChartLegend=Xr,exports.ChartStyle=Wr,exports.ChartTooltip=Kr,exports.ChartTooltipContent=Ur,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(Ts,{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=Ws,exports.ContextMenuCheckboxItem=tr,exports.ContextMenuContent=er,exports.ContextMenuGroup=Us,exports.ContextMenuItem=ar,exports.ContextMenuLabel=rr,exports.ContextMenuPortal=Xs,exports.ContextMenuRadioGroup=Js,exports.ContextMenuRadioItem=sr,exports.ContextMenuSeparator=or,exports.ContextMenuShortcut=ir,exports.ContextMenuSub=Zs,exports.ContextMenuSubContent=Ys,exports.ContextMenuSubTrigger=Qs,exports.ContextMenuTrigger=Ks,exports.Dialog=Ss,exports.DialogClose=function({...a}){return e.jsx(X.Close,{"data-slot":"dialog-close",...a})},exports.DialogContent=Ts,exports.DialogDescription=function({className:a,...t}){return e.jsx(X.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(X.Title,{"data-slot":"dialog-title",className:be("heading-xxsmall ",a),...t})},exports.DialogTrigger=function({...a}){return e.jsx(X.Trigger,{"data-slot":"dialog-trigger",...a})},exports.Drawer=Is,exports.DrawerClose=Ps,exports.DrawerContent=As,exports.DrawerDescription=Es,exports.DrawerFooter=Fs,exports.DrawerHeader=Ls,exports.DrawerTitle=Os,exports.DrawerTrigger=zs,exports.DropdownMenu=ms,exports.DropdownMenuCheckboxItem=ys,exports.DropdownMenuContent=Ns,exports.DropdownMenuGroup=us,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=fs,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=Ua,exports.FormLabel=Xa,exports.FormMessage=Qa,exports.HoverCard=Vs,exports.HoverCardContent=$s,exports.HoverCardTrigger=Hs,exports.Input=Ve,exports.InputOTP=Ia,exports.InputOTPGroup=za,exports.InputOTPSeparator=Pa,exports.InputOTPSlot=Ma,exports.Label=ja,exports.Menubar=es,exports.MenubarCheckboxItem=is,exports.MenubarContent=rs,exports.MenubarItem=os,exports.MenubarLabel=ls,exports.MenubarMenu=Jt,exports.MenubarRadioGroup=Yt,exports.MenubarRadioItem=ns,exports.MenubarSeparator=ds,exports.MenubarShortcut=cs,exports.MenubarSub=Qt,exports.MenubarSubContent=ss,exports.MenubarSubTrigger=ts,exports.MenubarTrigger=as,exports.NavigationMenu=Vt,exports.NavigationMenuContent=Ut,exports.NavigationMenuItem=$t,exports.NavigationMenuLink=Xt,exports.NavigationMenuList=Ht,exports.NavigationMenuTrigger=Kt,exports.Pagination=Lt,exports.PaginationContent=Ft,exports.PaginationEllipsis=Gt,exports.PaginationItem=Ot,exports.PaginationLink=Et,exports.PaginationNext=qt,exports.PaginationPrevious=Bt,exports.Popover=Bs,exports.PopoverContent=Gs,exports.PopoverTrigger=qs,exports.Progress=It,exports.RadioGroup=Sa,exports.RadioGroupItem=ka,exports.ResizableHandle=({withHandle:a,className:t,...r})=>e.jsx(U.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(U.PanelGroup,{className:be("flex h-full w-full data-[panel-group-direction=vertical]:flex-col",a),...t}),exports.ScrollArea=Ie,exports.ScrollBar=ze,exports.Select=_a,exports.SelectContent=Ba,exports.SelectGroup=Aa,exports.SelectItem=Ga,exports.SelectLabel=qa,exports.SelectScrollDownButton=Ea,exports.SelectScrollUpButton=Oa,exports.SelectSeparator=Va,exports.SelectTrigger=Fa,exports.SelectValue=La,exports.Separator=Te,exports.Sheet=He,exports.SheetClose=We,exports.SheetContent=Ze,exports.SheetDescription=ea,exports.SheetFooter=Qe,exports.SheetHeader=Je,exports.SheetTitle=Ye,exports.SheetTrigger=$e,exports.Sidebar=la,exports.SidebarContent=ma,exports.SidebarFooter=ca,exports.SidebarGroup=fa,exports.SidebarGroupContent=pa,exports.SidebarGroupLabel=ua,exports.SidebarHeader=da,exports.SidebarMenu=xa,exports.SidebarMenuButton=ha,exports.SidebarMenuItem=ga,exports.SidebarMenuSub=Na,exports.SidebarMenuSubButton=ya,exports.SidebarMenuSubItem=va,exports.Skeleton=aa,exports.Slider=Ta,exports.Sonner=({...a})=>{const{theme:t="system"}=B.useTheme();return e.jsx(q.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=Da,exports.Table=Me,exports.TableBody=_e,exports.TableCaption=Ee,exports.TableCell=Oe,exports.TableFooter=Ae,exports.TableHead=Fe,exports.TableHeader=Pe,exports.TableRow=Le,exports.Tabs=Mt,exports.TabsContent=At,exports.TabsList=Pt,exports.TabsTrigger=_t,exports.Textarea=Ca,exports.Toast=Dr,exports.ToastAction=Tr,exports.ToastClose=Ir,exports.ToastDescription=Mr,exports.ToastProvider=Rr,exports.ToastTitle=zr,exports.ToastViewport=Sr,exports.Toaster=function(){const{toasts:a}=qr();return e.jsxs(Rr,{children:[a.map(function({id:a,title:t,description:s,action:r,...o}){return e.jsxs(Dr,{...o,children:[e.jsxs("div",{className:"grid gap-1",children:[t&&e.jsx(zr,{children:t}),s&&e.jsx(Mr,{children:s})]}),r,e.jsx(Ir,{})]},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.WELLDashboard=Yr,exports.badgeVariants=ot,exports.buttonVariants=qe,exports.navigationMenuTriggerStyle=Wt,exports.useToast=qr;
|
package/dist/ui/index.d.ts
CHANGED
|
@@ -46,4 +46,5 @@ export { Toast, ToastAction, ToastClose, ToastDescription, ToastProvider, ToastT
|
|
|
46
46
|
export { useToast } from '../client/hooks/use-toast';
|
|
47
47
|
export { Toaster } from '../client/components/ui/toaster';
|
|
48
48
|
export { ChartContainer, ChartStyle, ChartLegend, ChartTooltip, ChartTooltipContent, } from '../client/components/ui/chart';
|
|
49
|
+
export { WELLDashboard, type WELLDashboardProps, } from '../client/ui/WELLDashboard';
|
|
49
50
|
export { Toaster as Sonner } from '../client/components/ui/sonner';
|