1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3094],{10713:(e,s,t)=>{t.r(s),t.d(s,{default:()=>m});var o=t(13056),i=t(28335),r=t(67960),a=t(53883),l=t(81e3),n=t(75624),c=t(33216);let d={impressions:{label:"Impressions",color:"hsl(217, 91%, 60%)"},views:{label:"Views",color:"hsl(160, 84%, 39%)"}};function m({series:e}){let s=e.map(e=>{var s;let t;return{...e,dateFormatted:(s=e.date,Number.isNaN((t=new Date(`${s}T00:00:00`)).getTime())?s:t.toLocaleDateString("en-US",{month:"short",day:"numeric"}))}}),t=e.some(e=>e.views>0);return(0,o.jsx)(c.ChartContainer,{config:d,className:"h-[200px] w-full sm:h-[260px]",children:(0,o.jsxs)(i.Q,{data:s,margin:{top:8,right:6,left:0,bottom:0},children:[(0,o.jsxs)("defs",{children:[(0,o.jsxs)("linearGradient",{id:"overviewImpressionsFill",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,o.jsx)("stop",{offset:"0%",stopColor:"var(--color-impressions)",stopOpacity:.32}),(0,o.jsx)("stop",{offset:"100%",stopColor:"var(--color-impressions)",stopOpacity:.02})]}),(0,o.jsxs)("linearGradient",{id:"overviewViewsFill",x1:"0",y1:"0",x2:"0",y2:"1",children:[(0,o.jsx)("stop",{offset:"0%",stopColor:"var(--color-views)",stopOpacity:.22}),(0,o.jsx)("stop",{offset:"100%",stopColor:"var(--color-views)",stopOpacity:.02})]})]}),(0,o.jsx)(r.d,{strokeDasharray:"4 4",className:"stroke-border/50",vertical:!1}),(0,o.jsx)(a.W,{dataKey:"dateFormatted",tickLine:!1,axisLine:!1,interval:"preserveStartEnd",minTickGap:40,tickMargin:8,tick:{fontSize:10},className:"text-muted-foreground"}),(0,o.jsx)(l.h,{tickLine:!1,axisLine:!1,tickFormatter:e=>e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}K`:e.toLocaleString(),width:40,tickMargin:4,tick:{fontSize:10},className:"text-muted-foreground",allowDecimals:!1}),(0,o.jsx)(c.ChartTooltip,{content:({active:e,payload:s,label:t})=>e&&s?.length?(0,o.jsxs)("div",{className:"rounded-lg border bg-background px-3 py-2 text-xs shadow-xl",children:[(0,o.jsx)("div",{className:"mb-1 font-medium",children:t}),(0,o.jsx)("div",{className:"space-y-0.5",children:s.map(e=>(0,o.jsxs)("div",{className:"flex items-center gap-2 text-muted-foreground",children:[(0,o.jsx)("span",{className:"inline-block size-2.5 rounded-[3px]",style:{backgroundColor:e.color}}),(0,o.jsx)("span",{className:"capitalize",children:String(e.dataKey)}),(0,o.jsx)("span",{className:"ml-auto pl-3 font-mono font-medium text-foreground",children:Number(e.value??0).toLocaleString()})]},String(e.dataKey)))})]}):null}),t&&(0,o.jsx)(n.Gk,{type:"monotone",dataKey:"views",stroke:"var(--color-views)",strokeWidth:2,fill:"url(#overviewViewsFill)",dot:!1,activeDot:{r:4,strokeWidth:0}}),(0,o.jsx)(n.Gk,{type:"monotone",dataKey:"impressions",stroke:"var(--color-impressions)",strokeWidth:2.25,fill:"url(#overviewImpressionsFill)",dot:!1,activeDot:{r:4,strokeWidth:0}})]})})}}}]);
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.