import{k as _,$ as a,Z as o,_ as e,aa as r,ak as d,F as m,P as y}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import{c as v}from"./index-BTglIPU2.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";const g={key:0,class:"server-sec-summary"},k={class:"server-sec-list"},f=["item"],S={key:0,class:"pagination-note"},h=_({__name:"ServerSecSection",props:{data:{type:Array,required:!0},pageIndex:{type:Number,required:!0},totalPages:{type:Number,required:!0},reportData:{type:Object,default:()=>({})}},setup(p){const t=p;return(b,n)=>{var u,l,c,i;return a(),o("div",null,[(u=t.reportData)!=null&&u.server_security?(a(),o("div",g,[e("div",null,"Check Items Total："+r(((l=t.reportData.server_security.server_security_count)==null?void 0:l.security_count)||0),1),e("div",null,"Risk Items Number："+r(((i=(c=t.reportData.server_security.server_security_count)==null?void 0:c.risk_count)==null?void 0:i.warning)||0),1)])):d("",!0),e("div",k,[e("table",null,[n[0]||(n[0]=e("thead",null,[e("tr",null,[e("th",null,"Name"),e("th",null,"Status"),e("th",null,"Suggestion")])],-1)),e("tbody",null,[(a(!0),o(m,null,y(t.data,s=>(a(),o("tr",{key:s.topic+s.item,item:s},[e("td",null,r(s.name),1),e("td",null,r(s.status===2?"Risk":"Normal"),1),e("td",null,r(s.info),1)],8,f))),128))])]),t.totalPages>1?(a(),o("div",S," Total "+r(t.totalPages)+" pages, current page "+r(t.pageIndex+1)+". ",1)):d("",!0)])])}}}),P=v(h,[["__scopeId","data-v-ebe752ff"]]);export{P as default};
