System.register(["./base-lib-legacy.js?v=1761009159","./utils-lib-legacy.js?v=1761009159","./__commonjsHelpers__-legacy.js?v=1761009159"],function(a,t){"use strict";var e,s,l,r,c,i,n,o,u,v,p;return{setters:[function(a){e=a.c,s=a.g,l=a.v,r=a.x,c=a.z,i=a.A,n=a.y,o=a.e,u=a.D,v=a.b5},function(a){p=a._},null],execute:function(){var t={class:"file-transfer-progress"},d={class:"transfer-content"},f={class:"transfer-paths"},m={class:"path-item"},g={class:"path-value"},_={class:"path-item"},h={class:"path-value"},D={class:"path-item"},x=["title"],b={class:"progress-section"},y={class:"progress-info"},k={class:"progress-percentage"},w={key:0,class:"text-tertiary text-small mt-[1rem]"},j={class:"transfer-stats"},L={class:"stat-left"},M={class:"stat-item total"},F={class:"stat-value"},N={class:"stat-right"},S={class:"stat-item success"},z={class:"stat-value"},A={class:"stat-item error"},H={class:"stat-value"},I={class:"stat-item remaining"},O={class:"stat-value"},q={key:1,class:"transfer-details"},B={class:"detail-item"};a("default",p(e({__name:"index",props:{compData:{default:function(){return{target_path:"",target_node:{name:""},source_node:{name:""},file_count:0,file_complete:0,file_error:0,progress:0,fileList:[]}}}},setup:function(a){var e=a,p=s(function(){var a=e.compData.value.progress||0;if("number"!=typeof a||isNaN(a))return 0;if(0===a)return 0;var t=a.toString(),s=t.indexOf(".");if(-1===s||a%1==0)return a;for(var l=t.substring(s+1),r=0;r<l.length&&"0"===l[r];)r++;var c=r+2;return parseFloat(a.toFixed(c))}),C=s(function(){return Math.max(0,e.compData.value.file_count-e.compData.value.file_complete-e.compData.value.file_error)}),E=s(function(){for(var a=0;a<(null===(t=e.compData.value.fileList)||void 0===t?void 0:t.length);a++){var t;if("pending"===e.compData.value.fileList[a].status)return e.compData.value.fileList[a].target_path}return""}),G=s(function(){return 0===e.compData.value.file_count?"waiting":0===C.value?"completed":e.compData.value.file_error>0&&0===C.value?"error":"transferring"}),J=s(function(){return"transferring"===G.value}),K=s(function(){switch(G.value){case"completed":return e.compData.value.file_error>0?"warning":"success";case"error":return"exception";default:return}}),P=s(function(){if(!J.value||0===e.compData.value.file_complete)return"计算中...";var a=2*C.value;return a<60?"".concat(a,"秒"):a<3600?"".concat(Math.round(a/60),"分钟"):"".concat(Math.round(a/3600),"小时")});return function(a,s){var G,Q,R=v;return l(),r("div",t,[c("div",d,[c("div",f,[c("div",m,[s[0]||(s[0]=c("div",{class:"path-label"},"源节点:",-1)),c("div",g,i((null===(G=e.compData.value.source_node)||void 0===G?void 0:G.name)||"未指定"),1)]),c("div",_,[s[1]||(s[1]=c("div",{class:"path-label"},"目标节点:",-1)),c("div",h,i((null===(Q=e.compData.value.target_node)||void 0===Q?void 0:Q.name)||"未指定"),1)]),c("div",D,[s[2]||(s[2]=c("div",{class:"path-label"},"目标路径:",-1)),c("div",{class:"path-value",title:e.compData.value.target_path},i(e.compData.value.target_path||"未指定"),9,x)])]),c("div",b,[c("div",y,[s[3]||(s[3]=c("span",{class:"progress-text"},"传输进度",-1)),c("span",k,i(n(p))+"%",1)]),o(R,{percentage:n(p),status:n(K),"stroke-width":8,"show-text":!1,color:"var(--el-color-primary)"},null,8,["percentage","status"])]),n(E)?(l(),r("div",w,"正在传输："+i(n(E)),1)):u("",!0),c("div",j,[c("div",L,[c("div",M,[s[4]||(s[4]=c("div",{class:"stat-label"},"总计",-1)),c("div",F,i(e.compData.value.file_count),1)])]),c("div",N,[c("div",S,[s[5]||(s[5]=c("span",{class:"text-success mr-[0.5rem] svgtofont-el-circle-check"},null,-1)),s[6]||(s[6]=c("div",{class:"stat-label text-success"},"已完成",-1)),c("div",z,i(e.compData.value.file_complete),1)]),c("div",A,[s[7]||(s[7]=c("span",{class:"text-dangerDark mr-[0.5rem] svgtofont-el-circle-close"},null,-1)),s[8]||(s[8]=c("div",{class:"stat-label text-dangerDark"},"失败",-1)),c("div",H,i(e.compData.value.file_error),1)]),c("div",I,[s[9]||(s[9]=c("span",{class:"text-secondary mr-[0.5rem] svgtofont-icon-login-time"},null,-1)),s[10]||(s[10]=c("div",{class:"stat-label text-secondary"},"剩余",-1)),c("div",O,i(n(C)),1)])])]),n(J)?(l(),r("div",q,[c("div",B,[c("span",null,"预计剩余时间: "+i(n(P)),1)])])):u("",!0)])])}}}),[["__scopeId","data-v-018aad82"]]))}}});
