1import{j as t}from"./radix-Cmq07x6K.js";import{e as l,L as a}from"./react-vendor-3Ku-1ERf.js";import{b as c,E as m,P as x}from"./PastContests-Clo05lVQ.js";import{A as d}from"./index-DNJkTYkI.js";import"./firebase-CPbFPgyj.js";import"./supabase-M27pd__B.js";import"./trophy-BK34h1Ql.js";import"./use-reduced-motion-Cn3Fng2H.js";import"./select-A5viTzpK.js";import"./chevron-up-CzPssOF-.js";import"./arrow-down-BenvG75o.js";import"./contestWinners-Dd2EqfIT.js";function y(){const{slug:s}=l(),{contests:r,loading:n,error:i}=c();if(n)return t.jsx("div",{role:"status","aria-label":"Loading contest",className:"flex min-h-screen items-center justify-center",children:t.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-t-2 border-b-2 border-illumigreen"})});const o=r.find(e=>e.contest.slug===s)??null;return t.jsxs("div",{className:"relative overflow-hidden pt-24 text-white",children:[t.jsx("div",{className:"mx-auto max-w-7xl px-4 pb-6 sm:px-6 lg:px-8",children:t.jsxs(a,{to:"/contest",className:"inline-flex items-center gap-2 text-sm text-white/60 hover:text-illumigreen",children:[t.jsx(d,{className:"h-4 w-4"}),"Back to contests"]})}),i?t.jsxs("div",{role:"alert",className:"py-24 text-center text-white/60",children:["Couldn't load this contest. ",i]}):o?t.jsx(m,{archived:o}):t.jsxs("div",{className:"py-24 text-center",children:[t.jsx("h1",{className:"font-grotesk text-2xl font-bold text-white",children:"Contest not found"}),t.jsx("p",{className:"mt-2 text-white/50",children:"It may still be running, or the link is wrong."})]}),t.jsx(x,{contests:r.filter(e=>e.contest.slug!==s)})]})}export{y 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.