import k from"./DocsAsideTree-09b1b5ad.mjs";import{G as g,O as A,s as _,Q as P,_ as b,d as w,o as v,c as B,f as x,w as C,i as D,b as N,a as $,j}from"./entry-d195bacb.mjs";const F=()=>{const{fileFromPath:p,navFromPath:a,navKeyFromPath:l}=P(),{navigation:t,theme:f,page:d}=g(),c=A(),o=_(()=>l(c.path,"aside",t.value)),u=_(()=>{var e,n,r,s;return typeof((e=o.value)==null?void 0:e.level)!="undefined"?(n=o.value)==null?void 0:n.level:((s=(r=f.value)==null?void 0:r.aside)==null?void 0:s.level)||0}),i=_(()=>{var e,n;return((n=(e=f.value)==null?void 0:e.aside)==null?void 0:n.filter)||[]});return{tree:_(()=>{var r,s,m;let e=t.value||[],n=c.path;if((r=o.value)!=null&&r.root&&(n=(s=o.value)==null?void 0:s.root,e=a(n,t.value)),u.value){const y=n.split("/").splice(0,1+u.value).join("/");e=a(y,e)||[],Array.isArray(e)||(e=[e])}return e.length===0&&(e=p(((m=d.value)==null?void 0:m._path)||"/",t.value)||[],Array.isArray(e)||(e=[e])),e.filter(h=>!i.value.includes(h._path))}),asideConfig:o}},G=w({name:"DocsAside",setup(p,{expose:a}){a();const{tree:l}=F(),t={tree:l};return Object.defineProperty(t,"__isScriptSetup",{enumerable:!1,value:!0}),t}}),O=$("span",{class:"ml-2"},"Go back",-1);function S(p,a,l,t,f,d){var i;const c=k,o=j,u=D;return v(),B("nav",null,[((i=t.tree)==null?void 0:i.length)>0?(v(),x(c,{key:0,links:t.tree},null,8,["links"])):(v(),x(u,{key:1,to:"/",class:"flex items-center text-lg cursor-pointer text-secondary hover:text-secondary-hover"},{default:C(()=>[N(o,{name:"heroicons-outline:arrow-left",class:"w-6 h-6"}),O]),_:1}))])}var I=b(G,[["render",S]]);export{I as default};
