System.register(["./index-legacy-BJO1GMTD.js?v=1773287522785","./index-legacy-DQdImDha.js?v=1773287522785","./index-legacy-CM4lwQrA.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-LjZ-8uGn.js?v=1773287522785","./backup-info-legacy-CWnH1sm2.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./utils-legacy-D3bAeO-j.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785"],(function(e,s){"use strict";var a,t,r,n,l,i,o,c,_,u,p,g,d,m,y,x,f,v,h,j,w,k,b,C;return{setters:[e=>{a=e._},e=>{t=e._,r=e.l,n=e.h,l=e.i},e=>{i=e.c,o=e.g},e=>{c=e.k,_=e.R,u=e.e,p=e.o,g=e.b,d=e.$,m=e.Z,y=e.ak,x=e.a0,f=e.a9,v=e._,h=e.j,j=e.S,w=e.a8},e=>{k=e.ad,b=e.ab,C=e.k},null,null,null,null,null,null,null,null],execute:function(){const s={class:"p-16px"},I={class:"h-250px"};e("default",c({__name:"index",props:{onRefresh:{}},emits:["close"],setup(e,{emit:c}){const{t:R}=_(),z=c,D=e,M=u({task_msg:"",exec_log:"",progress:0}),S=()=>{n({title:R("Config.Backup.index_14"),content:R("Config.Migrate.index_24"),onConfirm:async()=>{Z&&clearInterval(Z),await i(),z("close")}})};let Z=null;const q=async()=>{const{message:e}=await o();l(e)&&(M.task_msg=e.migrate_msg,M.exec_log=e.migrate_log,M.progress=e.migrate_progress,2!==e.run_status&&3!==e.run_status||(Z&&clearInterval(Z),2===e.run_status?D.onRefresh("success",{panel_addr:e.panel_addr,panel_user:e.panel_user,panel_password:e.panel_password,start_time:e.start_time,last_update:e.last_update}):D.onRefresh("error",{errData:e.err_info,start_time:e.start_time,last_update_time:e.last_update,server_ip:e.server_ip,ssh_port:e.ssh_port,ssh_user:e.ssh_user,password:e.password}),z("close")))};return p((()=>{q(),Z=window.setInterval((()=>{q()}),2e3)})),g((()=>{Z&&clearInterval(Z)})),(e,n)=>{const l=t,i=k,o=b,c=r,_=C,u=a;return d(),m("div",s,[y("",!0),x(i,{type:"warning"},{default:f((()=>[n[1]||(n[1]=v("span",{class:"color-warning"},"Migration is in progress, please do not close the page, if you have any questions please contact us in time ",-1)),x(l,{href:"mailto:support@yakpanel.com",target:"_blank"},{default:f((()=>n[0]||(n[0]=[h("support@yakpanel.com")]))),_:1,__:[0]})])),_:1,__:[1]}),x(_,{class:"flex-nowrap! items-center my-10px",size:5},{default:f((()=>[x(o,{height:24,percentage:j(M).progress,"indicator-placement":"inside",processing:j(M).progress<100,status:"success"},null,8,["percentage","processing"]),j(M).progress<100?(d(),w(c,{key:0,name:"base-error",class:"text-error hover:text-#777777",size:20,onClick:S})):y("",!0)])),_:1}),v("div",I,[x(u,{log:j(M).exec_log},null,8,["log"])])])}}}))}}}));
