import{c as e,r as a,q as l,v as t,x as s,e as m,B as d,y as o,C as r,z as i,ab as n,a9 as u}from"./base-lib.js?v=1761009159";import{P as p,k as b}from"./utils-lib.js?v=1761009159";import{b3 as f,O as _}from"./firewall.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";const c={class:"p-[2rem]"},y=e({__name:"anti-blast-view",setup(e,{expose:y}){const x=a(),V=a({maxretry:0,findtime:0,bantime:0});return y({onConfirm:async e=>{await p({loading:"正在设置防暴破配置,请稍后...",request:_(V.value),message:!0}),e()}}),l(()=>{(async()=>{const e=await p({loading:"正在获取配置,请稍后...",request:f()});V.value=e.data})()}),(e,a)=>{const l=b,p=n,f=u;return t(),s("div",c,[m(f,{model:o(V),ref_key:"blastFormRef",ref:x},{default:d(()=>[m(p,{label:"最大重试次数"},{default:d(()=>[m(l,{type:"number",modelValue:o(V).maxretry,"onUpdate:modelValue":a[0]||(a[0]=e=>o(V).maxretry=e),width:"24rem"},{append:d(()=>a[3]||(a[3]=[r("次",-1)])),_:1},8,["modelValue"])]),_:1}),m(p,{label:"周期"},{default:d(()=>[m(l,{type:"number",modelValue:o(V).findtime,"onUpdate:modelValue":a[1]||(a[1]=e=>o(V).findtime=e),width:"24rem"},{append:d(()=>a[4]||(a[4]=[r("秒",-1)])),_:1},8,["modelValue"])]),_:1}),m(p,{label:"禁止时间"},{default:d(()=>[m(l,{type:"number",modelValue:o(V).bantime,"onUpdate:modelValue":a[2]||(a[2]=e=>o(V).bantime=e),width:"24rem"},{append:d(()=>a[5]||(a[5]=[r("秒",-1)])),_:1},8,["modelValue"])]),_:1})]),_:1},8,["model"]),a[6]||(a[6]=i("ul",{class:"mt-8px leading-8 text-small list-disc ml-20px"},[i("li",null,"监控SSHD服务日志，在设置周期内(300秒)有超过最大重试次数(5次)的IP访问，将禁止该IP访问86400秒(默认禁止时间)")],-1))])}}});export{y as default};
