import{c as e,r as s,q as t,v as a,x as l,z as o,y as r,A as i,e as p,b5 as n}from"./base-lib.js?v=1761009159";import{aM as c}from"./validator.js?v=1761009159";import{_ as m}from"./utils-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";const d={class:"mw-con relative p-2rem"},u=["title"],_={class:"flex w-full justify-between mt-4px items-center text-#999"},f=m(e({__name:"progress",emits:["close"],setup(e,{emit:m}){const f=s({id:1,shell:"shell",project:"project",percentage:0,total:0,data_size:0,speed:0}),j=m,v=async()=>{try{const{data:e}=await c();if(!e.status||!e.speed)return void j("close");if(f.value=e,1===e.copy_status)return void j("close");setTimeout(()=>{v()},1500)}catch(e){}};return t(v),(e,s)=>{const t=n;return a(),l("div",null,[o("div",d,[o("span",{class:"fname",style:{width:"80%"},title:"正在下载: "+r(f).shell}," 正在迁移数据至目录: "+i(r(f).project),9,u),p(t,{percentage:r(f).percentage},null,8,["percentage"]),o("div",_,[o("span",null,i(r(f).total)+"/"+i(r(f).data_size),1),o("span",null,i(0==r(f).speed?"正在连接..":r(f).speed),1)]),s[0]||(s[0]=o("p",{style:{"padding-top":"10px",color:"#888"}},"注：迁移即将完成时mysql将会重启，进度会在100%前后波动，属于正常现象，等待迁移成功即可。",-1))])])}}}),[["__scopeId","data-v-415a1fe3"]]);export{f as default};
