System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./index-legacy119.js?v=1761009159","./useMethod-legacy3.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./config-legacy.js?v=1761009159","./useMethod-legacy2.js?v=1761009159","./validator-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159","./column-legacy.js?v=1761009159"],function(e,t){"use strict";var l,n,a,s,c,u,r,o,i,f,d,p,m,_,b,g,x,v,y,k,j,h,D,C,w,z,M,N,O,S,q;return{setters:[function(e){l=e.c,n=e.r,a=e.q,s=e.a6,c=e.v,u=e.x,r=e.z,o=e.A,i=e.y,f=e.K,d=e.e,p=e.D,m=e.B,_=e.C,b=e.b5,g=e.bO,x=e.bN,v=e.G},function(e){y=e.l,k=e._},function(e){j=e._},function(e){h=e.i,D=e.L,C=e.M,w=e.N,z=e.p,M=e.O,N=e.P,O=e.Q,S=e.R,q=e.S},null,null,null,null,null,null],execute:function(){var t={class:"p-2rem pt-0"},A={key:0,class:"flex-col flex"},B={class:"text-base"},F={class:"mb-1.2rem mt-[0.4rem] flex items-center"},G={key:1,class:"flex flex-col pl-8px leading-[22px] pb-2rem"},H={class:"w-[28rem] truncate inline-block"},I={key:2,class:"flex flex-col pl-8px"},K={key:0,class:"mt-8px"},L={class:"flex justify-end mt-[1.2rem]"},P=l({__name:"back-progress",props:{compData:{type:Object,default:function(){return{}}}},setup:function(e){var l=n(h.value?"还原":"备份"),k=e;return a(function(){var e;D.status=1,D.msg="即将开始"+l.value,D.progress=0,D.time=0,C.value="正在获取"+l.value+"日志",w(null===(e=k.compData)||void 0===e?void 0:e.type)}),s(function(){z.value=null}),function(e,n){var a=b,s=j,k=g,w=x,z=y,P=v;return c(),u("div",t,[r("p",{class:f(["mt-1.2rem my-2rem font-bold text-base",{"text-dangerDark":3===i(D).status}])},o(1===i(D).status?"".concat(i(l),"进度条"):"".concat(3===i(D).status?"失败":"成功","详情")),3),[0,1,4,5].includes(i(D).status)?(c(),u("div",A,[r("span",B,o(i(D).msg),1),r("div",F,[d(a,{class:"w-full","text-inside":!0,"stroke-width":20,percentage:i(D).progress,status:"success"},null,8,["percentage"]),r("i",{class:"svgtofont-el-circle-close text-dangerDark !text-large pl-4px cursor-pointer",onClick:n[0]||(n[0]=function(){return i(M)&&i(M).apply(void 0,arguments)})})]),d(s,{class:"h-22rem !rounded-none",content:i(C)},null,8,["content"])])):p("",!0),2===i(D).status||3===i(D).status?(c(),u("div",G,[d(w,{title:!1,column:1,size:"small",border:"",class:"table-descriptions"},{default:m(function(){return[d(k,{label:"".concat(i(l),"名称：")},{default:m(function(){return[_(o(i(N).name),1)]}),_:1},8,["label"]),d(k,{label:"".concat(i(l),"时间：")},{default:m(function(){return[_(o(i(N).end_time),1)]}),_:1},8,["label"]),d(k,{label:"".concat(i(l),"大小：")},{default:m(function(){return[_(o(i(N).files_size),1)]}),_:1},8,["label"]),d(k,{label:"backup_file_sha256"},{default:m(function(){return[r("span",H,o(i(N).backup_file_sha256),1)]}),_:1}),d(k,{label:"耗时"},{default:m(function(){return[_(o(Number(i(N).time_count).toFixed(2))+" 秒 ",1)]}),_:1}),d(k,{label:"状态："},{default:m(function(){return n[1]||(n[1]=[_(" 成功",-1)])}),_:1,__:[1]})]}),_:1})])):p("",!0),3===i(D).status?(c(),u("div",I,[d(z,{column:i(O),data:i(S)},null,8,["column","data"]),i(h)?(c(),u("span",K,"提示：还原失败项已经自动恢复到还原前")):p("",!0),r("div",L,[d(P,{type:"danger",onClick:i(q)},{default:m(function(){return n[2]||(n[2]=[_("重试",-1)])}),_:1,__:[2]},8,["onClick"])])])):p("",!0)])}}});e("default",k(P,[["__scopeId","data-v-2fc0f578"]]))}}});
