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