import{P as _}from"./app-BGgVpkqZ.js";import{i as x,c as b}from"./app-Ba7ZqSpq.js";import{e as g}from"./app-DUeSaIYz.js";import{T as v}from"./app-DoVkxbmA.js";import{o as a,c as i,w as u,a as n,f as c,t as l,u as d,g as y,D as C,F as k}from"./app-SC54XQDl.js";import"./app-yUrwy8EY.js";import"./app-C2mBgI5Z.js";function w(){const{utils:s}=x(this);s.setEcharts(g),this.$delay(function(){this.reloadChart()}),this.reloadChart=function(){let o=s.countAxis(this.stats,function(t){return t.countRequests});s.renderLineChart({id:"stat-chart",name:"解析量统计",values:this.stats,x:function(t){return t.hour.substring(8)},tooltip:function(t,r){let e=t.dataIndex,h=r[e].hour.substring(0,4),m=r[e].hour.substring(4,6),f=r[e].hour.substring(6,8),p=r[e].hour.substring(8,10);return h+"-"+m+"-"+f+" "+p+"时<br/>解析次数："+s.formatNumber(r[e].countRequests)},value:function(t){return t.countRequests/o.divider},axis:o})}}const B={class:"flex flex-row"},L={class:"inline-block"},N={class:"label-group"},R=n("div",{id:"stat-chart"},null,-1),z={__name:"statPopup",setup(s){const o=b(new w);return(t,r)=>(a(),i(_,null,{default:u(()=>[n("header",B,[c('记录"'+l(d(o).record.name)+'"解析量统计 ',1),n("div",L,[n("div",N,[(a(!0),y(k,null,C(d(o).record.routeNames,e=>(a(),i(v,{style:{padding:"0.1em 0.5em","font-size":"0.5em"},outlined:""},{default:u(()=>[c(l(e),1)]),_:2},1024))),256))])])]),R]),_:1}))}};export{z as default};
