1import{d as f,u as h,r as l,o as V,a as N,c as s,t as d,b as a,e as $,F as g,f as b,g as p,h as t,_ as w}from"./index-Bm4GpDNS.js";const C={class:"vkiosk"},T={key:0,class:"center muted"},x={key:1,class:"center error"},B={key:2,class:"center picker"},E={key:0,class:"venue"},P={key:1,class:"list"},z=["onClick"],I={class:"nm"},L={key:0,class:"live"},R={key:1,class:"chev"},A={key:2,class:"muted small"},F=f({__name:"VenueKioskPickerView",setup(K){const _="https://one0use-api.onrender.com/api",m=h(),v=N(),i=m.params.token,k=l(!0),r=l(""),c=l(""),n=l([]);function y(o){v.push(`/score/venue/${i}/court/${o.id}`)}return V(async()=>{try{const o=await fetch(`${_}/score/venue/${i}/courts/`);if(o.status===404){r.value="Neplatný odkaz na Å¡portovisko.";return}if(!o.ok)throw new Error(`HTTP ${o.status}`);const e=await o.json();if(c.value=e.venue_name||"",n.value=e.courts||[],n.value.length===1){v.replace(`/score/venue/${i}/court/${n.value[0].id}`);return}}catch{r.value="Nepodarilo sa naÄÃtaÅ¥ kurty â skús znova."}finally{k.value=!1}}),(o,e)=>(t(),s("div",C,[k.value?(t(),s("div",T,"NaÄÃtavamâ¦")):r.value?(t(),s("div",x,d(r.value),1)):(t(),s("div",B,[e[1]||(e[1]=a("div",{class:"orb"},"ð¾",-1)),c.value?(t(),s("p",E,d(c.value),1)):$("",!0),e[2]||(e[2]=a("p",{class:"title"},"Vyber kurt",-1)),e[3]||(e[3]=a("p",{class:"muted small"},"Na ktorom kurte sa bude hraÅ¥?",-1)),n.value.length?(t(),s("div",P,[(t(!0),s(g,null,b(n.value,u=>(t(),s("button",{key:u.id,class:"court",onClick:S=>y(u)},[a("span",I,d(u.name),1),u.is_live?(t(),s("span",L,[...e[0]||(e[0]=[a("span",{class:"dot"},null,-1),p("LIVE",-1)])])):(t(),s("span",R,"âº"))],8,z))),128))])):(t(),s("p",A,"Toto Å¡portovisko zatiaľ nemá kurty.")),e[4]||(e[4]=a("div",{class:"brand"},[p("tenuse"),a("span",null,".")],-1))]))]))}}),D=w(F,[["__scopeId","data-v-06aeed27"]]);export{D 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.