1import{_ as b}from"./Kw4JKcMK.js";import{_ as p,o as e,c as t,a as l,B as f,F as h,w as y,n as k,f as g,e as o,b as x,h as N}from"./BdFqHcNj.js";import"./M97w3aGm.js";const F={components:{LiveScoreTimetableItem:b},props:{onlyNotFinished:{type:Boolean,default:!1},sport:{type:String,required:!0},league:{type:Number,required:!0},season:{type:String,required:!0},startdate:{type:String,required:!0}},data(){return{fixtures:null}},computed:{groupedFixtures(){if(!this.fixtures||this.league!=="1"||this.season!=="2026")return null;const n={};return this.fixtures.forEach((i,r)=>{if(!this.onlyNotFinished||r===this.scrollTo||i.status!=="FT"){const _=this.$dayjs.unix(i.fixture.timestamp).format("YYYY. MMMM D. (dddd)");n[_]||(n[_]=[]),n[_].push({...i,index:r})}}),n},firstNotFinished(){let n=0;for(const i of this.fixtures){if(!["FT","AET","PEN"].includes(i.fixture.status.short))break;n++}return n},scrollTo(){let n=0,i=-1;for(const r of this.fixtures){if(!["FT","AET","PEN"].includes(r.fixture.status.short)){i=n+(r.fixture.status.short==="NS"?-1:0);break}n++}return this.fixtures.length-1!==i?i:-1}},async mounted(){this.fixtures=await this.$liveScoreRepository.getFixturesAll(this.sport,this.league,this.season,this.startdate),this.$props.onlyNotFinished||this.$nextTick(()=>{setTimeout(()=>{document.getElementById("most").scrollIntoView({behavior:"smooth"})},500)})}},T={class:"soccer-box--header"},v={class:"soccer-box--header__logo"},S=["src","alt"],E={class:"soccer-box__content"},j={class:"soccer-box--subheader"},B={class:"soccer-box--list"},C=["id"],z={key:1,class:"soccer-box--list"},q=["id"],D={key:0,class:"soccer-box--subheader"},M={key:0},V={key:1},Y={key:2},w={key:3},A={key:4},I={key:5},L={key:6},P={key:7},O={key:1,class:"soccer-box--subheader"},R={key:0},G={key:1},H={key:2},J={key:3},K={key:4},Q={key:5},U={key:6};function W(n,i,r,_,d,a){const m=b;return d.fixtures?(e(),t("div",{key:0,class:k(["soccer-box soccer-box--timetable",[{"soccer-box--eb24":r.league===4&&r.season==="2024"},{"soccer-box--vb26":r.league==="1"&&r.season==="2026"}]]),style:N(r.onlyNotFinished?"margin-top: 0;":"")},[l("div",T,[l("div",v,[l("img",{src:d.fixtures[0].league.logo,alt:d.fixtures[0].league.name,loading:"lazy",height:"30"},null,8,S),l("span",null,f(d.fixtures[0].league.name),1)])]),l("div",E,[r.league==="1"&&r.season==="2026"?(e(!0),t(h,{key:0},y(a.groupedFixtures,(c,s)=>(e(),t("div",{key:s,class:"soccer-box--timetable__day"},[l("div",j,[l("span",null,f(s),1)]),l("ul",B,[(e(!0),t(h,null,y(c,u=>(e(),t("li",{id:u.index===a.scrollTo&&a.scrollTo!==-1?"most":null,key:u.fixture.id,class:k([{"soccer-box--disabled":u.status==="NS"&&!r.onlyNotFinished,"soccer-box--current":u.index===a.firstNotFinished}])},[g(m,{index:u.index+1,fixture:u},null,8,["index","fixture"])],10,C))),128))])]))),128)):(e(),t("ul",z,[(e(!0),t(h,null,y(d.fixtures,(c,s)=>(e(),t(h,null,[!r.onlyNotFinished||s===a.scrollTo||c.status!=="FT"?(e(),t("li",{id:s===a.scrollTo&&a.scrollTo!==-1?"most":null,key:c.fixture.id,class:k([{"soccer-box--disabled":c.status==="NS"&&!r.onlyNotFinished,"soccer-box--current":s===a.firstNotFinished}])},[c.league.id===1&&r.season==="2022"&&[0,16,32,48,56,60,62,63].includes(s)?(e(),t("div",D,[s===0?(e(),t("span",M,"Csoportkör 3/1. játéknap")):o("",!0),s===16?(e(),t("span",V,"Csoportkör 3/2. játéknap")):o("",!0),s===32?(e(),t("span",Y,"Csoportkör 3/3. játéknap")):o("",!0),s===48?(e(),t("span",w,"NyolcaddöntÅ")):o("",!0),s===56?(e(),t("span",A,"NegyeddöntÅ")):o("",!0),s===60?(e(),t("span",I,"ElÅdöntÅ")):o("",!0),s===62?(e(),t("span",L,"BronzmérkÅzés")):o("",!0),s===63?(e(),t("span",P,"DöntÅ")):o("",!0)])):o("",!0),c.league.id===4&&[0,12,24,36,44,48,50].includes(s)?(e(),t("div",O,[s===0?(e(),t("span",R,"Csoportkör 3/1. játéknap")):o("",!0),s===12?(e(),t("span",G,"Csoportkör 3/2. játéknap")):o("",!0),s===24?(e(),t("span",H,"Csoportkör 3/3. játéknap")):o("",!0),s===36?(e(),t("span",J,"NyolcaddöntÅ")):o("",!0),s===44?(e(),t("span",K,"NegyeddöntÅ")):o("",!0),s===48?(e(),t("span",Q,"ElÅdöntÅ")):o("",!0),s===50?(e(),t("span",U,"DöntÅ")):o("",!0)])):o("",!0),(e(),x(m,{key:c.fixture.id,index:s+1,fixture:c},null,8,["index","fixture"]))],10,q)):o("",!0)],64))),256))]))])],6)):o("",!0)}const ee=Object.assign(p(F,[["render",W]]),{__name:"LiveScoreTimetable"});export{ee 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.