PageSourceSearch

https://somerch.co/assets/OrdersByStatusChart-BdPC1dsL.js

js somerch.co collected 2026-10-02 00:08:57 UTC 1,777 bytes, 1 lines download raw bytes

1import{j as r,Q as d,T as o,V as n,Y as i,F as j,b3 as x}from"./index-payoMPV_.js";import{R as p,C as m,X as f,Y as y,T as C,L as b,B as l}from"./generateCategoricalChart-CwZN54c7.js";import{B as g}from"./BarChart-B0e8V6Gy.js";import"./step-B98a7oi-.js";import"./index-C7yKKq-w.js";import"./band-CquvqAHh.js";import"./init-Dmth1JHB.js";import"./ordinal-DILIJJjt.js";import"./linear-B78IKGZp.js";import"./defaultLocale-DX6XiGOO.js";import"./time-iMc0ZtSt.js";const Y=({data:e,isLoading:u})=>{if(u)return r.jsxs(d,{children:[r.jsx(o,{children:r.jsx(n,{children:"Orders by Status"})}),r.jsx(i,{children:r.jsx(j,{className:"h-[300px] w-full"})})]});if(!e||e.length===0)return r.jsxs(d,{children:[r.jsx(o,{children:r.jsx(n,{children:"Orders by Status"})}),r.jsx(i,{children:r.jsx("div",{className:"h-[300px] flex items-center justify-center text-muted-foreground",children:"No orders found"})})]});const c=e.reduce((t,s)=>{const a=t.find(h=>h.status===s.status_name);return a?s.order_type===x.Request?a.requests=s.count:a.orders=s.count:t.push({status:s.status_name,requests:s.order_type===x.Request?s.count:0,orders:s.order_type===x.Order?s.count:0}),t},[]);return r.jsxs(d,{children:[r.jsx(o,{children:r.jsx(n,{children:"Orders by Status"})}),r.jsx(i,{children:r.jsx(p,{width:"100%",height:300,children:r.jsxs(g,{data:c,children:[r.jsx(m,{strokeDasharray:"3 3",className:"stroke-muted"}),r.jsx(f,{dataKey:"status",className:"text-xs"}),r.jsx(y,{className:"text-xs"}),r.jsx(C,{contentStyle:{backgroundColor:"var(--background)",border:"1px solid var(--border)",borderRadius:"6px"}}),r.jsx(b,{}),r.jsx(l,{dataKey:"requests",fill:"var(--accent-foreground)",name:"Requests"}),r.jsx(l,{dataKey:"orders",fill:"var(--primary)",name:"Orders"})]})})})]})};export{Y as OrdersByStatusChart};

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.