File: /www/server/panel/BTPanel/static/js/back-progress-legacy.js
!function(){function e(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,n){if(e){if("string"==typeof e)return t(e,n);var l={}.toString.call(e).slice(8,-1);return"Object"===l&&e.constructor&&(l=e.constructor.name),"Map"===l||"Set"===l?Array.from(e):"Arguments"===l||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(l)?t(e,n):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=Array(t);n<t;n++)l[n]=e[n];return l}System.register(["./base-lib-legacy.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./index-legacy206.js?v=1777008528","./useMethod-legacy4.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528","./config-legacy.js?v=1777008528","./useMethod-legacy.js?v=1777008528"],function(t,n){"use strict";var l,a,r,s,c,u,o,i,f,d,m,p,b,y,g,v,x,_,j,k,h,A,S,w,I,C,D,M,z,O,L;return{setters:[function(e){l=e.c,a=e.r,r=e.o,s=e.a8,c=e.j,u=e.k,o=e.q,i=e.s,f=e.p,d=e.L,m=e.e,p=e.y,b=e.v,y=e.x,g=e.aX,v=e.b5,x=e.b6,_=e.z},function(e){j=e.d3,k=e.cZ},function(e){h=e._},function(e){A=e.i,S=e.I,w=e.J,I=e.K,C=e.L,D=e.M,M=e.N,z=e.O,O=e.P,L=e.Q},null,null,null,null,null,null],execute:function(){var n={class:"p-2rem pt-0"},N={key:0,class:"flex-col flex"},q={class:"text-base"},E={class:"mb-1.2rem mt-[0.4rem] flex items-center"},F={key:1,class:"flex flex-col pl-8px leading-[22px] pb-2rem"},H={class:"w-[28rem] truncate inline-block"},J={key:2,class:"flex flex-col pl-8px"},K={key:0,class:"mt-8px"},P={class:"flex justify-end mt-[1.2rem]"},Q=l({__name:"back-progress",props:{compData:{type:Object,default:function(){return{}}}},setup:function(t){var l=a(A.value?"还原":"备份"),k=t;return r(function(){var e;S.status=1,S.msg="即将开始"+l.value,S.progress=0,S.time=0,w.value="正在获取"+l.value+"日志",I(null===(e=k.compData)||void 0===e?void 0:e.type)}),s(function(){C.value=null}),function(t,a){var r=g,s=h,k=v,I=x,C=j,Q=_;return c(),u("div",n,[o("p",{class:d(["mt-1.2rem my-2rem font-bold text-base",{"text-dangerDark":3===f(S).status}])},i(1===f(S).status?"".concat(f(l),"进度条"):"".concat(3===f(S).status?"失败":"成功","详情")),3),[0,1,4,5].includes(f(S).status)?(c(),u("div",N,[o("span",q,i(f(S).msg),1),o("div",E,[m(r,{class:"w-full","text-inside":!0,"stroke-width":20,percentage:f(S).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]=function(){return f(D)&&f(D).apply(void 0,arguments)})})]),m(s,{class:"h-22rem !rounded-none",content:f(w)},null,8,["content"])])):p("",!0),2===f(S).status||3===f(S).status?(c(),u("div",F,[m(I,{title:!1,column:1,size:"small",border:"",class:"table-descriptions"},{default:b(function(){return[m(k,{label:"".concat(f(l),"名称:")},{default:b(function(){return[y(i(f(M).name),1)]}),_:1},8,["label"]),m(k,{label:"".concat(f(l),"时间:")},{default:b(function(){return[y(i(f(M).end_time),1)]}),_:1},8,["label"]),m(k,{label:"".concat(f(l),"大小:")},{default:b(function(){return[y(i(f(M).files_size),1)]}),_:1},8,["label"]),m(k,{label:"backup_file_sha256"},{default:b(function(){return[o("span",H,i(f(M).backup_file_sha256),1)]}),_:1}),m(k,{label:"耗时"},{default:b(function(){return[y(i(Number(f(M).time_count).toFixed(2))+" 秒 ",1)]}),_:1}),m(k,{label:"状态:"},{default:b(function(){return e(a[1]||(a[1]=[y(" 成功",-1)]))}),_:1})]}),_:1})])):p("",!0),3===f(S).status?(c(),u("div",J,[m(C,{column:f(z),data:f(O)},null,8,["column","data"]),f(A)?(c(),u("span",K,"提示:还原失败项已经自动恢复到还原前")):p("",!0),o("div",P,[m(Q,{type:"danger",onClick:f(L)},{default:b(function(){return e(a[2]||(a[2]=[y("重试",-1)]))}),_:1},8,["onClick"])])])):p("",!0)])}}});t("default",k(Q,[["__scopeId","data-v-2fc0f578"]]))}}})}();