import{k as _,$ as s,Z as i,_ as e,aa as t,ak as d,F as m,P as f}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{c as h}from"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";const y={key:0,class:"malicious-summary"},g={class:"malicious-table"},k={class:"breakable-table"},v=["item"],D={class:"filepath"},b={key:0,class:"pagination-note"},T=_({__name:"MaliciousSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(p){const a=p;return(N,o)=>{var r,n,u,c;return s(),i("div",null,[(r=a.reportData)!=null&&r.malicious_files?(s(),i("div",y,[e("div",null,"Scan Time："+t(a.reportData.malicious_files.last_scan_time||""),1),e("div",null,"Total Scanned Files："+t(a.reportData.malicious_files.total_scanned_files||0),1),e("div",null,"Total Detected Malicious Files："+t(a.reportData.malicious_files.total_detected||0),1),e("div",null,"High Risk："+t(((n=a.reportData.malicious_files.risk_stats)==null?void 0:n["2"])||0),1),e("div",null,"Processing："+t(((u=a.reportData.malicious_files.processed_stats)==null?void 0:u["1"])||0)+"，Unprocessed："+t(((c=a.reportData.malicious_files.processed_stats)==null?void 0:c["0"])||0),1)])):d("",!0),e("div",g,[e("table",k,[o[0]||(o[0]=e("thead",null,[e("tr",null,[e("th",null,"File Name"),e("th",null,"Path"),e("th",null,"Threat Type"),e("th",null,"Risk Level"),e("th",null,"Scan Time"),e("th",null,"Quarantined")])],-1)),e("tbody",null,[(s(!0),i(m,null,f(a.data,l=>(s(),i("tr",{key:l.filepath+l.time,item:l},[e("td",null,t(l.filename),1),e("td",D,t(l.filepath),1),e("td",null,t(l.threat_type),1),e("td",null,t(l.risk_level_desc),1),e("td",null,t(l.time),1),e("td",null,t(l.quarantined?"Yes":"No"),1)],8,v))),128))])]),a.totalPages>1?(s(),i("div",b," Total "+t(a.totalPages)+" pages, current page "+t(a.pageIndex+1)+". ",1)):d("",!0)])])}}}),q=h(T,[["__scopeId","data-v-7f20a499"]]);export{q as default};
