import{B as m,a as _,C as p,r as f,_ as g}from"./index-ba596ae9.js";import{g as i,r as n}from"./router-1773feb7.js";import{h as v,r as b,Z as h,l as r,a6 as w,o as R,q as x,N as C,a4 as V,t as y,p as l,W as N,V as k,a7 as T}from"./vue-a39e6937.js";const B=["element-loading-text"],D={key:0,class:"loading-footer"},W=v({__name:"loading",setup(A){let a;const o=m(),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,$)=>{const u=y("el-button"),c=T("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),[[c,!0]]),t.showReload?(l(),r("div",D,[x(u,{onClick:d,type:"warning"},{default:C(()=>[N(k(e.$t("utils.Reload")),1)]),_:1})])):V("",!0)])}}});const I=g(W,[["__scopeId","data-v-55975bfe"]]);export{I as default};
