import{d as v,r as _,ff as h,p as r,b as g,c as y,o as a,e as w,u as e,h as n,a as u,m as c,f as S,j as x,k as C,K as k,bF as M,bK as i,cT as L,n as P,eW as T,d5 as b,eX as F,eY as N,q as z,t as B,v as E,x as K,y as m,z as R,e$ as V,bn as d,g as j}from"./offline.ee04b43a.js";import{S as q}from"./slide-menu.3787e06f.js";const U=v({__name:"index",setup(A){const l=new URLSearchParams(location.search).has("single"),s=_(!1);return(async()=>{await Promise.all([P(),r(),T(),b(),F(),N(),z(),B(),E()]),await K(),s.value=!0,m(R),i.showLeftPano=!0})(),h.value="",r(),g(f=>{s.value&&V.value&&d.value.length&&!j.value.length&&(m(d.value[0]),i.showLeftPano=!0)}),(f,o)=>{const p=y("router-view");return s.value?(a(),w("div",{key:0,class:M({hideLeft:!e(i).showLeftPano}),style:L(e(l)?{"--left-pano-left":"0px"}:"")},[e(l)?c("",!0):(a(),n(q,{key:0,activeName:e(u).currentRoute.value.name,onChangeItem:o[0]||(o[0]=t=>e(u).push({name:t.name}))},null,8,["activeName"])),S(p,null,{default:x(({Component:t})=>[(a(),n(k,null,[(a(),n(C(t)))],1024))]),_:1})],6)):c("",!0)}}});export{U as default};