import{n as u,a as _,p,r as f,_ as g}from"./index-fNs72j9w.js";import{a as i,r as n}from"./router-BSeika6K.js";import{B as v,a as b,ab as h,D as r,_ as w,G as R,H as C,P as x,W as V,I as k,X as N,C as l,V as T,U as y}from"./vue-DweYBrEc.js";const B=["element-loading-text"],D={key:0,class:"loading-footer"},W=v({__name:"loading",setup(A){let a;const o=u(),s=_(),t=b({maximumWait:1e3*6,showReload:!1}),d=()=>{f.go(0)};if(p()&&o.state.tabsViewRoutes){let e=i(o.state.tabsViewRoutes);e&&n(e.path)}else if(s.state.viewRoutes){let e=i(s.state.viewRoutes);e&&n(e.path)}return a=window.setTimeout(()=>{t.showReload=!0},t.maximumWait),h(()=>{clearTimeout(a)}),(e,I)=>{const c=k("el-button"),m=N("loading");return l(),r("div",null,[w(R("div",{"element-loading-background":"var(--ba-bg-color-overlay)","element-loading-text":e.$t("utils.Loading"),class:"default-main ba-main-loading"},null,8,B),[[m,!0]]),t.showReload?(l(),r("div",D,[C(c,{onClick:d,type:"warning"},{default:x(()=>[T(y(e.$t("utils.Reload")),1)]),_:1})])):V("",!0)])}}}),E=g(W,[["__scopeId","data-v-ae7eb6c1"]]);export{E as default};
