import{P as d}from"./app-BGgVpkqZ.js";import{i as h,c as g}from"./app-Ba7ZqSpq.js";import{_ as y}from"./app-DFulsyXy.js";import{_ as T}from"./app-DWUwCFNm.js";import{D as v}from"./app-ZeVDYyDS.js";import{_ as x,a as m}from"./app-PrSv7rSt.js";import{_ as c}from"./app-CVQkwzlf.js";import{r as u,o,c as k,w as s,b as t,a as e,u as r,g as f,h as p,f as N}from"./app-SC54XQDl.js";import"./app-yUrwy8EY.js";import"./app-CNHjdV6U.js";import"./app-BZGObKCm.js";import"./app-BPIIxVwk.js";import"./app-PPG0ZS4d.js";import"./app-DgoEZtNT.js";import"./app-Ch8j4za4.js";import"./app-Dw0jKdCD.js";import"./app-DnXuoh8P.js";import"./app-CCkWSX4Q.js";function $(){h(this),this.targetType="ip",this.changeTargetType=function(){setTimeout(()=>{switch(this.targetType){case"ip":this.$refs.ipRef.focus();break;case"server":this.$refs.serverNameRef.focus();break}},200)}}const R=e("header",null,"快速解除黑名单",-1),V=e("td",null,"对象类型",-1),w={key:0},C=e("td",null,"IP",-1),P={key:1},b=e("td",null,"网站域名",-1),X={__name:"removeDeniedIPPopup",setup(B){const n=u(),i=u(),a=g(new $,{refs:{ipRef:n,serverNameRef:i}});return(D,l)=>(o(),k(d,null,{default:s(()=>[R,t(y,{action:"$",onSuccess:r(a).success},{default:s(()=>[t(v,null,{default:s(()=>[e("tbody",null,[e("tr",null,[V,e("td",null,[t(x,{name:"targetType",modelValue:r(a).targetType,"onUpdate:modelValue":l[0]||(l[0]=_=>r(a).targetType=_),onChange:r(a).changeTargetType},{default:s(()=>[t(m,{name:"单个IP",value:"ip"}),t(m,{name:"网站",value:"server"})]),_:1},8,["modelValue","onChange"])])]),r(a).targetType=="ip"?(o(),f("tr",w,[C,e("td",null,[t(c,{name:"ip",maxlength:"64",class:"w-full",ref_key:"ipRef",ref:n,autofocus:""},null,512)])])):p("",!0),r(a).targetType=="server"?(o(),f("tr",P,[b,e("td",null,[t(c,{name:"serverName",maxlength:"64",class:"w-full",ref_key:"serverNameRef",ref:i},null,512)])])):p("",!0)])]),_:1}),t(T,null,{default:s(()=>[N("解除")]),_:1})]),_:1},8,["onSuccess"])]),_:1}))}};export{X as default};
