1import{r,u as o,v as h,j as e,A as u,P as j,H as f,G as p,K as v}from"./index-BIGiMjqK.js";import{onInfoMetric as b,INFO_METRICS as a,setInfoMetric as g,infoState as y,getInfoData as N}from"./infoflow-Bz4AuQNM.js";function w(){const[,d]=r.useReducer(s=>s+1,0),[c,m]=r.useState(null),n=o(s=>s.selected),x=o(s=>s.select);r.useEffect(()=>b(d),[]),r.useEffect(()=>{h().then(m).catch(()=>{})},[]);const l=y.metric,t=n&&c?c[n]:null,i=n?N()?.[n]:null;return e.jsxs(e.Fragment,{children:[e.jsxs("div",{className:"legend lift-1",role:"note","aria-label":"Legend",children:[e.jsx("span",{className:"kicker",children:a[l].label}),e.jsx("div",{className:"legend-ramp",style:{background:u(a[l].ramp)}}),e.jsxs("div",{className:"legend-scale",children:[e.jsx("span",{children:"0 â low"}),e.jsx("span",{children:"1 â high"})]}),e.jsx("div",{className:"legend-note",children:"Experimental editorial estimates curated for GeoIntel 1.0 â no external source; read as an essay in map form, not as measured data."})]}),e.jsx("div",{className:"dock",children:e.jsx("div",{className:"viewbar",role:"tablist","aria-label":"Metric",children:Object.keys(a).map(s=>e.jsx("button",{role:"tab","aria-selected":l===s,className:`pill${l===s?" on":""}`,onClick:()=>g(s),title:a[s].hint,children:a[s].label},s))})}),e.jsx(j,{open:!!t,onClose:()=>x(null),kicker:"Information space",title:t?.name??"",lead:t?e.jsx(v,{c:t}):void 0,children:t&&e.jsxs(e.Fragment,{children:[i?e.jsx("div",{className:"subpanel",children:Object.keys(a).map(s=>e.jsxs("div",{style:{margin:"8px 0"},children:[e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:12},children:[e.jsx("span",{children:a[s].label}),e.jsx("span",{className:"mono",children:i[s]?.toFixed(2)??"â"})]}),e.jsx("div",{style:{height:6,borderRadius:3,background:"color-mix(in srgb, var(--m-ink, var(--ink)) 12%, transparent)",overflow:"hidden"},children:e.jsx("div",{style:{width:`${(i[s]??0)*100}%`,height:"100%",background:"var(--m-accent, var(--accent))"}})})]},s))}):e.jsx("p",{style:{color:"var(--ink-soft)",fontSize:13},children:"No estimates recorded for this state."}),e.jsx(f,{c:t}),e.jsx(p,{ids:["info-flow"]})]})})]})}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.