import{aP as m,a as v,bA as b,bu as y,b0 as g,b as h,r as C,f as F,bm as S,aQ as _,o as L,aR as R,p as k,i as s,t as c,j as w,n as l,aS as $,c as I,k as n,fa as U,fb as G}from"./index.0d073eaa.js";import{D,G as B,S as H}from"./siteSetting.c485f07c.js";import{a as T}from"./useContentViewHeight.01b9d1c6.js";import{G as V}from"./GithubFilled.f5bd26ea.js";import"./useWindowSizeFn.ef20ece8.js";const W=v({name:"LayoutFooter",components:{Footer:b.Footer,GithubFilled:V},setup(){const{t:o}=I(),{getShowFooter:e}=y(),{currentRoute:u}=g(),{prefixCls:p}=h("layout-footer"),r=C(null),{setFooterHeight:i}=T();return{getShowLayoutFooter:F(()=>{var a,t;if(n(e)){const d=(a=n(r))==null?void 0:a.$el;i((d==null?void 0:d.offsetHeight)||0)}else i(0);return n(e)&&!((t=n(u).meta)!=null&&t.hiddenFooter)}),prefixCls:p,t:o,DOC_URL:D,GITHUB_URL:B,SITE_URL:H,openWindow:S,footerRef:r}}}),x=o=>(U("data-v-62583d60"),o=o(),G(),o),A=x(()=>s("div",null,"Copyright \xA92020 Vben Admin",-1));function N(o,e,u,p,r,i){const f=_("GithubFilled"),a=_("Footer");return o.getShowLayoutFooter?(L(),R(a,{key:0,class:l(o.prefixCls),ref:"footerRef"},{default:k(()=>[s("div",{class:l(`${o.prefixCls}__links`)},[s("a",{onClick:e[0]||(e[0]=t=>o.openWindow(o.SITE_URL))},c(o.t("layout.footer.onlinePreview")),1),w(f,{onClick:e[1]||(e[1]=t=>o.openWindow(o.GITHUB_URL)),class:l(`${o.prefixCls}__github`)},null,8,["class"]),s("a",{onClick:e[2]||(e[2]=t=>o.openWindow(o.DOC_URL))},c(o.t("layout.footer.onlineDocument")),1)],2),A]),_:1},8,["class"])):$("",!0)}var Q=m(W,[["render",N],["__scopeId","data-v-62583d60"]]);export{Q as default};
