import { e as escape_html, a as ensure_array_like, b as attr, s as stringify, c as attr_class } from "../../../chunks/index3.js"; function _page($$renderer, $$props) { $$renderer.component(($$renderer2) => { let { data } = $$props; const stateConfig = { CREATED: { label: "Created", color: "text-text-secondary" }, LOBBY: { label: "In Lobby", color: "text-yellow-400" }, ROLLING: { label: "Rolling", color: "text-yellow-400", dot: "bg-yellow-400" }, PICKING: { label: "Picking", color: "text-blue-400", dot: "bg-blue-400" }, PLAYING: { label: "Live", color: "text-green-400", dot: "bg-green-400" }, FINISHED: { label: "Finished", color: "text-text-secondary" }, CANCELLED: { label: "Cancelled", color: "text-red-400" } }; let queueLoading = false; function timeAgo(date) { const d = new Date(date); const diff = Date.now() - d.getTime(); const mins = Math.floor(diff / 6e4); if (mins < 1) return "just now"; if (mins < 60) return `${mins}m ago`; const hours = Math.floor(mins / 60); if (hours < 24) return `${hours}h ago`; const days = Math.floor(hours / 24); return `${days}d ago`; } if (!data.user) { $$renderer2.push(""); $$renderer2.push(`
Automated tournament match management for osu! — lobbies, mappools, picks, bans, and ELO tracking all in one place.
Sign in with osu!Uses your osu! account. No extra registration needed.
Automated esports match management for osu!
${escape_html(data.stats.matches)}
Total Matches
${escape_html(data.stats.finished)}
Completed
${escape_html(data.stats.teams)}
Teams
${escape_html(data.stats.mappools)}
Mappools
Find a match at your skill level
${escape_html(m.name ? `${m.name} · ` : "")}BO${escape_html(config.bestOf)} · ${escape_html(timeAgo(m.finishedAt ?? m.createdAt))}
No matches yet. Create one