import{Q as e,P as l,aC as a}from"./utils-lib.js?v=1761009159";import{_ as s}from"./index120.js?v=1761009159";import{c as t,r as i,o as r,q as n,v as o,x as m,y as u,z as d,e as p,Q as c,N as _,an as f}from"./base-lib.js?v=1761009159";import{g}from"./useStore5.js?v=1761009159";import{m as w}from"./firewall.js?v=1761009159";import{d as v}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";const b={key:0,class:"flex flex-col"},j={class:"tab-header-operate"},y=t({__name:"index",setup(t){const{refs:{reinforceStatus:y}}=g(),x=i({}),I=i("reinforceConfig"),P=r({title:"系统加固-功能介绍",ps:"提供灵活的系统加固功能，防止系统被植入木马，支持服务器日志审计功能",source:102,desc:["阻止系统被植入木马","加固系统安全配置"],tabImgs:[{title:"防护配置",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/system_1.png"},{title:"封锁IP",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/system_2.png"},{title:"操作日志",imgSrc:"https://www.bt.cn/Public/new/plugin/introduce/firewall/system_3.png"}],isInstall:!1,pluginInfo:{}}),V=[{label:"防护配置",name:"reinforceConfig",lazy:!0,render:()=>e(()=>import("./index297.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)},{label:"封锁IP",lazy:!0,name:"reinforceBlockIp",render:()=>e(()=>import("./index298.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)},{label:"操作日志",lazy:!0,name:"reinforceLog",render:()=>e(()=>import("./index299.js?v=1761009159"),__vite__mapDeps([]),import.meta.url)}],h=async e=>{y.value=!e,await l({loading:"正在"+(e?"开启":"关闭")+"系统加固,请稍后...",request:w(),message:!0}),y.value=e};return n(async()=>{x.value=await v("syssafe"),P.isInstall=x.value.endtime>=0,P.pluginInfo=x.value}),(e,l)=>{var t,i;const r=f,n=a,g=s;return o(),m("div",null,[(null==(t=u(x))?void 0:t.setup)&&(null==(i=u(x))?void 0:i.endtime)>=0?(o(),m("div",b,[d("div",j,[l[2]||(l[2]=d("div",{class:"mr-4"},"系统加固开关",-1)),d("div",null,[p(r,{modelValue:u(y),"onUpdate:modelValue":l[0]||(l[0]=e=>c(y)?y.value=e:null),width:36,onChange:h},null,8,["modelValue"])])]),p(n,{type:"card",modelValue:u(I),"onUpdate:modelValue":l[1]||(l[1]=e=>c(I)?I.value=e:null),options:V},null,8,["modelValue"])])):(o(),_(g,{key:1,data:u(P),class:"px-[20%] py-[2rem]"},null,8,["data"]))])}}});export{y as default};
function __vite__mapDeps(indexes) {
  if (!__vite__mapDeps.viteFileDeps) {
    __vite__mapDeps.viteFileDeps = []
  }
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
}
