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