import{bP as e,_ as s,bY as t,T as l,p as i}from"./page_layout.js?v=1764233927359";import{S as r}from"./public.js?v=1764233927359";import{k as a,P as o,a0 as n,r as p,a2 as m,V as u,a3 as c,W as _,H as d,U as v,ak as x,S as y,R as g,an as f,F as j,O as w,I as h,a4 as b,l as k,v as H}from"./vue.js?v=1764233927359";import{H as S}from"./index.vue_vue_type_script_setup_true_lang23.js?v=1764233927359";import{G as I}from"./naive.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1764233927359";import"./index245.js?v=1764233927359";import"./index42.js?v=1764233927359";import"./index102.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang13.js?v=1764233927359";import"./soft.js?v=1764233927359";import"./site.js?v=1764233927359";import"./index168.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang15.js?v=1764233927359";import"./index.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang12.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang10.js?v=1764233927359";import"./index98.js?v=1764233927359";import"./index107.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang11.js?v=1764233927359";import"./alarm.js?v=1764233927359";import"./echarts.js?v=1764233927359";const T={class:"module-list overflow-auto h-[38rem]"},V={class:"module-head flex items-center h-[5.4rem] justify-between border-b-1 pr-[0.8rem] w-full"},C={class:"w-full flex items-center"},D=["title"],M={class:"px-[3rem] py-[3.2rem]",style:{background:"var(--home-risk-security-ignore-collapse-bg)"}},L={class:"flex items-center"},P={class:"w-100px text-right",style:{color:"var(--home-risk-file-info-item-color)"}},R=["innerHTML"],U={class:"flex mt-[16px] items-center"},$={class:"w-100px text-right"},A={key:0,class:"collapse-item flex-col !items-start"},F={key:1,class:"collapse-item"},G={class:"flex mt-[16px] items-center"},O={class:"w-100px text-right"},W={class:"collapse-item"},Y=i(a({__name:"risk-ignore-list",setup(i){const{t:a}=o(),Y=S(),{ignoreData:q,activeMentIgnore:z,levelData:B}=n(Y),E=p(!1),J=e=>[{label:a("Home.Security.index_82"),class:"text-[#999]",onClick:async()=>{try{E.value=!0,await Y.onIgnore(e)}finally{E.value=!1}}},{label:e.show?a("Home.Security.index_83"):a("Security.Anti.Index_21"),onClick:()=>{Y.onToggle(e,q.value)}}];return(i,a)=>{const o=r,n=s,p=t,S=I,K=e,N=l;return u(),m(N,{show:v(E),class:"p-[2rem]"},{default:c(()=>[_(K,{modelValue:v(z),"onUpdate:modelValue":a[0]||(a[0]=e=>x(z)?z.value=e:null),accordion:"",class:d("".concat(v(q).length?"":"!border-none"))},{default:c(()=>[y("div",T,[(u(!0),g(j,null,w(v(q),(e,s)=>(u(),g("div",{class:"module-item text-[1.2rem]",key:"".concat(s)},[y("div",V,[y("div",C,[y("span",{class:"text-[1.2rem] h-[2.2rem] flex items-center px-[8px] rounded-[0.2rem] ml-[8px] mr-[1rem]",style:h({color:v(B)[e.level].color,backgroundColor:v(B)[e.level].bg})},b(v(B)[e.level].text),5),y("div",{class:"w-[36rem] max-w-[36rem] truncate",style:h({color:v(B)[e.level].color}),title:e.ps?e.ps:e.vuln_name},b(e.ps?e.ps:e.vuln_name),13,D)]),_(o,{class:"w-200px",options:J(e)},null,8,["options"]),_(n,{class:"ml-4px",name:"base-arrow-bottom",style:h({transform:e.show?"rotate(180deg)":"rotate(0deg)"})},null,8,["style"])]),_(p,null,{default:c(()=>[k(y("div",M,[y("div",L,[y("div",P,b(e.ps?"Risk Description":"Involved software"),1),k(y("div",{class:"collapse-item",innerHTML:e.msg},null,8,R),[[H,e.msg]]),k(y("div",{class:"collapse-item"},b(e.soft_name?v(Y).vulnerabilityInvolvesSoftware(e):""),513),[[H,e.soft_name]])]),y("div",U,[y("div",$,b(i.$t("Home.Security.index_77")),1),e.tips?(u(),g("div",A,[(u(!0),g(j,null,w(e.tips,(e,s)=>(u(),g("p",{key:s,class:d(0==s?"":"mt-[4px]")},b(s+1)+"、"+b(e),3))),128))])):f("",!0),e.vuln_solution?(u(),g("div",F,b(e.vuln_solution),1)):f("",!0)]),k(y("div",G,[y("div",O,b(i.$t("Home.Security.index_81")),1),y("div",W,b(e.remind),1)],512),[[H,e.remind]])],512),[[H,e.show]])]),_:2},1024)]))),128)),v(q).length?f("",!0):(u(),m(S,{key:0,class:"empty",description:"There are no ignored risks"}))])]),_:1},8,["modelValue","class"])]),_:1},8,["show"])}}}),[["__scopeId","data-v-25629a0a"]]);export{Y as default};
