import{P as d}from"./app-Doj30F-n.js";import{i as h,c as g}from"./app-a6cKceqE.js";import{_ as y}from"./app-CQ-vNlMj.js";import{_ as T}from"./app-CignoBaV.js";import{D as v}from"./app-7GBSHA5C.js";import{_ as x,a as m}from"./app-DxbU-QrX.js";import{_ as c}from"./app-Ufpj4Ll4.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-BYcXwl4U.js";import"./app-Ceh-tphd.js";import"./app-CrjU8lgK.js";import"./app-Cp3gmk2J.js";import"./app--MWyBMkA.js";import"./app-BG60hdvp.js";import"./app-CNARLpXE.js";import"./app-SxAW7vhf.js";import"./app-D5k1HLu9.js";import"./app-ysQ8KbGS.js";import"./app-BDgR0DSb.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};
