import{bp as e,_ as s,bu as t,T as l,p as i}from"./page_layout.js?v=1764830988434";import{S as r}from"./public.js?v=1764830988434";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=1764830988434";import{H as S}from"./index.vue_vue_type_script_setup_true_lang22.js?v=1764830988434";import{G as I}from"./naive.js?v=1764830988434";import"./common.js?v=1764830988434";import"./__commonjsHelpers__.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1764830988434";import"./index246.js?v=1764830988434";import"./index40.js?v=1764830988434";import"./index100.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang11.js?v=1764830988434";import"./soft.js?v=1764830988434";import"./site.js?v=1764830988434";import"./index169.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang13.js?v=1764830988434";import"./index.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang5.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang7.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang9.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang10.js?v=1764830988434";import"./index96.js?v=1764830988434";import"./index107.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang.js?v=1764830988434";import"./index.vue_vue_type_script_setup_true_lang15.js?v=1764830988434";import"./alarm.js?v=1764830988434";import"./echarts.js?v=1764830988434";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"},R={class:"w-100px text-right",style:{color:"var(--home-risk-file-info-item-color)"}},U=["innerHTML"],$={class:"flex mt-[16px] items-center"},A={class:"w-100px text-right"},F={key:0,class:"collapse-item flex-col !items-start"},G={key:1,class:"collapse-item"},O={class:"flex mt-[16px] items-center"},P={class:"w-100px text-right"},W={class:"collapse-item"},q=i(a({__name:"risk-ignore-list",setup(i){const{t:a}=o(),q=S(),{ignoreData:z,activeMentIgnore:B,levelData:E}=n(q),J=p(!1),K=e=>[{label:a("Home.Security.index_82"),class:"text-[#999]",onClick:async()=>{try{J.value=!0,await q.onIgnore(e)}finally{J.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=s,p=t,S=I,N=e,Q=l;return u(),m(Q,{show:v(J),class:"p-[2rem]"},{default:c(()=>[_(N,{modelValue:v(B),"onUpdate:modelValue":a[0]||(a[0]=e=>x(B)?B.value=e:null),accordion:"",class:d("".concat(v(z).length?"":"!border-none"))},{default:c(()=>[y("div",T,[(u(!0),g(j,null,w(v(z),(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(E)[e.level].color,backgroundColor:v(E)[e.level].bg})},b(v(E)[e.level].text),5),y("div",{class:"w-[36rem] max-w-[36rem] truncate",style:h({color:v(E)[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:K(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",R,b(e.ps?"Risk Description":"Involved software"),1),k(y("div",{class:"collapse-item",innerHTML:e.msg},null,8,U),[[H,e.msg]]),k(y("div",{class:"collapse-item"},b(e.soft_name?v(q).vulnerabilityInvolvesSoftware(e):""),513),[[H,e.soft_name]])]),y("div",$,[y("div",A,b(i.$t("Home.Security.index_77")),1),e.tips?(u(),g("div",F,[(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",G,b(e.vuln_solution),1)):f("",!0)]),k(y("div",O,[y("div",P,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(z).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{q as default};
