System.register(["./public-legacy.js?v=1753954525509","./page_layout-legacy.js?v=1753954525509","./index-legacy79.js?v=1753954525509","./tools-legacy2.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy15.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./rules-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy.js?v=1753954525509","./index-legacy100.js?v=1753954525509"],(function(e,t){"use strict";var a,l,i,n,o,s,r,c,u,p,d,f,_,y,g,m,x;return{setters:[e=>{a=e.b,l=e.h,i=e.f},e=>{n=e.cY,o=e.w},e=>{s=e.g},e=>{r=e.s},e=>{c=e._},e=>{u=e.k,p=e.t,d=e.P,f=e.aD,_=e.U,y=e.V,g=e.Q,m=e.X,x=e.W},null,null,null,null,null,null,null,null,null],execute:function(){const t={class:"h-full"},v=u({__name:"details-count",props:{data:{default:()=>({})}},setup(e){const a=p(e,"data"),{t:l}=d(),i=f({backgroundColor:"#fff",title:o(),tooltip:{trigger:"item",confine:!0,formatter(e){const t=e;return`${t.marker} ${t.name}: ${t.value} (${t.percent}%)`}},series:s()}),n=["#6ec71e","#4885FF","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"];function o(e=0){return{text:l("Waf.Report.index_17"),textStyle:{color:"#484848",fontSize:17},subtext:`${e}`,subtextStyle:{color:"#717171",fontSize:15},itemGap:20,left:"center",top:"42%"}}function s(e=[]){return[{type:"pie",data:e,radius:["50%","60%"],center:["50%","50%"],clockwise:!0,avoidLabelOverlap:!0,label:{show:!0,position:"outside",color:"#999",lineHeight:18,formatter:e=>""!==e.name?0===e.percent?"":l("Waf.Overview.index_33",[e.name,e.value,e.percent]):""},labelLine:{length:30,length2:30,lineStyle:{width:1,color:"#CDCDCD"}},itemStyle:{labelLine:{length:30,length2:30,lineStyle:{width:1,color:"#CDCDCD"}},color:e=>n[e.dataIndex]},emphasis:{scaleSize:15}}]}return(()=>{let e=0;const t=[];Object.entries(a.value).forEach((([a,l])=>{e+=l,t.push({name:a,value:l})})),i.title=o(e),i.series=s(t)})(),(e,a)=>(_(),y("div",t,[g(c,{type:"pie",height:"100%",option:m(i)},null,8,["option"])]))}}),h={class:"h-full"},b=u({__name:"details-uri",props:{data:{default:()=>[]}},setup(e){const t=p(e,"data"),{t:a}=d(),l=f({backgroundColor:"#fff",tooltip:{trigger:"item",axisPointer:{type:"shadow",label:{color:"#fff",fontSize:"26"}},formatter(e){const t=e;return`<div style="max-width: 400px;">${t.marker} ${n(t.seriesName||"")}</div>\n\t\t\t<div>${a("Waf.Report.index_16",[t.data])}</div>`}},legend:{top:"0%",data:t.value.slice(0,4).map((e=>e.name)),textStyle:{fontSize:12,color:"#808080"},icon:"rect"},grid:{top:60,left:60,right:0,bottom:50},xAxis:[{type:"category",axisLabel:{color:"#4D4D4D",fontSize:14,fontWeight:"bold"},data:[a("Waf.Report.index_15")]}],yAxis:[{type:"value",axisLine:{show:!1},axisTick:{show:!1},splitNumber:4,axisLabel:{color:"#8C8C8C"},splitLine:{lineStyle:{type:"dashed"}}}],color:["#4fa8f9","#6ec71e","#f56e6a","#fc8b40","#818af8","#31c9d7","#f35e7a","#ab7aee","#14d68b","#cde5ff"],series:t.value.slice(0,4).map((e=>({name:e.name,type:"bar",label:{show:!0,position:"top"},barMaxWidth:60,data:[e.value]})))});return(e,t)=>(_(),y("div",h,[g(c,{type:"bar",height:"100%",option:m(l)},null,8,["option"])]))}}),w={class:"p-20px"},j={class:"flex h-280px mb-16px"},S={class:"w-410px"},k={class:"w-500px"};e("default",u({__name:"details",props:{row:{}},setup(e){const t=p(e,"row"),{t:c}=d(),{table:u,columns:f}=a([{key:"time_localtime",title:c("Waf.Report.index_13"),width:140},{key:"server_name",title:c("Waf.Report.index_14"),ellipsis:{tooltip:!0}},{key:"ip_country",title:c("Waf.Report.index_8"),render:e=>e.ip_country||"--"},{key:"URI",title:"URI",ellipsis:{tooltip:!0},render:e=>n(e.uri)||"--"},{key:"filter_rule",title:c("Waf.Report.index_34"),width:140},l({width:80,options:e=>[{label:c("Public.Btn.Details"),onClick:async()=>{const{message:t}=await s({id:e.id});o(t)&&t.length>0&&r(t[0])}}]})]);u.data=t.value.data.list;const h=t.value.data.uri.map((e=>({name:e[0],value:e[1]})));return(e,a)=>{const l=i;return _(),y("div",w,[x("div",j,[x("div",S,[g(v,{data:m(t).data.type},null,8,["data"])]),x("div",k,[g(b,{data:m(h)},null,8,["data"])])]),g(l,{"max-height":300,data:m(u).data,columns:m(f)},null,8,["data","columns"])])}}}))}}}));
