1import{d as f,r as i,o as v,p,c as d,K as _,e as h,t as b,u as g,h as r,_ as y}from"./index-Bm4GpDNS.js";import{E as k}from"./EmbedLeagueContent-pprA5YuU.js";const w={class:"embed-root"},E={key:0,class:"embed-loading"},L={key:1,class:"embed-error"},I=f({__name:"EmbedLeagueView",setup(j){const m=g(),l=i(null),u=i(!0),t=i("");async function c(a=!1){const s=m.params.id;try{const n=await fetch(`https://one0use-api.onrender.com/api/embed/leagues/${s}/`);if(n.status===404){a&&(t.value="Liga nie je verejne dostupná. Organizátor musà povoliÅ¥ embed v admin sekcii.");return}if(!n.ok)throw new Error(`HTTP ${n.status}`);l.value=await n.json(),t.value=""}catch(o){a&&(t.value=o?.message||"NaÄÃtanie zlyhalo.")}finally{a&&(u.value=!1)}}let e=null;return v(async()=>{await c(!0);const a=3e4,s=()=>{e||(e=setInterval(()=>c(!1),a))},o=()=>{e&&(clearInterval(e),e=null)};document.addEventListener("visibilitychange",()=>{document.hidden?o():(c(!1),s())}),document.hidden||s()}),p(()=>{e&&clearInterval(e)}),(a,s)=>(r(),d("div",w,[u.value?(r(),d("div",E,"NaÄÃtavamâ¦")):t.value?(r(),d("div",L,b(t.value),1)):l.value?(r(),_(k,{key:2,data:l.value},null,8,["data"])):h("",!0)]))}}),C=y(I,[["__scopeId","data-v-e172681a"]]);export{C 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.