import{g as p,p as y,r as B,a as P,u as F,b as I,c as z,d as R,s as D,e as N,f as m,h as T,i as E,t as d,w as L,j as k,k as n,l as M,m as A,n as b,o as H,q as G,v as O,x as C,y as j,_ as q,z as J,A as V,B as K,C as U,D as h,E as f,F as W,G as c,H as Y,I as Z,V as $,J as v,K as Q,L as X,M as ee,N as te,O as ae,P as se}from"./index-g0hxAASb.js";import{u as oe}from"./ssrBoot-D2oXG11D.js";const ne=y({app:Boolean,color:String,height:{type:[Number,String],default:"auto"},...j(),...C(),...O(),...G(),...H(),...b({tag:"footer"}),...A()},"VFooter"),le=p()({name:"VFooter",props:ne(),setup(e,l){let{slots:a}=l;const o=B(),{themeClasses:t}=P(e),{backgroundColorClasses:s,backgroundColorStyles:r}=F(()=>e.color),{borderClasses:u}=I(e),{elevationClasses:S}=z(e),{roundedClasses:w}=R(e),g=D(32),{resizeRef:x}=N(i=>{i.length&&(g.value=i[0].target.clientHeight)}),_=m(()=>e.height==="auto"?g.value:parseInt(e.height,10));return T(()=>e.app,()=>{const i=E({id:e.name,order:m(()=>parseInt(e.order,10)),position:d(()=>"bottom"),layoutSize:_,elementSize:m(()=>e.height==="auto"?void 0:_.value),active:d(()=>e.app),absolute:d(()=>e.absolute)});L(()=>{o.value=i.layoutItemStyles.value})}),k(()=>n(e.tag,{ref:x,class:["v-footer",t.value,s.value,u.value,S.value,w.value,e.class],style:[r.value,e.app?o.value:{height:M(e.height)},e.style]},a)),{}}}),re=["href","title"],ue={class:"text-caption text-disabled",style:{position:"absolute",right:"16px"}},ie={__name:"AppFooter",setup(e){const{mobile:l}=J(),a=[{title:"孙悟远",icon:"mdi-earth",href:"https://wuyuan.dev"},{title:"ZeroCat",icon:"mdi-xml",href:"https://zerocat.houlangs.com"},{title:"GitHub",icon:"mdi-github",href:"https://github.com/sunwuyuan/classworks-frontend"}];return(o,t)=>U(l)?(h(),V(le,{key:0,height:"40",app:""},{default:f(()=>[(h(),W(Y,null,Z(a,s=>c("a",{key:s.title,href:s.href,title:s.title,class:"d-inline-block mx-2 social-link",rel:"noopener noreferrer",target:"_blank"},[n($,{icon:s.icon,size:s.icon==="mdi-earth"?24:16},null,8,["icon","size"])],8,re)),64)),c("div",ue,[v(" © 2020-"+Q(new Date().getFullYear())+" ",1),t[0]||(t[0]=c("span",{class:"d-none d-sm-inline-block"},"SunWuyuan",-1)),t[1]||(t[1]=v(" — ")),t[2]||(t[2]=c("a",{class:"text-decoration-none on-surface",href:"https://github.com/sunwuyuan/classworks-frontend",rel:"noopener noreferrer",target:"_blank"}," Classworks ",-1))])]),_:1})):K("",!0)}},ce=q(ie,[["__scopeId","data-v-619113f3"]]),me=y({scrollable:Boolean,...C(),...te(),...b({tag:"main"})},"VMain"),de=p()({name:"VMain",props:me(),setup(e,l){let{slots:a}=l;const{dimensionStyles:o}=X(e),{mainStyles:t}=ee(),{ssrBootStyles:s}=oe();return k(()=>n(e.tag,{class:["v-main",{"v-main--scrollable":e.scrollable},e.class],style:[t.value,s.value,o.value,e.style]},{default:()=>{var r,u;return[e.scrollable?n("div",{class:"v-main__scroller"},[(r=a.default)==null?void 0:r.call(a)]):(u=a.default)==null?void 0:u.call(a)]}})),{}}}),ge={__name:"default",setup(e){return(l,a)=>{const o=ae("router-view"),t=ce;return h(),V(se,null,{default:f(()=>[n(de,null,{default:f(()=>[n(o)]),_:1}),n(t)]),_:1})}}};export{ge as default};
