import{o as m,c as p,w as s,u as e,b as r,g as l,i as _,f as n,a as f,t as d,h as a}from"./app-SC54XQDl.js";import{i as u,c as I}from"./app-Ba7ZqSpq.js";import{_ as h}from"./app-DJCl4rzT.js";import{_ as P}from"./app-Cft_lrsr.js";import{_ as x}from"./app-rIYFLdeU.js";import{S as k}from"./app-4SRx_643.js";import{M as v}from"./app-C3Fl2Gyv.js";import{_ as $}from"./app-DZcB_Zcx.js";import{_ as g}from"./app-DK6yt561.js";import{_ as y}from"./app-COkia88n.js";import{_ as b}from"./app-D9UgVOV0.js";import"./app-CL60OiIv.js";import"./app-D9TrJBlL.js";import"./app-_Ovp2dOH.js";import"./app-BjSCO7rC.js";import"./app-Dhl-Bw0H.js";import"./app-B2C_dtYI.js";import"./app-COidJXl1.js";import"./app-qhR41k1m.js";import"./app-CS3AUTAk.js";import"./app-CCkWSX4Q.js";import"./app-B9xxzP2y.js";import"./app-C28obFWS.js";import"./app-CkINxBL9.js";import"./app-PPG0ZS4d.js";import"./app--Lj8zATS.js";import"./app-Ch8j4za4.js";import"./app-C2mBgI5Z.js";/* empty css            */import"./app-DHsI_tns.js";import"./app-BZGObKCm.js";import"./app-BPIIxVwk.js";import"./app-DgoEZtNT.js";import"./app-Dw0jKdCD.js";import"./app-DnXuoh8P.js";import"./app-C8HFiBxn.js";import"./app-FlPLZh9D.js";import"./app-DZaelcLs.js";import"./app-CNHjdV6U.js";import"./app-CukjbZvY.js";import"./app-Crd12MWL.js";import"./app-g-bJrEAS.js";import"./app-D_RBJHM6.js";import"./app-CmrRgGIA.js";import"./app-DyP4Nide.js";import"./app-D3Qbxi9D.js";import"./app-yF7sElvF.js";import"./app-CqkleIqs.js";function w(){const{utils:i,Tea:t}=u(this);this.updateItem=function(o){i.popup(t.url(".updateIPPopup?listId="+this.listId,{itemId:o}),{height:i.POPUP_HEIGHT_LG,callback:function(){i.success("保存成功",function(){i.reload()})}})},this.deleteItem=function(o){i.confirm("确定要删除这个IP吗？",function(){this.$post(".deleteIP").params({listId:this.listId,itemId:o}).refresh()})},this.createIP=function(o){i.popup("/servers/server/settings/waf/ipadmin/createIPPopup?listId="+this.listId+"&type="+o,{height:i.POPUP_HEIGHT_LG,callback:function(){i.reload()}})}}const C={key:0},D=f("span",{class:"item"},"|",-1),B={class:"item flex items-center"},G={key:1},wt={__name:"denyList",setup(i){const t=I(new w);return(o,c)=>(m(),p(P,{ctx:e(t)},{default:s(()=>[r(h,{ctx:e(t),"active-tab":"denyList"},null,8,["ctx"]),e(t).featureIsOn?(m(),l("div",C,[r(k,null,{default:s(()=>[r(v,{onClick:c[0]||(c[0]=_(H=>e(t).createIP("black"),["prevent"]))},{default:s(()=>[n("添加IP")]),_:1}),D,f("span",B,[n("ID: "+d(e(t).listId)+"   ",1),r(y,{content:"ID可以用于使用API操作此IP名单",class:"flex"})])]),_:1}),e(t).items.length==0?(m(),p(b,{key:0},{default:s(()=>[n("暂时还没有IP。")]),_:1})):a("",!0),e(t).items.length>0?(m(),p(g,{key:1,"v-items":e(t).items,onUpdateItem:e(t).updateItem,onDeleteItem:e(t).deleteItem,"v-can-update":!0},null,8,["v-items","onUpdateItem","onDeleteItem"])):a("",!0),r($,{data:e(t).page},null,8,["data"])])):a("",!0),e(t).featureIsOn?a("",!0):(m(),l("div",G,[r(x)]))]),_:1},8,["ctx"]))}};export{wt as default};
