import{_ as I,y as s,Q as T,H as x,R as w,o as _,c as d,b as i,w as p,T as u,a as r,t as v,f as y,p as b,g as O}from"./index.js";import{_ as P}from"./warning.js";const R=e=>(b("data-v-154e29e7"),e=e(),O(),e),k={class:"server-reload"},B={key:0,class:"server-reload__container"},C={class:"server-reload__content"},M=R(()=>r("img",{class:"server-reload__warning",src:P},null,-1)),N={class:"server-reload__message"},V={data:()=>({noAdaptation:!0})},j=Object.assign(V,{__name:"ServerReload",props:{openParams:Object},setup(e){const o=e,m=5e3,n=s(!0),f=s(o.openParams[1]);s(o.openParams[0]);const t=s(o.openParams[0]);function h(){setTimeout(()=>{n.value=!1},m)}let a=null;function S(){a=setInterval(()=>{t.value>0?t.value--:clearInterval(a)},1e3)}const g=T(()=>{const c=Math.floor(t.value/60).toString().padStart(2,"0"),l=(t.value%60).toString().padStart(2,"0");return`${c}:${l}`});return x(()=>{S(),h()}),w(()=>{a&&clearInterval(a)}),(c,l)=>(_(),d("div",k,[i(u,{name:"scale-bg",appear:""},{default:p(()=>[n.value?(_(),d("div",B,[i(u,{name:"scale-content",appear:""},{default:p(()=>[r("div",C,[M,r("div",N,v(f.value)+" "+v(g.value),1)])]),_:1})])):y("",!0)]),_:1})]))}}),U=I(j,[["__scopeId","data-v-154e29e7"]]);export{U as default};
