var h=(o,p,r)=>new Promise((d,t)=>{var a=e=>{try{l(r.next(e))}catch(s){t(s)}},i=e=>{try{l(r.throw(e))}catch(s){t(s)}},l=e=>e.done?d(e.value):Promise.resolve(e.value).then(a,i);l((r=r.apply(o,p)).next())});import{D as L,G as R,S as w}from"./siteSetting-efd6ab5b.js";import{i as U,a4 as g,l as x,_ as b,__tla as k}from"./index-f0df2f76.js";import{u as S,__tla as v}from"./useRootSetting-17ef8e3d.js";import{d as G,X as I,k as W,e as D,u,a7 as y,_ as H,a8 as T,a9 as $,a3 as c,a6 as C,f as B,a0 as m,ab as E,a1 as O,a2 as P}from"./vue-1631514e.js";import{u as V,__tla as A}from"./useContentViewHeight-c315421e.js";import{W as N,bh as X}from"./antd-057b41b1.js";import{__tla as j}from"./useWindowSizeFn-53b82e7c.js";let F,q=Promise.all([(()=>{try{return k}catch(o){}})(),(()=>{try{return v}catch(o){}})(),(()=>{try{return A}catch(o){}})(),(()=>{try{return j}catch(o){}})()]).then(()=>h(void 0,null,function*(){const o=G({name:"LayoutFooter",components:{Footer:N.Footer,GithubFilled:X},setup(){const{t}=x(),{getShowFooter:a}=S(),{currentRoute:i}=I(),{prefixCls:l}=U("layout-footer"),e=W(null),{setFooterHeight:s}=V();return{getShowLayoutFooter:D(()=>{var _,f;if(u(a)){const n=(_=u(e))==null?void 0:_.$el;s((n==null?void 0:n.offsetHeight)||0)}else s(0);return u(a)&&!((f=u(i).meta)!=null&&f.hiddenFooter)}),prefixCls:l,t,DOC_URL:L,GITHUB_URL:R,SITE_URL:w,openWindow:g,footerRef:e}}}),p=t=>(O("data-v-0f5faecd"),t=t(),P(),t),r=p(()=>c("div",null,"Copyright \xA92020 Vben Admin",-1));function d(t,a,i,l,e,s){const _=y("GithubFilled"),f=y("Footer");return t.getShowLayoutFooter?(H(),T(f,{key:0,class:m(t.prefixCls),ref:"footerRef"},{default:$(()=>[c("div",{class:m(`${t.prefixCls}__links`)},[c("a",{onClick:a[0]||(a[0]=n=>t.openWindow(t.SITE_URL))},C(t.t("layout.footer.onlinePreview")),1),B(_,{onClick:a[1]||(a[1]=n=>t.openWindow(t.GITHUB_URL)),class:m(`${t.prefixCls}__github`)},null,8,["class"]),c("a",{onClick:a[2]||(a[2]=n=>t.openWindow(t.DOC_URL))},C(t.t("layout.footer.onlineDocument")),1)],2),r]),_:1},8,["class"])):E("",!0)}F=b(o,[["render",d],["__scopeId","data-v-0f5faecd"]])}));export{q as __tla,F as default};