PageSourceSearch

https://www.pirate-portal.com/assets/PurchaseOrderStatusPie-CuNet3he.js

js pirate-portal.com collected 2026-10-04 18:18:02 UTC 1,533 bytes, 1 lines download raw bytes

1import{j as r}from"./react-pdf-CiRvGOjn.js";import{r as o}from"./ag-grid-react-Cvi7zz2g.js";import{l as p}from"./loadPlotlyPie-BZSo_6bg.js";import{T as d,f as u,k as m}from"./index-BeCDJ2GY.js";import"./jspdf-D30lQ_ys.js";import"./ag-grid-community-DgkugROF.js";import"./ag-grid-enterprise-BRKZrOzu.js";import"./ag-charts-B9701BJR.js";import"./microsoft-BQSsBj1o.js";function w({data:l=[]}){const[s,a]=o.useState(null);o.useEffect(()=>{let t=!0;return p().then(e=>{if(typeof e!="function")throw new TypeError("loadPlotlyPie did not resolve to a React Plot component.");t&&a(()=>e)}).catch(e=>{console.error("Failed to load Plotly pie component:",e),t&&a(null)}),()=>{t=!1}},[]);const{labels:i,values:c}=o.useMemo(()=>{const t=l.reduce((e,f)=>{const n=f?.transactionstatus||"Unknown";return e[n]=(e[n]||0)+1,e},{});return{labels:Object.keys(t),values:Object.values(t)}},[l]);return i.length?s?r.jsx(u,{sx:{flex:1,minHeight:0,display:"flex"},children:r.jsx(s,{data:[{type:"pie",labels:i,values:c,textinfo:"label+percent",insidetextorientation:"radial",marker:{colors:["#AFC6E9","#0B2545","#6aa5ff","#94d2bd","#ee9b00","#ca6702"]}}],layout:{autosize:!0,showlegend:!0,margin:{l:10,r:10,t:20,b:20},paper_bgcolor:"rgba(0,0,0,0)",plot_bgcolor:"rgba(0,0,0,0)"},config:{displaylogo:!1},useResizeHandler:!0,style:{width:"100%",height:"100%",flex:1,minHeight:0}})}):r.jsx(u,{sx:{flex:1,minHeight:0,display:"flex",alignItems:"center",justifyContent:"center"},children:r.jsx(m,{})}):r.jsx(d,{children:"No data available."})}export{w 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.