1import{j as s}from"./index-CuSEeJFb.js";import{R as n,T as r,a2 as u,C as k,a3 as C}from"./generateCategoricalChart-lXkql-gd.js";import{a as c,L as j}from"./LineChart-QmF0f0aq.js";import{C as i,X as d,Y as o}from"./YAxis-edJjQlh1.js";import{B as K}from"./BarChart-CPEOGCBJ.js";import{A as m,a as h}from"./AreaChart-BE8A1YFk.js";import{P as g,a as A}from"./PieChart-BXVWJE0w.js";import"./throttle-Bgu_Mp4s.js";import"./debounce-BH2V1_7f.js";import"./tiny-invariant-BaFNuDhB.js";import"./string-CFFdVFMV.js";const f=["#8884d8","#82ca9d","#ffc658","#ff7300","#8dd1e1","#d084d0"];function R(a){return"data"in a&&"type"in a&&"dataKey"in a}function B(a){if(R(a)){const{data:t=[],type:e,dataKey:x}=a;return s.jsx("div",{className:"h-full w-full",children:s.jsx(n,{width:"100%",height:"100%",children:e==="line"?s.jsxs(c,{data:t,children:[s.jsx(i,{strokeDasharray:"3 3"}),s.jsx(d,{dataKey:"date"}),s.jsx(o,{}),s.jsx(r,{}),s.jsx(j,{type:"monotone",dataKey:x,stroke:"#8884d8",strokeWidth:2})]}):e==="bar"?s.jsxs(K,{data:t,children:[s.jsx(i,{strokeDasharray:"3 3"}),s.jsx(d,{dataKey:"date"}),s.jsx(o,{}),s.jsx(r,{}),s.jsx(u,{dataKey:x,fill:"#8884d8"})]}):s.jsxs(m,{data:t,children:[s.jsx(i,{strokeDasharray:"3 3"}),s.jsx(d,{dataKey:"date"}),s.jsx(o,{}),s.jsx(r,{}),s.jsx(h,{type:"monotone",dataKey:x,stroke:"#8884d8",fill:"#8884d8",fillOpacity:.3})]})})})}const{usageData:y=[],featureUsage:l=[],platformHealth:p=[]}=a;return s.jsxs(s.Fragment,{children:[s.jsx("div",{className:"h-80",children:s.jsx(n,{width:"100%",height:"100%",children:s.jsxs(m,{data:y,children:[s.jsx(i,{strokeDasharray:"3 3"}),s.jsx(d,{dataKey:"date"}),s.jsx(o,{}),s.jsx(r,{formatter:(t,e)=>[typeof t=="number"?t.toLocaleString():t,e==="requests"?"API Requests":e==="cost"?"Cost ($)":e==="users"?"Active Users":e]}),s.jsx(h,{type:"monotone",dataKey:"requests",stackId:"1",stroke:"#8884d8",fill:"#8884d8",fillOpacity:.3}),s.jsx(h,{type:"monotone",dataKey:"users",stackId:"2",stroke:"#82ca9d",fill:"#82ca9d",fillOpacity:.3})]})})}),s.jsx("div",{className:"h-80",children:s.jsx(n,{width:"100%",height:"100%",children:s.jsxs(g,{children:[s.jsx(A,{data:l,cx:"50%",cy:"50%",outerRadius:80,fill:"#8884d8",dataKey:"percentage",label:({name:t,percentage:e})=>`${t}: ${e.toFixed(1)}%`,children:l&&l.map((t,e)=>s.jsx(k,{fill:f[e%f.length]},`cell-${e}`))}),s.jsx(r,{}),s.jsx(C,{})]})})}),s.jsx("div",{className:"h-80",children:s.jsx(n,{width:"100%",height:"100%",children:s.jsxs(c,{data:p,children:[s.jsx(i,{strokeDasharray:"3 3"}),s.jsx(d,{dataKey:"time"}),s.jsx(o,{}),s.jsx(r,{}),s.jsx(j,{type:"monotone",dataKey:"responseTime",stroke:"#8884d8",strokeWidth:2}),s.jsx(j,{type:"monotone",dataKey:"errorRate",stroke:"#ff7300",strokeWidth:2})]})})})]})}export{B as default};
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.