import{j as _,aP as g,aH as h,a as y,dz as F,dv as C,de as S,b as w,r as L,f as G,c_ as $,o as O,aK as R,p as I,i as l,t as v,n as c,aL as k,c as U,k as i,aM as D,aN as P,aJ as m}from"./index.bde7963b.js";import{D as B,G as H,S as j}from"./siteSetting.c485f07c.js";import{u as N}from"./useContentViewHeight.9a4f8bdd.js";import"./useWindowSizeFn.ada338ad.js";var x={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M511.6 76.3C264.3 76.2 64 276.4 64 523.5 64 718.9 189.3 885 363.8 946c23.5 5.9 19.9-10.8 19.9-22.2v-77.5c-135.7 15.9-141.2-73.9-150.3-88.9C215 726 171.5 718 184.5 703c30.9-15.9 62.4 4 98.9 57.9 26.4 39.1 77.9 32.5 104 26 5.7-23.5 17.9-44.5 34.7-60.8-140.6-25.2-199.2-111-199.2-213 0-49.5 16.3-95 48.3-131.7-20.4-60.5 1.9-112.3 4.9-120 58.1-5.2 118.5 41.6 123.2 45.3 33-8.9 70.7-13.6 112.9-13.6 42.4 0 80.2 4.9 113.5 13.9 11.3-8.6 67.3-48.8 121.3-43.9 2.9 7.7 24.7 58.3 5.5 118 32.4 36.8 48.9 82.7 48.9 132.3 0 102.2-59 188.1-200 212.9a127.5 127.5 0 0138.1 91v112.5c.8 9 0 17.9 15 17.9 177.1-59.7 304.6-227 304.6-424.1 0-247.2-200.4-447.3-447.5-447.3z"}}]},name:"github",theme:"filled"},A=x;function b(e){for(var t=1;t<arguments.length;t++){var o=arguments[t]!=null?Object(arguments[t]):{},n=Object.keys(o);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(o).filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable}))),n.forEach(function(a){T(e,a,o[a])})}return e}function T(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var f=function(t,o){var n=b({},t,o.attrs);return _(g,b({},n,{icon:A}),null)};f.displayName="GithubFilled";f.inheritAttrs=!1;var V=f;const W=y({name:"LayoutFooter",components:{Footer:F.Footer,GithubFilled:V},setup(){const{t:e}=U(),{getShowFooter:t}=C(),{currentRoute:o}=S(),{prefixCls:n}=w("layout-footer"),a=L(null),{setFooterHeight:u}=N();return{getShowLayoutFooter:G(()=>{var s,r;if(i(t)){const d=(s=i(a))==null?void 0:s.$el;u((d==null?void 0:d.offsetHeight)||0)}else u(0);return i(t)&&!((r=i(o).meta)!=null&&r.hiddenFooter)}),prefixCls:n,t:e,DOC_URL:B,GITHUB_URL:H,SITE_URL:j,openWindow:$,footerRef:a}}}),z=e=>(D("data-v-62583d60"),e=e(),P(),e),E=z(()=>l("div",null,"Copyright \xA92020 Vben Admin",-1));function M(e,t,o,n,a,u){const p=m("GithubFilled"),s=m("Footer");return e.getShowLayoutFooter?(O(),R(s,{key:0,class:c(e.prefixCls),ref:"footerRef"},{default:I(()=>[l("div",{class:c(`${e.prefixCls}__links`)},[l("a",{onClick:t[0]||(t[0]=r=>e.openWindow(e.SITE_URL))},v(e.t("layout.footer.onlinePreview")),1),_(p,{onClick:t[1]||(t[1]=r=>e.openWindow(e.GITHUB_URL)),class:c(`${e.prefixCls}__github`)},null,8,["class"]),l("a",{onClick:t[2]||(t[2]=r=>e.openWindow(e.DOC_URL))},v(e.t("layout.footer.onlineDocument")),1)],2),E]),_:1},8,["class"])):k("",!0)}var Y=h(W,[["render",M],["__scopeId","data-v-62583d60"]]);export{Y as default};
