1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9480],{99480:function(e,a,t){t.r(a),t.d(a,{default:function(){return u}});var s=t(57437),l=t(14296),i=t(77031),r=t(56940),n=t(97059),o=t(62994),d=t(78155),c=t(10956),x=t(20407),h=t(18030);function u(e){var a,t;let{locale:u,data:b}=e,{t:f}=(0,h.$)(u);if(!b.some(e=>e.plays>0))return null;let m=Math.max(...b.map(e=>e.plays)),p=b.map(e=>({...e,label:f("events.manage.stats.hourLabel",{hour:String(e.hour)})}));return(0,s.jsxs)("div",{className:"bg-white rounded-xl border border-gray-200 p-5","data-testid":"stats-hourly-dist",children:[(0,s.jsxs)("div",{className:"flex items-center justify-between mb-4",children:[(0,s.jsx)("h3",{className:"text-sm font-semibold text-gray-700",children:f("events.manage.stats.hourlyDist")}),m>0&&(0,s.jsxs)("span",{className:"text-xs text-gray-500",children:[f("events.manage.stats.peakHour"),":"," ",(0,s.jsx)("span",{className:"font-semibold text-blue-600",children:f("events.manage.stats.hourLabel",{hour:String(null!==(t=null===(a=b.find(e=>e.plays===m))||void 0===a?void 0:a.hour)&&void 0!==t?t:0)})})]})]}),(0,s.jsx)(l.h,{width:"100%",height:240,children:(0,s.jsxs)(i.v,{data:p,barCategoryGap:"15%",children:[(0,s.jsx)(r.q,{strokeDasharray:"3 3",stroke:"#f3f4f6",vertical:!1}),(0,s.jsx)(n.K,{dataKey:"label",tick:{fontSize:10,fill:"#9ca3af"},axisLine:{stroke:"#e5e7eb"},tickLine:!1,interval:1}),(0,s.jsx)(o.B,{allowDecimals:!1,tick:{fontSize:12,fill:"#9ca3af"},axisLine:!1,tickLine:!1,width:35}),(0,s.jsx)(d.u,{contentStyle:{borderRadius:"8px",border:"1px solid #e5e7eb",boxShadow:"0 4px 6px rgba(0,0,0,0.07)",fontSize:"13px"},labelFormatter:e=>"".concat(e)}),(0,s.jsx)(c.$Q,{dataKey:"plays",name:f("events.manage.stats.dailyPlays"),radius:[4,4,0,0],children:p.map((e,a)=>(0,s.jsx)(x.b,{fill:e.plays===m?"#2563eb":"#93c5fd"},a))})]})})]})}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.