import{N as c}from"./app-CL60OiIv.js";import{N as r}from"./app-B2C_dtYI.js";import{o as l,c as t,w as s,b as a,h as i,f as d}from"./app-SC54XQDl.js";const y={__name:"@menu",props:["ctx"],setup(e){return(f,n)=>(l(),t(c,null,{tabs:s(()=>[a(r,{href:"/servers/server/settings/waf?serverId="+e.ctx.serverId,value:"index",name:"设置"},null,8,["href"]),e.ctx.firewallPolicyId>0?(l(),t(r,{key:0,href:"/servers/server/settings/waf/groups?serverId="+e.ctx.serverId+"&type=inbound&firewallPolicyId="+e.ctx.firewallPolicyId,value:"inbound",name:"入站规则"},null,8,["href"])):i("",!0),e.ctx.firewallPolicyId>0?(l(),t(r,{key:1,href:"/servers/server/settings/waf/groups?serverId="+e.ctx.serverId+"&type=outbound&firewallPolicyId="+e.ctx.firewallPolicyId,value:"outbound",name:"出站规则"},null,8,["href"])):i("",!0),a(r,{separator:""}),e.ctx.firewallPolicyId>0?(l(),t(r,{key:2,href:"/servers/server/settings/waf/ipadmin/countries?serverId="+e.ctx.serverId+"&firewallPolicyId="+e.ctx.firewallPolicyId,value:"country",name:"国家/地区封禁"},null,8,["href"])):i("",!0),e.ctx.firewallPolicyId>0?(l(),t(r,{key:3,href:"/servers/server/settings/waf/ipadmin/provinces?serverId="+e.ctx.serverId+"&firewallPolicyId="+e.ctx.firewallPolicyId,value:"province",name:"省份封禁"},null,8,["href"])):i("",!0),a(r,{separator:""}),e.ctx.firewallPolicyId>0?(l(),t(r,{key:4,href:"/servers/server/settings/waf/ipadmin/allowList?serverId="+e.ctx.serverId+"&firewallPolicyId="+e.ctx.firewallPolicyId,value:"allowList",name:"白名单"},null,8,["href"])):i("",!0),e.ctx.firewallPolicyId>0?(l(),t(r,{key:5,href:"/servers/server/settings/waf/ipadmin/denyList?serverId="+e.ctx.serverId+"&firewallPolicyId="+e.ctx.firewallPolicyId,value:"denyList",name:"黑名单"},null,8,["href"])):i("",!0),e.ctx.firewallPolicyId>0?(l(),t(r,{key:6,href:"/servers/server/settings/waf/ipadmin/greyList?serverId="+e.ctx.serverId+"&firewallPolicyId="+e.ctx.firewallPolicyId,value:"greyList",name:"灰名单"},null,8,["href"])):i("",!0),a(r,{href:"/servers/server/settings/waf/ipadmin/test?serverId="+e.ctx.serverId+"&firewallPolicyId="+e.ctx.firewallPolicyId,value:"test"},{default:s(()=>[d("IP检查")]),_:1},8,["href"])]),_:1}))}};export{y as _};
