1import{j as e}from"./vendor-ui-x7D0iLe8.js";import{O as h,P as g,Q as j,c as r,V as N}from"./index-CgmaCIwJ.js";import{g as x,S as c,A as v,f as y}from"./score-band-DmdY1aX0.js";import{s as d}from"./score-color-DxC8smtR.js";import{I as C}from"./info-DbpO-xdP.js";const S={sm:{score:"text-base",band:"text-[10px]",suffix:"text-[10px]"},md:{score:"text-xl",band:"text-xs",suffix:"text-xs"},lg:{score:"text-3xl",band:"text-sm",suffix:"text-xs"}},k=({score:s,percentile:o,cohortLabel:a="comparable pairings",hideSuffix:m=!1,showBandInline:p=!0,scoreClassName:f,className:u,size:b="md"})=>{const t=Math.round(s),n=x(t),l=y(t,o,a),i=S[b];return e.jsx(h,{delayDuration:150,children:e.jsxs(g,{children:[e.jsx(j,{asChild:!0,children:e.jsxs("span",{className:r("inline-flex items-baseline gap-1.5 cursor-help font-body",u),"aria-label":`Compatibility ${t} out of 100 â ${n.label}`,children:[e.jsx("span",{className:r("font-display font-bold leading-none",i.score,d(t),f),children:t}),!m&&e.jsx("span",{className:r("text-muted-foreground",i.suffix),children:"/100"}),p&&e.jsx("span",{className:r("ml-1 uppercase tracking-wider font-semibold",i.band,d(t)),children:n.label}),e.jsx(C,{className:"h-3 w-3 text-muted-foreground self-center","aria-hidden":"true"})]})}),e.jsxs(N,{side:"bottom",align:"center",className:"max-w-xs space-y-2 p-3",children:[e.jsxs("div",{children:[e.jsxs("div",{className:"font-display text-sm font-bold",children:[t," â ",n.label]}),e.jsx("div",{className:"text-xs text-muted-foreground mt-0.5",children:n.meaning})]}),e.jsxs("div",{className:"text-xs",children:[e.jsx("span",{className:"font-semibold",children:"Recommended approach: "}),e.jsx("span",{className:"text-muted-foreground",children:n.recommendation})]}),e.jsx("div",{className:"text-xs text-muted-foreground italic",children:n.anchor}),l&&e.jsx("div",{className:"text-xs font-semibold text-foreground",children:l}),e.jsx("div",{className:"text-[10px] text-muted-foreground/80 border-t border-border pt-1.5",children:c})]})]})})},A=({score:s,className:o})=>{const a=x(s);return e.jsx("span",{className:r("inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-body font-semibold uppercase tracking-wider","bg-muted/40",d(s),o),"aria-label":`${a.label} â ${a.meaning}`,title:a.meaning,children:a.label})},E=()=>e.jsxs("div",{className:"space-y-2",children:[v.map(s=>e.jsxs("div",{className:"flex items-start gap-3 text-sm",children:[e.jsxs("span",{className:"font-mono text-xs text-muted-foreground w-16 flex-shrink-0 pt-0.5",children:[s.min,"â",s.max]}),e.jsxs("div",{children:[e.jsx("div",{className:"font-semibold font-body",children:s.label}),e.jsx("div",{className:"text-xs text-muted-foreground",children:s.meaning})]})]},s.key)),e.jsx("p",{className:"text-xs text-muted-foreground italic pt-2 border-t border-border",children:c})]});export{A as C,E as S,k as a};
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.