vendor: 6,207 bytes, lines 1-11
1import{c as Ue,s as Wt,r as c,j as t,a as Z,P as E,u as ce,b as ve,d as S,R as K,e as P,f as we,g as ye,h as v,i as ze,k as He,l as Vt,A as Xt,m as ie,n as Yt,o as qt,D as Jt,C as Zt,p as Qt,q as We,X as Ve,T as eo,S as to,t as oo,v as no,w as ao,x as so,B as Xe,y as Ye,N as Te,z as Pe,E as ro,F as co,G as io,M as lo,H as qe,I as xe,J as uo}from"./index-DYMIpwuw.js";import{u as Je}from"./useAuth-DT3wGwUl.js";import{h as po,u as mo,R as fo,F as ho,a as xo,C as bo,b as go,T as vo,D as wo,P as yo,O as Mo}from"./dialog-CQyvjXZw.js";import{L as Do}from"./layout-dashboard-hEyatBGb.js";import{W as Co}from"./workflow-DjeadlgY.js";import{K as Me}from"./key-round-BLkWBYfB.js";import{M as So}from"./message-square-text-CWNXsgkL.js";import{H as jo}from"./headphones-CmdefDte.js";import{C as _o}from"./clipboard-list-pdnB5vE2.js";import{L as No}from"./landmark-BEdU-Crp.js";/** 2 * @license lucide-react v0.453.0 - ISC 3 * 4 * This source code is licensed under the ISC license. 5 * See the LICENSE file in the root directory of this source tree. 6 */const Io=Ue("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/** 7 * @license lucide-react v0.453.0 - ISC 8 * 9 * This source code is licensed under the ISC license. 10 * See the LICENSE file in the root directory of this source tree. 11 */const Ze=Ue("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]);function Ro(){return Wt.useSyncExternalStore(Eo,()=>!0,()=>!1)}function Eo(){return()=>{}}var Se="Avatar",[Lo]=Z(Se),[Ao,Qe]=Lo(Se),et=c.forwardRef((e,o)=>{const{__scopeAvatar:n,...a}=e,[r,s]=c.useState("idle");return t.jsx(Ao,{scope:n,imageLoadingStatus:r,onImageLoadingStatusChange:s,children:t.jsx(E.span,{...a,ref:o})})});et.displayName=Se;var tt="AvatarImage",ko=c.forwardRef((e,o)=>{const{__scopeAvatar:n,src:a,onLoadingStatusChange:r=()=>{},...s}=e,u=Qe(tt,n),l=To(a,s),m=ce(p=>{r(p),u.onImageLoadingStatusChange(p)});return ve(()=>{l!=="idle"&&m(l)},[l,m]),l==="loaded"?t.jsx(E.img,{...s,ref:o,src:a}):null});ko.displayName=tt;var ot="AvatarFallback",nt=c.forwardRef((e,o)=>{const{__scopeAvatar:n,delayMs:a,...r}=e,s=Qe(ot,n),[u,l]=c.useState(a===void 0);return c.useEffect(()=>{if(a!==void 0){const m=window.setTimeout(()=>l(!0),a);return()=>window.clearTimeout(m)}},[a]),u&&s.imageLoadingStatus!=="loaded"?t.jsx(E.span,{...r,ref:o}):null});nt.displayName=ot;function Oe(e,o){return e?o?(e.src!==o&&(e.src=o),e.complete&&e.naturalWidth>0?"loaded":"loading"):"error":"idle"}function To(e,{referrerPolicy:o,crossOrigin:n}){const a=Ro(),r=c.useRef(null),s=a?(r.current||(r.current=new window.Image),r.current):null,[u,l]=c.useState(()=>Oe(s,e));return ve(()=>{l(Oe(s,e))},[s,e]),ve(()=>{const m=d=>()=>{l(d)};if(!s)return;const p=m("loaded"),i=m("error");return s.addEventListener("load",p),s.addEventListener("error",i),o&&(s.referrerPolicy=o),typeof n=="string"&&(s.crossOrigin=n),()=>{s.removeEventListener("load",p),s.removeEventListener("error",i)}},[s,n,o]),u}var Po=et,Oo=nt;function Fe({className:e,...o}){return t.jsx(Po,{"data-loc":"client/src/components/ui/avatar.tsx:11","data-slot":"avatar",className:S("relative flex size-8 shrink-0 overflow-hidden rounded-full",e),...o})}function Ke({className:e,...o}){return t.jsx(Oo,{"data-loc":"client/src/components/ui/avatar.tsx:40","data-slot":"avatar-fallback",className:S("bg-muted flex size-full items-center justify-center rounded-full",e),...o})}function at(e){const o=e+"CollectionProvider",[n,a]=Z(o),[r,s]=n(o,{collectionRef:{current:null},itemMap:new Map}),u=M=>{const{scope:f,children:b}=M,y=K.useRef(null),D=K.useRef(new Map).current;return t.jsx(r,{scope:f,itemMap:D,collectionRef:y,children:b})};u.displayName=o;const l=e+"CollectionSlot",m=we(l),p=K.forwardRef((M,f)=>{const{scope:b,children:y}=M,D=s(l,b),C=P(f,D.collectionRef);return t.jsx(m,{ref:C,children:y})});p.displayName=l;const i=e+"CollectionItemSlot",d="data-radix-collection-item",h=we(i),w=K.forwardRef((M,f)=>{const{scope:b,children:y,...D}=M,C=K.useRef(null),T=P(f,C),L=s(i,b);return K.useEffect(()=>(L.itemMap.set(C,{ref:C,...D}),()=>void L.itemMap.delete(C))),t.jsx(h,{[d]:"",ref:T,children:y})});w.displayName=i;function g(M){const f=s(e+"CollectionConsumer",M);return K.useCallback(()=>{const y=f.collectionRef.current;if(!y)return[];const D=Array.from(y.querySelectorAll(`[${d}]`));return Array.from(f.itemMap.values()).sort((L,A)=>D.indexOf(L.ref.current)-D.indexOf(A.ref.current))},[f.collectionRef,f.itemMap])}return[{Provider:u,Slot:p,ItemSlot:w},g,a]}var Fo=c.createContext(void 0);function st(e){const o=c.useContext(Fo);return e||o||"ltr"}var be="rovingFocusGroup.onEntryFocus",Ko={bubbles:!1,cancelable:!0},Q="RovingFocusGroup",[De,rt,Go]=at(Q),[$o,ct]=Z(Q,[Go]),[Bo,Uo]=$o(Q),it=c.forwardRef((e,o)=>t.jsx(De.Provider,{scope:e.__scopeRovingFocusGroup,children:t.jsx(De.Slot,{scope:e.__scopeRovingFocusGroup,children:t.jsx(zo,{...e,ref:o})})}));it.displayName=Q;var zo=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,orientation:a,loop:r=!1,dir:s,currentTabStopId:u,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:m,onEntryFocus:p,preventScrollOnEntryFocus:i=!1,...d}=e,h=c.useRef(null),w=P(o,h),g=st(s),[M,f]=ze({prop:u,defaultProp:l??null,onChange:m,caller:Q}),[b,y]=c.useState(!1),D=ce(p),C=rt(n),T=c.useRef(!1),[L,A]=c.useState(0);return c.useEffect(()=>{const j=h.current;if(j)return j.addEventListener(be,D),()=>j.removeEventListener(be,D)},[D]),t.jsx(Bo,{scope:n,orientation:a,dir:g,loop:r,currentTabStopId:M,onItemFocus:c.useCallback(j=>f(j),[f]),onItemShiftTab:c.useCallback(()=>y(!0),[]),onFocusableItemAdd:c.useCallback(()=>A(j=>j+1),[]),onFocusableItemRemove:c.useCallback(()=>A(j=>j-1),[]),children:t.jsx(E.div,{tabIndex:b||L===0?-1:0,"data-orientation":a,...d,ref:w,style:{outline:"none",...e.style},onMouseDown:v(e.onMouseDown,()=>{T.current=!0}),onFocus:v(e.onFocus,j=>{const B=!T.current;if(j.target===j.currentTarget&&B&&!b){const O=new CustomEvent(be,Ko);if(j.currentTarget.dispatchEvent(O),!O.defaultPrevented){const H=C().filter(k=>k.focusable),W=H.find(k=>k.active),oe=H.find(k=>
vendor: 19,329 bytes, line 11
11k.id===M),me=[W,oe,...H].filter(Boolean).map(k=>k.ref.current);ut(me,i)}}T.current=!1}),onBlur:v(e.onBlur,()=>y(!1))})})}),lt="RovingFocusGroupItem",dt=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:n,focusable:a=!0,active:r=!1,tabStopId:s,children:u,...l}=e,m=ye(),p=s||m,i=Uo(lt,n),d=i.currentTabStopId===p,h=rt(n),{onFocusableItemAdd:w,onFocusableItemRemove:g,currentTabStopId:M}=i;return c.useEffect(()=>{if(a)return w(),()=>g()},[a,w,g]),t.jsx(De.ItemSlot,{scope:n,id:p,focusable:a,active:r,children:t.jsx(E.span,{tabIndex:d?0:-1,"data-orientation":i.orientation,...l,ref:o,onMouseDown:v(e.onMouseDown,f=>{a?i.onItemFocus(p):f.preventDefault()}),onFocus:v(e.onFocus,()=>i.onItemFocus(p)),onKeyDown:v(e.onKeyDown,f=>{if(f.key==="Tab"&&f.shiftKey){i.onItemShiftTab();return}if(f.target!==f.currentTarget)return;const b=Vo(f,i.orientation,i.dir);if(b!==void 0){if(f.metaKey||f.ctrlKey||f.altKey||f.shiftKey)return;f.preventDefault();let D=h().filter(C=>C.focusable).map(C=>C.ref.current);if(b==="last")D.reverse();else if(b==="prev"||b==="next"){b==="prev"&&D.reverse();const C=D.indexOf(f.currentTarget);D=i.loop?Xo(D,C+1):D.slice(C+1)}setTimeout(()=>ut(D))}}),children:typeof u=="function"?u({isCurrentTabStop:d,hasTabStop:M!=null}):u})})});dt.displayName=lt;var Ho={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function Wo(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function Vo(e,o,n){const a=Wo(e.key,n);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(a))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(a)))return Ho[a]}function ut(e,o=!1){const n=document.activeElement;for(const a of e)if(a===n||(a.focus({preventScroll:o}),document.activeElement!==n))return}function Xo(e,o){return e.map((n,a)=>e[(o+a)%e.length])}var Yo=it,qo=dt,Ce=["Enter"," "],Jo=["ArrowDown","PageUp","Home"],pt=["ArrowUp","PageDown","End"],Zo=[...Jo,...pt],Qo={ltr:[...Ce,"ArrowRight"],rtl:[...Ce,"ArrowLeft"]},en={ltr:["ArrowLeft"],rtl:["ArrowRight"]},ee="Menu",[q,tn,on]=at(ee),[G,mt]=Z(ee,[on,He,ct]),le=He(),ft=ct(),[nn,$]=G(ee),[an,te]=G(ee),ht=e=>{const{__scopeMenu:o,open:n=!1,children:a,dir:r,onOpenChange:s,modal:u=!0}=e,l=le(o),[m,p]=c.useState(null),i=c.useRef(!1),d=ce(s),h=st(r);return c.useEffect(()=>{const w=()=>{i.current=!0,document.addEventListener("pointerdown",g,{capture:!0,once:!0}),document.addEventListener("pointermove",g,{capture:!0,once:!0})},g=()=>i.current=!1;return document.addEventListener("keydown",w,{capture:!0}),()=>{document.removeEventListener("keydown",w,{capture:!0}),document.removeEventListener("pointerdown",g,{capture:!0}),document.removeEventListener("pointermove",g,{capture:!0})}},[]),t.jsx(Vt,{...l,children:t.jsx(nn,{scope:o,open:n,onOpenChange:d,content:m,onContentChange:p,children:t.jsx(an,{scope:o,onClose:c.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:i,dir:h,modal:u,children:a})})})};ht.displayName=ee;var sn="MenuAnchor",je=c.forwardRef((e,o)=>{const{__scopeMenu:n,...a}=e,r=le(n);return t.jsx(Xt,{...r,...a,ref:o})});je.displayName=sn;var _e="MenuPortal",[rn,xt]=G(_e,{forceMount:void 0}),bt=e=>{const{__scopeMenu:o,forceMount:n,children:a,container:r}=e,s=$(_e,o);return t.jsx(rn,{scope:o,forceMount:n,children:t.jsx(ie,{present:n||s.open,children:t.jsx(Yt,{asChild:!0,container:r,children:a})})})};bt.displayName=_e;var R="MenuContent",[cn,Ne]=G(R),gt=c.forwardRef((e,o)=>{const n=xt(R,e.__scopeMenu),{forceMount:a=n.forceMount,...r}=e,s=$(R,e.__scopeMenu),u=te(R,e.__scopeMenu);return t.jsx(q.Provider,{scope:e.__scopeMenu,children:t.jsx(ie,{present:a||s.open,children:t.jsx(q.Slot,{scope:e.__scopeMenu,children:u.modal?t.jsx(ln,{...r,ref:o}):t.jsx(dn,{...r,ref:o})})})})}),ln=c.forwardRef((e,o)=>{const n=$(R,e.__scopeMenu),a=c.useRef(null),r=P(o,a);return c.useEffect(()=>{const s=a.current;if(s)return po(s)},[]),t.jsx(Ie,{...e,ref:r,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:v(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),dn=c.forwardRef((e,o)=>{const n=$(R,e.__scopeMenu);return t.jsx(Ie,{...e,ref:o,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),un=we("MenuContent.ScrollLock"),Ie=c.forwardRef((e,o)=>{const{__scopeMenu:n,loop:a=!1,trapFocus:r,onOpenAutoFocus:s,onCloseAutoFocus:u,disableOutsidePointerEvents:l,onEntryFocus:m,onEscapeKeyDown:p,onPointerDownOutside:i,onFocusOutside:d,onInteractOutside:h,onDismiss:w,disableOutsideScroll:g,...M}=e,f=$(R,n),b=te(R,n),y=le(n),D=ft(n),C=tn(n),[T,L]=c.useState(null),A=c.useRef(null),j=P(o,A,f.onContentChange),B=c.useRef(0),O=c.useRef(""),H=c.useRef(0),W=c.useRef(null),oe=c.useRef("right"),ne=c.useRef(0),me=g?fo:c.Fragment,k=g?{as:un,allowPinchZoom:!0}:void 0,Ht=x=>{const z=O.current+x,F=C().filter(N=>!N.disabled),V=document.activeElement,fe=F.find(N=>N.ref.current===V)?.textValue,he=F.map(N=>N.textValue),Ae=Dn(he,z,fe),X=F.find(N=>N.textValue===Ae)?.ref.current;(function N(ke){O.current=ke,window.clearTimeout(B.current),ke!==""&&(B.current=window.setTimeout(()=>N(""),1e3))})(z),X&&setTimeout(()=>X.focus())};c.useEffect(()=>()=>window.clearTimeout(B.current),[]),mo();const U=c.useCallback(x=>oe.current===W.current?.side&&Sn(x,W.current?.area),[]);return t.jsx(cn,{scope:n,searchRef:O,onItemEnter:c.useCallback(x=>{U(x)&&x.preventDefault()},[U]),onItemLeave:c.useCallback(x=>{U(x)||(A.current?.focus(),L(null))},[U]),onTriggerLeave:c.useCallback(x=>{U(x)&&x.preventDefault()},[U]),pointerGraceTimerRef:H,onPointerGraceIntentChange:c.useCallback(x=>{W.current=x},[]),children:t.jsx(me,{...k,children:t.jsx(ho,{asChild:!0,trapped:r,onMountAutoFocus:v(s,x=>{x.preventDefault(),A.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:u,children:t.jsx(Jt,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:p,onPointerDownOutside:i,onFocusOutside:d,onInteractOutside:h,onDismiss:w,children:t.jsx(Yo,{asChild:!0,...D,dir:b.dir,orientation:"vertical",loop:a,currentTabStopId:T,onCurrentTabStopIdChange:L,onEntryFocus:v(m,x=>{b.isUsingKeyboardRef.current||x.preventDefault()}),preventScrollOnEntryFocus:!0,children:t.jsx(Zt,{role:"menu","aria-orientation":"vertical","data-state":kt(f.open),"data-radix-menu-content":"",dir:b.dir,...y,...M,ref:j,style:{outline:"none",...M.style},onKeyDown:v(M.onKeyDown,x=>{const F=x.target.closest("[data-radix-menu-content]")===x.currentTarget,V=x.ctrlKey||x.altKey||x.metaKey,fe=x.key.length===1;F&&(x.key==="Tab"&&x.preventDefault(),!V&&fe&&Ht(x.key));const he=A.current;if(x.target!==he||!Zo.includes(x.key))return;x.preventDefault();const X=C().filter(N=>!N.disabled).map(N=>N.ref.current);pt.includes(x.key)&&X.reverse(),yn(X)}),onBlur:v(e.onBlur,x=>{x.currentTarget.contains(x.target)||(window.clearTimeout(B.current),O.current="")}),onPointerMove:v(e.onPointerMove,J(x=>{const z=x.target,F=ne.current!==x.clientX;if(x.currentTarget.contains(z)&&F){const V=x.clientX>ne.current?"right":"left";oe.current=V,ne.current=x.clientX}}))})})})})})})});gt.displayName=R;var pn="MenuGroup",Re=c.forwardRef((e,o)=>{const{__scopeMenu:n,...a}=e;return t.jsx(E.div,{role:"group",...a,ref:o})});Re.displayName=pn;var mn="MenuLabel",vt=c.forwardRef((e,o)=>{const{__scopeMenu:n,...a}=e;return t.jsx(E.div,{...a,ref:o})});vt.displayName=mn;var se="MenuItem",Ge="menu.itemSelect",de=c.forwardRef((e,o)=>{const{disabled:n=!1,onSelect:a,...r}=e,s=c.useRef(null),u=te(se,e.__scopeMenu),l=Ne(se,e.__scopeMenu),m=P(o,s),p=c.useRef(!1),i=()=>{const d=s.current;if(!n&&d){const h=new CustomEvent(Ge,{bubbles:!0,cancelable:!0});d.addEventListener(Ge,w=>a?.(w),{once:!0}),qt(d,h),h.defaultPrevented?p.current=!1:u.onClose()}};return t.jsx(wt,{...r,ref:m,disabled:n,onClick:v(e.onClick,i),onPointerDown:d=>{e.onPointerDown?.(d),p.current=!0},onPointerUp:v(e.onPointerUp,d=>{p.current||d.currentTarget?.click()}),onKeyDown:v(e.onKeyDown,d=>{const h=l.searchRef.current!=="";n||h&&d.key===" "||Ce.includes(d.key)&&(d.currentTarget.click(),d.preventDefault())})})});de.displayName=se;var wt=c.forwardRef((e,o)=>{const{__scopeMenu:n,disabled:a=!1,textValue:r,...s}=e,u=Ne(se,n),l=ft(n),m=c.useRef(null),p=P(o,m),[i,d]=c.useState(!1),[h,w]=c.useState("");return c.useEffect(()=>{const g=m.current;g&&w((g.textContent??"").trim())},[s.children]),t.jsx(q.ItemSlot,{scope:n,disabled:a,textValue:r??h,children:t.jsx(qo,{asChild:!0,...l,focusable:!a,children:t.jsx(E.div,{role:"menuitem","data-highlighted":i?"":void 0,"aria-disabled":a||void 0,"data-disabled":a?"":void 0,...s,ref:p,onPointerMove:v(e.onPointerMove,J(g=>{a?u.onItemLeave(g):(u.onItemEnter(g),g.defaultPrevented||g.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v(e.onPointerLeave,J(g=>u.onItemLeave(g))),onFocus:v(e.onFocus,()=>d(!0)),onBlur:v(e.onBlur,()=>d(!1))})})})}),fn="MenuCheckboxItem",yt=c.forwardRef((e,o)=>{const{checked:n=!1,onCheckedChange:a,...r}=e;return t.jsx(jt,{scope:e.__scopeMenu,checked:n,children:t.jsx(de,{role:"menuitemcheckbox","aria-checked":re(n)?"mixed":n,...r,ref:o,"data-state":Le(n),onSelect:v(r.onSelect,()=>a?.(re(n)?!0:!n),{checkForDefaultPrevented:!1})})})});yt.displayName=fn;var Mt="MenuRadioGroup",[hn,xn]=G(Mt,{value:void 0,onValueChange:()=>{}}),Dt=c.forwardRef((e,o)=>{const{value:n,onValueChange:a,...r}=e,s=ce(a);return t.jsx(hn,{scope:e.__scopeMenu,value:n,onValueChange:s,children:t.jsx(Re,{...r,ref:o})})});Dt.displayName=Mt;var Ct="MenuRadioItem",St=c.forwardRef((e,o)=>{const{value:n,...a}=e,r=xn(Ct,e.__scopeMenu),s=n===r.value;return t.jsx(jt,{scope:e.__scopeMenu,checked:s,children:t.jsx(de,{role:"menuitemradio","aria-checked":s,...a,ref:o,"data-state":Le(s),onSelect:v(a.onSelect,()=>r.onValueChange?.(n),{checkForDefaultPrevented:!1})})})});St.displayName=Ct;var Ee="MenuItemIndicator",[jt,bn]=G(Ee,{checked:!1}),_t=c.forwardRef((e,o)=>{const{__scopeMenu:n,forceMount:a,...r}=e,s=bn(Ee,n);return t.jsx(ie,{present:a||re(s.checked)||s.checked===!0,children:t.jsx(E.span,{...r,ref:o,"data-state":Le(s.checked)})})});_t.displayName=Ee;var gn="MenuSeparator",Nt=c.forwardRef((e,o)=>{const{__scopeMenu:n,...a}=e;return t.jsx(E.div,{role:"separator","aria-orientation":"horizontal",...a,ref:o})});Nt.displayName=gn;var vn="MenuArrow",It=c.forwardRef((e,o)=>{const{__scopeMenu:n,...a}=e,r=le(n);return t.jsx(Qt,{...r,...a,ref:o})});It.displayName=vn;var wn="MenuSub",[cs,Rt]=G(wn),Y="MenuSubTrigger",Et=c.forwardRef((e,o)=>{const n=$(Y,e.__scopeMenu),a=te(Y,e.__scopeMenu),r=Rt(Y,e.__scopeMenu),s=Ne(Y,e.__scopeMenu),u=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:m}=s,p={__scopeMenu:e.__scopeMenu},i=c.useCallback(()=>{u.current&&window.clearTimeout(u.current),u.current=null},[]);return c.useEffect(()=>i,[i]),c.useEffect(()=>{const d=l.current;return()=>{window.clearTimeout(d),m(null)}},[l,m]),t.jsx(je,{asChild:!0,...p,children:t.jsx(wt,{id:r.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":r.contentId,"data-state":kt(n.open),...e,ref:We(o,r.onTriggerChange),onClick:d=>{e.onClick?.(d),!(e.disabled||d.defaultPrevented)&&(d.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:v(e.onPointerMove,J(d=>{s.onItemEnter(d),!d.defaultPrevented&&!e.disabled&&!n.open&&!u.current&&(s.onPointerGraceIntentChange(null),u.current=window.setTimeout(()=>{n.onOpenChange(!0),i()},100))})),onPointerLeave:v(e.onPointerLeave,J(d=>{i();const h=n.content?.getBoundingClientRect();if(h){const w=n.content?.dataset.side,g=w==="right",M=g?-5:5,f=h[g?"left":"right"],b=h[g?"right":"left"];s.onPointerGraceIntentChange({area:[{x:d.clientX+M,y:d.clientY},{x:f,y:h.top},{x:b,y:h.top},{x:b,y:h.bottom},{x:f,y:h.bottom}],side:w}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(d),d.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:v(e.onKeyDown,d=>{const h=s.searchRef.current!=="";e.disabled||h&&d.key===" "||Qo[a.dir].includes(d.key)&&(n.onOpenChange(!0),n.content?.focus(),d.preventDefault())})})})});Et.displayName=Y;var Lt="MenuSubContent",At=c.forwardRef((e,o)=>{const n=xt(R,e.__scopeMenu),{forceMount:a=n.forceMount,...r}=e,s=$(R,e.__scopeMenu),u=te(R,e.__scopeMenu),l=Rt(Lt,e.__scopeMenu),m=c.useRef(null),p=P(o,m);return t.jsx(q.Provider,{scope:e.__scopeMenu,children:t.jsx(ie,{present:a||s.open,children:t.jsx(q.Slot,{scope:e.__scopeMenu,children:t.jsx(Ie,{id:l.contentId,"aria-labelledby":l.triggerId,...r,ref:p,align:"start",side:u.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:i=>{u.isUsingKeyboardRef.current&&m.current?.focus(),i.preventDefault()},onCloseAutoFocus:i=>i.preventDefault(),onFocusOutside:v(e.onFocusOutside,i=>{i.target!==l.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:v(e.onEscapeKeyDown,i=>{u.onClose(),i.preventDefault()}),onKeyDown:v(e.onKeyDown,i=>{const d=i.currentTarget.contains(i.target),h=en[u.dir].includes(i.key);d&&h&&(s.onOpenChange(!1),l.trigger?.focus(),i.preventDefault())})})})})})});At.displayName=Lt;function kt(e){return e?"open":"closed"}function re(e){return e==="indeterminate"}function Le(e){return re(e)?"indeterminate":e?"checked":"unchecked"}function yn(e){const o=document.activeElement;for(const n of e)if(n===o||(n.focus(),document.activeElement!==o))return}function Mn(e,o){return e.map((n,a)=>e[(o+a)%e.length])}function Dn(e,o,n){const r=o.length>1&&Array.from(o).every(p=>p===o[0])?o[0]:o,s=n?e.indexOf(n):-1;let u=Mn(e,Math.max(s,0));r.length===1&&(u=u.filter(p=>p!==n));const m=u.find(p=>p.toLowerCase().startsWith(r.toLowerCase()));return m!==n?m:void 0}function Cn(e,o){const{x:n,y:a}=e;let r=!1;for(let s=0,u=o.length-1;s<o.length;u=s++){const l=o[s],m=o[u],p=l.x,i=l.y,d=m.x,h=m.y;i>a!=h>a&&n<(d-p)*(a-i)/(h-i)+p&&(r=!r)}return r}function Sn(e,o){if(!o)return!1;const n={x:e.clientX,y:e.clientY};return Cn(n,o)}function J(e){return o=>o.pointerType==="mouse"?e(o):void 0}var jn=ht,_n=je,Nn=bt,In=gt,Rn=Re,En=vt,Ln=de,An=yt,kn=Dt,Tn=St,Pn=_t,On=Nt,Fn=It,Kn=Et,Gn=At,ue="DropdownMenu",[$n]=Z(ue,[mt]),_=mt(),[Bn,Tt]=$n(ue),Pt=e=>{const{__scopeDropdownMenu:o,children:n,dir:a,open:r,defaultOpen:s,onOpenChange:u,modal:l=!0}=e,m=_(o),p=c.useRef(null),[i,d]=ze({prop:r,defaultProp:s??!1,onChange:u,caller:ue});return t.jsx(Bn,{scope:o,triggerId:ye(),triggerRef:p,contentId:ye(),open:i,onOpenChange:d,onOpenToggle:c.useCallback(()=>d(h=>!h),[d]),modal:l,children:t.jsx(jn,{...m,open:i,onOpenChange:d,dir:a,modal:l,children:n})})};Pt.displayName=ue;var Ot="DropdownMenuTrigger",Ft=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,disabled:a=!1,...r}=e,s=Tt(Ot,n),u=_(n);return t.jsx(_n,{asChild:!0,...u,children:t.jsx(E.button,{type:"button",id:s.triggerId,"aria-haspopup":"menu","aria-expanded":s.open,"aria-controls":s.open?s.contentId:void 0,"data-state":s.open?"open":"closed","data-disabled":a?"":void 0,disabled:a,...r,ref:We(o,s.triggerRef),onPointerDown:v(e.onPointerDown,l=>{!a&&l.button===0&&l.ctrlKey===!1&&(s.onOpenToggle(),s.open||l.preventDefault())}),onKeyDown:v(e.onKeyDown,l=>{a||(["Enter"," "].includes(l.key)&&s.onOpenToggle(),l.key==="ArrowDown"&&s.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(l.key)&&l.preventDefault())})})})});Ft.displayName=Ot;var Un="DropdownMenuPortal",Kt=e=>{const{__scopeDropdownMenu:o,...n}=e,a=_(o);return t.jsx(Nn,{...a,...n})};Kt.displayName=Un;var Gt="DropdownMenuContent",$t=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=Tt(Gt,n),s=_(n),u=c.useRef(!1);return t.jsx(In,{id:r.contentId,"aria-labelledby":r.triggerId,...s,...a,ref:o,onCloseAutoFocus:v(e.onCloseAutoFocus,l=>{u.current||r.triggerRef.current?.focus(),u.current=!1,l.preventDefault()}),onInteractOutside:v(e.onInteractOutside,l=>{const m=l.detail.originalEvent,p=m.button===0&&m.ctrlKey===!0,i=m.button===2||p;(!r.modal||i)&&(u.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});$t.displayName=Gt;var zn="DropdownMenuGroup",Hn=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(Rn,{...r,...a,ref:o})});Hn.displayName=zn;var Wn="DropdownMenuLabel",Vn=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(En,{...r,...a,ref:o})});Vn.displayName=Wn;var Xn="DropdownMenuItem",Bt=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(Ln,{...r,...a,ref:o})});Bt.displayName=Xn;var Yn="DropdownMenuCheckboxItem",qn=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(An,{...r,...a,ref:o})});qn.displayName=Yn;var Jn="DropdownMenuRadioGroup",Zn=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(kn,{...r,...a,ref:o})});Zn.displayName=Jn;var Qn="DropdownMenuRadioItem",ea=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(Tn,{...r,...a,ref:o})});ea.displayName=Qn;var ta="DropdownMenuItemIndicator",oa=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(Pn,{...r,...a,ref:o})});oa.displayName=ta;var na="DropdownMenuSeparator",aa=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(On,{...r,...a,ref:o})});aa.displayName=na;var sa="DropdownMenuArrow",ra=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(Fn,{...r,...a,ref:o})});ra.displayName=sa;var ca="DropdownMenuSubTrigger",ia=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(Kn,{...r,...a,ref:o})});ia.displayName=ca;var la="DropdownMenuSubContent",da=c.forwardRef((e,o)=>{const{__scopeDropdownMenu:n,...a}=e,r=_(n);return t.jsx(Gn,{...r,...a,ref:o,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});da.displayName=la;var ua=Pt,pa=Ft,ma=Kt,fa=$t,ha=Bt;function xa({...e}){return t.jsx(ua,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:10","data-slot":"dropdown-menu",...e})}function ba({...e}){return t.jsx(pa,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:25","data-slot":"dropdown-menu-trigger",...e})}function ga({className:e,sideOffset:o=4,...n}){return t.jsx(ma,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:38",children:t.jsx(fa,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:39","data-slot":"dropdown-menu-content",sideOffset:o,className:S("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:sli
11de-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function va({className:e,inset:o,variant:n="default",...a}){return t.jsx(ha,{"data-loc":"client/src/components/ui/dropdown-menu.tsx:70","data-slot":"dropdown-menu-item","data-inset":o,"data-variant":n,className:S("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...a})}function wa({...e}){return t.jsx(xo,{"data-loc":"client/src/components/ui/sheet.tsx:10","data-slot":"sheet",...e})}function ya({...e}){return t.jsx(yo,{"data-loc":"client/src/components/ui/sheet.tsx:28","data-slot":"sheet-portal",...e})}function Ma({className:e,...o}){return t.jsx(Mo,{"data-loc":"client/src/components/ui/sheet.tsx:36","data-slot":"sheet-overlay",className:S("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...o})}function Da({className:e,children:o,side:n="right",...a}){return t.jsxs(ya,{"data-loc":"client/src/components/ui/sheet.tsx:56",children:[t.jsx(Ma,{"data-loc":"client/src/components/ui/sheet.tsx:57"}),t.jsxs(bo,{"data-loc":"client/src/components/ui/sheet.tsx:58","data-slot":"sheet-content",className:S("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex flex-col gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500",n==="right"&&"data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right inset-y-0 right-0 h-full w-3/4 border-l sm:max-w-sm",n==="left"&&"data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left inset-y-0 left-0 h-full w-3/4 border-r sm:max-w-sm",n==="top"&&"data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top inset-x-0 top-0 h-auto border-b",n==="bottom"&&"data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom inset-x-0 bottom-0 h-auto border-t",e),...a,children:[o,t.jsxs(go,{"data-loc":"client/src/components/ui/sheet.tsx:75",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-secondary absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none",children:[t.jsx(Ve,{"data-loc":"client/src/components/ui/sheet.tsx:76",className:"size-4"}),t.jsx("span",{"data-loc":"client/src/components/ui/sheet.tsx:77",className:"sr-only",children:"Close"})]})]})]})}function Ca({className:e,...o}){return t.jsx("div",{"data-loc":"client/src/components/ui/sheet.tsx:86","data-slot":"sheet-header",className:S("flex flex-col gap-1.5 p-4",e),...o})}function Sa({className:e,...o}){return t.jsx(vo,{"data-loc":"client/src/components/ui/sheet.tsx:109","data-slot":"sheet-title",className:S("text-foreground font-semibold",e),...o})}function ja({className:e,...o}){return t.jsx(wo,{"data-loc":"client/src/components/ui/sheet.tsx:122","data-slot":"sheet-description",className:S("text-muted-foreground text-sm",e),...o})}function I({className:e,...o}){return t.jsx("div",{"data-loc":"client/src/components/ui/skeleton.tsx:5","data-slot":"skeleton",className:S("bg-accent animate-pulse rounded-md",e),...o})}const ge=768;function Ut(){const[e,o]=c.useState(void 0);return c.useEffect(()=>{const n=window.matchMedia(`(max-width: ${ge-1}px)`),a=()=>{o(window.innerWidth<ge)};return n.addEventListener("change",a),window.addEventListener("resize",a),o(window.innerWidth<ge),()=>{n.removeEventListener("change",a),window.removeEventListener("resize",a)}},[]),!!e}const _a="sidebar_state",Na=3600*24*7,Ia="16rem",Ra="18rem",Ea="3rem",La="b",zt=c.createContext(null);function pe(){const e=c.useContext(zt);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Aa({defaultOpen:e=!0,open:o,onOpenChange:n,className:a,style:r,children:s,...u}){const l=Ut(),[m,p]=c.useState(!1),[i,d]=c.useState(e),h=o??i,w=c.useCallback(b=>{const y=typeof b=="function"?b(h):b;n?n(y):d(y),document.cookie=`${_a}=${y}; path=/; max-age=${Na}`},[n,h]),g=c.useCallback(()=>l?p(b=>!b):w(b=>!b),[l,w,p]);c.useEffect(()=>{const b=y=>
vendor: 10,288 bytes, line 11
11{y.key===La&&(y.metaKey||y.ctrlKey)&&(y.preventDefault(),g())};return window.addEventListener("keydown",b),()=>window.removeEventListener("keydown",b)},[g]);const M=h?"expanded":"collapsed",f=c.useMemo(()=>({state:M,open:h,setOpen:w,isMobile:l,openMobile:m,setOpenMobile:p,toggleSidebar:g}),[M,h,w,l,m,p,g]);return t.jsx(zt.Provider,{"data-loc":"client/src/components/ui/sidebar.tsx:129",value:f,children:t.jsx(eo,{"data-loc":"client/src/components/ui/sidebar.tsx:130",delayDuration:0,children:t.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:131","data-slot":"sidebar-wrapper",style:{"--sidebar-width":Ia,"--sidebar-width-icon":Ea,...r},className:S("group/sidebar-wrapper has-data-[variant=inset]:bg-sidebar flex min-h-svh w-full",a),...u,children:s})})})}function ka({side:e="left",variant:o="sidebar",collapsible:n="offcanvas",disableTransition:a=!1,className:r,children:s,...u}){const{isMobile:l,state:m,openMobile:p,setOpenMobile:i}=pe();return n==="none"?t.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:171","data-slot":"sidebar",className:S("bg-sidebar text-sidebar-foreground flex h-full w-(--sidebar-width) flex-col",r),...u,children:s}):l?t.jsx(wa,{"data-loc":"client/src/components/ui/sidebar.tsx:186",open:p,onOpenChange:i,...u,children:t.jsxs(Da,{"data-loc":"client/src/components/ui/sidebar.tsx:187","data-sidebar":"sidebar","data-slot":"sidebar","data-mobile":"true",className:"bg-sidebar text-sidebar-foreground w-(--sidebar-width) p-0 [&>button]:hidden",style:{"--sidebar-width":Ra},side:e,children:[t.jsxs(Ca,{"data-loc":"client/src/components/ui/sidebar.tsx:199",className:"sr-only",children:[t.jsx(Sa,{"data-loc":"client/src/components/ui/sidebar.tsx:200",children:"Sidebar"}),t.jsx(ja,{"data-loc":"client/src/components/ui/sidebar.tsx:201",children:"Displays the mobile sidebar."})]}),t.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:203",className:"flex h-full w-full flex-col",children:s})]})}):t.jsxs("div",{"data-loc":"client/src/components/ui/sidebar.tsx:210",className:"group peer text-sidebar-foreground hidden md:block","data-state":m,"data-collapsible":m==="collapsed"?n:"","data-variant":o,"data-side":e,"data-slot":"sidebar",children:[t.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:219","data-slot":"sidebar-gap",className:S("relative w-(--sidebar-width) bg-transparent",a?"transition-none":"transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","group-data-[side=right]:rotate-180",o==="floating"||o==="inset"?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon)")}),t.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:233","data-slot":"sidebar-container",className:S("fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) md:flex",a?"transition-none":"transition-[left,right,width] duration-200 ease-linear",e==="left"?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]",o==="floating"||o==="inset"?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]":"group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-r group-data-[side=right]:border-l",r),...u,children:t.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:251","data-sidebar":"sidebar","data-slot":"sidebar-inner",className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm",children:s})})]})}function Ta({className:e,onClick:o,...n}){const{toggleSidebar:a}=pe();return t.jsxs(Xe,{"data-loc":"client/src/components/ui/sidebar.tsx:271","data-sidebar":"trigger","data-slot":"sidebar-trigger",variant:"ghost",size:"icon",className:S("size-7",e),onClick:r=>{o?.(r),a()},...n,children:[t.jsx(Ze,{"data-loc":"client/src/components/ui/sidebar.tsx:283"}),t.jsx("span",{"data-loc":"client/src/components/ui/sidebar.tsx:284",className:"sr-only",children:"Toggle Sidebar"})]})}function Pa({className:e,...o}){return t.jsx("main",{"data-loc":"client/src/components/ui/sidebar.tsx:316","data-slot":"sidebar-inset",className:S("bg-background relative flex w-full flex-1 flex-col","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",e),...o})}function Oa({className:e,...o}){return t.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:344","data-slot":"sidebar-header","data-sidebar":"header",className:S("flex flex-col gap-2 p-2",e),...o})}function Fa({className:e,...o}){return t.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:355","data-slot":"sidebar-footer","data-sidebar":"footer",className:S("flex flex-col gap-2 p-2",e),...o})}function Ka({className:e,...o}){return t.jsx("div",{"data-loc":"client/src/components/ui/sidebar.tsx:380","data-slot":"sidebar-content","data-sidebar":"content",className:S("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",e),...o})}function Ga({className:e,...o}){return t.jsx("ul",{"data-loc":"client/src/components/ui/sidebar.tsx:463","data-slot":"sidebar-menu","data-sidebar":"menu",className:S("flex w-full min-w-0 flex-col gap-1",e),...o})}function $a({className:e,...o}){return t.jsx("li",{"data-loc":"client/src/components/ui/sidebar.tsx:474","data-slot":"sidebar-menu-item","data-sidebar":"menu-item",className:S("group/menu-item relative",e),...o})}const Ba=oo("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground hover:shadow-[0_0_0_1px_hsl(var(--sidebar-accent))]"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function Ua({asChild:e=!1,isActive:o=!1,variant:n="default",size:a="default",tooltip:r,className:s,...u}){const l=e?to:"button",{isMobile:m,state:p}=pe(),i=t.jsx(l,{"data-loc":"client/src/components/ui/sidebar.tsx:522","data-slot":"sidebar-menu-button","data-sidebar":"menu-button","data-size":a,"data-active":o,className:S(Ba({variant:n,size:a}),s),...u});return r?(typeof r=="string"&&(r={children:r}),t.jsxs(no,{"data-loc":"client/src/components/ui/sidebar.tsx:543",children:[t.jsx(ao,{"data-loc":"client/src/components/ui/sidebar.tsx:544",asChild:!0,children:i}),t.jsx(so,{"data-loc":"client/src/components/ui/sidebar.tsx:545",side:"right",align:"center",hidden:p!=="collapsed"||m,...r})]})):i}function za(){return t.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:5",className:"flex min-h-screen bg-background",children:[t.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:7",className:"w-[280px] border-r border-border bg-background p-4 space-y-6",children:[t.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:9",className:"flex items-center gap-3 px-2",children:[t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:10",className:"h-8 w-8 rounded-md"}),t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:11",className:"h-4 w-24"})]}),t.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:15",className:"space-y-2 px-2",children:[t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:16",className:"h-10 w-full rounded-lg"}),t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:17",className:"h-10 w-full rounded-lg"}),t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:18",className:"h-10 w-full rounded-lg"})]}),t.jsx("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:22",className:"absolute bottom-4 left-4 right-4",children:t.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:23",className:"flex items-center gap-3 px-1",children:[t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:24",className:"h-9 w-9 rounded-full"}),t.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:25",className:"flex-1 space-y-2",children:[t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:26",className:"h-3 w-20"}),t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:27",className:"h-2 w-32"})]})]})})]}),t.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:34",className:"flex-1 p-4 space-y-4",children:[t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:36",className:"h-12 w-48 rounded-lg"}),t.jsxs("div",{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:37",className:"grid gap-4 md:grid-cols-2 lg:grid-cols-3",children:[t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:38",className:"h-32 rounded-xl"}),t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:39",className:"h-32 rounded-xl"}),t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:40",className:"h-32 rounded-xl"})]}),t.jsx(I,{"data-loc":"client/src/components/DashboardLayoutSkeleton.tsx:42",className:"h-64 roun
11ded-xl"})]})]})}const ae=[{icon:Do,label:"Overview",path:"/dashboard"},{icon:Te,label:"SIP trunking",path:"/dashboard/trunking"},{icon:Te,label:"SIP provider",path:"/dashboard/sip-provider"},{icon:Pe,label:"C6 AI / IVR",path:"/dashboard/c6-ai"},{icon:Pe,label:"C6 Builder",path:"/dashboard/c6-builder"},{icon:Co,label:"CONNECT",path:"/connect"},{icon:ro,label:"Softphone",path:"/connect/softphone"},{icon:Me,label:"Softphone licences",path:"/dashboard/softphone-licences"},{icon:So,label:"VoiceHub",path:"/voicehub"},{icon:jo,label:"Customer ops",path:"/customer-operations"},{icon:co,label:"DID numbers",path:"/dashboard/numbers"},{icon:io,label:"Call analytics",path:"/dashboard/analytics"},{icon:Me,label:"Developer API",path:"/dashboard/developer"}],$e=[{icon:xe,label:"Telephony control",path:"/dashboard/telephony-control"},{icon:xe,label:"SIP readiness",path:"/dashboard/sip-readiness"},{icon:_o,label:"VoiceHub sales",path:"/dashboard/voicehub-sales"},{icon:xe,label:"Eligibility queue",path:"/dashboard/eligibility"},{icon:Me,label:"SIP user requests",path:"/dashboard/sip-users"},{icon:No,label:"Xero finance",path:"/dashboard/xero"}],Be="sidebar-width",Ha=280,Wa=200,Va=480;function is({children:e,allowPreview:o=!1}){return o?t.jsx(Ya,{"data-loc":"client/src/components/DashboardLayout.tsx:69",children:e}):t.jsx(Xa,{"data-loc":"client/src/components/DashboardLayout.tsx:72",children:e})}function Xa({children:e}){const[o,n]=c.useState(()=>{const s=localStorage.getItem(Be);return s?parseInt(s,10):Ha}),{loading:a,user:r}=Je();return c.useEffect(()=>{localStorage.setItem(Be,o.toString())},[o]),a?t.jsx(za,{"data-loc":"client/src/components/DashboardLayout.tsx:87"}):r?t.jsx(Aa,{"data-loc":"client/src/components/DashboardLayout.tsx:115",style:{"--sidebar-width":`${o}px`},children:t.jsx(qa,{"data-loc":"client/src/components/DashboardLayout.tsx:122",setSidebarWidth:n,previewMode:!1,children:e})}):t.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:92",className:"flex items-center justify-center min-h-screen",children:t.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:93",className:"flex flex-col items-center gap-8 p-8 max-w-md w-full",children:[t.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:94",className:"flex flex-col items-center gap-6",children:[t.jsx("h1",{"data-loc":"client/src/components/DashboardLayout.tsx:95",className:"text-2xl font-semibold tracking-tight text-center",children:"Sign in to continue"}),t.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:98",className:"text-sm text-muted-foreground text-center max-w-sm",children:"Access to this dashboard requires authentication. Continue to launch the login flow."})]}),t.jsx(Xe,{"data-loc":"client/src/components/DashboardLayout.tsx:102",onClick:()=>qe(),size:"lg",className:"w-full shadow-lg hover:shadow-xl transition-all",children:"Sign in"})]})})}function Ya({children:e}){const[o,n]=Ye(),[a,r]=c.useState(!1);return t.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:133",className:"dashboard-preview-shell",children:[t.jsxs("header",{"data-loc":"client/src/components/DashboardLayout.tsx:134",className:"dashboard-preview-header",children:[t.jsxs("a",{"data-loc":"client/src/components/DashboardLayout.tsx:135",href:"/",className:"dashboard-preview-brand",children:[t.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:135",className:"dashboard-preview-logo overflow-hidden",children:t.jsx("img",{"data-loc":"client/src/components/DashboardLayout.tsx:135",className:"h-full w-full object-cover",src:"/manus-storage/webtechnicom-phone-logo_47b736fc.png",alt:""})}),t.jsx("b",{"data-loc":"client/src/components/DashboardLayout.tsx:135",children:"WebTechnicom"})]}),t.jsx("nav",{"data-loc":"client/src/components/DashboardLayout.tsx:136",className:a?"open":"","aria-label":"Dashboard navigation",children:ae.map(s=>t.jsxs("button",{"data-loc":"client/src/components/DashboardLayout.tsx:137",className:o===s.path?"active":"",onClick:()=>{n(s.path),r(!1)},children:[t.jsx(s.icon,{"data-loc":"client/src/components/DashboardLayout.t
11sx:137",size:15}),s.label]},s.path))}),t.jsx("a",{"data-loc":"client/src/components/DashboardLayout.tsx:139",href:"/contact",className:"dashboard-preview-contact",children:"Discuss your workspace"}),t.jsx("button",{"data-loc":"client/src/components/DashboardLayout.tsx:140",className:"dashboard-preview-menu",type:"button",onClick:()=>r(!a),"aria-label":a?"Close menu":"Open menu",children:a?t.jsx(Ve,{"data-loc":"client/src/components/DashboardLayout.tsx:140",size:18}):t.jsx(lo,{"data-loc":"client/src/components/DashboardLayout.tsx:140",size:18})})]}),t.jsx("main",{"data-loc":"client/src/components/DashboardLayout.tsx:142",className:"dashboard-preview-main",children:e})]})}function qa({children:e,setSidebarWidth:o,previewMode:n}){const{user:a,logout:r}=Je(),[s,u]=Ye(),{state:l,toggleSidebar:m}=pe(),p=l==="collapsed",[i,d]=c.useState(!1),h=c.useRef(null),w=[...ae,...$e].find(f=>f.path===s),g=a?.role==="admin"?[...ae,...$e]:ae,M=Ut();return c.useEffect(()=>{p&&d(!1)},[p]),c.useEffect(()=>{const f=y=>{if(!i)return;const D=h.current?.getBoundingClientRect().left??0,C=y.clientX-D;C>=Wa&&C<=Va&&o(C)},b=()=>{d(!1)};return i&&(document.addEventListener("mousemove",f),document.addEventListener("mouseup",b),document.body.style.cursor="col-resize",document.body.style.userSelect="none"),()=>{document.removeEventListener("mousemove",f),document.removeEventListener("mouseup",b),document.body.style.cursor="",document.body.style.userSelect=""}},[i,o]),t.jsxs(t.Fragment,{children:[t.jsx(uo,{"data-loc":"client/src/components/DashboardLayout.tsx:205"}),t.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:206",className:"relative",ref:h,children:[t.jsxs(ka,{"data-loc":"client/src/components/DashboardLayout.tsx:207",collapsible:"icon",className:"border-r-0",disableTransition:i,children:[t.jsx(Oa,{"data-loc":"client/src/components/DashboardLayout.tsx:212",className:"h-16 justify-center",children:t.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:213",className:"flex items-center gap-3 px-2 transition-all w-full",children:[t.jsx("button",{"data-loc":"client/src/components/DashboardLayout.tsx:214",onClick:m,className:"h-8 w-8 flex items-center justify-center hover:bg-accent rounded-lg transition-colors focus:outline-none focus-visible:ring-2 focus-visible:ring-ring shrink-0","aria-label":"Toggle navigation",children:t.jsx(Ze,{"data-loc":"client/src/components/DashboardLayout.tsx:219",className:"h-4 w-4 text-muted-foreground"})}),p?null:t.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:222",className:"flex items-center gap-2 min-w-0",children:[t.jsx("img",{"data-loc":"client/src/components/DashboardLayout.tsx:223",className:"h-6 w-6 rounded-md shrink-0",src:"/manus-storage/webtechnicom-phone-logo_47b736fc.png",alt:""}),t.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:224",className:"font-semibold tracking-tight truncate",children:"WebTechnicom"})]})]})}),t.jsx(Ka,{"data-loc":"client/src/components/DashboardLayout.tsx:230",className:"gap-0",children:t.jsx(Ga,{"data-loc":"client/src/components/DashboardLayout.tsx:231",className:"px-2 py-1",children:g.map(f=>{const b=s===f.path;return t.jsx($a,{"data-loc":"client/src/components/DashboardLayout.tsx:235",children:t.jsxs(Ua,{"data-loc":"client/src/components/DashboardLayout.tsx:236",isActive:b,onClick:()=>u(f.path),tooltip:f.label,className:"h-10 transition-all font-normal",children:[t.jsx(f.icon,{"data-loc":"client/src/components/DashboardLayout.tsx:242",className:`h-4 w-4 ${b?"text-primary":""}`}),t.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:245",children:f.label})]})},f.path)})})}),t.jsx(Fa,{"data-loc":"client/src/components/DashboardLayout.tsx:253",className:"p-3",children:n?t.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:255",className:"flex items-center gap-3 rounded-lg px-1 py-1 w-full text-left group-data-[collapsible=icon]:justify-center",children:[t.jsx(Fe,{"data-loc":"client/src/components/DashboardLayout.tsx:256",className:"h-9 w-9 border shrink-0",children:t.jsx(Ke,{"data-loc":"client/src/components/DashboardLayout.t
11sx:256",className:"text-xs font-medium",children:"WT"})}),t.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:257",className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:[t.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:258",className:"text-sm font-medium truncate leading-none",children:"Workspace preview"}),t.jsx("button",{"data-loc":"client/src/components/DashboardLayout.tsx:259",onClick:()=>qe(),className:"text-xs text-primary truncate mt-1.5 hover:underline",children:"Sign in to configure"})]})]}):t.jsxs(xa,{"data-loc":"client/src/components/DashboardLayout.tsx:263",children:[t.jsx(ba,{"data-loc":"client/src/components/DashboardLayout.tsx:264",asChild:!0,children:t.jsxs("button",{"data-loc":"client/src/components/DashboardLayout.tsx:265",className:"flex items-center gap-3 rounded-lg px-1 py-1 hover:bg-accent/50 transition-colors w-full text-left group-data-[collapsible=icon]:justify-center focus:outline-none focus-visible:ring-2 focus-visible:ring-ring",children:[t.jsx(Fe,{"data-loc":"client/src/components/DashboardLayout.tsx:266",className:"h-9 w-9 border shrink-0",children:t.jsx(Ke,{"data-loc":"client/src/components/DashboardLayout.tsx:267",className:"text-xs font-medium",children:a?.name?.charAt(0).toUpperCase()})}),t.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:271",className:"flex-1 min-w-0 group-data-[collapsible=icon]:hidden",children:[t.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:272",className:"text-sm font-medium truncate leading-none",children:a?.name||"-"}),t.jsx("p",{"data-loc":"client/src/components/DashboardLayout.tsx:275",className:"text-xs text-muted-foreground truncate mt-1.5",children:a?.email||"-"})]})]})}),t.jsx(ga,{"data-loc":"client/src/components/DashboardLayout.tsx:281",align:"end",className:"w-48",children:t.jsxs(va,{"data-loc":"client/src/components/DashboardLayout.tsx:282",onClick:r,className:"cursor-pointer text-destructive focus:text-destructive",children:[t.jsx(Io,{"data-loc":"client/src/components/DashboardLayout.tsx:286",className:"mr-2 h-4 w-4"}),t.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:287",children:"Sign out"})]})})]})})]}),t.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:294",className:`absolute top-0 right-0 w-1 h-full cursor-col-resize hover:bg-primary/20 transition-colors ${p?"hidden":""}`,onMouseDown:()=>{p||d(!0)},style:{zIndex:50}})]}),t.jsxs(Pa,{"data-loc":"client/src/components/DashboardLayout.tsx:304",children:[M&&t.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:306",className:"flex border-b h-14 items-center justify-between bg-background/95 px-2 backdrop-blur supports-[backdrop-filter]:backdrop-blur sticky top-0 z-40",children:t.jsxs("div",{"data-loc":"client/src/components/DashboardLayout.tsx:307",className:"flex items-center gap-2",children:[t.jsx(Ta,{"data-loc":"client/src/components/DashboardLayout.tsx:308",className:"h-9 w-9 rounded-lg bg-background"}),t.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:309",className:"flex items-center gap-3",children:t.jsx("div",{"data-loc":"client/src/components/DashboardLayout.tsx:310",className:"flex flex-col gap-1",children:t.jsx("span",{"data-loc":"client/src/components/DashboardLayout.tsx:311",className:"tracking-tight text-foreground",children:w?.label??"Menu"})})})]})}),t.jsx("main",{"data-loc":"client/src/components/DashboardLayout.tsx:319",className:"flex-1 p-4",children:e})]})]})}export{is as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.