System.register(["./page_layout-legacy.js?v=1763625242172","./public-legacy.js?v=1763625242172","./index-legacy39.js?v=1763625242172","./vue-legacy.js?v=1763625242172","./naive-legacy.js?v=1763625242172","./common-legacy.js?v=1763625242172","./__commonjsHelpers__-legacy.js?v=1763625242172","./index-legacy.js?v=1763625242172","./soft-legacy2.js?v=1763625242172","./soft-legacy.js?v=1763625242172","./site-legacy.js?v=1763625242172","./file-legacy2.js?v=1763625242172","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1763625242172"],(function(e,t){"use strict";var l,s,a,n,o,c,i,r,u,p,d,x,g,m,f,y,v,k,b,h,_,j,w,C,T,L,P,$,H,R,F;return{setters:[e=>{l=e.p,s=e.c,a=e.n,n=e.x},e=>{o=e.k,c=e.a},e=>{i=e.m,r=e.g,u=e.n},e=>{p=e.k,d=e.av,x=e.w,g=e.R,m=e.S,f=e.n,y=e.P,v=e.r,k=e.c,b=e.U,h=e.X,_=e.a3,j=e.a4,w=e.V,C=e.j,T=e.a2,L=e.F,P=e.O,$=e.an},e=>{H=e.dc,R=e.aC,F=e.bH},null,null,null,null,null,null,null,null],execute:function(){var t=document.createElement("style");t.textContent=".task-logs[data-v-ee8b8ada]{height:180px;line-height:1.4;padding:10px;background-color:#333;border-bottom-left-radius:10px;border-bottom-right-radius:10px;color:#ececec;overflow:auto}.task-logs[data-v-93cb7b82]{max-height:180px;padding:10px;background-color:#333;border-bottom-left-radius:10px;border-bottom-right-radius:10px;color:#ececec;overflow:auto}\n",document.head.appendChild(t);const S=["innerHTML"],I=l(p({__name:"FileTaskLogs",props:{value:{type:String,default:""}},setup(e){const t=e,l=d("logsRef");return x((()=>t.value),(()=>{f((()=>{const e=l.value;if(e){const{scrollHeight:t}=e;e.scrollTop=t}}))}),{immediate:!0}),(t,s)=>(g(),m("div",{ref_key:"logsRef",ref:l,class:"task-logs",innerHTML:e.value||t.$t("file.task.noLogs")},null,8,S))}}),[["__scopeId","data-v-ee8b8ada"]]),M={class:"p-16px"},O={class:"flex items-center justify-between h-36px px-10px rounded-tl-10px rounded-tr-10px bg-#f5f5f5"},q={class:"max-w-360px"},A={class:"text-desc text-14px"},B={key:0,class:"p-10px"},D={class:"flex items-center justify-between mt-4px"},E={class:"flex"},U={class:"mr-24px"},V={key:2,class:"mt-10px"},X={class:"flex items-center justify-between h-36px px-10px rounded-tl-10px rounded-tr-10px bg-#f5f5f5"},z={class:"text-desc text-14px"},G={class:"flex-1 w-0"},J={class:"min-w-0"},K={class:"text-weak text-14px"},N=["onClick"];e("default",l(p({__name:"FileTask",props:{taskList:{type:Array,default:()=>[]},store:{type:Object,required:!0}},emits:["close"],setup(e,{emit:t}){const l=t,{t:p}=y(),d=v(e.taskList),x=k((()=>d.value[0]||{log:"",name:"",shell:""})),f=async()=>{const{message:t}=await i();n(t)&&t.length>0?d.value=t:(r(e.store),l("close"))},{loop:S,clearTimer:Q}=o(f,2);S();const W=e=>{c({title:p("file.task.deleteTask"),content:p("file.task.confirmDeleteTask",{name:e.name,shell:e.shell}),onConfirm:async()=>{await u(e.id),(async()=>{Q(),await f(),S()})()}})};return(e,t)=>{const l=H,n=R,o=F;return g(),m("div",M,[b("div",O,[b("div",q,[h(l,null,{default:_((()=>[b("span",A,j(w(x).name+e.$t("Public.Punctuation.Colon")+w(x).shell),1)])),_:1})]),h(n,{type:"primary",text:"",onClick:t[0]||(t[0]=e=>W(w(x)))},{default:_((()=>[C(j(e.$t("Public.Btn.Cancel")),1)])),_:1})]),w(s)(w(x).log)?(g(),m("div",B,[h(o,{type:"line",height:3,"show-indicator":!1,percentage:w(x).log.pre||0},null,8,["percentage"]),b("div",D,[b("span",E,[b("span",U,j(w(x).log.used)+" / "+j(w(a)(w(x).log.total)),1),b("span",null,j(e.$t("file.task.estimatedRemaining"))+": "+j(w(x).log.total),1)]),b("span",null,j(w(x).log.speed)+"/s",1)])])):(g(),T(I,{key:1,value:w(x).log},null,8,["value"])),w(d).length>1?(g(),m("div",V,[b("div",X,[b("span",z,j(e.$t("file.task.waitingTasks")),1)]),(g(!0),m(L,null,P(w(d).slice(1),(s=>(g(),m("div",{key:s.id,class:"flex items-center h-36px px-10px"},[b("div",G,[b("div",J,[h(l,null,{default:_((()=>[b("span",K,j(s.name+e.$t("Public.Punctuation.Colon")+s.shell),1)])),_:2},1024)])]),b("div",{class:"flex items-center ml-12px cursor-pointer",onClick:e=>W(s)},t[1]||(t[1]=[b("i",{class:"i-streamline:delete-1-solid text-10px text-error"},null,-1)]),8,N)])))),128))])):$("",!0)])}}}),[["__scopeId","data-v-93cb7b82"]]))}}}));
