import{D as C,G as F,S}from"./siteSetting--X_-_MSh.js";import{k as g,f as h,B as L,b as y,_}from"./entry/index-J3oNdpPM-1725854857151.js";import{d as w,S as R,f as $,c as k,u as a,a5 as m,_ as v,a6 as I,a7 as b,a0 as n,a1 as c,k as U,a2 as p,a9 as B,ag as D,ah as G}from"./vue-Ba_NIFIa.js";import{a as H}from"./useContentViewHeight-Bo4G-qbM.js";import{L as T,bV as V}from"./antd-DubAfnNp.js";import"./useWindowSizeFn-BzWD8RX1.js";const W=w({name:"LayoutFooter",components:{Footer:T.Footer,GithubFilled:V},setup(){const{t:o}=y(),{getShowFooter:e}=g(),{currentRoute:u}=R(),{prefixCls:d}=h("layout-footer"),r=$(null),{setFooterHeight:i}=H();return{getShowLayoutFooter:k(()=>{var s,t;if(a(e)){const l=(s=a(r))==null?void 0:s.$el;i((l==null?void 0:l.offsetHeight)||0)}else i(0);return a(e)&&!((t=a(u).meta)!=null&&t.hiddenFooter)}),prefixCls:d,t:o,DOC_URL:C,GITHUB_URL:F,SITE_URL:S,openWindow:L,footerRef:r}}}),N=o=>(D("data-v-791b0139"),o=o(),G(),o),A=N(()=>n("div",null,"Copyright ©2023 Simple Admin",-1));function O(o,e,u,d,r,i){const f=m("GithubFilled"),s=m("Footer");return o.getShowLayoutFooter?(v(),I(s,{key:0,class:p(o.prefixCls),ref:"footerRef"},{default:b(()=>[n("div",{class:p(`${o.prefixCls}__links`)},[n("a",{onClick:e[0]||(e[0]=t=>o.openWindow(o.SITE_URL))},c(o.t("layout.footer.onlinePreview")),1),U(f,{onClick:e[1]||(e[1]=t=>o.openWindow(o.GITHUB_URL)),class:p(`${o.prefixCls}__github`)},null,8,["class"]),n("a",{onClick:e[2]||(e[2]=t=>o.openWindow(o.DOC_URL))},c(o.t("layout.footer.onlineDocument")),1)],2),A]),_:1},8,["class"])):B("",!0)}const K=_(W,[["render",O],["__scopeId","data-v-791b0139"]]);export{K as default};