File: /www/server/panel/BTPanel/static/js/setting-ip-list-legacy.js
!function(){function t(t){return function(t){if(Array.isArray(t))return e(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return e(t,n);var r={}.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?e(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=Array(e);n<e;n++)r[n]=t[n];return r}System.register(["./utils-lib-legacy.js?v=1777008528","./index-legacy118.js?v=1777008528","./useController-legacy11.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./__commonjsHelpers__-legacy.js?v=1777008528","./site-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./index-legacy119.js?v=1777008528","./index-legacy116.js?v=1777008528","./useStore-legacy2.js?v=1777008528"],function(e,n){"use strict";var r,i,a,l,o,u,c,s,f,y,m,p,d,g,b,v,j,h,k,_,x,I,A,S,w,B,C;return{setters:[function(t){r=t.dc,i=t.d3,a=t.d4,l=t.cP},function(t){o=t._},function(t){u=t.a5,c=t.a6,s=t.k,f=t.a7,y=t.a8,m=t.a9,p=t.aa,d=t.ab,g=t.ac,b=t.ad},function(t){v=t.c,j=t.w,h=t.g,k=t.o,_=t.j,x=t.k,I=t.e,A=t.v,S=t.p,w=t.C,B=t.q,C=t.y},null,null,null,null,null,null],execute:function(){e("default",v({__name:"setting-ip-list",props:{compData:{default:function(){return{}}}},setup:function(e){j(function(){return s.value.ip_limit},function(t){t?u(t):(c.white=[],c.black=[])},{deep:!0});var n=h(function(){return"ipWhiteList"===f.value?y.value:m.value}),v=r({options:[{label:"添加IP".concat("ipBlackList"===f.value?"黑":"白","名单"),type:"button",active:!0,onClick:p}]}).BtOperation;return k(d),function(e,r){var u=i,s=a,p=o,d=l;return _(),x("div",null,[I(p,null,{"header-left":A(function(){return[I(S(v))]}),content:A(function(){return["ipBlackList"!==S(f)?(_(),w(u,{key:0,ref_key:"settingIpWhiteRef",ref:y,data:S(c).white,"max-height":390,column:S(g)},{empty:A(function(){return t(r[0]||(r[0]=[B("div",{class:"flex items-center justify-center"},"当前列表为空",-1)]))}),_:1},8,["data","column"])):(_(),w(u,{key:1,ref_key:"settingIpRef",ref:m,data:S(c).black,"max-height":390,column:S(g)},{empty:A(function(){return t(r[1]||(r[1]=[B("div",{class:"flex items-center justify-center"},"当前列表为空",-1)]))}),_:1},8,["data","column"]))]}),"footer-left":A(function(){return[I(s,{"table-ref":S(n),options:S(b)},null,8,["table-ref","options"])]}),_:1}),"ipBlackList"!==S(f)?(_(),w(d,{key:0,class:"mt-[2rem] ml-[1.6rem]",options:[{content:"注意:设置IP白名单后会默认禁止除白名单以外的所有IP访问"}]})):C("",!0)])}}}))}}})}();