@conscia-labs/design-system 1.2.1 → 1.2.2
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/AGENT_GUIDE.md +4 -0
- package/README.md +13 -1
- package/agent-manifest.json +1 -1
- package/dist/{chunk-7G2ZADDF.js → chunk-3ZP2GPMY.js} +2 -2
- package/dist/{chunk-GFQB3ALE.js → chunk-6ZV6GK3H.js} +2 -2
- package/dist/{chunk-EYJVPAQG.js → chunk-HXGU6OYR.js} +2 -2
- package/dist/{chunk-EYJVPAQG.js.map → chunk-HXGU6OYR.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/patterns/index.js +1 -1
- package/dist/primitives/index.d.ts +4 -2
- package/dist/primitives/index.js +1 -1
- package/dist/standalone.css +1 -1
- package/package.json +1 -1
- /package/dist/{chunk-7G2ZADDF.js.map → chunk-3ZP2GPMY.js.map} +0 -0
- /package/dist/{chunk-GFQB3ALE.js.map → chunk-6ZV6GK3H.js.map} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as he,b as xe,c as Ke,d as Fe,e as Ue,f as Ye}from"./chunk-QXDSBJYQ.js";import{$a as rt,$b as Lt,Ac as Ut,Bb as ft,Bc as Yt,Cb as vt,Db as ht,Eb as xt,K as Ne,Kb as Rt,L as qe,Lb as Nt,M as je,Mb as yt,N as Qe,Nb as wt,Ob as St,P as ye,Pb as Ct,Q as Xe,R as Je,S as Ze,Sb as Pt,Tb as kt,Ub as Tt,Vb as Dt,Wa as et,Wb as It,Xb as At,Ya as tt,Yb as Et,Za as at,Zb as Mt,_a as ot,ac as Bt,bc as Ot,cc as zt,eb as re,g as Re,gb as nt,hb as st,hc as Ht,i as z,j as Q,lb as it,mb as lt,nb as dt,nc as me,ob as ct,oc as Vt,pb as pt,pc as _t,qc as Wt,rb as ut,sb as mt,sc as $t,tb as bt,tc as Gt,wb as gt,xc as Kt,yc as Ft}from"./chunk-EYJVPAQG.js";import{a as n}from"./chunk-RFPKBIDP.js";import{ChevronLeft as ha,ChevronRight as xa}from"lucide-react";import{jsx as A,jsxs as X}from"react/jsx-runtime";function qt({currentPage:e,pageCount:t,totalLabel:a,onPrevious:o,onNext:r,onPageChange:s,pageSize:l,pageSizeOptions:c=[10,25,50],onPageSizeChange:p,className:m,...f}){return X("div",{"data-slot":"pagination-controls",className:n("flex flex-col gap-2 border-t border-border-subtle px-5 py-3 text-sm text-text-supporting sm:flex-row sm:items-center sm:justify-between",m),...f,children:[X("div",{className:"flex flex-wrap items-center gap-3",children:[A("span",{children:a}),l&&p?X("div",{className:"flex items-center gap-2",children:[A("span",{className:"text-[var(--ds-metadata)]",children:"Rows"}),X(et,{value:String(l),onValueChange:d=>p(Number(d)),children:[A(at,{size:"sm",className:"w-[4.5rem]","aria-label":"Rows per page",children:A(tt,{})}),A(ot,{children:c.map(d=>A(rt,{value:String(d),children:d},d))})]})]}):null]}),X("div",{className:"flex items-center gap-1",children:[A(Q,{type:"button",variant:"outline",size:"sm",className:"size-8","aria-label":"Previous page",onClick:o??(()=>s?.(e-1)),disabled:e<=1,children:A(ha,{})}),s?Ra(e,t).map((d,h)=>d==="ellipsis"?A("span",{className:"flex size-8 items-center justify-center text-text-supporting","aria-hidden":"true",children:"\u2026"},`ellipsis-${h}`):A(Q,{type:"button",variant:d===e?"secondary":"ghost",size:"sm",className:"size-8","aria-label":`Page ${d}`,"aria-current":d===e?"page":void 0,onClick:()=>s(d),children:d},d)):X("span",{className:"px-2 text-[var(--ds-metadata)]",children:["Page ",e," of ",t]}),A(Q,{type:"button",variant:"outline",size:"sm",className:"size-8","aria-label":"Next page",onClick:r??(()=>s?.(e+1)),disabled:e>=t,children:A(xa,{})})]})]})}function Ra(e,t){if(t<=7)return Array.from({length:t},(s,l)=>l+1);let a=new Set([1,t,e-1,e,e+1]),o=Array.from(a).filter(s=>s>0&&s<=t).sort((s,l)=>s-l),r=[];return o.forEach((s,l)=>{l&&s-o[l-1]>1&&r.push("ellipsis"),r.push(s)}),r}import*as Ce from"react";import{flexRender as we,getCoreRowModel as Na,getPaginationRowModel as ya,getSortedRowModel as wa,useReactTable as Sa}from"@tanstack/react-table";import{ArrowDown as Ca,ArrowUp as Pa,ChevronsUpDown as ka}from"lucide-react";import{Fragment as Ta,jsx as C,jsxs as Se}from"react/jsx-runtime";function jt({data:e,columns:t,getRowId:a,getRowLabel:o,onRowClick:r,isRowClickable:s,rowActions:l,selectedIds:c,onSelectionChange:p,sorting:m,onSortingChange:f,manualSorting:d=!1,pagination:h,onPaginationChange:i,manualPagination:N=!1,pageCount:k,rowCount:P,pageSizeOptions:D,totalLabel:x,mobileRow:L,caption:U,empty:ce,className:R}){let O=Ce.useMemo(()=>{let b={};return c?.forEach(u=>{b[u]=!0}),b},[c]),ve=Ce.useMemo(()=>{let b=[];return p&&b.push({id:"select",enableSorting:!1,header:({table:u})=>C(Ne,{"aria-label":"Select all rows on this page",checked:u.getIsAllPageRowsSelected(),indeterminate:u.getIsSomePageRowsSelected()&&!u.getIsAllPageRowsSelected(),onCheckedChange:w=>u.toggleAllPageRowsSelected(!!w)}),cell:({row:u})=>C(Ne,{"aria-label":`Select ${o?.(u.original)??u.id}`,checked:u.getIsSelected(),onCheckedChange:w=>u.toggleSelected(!!w),onClick:w=>w.stopPropagation()}),meta:{className:"w-10"}}),b.push(...t.map(u=>({id:u.id,...u.accessor?{accessorFn:u.accessor}:{},enableSorting:u.sortable??!1,header:()=>u.header,cell:({row:w})=>u.cell(w.original),meta:{className:u.className,label:typeof u.header=="string"?u.header:u.id}}))),l&&b.push({id:"actions",enableSorting:!1,header:"Actions",cell:({row:u})=>C("div",{onClick:w=>w.stopPropagation(),onKeyDown:w=>w.stopPropagation(),children:l(u.original)}),meta:{className:"w-12 text-right"}}),b},[t,o,p,l]),oe=Sa({data:e,columns:ve,getRowId:b=>a(b),state:{rowSelection:O,...m?{sorting:m}:{},...h?{pagination:h}:{}},enableRowSelection:!!p,onRowSelectionChange:b=>{if(!p)return;let u=typeof b=="function"?b(O):b;p(new Set(Object.keys(u).filter(w=>u[w])))},onSortingChange:b=>{f&&f(typeof b=="function"?b(m??[]):b)},onPaginationChange:b=>{!i||!h||i(typeof b=="function"?b(h):b)},manualSorting:d,manualPagination:N,pageCount:k,rowCount:P,getCoreRowModel:Na(),getSortedRowModel:d?void 0:wa(),getPaginationRowModel:h&&!N?ya():void 0});if(!e.length&&ce)return C(Ta,{children:ce});let Ge=oe.getRowModel().rows,va=!!(h&&i);return Se("div",{"data-slot":"data-table",className:n("bg-canvas",R),children:[C("div",{className:L?"hidden md:block":void 0,children:Se(qe,{children:[U?C(Ze,{children:U}):null,C(je,{children:oe.getHeaderGroups().map(b=>C(ye,{children:b.headers.map(u=>{let w=u.column.columnDef.meta,pe=u.column.getCanSort(),ue=u.column.getIsSorted();return C(Xe,{className:w?.className,"aria-sort":pe?ue==="asc"?"ascending":ue==="desc"?"descending":"none":void 0,children:u.isPlaceholder?null:pe?Se(z,{type:"button",variant:"ghost",size:"sm",className:"-ml-2 h-8 gap-1.5 px-2 text-[var(--ds-metadata)] font-semibold uppercase text-text-supporting hover:text-text-primary",onClick:u.column.getToggleSortingHandler(),"aria-label":`Sort by ${w?.label??u.column.id}`,children:[we(u.column.columnDef.header,u.getContext()),ue==="asc"?C(Pa,{className:"size-3.5"}):ue==="desc"?C(Ca,{className:"size-3.5"}):C(ka,{className:"size-3.5 opacity-60"})]}):we(u.column.columnDef.header,u.getContext())},u.id)})},b.id))}),C(Qe,{children:Ge.map(b=>{let u=!!(r&&(s?.(b.original)??!0));return C(ye,{"data-selected":b.getIsSelected()?"true":void 0,"aria-selected":b.getIsSelected()?"true":void 0,tabIndex:u?0:void 0,"aria-label":u?o?.(b.original)??b.id:void 0,className:n(u&&"cursor-pointer outline-none focus-visible:ring-[3px] focus-visible:ring-focus/45"),onClick:()=>{u&&r?.(b.original)},onKeyDown:w=>{!u||w.key!=="Enter"&&w.key!==" "||(w.preventDefault(),r?.(b.original))},children:b.getVisibleCells().map(w=>{let pe=w.column.columnDef.meta;return C(Je,{className:pe?.className,children:we(w.column.columnDef.cell,w.getContext())},w.id)})},b.id)})})]})}),L?C("div",{className:"divide-y divide-border-subtle md:hidden",role:"list",children:Ge.map(b=>C("div",{role:"listitem",children:L(b.original)},b.id))}):null,va?C(qt,{currentPage:h.pageIndex+1,pageCount:Math.max(1,oe.getPageCount()),pageSize:h.pageSize,pageSizeOptions:D,totalLabel:x,onPageChange:b=>oe.setPageIndex(b-1),onPageSizeChange:b=>oe.setPageSize(b)}):null]})}import{jsx as Da}from"react/jsx-runtime";function To({items:e,columns:t,getRowId:a,selectedIds:o,onSelectionChange:r,onRowClick:s,getRowLabel:l,rowActions:c,caption:p,className:m}){return Da(jt,{data:e,columns:t.map(f=>({...f,id:f.key})),getRowId:a,selectedIds:o,onSelectionChange:r,onRowClick:s,getRowLabel:l,rowActions:c,caption:p,className:m})}import*as B from"react";import{SearchIcon as Ia}from"lucide-react";import{jsx as T,jsxs as W}from"react/jsx-runtime";function Bo({className:e,closeOnSelect:t=!0,defaultOpen:a=!1,description:o,emptyMessage:r="No commands found.",items:s,onOpenChange:l,onSelect:c,open:p,placeholder:m="Search commands...",title:f="Command menu",trigger:d,...h}){let[i,N]=B.useState(""),[k,P]=B.useState(a),D=p!==void 0,x=p??k,L=B.useMemo(()=>{let R=i.trim().toLocaleLowerCase();return R?s.filter(O=>[O.label,...O.keywords??[]].some(ve=>ve.toLocaleLowerCase().includes(R))):s},[s,i]),U=B.useCallback(R=>{D||P(R),R&&N(""),l?.(R)},[D,l]),ce=B.useCallback(R=>{c(R),t&&U(!1)},[t,U,c]);return T("div",{"data-slot":"command-palette",className:n("contents",e),...h,children:W(nt,{open:x,onOpenChange:U,children:[d?T(st,{render:d}):null,W(it,{showCloseButton:!1,size:"small","aria-label":typeof f=="string"?void 0:"Command menu",className:"max-w-xl gap-0 p-0",children:[W(lt,{className:"sr-only",children:[T(dt,{children:f}),o?T(ct,{children:o}):null]}),T(pt,{className:"overflow-hidden",children:W(re.Root,{items:L,filter:()=>!0,open:!0,autoHighlight:!0,inputValue:i,onInputValueChange:N,onValueChange:R=>{R&&ce(R)},itemToStringLabel:R=>[R.label,...R.keywords??[]].join(" "),itemToStringValue:R=>R.id,children:[W("div",{className:"flex items-center gap-2 border-b border-border-subtle px-4",children:[T(Ia,{"aria-hidden":"true",className:"size-4 shrink-0 text-text-supporting"}),T(re.Input,{"aria-label":"Search commands",autoFocus:!0,className:"ds-type-control h-12 min-w-0 flex-1 bg-transparent outline-none placeholder:text-text-supporting",onKeyDown:R=>{R.key==="Escape"&&(R.preventDefault(),U(!1))},placeholder:m})]}),L.length===0?T("div",{role:"status",className:"px-3 py-8 text-center text-sm text-text-supporting",children:r}):null,T(re.List,{"aria-label":"Commands",className:"max-h-[min(24rem,calc(100vh-10rem))] overflow-y-auto p-2 outline-none",children:L.map((R,O)=>W(B.Fragment,{children:[R.group&&(O===0||L[O-1]?.group!==R.group)?T("div",{role:"presentation",className:"px-3 pb-1 pt-3 text-xs font-semibold uppercase tracking-wide text-text-supporting first:pt-1",children:R.group}):null,W(re.Item,{index:O,value:R,disabled:R.disabled,className:"data-highlighted:bg-surface-muted data-highlighted:text-text-primary relative flex min-w-0 items-start gap-3 rounded-md px-3 py-2.5 text-left outline-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[R.icon?T("span",{className:"mt-0.5 flex size-4 shrink-0 items-center justify-center text-text-supporting",children:R.icon}):null,W("span",{className:"min-w-0 flex-1",children:[T("span",{className:"block truncate text-sm font-medium",children:R.label}),R.description?T("span",{className:"mt-0.5 block truncate text-xs text-text-supporting",children:R.description}):null]}),R.shortcut?T("span",{className:"shrink-0 text-xs text-text-supporting",children:R.shortcut}):null]})]},R.id))})]})})]})]})})}import{jsx as J,jsxs as Pe}from"react/jsx-runtime";function Vo({className:e,...t}){return J("section",{"data-slot":"data-panel",className:n("min-w-0 overflow-hidden rounded-[var(--ds-radius-surface)] border border-border-default bg-surface text-text-primary shadow-[var(--ds-shadow-raised)]",e),...t})}function _o({title:e,description:t,status:a,actions:o,className:r,...s}){return Pe("header",{"data-slot":"data-panel-header",className:n("flex min-w-0 items-start justify-between gap-4 border-b border-border-subtle px-[var(--ds-surface-padding)] py-3",r),...s,children:[Pe("div",{className:"min-w-0",children:[Pe("div",{className:"flex flex-wrap items-center gap-2",children:[J("h2",{className:"ds-type-card-title",children:e}),a]}),t?J("p",{className:"ds-type-metadata mt-0.5 text-text-supporting",children:t}):null]}),o?J("div",{className:"shrink-0",children:o}):null]})}function Wo({padded:e=!1,className:t,...a}){return J("div",{"data-slot":"data-panel-content","data-padded":e?"true":void 0,className:n(e&&"p-[var(--ds-surface-padding)]",t),...a})}function $o({className:e,...t}){return J("footer",{"data-slot":"data-panel-footer",className:n("border-t border-border-subtle px-[var(--ds-surface-padding)] py-3 ds-type-metadata text-text-supporting",e),...t})}import{ArrowLeft as Aa}from"lucide-react";import{jsx as Ea,jsxs as Ma}from"react/jsx-runtime";function Yo({label:e,className:t,...a}){return Ma("a",{"data-slot":"detail-back-link",className:n("inline-flex h-8 w-fit items-center gap-2 rounded-md px-2 text-sm font-medium text-text-supporting outline-none transition-colors hover:bg-surface-muted hover:text-text-primary focus-visible:ring-[3px] focus-visible:ring-focus/45",t),...a,children:[Ea(Aa,{className:"size-4","aria-hidden":"true"}),e]})}import{jsx as Qt,jsxs as La}from"react/jsx-runtime";function Jo({children:e,clearAllLabel:t="Clear all",className:a,onClearAll:o,...r}){return La("div",{"data-slot":"filter-bar",className:n("flex min-w-0 flex-wrap items-center gap-2 rounded-[var(--ds-radius-control)] border border-border-subtle bg-surface-muted/60 px-2 py-1.5",a),role:"group","aria-label":r["aria-label"]??"Active filters",...r,children:[Qt("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:e}),o?Qt(z,{type:"button",variant:"ghost",size:"sm",onClick:o,className:"shrink-0",children:t}):null]})}import*as v from"react";import{PanelLeftIcon as Ba,Search as Xt,X as Oa}from"lucide-react";import{Fragment as Ka,jsx as g,jsxs as E}from"react/jsx-runtime";var ke="conscia_sidebar_state",za=3600*24*30,Ha="b",De="conscia-sidebar-open:v1",Te="conscia-sidebar-state-change";function Jt(e){return e==="true"?!0:e==="false"?!1:null}function Va(){if(typeof document>"u")return null;try{let a=window.localStorage.getItem(De),o=Jt(a);if(o!==null)return o}catch{}let e=document.cookie.split("; ").find(a=>a.startsWith(`${ke}=`));if(!e)return null;let t=e.slice(ke.length+1);return Jt(t)}function Zt(e){try{window.localStorage.setItem(De,String(e))}catch{}document.cookie=`${ke}=${e}; path=/; max-age=${za}`,window.dispatchEvent(new Event(Te))}function _a(e){function t(a){a.key===De&&e()}return window.addEventListener(Te,e),window.addEventListener("storage",t),()=>{window.removeEventListener(Te,e),window.removeEventListener("storage",t)}}var ea=v.createContext(null);function ne(){let e=v.useContext(ea);if(!e)throw new Error("useAppShell must be used within AppShell.");return e}function Wa(e){let[t,a]=v.useState(!1);return v.useEffect(()=>{let o=window.matchMedia(e),r=()=>a(o.matches);return r(),o.addEventListener("change",r),()=>o.removeEventListener("change",r)},[e]),t}function $a(){let e=v.useRef(null),t=v.useCallback(r=>{let s=e.current;if(!s)return()=>{};let l=()=>r();s.addEventListener("scroll",l,{passive:!0});let c=typeof ResizeObserver>"u"?null:new ResizeObserver(r);return c?.observe(s),window.addEventListener("resize",r),()=>{s.removeEventListener("scroll",l),c?.disconnect(),window.removeEventListener("resize",r)}},[]),a=v.useCallback(()=>{let r=e.current;if(!r)return 0;let s=r.scrollTop>1,l=r.scrollHeight-r.clientHeight-r.scrollTop>1;return(s?1:0)|(l?2:0)},[]),o=v.useSyncExternalStore(t,a,()=>0);return{contentRef:e,hasScrollBefore:!!(o&1),hasScrollAfter:!!(o&2)}}function pr({defaultSidebarOpen:e=!0,headerLayout:t="split",children:a,className:o,style:r,...s}){let l=Wa("(max-width: 1023px)"),[c,p]=v.useState(e),[m,f]=v.useState("left"),[d,h]=v.useState(!1);v.useEffect(()=>{function P(){p(Va()??e)}let D=_a(P);return queueMicrotask(P),D},[e]);let i=v.useCallback(P=>{Zt(P)},[]),N=v.useCallback(()=>{if(l){h(P=>!P);return}Zt(!c)},[l,c]);v.useEffect(()=>{let P=D=>{D.key.toLowerCase()===Ha&&(D.metaKey||D.ctrlKey)&&(D.preventDefault(),N())};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[N]);let k=v.useMemo(()=>({sidebarState:c?"expanded":"collapsed",sidebarSide:m,setSidebarSide:f,sidebarOpen:c,setSidebarOpen:i,mobileOpen:d,setMobileOpen:h,isMobile:l,toggleSidebar:N}),[l,d,i,c,m,N]);return g(ea.Provider,{value:k,children:g(Rt,{delayDuration:120,children:g("div",{"data-slot":"app-shell","data-sidebar-state":c?"expanded":"collapsed","data-sidebar-side":m,"data-header-layout":t,suppressHydrationWarning:!0,className:n("group/shell min-h-svh bg-canvas text-text-primary","[--ds-app-sidebar-width:var(--ds-sidebar-width)] [--ds-app-sidebar-width-mobile:var(--ds-sidebar-width-mobile)] data-[sidebar-state=collapsed]:[--ds-app-sidebar-width:3.5rem]",o),style:r,...s,children:a})})})}function ur({side:e="left",variant:t="auto",className:a,children:o,title:r="Application navigation",description:s="Primary product navigation.","aria-label":l,"aria-labelledby":c,...p}){let{mobileOpen:m,setMobileOpen:f,setSidebarSide:d}=ne();return v.useEffect(()=>{d(e)},[d,e]),E(Ka,{children:[g(gt,{side:e,open:m,onOpenChange:f,children:E(ft,{side:e,"data-sidebar-variant":t,className:"w-[var(--ds-sidebar-width-mobile)] border-sidebar-border bg-sidebar-canvas p-0 text-sidebar-primary-text [&>[data-slot=sheet-close]]:right-3 [&>[data-slot=sheet-close]]:top-3 [&>[data-slot=sheet-close]]:text-sidebar-secondary-text [&>[data-slot=sheet-close]]:hover:text-sidebar-primary-text",children:[E(vt,{className:"sr-only",children:[g(ht,{children:r}),g(xt,{children:s})]}),g("div",{className:"flex h-full min-h-0 flex-col",children:o})]})}),g("aside",{"data-slot":"app-sidebar","data-side":e,"data-sidebar-variant":t,"aria-label":c?void 0:l??r,"aria-labelledby":c,className:n("fixed inset-y-0 z-20 hidden w-[var(--ds-app-sidebar-width)] shrink-0 flex-col border-sidebar-border bg-sidebar-canvas text-sidebar-primary-text transition-[width] duration-200 ease-linear lg:flex",e==="left"?"left-0 border-r":"right-0 border-l","group-data-[sidebar-state=collapsed]/shell:w-[var(--ds-app-sidebar-width)]","group-data-[header-layout=integrated]/shell:top-[var(--ds-topbar-height)]",a),...p,children:o})]})}function mr({className:e,...t}){return g("div",{"data-slot":"app-sidebar-header",className:n("flex min-h-[var(--ds-topbar-height)] min-w-0 shrink-0 items-center overflow-hidden border-b border-sidebar-border bg-sidebar-header px-3",e),...t})}function br({className:e,...t}){let{contentRef:a,hasScrollBefore:o,hasScrollAfter:r}=$a();return g("div",{"data-slot":"app-sidebar-content","data-scroll-before":o?"true":void 0,"data-scroll-after":r?"true":void 0,ref:a,className:n("relative flex min-h-0 min-w-0 flex-1 flex-col gap-[var(--ds-sidebar-group-gap)] overflow-x-clip overflow-y-auto bg-sidebar-content px-[var(--ds-sidebar-content-padding-x)] py-[var(--ds-sidebar-content-padding-y)]",e),...t})}function gr({className:e,...t}){return g("div",{"data-slot":"app-sidebar-footer",className:n("mt-auto flex min-w-0 shrink-0 flex-col gap-2 overflow-hidden border-t border-sidebar-border bg-sidebar-footer p-[var(--ds-sidebar-footer-padding)]",e),...t})}function fr({label:e,description:t,icon:a,collapsedLabel:o,className:r}){return E("div",{"data-slot":"product-identity",className:n("flex min-w-0 items-center gap-2",r),children:[a?g("div",{className:"flex size-7 shrink-0 items-center justify-center rounded-[var(--ds-radius-control)] bg-sidebar-hover text-sidebar-icon",children:a}):null,o&&!a?g("div",{className:"hidden shrink-0 items-center justify-center rounded-[var(--ds-radius-control)] bg-sidebar-hover px-2 py-1 text-xs font-semibold text-sidebar-primary-text group-data-[sidebar-state=collapsed]/shell:flex",children:o}):null,E("div",{className:"min-w-0 group-data-[sidebar-state=collapsed]/shell:hidden",children:[g("div",{className:"ds-type-navigation truncate font-semibold text-sidebar-primary-text",children:e}),t?g("div",{className:"ds-type-metadata truncate text-sidebar-metadata-text",children:t}):null]})]})}function vr({className:e,...t}){return g(bt,{"data-slot":"app-sidebar-separator",className:n("bg-sidebar-border",e),...t})}function se({label:e,count:t,children:a,className:o}){let r=v.useId();return E("section",{"data-slot":"navigation-group","aria-labelledby":e?r:void 0,className:n("flex min-w-0 flex-col gap-[var(--ds-sidebar-label-gap)]",o),children:[e?E("div",{"data-slot":"navigation-group-label",id:r,className:"flex min-h-6 items-center gap-2 px-2 pb-0 pt-2 text-[length:var(--ds-sidebar-group-label-size)] font-semibold uppercase leading-[var(--ds-sidebar-group-label-line-height)] tracking-[0.04em] text-sidebar-group-label group-data-[sidebar-state=collapsed]/shell:hidden",children:[e,t!==void 0?g("span",{className:"ds-type-metadata ml-auto shrink-0 font-medium normal-case tracking-normal text-sidebar-group-count",children:t}):null]}):null,g("div",{className:"flex min-w-0 flex-col gap-[var(--ds-sidebar-item-gap)]",children:a})]})}function Ga(e){return n("ds-type-navigation flex min-h-[var(--ds-sidebar-item-height-touch)] min-w-0 cursor-pointer items-center gap-2 rounded-[var(--ds-radius-control)] px-2 font-medium text-sidebar-secondary-text outline-none transition-colors duration-150 lg:h-[var(--ds-sidebar-item-height)] lg:min-h-0","hover:bg-sidebar-hover hover:text-sidebar-primary-text","focus-visible:ring-[3px] focus-visible:ring-sidebar-focus-ring","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50","group-data-[sidebar-state=collapsed]/shell:justify-center group-data-[sidebar-state=collapsed]/shell:px-0","[&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:stroke-[1.75] [&>svg]:text-sidebar-icon",e&&"bg-sidebar-active-background font-semibold text-sidebar-active-foreground hover:bg-sidebar-active-background hover:text-sidebar-active-foreground [&>svg]:text-sidebar-active-foreground")}var ie=v.forwardRef(function({active:t=!1,tooltip:a,render:o,type:r,"aria-expanded":s,className:l,children:c,...p},m){let{sidebarState:f,sidebarSide:d,isMobile:h}=ne(),i=Re({defaultTagName:"button",render:o,ref:m,props:{"data-slot":"navigation-item","data-active":t?"true":void 0,"aria-expanded":s,type:o?void 0:r??"button",className:n(Ga(t),l),...p,...o?{}:{children:c}}});return a?E(Nt,{children:[g(yt,{render:i}),g(wt,{side:d==="left"?"right":"left",align:"center",hidden:f!=="collapsed"||h,children:a})]}):i}),ta=v.forwardRef(function({active:t=!1,render:a,className:o,...r},s){return Re({defaultTagName:"a",render:a,ref:s,props:{"data-slot":"navigation-sub-item","data-active":t?"true":void 0,className:n("ds-type-navigation flex min-h-[var(--ds-sidebar-item-height-touch)] min-w-0 cursor-pointer items-center gap-2 rounded-[var(--ds-radius-control)] px-2 text-sidebar-secondary-text outline-none transition-colors duration-150 lg:h-[calc(var(--ds-sidebar-item-height)-0.25rem)] lg:min-h-0","hover:bg-sidebar-hover hover:text-sidebar-primary-text focus-visible:ring-[3px] focus-visible:ring-sidebar-focus-ring","group-data-[sidebar-state=collapsed]/shell:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:stroke-[1.75] [&>svg]:text-sidebar-icon",t&&"bg-sidebar-active-background font-semibold text-sidebar-active-foreground hover:bg-sidebar-active-background hover:text-sidebar-active-foreground [&>svg]:text-sidebar-active-foreground",o),...r}})});function aa({className:e,...t}){return g("div",{"data-slot":"navigation-sub-list",className:n("ml-4 flex min-w-0 flex-col gap-[var(--ds-sidebar-item-gap)] border-l border-sidebar-border pl-2 group-data-[sidebar-state=collapsed]/shell:hidden",e),...t})}function hr({className:e,"aria-label":t,onClick:a,...o}){let{isMobile:r,mobileOpen:s,sidebarOpen:l,toggleSidebar:c}=ne(),p={...o,"data-slot":"sidebar-trigger",type:"button",variant:"ghost",className:n("shrink-0 cursor-pointer text-text-supporting hover:bg-surface-muted hover:text-text-primary focus-visible:ring-focus",e),"aria-label":t??"Toggle navigation","aria-expanded":r?s:l,onClick:m=>{a?.(m),c()}};return E(Q,{...p,children:[g(Ba,{}),g("span",{className:"sr-only",children:"Toggle navigation"})]})}function xr({expanded:e,defaultExpanded:t=!1,onExpandedChange:a,triggerLabel:o="Search navigation",shortcut:r,className:s,onKeyDown:l,...c}){let[p,m]=v.useState(t),f=e??p,d=v.useRef(null),h=v.useRef(null),i=v.useRef(!1),N=v.useCallback(k=>{e===void 0&&m(k),a?.(k)},[e,a]);return v.useEffect(()=>{f?queueMicrotask(()=>d.current?.focus()):i.current&&queueMicrotask(()=>h.current?.focus()),i.current=!0},[f]),f?E("div",{"data-slot":"sidebar-search","data-expanded":"true",className:n("flex min-h-[var(--ds-sidebar-item-height-touch)] items-center gap-2 rounded-[var(--ds-radius-control)] border border-sidebar-border bg-sidebar-search px-2 text-sidebar-primary-text shadow-[var(--ds-shadow-raised)] lg:min-h-[var(--ds-sidebar-item-height)]",s),children:[g(Xt,{className:"size-4 shrink-0 text-sidebar-icon"}),g(ut,{ref:d,type:"search",className:"ds-type-control h-auto min-w-0 flex-1 border-0 bg-transparent px-0 py-1 shadow-none focus-visible:border-0 focus-visible:ring-0",onKeyDown:k=>{k.key==="Escape"&&(k.preventDefault(),N(!1)),l?.(k)},...c}),g("button",{type:"button","data-slot":"sidebar-search-close",className:"grid size-7 shrink-0 cursor-pointer place-items-center rounded-[var(--ds-radius-control)] text-sidebar-secondary-text outline-none transition-colors hover:bg-sidebar-hover hover:text-sidebar-primary-text focus-visible:ring-2 focus-visible:ring-sidebar-focus-ring",onClick:()=>{N(!1)},"aria-label":"Close search",children:g(Oa,{className:"size-4"})})]}):E("button",{ref:h,type:"button","data-slot":"sidebar-search-trigger",className:n("ds-type-navigation flex min-h-[var(--ds-sidebar-item-height-touch)] w-full cursor-pointer items-center gap-2 rounded-[var(--ds-radius-control)] px-2 text-left font-medium text-sidebar-secondary-text outline-none transition-colors hover:bg-sidebar-hover hover:text-sidebar-primary-text focus-visible:ring-[3px] focus-visible:ring-sidebar-focus-ring lg:min-h-[var(--ds-sidebar-item-height)]","group-data-[sidebar-state=collapsed]/shell:justify-center group-data-[sidebar-state=collapsed]/shell:px-0",s),onClick:()=>N(!0),"aria-label":o,children:[g(Xt,{className:"size-4 shrink-0 text-sidebar-icon"}),g("span",{className:"truncate group-data-[sidebar-state=collapsed]/shell:hidden",children:o}),r?g(mt,{className:"ds-type-metadata ml-auto border-sidebar-border bg-transparent text-sidebar-metadata-text group-data-[sidebar-state=collapsed]/shell:hidden",children:r}):null]})}function Rr({className:e,...t}){return g("div",{"data-slot":"main-region",className:n("flex min-h-svh min-w-0 w-full flex-1 flex-col transition-[padding] duration-200 ease-linear","group-data-[sidebar-side=left]/shell:lg:pl-[var(--ds-app-sidebar-width)] group-data-[sidebar-side=right]/shell:lg:pr-[var(--ds-app-sidebar-width)]","group-data-[header-layout=integrated]/shell:pt-[var(--ds-topbar-height)]",e),...t})}function Nr({className:e,...t}){return g("header",{"data-slot":"app-header",className:n("fixed inset-x-0 top-0 z-30 flex h-[var(--ds-topbar-height)] min-h-[var(--ds-topbar-height)] items-center gap-2 border-b border-border-subtle bg-canvas/96 px-[var(--ds-topbar-padding-x)] backdrop-blur supports-[backdrop-filter]:bg-canvas/88 md:gap-3 md:px-[var(--ds-topbar-padding-x-wide)]",e),...t})}function yr({className:e,...t}){return g("div",{"data-slot":"app-header-start",className:n("flex min-w-0 flex-1 items-center gap-2",e),...t})}function wr({mobileTrigger:e,children:t,className:a,...o}){return E("div",{"data-slot":"app-header-search",className:n("ml-auto flex shrink-0 items-center",a),...o,children:[g("div",{className:"hidden w-[min(22rem,32vw)] md:block",children:t}),g("div",{className:"md:hidden",children:e})]})}function Sr({className:e,...t}){return g("div",{"data-slot":"app-header-actions",className:n("flex shrink-0 items-center gap-1",e),...t})}function Cr({className:e,...t}){return g("header",{"data-slot":"top-bar",className:n("sticky top-0 z-10 flex h-[var(--ds-topbar-height)] min-h-[var(--ds-topbar-height)] shrink-0 items-center justify-between gap-3 border-b border-border-subtle bg-canvas/96 px-[var(--ds-topbar-padding-x)] backdrop-blur md:px-[var(--ds-topbar-padding-x-wide)]","supports-[backdrop-filter]:bg-canvas/88",e),...t})}function Pr({width:e="full",className:t,...a}){return g("main",{"data-slot":"page-frame","data-width":e,className:n("min-w-0 w-full flex-1 px-3 py-[var(--ds-space-section)] md:px-[var(--ds-space-page)]",e==="wide"&&"mx-auto w-full max-w-[86rem]",e==="focused"&&"mx-auto w-full max-w-[64rem]",e==="reading"&&"mx-auto w-full max-w-[48rem]",t),...a})}function kr({className:e,...t}){return g("div",{"data-slot":"page-content",className:n("flex min-w-0 flex-col gap-[var(--ds-space-section)]",e),...t})}function Tr({className:e,...t}){return g("div",{"data-slot":"page-boundary",className:n("rounded-[var(--ds-radius-surface)] border border-border-subtle bg-surface p-[var(--ds-surface-padding)]",e),...t})}function Dr({className:e,...t}){return g("aside",{"data-slot":"inspector-region",className:n("w-full border-l border-border-subtle bg-surface md:w-[20rem] xl:w-[24rem]",e),...t})}import{jsx as Y,jsxs as oa}from"react/jsx-runtime";function Mr({className:e,...t}){return Y("div",{"data-slot":"activity-list",className:n("divide-y divide-border-subtle",e),...t})}function Lr({leading:e,icon:t,title:a,description:o,metadata:r,trailing:s,status:l,layout:c="standard",className:p,...m}){let f=e!==void 0||t!==void 0,d=s??l;return oa("div",{"data-slot":"activity-item","data-layout":c,className:n("grid gap-3 py-3",f&&d&&"grid-cols-[auto_minmax(0,1fr)_auto]",f&&!d&&"grid-cols-[auto_minmax(0,1fr)]",!f&&d&&"grid-cols-[minmax(0,1fr)_auto]",!f&&!d&&"grid-cols-1",c==="compact"&&"py-2",p),...m,children:[e!==void 0?Y("div",{"data-slot":"activity-item-leading",className:"shrink-0",children:e}):t!==void 0?Y("div",{"data-slot":"activity-item-leading",className:"flex size-8 items-center justify-center rounded-md bg-neutral-background text-neutral-foreground [&_svg]:size-4",children:t}):null,oa("div",{className:"min-w-0",children:[Y("div",{className:"ds-type-ui font-medium text-text-primary",children:a}),o?Y("div",{className:"ds-type-ui mt-0.5 text-text-supporting",children:o}):null,r?Y("div",{className:"ds-type-metadata mt-1 text-text-supporting",children:r}):null]}),d?Y("div",{"data-slot":"activity-item-trailing",className:"shrink-0",children:d}):null]})}import{CheckCircle2 as Fa,CircleAlert as Ua,CircleX as Ya,Info as qa}from"lucide-react";import{jsx as q,jsxs as Ie}from"react/jsx-runtime";function Vr({className:e,...t}){return q("ul",{"data-slot":"attention-list",className:n("grid gap-2",e),...t})}var ja={neutral:"border-neutral-border bg-neutral-background text-neutral-foreground",information:"border-information-border bg-information-background text-information-foreground",success:"border-success-border bg-success-background text-success-foreground",warning:"border-warning-border bg-warning-background text-warning-foreground",danger:"border-danger-border bg-danger-background text-danger-foreground"};function _r({title:e,description:t,metadata:a,action:o,tone:r="neutral",severityLabel:s=`${r[0].toUpperCase()}${r.slice(1)}`,icon:l,className:c,...p}){let m=r==="danger"?Ya:r==="warning"?Ua:r==="success"?Fa:qa;return Ie("li",{"data-slot":"attention-item","data-tone":r,className:n("grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 rounded-[var(--ds-radius-control)] border px-3 py-2.5",ja[r],c),...p,children:[q("span",{className:"mt-0.5 [&>svg]:size-4","aria-hidden":"true",children:l??q(m,{})}),Ie("div",{className:"min-w-0",children:[Ie("span",{className:"sr-only",children:[s,": "]}),q("div",{className:"ds-type-ui font-medium",children:e}),t?q("div",{className:"ds-type-metadata mt-0.5 opacity-85",children:t}):null,a?q("div",{className:"ds-type-metadata mt-1 opacity-85",children:a}):null]}),o?q("div",{className:"shrink-0",children:o}):null]})}import*as Ae from"react";import{jsx as $,jsxs as be}from"react/jsx-runtime";function Fr({trigger:e,title:t,description:a,children:o,confirmLabel:r="Confirm",cancelLabel:s="Cancel",confirmVariant:l="destructive",pending:c=!1,onConfirm:p,onError:m}){let[f,d]=Ae.useState(!1),[h,i]=Ae.useState(!1),N=c||h;async function k(){if(!N){i(!0);try{await p(),d(!1)}catch(P){m?.(P)}finally{i(!1)}}}return be(St,{open:f,onOpenChange:d,children:[$(Ct,{render:e,children:e}),be(Pt,{children:[be(kt,{children:[$(Tt,{children:t}),$(Dt,{children:a})]}),$(It,{children:o}),be(At,{children:[$(Et,{render:$(z,{type:"button",variant:"outline",disabled:N}),children:s}),$(Mt,{render:$(z,{type:"button",variant:l,disabled:N,onClick:k}),children:N?"Working...":r})]})]})]})}import*as Z from"react";import{Check as Qa,Copy as Xa}from"lucide-react";import{jsx as H,jsxs as Ee}from"react/jsx-runtime";function Jr({snippets:e,defaultValue:t,copyLabel:a="Copy code",className:o,...r}){let s=t??e[0]?.value??"",[l,c]=Z.useState(s),[p,m]=Z.useState(null),[f,d]=Z.useState(!1),h=Z.useId(),i=e.find(N=>N.value===l)??e[0];return i?H("div",{"data-slot":"code-block",className:n("overflow-hidden rounded-lg border border-border-subtle bg-surface",o),...r,children:Ee(Lt,{value:i.value,onValueChange:c,variant:"segmented",className:"gap-0",children:[Ee("div",{className:"flex items-center justify-between gap-3 border-b border-border-subtle bg-surface-muted px-3 py-2",children:[H(Bt,{variant:"segmented",size:"compact","aria-label":"Code language",children:e.map(N=>H(Ot,{value:N.value,children:N.label},N.value))}),Ee(z,{type:"button",variant:"ghost",size:"sm",onClick:async()=>{try{await navigator.clipboard.writeText(i.code),m(i.value),d(!1)}catch{m(null),d(!0)}},"aria-describedby":h,children:[p===i.value?H(Qa,{}):H(Xa,{}),p===i.value?"Copied":a]}),H("span",{id:h,className:"sr-only",role:"status","aria-live":"polite",children:f?"Code could not be copied. Select the code and copy it manually.":p===i.value?"Code copied to clipboard.":""})]}),e.map(N=>H(zt,{value:N.value,className:"m-0",children:H("pre",{"aria-label":`${N.label} code example`,tabIndex:0,className:"max-h-[32rem] overflow-auto p-4 text-sm leading-6 outline-none focus-visible:ring-[3px] focus-visible:ring-inset focus-visible:ring-focus/50",children:H("code",{children:N.code})})},N.value))]})}):null}import{jsx as Me}from"react/jsx-runtime";function on({className:e,...t}){return Me(Ht,{"data-slot":"inventory-surface",className:n("gap-0 overflow-hidden py-0",e),...t})}function rn({className:e,...t}){return Me("div",{"data-slot":"inventory-desktop",className:n("hidden lg:block",e),...t})}function nn({className:e,...t}){return Me("div",{"data-slot":"inventory-mobile",className:n("divide-y divide-border-subtle lg:hidden",e),...t})}import{jsx as ee,jsxs as ra}from"react/jsx-runtime";function pn({columns:e=4,className:t,...a}){return ee("div",{"data-slot":"metric-band","data-columns":e,className:n("grid grid-cols-2 border-b border-border-subtle",e===2&&"lg:grid-cols-2",e===3&&"lg:grid-cols-3",e===4&&"lg:grid-cols-4",e===5&&"lg:grid-cols-5",t),...a})}function un({label:e,value:t,detail:a,icon:o,iconClassName:r,loading:s=!1,className:l,...c}){return ra("div",{"data-slot":"metric-band-item",className:n("flex min-h-28 flex-col items-start gap-3 border-r border-border-subtle p-4 last:border-r-0 sm:flex-row sm:items-center sm:gap-4 sm:p-5","[&:nth-child(-n+2)]:border-b lg:[&:nth-child(-n+2)]:border-b-0",l),...c,children:[o?ee("div",{className:n("flex size-10 shrink-0 items-center justify-center rounded-md bg-neutral-background text-neutral-foreground [&_svg]:size-5",r),children:o}):null,ra("div",{className:"grid min-w-0 gap-1",children:[ee("div",{className:"ds-type-ui text-text-supporting",children:e}),s?ee(me,{className:"h-7 w-14"}):ee("div",{className:"text-2xl font-semibold tracking-tight",children:t??0}),a?ee("div",{className:"ds-type-metadata text-text-supporting",children:a}):null]})]})}import*as na from"react";import{ArrowDown as Ja,ArrowUp as Za,Minus as eo}from"lucide-react";import{Fragment as to,jsx as M,jsxs as j}from"react/jsx-runtime";function hn({direction:e,sentiment:t="neutral",value:a,accessibleLabel:o,className:r,...s}){let l=e==="up"?Za:e==="down"?Ja:eo;return j("span",{"data-slot":"metric-trend","data-direction":e,"data-sentiment":t,role:"img","aria-label":o,className:n("inline-flex items-center gap-1 ds-type-metadata font-medium text-trend-neutral",t==="positive"&&"text-trend-positive",t==="negative"&&"text-trend-negative",r),...s,children:[M(l,{"aria-hidden":"true",className:"size-3.5 stroke-[2]"}),M("span",{"aria-hidden":"true",children:a})]})}function xn({label:e,description:t,value:a,unit:o,trend:r,status:s,emphasis:l="supporting",loading:c=!1,visualization:p,visualizationSummary:m,className:f,...d}){let h=na.useId();return j("section",{"data-slot":"metric-card","data-emphasis":l,"aria-labelledby":h,className:n("flex min-w-0 flex-col overflow-hidden rounded-[var(--ds-radius-surface)] border border-border-default bg-surface text-text-primary shadow-[var(--ds-shadow-raised)]",l==="primary"?"min-h-80":"min-h-40",f),...d,children:[j("div",{className:"flex items-start justify-between gap-4 px-[var(--ds-surface-padding)] pt-[var(--ds-surface-padding)]",children:[j("div",{className:"min-w-0",children:[M("h2",{id:h,className:"ds-type-card-title",children:e}),t?M("p",{className:"ds-type-metadata mt-0.5 text-text-supporting",children:t}):null]}),s?M("div",{className:"shrink-0",children:s}):null]}),j("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-1 px-[var(--ds-surface-padding)] pt-3",children:[c?M(me,{className:n("h-8",l==="primary"?"w-24":"w-16")}):j(to,{children:[M("span",{className:n("font-semibold tabular-nums tracking-tight",l==="primary"?"text-4xl":"text-2xl"),children:a??0}),o?M("span",{className:"ds-type-ui text-text-supporting",children:o}):null]}),r?M("div",{className:"ml-1",children:r}):null]}),p?j("figure",{className:"mt-auto min-h-0 flex-1 pt-4",children:[M("div",{"data-slot":"metric-card-visualization",className:"h-full min-h-20 w-full",children:p}),M("figcaption",{className:"sr-only",children:m})]}):null]})}import{jsx as le,jsxs as Le}from"react/jsx-runtime";function wn({title:e,description:t,status:a,metadata:o,actions:r,action:s,actionNode:l,className:c,...p}){let m=r??l??(s?le("a",{className:"ds-type-button inline-flex h-[var(--ds-control-height)] items-center justify-center gap-2 whitespace-nowrap rounded-md bg-action px-3 py-2 text-action-foreground shadow-xs outline-none transition-colors hover:bg-action-hover focus-visible:border-focus focus-visible:ring-3 focus-visible:ring-focus/50",href:s.href,children:s.label}):null);return Le("header",{"data-slot":"page-header",className:n("flex flex-col gap-3 border-b border-border-subtle bg-canvas px-5 py-4 lg:flex-row lg:items-start lg:justify-between",c),...p,children:[Le("div",{className:"min-w-0",children:[Le("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[le("h1",{className:"ds-type-page-title truncate",children:e}),a]}),t?le("p",{className:"ds-type-ui mt-1 max-w-3xl text-text-supporting",children:t}):null,o?le("div",{className:"ds-type-metadata mt-2 text-text-supporting",children:o}):null]}),m?le("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:m}):null]})}import{jsx as Be,jsxs as Oe}from"react/jsx-runtime";function kn({search:e,filters:t,viewControls:a,bulkActions:o,className:r,children:s,...l}){return Oe("div",{"data-slot":"page-toolbar",className:n("grid gap-2 border-b border-border-subtle bg-canvas px-5 py-3 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",r),...l,children:[Oe("div",{className:"flex min-w-0 flex-1 flex-col gap-2 sm:flex-row sm:items-center",children:[e?Be("div",{className:"min-w-0 flex-1 sm:min-w-48 sm:max-w-sm",children:e}):null,t?Be("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:flex-wrap sm:items-center",children:t}):null]}),Oe("div",{className:"flex min-h-[var(--ds-control-height)] flex-wrap items-center gap-2 lg:justify-end",children:[o?Be("div",{"data-slot":"page-toolbar-bulk-actions",className:"contents",children:o}):null,a,s]})]})}import*as ge from"react";import{jsx as G,jsxs as pa}from"react/jsx-runtime";var ia=Ke,la=Fe,ze="conscia-preferences",He=new Map;function ao(e,t,a){if(typeof window>"u")return t;try{let o=e.endsWith(":v1")?e.slice(0,-3):e,r=window.localStorage.getItem(e)??window.localStorage.getItem(o)??He.get(e);return r&&a.includes(r)?r:t}catch{let o=He.get(e);return o&&a.includes(o)?o:t}}function da(e,t){He.set(e,t);try{window.localStorage.setItem(e,t)}catch{}window.dispatchEvent(new Event(ze))}function sa(e,t,a){return ge.useSyncExternalStore(o=>(window.addEventListener("storage",o),window.addEventListener(ze,o),()=>{window.removeEventListener("storage",o),window.removeEventListener(ze,o)}),()=>ao(e,t,a),()=>t)}function Ve(){let e=sa(ia,"system",he),t=sa(la,"comfortable",xe);return{appearance:e,density:t}}function En(){let{appearance:e,density:t}=Ve();return ge.useEffect(()=>{let a=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>Ue(document.documentElement,e,t,a.matches);return o(),a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[e,t]),null}function Mn({nonce:e}){return G("script",{nonce:e,dangerouslySetInnerHTML:{__html:Ye()}})}function oo({className:e}){let{appearance:t}=Ve();return G(ca,{className:e,label:"Appearance",value:t,values:he,onChange:a=>da(ia,a)})}function ro({className:e}){let{density:t}=Ve();return G(ca,{className:e,label:"Density",value:t,values:xe,onChange:a=>da(la,a)})}function Ln({className:e}){return pa("div",{className:n("flex flex-col gap-3 text-sm",e),children:[G(oo,{}),G(ro,{})]})}function ca({className:e,label:t,value:a,values:o,onChange:r}){return pa("fieldset",{className:n("flex flex-col gap-2",e),children:[G("legend",{className:"text-[var(--ds-metadata)] font-medium text-text-supporting",children:t}),G("div",{className:"grid w-full grid-cols-3 rounded-[var(--ds-radius-control)] bg-surface-muted p-1",children:o.map(s=>G("button",{type:"button","aria-pressed":a===s,suppressHydrationWarning:!0,onClick:()=>r(s),className:"min-w-0 h-7 rounded-[calc(var(--ds-radius-control)-2px)] px-1.5 text-[var(--ds-metadata)] font-medium capitalize text-text-supporting outline-none transition-colors hover:text-text-primary focus-visible:ring-[3px] focus-visible:ring-focus/50 aria-pressed:bg-canvas aria-pressed:text-text-primary aria-pressed:shadow-xs",children:s},s))})]})}import{jsx as _e,jsxs as ua}from"react/jsx-runtime";function Hn({name:e,shortName:t,description:a,size:o="default",className:r,...s}){return ua("div",{"data-slot":"provider-mark",className:n("flex min-w-0 items-center gap-3",r),...s,children:[_e("div",{"aria-hidden":"true",className:n("flex shrink-0 items-center justify-center rounded-md border border-border-subtle bg-surface-muted font-semibold tracking-tight text-text-primary",o==="sm"?"size-8 text-[10px]":"size-10 text-xs"),children:t}),ua("div",{className:"min-w-0",children:[_e("div",{className:"ds-type-ui truncate font-medium text-text-primary",children:e}),a?_e("div",{className:"ds-type-metadata mt-0.5 truncate text-text-supporting",children:a}):null]})]})}import{jsx as I,jsxs as K}from"react/jsx-runtime";function $n({variant:e="plain",title:t,description:a,status:o,metadata:r,actions:s,className:l,children:c,...p}){return K("section",{"data-slot":"resource-summary",className:n("px-5 py-4",e==="plain"&&"border-b border-border-subtle bg-canvas",e==="surface"&&"rounded-[var(--ds-radius-surface)] border border-border-subtle bg-surface",l),...p,children:[K("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between",children:[K("div",{className:"min-w-0",children:[t||o?K("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[t?I("h2",{className:"ds-type-section-title truncate",children:t}):null,o]}):null,a?I("p",{className:"ds-type-ui mt-1 max-w-3xl text-text-supporting",children:a}):null,r?I("div",{className:"ds-type-metadata mt-2 text-text-supporting",children:r}):null]}),s?I("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:s}):null]}),c?I("div",{className:"mt-4",children:c}):null]})}function Gn({className:e,...t}){return I("div",{"data-slot":"detail-sections",className:n("flex flex-col gap-[var(--ds-space-section)]",e),...t})}function Kn({variant:e="surface",title:t,description:a,actions:o,className:r,children:s,...l}){return K("section",{"data-slot":"detail-section",className:n(e==="surface"&&"rounded-[var(--ds-radius-surface)] border border-border-subtle bg-surface p-[var(--ds-surface-padding)]",e==="open"&&"border-b border-border-subtle pb-[var(--ds-space-section)]",r),...l,children:[K("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[K("div",{className:"min-w-0",children:[I("h2",{className:"ds-type-section-title",children:t}),a?I("p",{className:"ds-type-ui mt-1 max-w-3xl text-text-supporting",children:a}):null]}),o?I("div",{className:"flex shrink-0 items-center gap-2",children:o}):null]}),s?I("div",{className:"mt-4",children:s}):null]})}function Fn({className:e,...t}){return I("dl",{"data-slot":"key-value-list",className:n("ds-type-ui grid gap-3",e),...t})}function Un({label:e,value:t,breakValue:a=!1}){return K("div",{"data-slot":"key-value-item",className:"flex min-w-0 items-start justify-between gap-4",children:[I("dt",{className:"min-w-0 max-w-[40%] text-text-supporting",children:e}),I("dd",{className:n("min-w-0 flex-1 break-words text-right font-medium",a&&"break-all"),children:t})]})}import*as _ from"react";import{ChevronRight as no}from"lucide-react";import{Fragment as We,jsx as y,jsxs as V}from"react/jsx-runtime";function $e(e){return"items"in e}function so(e){return $e(e)&&e.type==="group"}function io(e){return $e(e)&&e.type!=="group"}function te(e){let t=[e.badgeLabel,e.countLabel].filter(Boolean);return t.length>0?`${e.label}, ${t.join(", ")}`:e.label}function fe({badge:e,count:t}){return e===void 0&&t===void 0?null:V("span",{"aria-hidden":"true",className:"ml-auto flex min-w-0 shrink-0 items-center gap-1.5 text-sidebar-metadata-text",children:[e!==void 0?y("span",{className:"max-w-28 truncate rounded-full bg-sidebar-hover px-1.5 py-0.5 text-[length:var(--ds-metadata)] font-semibold leading-none",children:e}):null,t!==void 0?y("span",{className:"ds-type-metadata tabular-nums",children:t}):null]})}function ma({item:e}){return V(We,{children:[e.icon,!e.icon&&e.collapsedLabel?y("span",{className:"hidden shrink-0 font-semibold group-data-[sidebar-state=collapsed]/shell:inline",children:e.collapsedLabel}):null,y("span",{className:"truncate group-data-[sidebar-state=collapsed]/shell:hidden",children:e.label}),y(fe,{badge:e.badge,count:e.count})]})}function lo(e){if(!e||typeof window>"u")return{};try{let t=window.localStorage.getItem(e);if(!t)return{};let a=JSON.parse(t);return typeof a=="object"&&a!==null?a:{}}catch{return{}}}function es({entries:e,renderLink:t,onNavigate:a,storageKey:o,className:r}){let{isMobile:s,setMobileOpen:l,sidebarSide:c,sidebarState:p}=ne(),[m,f]=_.useState({}),d=_.useRef(!1);_.useEffect(()=>{d.current=!1;let i=lo(o);queueMicrotask(()=>{d.current=!0,f(i)})},[o]),_.useEffect(()=>{if(!(!d.current||!o||!e.some(io)))try{window.localStorage.setItem(o,JSON.stringify(m))}catch{}},[e,m,o]);let h=_.useCallback(()=>{s&&l(!1),a?.()},[s,a,l]);return y("nav",{"data-slot":"sidebar-navigation","aria-label":"Primary navigation",className:n("flex flex-col gap-[var(--ds-sidebar-group-gap)]",r),children:e.map(i=>{if(so(i))return y(se,{label:i.label,count:i.count,children:i.items.map(x=>y(ie,{active:x.active,tooltip:x.label,render:t(x,{"aria-current":x.active?"page":void 0,"aria-label":te(x),onClick:h,children:y(ma,{item:x})})},x.id))},i.id);if(!$e(i))return y(se,{className:i.startsSection?"mt-[var(--ds-sidebar-group-gap)]":void 0,children:y(ie,{active:i.active,tooltip:i.label,render:t(i,{"aria-current":i.active?"page":void 0,"aria-label":te(i),onClick:h,children:y(ma,{item:i})})})},i.id);let N=i.items.some(x=>x.active),k=i.type==="submenu"?i.defaultOpen:!1,P=i.type===void 0?i.active:!1,D=(m[i.id]??k)||N||P;return p==="collapsed"&&!s?V($t,{children:[y(se,{className:i.startsSection?"mt-[var(--ds-sidebar-group-gap)]":void 0,children:y(Kt,{render:V(ie,{"aria-label":`${te(i)} menu`,className:N?"text-sidebar-primary-text":void 0,children:[i.icon,y("span",{className:"sr-only",children:i.label})]})})}),V(Ft,{side:c==="left"?"right":"left",align:"start",sideOffset:8,className:"min-w-56 rounded-[var(--ds-radius-surface)] p-1.5",children:[y(Yt,{className:"px-2 py-1.5 font-semibold text-text-supporting",children:i.label}),y(Gt,{children:i.items.map(x=>y(Ut,{closeOnClick:!0,render:t(x,{"aria-current":x.active?"page":void 0,"aria-label":te(x),onClick:h,children:V(We,{children:[x.icon,y("span",{className:"truncate",children:x.label}),y(fe,{badge:x.badge,count:x.count})]})}),className:n("min-h-9 cursor-pointer rounded-[var(--ds-radius-control)] [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:stroke-[1.75]",x.active&&"bg-selection-background font-semibold text-selection-foreground focus:bg-selection-background focus:text-selection-foreground")},x.id))})]})]},i.id):y(Vt,{open:D,onOpenChange:x=>f(L=>({...L,[i.id]:x})),className:n("group/collapsible",i.startsSection&&"mt-2"),children:V(se,{children:[y(_t,{render:V(ie,{tooltip:i.label,"aria-label":te(i),className:N?"text-sidebar-primary-text":void 0,children:[i.icon,y("span",{className:"truncate group-data-[sidebar-state=collapsed]/shell:hidden",children:i.label}),y(fe,{badge:i.badge,count:i.count}),y(no,{className:"ml-auto transition-transform duration-150 ease-out group-data-[sidebar-state=collapsed]/shell:hidden group-data-[open]/collapsible:rotate-90"})]})}),y(Wt,{"data-slot":"sidebar-collapsible-content",className:"overflow-hidden",children:y(aa,{children:i.items.map(x=>y(ta,{active:x.active,render:t(x,{"aria-current":x.active?"page":void 0,"aria-label":te(x),onClick:h,children:V(We,{children:[x.icon,y("span",{className:"truncate",children:x.label}),y(fe,{badge:x.badge,count:x.count})]})})},x.id))})})]})},i.id)})})}import{jsx as F,jsxs as po}from"react/jsx-runtime";function co({title:e,description:t,action:a,icon:o,className:r,...s}){return po("div",{"data-slot":"state-view",className:n("flex min-h-72 flex-col items-center justify-center gap-3 border-b px-6 py-12 text-center",r),...s,children:[o?F("div",{className:"flex size-10 items-center justify-center rounded-md bg-neutral-background text-neutral-foreground [&_svg]:size-5",children:o}):null,F("h2",{className:"ds-type-section-title",children:e}),t?F("p",{className:"ds-type-ui max-w-md text-text-supporting",children:t}):null,a?F("div",{className:"mt-1",children:a}):null]})}function rs({rows:e=6,columns:t=5}){return F("div",{"data-slot":"loading-rows",className:"border-b",children:Array.from({length:e}).map((a,o)=>F("div",{className:"grid h-[var(--ds-row-height)] items-center gap-4 border-b px-5 last:border-b-0",style:{gridTemplateColumns:`2fr repeat(${Math.max(t-1,1)}, minmax(5rem, 1fr))`},children:Array.from({length:t}).map((r,s)=>F("div",{className:n("h-3 rounded bg-surface-muted",s===0?"w-44":"w-24")},s))},o))})}function ns({title:e,description:t,action:a,className:o,...r}){return F(co,{title:e,description:t,action:a,className:n("bg-danger-background/60",o),role:"alert","aria-live":"assertive",...r})}import*as ga from"react";import{jsx as de,jsxs as ba}from"react/jsx-runtime";function ds({label:e,value:t,maximum:a,valueLabel:o,detail:r,tone:s="neutral",className:l,...c}){let p=ga.useId(),m=typeof a=="number"&&a>0,f=m?Math.min(a,Math.max(0,t)):t,d=m?f/a*100:null,h=o??(m?`${f} of ${a}`:String(f));return ba("div",{"data-slot":"value-meter",className:n("grid gap-2",l),...c,children:[ba("div",{className:"flex items-baseline justify-between gap-4 text-sm",children:[de("span",{id:p,className:"font-medium text-text-primary",children:e}),de("span",{className:"text-text-supporting",children:h})]}),d===null?null:de("div",{role:"progressbar","aria-labelledby":p,"aria-valuemin":0,"aria-valuemax":a??void 0,"aria-valuenow":f,className:"h-2 overflow-hidden rounded-full bg-surface-muted",children:de("div",{className:n("h-full rounded-full bg-neutral-foreground transition-[width]",s==="success"&&"bg-success-foreground",s==="warning"&&"bg-warning-foreground",s==="danger"&&"bg-danger-foreground"),style:{width:`${d}%`}})}),r?de("div",{className:"text-xs text-text-supporting",children:r}):null]})}import*as fa from"react";import{jsx as S,jsxs as ae}from"react/jsx-runtime";function ms({className:e,...t}){return S("div",{"data-slot":"workbench-shell",className:n("min-w-0",e),...t})}function bs({variant:e="secondary",open:t=!0,className:a,...o}){return S("aside",{"data-slot":"workbench-rail","data-variant":e,"data-open":t?"true":"false",className:n("min-w-0",a),...o})}function gs({className:e,...t}){return S("main",{"data-slot":"workbench-main",className:n("min-w-0",e),...t})}function fs({className:e,...t}){return S("aside",{"data-slot":"workbench-inspector",className:n("min-w-0",e),...t})}function vs({className:e,...t}){return S("div",{"data-slot":"workbench-mobile-toolbar",className:n(e),...t})}function hs({open:e=!0,className:t,...a}){return S("button",{type:"button","data-slot":"workbench-backdrop","data-open":e?"true":"false",className:n(t),...a})}function xs({className:e,...t}){return S("section",{"data-slot":"workbench-section",className:n(e),...t})}function Rs({title:e,metadata:t,action:a,className:o,...r}){return ae("div",{"data-slot":"workbench-section-header",className:n(o),...r,children:[ae("div",{"data-slot":"workbench-section-heading",children:[S("h2",{children:e}),t?S("span",{children:t}):null]}),a?S("div",{"data-slot":"workbench-section-action",children:a}):null]})}function Ns({as:e="div",href:t,selected:a=!1,className:o,children:r,...s}){return fa.createElement(e,{...s,...e==="a"&&t?{href:t}:{},...e==="button"?{type:"button"}:{},"data-slot":"resource-row","data-selected":a?"true":"false",className:n(o)},r)}function ys({className:e,...t}){return S("span",{"data-slot":"resource-row-icon",className:n(e),...t})}function ws({className:e,...t}){return S("span",{"data-slot":"resource-row-content",className:n(e),...t})}function Ss({className:e,...t}){return S("strong",{"data-slot":"resource-row-title",className:n(e),...t})}function Cs({className:e,...t}){return S("span",{"data-slot":"resource-row-description",className:n(e),...t})}function Ps({className:e,...t}){return S("span",{"data-slot":"resource-row-meta",className:n(e),...t})}function ks({label:e,action:t,className:a,children:o,...r}){return ae("section",{"data-slot":"workbench-inspector-section",className:n(a),...r,children:[ae("div",{"data-slot":"workbench-inspector-label",children:[S("h3",{children:e}),t?S("div",{children:t}):null]}),o]})}function Ts({initials:e,name:t,detail:a,compact:o=!1,className:r,...s}){return ae("div",{"data-slot":"identity-row","data-compact":o?"true":"false",className:n(r),...s,children:[S("span",{"data-slot":"identity-avatar",children:e}),ae("span",{"data-slot":"identity-copy",children:[S("strong",{children:t}),a?S("small",{children:a}):null]})]})}export{qt as a,jt as b,To as c,Bo as d,Vo as e,_o as f,Wo as g,$o as h,Yo as i,Jo as j,ne as k,pr as l,ur as m,mr as n,br as o,gr as p,fr as q,vr as r,se as s,ie as t,ta as u,aa as v,hr as w,xr as x,Rr as y,Nr as z,yr as A,wr as B,Sr as C,Cr as D,Pr as E,kr as F,Tr as G,Dr as H,Mr as I,Lr as J,Vr as K,_r as L,Fr as M,Jr as N,on as O,rn as P,nn as Q,pn as R,un as S,hn as T,xn as U,wn as V,kn as W,Ve as X,En as Y,Mn as Z,oo as _,ro as $,Ln as aa,Hn as ba,$n as ca,Gn as da,Kn as ea,Fn as fa,Un as ga,es as ha,co as ia,rs as ja,ns as ka,ds as la,ms as ma,bs as na,gs as oa,fs as pa,vs as qa,hs as ra,xs as sa,Rs as ta,Ns as ua,ys as va,ws as wa,Ss as xa,Cs as ya,Ps as za,ks as Aa,Ts as Ba};
|
|
2
|
-
//# sourceMappingURL=chunk-
|
|
1
|
+
import{a as he,b as xe,c as Ke,d as Fe,e as Ue,f as Ye}from"./chunk-QXDSBJYQ.js";import{$a as rt,$b as Lt,Ac as Ut,Bb as ft,Bc as Yt,Cb as vt,Db as ht,Eb as xt,K as Ne,Kb as Rt,L as qe,Lb as Nt,M as je,Mb as yt,N as Qe,Nb as wt,Ob as St,P as ye,Pb as Ct,Q as Xe,R as Je,S as Ze,Sb as Pt,Tb as kt,Ub as Tt,Vb as Dt,Wa as et,Wb as It,Xb as At,Ya as tt,Yb as Et,Za as at,Zb as Mt,_a as ot,ac as Bt,bc as Ot,cc as zt,eb as re,g as Re,gb as nt,hb as st,hc as Ht,i as z,j as Q,lb as it,mb as lt,nb as dt,nc as me,ob as ct,oc as Vt,pb as pt,pc as _t,qc as Wt,rb as ut,sb as mt,sc as $t,tb as bt,tc as Gt,wb as gt,xc as Kt,yc as Ft}from"./chunk-HXGU6OYR.js";import{a as n}from"./chunk-RFPKBIDP.js";import{ChevronLeft as ha,ChevronRight as xa}from"lucide-react";import{jsx as A,jsxs as X}from"react/jsx-runtime";function qt({currentPage:e,pageCount:t,totalLabel:a,onPrevious:o,onNext:r,onPageChange:s,pageSize:l,pageSizeOptions:c=[10,25,50],onPageSizeChange:p,className:m,...f}){return X("div",{"data-slot":"pagination-controls",className:n("flex flex-col gap-2 border-t border-border-subtle px-5 py-3 text-sm text-text-supporting sm:flex-row sm:items-center sm:justify-between",m),...f,children:[X("div",{className:"flex flex-wrap items-center gap-3",children:[A("span",{children:a}),l&&p?X("div",{className:"flex items-center gap-2",children:[A("span",{className:"text-[var(--ds-metadata)]",children:"Rows"}),X(et,{value:String(l),onValueChange:d=>p(Number(d)),children:[A(at,{size:"sm",className:"w-[4.5rem]","aria-label":"Rows per page",children:A(tt,{})}),A(ot,{children:c.map(d=>A(rt,{value:String(d),children:d},d))})]})]}):null]}),X("div",{className:"flex items-center gap-1",children:[A(Q,{type:"button",variant:"outline",size:"sm",className:"size-8","aria-label":"Previous page",onClick:o??(()=>s?.(e-1)),disabled:e<=1,children:A(ha,{})}),s?Ra(e,t).map((d,h)=>d==="ellipsis"?A("span",{className:"flex size-8 items-center justify-center text-text-supporting","aria-hidden":"true",children:"\u2026"},`ellipsis-${h}`):A(Q,{type:"button",variant:d===e?"secondary":"ghost",size:"sm",className:"size-8","aria-label":`Page ${d}`,"aria-current":d===e?"page":void 0,onClick:()=>s(d),children:d},d)):X("span",{className:"px-2 text-[var(--ds-metadata)]",children:["Page ",e," of ",t]}),A(Q,{type:"button",variant:"outline",size:"sm",className:"size-8","aria-label":"Next page",onClick:r??(()=>s?.(e+1)),disabled:e>=t,children:A(xa,{})})]})]})}function Ra(e,t){if(t<=7)return Array.from({length:t},(s,l)=>l+1);let a=new Set([1,t,e-1,e,e+1]),o=Array.from(a).filter(s=>s>0&&s<=t).sort((s,l)=>s-l),r=[];return o.forEach((s,l)=>{l&&s-o[l-1]>1&&r.push("ellipsis"),r.push(s)}),r}import*as Ce from"react";import{flexRender as we,getCoreRowModel as Na,getPaginationRowModel as ya,getSortedRowModel as wa,useReactTable as Sa}from"@tanstack/react-table";import{ArrowDown as Ca,ArrowUp as Pa,ChevronsUpDown as ka}from"lucide-react";import{Fragment as Ta,jsx as C,jsxs as Se}from"react/jsx-runtime";function jt({data:e,columns:t,getRowId:a,getRowLabel:o,onRowClick:r,isRowClickable:s,rowActions:l,selectedIds:c,onSelectionChange:p,sorting:m,onSortingChange:f,manualSorting:d=!1,pagination:h,onPaginationChange:i,manualPagination:N=!1,pageCount:k,rowCount:P,pageSizeOptions:D,totalLabel:x,mobileRow:L,caption:U,empty:ce,className:R}){let O=Ce.useMemo(()=>{let b={};return c?.forEach(u=>{b[u]=!0}),b},[c]),ve=Ce.useMemo(()=>{let b=[];return p&&b.push({id:"select",enableSorting:!1,header:({table:u})=>C(Ne,{"aria-label":"Select all rows on this page",checked:u.getIsAllPageRowsSelected(),indeterminate:u.getIsSomePageRowsSelected()&&!u.getIsAllPageRowsSelected(),onCheckedChange:w=>u.toggleAllPageRowsSelected(!!w)}),cell:({row:u})=>C(Ne,{"aria-label":`Select ${o?.(u.original)??u.id}`,checked:u.getIsSelected(),onCheckedChange:w=>u.toggleSelected(!!w),onClick:w=>w.stopPropagation()}),meta:{className:"w-10"}}),b.push(...t.map(u=>({id:u.id,...u.accessor?{accessorFn:u.accessor}:{},enableSorting:u.sortable??!1,header:()=>u.header,cell:({row:w})=>u.cell(w.original),meta:{className:u.className,label:typeof u.header=="string"?u.header:u.id}}))),l&&b.push({id:"actions",enableSorting:!1,header:"Actions",cell:({row:u})=>C("div",{onClick:w=>w.stopPropagation(),onKeyDown:w=>w.stopPropagation(),children:l(u.original)}),meta:{className:"w-12 text-right"}}),b},[t,o,p,l]),oe=Sa({data:e,columns:ve,getRowId:b=>a(b),state:{rowSelection:O,...m?{sorting:m}:{},...h?{pagination:h}:{}},enableRowSelection:!!p,onRowSelectionChange:b=>{if(!p)return;let u=typeof b=="function"?b(O):b;p(new Set(Object.keys(u).filter(w=>u[w])))},onSortingChange:b=>{f&&f(typeof b=="function"?b(m??[]):b)},onPaginationChange:b=>{!i||!h||i(typeof b=="function"?b(h):b)},manualSorting:d,manualPagination:N,pageCount:k,rowCount:P,getCoreRowModel:Na(),getSortedRowModel:d?void 0:wa(),getPaginationRowModel:h&&!N?ya():void 0});if(!e.length&&ce)return C(Ta,{children:ce});let Ge=oe.getRowModel().rows,va=!!(h&&i);return Se("div",{"data-slot":"data-table",className:n("bg-canvas",R),children:[C("div",{className:L?"hidden md:block":void 0,children:Se(qe,{children:[U?C(Ze,{children:U}):null,C(je,{children:oe.getHeaderGroups().map(b=>C(ye,{children:b.headers.map(u=>{let w=u.column.columnDef.meta,pe=u.column.getCanSort(),ue=u.column.getIsSorted();return C(Xe,{className:w?.className,"aria-sort":pe?ue==="asc"?"ascending":ue==="desc"?"descending":"none":void 0,children:u.isPlaceholder?null:pe?Se(z,{type:"button",variant:"ghost",size:"sm",className:"-ml-2 h-8 gap-1.5 px-2 text-[var(--ds-metadata)] font-semibold uppercase text-text-supporting hover:text-text-primary",onClick:u.column.getToggleSortingHandler(),"aria-label":`Sort by ${w?.label??u.column.id}`,children:[we(u.column.columnDef.header,u.getContext()),ue==="asc"?C(Pa,{className:"size-3.5"}):ue==="desc"?C(Ca,{className:"size-3.5"}):C(ka,{className:"size-3.5 opacity-60"})]}):we(u.column.columnDef.header,u.getContext())},u.id)})},b.id))}),C(Qe,{children:Ge.map(b=>{let u=!!(r&&(s?.(b.original)??!0));return C(ye,{"data-selected":b.getIsSelected()?"true":void 0,"aria-selected":b.getIsSelected()?"true":void 0,tabIndex:u?0:void 0,"aria-label":u?o?.(b.original)??b.id:void 0,className:n(u&&"cursor-pointer outline-none focus-visible:ring-[3px] focus-visible:ring-focus/45"),onClick:()=>{u&&r?.(b.original)},onKeyDown:w=>{!u||w.key!=="Enter"&&w.key!==" "||(w.preventDefault(),r?.(b.original))},children:b.getVisibleCells().map(w=>{let pe=w.column.columnDef.meta;return C(Je,{className:pe?.className,children:we(w.column.columnDef.cell,w.getContext())},w.id)})},b.id)})})]})}),L?C("div",{className:"divide-y divide-border-subtle md:hidden",role:"list",children:Ge.map(b=>C("div",{role:"listitem",children:L(b.original)},b.id))}):null,va?C(qt,{currentPage:h.pageIndex+1,pageCount:Math.max(1,oe.getPageCount()),pageSize:h.pageSize,pageSizeOptions:D,totalLabel:x,onPageChange:b=>oe.setPageIndex(b-1),onPageSizeChange:b=>oe.setPageSize(b)}):null]})}import{jsx as Da}from"react/jsx-runtime";function To({items:e,columns:t,getRowId:a,selectedIds:o,onSelectionChange:r,onRowClick:s,getRowLabel:l,rowActions:c,caption:p,className:m}){return Da(jt,{data:e,columns:t.map(f=>({...f,id:f.key})),getRowId:a,selectedIds:o,onSelectionChange:r,onRowClick:s,getRowLabel:l,rowActions:c,caption:p,className:m})}import*as B from"react";import{SearchIcon as Ia}from"lucide-react";import{jsx as T,jsxs as W}from"react/jsx-runtime";function Bo({className:e,closeOnSelect:t=!0,defaultOpen:a=!1,description:o,emptyMessage:r="No commands found.",items:s,onOpenChange:l,onSelect:c,open:p,placeholder:m="Search commands...",title:f="Command menu",trigger:d,...h}){let[i,N]=B.useState(""),[k,P]=B.useState(a),D=p!==void 0,x=p??k,L=B.useMemo(()=>{let R=i.trim().toLocaleLowerCase();return R?s.filter(O=>[O.label,...O.keywords??[]].some(ve=>ve.toLocaleLowerCase().includes(R))):s},[s,i]),U=B.useCallback(R=>{D||P(R),R&&N(""),l?.(R)},[D,l]),ce=B.useCallback(R=>{c(R),t&&U(!1)},[t,U,c]);return T("div",{"data-slot":"command-palette",className:n("contents",e),...h,children:W(nt,{open:x,onOpenChange:U,children:[d?T(st,{render:d}):null,W(it,{showCloseButton:!1,size:"small","aria-label":typeof f=="string"?void 0:"Command menu",className:"max-w-xl gap-0 p-0",children:[W(lt,{className:"sr-only",children:[T(dt,{children:f}),o?T(ct,{children:o}):null]}),T(pt,{className:"overflow-hidden",children:W(re.Root,{items:L,filter:()=>!0,open:!0,autoHighlight:!0,inputValue:i,onInputValueChange:N,onValueChange:R=>{R&&ce(R)},itemToStringLabel:R=>[R.label,...R.keywords??[]].join(" "),itemToStringValue:R=>R.id,children:[W("div",{className:"flex items-center gap-2 border-b border-border-subtle px-4",children:[T(Ia,{"aria-hidden":"true",className:"size-4 shrink-0 text-text-supporting"}),T(re.Input,{"aria-label":"Search commands",autoFocus:!0,className:"ds-type-control h-12 min-w-0 flex-1 bg-transparent outline-none placeholder:text-text-supporting",onKeyDown:R=>{R.key==="Escape"&&(R.preventDefault(),U(!1))},placeholder:m})]}),L.length===0?T("div",{role:"status",className:"px-3 py-8 text-center text-sm text-text-supporting",children:r}):null,T(re.List,{"aria-label":"Commands",className:"max-h-[min(24rem,calc(100vh-10rem))] overflow-y-auto p-2 outline-none",children:L.map((R,O)=>W(B.Fragment,{children:[R.group&&(O===0||L[O-1]?.group!==R.group)?T("div",{role:"presentation",className:"px-3 pb-1 pt-3 text-xs font-semibold uppercase tracking-wide text-text-supporting first:pt-1",children:R.group}):null,W(re.Item,{index:O,value:R,disabled:R.disabled,className:"data-highlighted:bg-surface-muted data-highlighted:text-text-primary relative flex min-w-0 items-start gap-3 rounded-md px-3 py-2.5 text-left outline-none data-disabled:pointer-events-none data-disabled:opacity-50",children:[R.icon?T("span",{className:"mt-0.5 flex size-4 shrink-0 items-center justify-center text-text-supporting",children:R.icon}):null,W("span",{className:"min-w-0 flex-1",children:[T("span",{className:"block truncate text-sm font-medium",children:R.label}),R.description?T("span",{className:"mt-0.5 block truncate text-xs text-text-supporting",children:R.description}):null]}),R.shortcut?T("span",{className:"shrink-0 text-xs text-text-supporting",children:R.shortcut}):null]})]},R.id))})]})})]})]})})}import{jsx as J,jsxs as Pe}from"react/jsx-runtime";function Vo({className:e,...t}){return J("section",{"data-slot":"data-panel",className:n("min-w-0 overflow-hidden rounded-[var(--ds-radius-surface)] border border-border-default bg-surface text-text-primary shadow-[var(--ds-shadow-raised)]",e),...t})}function _o({title:e,description:t,status:a,actions:o,className:r,...s}){return Pe("header",{"data-slot":"data-panel-header",className:n("flex min-w-0 items-start justify-between gap-4 border-b border-border-subtle px-[var(--ds-surface-padding)] py-3",r),...s,children:[Pe("div",{className:"min-w-0",children:[Pe("div",{className:"flex flex-wrap items-center gap-2",children:[J("h2",{className:"ds-type-card-title",children:e}),a]}),t?J("p",{className:"ds-type-metadata mt-0.5 text-text-supporting",children:t}):null]}),o?J("div",{className:"shrink-0",children:o}):null]})}function Wo({padded:e=!1,className:t,...a}){return J("div",{"data-slot":"data-panel-content","data-padded":e?"true":void 0,className:n(e&&"p-[var(--ds-surface-padding)]",t),...a})}function $o({className:e,...t}){return J("footer",{"data-slot":"data-panel-footer",className:n("border-t border-border-subtle px-[var(--ds-surface-padding)] py-3 ds-type-metadata text-text-supporting",e),...t})}import{ArrowLeft as Aa}from"lucide-react";import{jsx as Ea,jsxs as Ma}from"react/jsx-runtime";function Yo({label:e,className:t,...a}){return Ma("a",{"data-slot":"detail-back-link",className:n("inline-flex h-8 w-fit items-center gap-2 rounded-md px-2 text-sm font-medium text-text-supporting outline-none transition-colors hover:bg-surface-muted hover:text-text-primary focus-visible:ring-[3px] focus-visible:ring-focus/45",t),...a,children:[Ea(Aa,{className:"size-4","aria-hidden":"true"}),e]})}import{jsx as Qt,jsxs as La}from"react/jsx-runtime";function Jo({children:e,clearAllLabel:t="Clear all",className:a,onClearAll:o,...r}){return La("div",{"data-slot":"filter-bar",className:n("flex min-w-0 flex-wrap items-center gap-2 rounded-[var(--ds-radius-control)] border border-border-subtle bg-surface-muted/60 px-2 py-1.5",a),role:"group","aria-label":r["aria-label"]??"Active filters",...r,children:[Qt("div",{className:"flex min-w-0 flex-1 flex-wrap items-center gap-1.5",children:e}),o?Qt(z,{type:"button",variant:"ghost",size:"sm",onClick:o,className:"shrink-0",children:t}):null]})}import*as v from"react";import{PanelLeftIcon as Ba,Search as Xt,X as Oa}from"lucide-react";import{Fragment as Ka,jsx as g,jsxs as E}from"react/jsx-runtime";var ke="conscia_sidebar_state",za=3600*24*30,Ha="b",De="conscia-sidebar-open:v1",Te="conscia-sidebar-state-change";function Jt(e){return e==="true"?!0:e==="false"?!1:null}function Va(){if(typeof document>"u")return null;try{let a=window.localStorage.getItem(De),o=Jt(a);if(o!==null)return o}catch{}let e=document.cookie.split("; ").find(a=>a.startsWith(`${ke}=`));if(!e)return null;let t=e.slice(ke.length+1);return Jt(t)}function Zt(e){try{window.localStorage.setItem(De,String(e))}catch{}document.cookie=`${ke}=${e}; path=/; max-age=${za}`,window.dispatchEvent(new Event(Te))}function _a(e){function t(a){a.key===De&&e()}return window.addEventListener(Te,e),window.addEventListener("storage",t),()=>{window.removeEventListener(Te,e),window.removeEventListener("storage",t)}}var ea=v.createContext(null);function ne(){let e=v.useContext(ea);if(!e)throw new Error("useAppShell must be used within AppShell.");return e}function Wa(e){let[t,a]=v.useState(!1);return v.useEffect(()=>{let o=window.matchMedia(e),r=()=>a(o.matches);return r(),o.addEventListener("change",r),()=>o.removeEventListener("change",r)},[e]),t}function $a(){let e=v.useRef(null),t=v.useCallback(r=>{let s=e.current;if(!s)return()=>{};let l=()=>r();s.addEventListener("scroll",l,{passive:!0});let c=typeof ResizeObserver>"u"?null:new ResizeObserver(r);return c?.observe(s),window.addEventListener("resize",r),()=>{s.removeEventListener("scroll",l),c?.disconnect(),window.removeEventListener("resize",r)}},[]),a=v.useCallback(()=>{let r=e.current;if(!r)return 0;let s=r.scrollTop>1,l=r.scrollHeight-r.clientHeight-r.scrollTop>1;return(s?1:0)|(l?2:0)},[]),o=v.useSyncExternalStore(t,a,()=>0);return{contentRef:e,hasScrollBefore:!!(o&1),hasScrollAfter:!!(o&2)}}function pr({defaultSidebarOpen:e=!0,headerLayout:t="split",children:a,className:o,style:r,...s}){let l=Wa("(max-width: 1023px)"),[c,p]=v.useState(e),[m,f]=v.useState("left"),[d,h]=v.useState(!1);v.useEffect(()=>{function P(){p(Va()??e)}let D=_a(P);return queueMicrotask(P),D},[e]);let i=v.useCallback(P=>{Zt(P)},[]),N=v.useCallback(()=>{if(l){h(P=>!P);return}Zt(!c)},[l,c]);v.useEffect(()=>{let P=D=>{D.key.toLowerCase()===Ha&&(D.metaKey||D.ctrlKey)&&(D.preventDefault(),N())};return window.addEventListener("keydown",P),()=>window.removeEventListener("keydown",P)},[N]);let k=v.useMemo(()=>({sidebarState:c?"expanded":"collapsed",sidebarSide:m,setSidebarSide:f,sidebarOpen:c,setSidebarOpen:i,mobileOpen:d,setMobileOpen:h,isMobile:l,toggleSidebar:N}),[l,d,i,c,m,N]);return g(ea.Provider,{value:k,children:g(Rt,{delayDuration:120,children:g("div",{"data-slot":"app-shell","data-sidebar-state":c?"expanded":"collapsed","data-sidebar-side":m,"data-header-layout":t,suppressHydrationWarning:!0,className:n("group/shell min-h-svh bg-canvas text-text-primary","[--ds-app-sidebar-width:var(--ds-sidebar-width)] [--ds-app-sidebar-width-mobile:var(--ds-sidebar-width-mobile)] data-[sidebar-state=collapsed]:[--ds-app-sidebar-width:3.5rem]",o),style:r,...s,children:a})})})}function ur({side:e="left",variant:t="auto",className:a,children:o,title:r="Application navigation",description:s="Primary product navigation.","aria-label":l,"aria-labelledby":c,...p}){let{mobileOpen:m,setMobileOpen:f,setSidebarSide:d}=ne();return v.useEffect(()=>{d(e)},[d,e]),E(Ka,{children:[g(gt,{side:e,open:m,onOpenChange:f,children:E(ft,{side:e,"data-sidebar-variant":t,className:"w-[var(--ds-sidebar-width-mobile)] border-sidebar-border bg-sidebar-canvas p-0 text-sidebar-primary-text [&>[data-slot=sheet-close]]:right-3 [&>[data-slot=sheet-close]]:top-3 [&>[data-slot=sheet-close]]:text-sidebar-secondary-text [&>[data-slot=sheet-close]]:hover:text-sidebar-primary-text",children:[E(vt,{className:"sr-only",children:[g(ht,{children:r}),g(xt,{children:s})]}),g("div",{className:"flex h-full min-h-0 flex-col",children:o})]})}),g("aside",{"data-slot":"app-sidebar","data-side":e,"data-sidebar-variant":t,"aria-label":c?void 0:l??r,"aria-labelledby":c,className:n("fixed inset-y-0 z-20 hidden w-[var(--ds-app-sidebar-width)] shrink-0 flex-col border-sidebar-border bg-sidebar-canvas text-sidebar-primary-text transition-[width] duration-200 ease-linear lg:flex",e==="left"?"left-0 border-r":"right-0 border-l","group-data-[sidebar-state=collapsed]/shell:w-[var(--ds-app-sidebar-width)]","group-data-[header-layout=integrated]/shell:top-[var(--ds-topbar-height)]",a),...p,children:o})]})}function mr({className:e,...t}){return g("div",{"data-slot":"app-sidebar-header",className:n("flex min-h-[var(--ds-topbar-height)] min-w-0 shrink-0 items-center overflow-hidden border-b border-sidebar-border bg-sidebar-header px-3",e),...t})}function br({className:e,...t}){let{contentRef:a,hasScrollBefore:o,hasScrollAfter:r}=$a();return g("div",{"data-slot":"app-sidebar-content","data-scroll-before":o?"true":void 0,"data-scroll-after":r?"true":void 0,ref:a,className:n("relative flex min-h-0 min-w-0 flex-1 flex-col gap-[var(--ds-sidebar-group-gap)] overflow-x-clip overflow-y-auto bg-sidebar-content px-[var(--ds-sidebar-content-padding-x)] py-[var(--ds-sidebar-content-padding-y)]",e),...t})}function gr({className:e,...t}){return g("div",{"data-slot":"app-sidebar-footer",className:n("mt-auto flex min-w-0 shrink-0 flex-col gap-2 overflow-hidden border-t border-sidebar-border bg-sidebar-footer p-[var(--ds-sidebar-footer-padding)]",e),...t})}function fr({label:e,description:t,icon:a,collapsedLabel:o,className:r}){return E("div",{"data-slot":"product-identity",className:n("flex min-w-0 items-center gap-2",r),children:[a?g("div",{className:"flex size-7 shrink-0 items-center justify-center rounded-[var(--ds-radius-control)] bg-sidebar-hover text-sidebar-icon",children:a}):null,o&&!a?g("div",{className:"hidden shrink-0 items-center justify-center rounded-[var(--ds-radius-control)] bg-sidebar-hover px-2 py-1 text-xs font-semibold text-sidebar-primary-text group-data-[sidebar-state=collapsed]/shell:flex",children:o}):null,E("div",{className:"min-w-0 group-data-[sidebar-state=collapsed]/shell:hidden",children:[g("div",{className:"ds-type-navigation truncate font-semibold text-sidebar-primary-text",children:e}),t?g("div",{className:"ds-type-metadata truncate text-sidebar-metadata-text",children:t}):null]})]})}function vr({className:e,...t}){return g(bt,{"data-slot":"app-sidebar-separator",className:n("bg-sidebar-border",e),...t})}function se({label:e,count:t,children:a,className:o}){let r=v.useId();return E("section",{"data-slot":"navigation-group","aria-labelledby":e?r:void 0,className:n("flex min-w-0 flex-col gap-[var(--ds-sidebar-label-gap)]",o),children:[e?E("div",{"data-slot":"navigation-group-label",id:r,className:"flex min-h-6 items-center gap-2 px-2 pb-0 pt-2 text-[length:var(--ds-sidebar-group-label-size)] font-semibold uppercase leading-[var(--ds-sidebar-group-label-line-height)] tracking-[0.04em] text-sidebar-group-label group-data-[sidebar-state=collapsed]/shell:hidden",children:[e,t!==void 0?g("span",{className:"ds-type-metadata ml-auto shrink-0 font-medium normal-case tracking-normal text-sidebar-group-count",children:t}):null]}):null,g("div",{className:"flex min-w-0 flex-col gap-[var(--ds-sidebar-item-gap)]",children:a})]})}function Ga(e){return n("ds-type-navigation flex min-h-[var(--ds-sidebar-item-height-touch)] min-w-0 cursor-pointer items-center gap-2 rounded-[var(--ds-radius-control)] px-2 font-medium text-sidebar-secondary-text outline-none transition-colors duration-150 lg:h-[var(--ds-sidebar-item-height)] lg:min-h-0","hover:bg-sidebar-hover hover:text-sidebar-primary-text","focus-visible:ring-[3px] focus-visible:ring-sidebar-focus-ring","disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:cursor-not-allowed aria-disabled:opacity-50","group-data-[sidebar-state=collapsed]/shell:justify-center group-data-[sidebar-state=collapsed]/shell:px-0","[&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:stroke-[1.75] [&>svg]:text-sidebar-icon",e&&"bg-sidebar-active-background font-semibold text-sidebar-active-foreground hover:bg-sidebar-active-background hover:text-sidebar-active-foreground [&>svg]:text-sidebar-active-foreground")}var ie=v.forwardRef(function({active:t=!1,tooltip:a,render:o,type:r,"aria-expanded":s,className:l,children:c,...p},m){let{sidebarState:f,sidebarSide:d,isMobile:h}=ne(),i=Re({defaultTagName:"button",render:o,ref:m,props:{"data-slot":"navigation-item","data-active":t?"true":void 0,"aria-expanded":s,type:o?void 0:r??"button",className:n(Ga(t),l),...p,...o?{}:{children:c}}});return a?E(Nt,{children:[g(yt,{render:i}),g(wt,{side:d==="left"?"right":"left",align:"center",hidden:f!=="collapsed"||h,children:a})]}):i}),ta=v.forwardRef(function({active:t=!1,render:a,className:o,...r},s){return Re({defaultTagName:"a",render:a,ref:s,props:{"data-slot":"navigation-sub-item","data-active":t?"true":void 0,className:n("ds-type-navigation flex min-h-[var(--ds-sidebar-item-height-touch)] min-w-0 cursor-pointer items-center gap-2 rounded-[var(--ds-radius-control)] px-2 text-sidebar-secondary-text outline-none transition-colors duration-150 lg:h-[calc(var(--ds-sidebar-item-height)-0.25rem)] lg:min-h-0","hover:bg-sidebar-hover hover:text-sidebar-primary-text focus-visible:ring-[3px] focus-visible:ring-sidebar-focus-ring","group-data-[sidebar-state=collapsed]/shell:hidden [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:stroke-[1.75] [&>svg]:text-sidebar-icon",t&&"bg-sidebar-active-background font-semibold text-sidebar-active-foreground hover:bg-sidebar-active-background hover:text-sidebar-active-foreground [&>svg]:text-sidebar-active-foreground",o),...r}})});function aa({className:e,...t}){return g("div",{"data-slot":"navigation-sub-list",className:n("ml-4 flex min-w-0 flex-col gap-[var(--ds-sidebar-item-gap)] border-l border-sidebar-border pl-2 group-data-[sidebar-state=collapsed]/shell:hidden",e),...t})}function hr({className:e,"aria-label":t,onClick:a,...o}){let{isMobile:r,mobileOpen:s,sidebarOpen:l,toggleSidebar:c}=ne(),p={...o,"data-slot":"sidebar-trigger",type:"button",variant:"ghost",className:n("shrink-0 cursor-pointer text-text-supporting hover:bg-surface-muted hover:text-text-primary focus-visible:ring-focus",e),"aria-label":t??"Toggle navigation","aria-expanded":r?s:l,onClick:m=>{a?.(m),c()}};return E(Q,{...p,children:[g(Ba,{}),g("span",{className:"sr-only",children:"Toggle navigation"})]})}function xr({expanded:e,defaultExpanded:t=!1,onExpandedChange:a,triggerLabel:o="Search navigation",shortcut:r,className:s,onKeyDown:l,...c}){let[p,m]=v.useState(t),f=e??p,d=v.useRef(null),h=v.useRef(null),i=v.useRef(!1),N=v.useCallback(k=>{e===void 0&&m(k),a?.(k)},[e,a]);return v.useEffect(()=>{f?queueMicrotask(()=>d.current?.focus()):i.current&&queueMicrotask(()=>h.current?.focus()),i.current=!0},[f]),f?E("div",{"data-slot":"sidebar-search","data-expanded":"true",className:n("flex min-h-[var(--ds-sidebar-item-height-touch)] items-center gap-2 rounded-[var(--ds-radius-control)] border border-sidebar-border bg-sidebar-search px-2 text-sidebar-primary-text shadow-[var(--ds-shadow-raised)] lg:min-h-[var(--ds-sidebar-item-height)]",s),children:[g(Xt,{className:"size-4 shrink-0 text-sidebar-icon"}),g(ut,{ref:d,type:"search",className:"ds-type-control h-auto min-w-0 flex-1 border-0 bg-transparent px-0 py-1 shadow-none focus-visible:border-0 focus-visible:ring-0",onKeyDown:k=>{k.key==="Escape"&&(k.preventDefault(),N(!1)),l?.(k)},...c}),g("button",{type:"button","data-slot":"sidebar-search-close",className:"grid size-7 shrink-0 cursor-pointer place-items-center rounded-[var(--ds-radius-control)] text-sidebar-secondary-text outline-none transition-colors hover:bg-sidebar-hover hover:text-sidebar-primary-text focus-visible:ring-2 focus-visible:ring-sidebar-focus-ring",onClick:()=>{N(!1)},"aria-label":"Close search",children:g(Oa,{className:"size-4"})})]}):E("button",{ref:h,type:"button","data-slot":"sidebar-search-trigger",className:n("ds-type-navigation flex min-h-[var(--ds-sidebar-item-height-touch)] w-full cursor-pointer items-center gap-2 rounded-[var(--ds-radius-control)] px-2 text-left font-medium text-sidebar-secondary-text outline-none transition-colors hover:bg-sidebar-hover hover:text-sidebar-primary-text focus-visible:ring-[3px] focus-visible:ring-sidebar-focus-ring lg:min-h-[var(--ds-sidebar-item-height)]","group-data-[sidebar-state=collapsed]/shell:justify-center group-data-[sidebar-state=collapsed]/shell:px-0",s),onClick:()=>N(!0),"aria-label":o,children:[g(Xt,{className:"size-4 shrink-0 text-sidebar-icon"}),g("span",{className:"truncate group-data-[sidebar-state=collapsed]/shell:hidden",children:o}),r?g(mt,{className:"ds-type-metadata ml-auto border-sidebar-border bg-transparent text-sidebar-metadata-text group-data-[sidebar-state=collapsed]/shell:hidden",children:r}):null]})}function Rr({className:e,...t}){return g("div",{"data-slot":"main-region",className:n("flex min-h-svh min-w-0 w-full flex-1 flex-col transition-[padding] duration-200 ease-linear","group-data-[sidebar-side=left]/shell:lg:pl-[var(--ds-app-sidebar-width)] group-data-[sidebar-side=right]/shell:lg:pr-[var(--ds-app-sidebar-width)]","group-data-[header-layout=integrated]/shell:pt-[var(--ds-topbar-height)]",e),...t})}function Nr({className:e,...t}){return g("header",{"data-slot":"app-header",className:n("fixed inset-x-0 top-0 z-30 flex h-[var(--ds-topbar-height)] min-h-[var(--ds-topbar-height)] items-center gap-2 border-b border-border-subtle bg-canvas/96 px-[var(--ds-topbar-padding-x)] backdrop-blur supports-[backdrop-filter]:bg-canvas/88 md:gap-3 md:px-[var(--ds-topbar-padding-x-wide)]",e),...t})}function yr({className:e,...t}){return g("div",{"data-slot":"app-header-start",className:n("flex min-w-0 flex-1 items-center gap-2",e),...t})}function wr({mobileTrigger:e,children:t,className:a,...o}){return E("div",{"data-slot":"app-header-search",className:n("ml-auto flex shrink-0 items-center",a),...o,children:[g("div",{className:"hidden w-[min(22rem,32vw)] md:block",children:t}),g("div",{className:"md:hidden",children:e})]})}function Sr({className:e,...t}){return g("div",{"data-slot":"app-header-actions",className:n("flex shrink-0 items-center gap-1",e),...t})}function Cr({className:e,...t}){return g("header",{"data-slot":"top-bar",className:n("sticky top-0 z-10 flex h-[var(--ds-topbar-height)] min-h-[var(--ds-topbar-height)] shrink-0 items-center justify-between gap-3 border-b border-border-subtle bg-canvas/96 px-[var(--ds-topbar-padding-x)] backdrop-blur md:px-[var(--ds-topbar-padding-x-wide)]","supports-[backdrop-filter]:bg-canvas/88",e),...t})}function Pr({width:e="full",className:t,...a}){return g("main",{"data-slot":"page-frame","data-width":e,className:n("min-w-0 w-full flex-1 px-3 py-[var(--ds-space-section)] md:px-[var(--ds-space-page)]",e==="wide"&&"mx-auto w-full max-w-[86rem]",e==="focused"&&"mx-auto w-full max-w-[64rem]",e==="reading"&&"mx-auto w-full max-w-[48rem]",t),...a})}function kr({className:e,...t}){return g("div",{"data-slot":"page-content",className:n("flex min-w-0 flex-col gap-[var(--ds-space-section)]",e),...t})}function Tr({className:e,...t}){return g("div",{"data-slot":"page-boundary",className:n("rounded-[var(--ds-radius-surface)] border border-border-subtle bg-surface p-[var(--ds-surface-padding)]",e),...t})}function Dr({className:e,...t}){return g("aside",{"data-slot":"inspector-region",className:n("w-full border-l border-border-subtle bg-surface md:w-[20rem] xl:w-[24rem]",e),...t})}import{jsx as Y,jsxs as oa}from"react/jsx-runtime";function Mr({className:e,...t}){return Y("div",{"data-slot":"activity-list",className:n("divide-y divide-border-subtle",e),...t})}function Lr({leading:e,icon:t,title:a,description:o,metadata:r,trailing:s,status:l,layout:c="standard",className:p,...m}){let f=e!==void 0||t!==void 0,d=s??l;return oa("div",{"data-slot":"activity-item","data-layout":c,className:n("grid gap-3 py-3",f&&d&&"grid-cols-[auto_minmax(0,1fr)_auto]",f&&!d&&"grid-cols-[auto_minmax(0,1fr)]",!f&&d&&"grid-cols-[minmax(0,1fr)_auto]",!f&&!d&&"grid-cols-1",c==="compact"&&"py-2",p),...m,children:[e!==void 0?Y("div",{"data-slot":"activity-item-leading",className:"shrink-0",children:e}):t!==void 0?Y("div",{"data-slot":"activity-item-leading",className:"flex size-8 items-center justify-center rounded-md bg-neutral-background text-neutral-foreground [&_svg]:size-4",children:t}):null,oa("div",{className:"min-w-0",children:[Y("div",{className:"ds-type-ui font-medium text-text-primary",children:a}),o?Y("div",{className:"ds-type-ui mt-0.5 text-text-supporting",children:o}):null,r?Y("div",{className:"ds-type-metadata mt-1 text-text-supporting",children:r}):null]}),d?Y("div",{"data-slot":"activity-item-trailing",className:"shrink-0",children:d}):null]})}import{CheckCircle2 as Fa,CircleAlert as Ua,CircleX as Ya,Info as qa}from"lucide-react";import{jsx as q,jsxs as Ie}from"react/jsx-runtime";function Vr({className:e,...t}){return q("ul",{"data-slot":"attention-list",className:n("grid gap-2",e),...t})}var ja={neutral:"border-neutral-border bg-neutral-background text-neutral-foreground",information:"border-information-border bg-information-background text-information-foreground",success:"border-success-border bg-success-background text-success-foreground",warning:"border-warning-border bg-warning-background text-warning-foreground",danger:"border-danger-border bg-danger-background text-danger-foreground"};function _r({title:e,description:t,metadata:a,action:o,tone:r="neutral",severityLabel:s=`${r[0].toUpperCase()}${r.slice(1)}`,icon:l,className:c,...p}){let m=r==="danger"?Ya:r==="warning"?Ua:r==="success"?Fa:qa;return Ie("li",{"data-slot":"attention-item","data-tone":r,className:n("grid grid-cols-[auto_minmax(0,1fr)_auto] items-start gap-3 rounded-[var(--ds-radius-control)] border px-3 py-2.5",ja[r],c),...p,children:[q("span",{className:"mt-0.5 [&>svg]:size-4","aria-hidden":"true",children:l??q(m,{})}),Ie("div",{className:"min-w-0",children:[Ie("span",{className:"sr-only",children:[s,": "]}),q("div",{className:"ds-type-ui font-medium",children:e}),t?q("div",{className:"ds-type-metadata mt-0.5 opacity-85",children:t}):null,a?q("div",{className:"ds-type-metadata mt-1 opacity-85",children:a}):null]}),o?q("div",{className:"shrink-0",children:o}):null]})}import*as Ae from"react";import{jsx as $,jsxs as be}from"react/jsx-runtime";function Fr({trigger:e,title:t,description:a,children:o,confirmLabel:r="Confirm",cancelLabel:s="Cancel",confirmVariant:l="destructive",pending:c=!1,onConfirm:p,onError:m}){let[f,d]=Ae.useState(!1),[h,i]=Ae.useState(!1),N=c||h;async function k(){if(!N){i(!0);try{await p(),d(!1)}catch(P){m?.(P)}finally{i(!1)}}}return be(St,{open:f,onOpenChange:d,children:[$(Ct,{render:e,children:e}),be(Pt,{children:[be(kt,{children:[$(Tt,{children:t}),$(Dt,{children:a})]}),$(It,{children:o}),be(At,{children:[$(Et,{render:$(z,{type:"button",variant:"outline",disabled:N}),children:s}),$(Mt,{render:$(z,{type:"button",variant:l,disabled:N,onClick:k}),children:N?"Working...":r})]})]})]})}import*as Z from"react";import{Check as Qa,Copy as Xa}from"lucide-react";import{jsx as H,jsxs as Ee}from"react/jsx-runtime";function Jr({snippets:e,defaultValue:t,copyLabel:a="Copy code",className:o,...r}){let s=t??e[0]?.value??"",[l,c]=Z.useState(s),[p,m]=Z.useState(null),[f,d]=Z.useState(!1),h=Z.useId(),i=e.find(N=>N.value===l)??e[0];return i?H("div",{"data-slot":"code-block",className:n("overflow-hidden rounded-lg border border-border-subtle bg-surface",o),...r,children:Ee(Lt,{value:i.value,onValueChange:c,variant:"segmented",className:"gap-0",children:[Ee("div",{className:"flex items-center justify-between gap-3 border-b border-border-subtle bg-surface-muted px-3 py-2",children:[H(Bt,{variant:"segmented",size:"compact","aria-label":"Code language",children:e.map(N=>H(Ot,{value:N.value,children:N.label},N.value))}),Ee(z,{type:"button",variant:"ghost",size:"sm",onClick:async()=>{try{await navigator.clipboard.writeText(i.code),m(i.value),d(!1)}catch{m(null),d(!0)}},"aria-describedby":h,children:[p===i.value?H(Qa,{}):H(Xa,{}),p===i.value?"Copied":a]}),H("span",{id:h,className:"sr-only",role:"status","aria-live":"polite",children:f?"Code could not be copied. Select the code and copy it manually.":p===i.value?"Code copied to clipboard.":""})]}),e.map(N=>H(zt,{value:N.value,className:"m-0",children:H("pre",{"aria-label":`${N.label} code example`,tabIndex:0,className:"max-h-[32rem] overflow-auto p-4 text-sm leading-6 outline-none focus-visible:ring-[3px] focus-visible:ring-inset focus-visible:ring-focus/50",children:H("code",{children:N.code})})},N.value))]})}):null}import{jsx as Me}from"react/jsx-runtime";function on({className:e,...t}){return Me(Ht,{"data-slot":"inventory-surface",className:n("gap-0 overflow-hidden py-0",e),...t})}function rn({className:e,...t}){return Me("div",{"data-slot":"inventory-desktop",className:n("hidden lg:block",e),...t})}function nn({className:e,...t}){return Me("div",{"data-slot":"inventory-mobile",className:n("divide-y divide-border-subtle lg:hidden",e),...t})}import{jsx as ee,jsxs as ra}from"react/jsx-runtime";function pn({columns:e=4,className:t,...a}){return ee("div",{"data-slot":"metric-band","data-columns":e,className:n("grid grid-cols-2 border-b border-border-subtle",e===2&&"lg:grid-cols-2",e===3&&"lg:grid-cols-3",e===4&&"lg:grid-cols-4",e===5&&"lg:grid-cols-5",t),...a})}function un({label:e,value:t,detail:a,icon:o,iconClassName:r,loading:s=!1,className:l,...c}){return ra("div",{"data-slot":"metric-band-item",className:n("flex min-h-28 flex-col items-start gap-3 border-r border-border-subtle p-4 last:border-r-0 sm:flex-row sm:items-center sm:gap-4 sm:p-5","[&:nth-child(-n+2)]:border-b lg:[&:nth-child(-n+2)]:border-b-0",l),...c,children:[o?ee("div",{className:n("flex size-10 shrink-0 items-center justify-center rounded-md bg-neutral-background text-neutral-foreground [&_svg]:size-5",r),children:o}):null,ra("div",{className:"grid min-w-0 gap-1",children:[ee("div",{className:"ds-type-ui text-text-supporting",children:e}),s?ee(me,{className:"h-7 w-14"}):ee("div",{className:"text-2xl font-semibold tracking-tight",children:t??0}),a?ee("div",{className:"ds-type-metadata text-text-supporting",children:a}):null]})]})}import*as na from"react";import{ArrowDown as Ja,ArrowUp as Za,Minus as eo}from"lucide-react";import{Fragment as to,jsx as M,jsxs as j}from"react/jsx-runtime";function hn({direction:e,sentiment:t="neutral",value:a,accessibleLabel:o,className:r,...s}){let l=e==="up"?Za:e==="down"?Ja:eo;return j("span",{"data-slot":"metric-trend","data-direction":e,"data-sentiment":t,role:"img","aria-label":o,className:n("inline-flex items-center gap-1 ds-type-metadata font-medium text-trend-neutral",t==="positive"&&"text-trend-positive",t==="negative"&&"text-trend-negative",r),...s,children:[M(l,{"aria-hidden":"true",className:"size-3.5 stroke-[2]"}),M("span",{"aria-hidden":"true",children:a})]})}function xn({label:e,description:t,value:a,unit:o,trend:r,status:s,emphasis:l="supporting",loading:c=!1,visualization:p,visualizationSummary:m,className:f,...d}){let h=na.useId();return j("section",{"data-slot":"metric-card","data-emphasis":l,"aria-labelledby":h,className:n("flex min-w-0 flex-col overflow-hidden rounded-[var(--ds-radius-surface)] border border-border-default bg-surface text-text-primary shadow-[var(--ds-shadow-raised)]",l==="primary"?"min-h-80":"min-h-40",f),...d,children:[j("div",{className:"flex items-start justify-between gap-4 px-[var(--ds-surface-padding)] pt-[var(--ds-surface-padding)]",children:[j("div",{className:"min-w-0",children:[M("h2",{id:h,className:"ds-type-card-title",children:e}),t?M("p",{className:"ds-type-metadata mt-0.5 text-text-supporting",children:t}):null]}),s?M("div",{className:"shrink-0",children:s}):null]}),j("div",{className:"flex flex-wrap items-baseline gap-x-2 gap-y-1 px-[var(--ds-surface-padding)] pt-3",children:[c?M(me,{className:n("h-8",l==="primary"?"w-24":"w-16")}):j(to,{children:[M("span",{className:n("font-semibold tabular-nums tracking-tight",l==="primary"?"text-4xl":"text-2xl"),children:a??0}),o?M("span",{className:"ds-type-ui text-text-supporting",children:o}):null]}),r?M("div",{className:"ml-1",children:r}):null]}),p?j("figure",{className:"mt-auto min-h-0 flex-1 pt-4",children:[M("div",{"data-slot":"metric-card-visualization",className:"h-full min-h-20 w-full",children:p}),M("figcaption",{className:"sr-only",children:m})]}):null]})}import{jsx as le,jsxs as Le}from"react/jsx-runtime";function wn({title:e,description:t,status:a,metadata:o,actions:r,action:s,actionNode:l,className:c,...p}){let m=r??l??(s?le("a",{className:"ds-type-button inline-flex h-[var(--ds-control-height)] items-center justify-center gap-2 whitespace-nowrap rounded-md bg-action px-3 py-2 text-action-foreground shadow-xs outline-none transition-colors hover:bg-action-hover focus-visible:border-focus focus-visible:ring-3 focus-visible:ring-focus/50",href:s.href,children:s.label}):null);return Le("header",{"data-slot":"page-header",className:n("flex flex-col gap-3 border-b border-border-subtle bg-canvas px-5 py-4 lg:flex-row lg:items-start lg:justify-between",c),...p,children:[Le("div",{className:"min-w-0",children:[Le("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[le("h1",{className:"ds-type-page-title truncate",children:e}),a]}),t?le("p",{className:"ds-type-ui mt-1 max-w-3xl text-text-supporting",children:t}):null,o?le("div",{className:"ds-type-metadata mt-2 text-text-supporting",children:o}):null]}),m?le("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:m}):null]})}import{jsx as Be,jsxs as Oe}from"react/jsx-runtime";function kn({search:e,filters:t,viewControls:a,bulkActions:o,className:r,children:s,...l}){return Oe("div",{"data-slot":"page-toolbar",className:n("grid gap-2 border-b border-border-subtle bg-canvas px-5 py-3 lg:grid-cols-[minmax(0,1fr)_auto] lg:items-center",r),...l,children:[Oe("div",{className:"flex min-w-0 flex-1 flex-col gap-2 sm:flex-row sm:items-center",children:[e?Be("div",{className:"min-w-0 flex-1 sm:min-w-48 sm:max-w-sm",children:e}):null,t?Be("div",{className:"flex w-full flex-col gap-2 sm:w-auto sm:flex-row sm:flex-wrap sm:items-center",children:t}):null]}),Oe("div",{className:"flex min-h-[var(--ds-control-height)] flex-wrap items-center gap-2 lg:justify-end",children:[o?Be("div",{"data-slot":"page-toolbar-bulk-actions",className:"contents",children:o}):null,a,s]})]})}import*as ge from"react";import{jsx as G,jsxs as pa}from"react/jsx-runtime";var ia=Ke,la=Fe,ze="conscia-preferences",He=new Map;function ao(e,t,a){if(typeof window>"u")return t;try{let o=e.endsWith(":v1")?e.slice(0,-3):e,r=window.localStorage.getItem(e)??window.localStorage.getItem(o)??He.get(e);return r&&a.includes(r)?r:t}catch{let o=He.get(e);return o&&a.includes(o)?o:t}}function da(e,t){He.set(e,t);try{window.localStorage.setItem(e,t)}catch{}window.dispatchEvent(new Event(ze))}function sa(e,t,a){return ge.useSyncExternalStore(o=>(window.addEventListener("storage",o),window.addEventListener(ze,o),()=>{window.removeEventListener("storage",o),window.removeEventListener(ze,o)}),()=>ao(e,t,a),()=>t)}function Ve(){let e=sa(ia,"system",he),t=sa(la,"comfortable",xe);return{appearance:e,density:t}}function En(){let{appearance:e,density:t}=Ve();return ge.useEffect(()=>{let a=window.matchMedia("(prefers-color-scheme: dark)"),o=()=>Ue(document.documentElement,e,t,a.matches);return o(),a.addEventListener("change",o),()=>a.removeEventListener("change",o)},[e,t]),null}function Mn({nonce:e}){return G("script",{nonce:e,dangerouslySetInnerHTML:{__html:Ye()}})}function oo({className:e}){let{appearance:t}=Ve();return G(ca,{className:e,label:"Appearance",value:t,values:he,onChange:a=>da(ia,a)})}function ro({className:e}){let{density:t}=Ve();return G(ca,{className:e,label:"Density",value:t,values:xe,onChange:a=>da(la,a)})}function Ln({className:e}){return pa("div",{className:n("flex flex-col gap-3 text-sm",e),children:[G(oo,{}),G(ro,{})]})}function ca({className:e,label:t,value:a,values:o,onChange:r}){return pa("fieldset",{className:n("flex flex-col gap-2",e),children:[G("legend",{className:"text-[var(--ds-metadata)] font-medium text-text-supporting",children:t}),G("div",{className:"grid w-full grid-cols-3 rounded-[var(--ds-radius-control)] bg-surface-muted p-1",children:o.map(s=>G("button",{type:"button","aria-pressed":a===s,suppressHydrationWarning:!0,onClick:()=>r(s),className:"min-w-0 h-7 rounded-[calc(var(--ds-radius-control)-2px)] px-1.5 text-[var(--ds-metadata)] font-medium capitalize text-text-supporting outline-none transition-colors hover:text-text-primary focus-visible:ring-[3px] focus-visible:ring-focus/50 aria-pressed:bg-canvas aria-pressed:text-text-primary aria-pressed:shadow-xs",children:s},s))})]})}import{jsx as _e,jsxs as ua}from"react/jsx-runtime";function Hn({name:e,shortName:t,description:a,size:o="default",className:r,...s}){return ua("div",{"data-slot":"provider-mark",className:n("flex min-w-0 items-center gap-3",r),...s,children:[_e("div",{"aria-hidden":"true",className:n("flex shrink-0 items-center justify-center rounded-md border border-border-subtle bg-surface-muted font-semibold tracking-tight text-text-primary",o==="sm"?"size-8 text-[10px]":"size-10 text-xs"),children:t}),ua("div",{className:"min-w-0",children:[_e("div",{className:"ds-type-ui truncate font-medium text-text-primary",children:e}),a?_e("div",{className:"ds-type-metadata mt-0.5 truncate text-text-supporting",children:a}):null]})]})}import{jsx as I,jsxs as K}from"react/jsx-runtime";function $n({variant:e="plain",title:t,description:a,status:o,metadata:r,actions:s,className:l,children:c,...p}){return K("section",{"data-slot":"resource-summary",className:n("px-5 py-4",e==="plain"&&"border-b border-border-subtle bg-canvas",e==="surface"&&"rounded-[var(--ds-radius-surface)] border border-border-subtle bg-surface",l),...p,children:[K("div",{className:"flex flex-col gap-3 lg:flex-row lg:items-start lg:justify-between",children:[K("div",{className:"min-w-0",children:[t||o?K("div",{className:"flex min-w-0 flex-wrap items-center gap-2",children:[t?I("h2",{className:"ds-type-section-title truncate",children:t}):null,o]}):null,a?I("p",{className:"ds-type-ui mt-1 max-w-3xl text-text-supporting",children:a}):null,r?I("div",{className:"ds-type-metadata mt-2 text-text-supporting",children:r}):null]}),s?I("div",{className:"flex shrink-0 flex-wrap items-center gap-2",children:s}):null]}),c?I("div",{className:"mt-4",children:c}):null]})}function Gn({className:e,...t}){return I("div",{"data-slot":"detail-sections",className:n("flex flex-col gap-[var(--ds-space-section)]",e),...t})}function Kn({variant:e="surface",title:t,description:a,actions:o,className:r,children:s,...l}){return K("section",{"data-slot":"detail-section",className:n(e==="surface"&&"rounded-[var(--ds-radius-surface)] border border-border-subtle bg-surface p-[var(--ds-surface-padding)]",e==="open"&&"border-b border-border-subtle pb-[var(--ds-space-section)]",r),...l,children:[K("div",{className:"flex flex-col gap-2 sm:flex-row sm:items-start sm:justify-between",children:[K("div",{className:"min-w-0",children:[I("h2",{className:"ds-type-section-title",children:t}),a?I("p",{className:"ds-type-ui mt-1 max-w-3xl text-text-supporting",children:a}):null]}),o?I("div",{className:"flex shrink-0 items-center gap-2",children:o}):null]}),s?I("div",{className:"mt-4",children:s}):null]})}function Fn({className:e,...t}){return I("dl",{"data-slot":"key-value-list",className:n("ds-type-ui grid gap-3",e),...t})}function Un({label:e,value:t,breakValue:a=!1}){return K("div",{"data-slot":"key-value-item",className:"flex min-w-0 items-start justify-between gap-4",children:[I("dt",{className:"min-w-0 max-w-[40%] text-text-supporting",children:e}),I("dd",{className:n("min-w-0 flex-1 break-words text-right font-medium",a&&"break-all"),children:t})]})}import*as _ from"react";import{ChevronRight as no}from"lucide-react";import{Fragment as We,jsx as y,jsxs as V}from"react/jsx-runtime";function $e(e){return"items"in e}function so(e){return $e(e)&&e.type==="group"}function io(e){return $e(e)&&e.type!=="group"}function te(e){let t=[e.badgeLabel,e.countLabel].filter(Boolean);return t.length>0?`${e.label}, ${t.join(", ")}`:e.label}function fe({badge:e,count:t}){return e===void 0&&t===void 0?null:V("span",{"aria-hidden":"true",className:"ml-auto flex min-w-0 shrink-0 items-center gap-1.5 text-sidebar-metadata-text",children:[e!==void 0?y("span",{className:"max-w-28 truncate rounded-full bg-sidebar-hover px-1.5 py-0.5 text-[length:var(--ds-metadata)] font-semibold leading-none",children:e}):null,t!==void 0?y("span",{className:"ds-type-metadata tabular-nums",children:t}):null]})}function ma({item:e}){return V(We,{children:[e.icon,!e.icon&&e.collapsedLabel?y("span",{className:"hidden shrink-0 font-semibold group-data-[sidebar-state=collapsed]/shell:inline",children:e.collapsedLabel}):null,y("span",{className:"truncate group-data-[sidebar-state=collapsed]/shell:hidden",children:e.label}),y(fe,{badge:e.badge,count:e.count})]})}function lo(e){if(!e||typeof window>"u")return{};try{let t=window.localStorage.getItem(e);if(!t)return{};let a=JSON.parse(t);return typeof a=="object"&&a!==null?a:{}}catch{return{}}}function es({entries:e,renderLink:t,onNavigate:a,storageKey:o,className:r}){let{isMobile:s,setMobileOpen:l,sidebarSide:c,sidebarState:p}=ne(),[m,f]=_.useState({}),d=_.useRef(!1);_.useEffect(()=>{d.current=!1;let i=lo(o);queueMicrotask(()=>{d.current=!0,f(i)})},[o]),_.useEffect(()=>{if(!(!d.current||!o||!e.some(io)))try{window.localStorage.setItem(o,JSON.stringify(m))}catch{}},[e,m,o]);let h=_.useCallback(()=>{s&&l(!1),a?.()},[s,a,l]);return y("nav",{"data-slot":"sidebar-navigation","aria-label":"Primary navigation",className:n("flex flex-col gap-[var(--ds-sidebar-group-gap)]",r),children:e.map(i=>{if(so(i))return y(se,{label:i.label,count:i.count,children:i.items.map(x=>y(ie,{active:x.active,tooltip:x.label,render:t(x,{"aria-current":x.active?"page":void 0,"aria-label":te(x),onClick:h,children:y(ma,{item:x})})},x.id))},i.id);if(!$e(i))return y(se,{className:i.startsSection?"mt-[var(--ds-sidebar-group-gap)]":void 0,children:y(ie,{active:i.active,tooltip:i.label,render:t(i,{"aria-current":i.active?"page":void 0,"aria-label":te(i),onClick:h,children:y(ma,{item:i})})})},i.id);let N=i.items.some(x=>x.active),k=i.type==="submenu"?i.defaultOpen:!1,P=i.type===void 0?i.active:!1,D=(m[i.id]??k)||N||P;return p==="collapsed"&&!s?V($t,{children:[y(se,{className:i.startsSection?"mt-[var(--ds-sidebar-group-gap)]":void 0,children:y(Kt,{render:V(ie,{"aria-label":`${te(i)} menu`,className:N?"text-sidebar-primary-text":void 0,children:[i.icon,y("span",{className:"sr-only",children:i.label})]})})}),V(Ft,{side:c==="left"?"right":"left",align:"start",sideOffset:8,className:"min-w-56 rounded-[var(--ds-radius-surface)] p-1.5",children:[y(Yt,{className:"px-2 py-1.5 font-semibold text-text-supporting",children:i.label}),y(Gt,{children:i.items.map(x=>y(Ut,{closeOnClick:!0,render:t(x,{"aria-current":x.active?"page":void 0,"aria-label":te(x),onClick:h,children:V(We,{children:[x.icon,y("span",{className:"truncate",children:x.label}),y(fe,{badge:x.badge,count:x.count})]})}),className:n("min-h-9 cursor-pointer rounded-[var(--ds-radius-control)] [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:stroke-[1.75]",x.active&&"bg-selection-background font-semibold text-selection-foreground focus:bg-selection-background focus:text-selection-foreground")},x.id))})]})]},i.id):y(Vt,{open:D,onOpenChange:x=>f(L=>({...L,[i.id]:x})),className:n("group/collapsible",i.startsSection&&"mt-2"),children:V(se,{children:[y(_t,{render:V(ie,{tooltip:i.label,"aria-label":te(i),className:N?"text-sidebar-primary-text":void 0,children:[i.icon,y("span",{className:"truncate group-data-[sidebar-state=collapsed]/shell:hidden",children:i.label}),y(fe,{badge:i.badge,count:i.count}),y(no,{className:"ml-auto transition-transform duration-150 ease-out group-data-[sidebar-state=collapsed]/shell:hidden group-data-[open]/collapsible:rotate-90"})]})}),y(Wt,{"data-slot":"sidebar-collapsible-content",className:"overflow-hidden",children:y(aa,{children:i.items.map(x=>y(ta,{active:x.active,render:t(x,{"aria-current":x.active?"page":void 0,"aria-label":te(x),onClick:h,children:V(We,{children:[x.icon,y("span",{className:"truncate",children:x.label}),y(fe,{badge:x.badge,count:x.count})]})})},x.id))})})]})},i.id)})})}import{jsx as F,jsxs as po}from"react/jsx-runtime";function co({title:e,description:t,action:a,icon:o,className:r,...s}){return po("div",{"data-slot":"state-view",className:n("flex min-h-72 flex-col items-center justify-center gap-3 border-b px-6 py-12 text-center",r),...s,children:[o?F("div",{className:"flex size-10 items-center justify-center rounded-md bg-neutral-background text-neutral-foreground [&_svg]:size-5",children:o}):null,F("h2",{className:"ds-type-section-title",children:e}),t?F("p",{className:"ds-type-ui max-w-md text-text-supporting",children:t}):null,a?F("div",{className:"mt-1",children:a}):null]})}function rs({rows:e=6,columns:t=5}){return F("div",{"data-slot":"loading-rows",className:"border-b",children:Array.from({length:e}).map((a,o)=>F("div",{className:"grid h-[var(--ds-row-height)] items-center gap-4 border-b px-5 last:border-b-0",style:{gridTemplateColumns:`2fr repeat(${Math.max(t-1,1)}, minmax(5rem, 1fr))`},children:Array.from({length:t}).map((r,s)=>F("div",{className:n("h-3 rounded bg-surface-muted",s===0?"w-44":"w-24")},s))},o))})}function ns({title:e,description:t,action:a,className:o,...r}){return F(co,{title:e,description:t,action:a,className:n("bg-danger-background/60",o),role:"alert","aria-live":"assertive",...r})}import*as ga from"react";import{jsx as de,jsxs as ba}from"react/jsx-runtime";function ds({label:e,value:t,maximum:a,valueLabel:o,detail:r,tone:s="neutral",className:l,...c}){let p=ga.useId(),m=typeof a=="number"&&a>0,f=m?Math.min(a,Math.max(0,t)):t,d=m?f/a*100:null,h=o??(m?`${f} of ${a}`:String(f));return ba("div",{"data-slot":"value-meter",className:n("grid gap-2",l),...c,children:[ba("div",{className:"flex items-baseline justify-between gap-4 text-sm",children:[de("span",{id:p,className:"font-medium text-text-primary",children:e}),de("span",{className:"text-text-supporting",children:h})]}),d===null?null:de("div",{role:"progressbar","aria-labelledby":p,"aria-valuemin":0,"aria-valuemax":a??void 0,"aria-valuenow":f,className:"h-2 overflow-hidden rounded-full bg-surface-muted",children:de("div",{className:n("h-full rounded-full bg-neutral-foreground transition-[width]",s==="success"&&"bg-success-foreground",s==="warning"&&"bg-warning-foreground",s==="danger"&&"bg-danger-foreground"),style:{width:`${d}%`}})}),r?de("div",{className:"text-xs text-text-supporting",children:r}):null]})}import*as fa from"react";import{jsx as S,jsxs as ae}from"react/jsx-runtime";function ms({className:e,...t}){return S("div",{"data-slot":"workbench-shell",className:n("min-w-0",e),...t})}function bs({variant:e="secondary",open:t=!0,className:a,...o}){return S("aside",{"data-slot":"workbench-rail","data-variant":e,"data-open":t?"true":"false",className:n("min-w-0",a),...o})}function gs({className:e,...t}){return S("main",{"data-slot":"workbench-main",className:n("min-w-0",e),...t})}function fs({className:e,...t}){return S("aside",{"data-slot":"workbench-inspector",className:n("min-w-0",e),...t})}function vs({className:e,...t}){return S("div",{"data-slot":"workbench-mobile-toolbar",className:n(e),...t})}function hs({open:e=!0,className:t,...a}){return S("button",{type:"button","data-slot":"workbench-backdrop","data-open":e?"true":"false",className:n(t),...a})}function xs({className:e,...t}){return S("section",{"data-slot":"workbench-section",className:n(e),...t})}function Rs({title:e,metadata:t,action:a,className:o,...r}){return ae("div",{"data-slot":"workbench-section-header",className:n(o),...r,children:[ae("div",{"data-slot":"workbench-section-heading",children:[S("h2",{children:e}),t?S("span",{children:t}):null]}),a?S("div",{"data-slot":"workbench-section-action",children:a}):null]})}function Ns({as:e="div",href:t,selected:a=!1,className:o,children:r,...s}){return fa.createElement(e,{...s,...e==="a"&&t?{href:t}:{},...e==="button"?{type:"button"}:{},"data-slot":"resource-row","data-selected":a?"true":"false",className:n(o)},r)}function ys({className:e,...t}){return S("span",{"data-slot":"resource-row-icon",className:n(e),...t})}function ws({className:e,...t}){return S("span",{"data-slot":"resource-row-content",className:n(e),...t})}function Ss({className:e,...t}){return S("strong",{"data-slot":"resource-row-title",className:n(e),...t})}function Cs({className:e,...t}){return S("span",{"data-slot":"resource-row-description",className:n(e),...t})}function Ps({className:e,...t}){return S("span",{"data-slot":"resource-row-meta",className:n(e),...t})}function ks({label:e,action:t,className:a,children:o,...r}){return ae("section",{"data-slot":"workbench-inspector-section",className:n(a),...r,children:[ae("div",{"data-slot":"workbench-inspector-label",children:[S("h3",{children:e}),t?S("div",{children:t}):null]}),o]})}function Ts({initials:e,name:t,detail:a,compact:o=!1,className:r,...s}){return ae("div",{"data-slot":"identity-row","data-compact":o?"true":"false",className:n(r),...s,children:[S("span",{"data-slot":"identity-avatar",children:e}),ae("span",{"data-slot":"identity-copy",children:[S("strong",{children:t}),a?S("small",{children:a}):null]})]})}export{qt as a,jt as b,To as c,Bo as d,Vo as e,_o as f,Wo as g,$o as h,Yo as i,Jo as j,ne as k,pr as l,ur as m,mr as n,br as o,gr as p,fr as q,vr as r,se as s,ie as t,ta as u,aa as v,hr as w,xr as x,Rr as y,Nr as z,yr as A,wr as B,Sr as C,Cr as D,Pr as E,kr as F,Tr as G,Dr as H,Mr as I,Lr as J,Vr as K,_r as L,Fr as M,Jr as N,on as O,rn as P,nn as Q,pn as R,un as S,hn as T,xn as U,wn as V,kn as W,Ve as X,En as Y,Mn as Z,oo as _,ro as $,Ln as aa,Hn as ba,$n as ca,Gn as da,Kn as ea,Fn as fa,Un as ga,es as ha,co as ia,rs as ja,ns as ka,ds as la,ms as ma,bs as na,gs as oa,fs as pa,vs as qa,hs as ra,xs as sa,Rs as ta,Ns as ua,ys as va,ws as wa,Ss as xa,Cs as ya,Ps as za,ks as Aa,Ts as Ba};
|
|
2
|
+
//# sourceMappingURL=chunk-6ZV6GK3H.js.map
|