1import{r as u,j as e,t as L}from"./react-vendor-Q2BSRknM.js";import{b5 as B,b6 as p,b7 as D,b8 as b,aV as j,b9 as l,ba as _}from"./index-CuraQpvj.js";import"./capacitor-DSpR9wll.js";import"./ui-radix-DzQ_orwq.js";import"./supabase-DoZmW4Yf.js";import"./lucide-DhlFjs1-.js";import"./query-BLOP9k_M.js";import"./date-utils-DaNoSKVa.js";function P({team1Name:t,team2Name:a,active:r=!0}){return u.useEffect(()=>{const c=document.documentElement;if(!r)return;const o=B(t,a);if(o)return c.style.setProperty("--bc-team-1",o.leftHsl),c.style.setProperty("--bc-team-2",o.rightHsl),()=>{c.style.removeProperty("--bc-team-1"),c.style.removeProperty("--bc-team-2")}},[t,a,r]),r?e.jsx("div",{className:"bc-ambient-room","aria-hidden":"true"}):null}function G(){const[t]=L(),a=t.get("live")!=="0",r=t.get("tick")!=="0",c=t.get("ambient")!=="0",o=t.get("t1")||"Los Angeles Mad Drops",N=t.get("t2")||"St. Louis Shock",i=u.useMemo(()=>[8,9,10,11],[]),[f,S]=u.useState(0);u.useEffect(()=>{if(!r){S(i.length-1);return}const s=setInterval(()=>S(n=>(n+1)%i.length),1600);return()=>clearInterval(s)},[r,i.length]);const m=i[f],x=Math.max(0,m-2),y=[{label:"Standard 2-0",games:[{team1Score:11,team2Score:4},{team1Score:11,team2Score:9}]},{label:"Three games",games:[{team1Score:11,team2Score:8},{team1Score:6,team2Score:11},{team1Score:11,team2Score:2}]},{label:"Shutout 11-0",games:[{team1Score:11,team2Score:0},{team1Score:11,team2Score:1}]},{label:"Overtime",games:[{team1Score:13,team2Score:11},{team1Score:11,team2Score:13},{team1Score:15,team2Score:13}]}],g=[{team1Score:11,team2Score:7},{team1Score:9,team2Score:11},{team1Score:11,team2Score:3},{team1Score:m,team2Score:x}],d={id:"bc-test-live",tournament:"Broadcast Chrome Test",round:"Semifinals",event:"Men's Doubles",team1:["Ben Johns","Gabe Tardio"],team2:["Federico Staksrud","Dylan Frazier"],games:[{team1Score:11,team2Score:8},{team1Score:9,team2Score:11}],current_game:{team1Score:m,team2Score:x},best_of:3,court:"Championship Court",status:"live",time:new Date().toISOString(),updated_at:new Date().toISOString(),details:{team1Seeds:[1],team2Seeds:[4]}},v={...d,id:"bc-test-done",status:"completed",round:"Final",games:[{team1Score:11,team2Score:0},{team1Score:11,team2Score:9}],current_game:void 0,details:{team1Seeds:[1],team2Seeds:[4],winner:1}},h={id:"bc-test-mlp-live",tournament:"MLP Newport",round:"First Round",event:"MD",team1:["Anna Bright","Dylan Frazier"],team2:["Parris Todd","JW Johnson"],games:[{team1Score:11,team2Score:7},{team1Score:9,team2Score:11}],current_game:{team1Score:m,team2Score:x},best_of:4,court:"Championship Court",status:"live",time:new Date().toISOString(),updated_at:new Date().toISOString(),team1_team_uuid:"demo-team-1",team2_team_uuid:"demo-team-2",details:{team1Seeds:[2],team2Seeds:[7],mlpTeam1:{team_uuid:"demo-team-1",team_title:"Los Angeles Mad Drops",team_abbreviation:"LAM"},mlpTeam2:{team_uuid:"demo-team-2",team_title:"St. Louis Shock",team_abbreviation:"STL"},mlpTeam1City:"Mad Drops",mlpTeam2City:"Shock",mlpGameLabels:["WD","MD","MXD A","DB"]}},M={...h,id:"bc-test-mlp-done",status:"completed",games:[{team1Score:11,team2Score:7},{team1Score:9,team2Score:11},{team1Score:11,team2Score:3},{team1Score:21,team2Score:15}],current_game:void 0,details:{...h.details,winner:1}};return e.jsxs("div",{className:"relative min-h-screen bg-background text-foreground",children:[c&&e.jsx(P,{team1Name:o,team2Name:N}),e.jsxs("div",{className:"relative max-w-3xl mx-auto px-4 py-8 space-y-8",children:[e.jsxs("header",{className:"space-y-1",children:[e.jsx("h1",{className:"bc-team text-2xl",children:"Broadcast Chrome · Score Test"}),e.jsxs("p",{className:"bc-label text-[10px] text-muted-foreground",children:["live=",String(a)," · tick=",String(r)," · ambient=",String(c)]})]}),e.jsxs("section",{className:"bc-surface bc-elev-2 bc-cut-tr p-5 space-y-4",children:[e.jsx("h2",{className:"bc-label text-[11px] text-muted-foreground",children:"Live vs static · big score"}),e.jsxs("div",{className:"flex items-end gap-10",children:[e.jsxs("div",{className:"space-y-1",children:[e.jsx(p,{score:m,isLive:a,className:"text-6xl"}),e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:"live treatment"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(p,{score:11,isLive:!1,className:"text-6xl"}),e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:"static · 11"})]}),e.jsxs("div",{className:"space-y-1",children:[e.jsx(p,{score:11,isLive:!0,className:"text-6xl"}),e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:"live · 11"})]})]})]}),e.jsxs("section",{className:"bc-surface bc-elev-2 p-5 space-y-4",children:[e.jsx("h2",{className:"bc-label text-[11px] text-muted-foreground",children:"Score cells"}),e.jsx("div",{className:"flex gap-2",children:[11,9,11,m].map((s,n)=>e.jsx(D,{score:s,isWinning:s>=11,isLive:a,isCurrentGame:n===3,className:"h-10 w-10"},n))})]}),e.jsxs("section",{className:"bc-surface bc-elev-2 p-5 space-y-5",children:[e.jsx("h2",{className:"bc-label text-[11px] text-muted-foreground",children:"Game history rows"}),y.map(s=>e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:s.label}),e.jsx(b,{games:s.games,isLive:!1})]},s.label)),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:"Live · game 4 in progress"}),e.jsx(b,{games:g,isLive:a,currentGameIndex:3})]}),e.jsxs("div",{className:"space-y-1.5",children:[e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:"MLP slot labels"}),e.jsx(b,{games:g,isLive:a,currentGameIndex:3,gameLabels:["WD","MD","MXD A","DB"]})]})]}),e.jsxs("section",{className:"space-y-3",children:[e.jsx("h2",{className:"bc-label text-[11px] text-muted-foreground",children:"Real match cards"}),e.jsxs("div",{className:"space-y-3",children:[e.jsx(j,{match:d,currentTheme:"default",hideBell:!0,hideFanVote:!0}),e.jsx(j,{match:v,currentTheme:"default",hideBell:!0,hideFanVote:!0})]})]}),e.jsxs("section",{className:"space-y-6",children:[e.jsx("h2",{className:"bc-label text-[11px] text-muted-foreground",children:"pbtv scorecard (V2) · avatars on the colored top border"}),e.jsxs("div",{className:"space-y-2 pt-4",children:[e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:"PPA · live · seeds + stakes badge"}),e.jsx(l,{match:d,hideBell:!0,hideFanVote:!0,h2hCount:7,topBadge:e.jsx(_,{stakes:{tag:"revenge_match",label:"Revenge Match",payload:{team1:["Ben Johns"],team2:["Federico Staksrud"]}}})})]}),e.jsxs("div",{className:"space-y-2 pt-4",children:[e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:"PPA · completed · upset + rivalry badges"}),e.jsx(l,{match:{...v,_isUpset:!0},hideBell:!0,hideFanVote:!0,h2hCount:9})]}),e.jsxs("div",{className:"space-y-2 pt-4",children:[e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:"MLP · live · team logos on the border"}),e.jsx(l,{match:h,hideBell:!0,hideFanVote:!0})]}),e.jsxs("div",{className:"space-y-2 pt-4",children:[e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:"MLP · completed · DreamBreaker"}),e.jsx(l,{match:M,hideBell:!0,hideFanVote:!0})]}),e.jsxs("div",{className:"space-y-2 pt-4",children:[e.jsx("div",{className:"bc-label text-[9px] text-muted-foreground",children:"PPA · upcoming"}),e.jsx(l,{match:{...d,id:"bc-test-up",status:"upcoming",games:[],current_game:void 0},hideBell:!0,hideFanVote:!0})]})]})]})]})}export{G 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.