1import{_ as p,a as b}from"./B7TqMeXx.js";import{ad as g,f as y,K as f,o as n,c as l,b as r,a as o,F as x,y as k,x as m,w as v,aw as w,t as C,e as L,l as A,aQ as B,B as S,bs as D,al as F,_ as I}from"./D9FuGjdU.js";import{u as N}from"./z6l0TaJj.js";import{L as T}from"./BjVtflvA.js";import{C as U}from"./DWOy07S_.js";import{C as G}from"./Ba-xV8rJ.js";import{S as H}from"./4cL07-AS.js";import{T as M}from"./DC-m73rp.js";import"./CqejSHr4.js";import"./QPdm7WrP.js";import"./Bm13aU3n.js";import"./64Ne4knH.js";import"./DZwlEgzj.js";import"./DCeCDMtI.js";const V=g("LayoutGridIcon",[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]),$={class:"home-root cab__root"},z={class:"home-container cab__body"},E={class:"cab__nav"},K={class:"cab__content"},Q=y({__name:"cabinet",async setup(W){let s,c;const{data:i}=([s,c]=f(()=>N()),s=await s,c(),s),d=S(()=>{const t=[{label:"Dashboard",to:"/admin",icon:T}],e=i.value;return(e?.isAdmin||(e?.schools?.length??0)>0||(e?.teams?.length??0)>0||(e?.leagues?.length??0)>0)&&t.push({label:"Schedule",to:"/admin/schedule",icon:U}),(e?.isAdmin||(e?.schools?.length??0)>0||(e?.teams?.length??0)>0||(e?.leagues?.length??0)>0)&&t.push({label:"Upload schedule",to:"/admin/schedule-upload",icon:D}),(e?.isAdmin||(e?.schools?.length??0)>0||(e?.teams?.length??0)>0||(e?.leagues?.length??0)>0)&&t.push({label:"Submitted scores",to:"/admin/scores",icon:G}),(e?.isAdmin||(e?.schools?.length??0)>0||(e?.leagues?.length??0)>0||(e?.teams?.length??0)>0)&&t.push({label:"Coaches",to:"/admin/coaches",icon:F}),(e?.leagues?.length??0)>0&&t.push({label:"League",to:"/admin/league",icon:H}),(e?.isAdmin||(e?.leagues?.length??0)>0)&&t.push({label:"Brackets",to:"/admin/brackets",icon:M}),i.value?.isAdmin&&t.push({label:"Widgets",to:"/admin/widgets",icon:V}),t});return(t,e)=>{const h=p,_=L,u=b;return n(),l("div",$,[r(h),e[0]||(e[0]=o("div",{class:"cab__sub"},[o("div",{class:"home-container cab__sub-in"},[o("span",{class:"cab__eyebrow"},"My clubhouse")])],-1)),o("div",z,[o("aside",E,[(n(!0),l(x,null,k(A(d),a=>(n(),m(_,{key:a.to,to:a.to,class:"cab__link","exact-active-class":"on"},{default:v(()=>[(n(),m(w(a.icon),{size:16})),o("span",null,C(a.label),1)]),_:2},1032,["to"]))),128))]),o("main",K,[B(t.$slots,"default",{},void 0,!0)])]),r(u)])}}}),ne=I(Q,[["__scopeId","data-v-59b3492c"]]);export{ne 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.