import{k as e,R as a,V as t,an as i,S as r,a4 as l,F as s,O as n,j as u}from"./vue.js?v=1764233927359";import{p as o}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 p={key:0,class:"web-vuln-summary"},m={class:"web-vuln-list"},d=["item"],v=["item"],b=["href"],c={key:0,class:"pagination-note"},_=o(e({__name:"WebVulnSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(e){const o=e,_={1:"Low",2:"Medium",3:"High",4:"Critical",5:"Secure"};return(e,g)=>{var y;return t(),a("div",null,[(null==(y=o.reportData)?void 0:y.website_vulnerabilities)?(t(),a("div",p,[r("div",null,"Website Number："+l(o.reportData.website_vulnerabilities.site_num||0),1),r("div",null,"Vulnerability Number："+l(o.reportData.website_vulnerabilities.loophole_num||0),1)])):i("",!0),r("div",m,[(t(!0),a(s,null,n(o.data,e=>(t(),a("div",{key:e.id,class:"web-vuln-site",item:e},[r("div",null,"Website："+l(e.name)+"（"+l(e.path)+"）",1),(t(!0),a(s,null,n(e.cms,e=>{return t(),a("div",{key:e.name,class:"web-vuln-cms",item:e},[r("div",null,"Vulnerability Name："+l(e.name),1),r("div",null,"Risk Level："+l((i=e.dangerous,_[i])),1),r("div",null,"Description："+l(e.ps),1),r("div",null,[g[0]||(g[0]=u("Repair Suggestion：",-1)),r("a",{href:e.repair,target:"_blank"},l(e.repair),9,b)])],8,v);var i}),128))],8,d))),128)),o.totalPages>1?(t(),a("div",c," Total "+l(o.totalPages)+" pages, current page "+l(o.pageIndex+1)+". ",1)):i("",!0)])])}}}),[["__scopeId","data-v-d48867ea"]]);export{_ as default};
