1import{aQ as m,q as i,v as l,e as p,aA as _,r as d,p as f,aR as v,aS as y,c as k,f as S,o as R,au as b}from"./CfZATXwp.js";import{u as h}from"./DPR3r-rj.js";import"./DbMvLqlF.js";const N=m({__name:"lobby",setup(x){const o=i(),{userInfo:r}=l(),s=p("tournament"),a=h(),c=_(),u=d(!1);return f(async()=>{var e,n,t;if(!(!((e=o.value)!=null&&e.uid)||!((n=s.value)!=null&&n.tournamentID)))try{a.isConnected||await a.connect(s.value.tournamentID,o.value.uid,((t=r.value)==null?void 0:t.userName)||"Anonymous"),u.value=!0,v("socketReady",u)}catch{}}),y(e=>{e.path.includes(`/${c.params.tournament_name}/lobby`)||a.disconnect()}),(e,n)=>{const t=b;return R(),k("div",null,[S(t)])}}});export{N 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.