import{_ as e}from"./index105.js?v=1761009159";import{d as a,l as s,ah as l,j as t}from"./utils-lib.js?v=1761009159";import{B as o}from"./index115.js?v=1761009159";import{c as n,s as r,q as i,a6 as c,H as m,v as d,x as u,z as p,y as f,e as x,D as j,N as b,C as v,A as g,B as y,I as _,Q as h,G as k,b1 as C}from"./base-lib.js?v=1761009159";import{a as V}from"./index37.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./ace.js?v=1761009159";import"./store.js?v=1761009159";import"./files.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./store2.js?v=1761009159";import"./index103.js?v=1761009159";import"./default.js?v=1761009159";import"./index114.js?v=1761009159";import"./vue-virtual-scroller.esm.js?v=1761009159";import"./vue-virtual-scroller.js?v=1761009159";import"./file-icon.js?v=1761009159";const w={class:"p-2rem"},z={class:"title-box flex items-center justify-between"},D={class:"flex items-center"},T={key:0,class:"scan-icon relative h-[8rem] w-[8rem]"},B={class:"scan-title flex flex-col items-start ml-2rem"},F={class:"font-bold text-large text-default"},H={class:"text-danger"},I={class:"text-small text-secondary mt-12px truncate max-w-[60rem]"},R={class:"flex items-center ml-12px"},U={class:"p-2rem"},q=n({__name:"index",setup(n){const q=V(),{scanLoad:A,scanningData:G,tableColumns:L,tableData:N,scanTableRef:O,editorPopup:P,editorValue:Q}=r(q),{saveFile:S,scanData:$,cancelScan:E,$reset:J,batchOptions:K}=q;return i(()=>{$()}),c(()=>{J()}),(n,r)=>{const i=a,c=k,V=C,q=s,J=l,M=o,W=t,X=e,Y=m("bt-loading");return d(),u("div",w,[p("div",z,[p("div",D,["loading"==f(A)?(d(),u("div",T,[r[3]||(r[3]=p("div",{class:"animate-spin absolute top-0 border-primary border-b-2 rounded-full h-full w-full"},null,-1)),x(i,{icon:"scanning-scan",size:60,color:"var(--el-color-primary)",class:"absolute top-0 left-0 right-0 bottom-0 m-[auto] h-[8rem] w-[6rem]"})])):j("",!0),"success"==f(A)?(d(),b(i,{key:1,icon:"scanning-success",size:60,color:"var(--el-color-primary)"})):j("",!0),"danger"==f(A)?(d(),b(i,{key:2,icon:"scanning-danger",size:60,color:"var(--el-color-danger)"})):j("",!0),p("div",B,[p("span",F,[v("查杀"+g(f(G).scanningText)+" ，已扫描文件 "+g(f(G).scanningCount)+" /"+g(f(G).scanCount)+" 个；发现木马文件 ",1),p("span",H,g(f(G).shellCount),1),r[4]||(r[4]=v("个",-1))]),p("span",I,g(f(G).scanInfo),1)])]),p("div",R,["loading"===f(A)?(d(),b(c,{key:0,type:"default",onClick:f(E)},{default:y(()=>r[5]||(r[5]=[v("取消",-1)])),_:1,__:[5]},8,["onClick"])):j("",!0),"loading"!=f(A)?(d(),b(c,{key:1,type:"primary",onClick:r[0]||(r[0]=e=>f($)())},{default:y(()=>r[6]||(r[6]=[v("重新查杀",-1)])),_:1,__:[6]})):j("",!0)])]),x(V,{class:"!my-[1rem]"}),x(X,null,{content:y(()=>[_(x(q,{ref_key:"scanTableRef",ref:O,column:f(L),data:f(N),height:"360"},null,8,["column","data"]),[[Y,"正在加载中，请稍后...","title"],[Y,"loading"===f(A)]])]),"footer-left":y(()=>[x(J,{"table-ref":f(O),options:f(K)},null,8,["table-ref","options"])]),popup:y(()=>[x(W,{title:"在线编辑",showFooter:"",modelValue:f(P),"onUpdate:modelValue":r[2]||(r[2]=e=>h(P)?P.value=e:null),area:70,onConfirm:f(S)},{default:y(()=>[p("div",U,[x(M,{modelValue:f(Q),"onUpdate:modelValue":r[1]||(r[1]=e=>h(Q)?Q.value=e:null),class:"!h-[40rem]","editor-option":{theme:"ace/theme/monokai"}},null,8,["modelValue"])])]),_:1},8,["modelValue","onConfirm"])]),_:1})])}}});export{q as default};
