1import{j as t}from"./jsx-runtime-CiSVbEyf.js";import{h as c,R as k}from"./index-DxjPFZVe.js";import{r as b}from"./chunk-62JRHF6Z-DResD4R9.js";import{c as S}from"./clsx-DG2FZI_l.js";import{H as V}from"./index-Dcz4K_SP.js";import{T as u}from"./index-Bwhk42Ms.js";import{R as y}from"./index-CrdEqtib.js";import"./preload-helper-B7f3cGiE.js";import"./index-CnpdthC2.js";import"./floating-ui.react-dom-CuDKjLEp.js";import"./index-tOgMvQKu.js";import"./index-OTjGuiLj.js";import"./index-D8Uz2wFm.js";import"./features-DAX78agQ.js";import"./Heading-BLEj6KLj.js";import"./index-BxMHtWZH.js";import"./index-BDEdosst.js";import"./buttonStyles-kh6uW_Lw.js";import"./index-BEuZWHuZ.js";import"./index-CjBPdQQ_.js";import"./index-DZWkDV4-.js";import"./Box-Uzl25Y1I.js";import"./index-CV3W3VKq.js";import"./index-BDdryyvU.js";import"./ButtonLink-D7WsDOzJ.js";import"./index-CTGnHMIi.js";import"./tslib.es6-DDDYZ0i8.js";import"./index-DXv6-1x5.js";import"./index-Dg4ztxJs.js";import"./index-CdhGIJdE.js";const T=(a,e,l)=>e<l.length-1,X=/(?:[\t ]?)+("+)?(.*?)\1(?:[\t ]?)+(?:,|$)/gm;function F(a){if(!a)return[];const e=a.split(` 2`);if(!(e.length>1&&e[0].includes(",")))return[];const i=[];for(const p of e){const g=[...p.matchAll(X)].filter(T).entries(),o=[];for(const[,d]of g){const n=d[2];o.push(n.length>0?Number(n)||n:null)}i.push(o)}return i}const ct=({heading:a,csv:e,smallPrint:l,isEmbedded:i,richText:p})=>{const g=i?"m-auto w-full p-0 m-0":"m-auto w-full md:w-[80%] md:max-w-7xl",o="border border-solid border-[#e5e5e5]",d=F(e??""),n=d?.shift(),[v,$]=b.useState(null),[N,A]=b.useState(d),[h,w]=b.useState(!0),R=r=>{let s=h;v===r?(s=!h,w(!h)):(s=!0,w(!0)),$(r);const m=[...N??[]];m.sort((x,f)=>{const j=parseFloat(x[r]?.toString()??""),C=parseFloat(f[r]?.toString()??"");return isNaN(j)?s?String(x[r]).localeCompare(String(f[r])):String(f[r]).localeCompare(String(x[r])):s?j-C:C-j}),A(m)};return t.jsxs(c,{paddingBottom:i?{mobile:"0",desktop:"0"}:{mobile:"24",desktop:"24"},className:g,children:[p?.json?t.jsx(c,{paddingY:"12",paddingX:"12",textAlign:"start",children:t.jsx(k,{space:"24",children:t.jsx(y,{text:p,h1:{variant:"large"},h2:{variant:"standard"},h3:{variant:"small"}})})}):null,t.jsxs(c,{gap:"12",className:"max-h-[85vh]",id:"data-table",overflow:"scroll",position:"relative",display:"block",children:[t.jsx(c,{paddingY:"24",paddingX:"12",textAlign:"center",children:t.jsx(V,{level:2,children:a})}),t.jsx(c,{marginX:"16",children:t.jsxs("table",{className:"border-separate border-spacing-0",children:[t.jsx("thead",{children:t.jsx("tr",{className:`sticky top-0 min-w-[160px] ${o}`,children:n?.map((r,s)=>t.jsx("th",{className:S(`bg-neutral p-12 leading-3 ${o}`,{"min-w-[110px] border-l-0":s!==0}),onClick:()=>R(s),children:t.jsxs("button",{className:"flex cursor-pointer flex-row items-center gap-4 text-left align-middle",children:[t.jsx(u,{variant:"small-bold",children:r}),t.jsx(u,{variant:"small-bold",children:v===s?h?"â":"â":"â"})]})},`${r}-${s}`))})}),t.jsx("tbody",{children:N?.map(r=>t.jsx("tr",{children:r.map((s,m)=>t.jsx("td",{className:S(`${o} border-t-0 p-12`,{"border-l-0":m!==0}),children:t.jsx(u,{variant:"small",children:s})},`${s}-${m}`))},r[0]))}),l&&t.jsx("caption",{className:"caption-bottom p-12 text-left",children:t.jsx(u,{variant:"small",children:l})})]})})]})]})};export{ct 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.