1import{t as e}from"./jsx-runtime-DGeXAQPT.js";import{t}from"./link-D9bhSU6-.js";import{t as n}from"./useSuspenseQuery-BETqHTdD.js";import{t as r}from"./section-news-ksLCNOGY.js";import{t as i}from"./table-properties-CBAu-Zwz.js";import{u as a}from"./site-C3ymD5eI.js";import{Gt as o,at as s,it as c,y as l}from"./index-BH5QQKBh.js";import{n as u,t as d}from"./section-heading-D0qd31QE.js";var f=e();function p(){let{data:e}=n(s),{data:p}=n(c),{quadro:m}=l.useSearch(),h=o({from:l.fullPath}),g=p.find(e=>e.featured)??p[0],_=p.find(e=>e.slug===m)?.slug??g?.slug??``,v=p.find(e=>e.slug===_),y=e.filter(e=>e.event_slug===_).sort((e,t)=>t.gold-e.gold||t.silver-e.silver||t.bronze-e.bronze||a(t)-a(e));return(0,f.jsxs)(`div`,{className:`mx-auto max-w-4xl space-y-6 px-4 py-8 sm:px-6`,children:[(0,f.jsx)(u,{kicker:`Resultados`,title:`Quadro de medalhas`,description:`Classificação por paÃs, ordenada por ouro, prata e bronze. Selecione o evento para ver o quadro.`}),(0,f.jsxs)(t,{to:`/tabelas-de-campeonatos`,className:`inline-flex items-center gap-1.5 font-display text-sm font-bold text-primary hover:text-gold`,children:[`Ver tabelas de campeonatos `,(0,f.jsx)(i,{className:`h-4 w-4`})]}),p.length===0?(0,f.jsx)(d,{message:`Nenhum quadro de medalhas disponÃvel no momento.`}):(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:p.map(e=>(0,f.jsx)(`button`,{type:`button`,onClick:()=>h({search:t=>({...t,quadro:e.slug})}),className:`rounded-full px-4 py-2 font-display text-sm font-semibold transition-colors ${e.slug===_?`bg-primary text-primary-foreground`:`border border-border bg-card text-muted-foreground hover:text-gold`}`,children:e.label},e.slug))}),v?(0,f.jsx)(`h2`,{className:`font-display text-lg font-bold`,children:v.name}):null,(0,f.jsx)(`div`,{className:`overflow-x-auto rounded-2xl border border-border bg-card`,children:(0,f.jsxs)(`table`,{className:`w-full min-w-125 text-sm`,children:[(0,f.jsx)(`thead`,{className:`bg-muted/50 text-xs text-muted-foreground`,children:(0,f.jsxs)(`tr`,{children:[(0,f.jsx)(`th`,{className:`px-4 py-3 text-left font-semibold`,children:`#`}),(0,f.jsx)(`th`,{className:`px-4 py-3 text-left font-semibold`,children:`PaÃs`}),(0,f.jsx)(`th`,{className:`px-4 py-3 text-center font-semibold`,children:`ð¥`}),(0,f.jsx)(`th`,{className:`px-4 py-3 text-center font-semibold`,children:`ð¥`}),(0,f.jsx)(`th`,{className:`px-4 py-3 text-center font-semibold`,children:`ð¥`}),(0,f.jsx)(`th`,{className:`px-4 py-3 text-right font-semibold`,children:`Total`})]})}),(0,f.jsx)(`tbody`,{children:y.map((e,t)=>(0,f.jsxs)(`tr`,{className:`border-t border-border ${e.country_code===`BRA`?`bg-brasil/10`:``}`,children:[(0,f.jsx)(`td`,{className:`px-4 py-3 tabular-nums text-muted-foreground`,children:t+1}),(0,f.jsxs)(`td`,{className:`px-4 py-3 font-semibold`,children:[e.country,(0,f.jsx)(`span`,{className:`ml-2 text-xs text-muted-foreground`,children:e.country_code})]}),(0,f.jsx)(`td`,{className:`px-4 py-3 text-center tabular-nums`,children:e.gold}),(0,f.jsx)(`td`,{className:`px-4 py-3 text-center tabular-nums`,children:e.silver}),(0,f.jsx)(`td`,{className:`px-4 py-3 text-center tabular-nums`,children:e.bronze}),(0,f.jsx)(`td`,{className:`px-4 py-3 text-right font-bold tabular-nums`,children:a(e)})]},e.id))})]})})]}),(0,f.jsx)(r,{title:`NotÃcias das medalhas`,description:`Repercussão dos pódios e da campanha brasileira.`})]})}export{p as component};
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.