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