File: /www/server/panel/BTPanel/static/js/index-legacy200.js
!function(){function t(t){return function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return n(t,e);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)?n(t,e):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 n(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}function e(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",i=o.toStringTag||"@@toStringTag";function c(e,o,a,i){var c=o&&o.prototype instanceof l?o:l,f=Object.create(c.prototype);return r(f,"_invoke",function(e,r,o){var a,i,c,l=0,f=o||[],s=!1,p={p:0,n:0,v:t,a:d,f:d.bind(t,4),d:function(n,e){return a=n,i=0,c=t,p.n=e,u}};function d(e,r){for(i=e,c=r,n=0;!s&&l&&!o&&n<f.length;n++){var o,a=f[n],d=p.p,v=a[2];e>3?(o=v===r)&&(c=a[(i=a[4])?5:(i=3,3)],a[4]=a[5]=t):a[0]<=d&&((o=e<2&&d<a[1])?(i=0,p.v=r,p.n=a[1]):d<v&&(o=e<3||a[0]>r||r>v)&&(a[4]=e,a[5]=r,p.n=v,i=0))}if(o||e>1)return u;throw s=!0,r}return function(o,f,v){if(l>1)throw TypeError("Generator is already running");for(s&&1===f&&d(f,v),i=f,c=v;(n=i<2?t:c)||!s;){a||(i?i<3?(i>1&&(p.n=-1),d(i,c)):p.n=c:p.v=c);try{if(l=2,a){if(i||(o="next"),n=a[o]){if(!(n=n.call(a,c)))throw TypeError("iterator result is not an object");if(!n.done)return n;c=n.value,i<2&&(i=0)}else 1===i&&(n=a.return)&&n.call(a),i<2&&(c=TypeError("The iterator does not provide a '"+o+"' method"),i=1);a=t}else if((n=(s=p.n<0)?c:e.call(r,p))!==u)break}catch(n){a=t,i=1,c=n}finally{l=1}}return{value:n,done:s}}}(e,a,i),!0),f}var u={};function l(){}function f(){}function s(){}n=Object.getPrototypeOf;var p=[][a]?n(n([][a]())):(r(n={},a,function(){return this}),n),d=s.prototype=l.prototype=Object.create(p);function v(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,s):(t.__proto__=s,r(t,i,"GeneratorFunction")),t.prototype=Object.create(d),t}return f.prototype=s,r(d,"constructor",s),r(s,"constructor",f),f.displayName="GeneratorFunction",r(s,i,"GeneratorFunction"),r(d),r(d,i,"Generator"),r(d,a,function(){return this}),r(d,"toString",function(){return"[object Generator]"}),(e=function(){return{w:c,m:v}})()}function r(t,n,e,o){var a=Object.defineProperty;try{a({},"",{})}catch(t){a=0}r=function(t,n,e,o){function i(n,e){r(t,n,function(t){return this._invoke(n,e,t)})}n?a?a(t,n,{value:e,enumerable:!o,configurable:!o,writable:!o}):t[n]=e:(i("next",0),i("throw",1),i("return",2))},r(t,n,e,o)}function o(t,n,e,r,o,a,i){try{var c=t[a](i),u=c.value}catch(t){return void e(t)}c.done?n(u):Promise.resolve(u).then(r,o)}function a(t){return function(){var n=this,e=arguments;return new Promise(function(r,a){var i=t.apply(n,e);function c(t){o(i,r,a,c,u,"next",t)}function u(t){o(i,r,a,c,u,"throw",t)}c(void 0)})}}System.register(["./index-legacy118.js?v=1777008528","./index-legacy217.js?v=1777008528","./utils-lib-legacy.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./index-legacy3.js?v=1777008528","./useStore-legacy2.js?v=1777008528","./site-legacy.js?v=1777008528"],function(n,r){"use strict";var o,i,c,u,l,f,s,p,d,v,y,g,m,h,b,w,j,S,_,O,P,k,A,I,T,C,x,B;return{setters:[function(t){o=t._},function(t){i=t._},function(t){c=t.M,u=t.a2,l=t.o,f=t.R,s=t.e,p=t._,d=t.w,v=t.k,y=t.d3},function(t){g=t.r,m=t.H,h=t.V,b=t.e,w=t.c,j=t.o,S=t.I,_=t.j,O=t.k,P=t.v,k=t.J,A=t.p},function(t){I=t.g},function(t){T=t.u},function(t){C=t.getPhpSiteSafeLog,x=t.addPhpSiteIpWhite,B=t.addPhpSiteSafeWhite}],execute:function(){var U=T().siteInfo;g();var G=g(),L=n("d",g()),R=m({list:[],p:1,limit:10,total:100,load:!1}),$=function(){var t=a(e().m(function t(n){return e().w(function(t){for(;;)switch(t.n){case 0:L.value={data:n},s({title:"【".concat(n.address,"】详情"),area:60,isAsync:!0,component:function(){return p(function(){return r.import("./log-detail-legacy4.js?v=1777008528")},void 0,r.meta.url)},showFooter:!1});case 1:return t.a(2)}},t)}));return function(n){return t.apply(this,arguments)}}(),E=n("c",function(){var t=a(e().m(function t(n){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,d({title:"加入IP白名单",width:"35rem",icon:"warning-filled",content:"是否将【".concat(n.address,"】添加到IP白名单?")});case 1:v({loading:"正在加入IP白名单,请稍后...",request:x({start_ip:n.address,end_ip:n.address}),message:!0});case 2:return t.a(2)}},t)}));return function(n){return t.apply(this,arguments)}}()),F=n("e",function(){var t=a(e().m(function t(n){return e().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,d({title:"加入URL白名单",width:"35rem",icon:"warning-filled",content:"加入URL白名单后此URL将不再进行防御,是否继续操作?"});case 1:v({loading:"正在加入URL白名单,请稍后...",request:B({url_rule:n.url}),message:!0});case 2:return t.a(2)}},t)}));return function(n){return t.apply(this,arguments)}}()),N=function(){var t=a(e().m(function t(n){return e().w(function(t){for(;;)switch(t.n){case 0:L.value={data:n},s({title:"【".concat(n.address,"】HTTP详情"),area:80,isAsync:!0,component:function(){return p(function(){return r.import("./http-detail-legacy.js?v=1777008528")},void 0,r.meta.url)},showFooter:!1});case 1:return t.a(2)}},t)}));return function(n){return t.apply(this,arguments)}}(),H=function(){var t=a(e().m(function t(){var n;return e().w(function(t){for(;;)switch(t.p=t.n){case 0:return R.load=!1,t.p=1,R.load=!0,t.n=2,C({siteName:U.value.name,p:R.p,rows:R.limit});case 2:(n=t.v).status||c.error(n.msg),R.list=u(n.data.data,"array",[]),R.total=l(n.data.page),t.n=4;break;case 3:t.p=3,t.v;case 4:return t.p=4,R.load=!1,t.f(4);case 5:return t.a(2)}},t,null,[[1,3,4,5]])}));return function(){return t.apply(this,arguments)}}(),J=h([{label:"时间",prop:"addtime",render:function(t){return b("div",{class:"flex !items-center inline-block truncate"},[f(t.addtime)])}},{label:"用户IP",prop:"address",render:function(t){return b("div",{class:"bt-link truncate",onClick:function(){E(t)}},[t.address])}},{label:"恶意类型",prop:"intercept"},{label:"url地址",prop:"url",width:270},I([{onClick:function(t){F(t)},title:"URL加白",width:80},{onClick:$,title:"详情"},{onClick:N,title:"HTTP"}])]),M=n("l",g("")),q=(n("i",function(){var t,n,e,r,o;M.value=(t=L.value.data,e=null,r="",o=0,(n=n||{}).newlineAfterColonIfBeforeBraceOrBracket=!0===n.newlineAfterColonIfBeforeBraceOrBracket,n.spaceAfterColon=!1!==n.spaceAfterColon,"string"!=typeof t||(t=JSON.parse(t)),e=/([\{\}])/g,t=(t=JSON.stringify(t)).replace(e,"\r\n$1\r\n"),e=/([\[\]])/g,t=t.replace(e,"\r\n$1\r\n"),e=/(\,)/g,t=t.replace(e,"$1\r\n"),e=/(\r\n\r\n)/g,t=t.replace(e,"\r\n"),e=/\r\n\,/g,t=t.replace(e,","),n.newlineAfterColonIfBeforeBraceOrBracket||(e=/\:\r\n\{/g,t=t.replace(e,":{"),e=/\:\r\n\[/g,t=t.replace(e,":[")),n.spaceAfterColon&&(e=/\:/g,t=t.replace(e,": ")),t.split("\r\n").forEach(function(t,n){var e=0,a=0,i="";for(t.match(/\{$/)||t.match(/\[$/)?a=1:t.match(/\}/)||t.match(/\]/)?0!==o&&(o-=1):a=0,e=0;e<o;e++)i+=" ";r+=i+t+"\r\n",o+=a}),r)}),n("b",g({}))),D=(n("a",function(){q.value=L.value.data}),{class:"relative p-[16px]"}),W=w({__name:"index",props:{compData:{default:function(){return{}}}},setup:function(n){var e=n;return j(function(){var t,n;t=e.compData,G.value=t,R.list=(null===(n=G.value)||void 0===n?void 0:n.data)||[],R.total=l(G.value.page)}),function(n,e){var r=y,a=i,c=o,u=S("bt-loading");return _(),O("div",D,[b(c,null,{"header-left":P(function(){return t(e[3]||(e[3]=[]))}),"header-right":P(function(){return t(e[4]||(e[4]=[]))}),content:P(function(){return[k(b(r,{ref:"ftpTable",column:A(J),"max-height":360,data:A(R).list,description:"暂无数据"},null,8,["column","data"]),[[u,A(R).load],[u,"正在加载中,请稍后...","title"]])]}),"footer-right":P(function(){return[b(a,{page:A(R).p,"onUpdate:page":e[0]||(e[0]=function(t){return A(R).p=t}),row:A(R).limit,"onUpdate:row":e[1]||(e[1]=function(t){return A(R).limit=t}),total:A(R).total,onChange:e[2]||(e[2]=function(t){return A(H)()})},null,8,["page","row","total"])]}),_:1})])}}}),z=Object.freeze(Object.defineProperty({__proto__:null,default:W},Symbol.toStringTag,{value:"Module"}));n("f",z)}}})}();