import{b2 as t,l as e,ah as a,$ as s}from"./utils-lib.js?v=1761009159";import{_ as i}from"./index105.js?v=1761009159";import{a7 as o,a8 as l,p as r,i as n,a9 as m,aa as p,ab as c,ac as u,ad as f,ae as d}from"./useController14.js?v=1761009159";import{c as j,w as _,g as b,q as k,v,x as y,e as h,B as x,y as g,N as B,z as I,D as L}from"./base-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./site.js?v=1761009159";import"./column.js?v=1761009159";import"./index106.js?v=1761009159";import"./validator.js?v=1761009159";import"./useStore4.js?v=1761009159";const w=j({__name:"setting-ip-list",props:{compData:{default:()=>({})}},setup(j){_(()=>r.value.ip_limit,t=>{t?o(t):(l.white=[],l.black=[])},{deep:!0});const w=b(()=>"ipWhiteList"===n.value?m.value:p.value),{BtOperation:P}=t({options:[{label:"添加IP".concat("ipBlackList"===n.value?"黑":"白","名单"),type:"button",active:!0,onClick:c}]});return k(u),(t,o)=>{const r=e,c=a,u=i,j=s;return v(),y("div",null,[h(u,null,{"header-left":x(()=>[h(g(P))]),content:x(()=>["ipBlackList"!==g(n)?(v(),B(r,{key:0,ref_key:"settingIpWhiteRef",ref:m,data:g(l).white,"max-height":390,column:g(f)},{empty:x(()=>o[0]||(o[0]=[I("div",{class:"flex items-center justify-center"},"当前列表为空",-1)])),_:1},8,["data","column"])):(v(),B(r,{key:1,ref_key:"settingIpRef",ref:p,data:g(l).black,"max-height":390,column:g(f)},{empty:x(()=>o[1]||(o[1]=[I("div",{class:"flex items-center justify-center"},"当前列表为空",-1)])),_:1},8,["data","column"]))]),"footer-left":x(()=>[h(c,{"table-ref":g(w),options:g(d)},null,8,["table-ref","options"])]),_:1}),"ipBlackList"!==g(n)?(v(),B(j,{key:0,class:"mt-[2rem] ml-[1.6rem]",options:[{content:"注意：设置IP白名单后会默认禁止除白名单以外的所有IP访问"}]})):L("",!0)])}}});export{w as default};
