import{d as k,a1 as S,f as $,e as p,u as t,av as h,U as F,a2 as w,ad as D,af as U,a4 as n,a5 as g,k as b,a6 as f,V as G}from"./vue-vendor-CxLCUzY4.js";import{be as B,a9 as E}from"./antd-vue-vendor-CDWW6V_M.js";import{S as I,G as V,D as H}from"./siteSetting-DoyCDlSB.js";import{B as v,C as T,at as A,d as W,K as N,_ as K}from"./index-B_2CoVdl.js";import{u as O}from"./useContentViewHeight-DlpfApuB.js";import"./vxe-table-vendor-B5h3MVdD.js";import"./usePageContext-HMYqek-Q.js";import"./useWindowSizeFn-C3WExEpc.js";const d=k({name:"LayoutFooter",components:{Footer:E.Footer,GithubFilled:B},setup(){const{t:o}=N(),{getShowFooter:e}=v(),{currentRoute:m}=S(),{prefixCls:C}=T("layout-footer"),r=$(null),{setFooterHeight:a}=O(),{getDarkMode:u}=v(),i=p(()=>u.value===A.DARK),s=p(()=>{var c,_;if(t(e)){const l=(c=t(r))==null?void 0:c.$el;a((l==null?void 0:l.offsetHeight)||0)}else a(0);return t(e)&&!((_=t(m).meta)!=null&&_.hiddenFooter)}),L=p(()=>t(i)?"rgba(255, 255, 255, 1)":"rgba(0, 0, 0, 0.85)");return{getShowLayoutFooter:s,prefixCls:C,t:o,DOC_URL:H,GITHUB_URL:V,SITE_URL:I,openWindow:W,footerRef:r,hoverColor:L}}}),R=()=>{h(o=>({"0c125d2c":o.hoverColor}))},y=d.setup;d.setup=y?(o,e)=>(R(),y(o,e)):R;function j(o,e,m,C,r,a){const u=F("GithubFilled"),i=F("Footer");return o.getShowLayoutFooter?(w(),D(i,{key:0,class:f(o.prefixCls),ref:"footerRef"},{default:U(()=>[n("div",{class:f(`${o.prefixCls}__links`)},[n("a",{onClick:e[0]||(e[0]=s=>o.openWindow(o.SITE_URL))},g(o.t("layout.footer.onlinePreview")),1),b(u,{onClick:e[1]||(e[1]=s=>o.openWindow(o.GITHUB_URL)),class:f(`${o.prefixCls}__github`)},null,8,["class"]),n("a",{onClick:e[2]||(e[2]=s=>o.openWindow(o.DOC_URL))},g(o.t("layout.footer.onlineDocument")),1)],2),e[3]||(e[3]=n("div",null,"Copyright ©2021 JEECG开源社区 出品",-1))]),_:1},8,["class"])):G("",!0)}const Z=K(d,[["render",j],["__scopeId","data-v-f53c984e"]]);export{Z as default};
