!function(){function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function n(t,n,r){return(n=function(t){var n=function(t,n){if("object"!=e(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var l=r.call(t,n||"default");if("object"!=e(l))return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(t)}(t,"string");return"symbol"==e(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t}System.register(["./utils-lib-legacy.js?v=1761009159","./base-lib-legacy.js?v=1761009159","./index-legacy8.js?v=1761009159","./useMethod-legacy2.js?v=1761009159","./index-legacy117.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159","./index-legacy105.js?v=1761009159","./column-legacy.js?v=1761009159","./index-legacy106.js?v=1761009159","./config-legacy.js?v=1761009159","./useMethod-legacy3.js?v=1761009159","./validator-legacy.js?v=1761009159","./site-legacy.js?v=1761009159","./index-legacy119.js?v=1761009159","./form-item-legacy.js?v=1761009159"],function(e,r){"use strict";var l,a,u,o,c,i,s,f,b,y,m,p,d,g,v,j,_,O,x,h,w,S,k,P,D,z,T;return{setters:[function(e){l=e.aj,a=e.an,u=e.x,o=e.j,c=e._},function(e){i=e.c,s=e.g,f=e.v,b=e.x,y=e.e,m=e.y,p=e.z,d=e.B,g=e.C,v=e.A,j=e.D,_=e.Q,O=e.bO,x=e.bN,h=e.G},function(e){w=e.d,S=e.g,k=e.b,P=e.a,D=e.s},function(e){z=e.d},function(e){T=e.default},null,null,null,null,null,null,null,null,null,null],execute:function(){var r={class:"p-2rem"},A={class:"p-1.2rem pt-0"},H={class:"flex flex-col leading-[22px]"},B={class:"max-w-[58rem] truncate inline-block"},C=["title"],E={key:0},N={class:"w-full flex justify-end mt-[1.2rem]"},V=i({__name:"detail-back",setup:function(e){var c=s(function(){return"restore"===w.value?"还原":"备份"}),i=function(){z.value=function(e){for(var r=1;r<arguments.length;r++){var l=null!=arguments[r]?arguments[r]:{};r%2?t(Object(l),!0).forEach(function(t){n(e,t,l[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(l)):t(Object(l)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(l,t))})}return e}({operateType:"detail"},z.value),D.value=!0},V=[{label:"备份详情",name:"backup",lazy:!0},{label:"还原详情",name:"restore",lazy:!0}],M=[{type:"index"},{label:"失败项",prop:"name"},{label:"失败原因",prop:"msg",width:320,render:function(e){return y("span",{class:"text-[".concat(e.task_status?"var(--el-color-primary)":"#ef0808","]")},[e.task_status?"成功":e.msg])}}],q=l({type:"card",value:w,options:0!==z.value.restore_status?V:V.filter(function(e){return"restore"!==e.name})}).BtTabs,G=a({request:S,columns:M}),I=G.BtTable,Q=G.config,U=G.refresh,F=function(e){w.value=e,U()};return function(e,t){var n=O,l=x,a=h,s=o;return f(),b("div",r,[y(m(q),{onTabChange:F}),p("div",A,[p("div",H,[y(l,{title:!1,column:1,size:"small",border:"",class:"table-descriptions"},{default:d(function(){return[y(n,{label:"".concat(m(c),"时间：")},{default:d(function(){return[g(v(m(k).backup_time),1)]}),_:1},8,["label"]),y(n,{label:"".concat(m(c),"大小：")},{default:d(function(){return[g(v(m(u)(Number(m(k).size))||"--"),1)]}),_:1},8,["label"]),y(n,{label:"".concat(m(c),"存储位置：")},{default:d(function(){return[p("span",B,v(m(k).path||"--"),1)]}),_:1},8,["label"]),y(n,{label:"SHA-256："},{default:d(function(){return[p("span",{class:"max-w-[58rem] truncate inline-block",title:m(z)["SHA-256"]},v(m(k)["SHA-256"]||"--"),9,C)]}),_:1}),y(n,{label:"".concat(m(c),"耗时：")},{default:d(function(){return[g(v("".concat(m(k).time_count?"".concat(m(k).time_count,"s"):"")||"--"),1)]}),_:1},8,["label"])]}),_:1})]),0!=m(Q).total?(f(),b("div",E,[t[1]||(t[1]=p("p",{class:"font-bold text-dangerDark my-1.2rem"},"失败详情",-1)),y(m(I),{"max-height":360})])):j("",!0),p("div",N,[y(a,{type:"primary",onClick:i},{default:d(function(){return t[2]||(t[2]=[g("查看全部详情 ",-1)])}),_:1,__:[2]})]),y(s,{title:"详情信息",area:74,modelValue:m(D),"onUpdate:modelValue":t[0]||(t[0]=function(e){return _(D)?D.value=e:null})},{default:d(function(){return[y(T,{data:m(P)},null,8,["data"])]}),_:1},8,["modelValue"])])])}}});e("default",c(V,[["__scopeId","data-v-889f1449"]]))}}})}();
