import{k as e,R as a,V as l,an as t,S as s,a4 as i,F as o,O as r}from"./vue.js?v=1764233927359";import{p as n}from"./page_layout.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./naive.js?v=1764233927359";import"./common.js?v=1764233927359";import"./public.js?v=1764233927359";const u={key:0,class:"malicious-summary"},d={class:"malicious-table"},p={class:"breakable-table"},c=["item"],m={class:"filepath"},_={key:0,class:"pagination-note"},v=n(e({__name:"MaliciousSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(e){const n=e;return(e,v)=>{var f,h,y,b;return l(),a("div",null,[(null==(f=n.reportData)?void 0:f.malicious_files)?(l(),a("div",u,[s("div",null,"Scan Time："+i(n.reportData.malicious_files.last_scan_time||""),1),s("div",null,"Total Scanned Files："+i(n.reportData.malicious_files.total_scanned_files||0),1),s("div",null,"Total Detected Malicious Files："+i(n.reportData.malicious_files.total_detected||0),1),s("div",null,"High Risk："+i((null==(h=n.reportData.malicious_files.risk_stats)?void 0:h[2])||0),1),s("div",null,"Processing："+i((null==(y=n.reportData.malicious_files.processed_stats)?void 0:y[1])||0)+"，Unprocessed："+i((null==(b=n.reportData.malicious_files.processed_stats)?void 0:b[0])||0),1)])):t("",!0),s("div",d,[s("table",p,[v[0]||(v[0]=s("thead",null,[s("tr",null,[s("th",null,"File Name"),s("th",null,"Path"),s("th",null,"Threat Type"),s("th",null,"Risk Level"),s("th",null,"Scan Time"),s("th",null,"Quarantined")])],-1)),s("tbody",null,[(l(!0),a(o,null,r(n.data,e=>(l(),a("tr",{key:e.filepath+e.time,item:e},[s("td",null,i(e.filename),1),s("td",m,i(e.filepath),1),s("td",null,i(e.threat_type),1),s("td",null,i(e.risk_level_desc),1),s("td",null,i(e.time),1),s("td",null,i(e.quarantined?"Yes":"No"),1)],8,c))),128))])]),n.totalPages>1?(l(),a("div",_," Total "+i(n.totalPages)+" pages, current page "+i(n.pageIndex+1)+". ",1)):t("",!0)])])}}}),[["__scopeId","data-v-80b85a6a"]]);export{v as default};
