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