import{D as y,G as C,S as _}from"./siteSetting-efd6ab5b.js";import{y as F,u as g,U as L,o as R,_ as $}from"./index.js";import{d as v,S as w,f as S,c as U,u as n,Z as k,a4 as h,a5 as D,a1 as u,a8 as G,a6 as m,$ as a,a0 as c,k as I}from"./vue-08ef39cb.js";import{u as b}from"./useContentViewHeight-3410df66.js";import{L as B,aT as H}from"./antd-c0547b89.js";import"./useWindowSizeFn-40274562.js";const T=v({name:"LayoutFooter",components:{Footer:B.Footer,GithubFilled:H},setup(){const{t:o}=R(),{getShowFooter:e}=F(),{currentRoute:f}=w(),{prefixCls:p}=g("layout-footer"),r=S(null),{setFooterHeight:i}=b();return{getShowLayoutFooter:U(()=>{var s,t;if(n(e)){const l=(s=n(r))==null?void 0:s.$el;i((l==null?void 0:l.offsetHeight)||0)}else i(0);return n(e)&&!((t=n(f).meta)!=null&&t.hiddenFooter)}),prefixCls:p,t:o,DOC_URL:y,GITHUB_URL:C,SITE_URL:_,openWindow:L,footerRef:r}}});function V(o,e,f,p,r,i){const d=m("GithubFilled"),s=m("Footer");return o.getShowLayoutFooter?(k(),h(s,{key:0,class:u(o.prefixCls),ref:"footerRef"},{default:D(()=>[a("div",{class:u(`${o.prefixCls}__links`)},[a("a",{onClick:e[0]||(e[0]=t=>o.openWindow(o.SITE_URL))},c(o.t("layout.footer.onlinePreview")),1),I(d,{onClick:e[1]||(e[1]=t=>o.openWindow(o.GITHUB_URL)),class:u(`${o.prefixCls}__github`)},null,8,["class"]),a("a",{onClick:e[2]||(e[2]=t=>o.openWindow(o.DOC_URL))},c(o.t("layout.footer.onlineDocument")),1)],2),e[3]||(e[3]=a("div",null,"Copyright ©2020 Vben Admin",-1))]),_:1},8,["class"])):G("",!0)}const P=$(T,[["render",V],["__scopeId","data-v-0f5faecd"]]);export{P as default};