import{ai as e}from"./vendor-DDEFFs2r.js";import{j as t,yt as n}from"./index-BLJkTSn_.js";import{i as r,n as i,r as a,t as o}from"./tooltip-CBOAxNJM.js";var s=e(),c=5;function l({seeds:e,className:l}){if(!e||e.length===0)return null;let u=e.slice(0,c),d=Math.max(0,e.length-c),f=`Top seeds: ${e.map(e=>e.name).join(`, `)}`;return(0,s.jsx)(a,{children:(0,s.jsxs)(o,{children:[(0,s.jsx)(r,{render:e=>(0,s.jsxs)(`span`,{...e,tabIndex:0,role:`img`,"aria-label":f,"data-testid":`upcoming-seed-row`,className:n(`inline-flex cursor-default items-center gap-1 rounded-md px-1 py-0.5`,`focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--glk-brand)]`,l),children:[(0,s.jsx)(`span`,{className:`text-2xs font-semibold uppercase tracking-wide text-zinc-500 dark:text-zinc-400`,children:`Top seeds:`}),(0,s.jsx)(`span`,{className:`flex items-center -space-x-1`,children:u.map(e=>(0,s.jsx)(t,{name:e.name,slug:e.slug,abbreviation:e.abbreviation,logoUrl:e.logoUrl,size:`xs`,className:`ring-1 ring-white dark:ring-zinc-900`},e.id))}),d>0&&(0,s.jsxs)(`span`,{"data-testid":`upcoming-seed-row-overflow`,className:`ml-0.5 inline-flex items-center rounded-full bg-zinc-200/80 px-1 text-2xs font-bold leading-none text-zinc-600 dark:bg-zinc-800 dark:text-zinc-400`,children:[`+`,d]})]})}),(0,s.jsx)(i,{children:(0,s.jsxs)(`div`,{className:`text-xs`,children:[(0,s.jsx)(`p`,{className:`mb-1 font-semibold`,children:`Top seeds by Glicko`}),(0,s.jsx)(`ul`,{className:`space-y-0.5`,children:e.map(e=>(0,s.jsxs)(`li`,{className:`flex items-center justify-between gap-3 tabular-nums`,children:[(0,s.jsx)(`span`,{className:`truncate`,children:e.name}),(0,s.jsx)(`span`,{className:`font-mono text-zinc-300`,children:e.rating===null?`—`:Math.round(e.rating)})]},e.id))})]})})]})})}export{l as t};