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