import{P as d}from"./app-YXi6Hc2l.js";import{i as h,c as g}from"./app-BT68AfZ-.js";import{_ as y}from"./app-DokSVapq.js";import{_ as T}from"./app-CKSEN_Rg.js";import{D as v}from"./app-DNL2FXPk.js";import{_ as x,a as m}from"./app-BHFzVhjx.js";import{_ as c}from"./app-DuUYZNNT.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-DA7OTM4Q.js";import"./app-BlCBGn5D.js";import"./app-Zes_jb7S.js";import"./app-C5ROEzFd.js";import"./app-Bnbo6OlJ.js";import"./app-Dxa5h-uG.js";import"./app-AbPAjGV5.js";import"./app-BqY8p2gl.js";import"./app-C-GI59rl.js";import"./app-DSiZNBrr.js";import"./app-BotiHebp.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};
