import{P as e,u as a,Q as s,aC as t}from"./utils-lib.js?v=1761009159";import{_ as n}from"./index120.js?v=1761009159";import{k as l,l as i}from"./firewall.js?v=1761009159";import{c as r,V as o,b7 as u,w as d,H as m,I as p,y as c,v as w,x as _,z as v,e as b,C as g,K as f,A as x,an as h,r as I,_ as j,q as y,Q as V,N as P}from"./base-lib.js?v=1761009159";import{d as E}from"./useMethod6.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./validator.js?v=1761009159";import"./index106.js?v=1761009159";import"./column.js?v=1761009159";import"./useStore5.js?v=1761009159";const k={class:"tab-header-operate"},S=r({__name:"index",props:{data:{default:{isIntrusion:!1,num:0,days:0}}},emits:["refresh"],setup(a,{emit:s}){const t=a,n=s,i=o(!1),r=u({isIntrusion:!1,num:0,days:0}),I=async a=>{await e({loading:"正在"+(a?"开启":"关闭")+"入侵防御，请稍后...",request:l(a),message:!0}),n("refresh")};return d(()=>t.data,e=>{r.isIntrusion=e.open,r.num=e.totla_times,r.days=e.totla_days},{immediate:!0}),(e,a)=>{const s=h,t=m("bt-loading");return p((w(),_("div",k,[a[2]||(a[2]=v("div",{class:"mr-4"},"入侵防御开关",-1)),v("div",null,[b(s,{modelValue:c(r).isIntrusion,"onUpdate:modelValue":a[0]||(a[0]=e=>c(r).isIntrusion=e),width:36,onChange:I},null,8,["modelValue"])]),a[3]||(a[3]=v("div",{class:"bg-darker w-[1px] h-2rem mx-16px"},null,-1)),v("div",null,[a[1]||(a[1]=g(" 总拦截次数: ",-1)),v("span",{class:f(c(r).num>0?"text-danger":"")},x(c(r).num),3)]),a[4]||(a[4]=v("div",{class:"bg-darker w-[1px] h-2rem mx-16px"},null,-1)),v("div",null,"保护天数: "+x(c(r).days),1)])),[[t,c(i)]])}}}),A={key:0,class:"flex flex-col"},C=r({__name:"index",setup(l){a();const r=o("overview"),d=I(),m=o({}),p=u({title:"入侵防御-功能介绍",ps:"原防提权, 防御大多数的入侵提权攻击造成的挂马和被挖矿,有效拦截webshell执行提权,并及时告警通知",source:105,desc:["违规词内容检测","网页内容修改检测","输出检测报告"],tabImgs:[{title:"概览",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/intrusion_1.png"},{title:"进程白名单",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/intrusion_2.png"},{title:"操作日志",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/intrusion_3.png"}],isInstall:!1,productSrc:"https://www.bt.cn/bbs/thread-50998-1-1.html",pluginInfo:{}}),v=[{label:"概览",name:"overview",render:()=>s(()=>import("./index294.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)},{label:"进程白名单",name:"white",render:()=>s(()=>import("./index295.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)},{label:"操作日志",name:"operationLog",render:()=>s(()=>import("./index296.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)}],g=e=>{"overview"===e&&f()},f=async()=>{const{data:a}=await e({loading:"正在获取入侵防御配置信息，请稍后...",request:i()});d.value=a};return j("infoData",d),j("getIntrusionInfo",f),y(async()=>{m.value=await E("bt_security"),p.pluginInfo=m.value,m.value.setup&&m.value.endtime>-1&&f()}),(e,a)=>{var s;const l=t,i=n;return w(),_("div",null,[(null==(s=c(m))?void 0:s.setup)&&c(m).endtime>-1?(w(),_("div",A,[b(S,{data:c(d),onRefresh:f},null,8,["data"]),b(l,{type:"card",modelValue:c(r),"onUpdate:modelValue":a[0]||(a[0]=e=>V(r)?r.value=e:null),options:v,onChange:g},null,8,["modelValue"])])):(w(),P(i,{key:1,data:c(p),class:"px-[20%] my-[8rem]"},null,8,["data"]))])}}});export{C as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
