import{j as t}from"./query-Bw69rE6b.js";import{S as c}from"./StatusPill-DBEWzsQ3.js";function b({mode:e}){if(e!=="semantic"&&e!=="lexical")return null;const n=e==="semantic"?"Semantic":"Lexical",i=e==="semantic"?"Alternatives paraphrase the chosen description — same meaning, different wording":"Alternatives share core vocabulary with the chosen description but may shift meaning",r=e==="semantic"?"border-accent/40 bg-accent-soft/40 text-accent":"border-surface-border bg-surface text-ink-muted";return t.jsx("span",{title:i,className:"inline-flex items-center rounded border px-1.5 py-[1px] text-[10px] uppercase tracking-wider "+r,children:n})}function g({score:e}){return e==null?t.jsx("span",{className:"font-mono text-[10px] text-ink-dim",title:"No logprob recorded for this suggestion.",children:"logprob —"}):t.jsxs("span",{className:"font-mono text-[10px] text-ink-muted",title:"Average log-probability — closer to 0 = more confident; very negative = the model was guessing.",children:["logprob ",e.toFixed(3)]})}function u({value:e,score:n}){const i=e==="high"?"positive":e==="low"?"warning":"neutral";return t.jsx("span",{title:n!=null?`logprob ${n.toFixed(3)}`:void 0,children:t.jsx(c,{tone:i,children:e})})}const a={HIGH:{stripe:"bg-positive",pill:"border border-positive/40 bg-positive-soft text-positive",label:"HIGH"},MED:{stripe:"bg-warning",pill:"border border-warning/40 bg-warning-soft text-warning",label:"MED"},LOW:{stripe:"bg-critical",pill:"border border-critical/40 bg-critical-soft text-critical",label:"LOW"}},p={logprob:"LP",self_consistency:"SC",self_decl:"SD",judge:"JU"};function f({band:e,score:n,signal:i}){const r=(e||"").toUpperCase();if(!r||!a[r])return null;const s=a[r],o=typeof n=="number"?n.toFixed(2):null,l=i?p[i]??null:null;return t.jsxs("span",{className:"inline-flex shrink-0 items-center gap-1 rounded-full px-2 py-0.5 text-[10px] font-medium "+s.pill,children:[l&&t.jsxs("span",{className:"opacity-70",children:[l,":"]}),s.label,o&&t.jsx("span",{className:"opacity-70",children:o})]})}export{b as A,u as C,g as L,f as a};
