File: /www/server/panel/BTPanel/static/js/page-legacy11.js
!function(){function t(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,i,o,u,a=[],l=!0,c=!1;try{if(o=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=o.call(e)).done)&&(a.push(r.value),a.length!==n);l=!0);}catch(t){c=!0,i=t}finally{try{if(!l&&null!=e.return&&(u=e.return(),Object(u)!==u))return}finally{if(c)throw i}}return a}}(t,n)||e(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(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,n){if(t){if("string"==typeof t)return r(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?r(t,n):void 0}}function r(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 i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var t,n,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",u=e.toStringTag||"@@toStringTag";function a(e,r,i,u){var a=r&&r.prototype instanceof c?r:c,s=Object.create(a.prototype);return o(s,"_invoke",function(e,r,i){var o,u,a,c=0,s=i||[],p=!1,f={p:0,n:0,v:t,a:v,f:v.bind(t,4),d:function(n,e){return o=n,u=0,a=t,f.n=e,l}};function v(e,r){for(u=e,a=r,n=0;!p&&c&&!i&&n<s.length;n++){var i,o=s[n],v=f.p,d=o[2];e>3?(i=d===r)&&(a=o[(u=o[4])?5:(u=3,3)],o[4]=o[5]=t):o[0]<=v&&((i=e<2&&v<o[1])?(u=0,f.v=r,f.n=o[1]):v<d&&(i=e<3||o[0]>r||r>d)&&(o[4]=e,o[5]=r,f.n=d,u=0))}if(i||e>1)return l;throw p=!0,r}return function(i,s,d){if(c>1)throw TypeError("Generator is already running");for(p&&1===s&&v(s,d),u=s,a=d;(n=u<2?t:a)||!p;){o||(u?u<3?(u>1&&(f.n=-1),v(u,a)):f.n=a:f.v=a);try{if(c=2,o){if(u||(i="next"),n=o[i]){if(!(n=n.call(o,a)))throw TypeError("iterator result is not an object");if(!n.done)return n;a=n.value,u<2&&(u=0)}else 1===u&&(n=o.return)&&n.call(o),u<2&&(a=TypeError("The iterator does not provide a '"+i+"' method"),u=1);o=t}else if((n=(p=f.n<0)?a:e.call(r,f))!==l)break}catch(n){o=t,u=1,a=n}finally{c=1}}return{value:n,done:p}}}(e,i,u),!0),s}var l={};function c(){}function s(){}function p(){}n=Object.getPrototypeOf;var f=[][r]?n(n([][r]())):(o(n={},r,function(){return this}),n),v=p.prototype=c.prototype=Object.create(f);function d(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,o(t,u,"GeneratorFunction")),t.prototype=Object.create(v),t}return s.prototype=p,o(v,"constructor",p),o(p,"constructor",s),s.displayName="GeneratorFunction",o(p,u,"GeneratorFunction"),o(v),o(v,u,"Generator"),o(v,r,function(){return this}),o(v,"toString",function(){return"[object Generator]"}),(i=function(){return{w:a,m:d}})()}function o(t,n,e,r){var i=Object.defineProperty;try{i({},"",{})}catch(t){i=0}o=function(t,n,e,r){function u(n,e){o(t,n,function(t){return this._invoke(n,e,t)})}n?i?i(t,n,{value:e,enumerable:!r,configurable:!r,writable:!r}):t[n]=e:(u("next",0),u("throw",1),u("return",2))},o(t,n,e,r)}function u(t,n,e,r,i,o,u){try{var a=t[o](u),l=a.value}catch(t){return void e(t)}a.done?n(l):Promise.resolve(l).then(r,i)}function a(t){return function(){var n=this,e=arguments;return new Promise(function(r,i){var o=t.apply(n,e);function a(t){u(o,r,i,a,l,"next",t)}function l(t){u(o,r,i,a,l,"throw",t)}a(void 0)})}}System.register(["./utils-lib-legacy.js?v=1777008528","./index-legacy431.js?v=1777008528","./base-lib-legacy.js?v=1777008528","./site-list-legacy.js?v=1777008528","./use-log-detail-legacy.js?v=1777008528","./index-legacy432.js?v=1777008528","./constants-legacy.js?v=1777008528","./index-legacy109.js?v=1777008528","./hooks-legacy2.js?v=1777008528","./column-legacy.js?v=1777008528"],function(e,r){"use strict";var o,u,l,c,s,p,f,v,d,y,h,m,b,g,_,w,x,k,j,S,O,P,C,I,T,D,R,L,A,B,F,U,z,G,H,E,M,$,q,N,J,V,W,Y,K,Q;return{setters:[function(t){o=t._,u=t.b,l=t.P,c=t.k,s=t.an,p=t.aa,f=t.t,v=t.J,d=t.w,y=t.f},function(t){h=t.D},function(t){m=t.c,b=t.x,g=t.y,_=t.A,w=t.B,x=t.N,k=t.G,j=t.r,S=t.e,O=t.w,P=t.C,C=t.z,I=t.D,T=t.bT,D=t.aJ,R=t.O,L=t.P,A=t.F,B=t.aT,F=t.v},function(t){U=t.f,z=t.s},function(t){G=t.h,H=t.o},function(t){E=t.ad,M=t.ae,$=t.j,q=t.af,N=t.g},function(t){J=t.c,V=t.f},function(t){W=t._},function(t){Y=t.u,K=t.b},function(t){Q=t.u}],execute:function(){var X={class:"stat-card"},Z={key:0,class:"h-[50px] flex items-center justify-between px-6 font-bold text-secondary border-b border-solid border-[var(--el-border-color-lighter)]"},tt={class:"p-[20px]"},nt=o(m({__name:"stat-card",props:{title:{default:""}},setup:function(t){return function(n,e){return b(),g("div",X,[t.title||n.$slots.extra?(b(),g("div",Z,[_("span",null,w(t.title),1),x(n.$slots,"extra",{},void 0,!0)])):k("",!0),_("div",tt,[x(n.$slots,"default",{},void 0,!0)])])}}}),[["__scopeId","data-v-6df4da2d"]]);function et(t,n){return(null!=t?t:[]).map(function(t){var e,r,i,o,u;return{id:null!==(e=t.id)&&void 0!==e?e:"",time:null!==(r=t.time_localtime)&&void 0!==r?r:"",ip:n,server:null!==(i=t.server_name)&&void 0!==i?i:"",uri:null!==(o=t.uri)&&void 0!==o?o:"",type:null!==(u=t.filter_rule)&&void 0!==u?u:"",location:J({ip_country:t.ip_country,ip_subdivisions:t.ip_subdivisions,ip_city:t.ip_city})}})}function rt(t){return(null!=t?t:[]).map(function(t){var n,e,r,i,o,u;return{id:null!==(n=t.id)&&void 0!==n?n:"",time:null!==(e=t.time_localtime)&&void 0!==e?e:"",ip:null!==(r=t.ip)&&void 0!==r?r:"",server:null!==(i=t.server_name)&&void 0!==i?i:"",uri:null!==(o=t.uri)&&void 0!==o?o:"",type:null!==(u=t.filter_rule)&&void 0!==u?u:"",location:J({ip_country:t.ip_country,ip_subdivisions:t.ip_subdivisions,ip_city:t.ip_city})}})}function it(){return ot.apply(this,arguments)}function ot(){return ot=a(i().m(function n(){var e,r,o,u,a,l,c,s,p,f,v,d,y,h,m,b,g,_,w,x,k,j,S,O,P,C,I,T,D=arguments;return i().w(function(n){for(;;)switch(n.n){case 0:return a=D.length>0&&void 0!==D[0]?D[0]:{},n.n=1,M(a);case 1:for(l=n.v,c=null!==(e=l.data)&&void 0!==e?e:l,s=(null!==(r=c.type)&&void 0!==r?r:[]).map(function(n){var e=t(n,2);return{name:e[0],value:e[1]}}),p=s.reduce(function(t,n){return t+n.value},0),f=(null!==(o=c.ip)&&void 0!==o?o:[]).map(function(n){var e=t(n,5),r=e[0],i=e[1],o=e[2],u=e[3],a=e[4];return{ip:r,count:i,country:o,province:u,city:a,location:J({ip_country:o,ip_subdivisions:u,ip_city:a}),percentage:V(i,p)}}),v=(null!==(u=c.uri)&&void 0!==u?u:[]).map(function(n){var e=t(n,2),r=e[0],i=e[1];return{uri:r,count:i,percentage:V(i,p)}}),d=f.slice(0,10).map(function(t){return{ip:t.ip,count:t.count,location:t.location,country:t.country,province:t.province,city:t.city}}),y={},h=0,m=Object.entries(null!==(b=c.ip_list)&&void 0!==b?b:{});h<m.length;h++)w=t(m[h],2),x=w[0],k=w[1],y[x]={list:et(k.list,x),type:null!==(g=k.type)&&void 0!==g?g:{},uri:null!==(_=k.uri)&&void 0!==_?_:[]};for(j={},S=0,O=Object.entries(null!==(P=c.uri_list)&&void 0!==P?P:{});S<O.length;S++)C=t(O[S],2),I=C[0],T=C[1],j[I]={ipList:rt(T.ip_list)};return n.a(2,{typeList:s,ipRows:f,uriRows:v,ipRank:d,total:p,ipListMap:y,uriListMap:j})}},n)})),ot.apply(this,arguments)}function ut(t){var n=t.match(/共(\d+)条/);return n?parseInt(n[1],10):0}function at(t){return lt.apply(this,arguments)}function lt(){return(lt=a(i().m(function t(n){var e,r,o,u,a,l,c,s;return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,E(n);case 1:return u=t.v,a=null!==(e=null!==(r=u.data)&&void 0!==r?r:u)&&void 0!==e?e:{},l=null!==(o=a.data)&&void 0!==o?o:[],c="string"==typeof a.page?ut(a.page):l.length,s=l.map(function(t){var n,e,r,i,o,u;return{id:null!==(n=t.id)&&void 0!==n?n:"",time:null!==(e=t.time_localtime)&&void 0!==e?e:"",ip:null!==(r=t.ip)&&void 0!==r?r:"",server:null!==(i=t.server_name)&&void 0!==i?i:"",uri:null!==(o=t.uri)&&void 0!==o?o:"",type:null!==(u=t.filter_rule)&&void 0!==u?u:"",location:J({ip_country:t.ip_country,ip_subdivisions:t.ip_subdivisions,ip_city:t.ip_city})}}),t.a(2,{list:s,total:c})}},t)}))).apply(this,arguments)}function ct(t){return st.apply(this,arguments)}function st(){return(st=a(i().m(function t(n){var e,r,o;return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,$({id:n});case 1:return r=t.v,o=null!==(e=r.data)&&void 0!==e?e:r,t.a(2,Array.isArray(o)?o[0]:o)}},t)}))).apply(this,arguments)}function pt(t){return ft.apply(this,arguments)}function ft(){return(ft=a(i().m(function t(n){return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,q({url_rule:n});case 1:return t.a(2)}},t)}))).apply(this,arguments)}function vt(t){return dt.apply(this,arguments)}function dt(){return(dt=a(i().m(function t(n){var e,r,o;return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,N({path:n});case 1:return o=t.v,t.a(2,null!==(e=null!==(r=o.data)&&void 0!==r?r:o)&&void 0!==e?e:"")}},t)}))).apply(this,arguments)}var yt=0,ht=2,mt=j(1),bt=j([]),gt=j([]),_t=j(0),wt=j(0),xt=[{prop:"time",label:"攻击时间"},{prop:"ip",label:"攻击IP"},{prop:"server",label:"被保护网站"},{prop:"uri",label:"URI"},{prop:"type",label:"保护类型"}],kt=function(t,n){return Q([{title:"拉黑",onClick:function(t){return n(t.ip)}},{title:"详情",onClick:function(n){return t(n.ip)}}])},jt=function(t,n){return Q([{title:"拉黑",onClick:function(t){return n(t.uri)}},{title:"详情",onClick:function(n){return t(n.uri)}}])},St=(e("i",function(t,n){return[{prop:"time",label:"攻击时间"},{prop:"server",label:"被保护网站"},{prop:"location",label:"IP归属地"},{prop:"uri",label:"URI"},{prop:"type",label:"保护类型"},St(t,n)]}),function(t,n){return Q([{title:"HTTP",onClick:function(t){return n(t)}},{title:"详情",onClick:function(n){return t(n.id)}}])}),Ot=(e("u",function(t){return[{prop:"time",label:"攻击时间",width:135},{prop:"ip",label:"攻击IP",width:100,showOverflowTooltip:!0},{prop:"server",label:"被保护网站",width:130,showOverflowTooltip:!0},{prop:"location",label:"IP归属地",width:120},{prop:"uri",label:"URI",width:200,showOverflowTooltip:!0},{prop:"type",label:"保护类型",width:140,showOverflowTooltip:!0},Ot(t)]}),function(t){return Q([{title:"详情",onClick:function(n){return t(n.id)}}])}),Pt={class:"flex-1"},Ct=m({__name:"ip-report",setup:function(t){var e,r,o=u().mainHeight,l=Y({request:(r=a(i().m(function t(){var n;return i().w(function(t){for(;;)switch(t.n){case 0:if(n=At()){t.n=1;break}return t.a(2,{data:[],total:0});case 1:return t.a(2,{data:n.ipRows,total:n.ipRows.length})}},t)})),function(){return r.apply(this,arguments)}),columns:[].concat(n((e=Nt,[{prop:"ip",label:"攻击IP",render:function(t){return S("span",{class:"bt-link",onClick:function(){return e(t.ip)}},[t.ip])}},{prop:"location",label:"IP归属地"},{prop:"count",label:"攻击次数"},{prop:"percentage",label:"攻击占比"}])),[kt(Nt,G)])});O(wt,function(){l.refresh()});var c=l.BtTable;return function(t,n){var e=W;return b(),g("div",Pt,[S(e,null,{content:P(function(){return[S(C(c),{"max-height":C(o)-280},null,8,["max-height"])]}),_:1})])}}}),It={class:"flex-1"},Tt=m({__name:"uri-report",setup:function(t){var e,r,o=u().mainHeight,l=Y({request:(r=a(i().m(function t(){var n;return i().w(function(t){for(;;)switch(t.n){case 0:if(n=At()){t.n=1;break}return t.a(2,{data:[],total:0});case 1:return t.a(2,{data:n.uriRows,total:n.uriRows.length})}},t)})),function(){return r.apply(this,arguments)}),columns:[].concat(n((e=Jt,[{prop:"uri",label:"URI",render:function(t){return S("span",{class:"bt-link",onClick:function(){return e(t.uri)}},[t.uri])}},{prop:"count",label:"攻击次数"},{prop:"percentage",label:"攻击占比"}])),[jt(Jt,Yt)])});O(wt,function(){l.refresh()});var c=l.BtTable;return function(t,n){var e=W;return b(),g("div",It,[S(e,null,{content:P(function(){return[S(C(c),{"max-height":C(o)-280},null,8,["max-height"])]}),_:1})])}}}),Dt={class:"flex-1"},Rt=m({__name:"search-report",setup:function(t,e){var r,o,s=e.expose,p=u().mainHeight,f=K({request:(o=a(i().m(function t(n){var e;return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,at(n);case 1:return e=t.v,t.a(2,{data:e.list,total:e.total})}},t)})),function(t){return o.apply(this,arguments)}),columns:[].concat(xt,[(r=Qt,Q([{title:"详情",onClick:function(t){return r(t.id)}}]))])}),v=f.BtTable,d=f.BtPage;return s({setSearchParams:function(t){var n=f.param.value,e=n.p||1;Object.keys(n).forEach(function(t){return delete n[t]}),Object.assign(n,{p:1,limit:10},t),1===e&&f.refresh()}}),function(t,e){var r=l,i=c,o=W;return b(),g("div",Dt,[S(o,null,{"header-left":P(function(){return[S(r,{type:"primary",class:"mr-4",onClick:C(Zt)},{default:P(function(){return n(e[0]||(e[0]=[I("拦截搜索查询",-1)]))}),_:1},8,["onClick"]),S(i,{href:"https://www.bt.cn/bbs/thread-69834-1-1.html",target:"_blank",type:"primary"},{default:P(function(){return n(e[1]||(e[1]=[I("查看教程",-1)]))}),_:1})]}),content:P(function(){return[S(C(v),{"max-height":C(p)-320},null,8,["max-height"])]}),"footer-right":P(function(){return[S(C(d),{layout:"prev, pager, next, total"})]}),_:1})])}}}),Lt=null;function At(){return Lt}var Bt=j(400);var Ft=s({options:{title:{text:"总防护类型",textStyle:{fontSize:14},subtext:"0",subtextStyle:{fontSize:14},itemGap:10,left:"49%",top:"43%",textAlign:"center"},tooltip:{trigger:"item",formatter:"{b}: {c} ({d}%)"},legend:{show:!1},series:[{type:"pie",radius:["45%","60%"],center:["50%","50%"],label:{show:!1},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold"}},data:[]}]}}),Ut=p({type:"card",options:[{label:"IP报表",name:"ip",lazy:!0,render:Ct},{label:"URI报表",name:"uri",lazy:!0,render:Tt},{label:"拦截搜索",name:"search",lazy:!0,render:Rt}]}),zt=Ut.BtTabs,Gt=(Ut.tabs,Ut.tabsRefs);function Ht(t){var n=t.getFullYear(),e=String(t.getMonth()+1).padStart(2,"0"),r=String(t.getDate()).padStart(2,"0");return"".concat(n,"-").concat(e,"-").concat(r)}function Et(){var t=new Date,n=new Date(t);n.setDate(n.getDate()-1);var e=mt.value;if(e===yt){var r=Ht(n);return{start_time:r,end_time:r}}if(e===ht&&2===bt.value.length)return{start_time:bt.value[0],end_time:bt.value[1]};var i=Ht(t);return{start_time:i,end_time:i}}function Mt(){return $t.apply(this,arguments)}function $t(){return($t=a(i().m(function t(){var n,e;return i().w(function(t){for(;;)switch(t.n){case 0:return n=Et(),t.n=1,it(n);case 1:e=t.v,Lt=e,gt.value=e.ipRank,_t.value=e.total,Ft.setOption({title:{subtext:String(e.total)},series:[{data:e.typeList.map(function(t){return{name:t.name,value:t.value}})}]}),wt.value++;case 2:return t.a(2)}},t)}))).apply(this,arguments)}function qt(){var t=Et(),n=t.start_time,e=t.end_time,r=n&&e?"?stime=".concat(n,"&etime=").concat(e):"";window.open("/btwaf/content_report.html".concat(r))}function Nt(t){var n,e,i,o,u=null===(n=Lt)||void 0===n||null===(n=n.ipListMap)||void 0===n?void 0:n[t];f({title:"恶意IP - 【".concat(t,"】攻击详情"),area:"930px",component:function(){return v(function(){return r.import("./ip-attack-detail-legacy.js?v=1777008528")},void 0,r.meta.url)},compData:{ip:t,logs:null!==(e=null==u?void 0:u.list)&&void 0!==e?e:[],typeData:null!==(i=null==u?void 0:u.type)&&void 0!==i?i:{},uriData:null!==(o=null==u?void 0:u.uri)&&void 0!==o?o:[],fetchLogDetail:ct,openLogDetail:Qt,openHttpDetail:Xt},showFooter:!1})}function Jt(t){var n,e,i=null===(n=Lt)||void 0===n||null===(n=n.uriListMap)||void 0===n?void 0:n[t];f({title:"被攻击的URI - 【".concat(t,"】防护记录"),area:["930px","580px"],component:function(){return v(function(){return r.import("./uri-defense-record-legacy.js?v=1777008528")},void 0,r.meta.url)},compData:{uri:t,logs:null!==(e=null==i?void 0:i.ipList)&&void 0!==e?e:[],openLogDetail:Qt},showFooter:!1})}function Vt(t){return Wt.apply(this,arguments)}function Wt(){return(Wt=a(i().m(function t(n){return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,G(n,Mt);case 1:return t.a(2)}},t)}))).apply(this,arguments)}function Yt(t){return Kt.apply(this,arguments)}function Kt(){return(Kt=a(i().m(function t(n){return i().w(function(t){for(;;)switch(t.p=t.n){case 0:return t.p=0,t.n=1,d({content:"确认将 URL ".concat(n," 加入黑名单?")});case 1:return t.n=2,pt(n);case 2:y().success("URL 已拉黑"),Mt(),t.n=4;break;case 3:t.p=3,t.v;case 4:return t.a(2)}},t,null,[[0,3]])}))).apply(this,arguments)}function Qt(t){H({id:t,openHttpDetail:Xt})}function Xt(t){var n,e;f({title:"HTTP请求详情",area:["800px","500px"],component:function(){return v(function(){return r.import("./http-detail-legacy.js?v=1777008528")},void 0,r.meta.url)},compData:{httpLog:null!==(n=t.http_log)&&void 0!==n?n:"",httpLogPath:null!==(e=t.http_log_path)&&void 0!==e?e:0,fetchHttpLogContent:vt},showFooter:!1})}function Zt(){return tn.apply(this,arguments)}function tn(){return tn=a(i().m(function t(){var n;return i().w(function(t){for(;;)switch(t.n){case 0:return t.n=1,U();case 1:n={},f({title:"拦截搜索",area:"45rem",component:function(){return v(function(){return r.import("./search-form-legacy.js?v=1777008528")},void 0,r.meta.url)},compData:{serverNames:z.value,onFormChange:function(t){n=t}},btn:["搜索","取消"],onConfirm:function(){var t=a(i().m(function t(){var e,r;return i().w(function(t){for(;;)if(0===t.n)return e=Gt(),(r=e.search)&&r.setSearchParams(n),t.a(2,!0)},t)}));return function(){return t.apply(this,arguments)}}()});case 2:return t.a(2)}},t)})),tn.apply(this,arguments)}var nn=m({__name:"protect-type-pie",props:{chart:{}},setup:function(t){var n=j(null),e=T(n).width;return D(function(){!function(t){Bt.value=t}(e.value)}),function(e,r){return b(),g("div",{ref_key:"containerRef",ref:n,style:{height:"220px"}},[(b(),R(L(t.chart)))],512)}}}),en={class:"overflow-y-auto flex flex-col gap-6",style:{"min-height":"320px"}},rn={class:"flex items-center gap-4"},on=["onClick"],un={key:0,class:"text-[12px] text-secondary"},an={class:"text-secondary"},ln={key:0,class:"text-center text-secondary py-4"},cn=m({__name:"attack-ip-rank",props:{list:{}},emits:["block"],setup:function(t){function n(t){var n=[];return t.country&&n.push(t.country),t.province&&n.push(t.province),t.city&&n.push(t.city),n.join(" ")}return function(e,r){return b(),g("div",en,[(b(!0),g(A,null,B(t.list,function(t){return b(),g("div",{key:t.ip,class:"flex items-center justify-between text-base"},[_("div",rn,[_("span",{class:"bt-link !text-[13px]",onClick:function(n){return e.$emit("block",t.ip)}},w(t.ip),9,on),n(t)?(b(),g("span",un,"( "+w(n(t))+" )",1)):k("",!0)]),_("span",an,w(t.count)+"次",1)])}),128)),t.list.length?k("",!0):(b(),g("div",ln,"暂无数据"))])}}}),sn={class:"flex gap-4 h-full py-[1.2rem]"},pn={class:"left-panel flex flex-col gap-4"},fn={class:"relative"},vn={class:"absolute right-0 top-0"},dn={class:"flex"},yn=o(m({__name:"page",setup:function(t){var e=[{label:"昨天",getValue:function(){return null}},{label:"今天",getValue:function(){return null}}];function r(t,n){var r;!function(t){mt.value=t}(n),n<e.length||(r=t,bt.value=r,mt.value=ht),Mt()}return F(function(){Mt()}),function(t,i){var o=l;return b(),g("div",sn,[_("div",pn,[S(nt,{title:"防护类型"},{default:P(function(){return[S(nn,{chart:C(Ft).BtECharts},null,8,["chart"])]}),_:1}),S(nt,{title:"攻击IP排行榜"},{default:P(function(){return[S(cn,{list:C(gt),onBlock:C(Vt)},null,8,["list","onBlock"])]}),_:1})]),S(nt,{class:"right-panel flex-1 min-w-0"},{default:P(function(){return[_("div",fn,[S(C(zt)),_("div",vn,[_("div",dn,[S(h,{buttons:e,"default-index":1,type:"daterange",onChange:r}),S(o,{type:"primary",class:"ml-4",onClick:C(qt)},{default:P(function(){return n(i[0]||(i[0]=[I("查看报告",-1)]))}),_:1},8,["onClick"])])])])]}),_:1})])}}}),[["__scopeId","data-v-764a94fe"]]),hn=Object.freeze(Object.defineProperty({__proto__:null,default:yn},Symbol.toStringTag,{value:"Module"}));e("p",hn)}}})}();