1import{U as v,w as x,bz as k,h as w,bA as C,M as d,O as l,b0 as B,Y as p,a1 as _,N as b,P,ao as S,ap as q,aq as U,aI as $,S as A,aE as L}from"./DPjEYeee.js";import{q as N}from"./ud4_Ojlb.js";const R={class:"pb-2 flex flex-col"},j=v({__name:"PageSidebar",props:{title:{},sidebar:{},links:{},headerClass:{},ui:{}},async setup(h){let r,u;const o=x(),t=h,n=t.sidebar,m=n?([r,u]=k(()=>w(()=>`sidebar-${n}`,()=>N("sidebars").where("group","=",n).all(),"$5UILwQp9z6")),r=await r,u(),r).data:C([]),f=c=>{const[a,i]=c.split("?"),s=new URLSearchParams(i??""),e=s.has("search")?s.get("search"):null;return a!==o.path?!1:e!==null?o.query.search===e:!o.query.search},g=_(()=>(t.links?[...t.links]:(m.value??[]).map(a=>({label:a.label,to:a.to}))).map(a=>({...a,active:f(a.to)}))),y=_(()=>({...t.ui,header:[t.headerClass,t.ui?.header].filter(Boolean).join(" ")||void 0}));return(c,a)=>{const i=$,s=B;return l(),d(s,{variant:"sidebar",ui:p(y)},{header:b(()=>[A(L(t.title),1)]),default:b(()=>[P("div",R,[(l(!0),S(q,null,U(p(g),e=>(l(),d(i,{key:e.to,label:e.label,to:e.to,icon:e.icon,"aria-current":e.active?"page":void 0,ui:{base:`rounded-none text-sm font-medium normal-case tracking-tight py-3 px-4 bg-transparent hover:bg-gray-50 hover:border-l-4 border-primary group ${e.active?"bg-gray-50 border-l-4 border-primary":""}`,label:"text-pretty"}},null,8,["label","to","icon","aria-current","ui"]))),128))])]),_:1},8,["ui"])}}}),E=Object.assign(j,{__name:"PageSidebar"});export{E as _};
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.