@golstats/gsc-landing 1.0.173 → 1.0.174

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@
25
25
  * Vue 3 Carousel 0.3.3
26
26
  * (c) 2024
27
27
  * @license MIT
28
- */const je={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Ih={itemsToShow:{default:je.itemsToShow,type:Number},itemsToScroll:{default:je.itemsToScroll,type:Number},wrapAround:{default:je.wrapAround,type:Boolean},throttle:{default:je.throttle,type:Number},snapAlign:{default:je.snapAlign,validator(s){return["start","end","center","center-even","center-odd"].includes(s)}},transition:{default:je.transition,type:Number},breakpoints:{default:je.breakpoints,type:Object},autoplay:{default:je.autoplay,type:Number},pauseAutoplayOnHover:{default:je.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:je.mouseDrag,type:Boolean},touchDrag:{default:je.touchDrag,type:Boolean},dir:{default:je.dir,validator(s){return["rtl","ltr"].includes(s)}},i18n:{default:je.i18n,type:Object},settings:{default(){return{}},type:Object}};function Fk({config:s,slidesCount:e}){const{snapAlign:t,wrapAround:a,itemsToShow:i=1}=s;if(a)return Math.max(e-1,0);let o;switch(t){case"start":o=e-i;break;case"end":o=e-1;break;case"center":case"center-odd":o=e-Math.ceil((i-.5)/2);break;case"center-even":o=e-Math.ceil(i/2);break;default:o=0;break}return Math.max(o,0)}function Mk({config:s,slidesCount:e}){const{wrapAround:t,snapAlign:a,itemsToShow:i=1}=s;let o=0;if(t||i>e)return o;switch(a){case"start":o=0;break;case"end":o=i-1;break;case"center":case"center-odd":o=Math.floor((i-1)/2);break;case"center-even":o=Math.floor((i-2)/2);break;default:o=0;break}return o}function Fo({val:s,max:e,min:t}){return e<t?s:Math.min(Math.max(s,t),e)}function Vk({config:s,currentSlide:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:o=1}=s;let r=e;switch(a){case"center":case"center-odd":r-=(o-1)/2;break;case"center-even":r-=(o-2)/2;break;case"end":r-=o-1;break}return i?r:Fo({val:r,max:t-o,min:0})}function Rh(s){return s?s.reduce((e,t)=>{var a;return t.type===n.Fragment?[...e,...Rh(t.children)]:((a=t.type)===null||a===void 0?void 0:a.name)==="CarouselSlide"?[...e,t]:e},[]):[]}function Mo({val:s,max:e,min:t=0}){return s>e?Mo({val:s-(e+1),max:e,min:t}):s<t?Mo({val:s+(e+1),max:e,min:t}):s}function $k(s,e){let t;return e?function(...a){const i=this;t||(s.apply(i,a),t=!0,setTimeout(()=>t=!1,e))}:s}function zk(s,e){let t;return function(...a){t&&clearTimeout(t),t=setTimeout(()=>{s(...a),t=null},e)}}function Uk(s="",e={}){return Object.entries(e).reduce((t,[a,i])=>t.replace(`{${a}}`,String(i)),s)}var Gk=n.defineComponent({name:"ARIA",setup(){const s=n.inject("config",n.reactive(Object.assign({},je))),e=n.inject("currentSlide",n.ref(0)),t=n.inject("slidesCount",n.ref(0));return()=>n.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Uk(s.i18n.itemXofY,{currentSlide:e.value+1,slidesCount:t.value}))}}),jk=n.defineComponent({name:"Carousel",props:Ih,setup(s,{slots:e,emit:t,expose:a}){var i;const o=n.ref(null),r=n.ref([]),l=n.ref(0),d=n.ref(0),c=n.reactive(Object.assign({},je));let h=Object.assign({},je),u;const f=n.ref((i=s.modelValue)!==null&&i!==void 0?i:0),p=n.ref(0),m=n.ref(0),g=n.ref(0),y=n.ref(0);let b,S;n.provide("config",c),n.provide("slidesCount",d),n.provide("currentSlide",f),n.provide("maxSlide",g),n.provide("minSlide",y),n.provide("slideWidth",l);function w(){u=Object.assign({},s.breakpoints),h=Object.assign(Object.assign(Object.assign({},h),s),{i18n:Object.assign(Object.assign({},h.i18n),s.i18n),breakpoints:void 0}),E(h)}function x(){if(!u||!Object.keys(u).length)return;const C=Object.keys(u).map(U=>Number(U)).sort((U,M)=>+M-+U);let H=Object.assign({},h);C.some(U=>{const M=window.matchMedia(`(min-width: ${U}px)`).matches;return M&&(H=Object.assign(Object.assign({},H),u[U])),M}),E(H)}function E(C){Object.entries(C).forEach(([H,U])=>c[H]=U)}const v=zk(()=>{x(),B(),T()},16);function T(){if(!o.value)return;const C=o.value.getBoundingClientRect();l.value=C.width/c.itemsToShow}function B(){d.value<=0||(m.value=Math.ceil((d.value-1)/2),g.value=Fk({config:c,slidesCount:d.value}),y.value=Mk({config:c,slidesCount:d.value}),c.wrapAround||(f.value=Fo({val:f.value,max:g.value,min:y.value})))}n.onMounted(()=>{n.nextTick(()=>T()),setTimeout(()=>T(),1e3),x(),Y(),window.addEventListener("resize",v,{passive:!0}),t("init")}),n.onUnmounted(()=>{S&&clearTimeout(S),b&&clearInterval(b),window.removeEventListener("resize",v,{passive:!0})});let L=!1;const R={x:0,y:0},V={x:0,y:0},q=n.reactive({x:0,y:0}),j=n.ref(!1),ae=n.ref(!1),oe=()=>{j.value=!0},ie=()=>{j.value=!1};function ce(C){["INPUT","TEXTAREA","SELECT"].includes(C.target.tagName)||(L=C.type==="touchstart",L||C.preventDefault(),!(!L&&C.button!==0||X.value)&&(R.x=L?C.touches[0].clientX:C.clientX,R.y=L?C.touches[0].clientY:C.clientY,document.addEventListener(L?"touchmove":"mousemove",de,!0),document.addEventListener(L?"touchend":"mouseup",Q,!0)))}const de=$k(C=>{ae.value=!0,V.x=L?C.touches[0].clientX:C.clientX,V.y=L?C.touches[0].clientY:C.clientY;const H=V.x-R.x,U=V.y-R.y;q.y=U,q.x=H},c.throttle);function Q(){const C=c.dir==="rtl"?-1:1,H=Math.sign(q.x)*.4,U=Math.round(q.x/l.value+H)*C;if(U&&!L){const M=J=>{window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}Z(f.value-U),q.x=0,q.y=0,ae.value=!1,document.removeEventListener(L?"touchmove":"mousemove",de,!0),document.removeEventListener(L?"touchend":"mouseup",Q,!0)}function Y(){!c.autoplay||c.autoplay<=0||(b=setInterval(()=>{c.pauseAutoplayOnHover&&j.value||ue()},c.autoplay))}function he(){b&&(clearInterval(b),b=null),Y()}const X=n.ref(!1);function Z(C){const H=c.wrapAround?C:Fo({val:C,max:g.value,min:y.value});f.value===H||X.value||(t("slide-start",{slidingToIndex:C,currentSlideIndex:f.value,prevSlideIndex:p.value,slidesCount:d.value}),X.value=!0,p.value=f.value,f.value=H,S=setTimeout(()=>{if(c.wrapAround){const U=Mo({val:H,max:g.value,min:0});U!==f.value&&(f.value=U,t("loop",{currentSlideIndex:f.value,slidingToIndex:C}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:p.value,slidesCount:d.value}),X.value=!1,he()},c.transition))}function ue(){Z(f.value+c.itemsToScroll)}function ye(){Z(f.value-c.itemsToScroll)}const Ce={slideTo:Z,next:ue,prev:ye};n.provide("nav",Ce),n.provide("isSliding",X);const se=n.computed(()=>Vk({config:c,currentSlide:f.value,slidesCount:d.value}));n.provide("slidesToScroll",se);const Ee=n.computed(()=>{const C=c.dir==="rtl"?-1:1,H=se.value*l.value*C;return{transform:`translateX(${q.x-H}px)`,transition:`${X.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${d.value*l.value}px`:"",width:"100%"}});function Te(){w(),x(),B(),T(),he()}Object.keys(Ih).forEach(C=>{["modelValue"].includes(C)||n.watch(()=>s[C],Te)}),n.watch(()=>s.modelValue,C=>{C!==f.value&&Z(Number(C))}),n.watch(d,B),t("before-init"),w();const Oe={config:c,slidesCount:d,slideWidth:l,next:ue,prev:ye,slideTo:Z,currentSlide:f,maxSlide:g,minSlide:y,middleSlide:m};a({updateBreakpointsConfigs:x,updateSlidesData:B,updateSlideWidth:T,initDefaultConfigs:w,restartCarousel:Te,slideTo:Z,next:ue,prev:ye,nav:Ce,data:Oe});const et=e.default||e.slides,it=e.addons,ot=n.reactive(Oe);return()=>{const C=Rh(et==null?void 0:et(ot)),H=(it==null?void 0:it(ot))||[];C.forEach((G,z)=>G.props.index=z);let U=C;if(c.wrapAround){const G=C.map((K,W)=>n.cloneVNode(K,{index:-C.length+W,isClone:!0,key:`clone-before-${W}`})),z=C.map((K,W)=>n.cloneVNode(K,{index:C.length+W,isClone:!0,key:`clone-after-${W}`}));U=[...G,...C,...z]}r.value=C,d.value=Math.max(C.length,1);const M=n.h("ol",{class:"carousel__track",style:Ee.value,onMousedownCapture:c.mouseDrag?ce:null,onTouchstartPassiveCapture:c.touchDrag?ce:null},U),J=n.h("div",{class:"carousel__viewport"},M);return n.h("section",{ref:o,class:{carousel:!0,"is-sliding":X.value,"is-dragging":ae.value,"is-hover":j.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:oe,onMouseleave:ie},[J,H,n.h(Gk)])}}}),Vo;(function(s){s.arrowUp="arrowUp",s.arrowDown="arrowDown",s.arrowRight="arrowRight",s.arrowLeft="arrowLeft"})(Vo||(Vo={}));const Hk={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function Wk(s){return s in Vo}const $o=s=>{const e=n.inject("config",n.reactive(Object.assign({},je))),t=String(s.name),a=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!Wk(t))return;const i=Hk[t],o=n.h("path",{d:i}),r=e.i18n[a]||s.title||t,l=n.h("title",r);return n.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,o])};$o.props={name:String,title:String};const Kk=(s,{slots:e,attrs:t})=>{const{next:a,prev:i}=e||{},o=n.inject("config",n.reactive(Object.assign({},je))),r=n.inject("maxSlide",n.ref(1)),l=n.inject("minSlide",n.ref(1)),d=n.inject("currentSlide",n.ref(1)),c=n.inject("nav",{}),{dir:h,wrapAround:u,i18n:f}=o,p=h==="rtl",m=n.h("button",{type:"button",class:["carousel__prev",!u&&d.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(i==null?void 0:i())||n.h($o,{name:p?"arrowRight":"arrowLeft"})),g=n.h("button",{type:"button",class:["carousel__next",!u&&d.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(a==null?void 0:a())||n.h($o,{name:p?"arrowLeft":"arrowRight"}));return[m,g]};var qk=n.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(s,{slots:e}){const t=n.inject("config",n.reactive(Object.assign({},je))),a=n.inject("currentSlide",n.ref(0)),i=n.inject("slidesToScroll",n.ref(0)),o=n.inject("isSliding",n.ref(!1)),r=n.computed(()=>s.index===a.value),l=n.computed(()=>s.index===a.value-1),d=n.computed(()=>s.index===a.value+1),c=n.computed(()=>{const h=Math.floor(i.value),u=Math.ceil(i.value+t.itemsToShow-1);return s.index>=h&&s.index<=u});return()=>{var h;return n.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":s.isClone,"carousel__slide--visible":c.value,"carousel__slide--active":r.value,"carousel__slide--prev":l.value,"carousel__slide--next":d.value,"carousel__slide--sliding":o.value},"aria-hidden":!c.value},(h=e.default)===null||h===void 0?void 0:h.call(e,{isActive:r.value,isClone:s.isClone,isPrev:l.value,isNext:d.value,isSliding:o.value,isVisible:c.value}))}}});const Lt=(s,e)=>{const t=s.__vccOpts||s;for(const[a,i]of e)t[a]=i;return t},Bh=s=>(n.pushScopeId("data-v-15f082dd"),s=s(),n.popScopeId(),s),Yk={key:1,class:"match-day__live"},Jk=Bh(()=>n.createElementVNode("div",{class:"match-day__live__bullet"},null,-1)),Xk=Bh(()=>n.createElementVNode("div",{class:"match-day__live__text"},"LIVE",-1)),Zk=[Jk,Xk],Qk={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(s,{emit:e}){const t=s,a=n.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),i=n.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),o=n.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){e("click-match-day",l)}return(l,d)=>(n.openBlock(),n.createElementBlock("div",{class:"match-day",style:n.normalizeStyle({...a.value}),onClick:d[0]||(d[0]=c=>r(s.matchDay))},[n.createElementVNode("div",{class:"match-day__value",style:n.normalizeStyle(i.value)},n.toDisplayString(s.matchDay.valueText),5),!Number.isNaN(s.matchDay.value)&&!s.matchDay.liveGamesIds.size?(n.openBlock(),n.createElementBlock("div",{key:0,class:"match-day__text",style:n.normalizeStyle([s.isLandingMode?"margin-top:3px":"margin-top:4px",o.value])},n.toDisplayString(s.isLandingMode||s.componentWidth<=425?"JOR":"JORNADA"),5)):s.matchDay.liveGamesIds.size?(n.openBlock(),n.createElementBlock("div",Yk,Zk)):n.createCommentVNode("",!0)],4))}},eE=Lt(Qk,[["__scopeId","data-v-15f082dd"]]),tE={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(s,{emit:e}){const t=s;n.useCssVars(c=>({"26769adc":o.value,"2678c95c":r.value}));const a=n.ref(null),i=n.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),o=n.computed(()=>a.value.data.currentSlide.value==0?"none":"inline"),r=n.computed(()=>a.value.data.currentSlide.value==a.value.data.maxSlide.value?"none":"inline"),l=n.ref({});n.watch(()=>t.closestMatchDay,c=>{if(c){const h=t.matchDays.find(u=>u.key===c);d(h||t.matchDays[0],!0)}}),n.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const h=c.find(u=>u.key===t.defaultMatchDayKey);l.value=h||c[0],e("change-match-day",l.value)}else t.closestMatchDay&&(l.value=c.find(h=>h.key===t.closestMatchDay)||{})},{immediate:!0});function d(c,h=!1){h&&a.value&&a.value.slideTo(c.index),l.value=c,e("change-match-day",l.value)}return(c,h)=>(n.openBlock(),n.createElementBlock("div",{class:"match-day-picker",style:n.normalizeStyle(s.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[n.createVNode(n.unref(jk),n.mergeProps(i.value,{ref_key:"matchDayPickerCarousel",ref:a}),{addons:n.withCtx(()=>[n.createVNode(n.unref(Kk))]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.matchDays,u=>(n.openBlock(),n.createBlock(n.unref(qk),{key:u.key},{default:n.withCtx(()=>[n.createVNode(eE,n.mergeProps(t,{"match-day":u,"match-day-selected":l.value,"is-landing-mode":s.isLandingMode,"component-width":s.componentWidth,onClickMatchDay:d}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},sE=Lt(tE,[["__scopeId","data-v-1621f164"]]);function Bs(s,e=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${e}/${s}.png`}function Nh(s){if(typeof s=="string"){let e=s.replace("M","J ");return e=e.replace("PO1","CFI"),e=e.replace("PO2","CFV"),e=e.replace("PO3","SFI"),e=e.replace("PO4","SFV"),e=e.replace("PO5","FI"),e=e.replace("PO6","FV"),e}}function aE(s){let e="";return s.game_status!=4&&(e+="Finalizado"),(s.penalties_score_home_team!=0||s.penalties_score_visiting_team!=0)&&(e+=" - Penales "+s.penalties_score_home_team+" - "+s.penalties_score_visiting_team),e}const nE={class:"game-info__teams"},iE={class:"game-info__teams__team__logo"},oE=["src"],rE={class:"game-info__teams__detail"},lE={key:0,class:"game-info__teams__detail__pre-game"},cE={class:"game-info__teams__team__logo away"},dE=["src"],hE={key:0},uE={key:0},mE={key:1},fE={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(s){const e=s,t=n.computed(()=>{let c=e.game.schedule.split(":");return c.pop(),c=c.join(":"),c}),a=n.computed(()=>{let c="120px";return(e.isLandingMode||e.isAcronymVisible)&&(c="70px"),{"min-width":c}}),i=n.computed(()=>({"font-size":e.namesFontSize,"font-family":e.namesFontFamily,color:e.colorPrimary})),o=n.computed(()=>({"font-size":e.additionalInfoFontSize,"font-family":e.additionalInfoFontFamily,color:e.colorSecondary})),r=n.computed(()=>({"font-size":e.scoreFontSize,"font-family":e.scoreFontFamily,color:e.colorPrimary})),l=n.computed(()=>({"font-size":e.timeZoneFontSize,"font-family":e.namesFontFamily,color:e.colorPrimary})),d=n.computed(()=>({"font-size":e.timeFontSize,"font-family":e.namesFontFamily,color:e.colorPrimary}));return(c,h)=>(n.openBlock(),n.createElementBlock("div",{class:"game-info",style:n.normalizeStyle(s.isLandingMode?"gap:5px":"")},[n.createElementVNode("div",nE,[n.createElementVNode("div",{class:"game-info__teams__team",style:n.normalizeStyle(a.value)},[n.createElementVNode("div",{class:"game-info__teams__team__name",style:n.normalizeStyle(i.value)},n.toDisplayString(s.isLandingMode||s.isAcronymVisible?s.game.home_team.acronym:s.game.home_team.colloquial_name),5),n.createElementVNode("div",iE,[n.createElementVNode("img",{src:n.unref(Bs)(s.game.home_team.team_id),alt:""},null,8,oE)])],4),n.createElementVNode("div",rE,[s.game.game_status===4&&!s.game.is_live?(n.openBlock(),n.createElementBlock("div",lE,[n.createElementVNode("div",null,[n.createElementVNode("span",{style:n.normalizeStyle(d.value)},n.toDisplayString(t.value),5),n.createTextVNode(),n.createElementVNode("span",{style:n.normalizeStyle(l.value)},"CST",4)])])):(n.openBlock(),n.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:n.normalizeStyle(r.value)},[n.createElementVNode("span",null,n.toDisplayString(s.game.score[0])+" - "+n.toDisplayString(s.game.score[1]),1)],4))]),n.createElementVNode("div",{class:"game-info__teams__team away",style:n.normalizeStyle(a.value)},[n.createElementVNode("div",cE,[n.createElementVNode("img",{src:n.unref(Bs)(s.game.visiting_team.team_id),alt:""},null,8,dE)]),n.createElementVNode("div",{class:"game-info__teams__team__name",style:n.normalizeStyle(i.value)},n.toDisplayString(s.isLandingMode||s.isAcronymVisible?s.game.visiting_team.acronym:s.game.visiting_team.colloquial_name),5)],4)]),n.createElementVNode("div",{class:"game-info__status",style:n.normalizeStyle([o.value,s.isLandingMode?"line-height: normal":""])},[s.game.game_status===4&&!s.game.is_live?(n.openBlock(),n.createElementBlock("span",hE,[s.isTelevisionVisible?(n.openBlock(),n.createElementBlock("span",uE,n.toDisplayString(s.game.tv_stations.join(", ")),1)):n.createCommentVNode("",!0)])):(n.openBlock(),n.createElementBlock("span",mE,n.toDisplayString(n.unref(aE)(s.game)),1))],4)],4))}},Dh=Lt(fE,[["__scopeId","data-v-9460f42e"]]),Ph=s=>(n.pushScopeId("data-v-e2fc9ed0"),s=s(),n.popScopeId(),s),pE={class:"game-status"},gE={key:0,class:"game-status__day__live"},yE=Ph(()=>n.createElementVNode("span",null,"LIVE",-1)),bE=Ph(()=>n.createElementVNode("span",{class:"dot"},null,-1)),SE=[yE,bE],_E={key:0,class:"game-status__round"},wE={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(s){const e=s,t=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],a=n.computed(()=>{let r="";if(e.dateTimeMillis){const l=new Date(e.dateTimeMillis);r=`${l.getDate()} ${t[l.getMonth()]}`}return r}),i=n.computed(()=>({"font-size":e.fontSize})),o=n.computed(()=>{let r=[];return e.isLive?r.push("live"):e.status!==1&&r.push("pre-match"),r});return(r,l)=>(n.openBlock(),n.createElementBlock("div",pE,[n.createElementVNode("div",{class:n.normalizeClass(["game-status__day",o.value]),style:n.normalizeStyle(i.value)},[s.isLive?(n.openBlock(),n.createElementBlock("div",gE,SE)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(a.value),1)],64))],6),s.isRoundMode?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",_E,n.toDisplayString(s.roundAbbreviation),1))]))}},Oh=Lt(wE,[["__scopeId","data-v-e2fc9ed0"]]),It={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},kE=s=>(n.pushScopeId("data-v-5711c5a6"),s=s(),n.popScopeId(),s),EE={class:"actions"},TE={class:"actions__row"},CE=kE(()=>n.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),xE=[CE],vE={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},AE=["fill"],LE={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},IE=["fill"],RE={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(s,{emit:e}){const t=s,a=n.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor}));function i(o){e("action",o)}return(o,r)=>(n.openBlock(),n.createElementBlock("div",EE,[n.createElementVNode("div",TE,[n.createElementVNode("div",{class:"actions__button rounded",style:n.normalizeStyle(a.value),onClick:r[0]||(r[0]=l=>i(n.unref(It).STATISTICS))},xE,4),s.showPlayButton&&s.hasVideo?(n.openBlock(),n.createElementBlock("div",{key:0,class:"actions__button rounded",style:n.normalizeStyle(a.value),onClick:r[1]||(r[1]=l=>i(n.unref(It).PLAY_RESUME))},[(n.openBlock(),n.createElementBlock("svg",vE,[n.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,AE)]))],4)):n.createCommentVNode("",!0),s.gameStatus===4444&&!s.isLive?(n.openBlock(),n.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=l=>i(n.unref(It).NOTIFICATION))},[(n.openBlock(),n.createElementBlock("svg",LE,[n.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,IE)]))])):n.createCommentVNode("",!0)])]))}},BE=Lt(RE,[["__scopeId","data-v-5711c5a6"]]),zo=s=>(n.pushScopeId("data-v-d64f8667"),s=s(),n.popScopeId(),s),NE={class:"actions"},DE={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PE=["fill"],OE={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},FE=["fill"],ME=zo(()=>n.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),VE=[ME],$E={key:0,class:"actions__videos"},zE={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},UE=["fill"],GE={key:1,class:"actions__videos__thumbnails"},jE=zo(()=>n.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),HE=zo(()=>n.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),WE={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},KE=["stroke"],qE={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},hasGoals:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(s){return s>0}}},emits:["action"],setup(s,{emit:e}){const t=s,a=n.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor})),i=n.computed(()=>{const d=[];return t.componentWidth<540&&d.push("mobile"),d}),o=n.computed(()=>t.componentWidth>730),r=n.computed(()=>({color:t.thumbnailColor,fontFamily:t.thumbnailFontFamily,fontSize:t.thumbnailFontSize}));function l(d){e("action",d)}return(d,c)=>(n.openBlock(),n.createElementBlock("div",NE,[n.createElementVNode("div",{class:n.normalizeClass(["actions__buttons",i.value])},[s.gameStatus===4444&&!s.isLive&&!o.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=h=>l(n.unref(It).NOTIFICATION))},[(n.openBlock(),n.createElementBlock("svg",DE,[n.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,PE)]))])):n.createCommentVNode("",!0),s.showPlayButton&&s.hasVideo&&!o.value?(n.openBlock(),n.createElementBlock("div",{key:1,class:"actions__button rounded",style:n.normalizeStyle(a.value),onClick:c[1]||(c[1]=h=>l(n.unref(It).PLAY_RESUME))},[(n.openBlock(),n.createElementBlock("svg",OE,[n.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,FE)]))],4)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"actions__button rounded",style:n.normalizeStyle(a.value),onClick:c[2]||(c[2]=h=>l(n.unref(It).STATISTICS))},VE,4)],2),o.value?(n.openBlock(),n.createElementBlock("div",$E,[s.gameStatus===4444&&!s.isLive?(n.openBlock(),n.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=h=>l(n.unref(It).NOTIFICATION))},[(n.openBlock(),n.createElementBlock("svg",zE,[n.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,UE)]))])):n.createCommentVNode("",!0),s.showPlayButton&&s.hasVideo?(n.openBlock(),n.createElementBlock("div",GE,[s.hasGoals?(n.openBlock(),n.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=h=>l(n.unref(It).PLAY_GOALS))},[jE,n.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:n.normalizeStyle(r.value)}," Goles ",4)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=h=>l(n.unref(It).PLAY_RESUME))},[HE,n.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:n.normalizeStyle(r.value)}," Resumen ",4)])])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),(s.gameStatus!==4||s.isLive)&&s.hasActions?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["actions__button expand",{"rotated-180":s.areEventsVisible,mobile:s.componentWidth<540}]),onClick:c[6]||(c[6]=h=>l(n.unref(It).SHOW_GAME_EVENTS))},[(n.openBlock(),n.createElementBlock("svg",WE,[n.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:s.arrowColor},null,8,KE)]))],2)):(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:s.componentWidth<540}])},null,2))]))}},YE=Lt(qE,[["__scopeId","data-v-d64f8667"]]),un=s=>(n.pushScopeId("data-v-2968a2f6"),s=s(),n.popScopeId(),s),JE={class:"row-landing__game-status"},XE={class:"row-landing__game-actions"},ZE={class:"row-full__game-status"},QE={class:"row-full__game-info"},eT={key:0},tT={class:"row-full__game-actions"},sT={class:"game-events-container"},aT=un(()=>n.createElementVNode("div",{class:"separator"},null,-1)),nT=un(()=>n.createElementVNode("div",null,null,-1)),iT={class:"game-events__data"},oT={class:"game-events__data__team"},rT=["src"],lT={class:"game-events__data__team__event__text"},cT={class:"game-events__data__team away"},dT={class:"game-events__data__team__event__text"},hT=["src"],uT=un(()=>n.createElementVNode("div",null,null,-1)),mT=un(()=>n.createElementVNode("div",null,null,-1)),fT={__name:"CalendarRow",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(s){return s>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(s,{emit:e}){const t=s,a={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},i=n.ref(!1),o=n.ref(!1),r=n.computed(()=>{const y={homeTeam:[],awayTeam:[]};return t.game&&t.game.game_status!==4&&!t.game.is_live&&t.game.minutes&&(y.homeTeam.push(...m(t.game.minutes.home_goals_minutes,a.GOAL)),y.homeTeam.push(...m(t.game.minutes.home_red_cards_minutes,a.RED_CARD)),y.homeTeam.push(...m(t.game.minutes.home_yellow_cards_minutes,a.YELLOW_CARD)),y.awayTeam.push(...m(t.game.minutes.visiting_goals_minutes,a.GOAL)),y.awayTeam.push(...m(t.game.minutes.away_red_cards_minutes,a.RED_CARD)),y.awayTeam.push(...m(t.game.minutes.away_yellow_cards_minutes,a.YELLOW_CARD))),y}),l=n.computed(()=>{const y=r.value.homeTeam.length,b=r.value.awayTeam.length;return y+b>0}),d=n.computed(()=>{const y=t.game.score[0],b=t.game.score[1];return y>0||b>0}),c=n.computed(()=>({"background-color":t.backgroundColor})),h=n.computed(()=>({height:t.height})),u=n.computed(()=>{const y={game:[],events:[]};return t.componentWidth<500?(y.events.push("break-point-3"),y.game.push("break-point-2")):t.componentWidth<730?(y.game.push("break-point-2"),y.events.push("break-point-2")):t.componentWidth<910&&(y.game.push("break-point-1"),y.events.push("break-point-1")),y}),f=n.computed(()=>({isLandingMode:t.isLandingMode,game:t.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),p=n.computed(()=>({"font-size":t.televisionFontSize,"font-family":t.televisionFontFamily,color:t.televisionColor}));n.watch(()=>t.componentWidth,y=>{o.value=y<910});function m(y,b){return y.map(S=>({iconUrl:b,text:S}))}function g(y){y===It.SHOW_GAME_EVENTS?i.value=!i.value:e("action",{action:y,game:t.game})}return(y,b)=>s.isLandingMode?(n.openBlock(),n.createElementBlock("div",{key:0,class:"row-landing",style:n.normalizeStyle(c.value)},[n.createVNode(Dh,{game:s.game,"is-landing-mode":s.isLandingMode},null,8,["game","is-landing-mode"]),n.createElementVNode("div",JE,[n.createVNode(Oh,{status:s.game.game_status,"is-live":!!s.game.is_live,"date-time-millis":s.game.dateTimeMillis,"round-abbreviation":n.unref(Nh)(s.game.matchday_abbreviation),"is-landing-mode":s.isLandingMode,"is-round-mode":s.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),n.createElementVNode("div",XE,[s.game.home_team?(n.openBlock(),n.createBlock(BE,{key:0,"is-live":!!s.game.is_live,"has-video":s.showVideos==0||s.showVideos==1&&s.teamId==s.game.home_team.team_id?!!s.game.has_video:!1,"game-status":s.game.game_status,"show-play-button":!0,onAction:g},null,8,["is-live","has-video","game-status"])):n.createCommentVNode("",!0)])],4)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"row-full-container",style:n.normalizeStyle(c.value)},[n.createElementVNode("div",{class:n.normalizeClass(["row-full",u.value.game]),style:n.normalizeStyle(h.value)},[n.createElementVNode("div",ZE,[n.createVNode(Oh,{status:s.game.game_status,"is-live":!!s.game.is_live,"date-time-millis":s.game.dateTimeMillis,"round-abbreviation":n.unref(Nh)(s.game.matchday_abbreviation),"is-landing-mode":s.isLandingMode,"is-round-mode":s.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),n.createElementVNode("div",QE,[n.createVNode(Dh,n.mergeProps(f.value,{"is-television-visible":o.value,game:s.game,"is-landing-mode":s.isLandingMode,"is-acronym-visible":s.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),s.componentWidth>=910?(n.openBlock(),n.createElementBlock("div",{key:0,class:"row-full__television",style:n.normalizeStyle(p.value)},[!o.value&&(s.game.game_status===4||s.game.is_live)?(n.openBlock(),n.createElementBlock("span",eT,n.toDisplayString(s.game.tv_stations.join(", ")),1)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),n.createElementVNode("div",tT,[s.game.home_team?(n.openBlock(),n.createBlock(YE,{key:0,"is-live":!!s.game.is_live,"has-video":s.showVideos==0||s.showVideos==1&&s.teamId==s.game.home_team.team_id?!!s.game.has_video:!1,"has-actions":l.value,"has-goals":s.showVideos==0||s.showVideos==1&&s.teamId==s.game.home_team.team_id?d.value:!1,"game-status":s.game.game_status,"show-play-button":!0,"are-events-visible":i.value,"component-width":s.componentWidth,onAction:g},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])):n.createCommentVNode("",!0)])],6),n.createVNode(n.Transition,null,{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",sT,[aT,n.createElementVNode("div",{class:n.normalizeClass(["game-events",u.value.events])},[nT,n.createElementVNode("div",iT,[n.createElementVNode("div",oT,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.homeTeam,(S,w)=>(n.openBlock(),n.createElementBlock("div",{key:`h${w}`,class:"game-events__data__team__event"},[n.createElementVNode("img",{src:S.iconUrl},null,8,rT),n.createElementVNode("div",lT,n.toDisplayString(S.text),1)]))),128))]),n.createElementVNode("div",cT,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.awayTeam,(S,w)=>(n.openBlock(),n.createElementBlock("div",{key:`a${w}`,class:"game-events__data__team__event"},[n.createElementVNode("div",dT,n.toDisplayString(S.text),1),n.createElementVNode("img",{src:S.iconUrl},null,8,hT)]))),128))])]),uT,mT],2)],512),[[n.vShow,i.value]])]),_:1})],4))}},Fh=Lt(fT,[["__scopeId","data-v-2968a2f6"]]),pT={class:"calendar-table"},gT={__name:"CalendarTable",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(s){return s>0}}},emits:["action"],setup(s,{emit:e}){const t=s;function a(o){return o%2===0?t.evenRowColor:t.oddRowColor}function i(o){e("action",o)}return(o,r)=>(n.openBlock(),n.createElementBlock("div",pT,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.gamesPerPage,(l,d)=>(n.openBlock(),n.createBlock(Fh,{key:l.game_id,game:l,"team-id":s.teamId,"show-videos":s.showVideos,"is-landing-mode":s.isLandingMode,height:s.rowHeight,"background-color":a(d),"component-width":s.componentWidth,"is-round-mode":s.isRoundMode,onAction:i},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},yT=Lt(gT,[["__scopeId","data-v-c7bf1232"]]),bT={class:"calendar-by-team"},ST={class:"playing-as-picker"},_T={class:"calendar-by-team__page"},wT={__name:"CalendarTableByTeam",props:{showVideos:{type:Number,default:0},teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(s){return s>0}}},emits:["action"],setup(s,{emit:e}){const t=s,a=n.ref(0),i=n.computed(()=>{let d=[];if(t.gamesPages.size>0){const c=Array.from(t.gamesPages.entries()).reduce((h,[u,f])=>{const p=Number(u),m=Number.isNaN(p)?u:`Jornada ${p<10?"0":""}${p}`,g=f.reduce((y,b)=>(y.push(...b),y),[]).filter(y=>a.value===0||a.value===1&&y.visiting_team.team_id===t.teamId?!0:a.value===2&&y.home_team.team_id===t.teamId);return g.length>0&&h.push({roundName:m,games:g}),h},[]);d.push(c)}return d});function o(d){e("action",d)}function r(d){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),a.value=d,document.querySelector("#opc"+d).classList.add("selected")}function l(d){let c=d;switch(d){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(d,c)=>(n.openBlock(),n.createElementBlock("div",bT,[n.createElementVNode("div",ST,[n.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=h=>r(0))}," Todas "),n.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=h=>r(1))},"Visitante"),n.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=h=>r(2))},"Local")]),n.createVNode(n.unref(Lh),{"is-pagination-visible":s.isPaginationVisible,items:i.value},{default:n.withCtx(({item:h})=>[n.createElementVNode("div",_T,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h,(u,f)=>(n.openBlock(),n.createElementBlock("div",{key:f,class:"calendar-by-team__page__round"},[n.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:n.normalizeStyle([{color:"white"},s.componentWidth<=425?"padding: 5px 10px":""])},n.toDisplayString(l(u.roundName)),5),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.games,p=>(n.openBlock(),n.createBlock(Fh,{key:p.game_id,game:p,"team-id":s.teamId,"show-videos":s.showVideos,"is-landing-mode":s.isLandingMode,height:s.rowHeight,"background-color":s.gameRowColor,"component-width":s.componentWidth,"is-round-mode":s.isRoundMode,onAction:o},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},kT=Lt(wT,[["__scopeId","data-v-6e0e406c"]]),ET="_liveMinutes_1utnm_2",TT="_viewButtomEvent_1utnm_6",CT="_containerEvents_1utnm_20",xT="_sepEvents_1utnm_26",vT="_goalsContainer_1utnm_36",AT="_yellowContainer_1utnm_44",LT="_redContainer_1utnm_52",IT="_containerEventsGameHometeam_1utnm_60",RT="_containerEventsGameAwayteam_1utnm_73",BT="_image62Icon_1utnm_86",NT="_imgChivasIcon_1utnm_95",DT="_nameDesktop_1utnm_102",PT="_nameMobile_1utnm_115",OT="_homeTeam_1utnm_127",FT="_sbado16De_1utnm_138",MT="_gameDate_1utnm_147",VT="_sab16092023_1utnm_151",$T="_div_1utnm_164",zT="_divscore_1utnm_173",UT="_cst_1utnm_183",GT="_hour_1utnm_192",jT="_score_1utnm_193",HT="_chivasTvCanal_1utnm_204",WT="_gameStatus_1utnm_216",KT="_matchInfo_1utnm_227",qT="_image62Icon1_1utnm_241",YT="_name_1utnm_102",JT="_imgAtlasIcon_1utnm_263",XT="_name1_1utnm_270",ZT="_awayTeam_1utnm_282",QT="_matchCard_1utnm_293",eC={liveMinutes:ET,viewButtomEvent:TT,containerEvents:CT,sepEvents:xT,goalsContainer:vT,yellowContainer:AT,redContainer:LT,containerEventsGameHometeam:IT,containerEventsGameAwayteam:RT,image62Icon:BT,imgChivasIcon:NT,nameDesktop:DT,nameMobile:PT,homeTeam:OT,sbado16De:FT,gameDate:MT,sab16092023:VT,div:$T,divscore:zT,cst:UT,hour:GT,score:jT,chivasTvCanal:HT,gameStatus:WT,matchInfo:KT,image62Icon1:qT,name:YT,imgAtlasIcon:JT,name1:XT,awayTeam:ZT,matchCard:QT},tC=["src"],sC=["src"],aC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),nC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),iC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),oC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),rC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),lC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),cC=n.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),dC={key:0},hC=n.createElementVNode("div",null,"ver eventos",-1),uC=n.createElementVNode("img",{width:"13",style:{"margin-top":"1px"},src:"http://golstatsimages.blob.core.windows.net/todoelfut/arrow-live-down.png"},null,-1),mC=["src"],fC=["src"],pC={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},gC={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},yC={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},bC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),SC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),_C=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),wC={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}},playsLive:{type:Object,default:()=>{}},is_captured:{type:Number,default:1},infoLive:{type:Object,default:()=>{}}},emits:["open-modal-event"],setup(s,{emit:e}){const t=s,a=new Map([[1,45],[2,90],[3,105],[4,120]]),i=n.computed(()=>{const h=a.get(t.infoLive.recent_lapse);return h&&h<t.infoLive.minute?`${h}' + ${t.infoLive.minute-h}'`:`${t.infoLive.minute}'`}),o=n.computed(()=>{let h=0,u=0,f=!1;var p=!1;return Object.keys(t.infoLive).includes("score")&&(t.infoLive.score["own_"+t.game.home_team.team_id]!=null&&t.infoLive.score["own_"+t.game.home_team.team_id]!=0&&(p=!0),t.infoLive.score["own_"+t.game.visiting_team.team_id]!=null&&t.infoLive.score["own_"+t.game.visiting_team.team_id]!=0&&(f=!0),f?t.infoLive.score[t.game.home_team.team_id]!=null&&(h=parseInt(t.infoLive.score[t.game.home_team.team_id])+parseInt(t.infoLive.score["own_"+t.game.visiting_team.team_id])):t.infoLive.score[t.game.home_team.team_id]!=null&&(h=parseInt(t.infoLive.score[t.game.home_team.team_id])),p?t.infoLive.score[t.game.visiting_team.team_id]!=null&&(u=parseInt(t.infoLive.score[t.game.visiting_team.team_id])+parseInt(t.infoLive.score["own_"+t.game.home_team.team_id])):t.infoLive.score[t.game.visiting_team.team_id]!=null&&(u=parseInt(t.infoLive.score[t.game.visiting_team.team_id]))),h+" - "+u}),r=n.computed(()=>{const h={...t.game};return h.gameSchedule=t.game.schedule.split(":"),h.gameSchedule.pop(),h.gameSchedule=h.gameSchedule.join(":"),h});function l(h){let u=h.split(" "),f=u[u.length-2];return f.includes("+")?u[u.length-3]+"+"+u[u.length-1]:(f=u[u.length-1],f)}function d(h){e("open-modal-event",h)}function c(h,u){const f=new Date(h);if(u==1){const p=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],m=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${p[f.getDay()]} ${f.getDate()} de ${m[f.getMonth()]}`}else return`${f.getDate()}-${f.getMonth()+1}-${f.getFullYear()}`}return(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(h.$style.matchCard)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.homeTeam),id:"container-home-team"},[n.createElementVNode("img",{class:n.normalizeClass(h.$style.image62Icon),alt:"",src:n.unref(Bs)(r.value.home_team.team_id,150)},null,10,tC),n.createElementVNode("img",{class:n.normalizeClass(h.$style.imgChivasIcon),alt:"",src:n.unref(Bs)(r.value.home_team.team_id)},null,10,sC),n.createElementVNode("h3",{class:n.normalizeClass(h.$style.nameDesktop),id:"team-name"},n.toDisplayString(r.value.home_team.colloquial_name),3),n.createElementVNode("h3",{class:n.normalizeClass(h.$style.nameMobile),id:"team-name"},n.toDisplayString(r.value.home_team.acronym),3),r.value.game_status==1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[r.value.is_live==0&&r.value.game_status==1||Object.keys(r.value.minutes).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.containerEventsGameHometeam)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.containerEvents)},[r.value.minutes.home_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.goalsContainer)},[aC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.home_goals_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f).replace("(AG)","")),1),p!=r.value.minutes.home_goals_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0),r.value.minutes.home_red_cards_minutes.length>0&&r.value.minutes.home_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),r.value.minutes.home_red_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(h.$style.yellowContainer)},[nC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.home_red_cards_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f)),1),p!=r.value.minutes.home_red_cards_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0),r.value.minutes.home_red_cards_minutes.length>0||r.value.minutes.home_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),r.value.minutes.home_yellow_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:4,class:n.normalizeClass(h.$style.redContainer)},[iC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.home_yellow_cards_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f)),1),p!=r.value.minutes.home_yellow_cards_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],2)],2)):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.value.is_live==1&&r.value.game_status!=1||r.value.game_status==0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.containerEventsGameHometeam)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.containerEvents)},[Object.keys(s.playsLive).length>0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[s.playsLive[s.game.home_team.team_id]&&"goals"in s.playsLive[s.game.home_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[Object.keys(s.playsLive[s.game.home_team.team_id].goals).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.goalsContainer)},[oC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.home_team.team_id].goals),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.home_team.team_id].goals[f].event.map(m=>`${m}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(s.playsLive[s.game.home_team.team_id].goals).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),s.playsLive[s.game.home_team.team_id]&&"red"in s.playsLive[s.game.home_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[Object.keys(s.playsLive[s.game.home_team.team_id].red).length>0&&Object.keys(s.playsLive[s.game.home_team.team_id].goals).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),Object.keys(s.playsLive[s.game.home_team.team_id].red).length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.yellowContainer)},[rC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.home_team.team_id].red),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.home_team.team_id].red[f].event.map(m=>`${m}'`).join(", ")),1),p!=Object.keys(s.playsLive[s.game.home_team.team_id].red).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),s.playsLive[s.game.home_team.team_id]&&"yellow"in s.playsLive[s.game.home_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[Object.keys(s.playsLive[s.game.home_team.team_id].red).length>0||Object.keys(s.playsLive[s.game.home_team.team_id].goals).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),Object.keys(s.playsLive[s.game.home_team.team_id].yellow).length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.redContainer)},[lC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.home_team.team_id].yellow),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.home_team.team_id].yellow[f].event.map(m=>`${m}'`).join(", ")),1),p!=Object.keys(s.playsLive[s.game.home_team.team_id].yellow).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],2)],2)):n.createCommentVNode("",!0)],64))],2),r.value.game_status==4&&r.value.is_live==0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.matchInfo),id:"container-match-info"},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.sbado16De)},n.toDisplayString(c(r.value.date_time_utc,1)),3),n.createElementVNode("div",{class:n.normalizeClass(h.$style.sab16092023)},n.toDisplayString(c(r.value.date_time_utc,0)),3),n.createElementVNode("div",{class:n.normalizeClass(h.$style.hour)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.div)},n.toDisplayString(r.value.gameSchedule),3),n.createElementVNode("div",{class:n.normalizeClass(h.$style.cst)},"CST",2)],2),n.createElementVNode("div",{class:n.normalizeClass(h.$style.chivasTvCanal)},n.toDisplayString(r.value.tv_stations.join(", ")),3)],2)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.matchInfo),id:"container-match-info"},[r.value.is_live?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(c(r.value.date_time_utc,1)),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",{class:n.normalizeClass([h.$style.sbado16De,h.$style.gameDate])},n.toDisplayString(c(r.value.date_time_utc,1)),3),n.createElementVNode("div",{class:n.normalizeClass([h.$style.sab16092023,h.$style.gameDate])},n.toDisplayString(c(r.value.date_time_utc,0)),3)],64)),r.value.is_live||r.value.game_status!=1&&r.value.game_status!=4?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(h.$style.score)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.divscore)},n.toDisplayString(o.value),3)],2)):(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(h.$style.score)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.divscore)},n.toDisplayString(r.value.score.join(" - ")),3)],2)),n.createElementVNode("div",{class:n.normalizeClass(h.$style.gameStatus)},[r.value.is_live?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.liveMinutes)},[cC,n.createTextVNode(" LIVE - "+n.toDisplayString(i.value)+"' ",1)],2)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(" Finalizado "),r.value.penalties_score_home_team!=0||r.value.penalties_score_visiting_team!=0?(n.openBlock(),n.createElementBlock("span",dC," - Penales "+n.toDisplayString(r.value.penalties_score_home_team)+" - "+n.toDisplayString(r.value.penalties_score_visiting_team),1)):n.createCommentVNode("",!0)],64))],2),s.is_captured==1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:4},[r.value.is_live==1||r.value.game_status==1||Object.keys(r.value.minutes).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.viewButtomEvent),onClick:u[0]||(u[0]=f=>d(r.value))},[hC,n.createTextVNode("  "),uC],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],2)),n.createElementVNode("div",{class:n.normalizeClass(h.$style.awayTeam),id:"container-away-team"},[n.createElementVNode("img",{class:n.normalizeClass(h.$style.image62Icon1),alt:"",src:n.unref(Bs)(r.value.visiting_team.team_id,150)},null,10,mC),n.createElementVNode("h3",{class:n.normalizeClass(h.$style.name),id:"team-name"},n.toDisplayString(r.value.visiting_team.colloquial_name),3),n.createElementVNode("img",{class:n.normalizeClass(h.$style.imgAtlasIcon),alt:"",src:n.unref(Bs)(r.value.visiting_team.team_id)},null,10,fC),n.createElementVNode("h3",{class:n.normalizeClass(h.$style.name1),id:"team-name"},n.toDisplayString(r.value.visiting_team.acronym),3),r.value.game_status==1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[r.value.is_live==0&&r.value.game_status==1||Object.keys(r.value.minutes).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.containerEventsGameAwayteam)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.containerEvents)},[r.value.minutes.visiting_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.goalsContainer)},[r.value.minutes.visiting_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("img",pC)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.visiting_goals_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f).replace("(AG)","")),1),p!=r.value.minutes.visiting_goals_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0),r.value.minutes.away_red_cards_minutes.length>0&&r.value.minutes.visiting_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),r.value.minutes.away_red_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(h.$style.yellowContainer)},[r.value.minutes.away_red_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("img",gC)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.away_red_cards_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f)),1),p!=r.value.minutes.away_red_cards_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0),r.value.minutes.away_red_cards_minutes.length>0||r.value.minutes.visiting_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),r.value.minutes.away_yellow_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:4,class:n.normalizeClass(h.$style.redContainer)},[r.value.minutes.away_yellow_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("img",yC)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.away_yellow_cards_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f))+"'",1),p!=r.value.minutes.away_yellow_cards_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],2)],2)):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.value.is_live==1&&r.value.game_status!=1||r.value.game_status==0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.containerEventsGameAwayteam)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.containerEvents)},[Object.keys(s.playsLive).length>0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[s.playsLive[s.game.visiting_team.team_id]&&"goals"in s.playsLive[s.game.visiting_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[Object.keys(s.playsLive[s.game.visiting_team.team_id].goals).length?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.goalsContainer)},[bC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.visiting_team.team_id].goals),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.visiting_team.team_id].goals[f].event.map(m=>`${m}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(s.playsLive[s.game.visiting_team.team_id].goals).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),s.playsLive[s.game.visiting_team.team_id]&&"red"in s.playsLive[s.game.visiting_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[Object.keys(s.playsLive[s.game.visiting_team.team_id].red).length>0&&Object.keys(s.playsLive[s.game.visiting_team.team_id].goals).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),Object.keys(s.playsLive[s.game.visiting_team.team_id].red).length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.yellowContainer)},[SC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.visiting_team.team_id].red),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.visiting_team.team_id].red[f].event.map(m=>`${m}'`).join(", ")),1),p!=Object.keys(s.playsLive[s.game.visiting_team.team_id].red).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),s.playsLive[s.game.visiting_team.team_id]&&"yellow"in s.playsLive[s.game.visiting_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[Object.keys(s.playsLive[s.game.visiting_team.team_id].red).length>0||Object.keys(s.playsLive[s.game.visiting_team.team_id].goals).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),Object.keys(s.playsLive[s.game.visiting_team.team_id].yellow).length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.redContainer)},[_C,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.visiting_team.team_id].yellow),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.visiting_team.team_id].yellow[f].event.map(m=>`${m}'`).join(", ")),1),p!=Object.keys(s.playsLive[s.game.visiting_team.team_id].yellow).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],2)],2)):n.createCommentVNode("",!0)],64))],2)],2))}},kC={$style:eC},EC=Lt(wC,[["__cssModules",kC]]),TC={class:"calendar-by-game__carousel"},CC="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",xC={__name:"GSC-CalendarByGame",props:{showVideos:{type:Number,default:0},playsLive:{type:Object,default:()=>{}},infoLive:{type:Object,default:()=>{}},height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},areRoundsVisible:{type:Boolean,default:!0},is_captured:{type:Number,default:1},gamesPerMatchDay:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},userTeamId:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},sortCalendar:{type:Boolean,default:!0},isTeamGamePerPage:{type:Boolean,default:!1},onlyGamesTeamId:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},tournamentType:{type:Number,default:0},checkLiveGamesIntervalMinutes:{type:Number,default:2},gamesEventsIntervalMinutes:{type:Number,default:2},checkStartedLiveGamesMinutes:{type:Number,default:5}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges","open-modal-event"],setup(s,{emit:e}){const t=s;let a=null,i=null,o=null;const r=n.ref([]),l=n.ref({}),d=n.ref(0),c=n.ref(null),h=n.ref({}),u=n.ref(new Map),f=n.ref(!1),p=n.ref(null),m=n.ref(null),g=n.ref(null),y=n.ref([]),b=n.ref(new Map),S=n.ref(new Set),w=n.computed(()=>t.isCup),x=n.computed(()=>t.isCupLegacy),E=n.computed(()=>({height:t.height,width:t.width})),v=n.computed(()=>{if(t.games)return Ee(t.games,t.isTeamGamePerPage);{const M=u.value.get(h.value.key);return M&&t.isTeamGamePerPage&&t.onlyGamesTeamId?[M[0].filter(J=>J.home_team.team_id===t.onlyGamesTeamId||J.visiting_team.team_id===t.onlyGamesTeamId)]:M||[]}}),T=n.computed(()=>t.areGamesCarouselType?v.value[0]:v.value),B=n.ref([]),L=n.ref([]),R=n.computed(()=>{const M=L.value&&L.value.length?j(l.value):q(l.value),J=B.value.find(G=>G.key===M);return J&&f.value&&(V(!1),et(J)),M});n.watch(()=>t.seasons,M=>{M&&M.length&&(V(!0),r.value=M.map(J=>J.id),ie(M,!0))},{immediate:!0,deep:!0}),n.watch(u,M=>{if(t.onlyGamesTeamId&&M.size){const J=Array.from(M.values()).reduce((G,z)=>(z.forEach(K=>{const W=K.find(ge=>ge.home_team.team_id===t.onlyGamesTeamId||ge.visiting_team.team_id===t.onlyGamesTeamId);W&&G.push(W)}),G),[]);e("change-games-by-client-privileges",J)}},{immediate:!0});function V(M){f.value=M}function q(M){const J=new Date().valueOf(),G=Object.entries(Object.entries(M).reduce((K,[W,ge])=>(K[W]=null,ge.forEach(Ge=>{Ge.games.forEach(ct=>{if([1,0].includes(ct.game_status)||ct.is_live){const Js=J-ct.dateTimeMillis;K[W]===null?K[W]=Js:K[W]+=Js}})}),K),{}));if(!G.length)return"1";const z=G.reduce((K,[W,ge])=>((K.shortestMillisToNow===null||ge!==null&&ge<K.shortestMillisToNow)&&(K.shortestMillisToNow=ge,K.round=W),K),{round:"",shortestMillisToNow:null});return z.shortestMillisToNow!==null?z.round:G[G.length-1][0]}function j(M){let J=1;if(L.value.length){const G=L.value[0];for(const[z,K]of Object.entries(M))for(const W of K)if(W.games.find(ge=>ge.game_id===G.game_id))return z}return J}n.watch(()=>t.teamId,()=>{se()},{immediate:!0});async function ae(M,J,G=""){let z=G;try{const K={};t.token&&(K.Authorization=t.token),z||(z="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",M.forEach((Ge,ct)=>{z+=`${ct===0?"":"&"}seasons=${Ge}`}));const{data:{data:W,teams:ge}}=await hn.get(z,{headers:K});return{seasonsAndGames:W,seasonsAndTeams:ge}}catch(K){if(J>0)return ae(M,J-1,z);throw new Error(K)}}function oe(M){for(const J of M)if(!r.value.includes(J.season_id))return!0;return!1}async function ie(M,J){try{l.value={};let G=0;const{seasonsAndGames:z,seasonsAndTeams:K}=await ae(M.map(ge=>ge.id),3);if(J&&oe(z))return;z.forEach(ge=>{const{type:Ge}=M.find(ct=>ct.id===ge.season_id);ge.type=Ge,ge.games.forEach(ct=>{ct.season_id=ge.season_id}),Ge===0&&(G=ge.season_id)}),p.value={seasonsGames:z};const{teams:W}=K.find(ge=>ge.season_id===G);m.value=W,e("change-teams",W),se(),S.value.size?Q():await ce()}catch(G){throw new Error(G)}}async function ce(){try{const M=await Ce(),J=new Set;if(y.value=M.data.reduce((G,z)=>(z.games.forEach(K=>{J.add(K.game_id),G.push(K)}),G),[]),y.value.length){i||await de();const G=[];S.value.forEach(z=>{const K=b.value.get(z);K&&new Date().valueOf()>K.dateTimeMillis&&G.push(z)}),G.length&&G.every(z=>b.value.get(z).isLiveTracked)&&X()}}catch(M){throw new Error(M)}}async function de(){try{const M=[];for(const G of y.value){const z=b.value.get(G.game_id);z&&(z.is_live=1,z.game_status=4,z.scheduleKey&&z.scheduleKey.liveGamesIds.add(G.game_id)),z.isLiveTracked=!0,M.push(ye(G.game_id))}const J=await Promise.all(M);for(const G of J){const z=b.value.get(G.game_id);if(z){const K=[Number(G.score[z.home_team.team_id.toString()])+Number(G.score[`own_${z.visiting_team.team_id.toString()}`]),Number(G.score[z.visiting_team.team_id.toString()])+Number(G.score[`own_${z.home_team.team_id.toString()}`])],W=K[0],ge=K[1];z.score=[Number.isNaN(W)?0:W,Number.isNaN(ge)?0:ge],ue(z,G.plays)}}i||he()}catch(M){throw new Error(M)}}function Q(){S.value.size&&S.value.forEach(M=>{const J=b.value.get(M);if(J){const G=new Date().valueOf();if(60*1e3*30+J.dateTimeMillis-G>0){const z=J.dateTimeMillis-G-3e5;setTimeout(()=>{Y()},z>0?z:0)}}})}function Y(){X(),o||(o=setInterval(()=>{ce()},t.checkLiveGamesIntervalMinutes*60*1e3))}function he(){Z(),i=setInterval(()=>{de()},t.gamesEventsIntervalMinutes*60*1e3)}function X(){clearInterval(o),o=null}function Z(){clearInterval(i),i=null}function ue(M,J){for(const G of J)if(G.category_id===0&&G.game_status_id===13){const z=b.value.get(G.game_id);y.value=y.value.filter(K=>K.game_id!==M.game_id),z.is_live=0,z.game_status=0,z.scheduleKey&&z.scheduleKey.liveGamesIds.delete(M.game_id)}}async function ye(M){try{return(await hn.get(`${CC}${M}`,{headers:{Authorization:`${t.token}`}})).data}catch(J){throw new Error(J)}}async function Ce(){try{if(t.seasons.length===0)return[];const M=t.seasons.reduce((z,K)=>`${z}seasons=${K.id}&`,""),J=hn.create({headers:{Authorization:`${t.token}`}}),{data:G}=await J.get(`https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/lives?${M}`);return G}catch(M){throw new Error(M)}}function se(){if(X(),!m.value)return;b.value.clear(),S.value.clear(),L.value=[];const M=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(J=>{const G=J.games.reduce((z,K)=>{if(t.onlyGamesTeamId&&t.onlyGamesTeamId!==K.home_team&&t.onlyGamesTeamId!==K.visiting_team)return z;const W={...K},ge=new Date,[Ge,ct,Js]=W.date.split("-"),[Aa,ki,La]=W.schedule.split(":"),Ei=new Date(Number(Ge),Number(ct)-1,Number(Js),Number(Aa),Number(ki),Number(La));return W.dateTimeMillis=Ei.valueOf(),W.home_team=m.value.find(Kl=>Kl.team_id===K.home_team),W.visiting_team=m.value.find(Kl=>Kl.team_id===K.visiting_team),W.game_status===4&&ge.getFullYear()===Ei.getFullYear()&&ge.getMonth()===Ei.getMonth()&&ge.getDate()===Ei.getDate()&&S.value.add(W.game_id),b.value.set(W.game_id,W),t.teamId&&W.home_team.team_id!==t.teamId&&W.visiting_team.team_id!==t.teamId||(z[K.matchday_abbreviation]?z[K.matchday_abbreviation][K.game_status===3?"canceled":K.date]?z[K.matchday_abbreviation][K.game_status===3?"canceled":K.date].push(W):z[K.matchday_abbreviation][K.game_status===3?"canceled":K.date]=[W]:z[K.matchday_abbreviation]={[K.game_status===3?"canceled":K.date]:[W]},t.userTeamId&&W.game_status===4&&(W.home_team.team_id===t.userTeamId||W.visiting_team.team_id===t.userTeamId)&&L.value.push(W)),z},{});for(let[z,K]of Object.entries(G))G[z]=Object.entries(K).map(([W,ge])=>({date:W,games:ge.sort((Ge,ct)=>Ge.dateTimeMillis-ct.dateTimeMillis)})),G[z].sort((W,ge)=>W.date<ge.date?-1:W.date>ge.date?1:0);return{type:J.type,weight:J.type===0?0:J.type===2?1:2,schedule:G}}):[];M.sort((J,G)=>J.weight-G.weight),l.value=M.reduce((J,G)=>{for(const[z,K]of Object.entries(G.schedule))if(G.type===0)if([1,2].includes(t.tournamentType)){const W=Ok.get(t.tournamentType);if(W){const ge=W.get(z);ge&&(J[ge.matchDayAbbreviation]=K)}}else if(w.value){const W=z.replace("M",""),ge=W;x.value?J[Pk[W]||ge]=K:J[Dk[z]||ge]=K}else J[Number(z.replace("M","")).toString()]=K;else G.type===2?z.charAt(1)=="I"?J[`PI${Number(z.replace("PI",""))}`]=K:J[`R${Number(z.replace("PO",""))}`]=K:G.type===1&&(J[Nk[z]]=K);return J},{}),u.value=new Map,B.value=Array.from(Object.entries(l.value).reduce((J,[G,z],K)=>{const W=Number(G);let ge="";Number.isNaN(W)?ge=G:ge=W<10?`0${W}`:G;const Ge={key:G,value:W,valueText:ge,index:K,liveGamesIds:new Set};J.set(G,Ge);const ct=z.reduce((Aa,ki)=>(ki.games.forEach(La=>{La.game_id===t.defaultGameId&&(g.value=G),La.roundAbbreviation=Number.isNaN(W)?W:`J ${W}`,La.scheduleKey=Ge}),Aa=Aa.concat(ki.games),Aa),[]),Js=Ee(ct);return u.value.set(G,Js),J},new Map).values())}function Ee(M,J=!1){const G=[];if(t.gamesPerMatchDay>0){let z=[];M.forEach((K,W)=>{z.push(K),(W+1)%t.gamesPerMatchDay===0&&(G.push([...z]),z=[])}),z.length&&G.push([...z])}else G.push(M);return J&&t.isTeamGamePerPage&&t.defaultGameId?G.filter(z=>z.game_id===t.defaultGameId||z.gameId===t.defaultGameId):G}async function Te(M){try{const{data:J}=await hn.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return J}catch(J){if(M>0)return Te(M-1);throw new Error(J)}}function Oe(){if(window.ResizeObserver)a=new ResizeObserver(()=>{d.value=c.value.clientWidth}),a.observe(c.value);else throw new Error("Resize observer not supported!")}function et(M){h.value.value!==M.value&&(h.value=M,e("change-round",M))}function it(M){t.areGamesCarouselType&&e("change-game-carousel",M.selectedItem)}function ot(M){e("action",M),H(M)}function C(M){e("open-modal-event",M)}function H(M){const J="PLAY_RESUME",G="PLAY_GOALS",z=[607,608,12,55,54,35,14,52,15,53,466,477],K=[12,55,"35_r","54_r"],{game_id:W,season_id:ge}=M.game;let Ge={seasonId:ge,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:[W],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};M.action===J?(Ge.categoryIds=z,Ge.advancedFilter.playListTitle="Resumen",e("openmedia",Ge)):M.action===G&&(Ge.categoryIds=K,Ge.advancedFilter.playListTitle="Goles",e("openmedia",Ge))}async function U(){try{if(!t.awaitForSeasons&&!t.games){const M=(await Te(3)).find(z=>z._id===1),J=M.seasons[0],G=[{id:J.id,type:J.type}];M&&M.tournament&&e("tournament-selected",M.tournament),J.related_seasons&&J.related_seasons.length&&G.push(...J.related_seasons.map(z=>({id:z.id,type:z.type}))),await ie(G,!1)}}catch(M){throw new Error(M)}}return n.onMounted(()=>{Oe()}),U(),(M,J)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:n.normalizeStyle(E.value)},[s.teamId&&!s.avoidTeamIdFilter?(n.openBlock(),n.createBlock(kT,{key:0,"full-tournament-schedule":l.value,"team-id":s.teamId,"show-videos":s.showVideos,"is-landing-mode":!1,"row-height":s.rowHeight,"component-width":d.value,"games-pages":u.value,"is-pagination-visible":s.isPaginationVisible,"is-round-mode":s.isRoundMode,onAction:ot},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[s.areRoundsVisible&&B.value?(n.openBlock(),n.createBlock(sE,{key:0,"match-days":B.value,"is-landing-mode":s.isLandingMode,height:"48px","items-to-show":s.itemsToShow,"items-to-scroll":s.itemsToScroll,"component-width":d.value,"default-match-day-key":g.value,"closest-match-day":s.sortCalendar?R.value:"",onChangeMatchDay:et},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):n.createCommentVNode("",!0),n.createElementVNode("div",TC,[v.value?(n.openBlock(),n.createBlock(n.unref(Lh),{key:0,"is-pagination-visible":s.isPaginationVisible&&!s.areGamesCarouselType,items:T.value,"are-navigation-arrows-visible":s.areGamesCarouselType?!s.areGamesCarouselType:s.isPaginationVisible,"wrap-around":s.areGamesCarouselType&&!s.isTeamGamePerPage,"items-to-show":s.areGamesCarouselType&&!s.isTeamGamePerPage?1.2:1,"is-main-slide-priority":s.areGamesCarouselType,"are-slides-arrows-visible":s.areGamesCarouselType&&!s.isTeamGamePerPage,"slides-arrows-left-and-right":s.areGamesCarouselType?"30px":"0px","default-item-by-prop":s.areGamesCarouselType?{propName:"game_id",value:s.defaultGameId}:{},onInput:it},{default:n.withCtx(({item:G})=>[s.areGamesCarouselType?(n.openBlock(),n.createBlock(EC,{key:0,is_captured:s.is_captured,game:G,onOpenModalEvent:C,"plays-live":s.playsLive,"info-live":s.infoLive},null,8,["is_captured","game","plays-live","info-live"])):(n.openBlock(),n.createBlock(yT,{key:1,"team-id":s.teamId,"show-videos":s.showVideos,"games-per-page":G,"is-landing-mode":s.isLandingMode,"row-height":s.rowHeight,"component-width":d.value,"is-round-mode":s.isRoundMode,onAction:ot},null,8,["team-id","show-videos","games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):n.createCommentVNode("",!0)])],64))],4))}},vC=Lt(xC,[["__scopeId","data-v-12be1567"]]),AC=["Mi posición","Tabla General","Fases","Play Off"],LC={components:{GscSwitchComponent:yo,GSCGeneraltable:ow,GSCCalendarByGame:vC},props:{privileges:{type:Object,default:()=>{}},isPublic:{type:Boolean,default:!0},isPlayer:{type:Boolean,default:!1},isPlayerTournament:{type:Boolean,default:!1},isGeneric:{type:Boolean,default:!1},season:{type:Object,default:()=>{}},onlyTable:{type:Boolean,default:!0},seasons:{type:Array,default:()=>[]},tournamentType:{type:Number,default:0},tournament:{type:Number,default:1},teamId:{type:Number,default:0},componentWidth:{type:Number,default:768},tournaments:{type:Array,default:()=>[]}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{tableTitle(){return this.tournamentType!==0?this.tournamentType===1?"Fases":"Play Off":(this.selectedOpt!=="Calendario"&&this.changeCategory(this.teamId!=0?"Mi posición":"Tabla General"),this.teamId!==0?"Mi posición":"Tabla General")},isGeneralTableVisible(){return AC.includes(this.selectedOpt)}},watch:{tableTitle:{handler(s){this.selectedOpt=s},immediate:!0}},methods:{onAction(s){this.$emit("action",s)},changeCategory(s){this.selectedOpt=s},onOpenMedia(s){this.$emit("openmedia",s)},onOpenProfile(s){this.$emit("onOpenProfile",s)}},mounted(){this.selectedOpt=this.teamId!==0?"Mi posición":"Tabla General"}},IC={key:0,class:"gsc-switch-container"},RC={class:"gsc-app-component"},BC={key:0};function NC(s,e,t,a,i,o){const r=n.resolveComponent("GscSwitchComponent"),l=n.resolveComponent("GSCGeneraltable"),d=n.resolveComponent("GSCCalendarByGame");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(t.componentWidth>1e3?"gsc-calendar-table":"gsc-calendar-table-movil")},[t.onlyTable?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["gsc-switch-container",t.isPlayer&&t.isPlayerTournament||!t.isGeneric?"gsc-switch-container-player":""])},[t.isPlayer&&t.isPlayerTournament?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("Mi posicion")],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode("Tabla General")],64))],2)):(n.openBlock(),n.createElementBlock("div",IC,[n.createVNode(r,{type:0,arrow:!1,"font-family":"Poppins-Light",buttons:[o.tableTitle,"Calendario"],height:"40px","selected-option":i.selectedOpt,"font-size":t.componentWidth>=768?"16px":"14px",width:"355px",onInput:o.changeCategory},null,8,["buttons","selected-option","font-size","onInput"])])),n.createElementVNode("div",RC,[o.isGeneralTableVisible?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(l,{isPaginationVisible:!0,"current-season-id":t.season.id,"team-default-select":t.teamId,"team-id":t.teamId,type:1,"show-videos":t.isPublic?t.privileges.vr_privileges!=0:!0,tournament:t.tournament,"type-view":t.tournamentType,"await-for-season":"","await-for-tournaments":"","external-tournaments":t.tournaments,onOpenmedia:o.onOpenMedia,onOpenTableProfile:o.onOpenProfile},null,8,["current-season-id","team-default-select","team-id","show-videos","tournament","type-view","external-tournaments","onOpenmedia","onOpenTableProfile"]),n.createElementVNode("div",{onClick:e[0]||(e[0]=c=>s.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t.onlyTable?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",BC,[n.createVNode(d,{width:"100%",token:i.tokenFree,seasons:t.seasons,"tournament-type":t.tournamentType,"show-videos":t.isPublic,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5,onOpenmedia:o.onOpenMedia,onAction:o.onAction},null,8,["token","seasons","tournament-type","show-videos","onOpenmedia","onAction"]),n.createElementVNode("div",{onClick:e[1]||(e[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")]))],64))])],2)}const DC=qe(LC,[["render",NC],["__scopeId","data-v-066fce52"]]),Mh=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],Vh=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],$h=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],PC={class:"match"},OC={class:"match__header"},FC={key:0,class:"match__final-tag"},MC={key:1,class:"match__final-tag__no-border"},VC={class:"match__header__match-date"},$C={class:"match__tag"},zC={class:"match__body"},UC={class:"match__data"},GC={class:"match__acronym"},jC=["src"],HC={class:"match__score"},WC=["src"],KC={class:"match__acronym"},qC={class:"match__status"},mn=qe({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(s){const e=s,t=n.computed(()=>{const a=new Date(e.data.date_time_utc);return`${Mh[a.getDay()]}, ${a.getDate()} de ${Vh[a.getMonth()]}`});return(a,i)=>{var o,r,l;return n.openBlock(),n.createElementBlock("section",PC,[n.createElementVNode("div",OC,[s.infoType=="postmatch"?(n.openBlock(),n.createElementBlock("div",FC,"FINAL")):(n.openBlock(),n.createElementBlock("div",MC)),n.createElementVNode("div",VC,n.toDisplayString(t.value),1),n.createElementVNode("div",$C,n.toDisplayString(`${Number.isNaN(Number(s.data.roundAbbreviationV2))?"":"J"}${s.data.roundAbbreviationV2}`),1)]),n.createElementVNode("div",zC,[n.createElementVNode("div",UC,[n.createElementVNode("div",GC,n.toDisplayString((o=s.data)==null?void 0:o.home_team_acronym),1),n.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+s.data.home_team+".png",alt:"team-img"},null,8,jC),n.createElementVNode("div",HC,[s.infoType=="postmatch"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(s.data.score[0])+" - "+n.toDisplayString(s.data.score[1]),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString((r=s.data)==null?void 0:r.schedule.replace(":00","")),1)],64))]),n.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+s.data.visiting_team+".png",alt:"team-img"},null,8,WC),n.createElementVNode("div",KC,n.toDisplayString((l=s.data)==null?void 0:l.visiting_team_acronym),1)]),n.createElementVNode("div",qC,[s.infoType=="postmatch"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("Finalizado"+n.toDisplayString(s.penalScore?` - Penales ${s.penalScore}`:""),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode("CST")],64))])]),n.createElementVNode("div",{class:"match__button",onClick:i[0]||(i[0]=d=>a.$emit("clickMatch"))},"Ver →")])}}},[["__scopeId","data-v-12fb8db0"]]),zh=s=>(n.pushScopeId("data-v-5db14f31"),s=s(),n.popScopeId(),s),YC=["src"],JC=["src"],XC={class:"coming-match__body"},ZC={class:"coming-match__data"},QC=["src"],ex={key:0,class:"coming-match__live"},tx={class:"coming-match__live__score"},sx={class:"coming-match__live__time"},ax=zh(()=>n.createElementVNode("div",{class:"bullet"},null,-1)),nx=zh(()=>n.createElementVNode("div",{class:"coming-match__live__time__text"},"LIVE",-1)),ix={class:"coming-match__live__time__time"},ox={key:1,style:{"margin-top":"16px"}},rx={class:"coming-match__time"},lx={class:"coming-match__cst"},cx={key:0},dx=["src"],Ns=qe({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(s){const e=s,t=n.computed(()=>{const i=new Date(e.data.date_time_utc);return`${Mh[i.getDay()]}, ${i.getDate()} de ${e.small?$h[i.getMonth()]:Vh[i.getMonth()]}`}),a=n.computed(()=>e.data.is_live||e.data.game_status===0);return(i,o)=>{var r,l,d,c,h,u,f,p,m,g,y,b,S,w,x;return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(["coming-match",{small:s.small}])},[n.createElementVNode("img",{class:n.normalizeClass(["coming-match__bg",{small:s.small}]),src:typeof s.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((r=s.data)==null?void 0:r.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((l=s.data)==null?void 0:l.home_team)+".png",alt:"team-img"},null,10,YC),n.createElementVNode("img",{class:n.normalizeClass(["coming-match__bg",{small:s.small}]),src:typeof s.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((d=s.data)==null?void 0:d.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((c=s.data)==null?void 0:c.visiting_team)+".png",alt:"team-img"},null,10,JC),n.createElementVNode("div",XC,[a.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["coming-match__date",{small:s.small}])},n.toDisplayString(`${Number.isNaN(Number(s.data.roundAbbreviationV2))?"":"J"}${s.data.roundAbbreviationV2}`)+" | "+n.toDisplayString(t.value),3)),n.createElementVNode("div",ZC,[n.createElementVNode("div",{class:n.normalizeClass(["coming-match__team",{small:s.small}])},[n.createElementVNode("img",{class:n.normalizeClass(["coming-match__img",{small:s.small}]),src:typeof s.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=s.data)==null?void 0:h.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((u=s.data)==null?void 0:u.home_team)+".png",alt:"team-img"},null,10,QC),n.createElementVNode("div",{class:n.normalizeClass(["coming-match__acronym",{small:s.small}])},n.toDisplayString((f=s.data)==null?void 0:f.home_team_name),3)],2),a.value?(n.openBlock(),n.createElementBlock("div",ex,[n.createElementVNode("div",tx,n.toDisplayString((p=s.data)==null?void 0:p.score[0])+" - "+n.toDisplayString((m=s.data)==null?void 0:m.score[1]),1),n.createElementVNode("div",sx,[ax,nx,n.createElementVNode("div",ix,n.toDisplayString(s.data.currentTimeLive||"0'"),1)])])):(n.openBlock(),n.createElementBlock("div",ox,[n.createElementVNode("div",rx,[s.data.game_status!==4?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString((g=s.data)==null?void 0:g.score[0])+" - "+n.toDisplayString((y=s.data)==null?void 0:y.score[1]),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString((b=s.data)==null?void 0:b.schedule.replace(":00","")),1)],64))]),n.createElementVNode("div",lx,[s.data.game_status===4?(n.openBlock(),n.createElementBlock("span",cx,"CST")):n.createCommentVNode("",!0)])])),n.createElementVNode("div",{class:n.normalizeClass(["coming-match__team away",{small:s.small}])},[n.createElementVNode("div",{class:n.normalizeClass(["coming-match__acronym",{small:s.small}])},n.toDisplayString((S=s.data)==null?void 0:S.visiting_team_name),3),n.createElementVNode("img",{class:n.normalizeClass(["coming-match__img",{small:s.small}]),src:typeof s.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((w=s.data)==null?void 0:w.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((x=s.data)==null?void 0:x.visiting_team)+".png",alt:"team-img"},null,10,dx)],2)])]),n.createElementVNode("div",{class:n.normalizeClass(["coming-match__button",{small:s.small}]),onClick:o[0]||(o[0]=E=>i.$emit("clickMatch"))},[s.data.game_status===4&&!s.data.is_live?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("Ver →")],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode("Ver →")],64))],2)],2)}}},[["__scopeId","data-v-5db14f31"]]),fn=s=>(n.pushScopeId("data-v-fec8d273"),s=s(),n.popScopeId(),s),hx={class:"game-item__header"},ux={class:"game-item__header__info text-type-1"},mx={key:0,class:"game-item__header__info__live"},fx=fn(()=>n.createElementVNode("div",{class:"game-item__header__info__live__status text-type-2"},[n.createElementVNode("div",{class:"bullet"}),n.createElementVNode("span",null,"LIVE")],-1)),px={class:"text-type-1"},gx={key:1,class:"game-item__header__info__pre-match text-type-2"},yx=fn(()=>n.createElementVNode("span",{class:"game-item__header__info__pre-match text-type-1"},[n.createTextVNode(" "),n.createElementVNode("small",null,"CST")],-1)),bx={key:2,class:"game-item__header__info__post-match"},Sx=[fn(()=>n.createElementVNode("span",{class:"text-type-2"},"Finalizado",-1))],_x={class:"game-item__body"},wx={class:"game-item__body__team__info"},kx=["src"],Ex={class:"game-item__body__team__info__acronym"},Tx={class:"game-item__body__team__score"},Cx=[fn(()=>n.createElementVNode("div",null,"Ver →",-1))],xx=qe({__name:"GameItem",props:{game:{type:Object,default:()=>{}}},emits:["clickMatch"],setup(s,{emit:e}){const t=s,a=n.computed(()=>{let l="";const d=Number(t.game.roundAbbreviationV2);if(l=Number.isNaN(d)?t.game.roundAbbreviationV2:`JOR ${d}`,t.game.game_status===4){const c=new Date(t.game.date_time_utc);l+=` • ${c.getDate()} ${$h[c.getMonth()]}`}return l}),i=n.computed(()=>t.game.schedule.replace(":00","")),o=n.computed(()=>[{id:t.game.home_team.team_id,teamLogo:t.game.home_team.logo,acronym:t.game.home_team.acronym,score:t.game.score[0]},{id:t.game.visiting_team.team_id,teamLogo:t.game.visiting_team.logo,acronym:t.game.visiting_team.acronym,score:t.game.score[1]}]);function r(){e("clickMatch")}return(l,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["game-item",{"is-live":s.game.is_live}])},[n.createElementVNode("div",hx,[n.createElementVNode("div",ux,n.toDisplayString(a.value),1),s.game.is_live?(n.openBlock(),n.createElementBlock("div",mx,[fx,n.createElementVNode("div",px,n.toDisplayString(s.game.currentTimeLive||"0'"),1)])):s.game.game_status===4?(n.openBlock(),n.createElementBlock("div",gx,[n.createTextVNode(n.toDisplayString(i.value)+" ",1),yx])):(n.openBlock(),n.createElementBlock("div",bx,Sx))]),n.createElementVNode("div",_x,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.value,c=>(n.openBlock(),n.createElementBlock("div",{key:c.id,class:"game-item__body__team"},[n.createElementVNode("div",wx,[n.createElementVNode("img",{src:c.teamLogo,alt:"team-logo"},null,8,kx),n.createElementVNode("div",Ex,n.toDisplayString(c.acronym),1)]),n.createElementVNode("div",Tx,[n.withDirectives(n.createElementVNode("div",{class:"game-item__body__team__score__value"},n.toDisplayString(c.score||0),513),[[n.vShow,s.game.is_live||s.game.game_status!==4]])])]))),128))]),n.createElementVNode("div",{class:"game-item__footer",onClick:r},Cx)],2))}},[["__scopeId","data-v-fec8d273"]]),vx=qe({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:e}){const t=s,a=n.ref(null);n.watch(()=>t.modelValue,()=>{i()},{immediate:!0});function i(){a.value&&(a.value.checked=t.modelValue)}function o(r){e("update:modelValue",r.target.checked)}return n.onMounted(()=>{i()}),(r,l)=>(n.openBlock(),n.createElementBlock("input",{ref_key:"switchCustom",ref:a,id:"toggle",className:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:o},null,544))}},[["__scopeId","data-v-3571f7e0"]]);/**
28
+ */const je={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},Ih={itemsToShow:{default:je.itemsToShow,type:Number},itemsToScroll:{default:je.itemsToScroll,type:Number},wrapAround:{default:je.wrapAround,type:Boolean},throttle:{default:je.throttle,type:Number},snapAlign:{default:je.snapAlign,validator(s){return["start","end","center","center-even","center-odd"].includes(s)}},transition:{default:je.transition,type:Number},breakpoints:{default:je.breakpoints,type:Object},autoplay:{default:je.autoplay,type:Number},pauseAutoplayOnHover:{default:je.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:je.mouseDrag,type:Boolean},touchDrag:{default:je.touchDrag,type:Boolean},dir:{default:je.dir,validator(s){return["rtl","ltr"].includes(s)}},i18n:{default:je.i18n,type:Object},settings:{default(){return{}},type:Object}};function Fk({config:s,slidesCount:e}){const{snapAlign:t,wrapAround:a,itemsToShow:i=1}=s;if(a)return Math.max(e-1,0);let o;switch(t){case"start":o=e-i;break;case"end":o=e-1;break;case"center":case"center-odd":o=e-Math.ceil((i-.5)/2);break;case"center-even":o=e-Math.ceil(i/2);break;default:o=0;break}return Math.max(o,0)}function Mk({config:s,slidesCount:e}){const{wrapAround:t,snapAlign:a,itemsToShow:i=1}=s;let o=0;if(t||i>e)return o;switch(a){case"start":o=0;break;case"end":o=i-1;break;case"center":case"center-odd":o=Math.floor((i-1)/2);break;case"center-even":o=Math.floor((i-2)/2);break;default:o=0;break}return o}function Fo({val:s,max:e,min:t}){return e<t?s:Math.min(Math.max(s,t),e)}function Vk({config:s,currentSlide:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:o=1}=s;let r=e;switch(a){case"center":case"center-odd":r-=(o-1)/2;break;case"center-even":r-=(o-2)/2;break;case"end":r-=o-1;break}return i?r:Fo({val:r,max:t-o,min:0})}function Rh(s){return s?s.reduce((e,t)=>{var a;return t.type===n.Fragment?[...e,...Rh(t.children)]:((a=t.type)===null||a===void 0?void 0:a.name)==="CarouselSlide"?[...e,t]:e},[]):[]}function Mo({val:s,max:e,min:t=0}){return s>e?Mo({val:s-(e+1),max:e,min:t}):s<t?Mo({val:s+(e+1),max:e,min:t}):s}function $k(s,e){let t;return e?function(...a){const i=this;t||(s.apply(i,a),t=!0,setTimeout(()=>t=!1,e))}:s}function zk(s,e){let t;return function(...a){t&&clearTimeout(t),t=setTimeout(()=>{s(...a),t=null},e)}}function Uk(s="",e={}){return Object.entries(e).reduce((t,[a,i])=>t.replace(`{${a}}`,String(i)),s)}var Gk=n.defineComponent({name:"ARIA",setup(){const s=n.inject("config",n.reactive(Object.assign({},je))),e=n.inject("currentSlide",n.ref(0)),t=n.inject("slidesCount",n.ref(0));return()=>n.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Uk(s.i18n.itemXofY,{currentSlide:e.value+1,slidesCount:t.value}))}}),jk=n.defineComponent({name:"Carousel",props:Ih,setup(s,{slots:e,emit:t,expose:a}){var i;const o=n.ref(null),r=n.ref([]),l=n.ref(0),d=n.ref(0),c=n.reactive(Object.assign({},je));let h=Object.assign({},je),u;const f=n.ref((i=s.modelValue)!==null&&i!==void 0?i:0),p=n.ref(0),m=n.ref(0),g=n.ref(0),y=n.ref(0);let b,S;n.provide("config",c),n.provide("slidesCount",d),n.provide("currentSlide",f),n.provide("maxSlide",g),n.provide("minSlide",y),n.provide("slideWidth",l);function w(){u=Object.assign({},s.breakpoints),h=Object.assign(Object.assign(Object.assign({},h),s),{i18n:Object.assign(Object.assign({},h.i18n),s.i18n),breakpoints:void 0}),E(h)}function x(){if(!u||!Object.keys(u).length)return;const C=Object.keys(u).map(U=>Number(U)).sort((U,M)=>+M-+U);let H=Object.assign({},h);C.some(U=>{const M=window.matchMedia(`(min-width: ${U}px)`).matches;return M&&(H=Object.assign(Object.assign({},H),u[U])),M}),E(H)}function E(C){Object.entries(C).forEach(([H,U])=>c[H]=U)}const v=zk(()=>{x(),B(),T()},16);function T(){if(!o.value)return;const C=o.value.getBoundingClientRect();l.value=C.width/c.itemsToShow}function B(){d.value<=0||(m.value=Math.ceil((d.value-1)/2),g.value=Fk({config:c,slidesCount:d.value}),y.value=Mk({config:c,slidesCount:d.value}),c.wrapAround||(f.value=Fo({val:f.value,max:g.value,min:y.value})))}n.onMounted(()=>{n.nextTick(()=>T()),setTimeout(()=>T(),1e3),x(),Y(),window.addEventListener("resize",v,{passive:!0}),t("init")}),n.onUnmounted(()=>{S&&clearTimeout(S),b&&clearInterval(b),window.removeEventListener("resize",v,{passive:!0})});let L=!1;const R={x:0,y:0},V={x:0,y:0},q=n.reactive({x:0,y:0}),j=n.ref(!1),ae=n.ref(!1),oe=()=>{j.value=!0},ie=()=>{j.value=!1};function ce(C){["INPUT","TEXTAREA","SELECT"].includes(C.target.tagName)||(L=C.type==="touchstart",L||C.preventDefault(),!(!L&&C.button!==0||X.value)&&(R.x=L?C.touches[0].clientX:C.clientX,R.y=L?C.touches[0].clientY:C.clientY,document.addEventListener(L?"touchmove":"mousemove",de,!0),document.addEventListener(L?"touchend":"mouseup",Q,!0)))}const de=$k(C=>{ae.value=!0,V.x=L?C.touches[0].clientX:C.clientX,V.y=L?C.touches[0].clientY:C.clientY;const H=V.x-R.x,U=V.y-R.y;q.y=U,q.x=H},c.throttle);function Q(){const C=c.dir==="rtl"?-1:1,H=Math.sign(q.x)*.4,U=Math.round(q.x/l.value+H)*C;if(U&&!L){const M=J=>{window.removeEventListener("click",M,!0)};window.addEventListener("click",M,!0)}Z(f.value-U),q.x=0,q.y=0,ae.value=!1,document.removeEventListener(L?"touchmove":"mousemove",de,!0),document.removeEventListener(L?"touchend":"mouseup",Q,!0)}function Y(){!c.autoplay||c.autoplay<=0||(b=setInterval(()=>{c.pauseAutoplayOnHover&&j.value||ue()},c.autoplay))}function he(){b&&(clearInterval(b),b=null),Y()}const X=n.ref(!1);function Z(C){const H=c.wrapAround?C:Fo({val:C,max:g.value,min:y.value});f.value===H||X.value||(t("slide-start",{slidingToIndex:C,currentSlideIndex:f.value,prevSlideIndex:p.value,slidesCount:d.value}),X.value=!0,p.value=f.value,f.value=H,S=setTimeout(()=>{if(c.wrapAround){const U=Mo({val:H,max:g.value,min:0});U!==f.value&&(f.value=U,t("loop",{currentSlideIndex:f.value,slidingToIndex:C}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:p.value,slidesCount:d.value}),X.value=!1,he()},c.transition))}function ue(){Z(f.value+c.itemsToScroll)}function ye(){Z(f.value-c.itemsToScroll)}const Ce={slideTo:Z,next:ue,prev:ye};n.provide("nav",Ce),n.provide("isSliding",X);const se=n.computed(()=>Vk({config:c,currentSlide:f.value,slidesCount:d.value}));n.provide("slidesToScroll",se);const Ee=n.computed(()=>{const C=c.dir==="rtl"?-1:1,H=se.value*l.value*C;return{transform:`translateX(${q.x-H}px)`,transition:`${X.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${d.value*l.value}px`:"",width:"100%"}});function Te(){w(),x(),B(),T(),he()}Object.keys(Ih).forEach(C=>{["modelValue"].includes(C)||n.watch(()=>s[C],Te)}),n.watch(()=>s.modelValue,C=>{C!==f.value&&Z(Number(C))}),n.watch(d,B),t("before-init"),w();const Oe={config:c,slidesCount:d,slideWidth:l,next:ue,prev:ye,slideTo:Z,currentSlide:f,maxSlide:g,minSlide:y,middleSlide:m};a({updateBreakpointsConfigs:x,updateSlidesData:B,updateSlideWidth:T,initDefaultConfigs:w,restartCarousel:Te,slideTo:Z,next:ue,prev:ye,nav:Ce,data:Oe});const et=e.default||e.slides,it=e.addons,ot=n.reactive(Oe);return()=>{const C=Rh(et==null?void 0:et(ot)),H=(it==null?void 0:it(ot))||[];C.forEach((G,z)=>G.props.index=z);let U=C;if(c.wrapAround){const G=C.map((K,W)=>n.cloneVNode(K,{index:-C.length+W,isClone:!0,key:`clone-before-${W}`})),z=C.map((K,W)=>n.cloneVNode(K,{index:C.length+W,isClone:!0,key:`clone-after-${W}`}));U=[...G,...C,...z]}r.value=C,d.value=Math.max(C.length,1);const M=n.h("ol",{class:"carousel__track",style:Ee.value,onMousedownCapture:c.mouseDrag?ce:null,onTouchstartPassiveCapture:c.touchDrag?ce:null},U),J=n.h("div",{class:"carousel__viewport"},M);return n.h("section",{ref:o,class:{carousel:!0,"is-sliding":X.value,"is-dragging":ae.value,"is-hover":j.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:oe,onMouseleave:ie},[J,H,n.h(Gk)])}}}),Vo;(function(s){s.arrowUp="arrowUp",s.arrowDown="arrowDown",s.arrowRight="arrowRight",s.arrowLeft="arrowLeft"})(Vo||(Vo={}));const Hk={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function Wk(s){return s in Vo}const $o=s=>{const e=n.inject("config",n.reactive(Object.assign({},je))),t=String(s.name),a=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!Wk(t))return;const i=Hk[t],o=n.h("path",{d:i}),r=e.i18n[a]||s.title||t,l=n.h("title",r);return n.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,o])};$o.props={name:String,title:String};const Kk=(s,{slots:e,attrs:t})=>{const{next:a,prev:i}=e||{},o=n.inject("config",n.reactive(Object.assign({},je))),r=n.inject("maxSlide",n.ref(1)),l=n.inject("minSlide",n.ref(1)),d=n.inject("currentSlide",n.ref(1)),c=n.inject("nav",{}),{dir:h,wrapAround:u,i18n:f}=o,p=h==="rtl",m=n.h("button",{type:"button",class:["carousel__prev",!u&&d.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(i==null?void 0:i())||n.h($o,{name:p?"arrowRight":"arrowLeft"})),g=n.h("button",{type:"button",class:["carousel__next",!u&&d.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(a==null?void 0:a())||n.h($o,{name:p?"arrowLeft":"arrowRight"}));return[m,g]};var qk=n.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(s,{slots:e}){const t=n.inject("config",n.reactive(Object.assign({},je))),a=n.inject("currentSlide",n.ref(0)),i=n.inject("slidesToScroll",n.ref(0)),o=n.inject("isSliding",n.ref(!1)),r=n.computed(()=>s.index===a.value),l=n.computed(()=>s.index===a.value-1),d=n.computed(()=>s.index===a.value+1),c=n.computed(()=>{const h=Math.floor(i.value),u=Math.ceil(i.value+t.itemsToShow-1);return s.index>=h&&s.index<=u});return()=>{var h;return n.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":s.isClone,"carousel__slide--visible":c.value,"carousel__slide--active":r.value,"carousel__slide--prev":l.value,"carousel__slide--next":d.value,"carousel__slide--sliding":o.value},"aria-hidden":!c.value},(h=e.default)===null||h===void 0?void 0:h.call(e,{isActive:r.value,isClone:s.isClone,isPrev:l.value,isNext:d.value,isSliding:o.value,isVisible:c.value}))}}});const Lt=(s,e)=>{const t=s.__vccOpts||s;for(const[a,i]of e)t[a]=i;return t},Bh=s=>(n.pushScopeId("data-v-15f082dd"),s=s(),n.popScopeId(),s),Yk={key:1,class:"match-day__live"},Jk=Bh(()=>n.createElementVNode("div",{class:"match-day__live__bullet"},null,-1)),Xk=Bh(()=>n.createElementVNode("div",{class:"match-day__live__text"},"LIVE",-1)),Zk=[Jk,Xk],Qk={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(s,{emit:e}){const t=s,a=n.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),i=n.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),o=n.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){e("click-match-day",l)}return(l,d)=>(n.openBlock(),n.createElementBlock("div",{class:"match-day",style:n.normalizeStyle({...a.value}),onClick:d[0]||(d[0]=c=>r(s.matchDay))},[n.createElementVNode("div",{class:"match-day__value",style:n.normalizeStyle(i.value)},n.toDisplayString(s.matchDay.valueText),5),!Number.isNaN(s.matchDay.value)&&!s.matchDay.liveGamesIds.size?(n.openBlock(),n.createElementBlock("div",{key:0,class:"match-day__text",style:n.normalizeStyle([s.isLandingMode?"margin-top:3px":"margin-top:4px",o.value])},n.toDisplayString(s.isLandingMode||s.componentWidth<=425?"JOR":"JORNADA"),5)):s.matchDay.liveGamesIds.size?(n.openBlock(),n.createElementBlock("div",Yk,Zk)):n.createCommentVNode("",!0)],4))}},eE=Lt(Qk,[["__scopeId","data-v-15f082dd"]]),tE={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(s,{emit:e}){const t=s;n.useCssVars(c=>({"26769adc":o.value,"2678c95c":r.value}));const a=n.ref(null),i=n.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),o=n.computed(()=>a.value.data.currentSlide.value==0?"none":"inline"),r=n.computed(()=>a.value.data.currentSlide.value==a.value.data.maxSlide.value?"none":"inline"),l=n.ref({});n.watch(()=>t.closestMatchDay,c=>{if(c){const h=t.matchDays.find(u=>u.key===c);d(h||t.matchDays[0],!0)}}),n.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const h=c.find(u=>u.key===t.defaultMatchDayKey);l.value=h||c[0],e("change-match-day",l.value)}else t.closestMatchDay&&(l.value=c.find(h=>h.key===t.closestMatchDay)||{})},{immediate:!0});function d(c,h=!1){h&&a.value&&a.value.slideTo(c.index),l.value=c,e("change-match-day",l.value)}return(c,h)=>(n.openBlock(),n.createElementBlock("div",{class:"match-day-picker",style:n.normalizeStyle(s.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[n.createVNode(n.unref(jk),n.mergeProps(i.value,{ref_key:"matchDayPickerCarousel",ref:a}),{addons:n.withCtx(()=>[n.createVNode(n.unref(Kk))]),default:n.withCtx(()=>[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.matchDays,u=>(n.openBlock(),n.createBlock(n.unref(qk),{key:u.key},{default:n.withCtx(()=>[n.createVNode(eE,n.mergeProps(t,{"match-day":u,"match-day-selected":l.value,"is-landing-mode":s.isLandingMode,"component-width":s.componentWidth,onClickMatchDay:d}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},sE=Lt(tE,[["__scopeId","data-v-1621f164"]]);function Bs(s,e=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${e}/${s}.png`}function Nh(s){if(typeof s=="string"){let e=s.replace("M","J ");return e=e.replace("PO1","CFI"),e=e.replace("PO2","CFV"),e=e.replace("PO3","SFI"),e=e.replace("PO4","SFV"),e=e.replace("PO5","FI"),e=e.replace("PO6","FV"),e}}function aE(s){let e="";return s.game_status!=4&&(e+="Finalizado"),(s.penalties_score_home_team!=0||s.penalties_score_visiting_team!=0)&&(e+=" - Penales "+s.penalties_score_home_team+" - "+s.penalties_score_visiting_team),e}const nE={class:"game-info__teams"},iE={class:"game-info__teams__team__logo"},oE=["src"],rE={class:"game-info__teams__detail"},lE={key:0,class:"game-info__teams__detail__pre-game"},cE={class:"game-info__teams__team__logo away"},dE=["src"],hE={key:0},uE={key:0},mE={key:1},fE={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(s){const e=s,t=n.computed(()=>{let c=e.game.schedule.split(":");return c.pop(),c=c.join(":"),c}),a=n.computed(()=>{let c="120px";return(e.isLandingMode||e.isAcronymVisible)&&(c="70px"),{"min-width":c}}),i=n.computed(()=>({"font-size":e.namesFontSize,"font-family":e.namesFontFamily,color:e.colorPrimary})),o=n.computed(()=>({"font-size":e.additionalInfoFontSize,"font-family":e.additionalInfoFontFamily,color:e.colorSecondary})),r=n.computed(()=>({"font-size":e.scoreFontSize,"font-family":e.scoreFontFamily,color:e.colorPrimary})),l=n.computed(()=>({"font-size":e.timeZoneFontSize,"font-family":e.namesFontFamily,color:e.colorPrimary})),d=n.computed(()=>({"font-size":e.timeFontSize,"font-family":e.namesFontFamily,color:e.colorPrimary}));return(c,h)=>(n.openBlock(),n.createElementBlock("div",{class:"game-info",style:n.normalizeStyle(s.isLandingMode?"gap:5px":"")},[n.createElementVNode("div",nE,[n.createElementVNode("div",{class:"game-info__teams__team",style:n.normalizeStyle(a.value)},[n.createElementVNode("div",{class:"game-info__teams__team__name",style:n.normalizeStyle(i.value)},n.toDisplayString(s.isLandingMode||s.isAcronymVisible?s.game.home_team.acronym:s.game.home_team.colloquial_name),5),n.createElementVNode("div",iE,[n.createElementVNode("img",{src:n.unref(Bs)(s.game.home_team.team_id),alt:""},null,8,oE)])],4),n.createElementVNode("div",rE,[s.game.game_status===4&&!s.game.is_live?(n.openBlock(),n.createElementBlock("div",lE,[n.createElementVNode("div",null,[n.createElementVNode("span",{style:n.normalizeStyle(d.value)},n.toDisplayString(t.value),5),n.createTextVNode(),n.createElementVNode("span",{style:n.normalizeStyle(l.value)},"CST",4)])])):(n.openBlock(),n.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:n.normalizeStyle(r.value)},[n.createElementVNode("span",null,n.toDisplayString(s.game.score[0])+" - "+n.toDisplayString(s.game.score[1]),1)],4))]),n.createElementVNode("div",{class:"game-info__teams__team away",style:n.normalizeStyle(a.value)},[n.createElementVNode("div",cE,[n.createElementVNode("img",{src:n.unref(Bs)(s.game.visiting_team.team_id),alt:""},null,8,dE)]),n.createElementVNode("div",{class:"game-info__teams__team__name",style:n.normalizeStyle(i.value)},n.toDisplayString(s.isLandingMode||s.isAcronymVisible?s.game.visiting_team.acronym:s.game.visiting_team.colloquial_name),5)],4)]),n.createElementVNode("div",{class:"game-info__status",style:n.normalizeStyle([o.value,s.isLandingMode?"line-height: normal":""])},[s.game.game_status===4&&!s.game.is_live?(n.openBlock(),n.createElementBlock("span",hE,[s.isTelevisionVisible?(n.openBlock(),n.createElementBlock("span",uE,n.toDisplayString(s.game.tv_stations.join(", ")),1)):n.createCommentVNode("",!0)])):(n.openBlock(),n.createElementBlock("span",mE,n.toDisplayString(n.unref(aE)(s.game)),1))],4)],4))}},Dh=Lt(fE,[["__scopeId","data-v-9460f42e"]]),Ph=s=>(n.pushScopeId("data-v-e2fc9ed0"),s=s(),n.popScopeId(),s),pE={class:"game-status"},gE={key:0,class:"game-status__day__live"},yE=Ph(()=>n.createElementVNode("span",null,"LIVE",-1)),bE=Ph(()=>n.createElementVNode("span",{class:"dot"},null,-1)),SE=[yE,bE],_E={key:0,class:"game-status__round"},wE={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(s){const e=s,t=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],a=n.computed(()=>{let r="";if(e.dateTimeMillis){const l=new Date(e.dateTimeMillis);r=`${l.getDate()} ${t[l.getMonth()]}`}return r}),i=n.computed(()=>({"font-size":e.fontSize})),o=n.computed(()=>{let r=[];return e.isLive?r.push("live"):e.status!==1&&r.push("pre-match"),r});return(r,l)=>(n.openBlock(),n.createElementBlock("div",pE,[n.createElementVNode("div",{class:n.normalizeClass(["game-status__day",o.value]),style:n.normalizeStyle(i.value)},[s.isLive?(n.openBlock(),n.createElementBlock("div",gE,SE)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString(a.value),1)],64))],6),s.isRoundMode?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",_E,n.toDisplayString(s.roundAbbreviation),1))]))}},Oh=Lt(wE,[["__scopeId","data-v-e2fc9ed0"]]),It={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},kE=s=>(n.pushScopeId("data-v-5711c5a6"),s=s(),n.popScopeId(),s),EE={class:"actions"},TE={class:"actions__row"},CE=kE(()=>n.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),xE=[CE],vE={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},AE=["fill"],LE={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},IE=["fill"],RE={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(s,{emit:e}){const t=s,a=n.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor}));function i(o){e("action",o)}return(o,r)=>(n.openBlock(),n.createElementBlock("div",EE,[n.createElementVNode("div",TE,[n.createElementVNode("div",{class:"actions__button rounded",style:n.normalizeStyle(a.value),onClick:r[0]||(r[0]=l=>i(n.unref(It).STATISTICS))},xE,4),s.showPlayButton&&s.hasVideo?(n.openBlock(),n.createElementBlock("div",{key:0,class:"actions__button rounded",style:n.normalizeStyle(a.value),onClick:r[1]||(r[1]=l=>i(n.unref(It).PLAY_RESUME))},[(n.openBlock(),n.createElementBlock("svg",vE,[n.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,AE)]))],4)):n.createCommentVNode("",!0),s.gameStatus===4444&&!s.isLive?(n.openBlock(),n.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=l=>i(n.unref(It).NOTIFICATION))},[(n.openBlock(),n.createElementBlock("svg",LE,[n.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,IE)]))])):n.createCommentVNode("",!0)])]))}},BE=Lt(RE,[["__scopeId","data-v-5711c5a6"]]),zo=s=>(n.pushScopeId("data-v-d64f8667"),s=s(),n.popScopeId(),s),NE={class:"actions"},DE={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},PE=["fill"],OE={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},FE=["fill"],ME=zo(()=>n.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),n.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),VE=[ME],$E={key:0,class:"actions__videos"},zE={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},UE=["fill"],GE={key:1,class:"actions__videos__thumbnails"},jE=zo(()=>n.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),HE=zo(()=>n.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),WE={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},KE=["stroke"],qE={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},hasGoals:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(s){return s>0}}},emits:["action"],setup(s,{emit:e}){const t=s,a=n.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor})),i=n.computed(()=>{const d=[];return t.componentWidth<540&&d.push("mobile"),d}),o=n.computed(()=>t.componentWidth>730),r=n.computed(()=>({color:t.thumbnailColor,fontFamily:t.thumbnailFontFamily,fontSize:t.thumbnailFontSize}));function l(d){e("action",d)}return(d,c)=>(n.openBlock(),n.createElementBlock("div",NE,[n.createElementVNode("div",{class:n.normalizeClass(["actions__buttons",i.value])},[s.gameStatus===4444&&!s.isLive&&!o.value?(n.openBlock(),n.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=h=>l(n.unref(It).NOTIFICATION))},[(n.openBlock(),n.createElementBlock("svg",DE,[n.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,PE)]))])):n.createCommentVNode("",!0),s.showPlayButton&&s.hasVideo&&!o.value?(n.openBlock(),n.createElementBlock("div",{key:1,class:"actions__button rounded",style:n.normalizeStyle(a.value),onClick:c[1]||(c[1]=h=>l(n.unref(It).PLAY_RESUME))},[(n.openBlock(),n.createElementBlock("svg",OE,[n.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,FE)]))],4)):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"actions__button rounded",style:n.normalizeStyle(a.value),onClick:c[2]||(c[2]=h=>l(n.unref(It).STATISTICS))},VE,4)],2),o.value?(n.openBlock(),n.createElementBlock("div",$E,[s.gameStatus===4444&&!s.isLive?(n.openBlock(),n.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=h=>l(n.unref(It).NOTIFICATION))},[(n.openBlock(),n.createElementBlock("svg",zE,[n.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,UE)]))])):n.createCommentVNode("",!0),s.showPlayButton&&s.hasVideo?(n.openBlock(),n.createElementBlock("div",GE,[s.hasGoals?(n.openBlock(),n.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=h=>l(n.unref(It).PLAY_GOALS))},[jE,n.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:n.normalizeStyle(r.value)}," Goles ",4)])):n.createCommentVNode("",!0),n.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=h=>l(n.unref(It).PLAY_RESUME))},[HE,n.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:n.normalizeStyle(r.value)}," Resumen ",4)])])):n.createCommentVNode("",!0)])):n.createCommentVNode("",!0),(s.gameStatus!==4||s.isLive)&&s.hasActions?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["actions__button expand",{"rotated-180":s.areEventsVisible,mobile:s.componentWidth<540}]),onClick:c[6]||(c[6]=h=>l(n.unref(It).SHOW_GAME_EVENTS))},[(n.openBlock(),n.createElementBlock("svg",WE,[n.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:s.arrowColor},null,8,KE)]))],2)):(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:s.componentWidth<540}])},null,2))]))}},YE=Lt(qE,[["__scopeId","data-v-d64f8667"]]),un=s=>(n.pushScopeId("data-v-2968a2f6"),s=s(),n.popScopeId(),s),JE={class:"row-landing__game-status"},XE={class:"row-landing__game-actions"},ZE={class:"row-full__game-status"},QE={class:"row-full__game-info"},eT={key:0},tT={class:"row-full__game-actions"},sT={class:"game-events-container"},aT=un(()=>n.createElementVNode("div",{class:"separator"},null,-1)),nT=un(()=>n.createElementVNode("div",null,null,-1)),iT={class:"game-events__data"},oT={class:"game-events__data__team"},rT=["src"],lT={class:"game-events__data__team__event__text"},cT={class:"game-events__data__team away"},dT={class:"game-events__data__team__event__text"},hT=["src"],uT=un(()=>n.createElementVNode("div",null,null,-1)),mT=un(()=>n.createElementVNode("div",null,null,-1)),fT={__name:"CalendarRow",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(s){return s>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(s,{emit:e}){const t=s,a={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},i=n.ref(!1),o=n.ref(!1),r=n.computed(()=>{const y={homeTeam:[],awayTeam:[]};return t.game&&t.game.game_status!==4&&!t.game.is_live&&t.game.minutes&&(y.homeTeam.push(...m(t.game.minutes.home_goals_minutes,a.GOAL)),y.homeTeam.push(...m(t.game.minutes.home_red_cards_minutes,a.RED_CARD)),y.homeTeam.push(...m(t.game.minutes.home_yellow_cards_minutes,a.YELLOW_CARD)),y.awayTeam.push(...m(t.game.minutes.visiting_goals_minutes,a.GOAL)),y.awayTeam.push(...m(t.game.minutes.away_red_cards_minutes,a.RED_CARD)),y.awayTeam.push(...m(t.game.minutes.away_yellow_cards_minutes,a.YELLOW_CARD))),y}),l=n.computed(()=>{const y=r.value.homeTeam.length,b=r.value.awayTeam.length;return y+b>0}),d=n.computed(()=>{const y=t.game.score[0],b=t.game.score[1];return y>0||b>0}),c=n.computed(()=>({"background-color":t.backgroundColor})),h=n.computed(()=>({height:t.height})),u=n.computed(()=>{const y={game:[],events:[]};return t.componentWidth<500?(y.events.push("break-point-3"),y.game.push("break-point-2")):t.componentWidth<730?(y.game.push("break-point-2"),y.events.push("break-point-2")):t.componentWidth<910&&(y.game.push("break-point-1"),y.events.push("break-point-1")),y}),f=n.computed(()=>({isLandingMode:t.isLandingMode,game:t.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),p=n.computed(()=>({"font-size":t.televisionFontSize,"font-family":t.televisionFontFamily,color:t.televisionColor}));n.watch(()=>t.componentWidth,y=>{o.value=y<910});function m(y,b){return y.map(S=>({iconUrl:b,text:S}))}function g(y){y===It.SHOW_GAME_EVENTS?i.value=!i.value:e("action",{action:y,game:t.game})}return(y,b)=>s.isLandingMode?(n.openBlock(),n.createElementBlock("div",{key:0,class:"row-landing",style:n.normalizeStyle(c.value)},[n.createVNode(Dh,{game:s.game,"is-landing-mode":s.isLandingMode},null,8,["game","is-landing-mode"]),n.createElementVNode("div",JE,[n.createVNode(Oh,{status:s.game.game_status,"is-live":!!s.game.is_live,"date-time-millis":s.game.dateTimeMillis,"round-abbreviation":n.unref(Nh)(s.game.matchday_abbreviation),"is-landing-mode":s.isLandingMode,"is-round-mode":s.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),n.createElementVNode("div",XE,[s.game.home_team?(n.openBlock(),n.createBlock(BE,{key:0,"is-live":!!s.game.is_live,"has-video":s.showVideos==0||s.showVideos==1&&s.teamId==s.game.home_team.team_id?!!s.game.has_video:!1,"game-status":s.game.game_status,"show-play-button":!0,onAction:g},null,8,["is-live","has-video","game-status"])):n.createCommentVNode("",!0)])],4)):(n.openBlock(),n.createElementBlock("div",{key:1,class:"row-full-container",style:n.normalizeStyle(c.value)},[n.createElementVNode("div",{class:n.normalizeClass(["row-full",u.value.game]),style:n.normalizeStyle(h.value)},[n.createElementVNode("div",ZE,[n.createVNode(Oh,{status:s.game.game_status,"is-live":!!s.game.is_live,"date-time-millis":s.game.dateTimeMillis,"round-abbreviation":n.unref(Nh)(s.game.matchday_abbreviation),"is-landing-mode":s.isLandingMode,"is-round-mode":s.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),n.createElementVNode("div",QE,[n.createVNode(Dh,n.mergeProps(f.value,{"is-television-visible":o.value,game:s.game,"is-landing-mode":s.isLandingMode,"is-acronym-visible":s.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),s.componentWidth>=910?(n.openBlock(),n.createElementBlock("div",{key:0,class:"row-full__television",style:n.normalizeStyle(p.value)},[!o.value&&(s.game.game_status===4||s.game.is_live)?(n.openBlock(),n.createElementBlock("span",eT,n.toDisplayString(s.game.tv_stations.join(", ")),1)):n.createCommentVNode("",!0)],4)):n.createCommentVNode("",!0),n.createElementVNode("div",tT,[s.game.home_team?(n.openBlock(),n.createBlock(YE,{key:0,"is-live":!!s.game.is_live,"has-video":s.showVideos==0||s.showVideos==1&&s.teamId==s.game.home_team.team_id?!!s.game.has_video:!1,"has-actions":l.value,"has-goals":s.showVideos==0||s.showVideos==1&&s.teamId==s.game.home_team.team_id?d.value:!1,"game-status":s.game.game_status,"show-play-button":!0,"are-events-visible":i.value,"component-width":s.componentWidth,onAction:g},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])):n.createCommentVNode("",!0)])],6),n.createVNode(n.Transition,null,{default:n.withCtx(()=>[n.withDirectives(n.createElementVNode("div",sT,[aT,n.createElementVNode("div",{class:n.normalizeClass(["game-events",u.value.events])},[nT,n.createElementVNode("div",iT,[n.createElementVNode("div",oT,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.homeTeam,(S,w)=>(n.openBlock(),n.createElementBlock("div",{key:`h${w}`,class:"game-events__data__team__event"},[n.createElementVNode("img",{src:S.iconUrl},null,8,rT),n.createElementVNode("div",lT,n.toDisplayString(S.text),1)]))),128))]),n.createElementVNode("div",cT,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.awayTeam,(S,w)=>(n.openBlock(),n.createElementBlock("div",{key:`a${w}`,class:"game-events__data__team__event"},[n.createElementVNode("div",dT,n.toDisplayString(S.text),1),n.createElementVNode("img",{src:S.iconUrl},null,8,hT)]))),128))])]),uT,mT],2)],512),[[n.vShow,i.value]])]),_:1})],4))}},Fh=Lt(fT,[["__scopeId","data-v-2968a2f6"]]),pT={class:"calendar-table"},gT={__name:"CalendarTable",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(s){return s>0}}},emits:["action"],setup(s,{emit:e}){const t=s;function a(o){return o%2===0?t.evenRowColor:t.oddRowColor}function i(o){e("action",o)}return(o,r)=>(n.openBlock(),n.createElementBlock("div",pT,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(s.gamesPerPage,(l,d)=>(n.openBlock(),n.createBlock(Fh,{key:l.game_id,game:l,"team-id":s.teamId,"show-videos":s.showVideos,"is-landing-mode":s.isLandingMode,height:s.rowHeight,"background-color":a(d),"component-width":s.componentWidth,"is-round-mode":s.isRoundMode,onAction:i},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},yT=Lt(gT,[["__scopeId","data-v-c7bf1232"]]),bT={class:"calendar-by-team"},ST={class:"playing-as-picker"},_T={class:"calendar-by-team__page"},wT={__name:"CalendarTableByTeam",props:{showVideos:{type:Number,default:0},teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(s){return s>0}}},emits:["action"],setup(s,{emit:e}){const t=s,a=n.ref(0),i=n.computed(()=>{let d=[];if(t.gamesPages.size>0){const c=Array.from(t.gamesPages.entries()).reduce((h,[u,f])=>{const p=Number(u),m=Number.isNaN(p)?u:`Jornada ${p<10?"0":""}${p}`,g=f.reduce((y,b)=>(y.push(...b),y),[]).filter(y=>a.value===0||a.value===1&&y.visiting_team.team_id===t.teamId?!0:a.value===2&&y.home_team.team_id===t.teamId);return g.length>0&&h.push({roundName:m,games:g}),h},[]);d.push(c)}return d});function o(d){e("action",d)}function r(d){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),a.value=d,document.querySelector("#opc"+d).classList.add("selected")}function l(d){let c=d;switch(d){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(d,c)=>(n.openBlock(),n.createElementBlock("div",bT,[n.createElementVNode("div",ST,[n.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=h=>r(0))}," Todas "),n.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=h=>r(1))},"Visitante"),n.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=h=>r(2))},"Local")]),n.createVNode(n.unref(Lh),{"is-pagination-visible":s.isPaginationVisible,items:i.value},{default:n.withCtx(({item:h})=>[n.createElementVNode("div",_T,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(h,(u,f)=>(n.openBlock(),n.createElementBlock("div",{key:f,class:"calendar-by-team__page__round"},[n.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:n.normalizeStyle([{color:"white"},s.componentWidth<=425?"padding: 5px 10px":""])},n.toDisplayString(l(u.roundName)),5),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(u.games,p=>(n.openBlock(),n.createBlock(Fh,{key:p.game_id,game:p,"team-id":s.teamId,"show-videos":s.showVideos,"is-landing-mode":s.isLandingMode,height:s.rowHeight,"background-color":s.gameRowColor,"component-width":s.componentWidth,"is-round-mode":s.isRoundMode,onAction:o},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},kT=Lt(wT,[["__scopeId","data-v-6e0e406c"]]),ET="_liveMinutes_1utnm_2",TT="_viewButtomEvent_1utnm_6",CT="_containerEvents_1utnm_20",xT="_sepEvents_1utnm_26",vT="_goalsContainer_1utnm_36",AT="_yellowContainer_1utnm_44",LT="_redContainer_1utnm_52",IT="_containerEventsGameHometeam_1utnm_60",RT="_containerEventsGameAwayteam_1utnm_73",BT="_image62Icon_1utnm_86",NT="_imgChivasIcon_1utnm_95",DT="_nameDesktop_1utnm_102",PT="_nameMobile_1utnm_115",OT="_homeTeam_1utnm_127",FT="_sbado16De_1utnm_138",MT="_gameDate_1utnm_147",VT="_sab16092023_1utnm_151",$T="_div_1utnm_164",zT="_divscore_1utnm_173",UT="_cst_1utnm_183",GT="_hour_1utnm_192",jT="_score_1utnm_193",HT="_chivasTvCanal_1utnm_204",WT="_gameStatus_1utnm_216",KT="_matchInfo_1utnm_227",qT="_image62Icon1_1utnm_241",YT="_name_1utnm_102",JT="_imgAtlasIcon_1utnm_263",XT="_name1_1utnm_270",ZT="_awayTeam_1utnm_282",QT="_matchCard_1utnm_293",eC={liveMinutes:ET,viewButtomEvent:TT,containerEvents:CT,sepEvents:xT,goalsContainer:vT,yellowContainer:AT,redContainer:LT,containerEventsGameHometeam:IT,containerEventsGameAwayteam:RT,image62Icon:BT,imgChivasIcon:NT,nameDesktop:DT,nameMobile:PT,homeTeam:OT,sbado16De:FT,gameDate:MT,sab16092023:VT,div:$T,divscore:zT,cst:UT,hour:GT,score:jT,chivasTvCanal:HT,gameStatus:WT,matchInfo:KT,image62Icon1:qT,name:YT,imgAtlasIcon:JT,name1:XT,awayTeam:ZT,matchCard:QT},tC=["src"],sC=["src"],aC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),nC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),iC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),oC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),rC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),lC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),cC=n.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),dC={key:0},hC=n.createElementVNode("div",null,"ver eventos",-1),uC=n.createElementVNode("img",{width:"13",style:{"margin-top":"1px"},src:"http://golstatsimages.blob.core.windows.net/todoelfut/arrow-live-down.png"},null,-1),mC=["src"],fC=["src"],pC={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},gC={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},yC={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},bC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),SC=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),_C=n.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),wC={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}},playsLive:{type:Object,default:()=>{}},is_captured:{type:Number,default:1},infoLive:{type:Object,default:()=>{}}},emits:["open-modal-event"],setup(s,{emit:e}){const t=s,a=new Map([[1,45],[2,90],[3,105],[4,120]]),i=n.computed(()=>{const h=a.get(t.infoLive.recent_lapse);return h&&h<t.infoLive.minute?`${h}' + ${t.infoLive.minute-h}'`:`${t.infoLive.minute}'`}),o=n.computed(()=>{let h=0,u=0,f=!1;var p=!1;return Object.keys(t.infoLive).includes("score")&&(t.infoLive.score["own_"+t.game.home_team.team_id]!=null&&t.infoLive.score["own_"+t.game.home_team.team_id]!=0&&(p=!0),t.infoLive.score["own_"+t.game.visiting_team.team_id]!=null&&t.infoLive.score["own_"+t.game.visiting_team.team_id]!=0&&(f=!0),f?t.infoLive.score[t.game.home_team.team_id]!=null&&(h=parseInt(t.infoLive.score[t.game.home_team.team_id])+parseInt(t.infoLive.score["own_"+t.game.visiting_team.team_id])):t.infoLive.score[t.game.home_team.team_id]!=null&&(h=parseInt(t.infoLive.score[t.game.home_team.team_id])),p?t.infoLive.score[t.game.visiting_team.team_id]!=null&&(u=parseInt(t.infoLive.score[t.game.visiting_team.team_id])+parseInt(t.infoLive.score["own_"+t.game.home_team.team_id])):t.infoLive.score[t.game.visiting_team.team_id]!=null&&(u=parseInt(t.infoLive.score[t.game.visiting_team.team_id]))),h+" - "+u}),r=n.computed(()=>{const h={...t.game};return h.gameSchedule=t.game.schedule.split(":"),h.gameSchedule.pop(),h.gameSchedule=h.gameSchedule.join(":"),h});function l(h){let u=h.split(" "),f=u[u.length-2];return f.includes("+")?u[u.length-3]+"+"+u[u.length-1]:(f=u[u.length-1],f)}function d(h){e("open-modal-event",h)}function c(h,u){const f=new Date(h);if(u==1){const p=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],m=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${p[f.getDay()]} ${f.getDate()} de ${m[f.getMonth()]}`}else return`${f.getDate()}-${f.getMonth()+1}-${f.getFullYear()}`}return(h,u)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(h.$style.matchCard)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.homeTeam),id:"container-home-team"},[n.createElementVNode("img",{class:n.normalizeClass(h.$style.image62Icon),alt:"",src:n.unref(Bs)(r.value.home_team.team_id,150)},null,10,tC),n.createElementVNode("img",{class:n.normalizeClass(h.$style.imgChivasIcon),alt:"",src:n.unref(Bs)(r.value.home_team.team_id)},null,10,sC),n.createElementVNode("h3",{class:n.normalizeClass(h.$style.nameDesktop),id:"team-name"},n.toDisplayString(r.value.home_team.colloquial_name),3),n.createElementVNode("h3",{class:n.normalizeClass(h.$style.nameMobile),id:"team-name"},n.toDisplayString(r.value.home_team.acronym),3),r.value.game_status==1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[r.value.is_live==0&&r.value.game_status==1||Object.keys(r.value.minutes).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.containerEventsGameHometeam)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.containerEvents)},[r.value.minutes.home_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.goalsContainer)},[aC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.home_goals_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f).replace("(AG)","")),1),p!=r.value.minutes.home_goals_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0),r.value.minutes.home_red_cards_minutes.length>0&&r.value.minutes.home_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),r.value.minutes.home_red_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(h.$style.yellowContainer)},[nC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.home_red_cards_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f)),1),p!=r.value.minutes.home_red_cards_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0),r.value.minutes.home_red_cards_minutes.length>0||r.value.minutes.home_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),r.value.minutes.home_yellow_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:4,class:n.normalizeClass(h.$style.redContainer)},[iC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.home_yellow_cards_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f)),1),p!=r.value.minutes.home_yellow_cards_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],2)],2)):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.value.is_live==1&&r.value.game_status!=1||r.value.game_status==0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.containerEventsGameHometeam)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.containerEvents)},[Object.keys(s.playsLive).length>0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[s.playsLive[s.game.home_team.team_id]&&"goals"in s.playsLive[s.game.home_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[Object.keys(s.playsLive[s.game.home_team.team_id].goals).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.goalsContainer)},[oC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.home_team.team_id].goals),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.home_team.team_id].goals[f].event.map(m=>`${m}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(s.playsLive[s.game.home_team.team_id].goals).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),s.playsLive[s.game.home_team.team_id]&&"red"in s.playsLive[s.game.home_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[Object.keys(s.playsLive[s.game.home_team.team_id].red).length>0&&Object.keys(s.playsLive[s.game.home_team.team_id].goals).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),Object.keys(s.playsLive[s.game.home_team.team_id].red).length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.yellowContainer)},[rC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.home_team.team_id].red),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.home_team.team_id].red[f].event.map(m=>`${m}'`).join(", ")),1),p!=Object.keys(s.playsLive[s.game.home_team.team_id].red).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),s.playsLive[s.game.home_team.team_id]&&"yellow"in s.playsLive[s.game.home_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[Object.keys(s.playsLive[s.game.home_team.team_id].red).length>0||Object.keys(s.playsLive[s.game.home_team.team_id].goals).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),Object.keys(s.playsLive[s.game.home_team.team_id].yellow).length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.redContainer)},[lC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.home_team.team_id].yellow),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.home_team.team_id].yellow[f].event.map(m=>`${m}'`).join(", ")),1),p!=Object.keys(s.playsLive[s.game.home_team.team_id].yellow).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],2)],2)):n.createCommentVNode("",!0)],64))],2),r.value.game_status==4&&r.value.is_live==0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.matchInfo),id:"container-match-info"},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.sbado16De)},n.toDisplayString(c(r.value.date_time_utc,1)),3),n.createElementVNode("div",{class:n.normalizeClass(h.$style.sab16092023)},n.toDisplayString(c(r.value.date_time_utc,0)),3),n.createElementVNode("div",{class:n.normalizeClass(h.$style.hour)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.div)},n.toDisplayString(r.value.gameSchedule),3),n.createElementVNode("div",{class:n.normalizeClass(h.$style.cst)},"CST",2)],2),n.createElementVNode("div",{class:n.normalizeClass(h.$style.chivasTvCanal)},n.toDisplayString(r.value.tv_stations.join(", ")),3)],2)):(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.matchInfo),id:"container-match-info"},[r.value.is_live?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(c(r.value.date_time_utc,1)),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createElementVNode("div",{class:n.normalizeClass([h.$style.sbado16De,h.$style.gameDate])},n.toDisplayString(c(r.value.date_time_utc,1)),3),n.createElementVNode("div",{class:n.normalizeClass([h.$style.sab16092023,h.$style.gameDate])},n.toDisplayString(c(r.value.date_time_utc,0)),3)],64)),r.value.is_live||r.value.game_status!=1&&r.value.game_status!=4?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(h.$style.score)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.divscore)},n.toDisplayString(o.value),3)],2)):(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(h.$style.score)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.divscore)},n.toDisplayString(r.value.score.join(" - ")),3)],2)),n.createElementVNode("div",{class:n.normalizeClass(h.$style.gameStatus)},[r.value.is_live?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.liveMinutes)},[cC,n.createTextVNode(" LIVE - "+n.toDisplayString(i.value)+"' ",1)],2)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(" Finalizado "),r.value.penalties_score_home_team!=0||r.value.penalties_score_visiting_team!=0?(n.openBlock(),n.createElementBlock("span",dC," - Penales "+n.toDisplayString(r.value.penalties_score_home_team)+" - "+n.toDisplayString(r.value.penalties_score_visiting_team),1)):n.createCommentVNode("",!0)],64))],2),s.is_captured==1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:4},[r.value.is_live==1||r.value.game_status==1||Object.keys(r.value.minutes).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.viewButtomEvent),onClick:u[0]||(u[0]=f=>d(r.value))},[hC,n.createTextVNode("  "),uC],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],2)),n.createElementVNode("div",{class:n.normalizeClass(h.$style.awayTeam),id:"container-away-team"},[n.createElementVNode("img",{class:n.normalizeClass(h.$style.image62Icon1),alt:"",src:n.unref(Bs)(r.value.visiting_team.team_id,150)},null,10,mC),n.createElementVNode("h3",{class:n.normalizeClass(h.$style.name),id:"team-name"},n.toDisplayString(r.value.visiting_team.colloquial_name),3),n.createElementVNode("img",{class:n.normalizeClass(h.$style.imgAtlasIcon),alt:"",src:n.unref(Bs)(r.value.visiting_team.team_id)},null,10,fC),n.createElementVNode("h3",{class:n.normalizeClass(h.$style.name1),id:"team-name"},n.toDisplayString(r.value.visiting_team.acronym),3),r.value.game_status==1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[r.value.is_live==0&&r.value.game_status==1||Object.keys(r.value.minutes).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.containerEventsGameAwayteam)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.containerEvents)},[r.value.minutes.visiting_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.goalsContainer)},[r.value.minutes.visiting_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("img",pC)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.visiting_goals_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f).replace("(AG)","")),1),p!=r.value.minutes.visiting_goals_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0),r.value.minutes.away_red_cards_minutes.length>0&&r.value.minutes.visiting_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),r.value.minutes.away_red_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:2,class:n.normalizeClass(h.$style.yellowContainer)},[r.value.minutes.away_red_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("img",gC)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.away_red_cards_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f)),1),p!=r.value.minutes.away_red_cards_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0),r.value.minutes.away_red_cards_minutes.length>0||r.value.minutes.visiting_goals_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:3,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),r.value.minutes.away_yellow_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("div",{key:4,class:n.normalizeClass(h.$style.redContainer)},[r.value.minutes.away_yellow_cards_minutes.length>0?(n.openBlock(),n.createElementBlock("img",yC)):n.createCommentVNode("",!0),(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(r.value.minutes.away_yellow_cards_minutes,(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(l(f))+"'",1),p!=r.value.minutes.away_yellow_cards_minutes.length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],2)],2)):n.createCommentVNode("",!0)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[r.value.is_live==1&&r.value.game_status!=1||r.value.game_status==0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.containerEventsGameAwayteam)},[n.createElementVNode("div",{class:n.normalizeClass(h.$style.containerEvents)},[Object.keys(s.playsLive).length>0?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[s.playsLive[s.game.visiting_team.team_id]&&"goals"in s.playsLive[s.game.visiting_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[Object.keys(s.playsLive[s.game.visiting_team.team_id].goals).length?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.goalsContainer)},[bC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.visiting_team.team_id].goals),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.visiting_team.team_id].goals[f].event.map(m=>`${m}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(s.playsLive[s.game.visiting_team.team_id].goals).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),s.playsLive[s.game.visiting_team.team_id]&&"red"in s.playsLive[s.game.visiting_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[Object.keys(s.playsLive[s.game.visiting_team.team_id].red).length>0&&Object.keys(s.playsLive[s.game.visiting_team.team_id].goals).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),Object.keys(s.playsLive[s.game.visiting_team.team_id].red).length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.yellowContainer)},[SC,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.visiting_team.team_id].red),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.visiting_team.team_id].red[f].event.map(m=>`${m}'`).join(", ")),1),p!=Object.keys(s.playsLive[s.game.visiting_team.team_id].red).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0),s.playsLive[s.game.visiting_team.team_id]&&"yellow"in s.playsLive[s.game.visiting_team.team_id]?(n.openBlock(),n.createElementBlock(n.Fragment,{key:2},[Object.keys(s.playsLive[s.game.visiting_team.team_id].red).length>0||Object.keys(s.playsLive[s.game.visiting_team.team_id].goals).length>0?(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(h.$style.sepEvents)}," | ",2)):n.createCommentVNode("",!0),Object.keys(s.playsLive[s.game.visiting_team.team_id].yellow).length>0?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(h.$style.redContainer)},[_C,(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(Object.keys(s.playsLive[s.game.visiting_team.team_id].yellow),(f,p)=>(n.openBlock(),n.createElementBlock("div",{key:p},[n.createTextVNode(n.toDisplayString(s.playsLive[s.game.visiting_team.team_id].yellow[f].event.map(m=>`${m}'`).join(", ")),1),p!=Object.keys(s.playsLive[s.game.visiting_team.team_id].yellow).length-1?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(", ")],64)):n.createCommentVNode("",!0)]))),128))],2)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],64)):n.createCommentVNode("",!0)],2)],2)):n.createCommentVNode("",!0)],64))],2)],2))}},kC={$style:eC},EC=Lt(wC,[["__cssModules",kC]]),TC={class:"calendar-by-game__carousel"},CC="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",xC={__name:"GSC-CalendarByGame",props:{showVideos:{type:Number,default:0},playsLive:{type:Object,default:()=>{}},infoLive:{type:Object,default:()=>{}},height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},areRoundsVisible:{type:Boolean,default:!0},is_captured:{type:Number,default:1},gamesPerMatchDay:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},userTeamId:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},sortCalendar:{type:Boolean,default:!0},isTeamGamePerPage:{type:Boolean,default:!1},onlyGamesTeamId:{type:Number,default:0,validator(s){return!Number.isNaN(s)&&s>=0}},tournamentType:{type:Number,default:0},checkLiveGamesIntervalMinutes:{type:Number,default:2},gamesEventsIntervalMinutes:{type:Number,default:2},checkStartedLiveGamesMinutes:{type:Number,default:5}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges","open-modal-event"],setup(s,{emit:e}){const t=s;let a=null,i=null,o=null;const r=n.ref([]),l=n.ref({}),d=n.ref(0),c=n.ref(null),h=n.ref({}),u=n.ref(new Map),f=n.ref(!1),p=n.ref(null),m=n.ref(null),g=n.ref(null),y=n.ref([]),b=n.ref(new Map),S=n.ref(new Set),w=n.computed(()=>t.isCup),x=n.computed(()=>t.isCupLegacy),E=n.computed(()=>({height:t.height,width:t.width})),v=n.computed(()=>{if(t.games)return Ee(t.games,t.isTeamGamePerPage);{const M=u.value.get(h.value.key);return M&&t.isTeamGamePerPage&&t.onlyGamesTeamId?[M[0].filter(J=>J.home_team.team_id===t.onlyGamesTeamId||J.visiting_team.team_id===t.onlyGamesTeamId)]:M||[]}}),T=n.computed(()=>t.areGamesCarouselType?v.value[0]:v.value),B=n.ref([]),L=n.ref([]),R=n.computed(()=>{const M=L.value&&L.value.length?j(l.value):q(l.value),J=B.value.find(G=>G.key===M);return J&&f.value&&(V(!1),et(J)),M});n.watch(()=>t.seasons,M=>{M&&M.length&&(V(!0),r.value=M.map(J=>J.id),ie(M,!0))},{immediate:!0,deep:!0}),n.watch(u,M=>{if(t.onlyGamesTeamId&&M.size){const J=Array.from(M.values()).reduce((G,z)=>(z.forEach(K=>{const W=K.find(ge=>ge.home_team.team_id===t.onlyGamesTeamId||ge.visiting_team.team_id===t.onlyGamesTeamId);W&&G.push(W)}),G),[]);e("change-games-by-client-privileges",J)}},{immediate:!0});function V(M){f.value=M}function q(M){const J=new Date().valueOf(),G=Object.entries(Object.entries(M).reduce((K,[W,ge])=>(K[W]=null,ge.forEach(Ge=>{Ge.games.forEach(ct=>{if([1,0].includes(ct.game_status)||ct.is_live){const Js=J-ct.dateTimeMillis;K[W]===null?K[W]=Js:K[W]+=Js}})}),K),{}));if(!G.length)return"1";const z=G.reduce((K,[W,ge])=>((K.shortestMillisToNow===null||ge!==null&&ge<K.shortestMillisToNow)&&(K.shortestMillisToNow=ge,K.round=W),K),{round:"",shortestMillisToNow:null});return z.shortestMillisToNow!==null?z.round:G[G.length-1][0]}function j(M){let J=1;if(L.value.length){const G=L.value[0];for(const[z,K]of Object.entries(M))for(const W of K)if(W.games.find(ge=>ge.game_id===G.game_id))return z}return J}n.watch(()=>t.teamId,()=>{se()},{immediate:!0});async function ae(M,J,G=""){let z=G;try{const K={};t.token&&(K.Authorization=t.token),z||(z="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",M.forEach((Ge,ct)=>{z+=`${ct===0?"":"&"}seasons=${Ge}`}));const{data:{data:W,teams:ge}}=await hn.get(z,{headers:K});return{seasonsAndGames:W,seasonsAndTeams:ge}}catch(K){if(J>0)return ae(M,J-1,z);throw new Error(K)}}function oe(M){for(const J of M)if(!r.value.includes(J.season_id))return!0;return!1}async function ie(M,J){try{l.value={};let G=0;const{seasonsAndGames:z,seasonsAndTeams:K}=await ae(M.map(ge=>ge.id),3);if(J&&oe(z))return;z.forEach(ge=>{const{type:Ge}=M.find(ct=>ct.id===ge.season_id);ge.type=Ge,ge.games.forEach(ct=>{ct.season_id=ge.season_id}),Ge===0&&(G=ge.season_id)}),p.value={seasonsGames:z};const{teams:W}=K.find(ge=>ge.season_id===G);m.value=W,e("change-teams",W),se(),S.value.size?Q():await ce()}catch(G){throw new Error(G)}}async function ce(){try{const M=await Ce(),J=new Set;if(y.value=M.data.reduce((G,z)=>(z.games.forEach(K=>{J.add(K.game_id),G.push(K)}),G),[]),y.value.length){i||await de();const G=[];S.value.forEach(z=>{const K=b.value.get(z);K&&new Date().valueOf()>K.dateTimeMillis&&G.push(z)}),G.length&&G.every(z=>b.value.get(z).isLiveTracked)&&X()}}catch(M){throw new Error(M)}}async function de(){try{const M=[];for(const G of y.value){const z=b.value.get(G.game_id);z&&(z.is_live=1,z.game_status=4,z.scheduleKey&&z.scheduleKey.liveGamesIds.add(G.game_id)),z.isLiveTracked=!0,M.push(ye(G.game_id))}const J=await Promise.all(M);for(const G of J){const z=b.value.get(G.game_id);if(z){const K=[Number(G.score[z.home_team.team_id.toString()])+Number(G.score[`own_${z.visiting_team.team_id.toString()}`]),Number(G.score[z.visiting_team.team_id.toString()])+Number(G.score[`own_${z.home_team.team_id.toString()}`])],W=K[0],ge=K[1];z.score=[Number.isNaN(W)?0:W,Number.isNaN(ge)?0:ge],ue(z,G.plays)}}i||he()}catch(M){throw new Error(M)}}function Q(){S.value.size&&S.value.forEach(M=>{const J=b.value.get(M);if(J){const G=new Date().valueOf();if(60*1e3*30+J.dateTimeMillis-G>0){const z=J.dateTimeMillis-G-3e5;setTimeout(()=>{Y()},z>0?z:0)}}})}function Y(){X(),o||(o=setInterval(()=>{ce()},t.checkLiveGamesIntervalMinutes*60*1e3))}function he(){Z(),i=setInterval(()=>{de()},t.gamesEventsIntervalMinutes*60*1e3)}function X(){clearInterval(o),o=null}function Z(){clearInterval(i),i=null}function ue(M,J){for(const G of J)if(G.category_id===0&&G.game_status_id===13){const z=b.value.get(G.game_id);y.value=y.value.filter(K=>K.game_id!==M.game_id),z.is_live=0,z.game_status=0,z.scheduleKey&&z.scheduleKey.liveGamesIds.delete(M.game_id)}}async function ye(M){try{return(await hn.get(`${CC}${M}`,{headers:{Authorization:`${t.token}`}})).data}catch(J){throw new Error(J)}}async function Ce(){try{if(t.seasons.length===0)return[];const M=t.seasons.reduce((z,K)=>`${z}seasons=${K.id}&`,""),J=hn.create({headers:{Authorization:`${t.token}`}}),{data:G}=await J.get(`https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/lives?${M}`);return G}catch(M){throw new Error(M)}}function se(){if(X(),!m.value)return;b.value.clear(),S.value.clear(),L.value=[];const M=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(J=>{const G=J.games.reduce((z,K)=>{if(t.onlyGamesTeamId&&t.onlyGamesTeamId!==K.home_team&&t.onlyGamesTeamId!==K.visiting_team)return z;const W={...K},ge=new Date,[Ge,ct,Js]=W.date.split("-"),[Aa,ki,La]=W.schedule.split(":"),Ei=new Date(Number(Ge),Number(ct)-1,Number(Js),Number(Aa),Number(ki),Number(La));return W.dateTimeMillis=Ei.valueOf(),W.home_team=m.value.find(Kl=>Kl.team_id===K.home_team),W.visiting_team=m.value.find(Kl=>Kl.team_id===K.visiting_team),W.game_status===4&&ge.getFullYear()===Ei.getFullYear()&&ge.getMonth()===Ei.getMonth()&&ge.getDate()===Ei.getDate()&&S.value.add(W.game_id),b.value.set(W.game_id,W),t.teamId&&W.home_team.team_id!==t.teamId&&W.visiting_team.team_id!==t.teamId||(z[K.matchday_abbreviation]?z[K.matchday_abbreviation][K.game_status===3?"canceled":K.date]?z[K.matchday_abbreviation][K.game_status===3?"canceled":K.date].push(W):z[K.matchday_abbreviation][K.game_status===3?"canceled":K.date]=[W]:z[K.matchday_abbreviation]={[K.game_status===3?"canceled":K.date]:[W]},t.userTeamId&&W.game_status===4&&(W.home_team.team_id===t.userTeamId||W.visiting_team.team_id===t.userTeamId)&&L.value.push(W)),z},{});for(let[z,K]of Object.entries(G))G[z]=Object.entries(K).map(([W,ge])=>({date:W,games:ge.sort((Ge,ct)=>Ge.dateTimeMillis-ct.dateTimeMillis)})),G[z].sort((W,ge)=>W.date<ge.date?-1:W.date>ge.date?1:0);return{type:J.type,weight:J.type===0?0:J.type===2?1:2,schedule:G}}):[];M.sort((J,G)=>J.weight-G.weight),l.value=M.reduce((J,G)=>{for(const[z,K]of Object.entries(G.schedule))if(G.type===0)if([1,2].includes(t.tournamentType)){const W=Ok.get(t.tournamentType);if(W){const ge=W.get(z);ge&&(J[ge.matchDayAbbreviation]=K)}}else if(w.value){const W=z.replace("M",""),ge=W;x.value?J[Pk[W]||ge]=K:J[Dk[z]||ge]=K}else J[Number(z.replace("M","")).toString()]=K;else G.type===2?z.charAt(1)=="I"?J[`PI${Number(z.replace("PI",""))}`]=K:J[`R${Number(z.replace("PO",""))}`]=K:G.type===1&&(J[Nk[z]]=K);return J},{}),u.value=new Map,B.value=Array.from(Object.entries(l.value).reduce((J,[G,z],K)=>{const W=Number(G);let ge="";Number.isNaN(W)?ge=G:ge=W<10?`0${W}`:G;const Ge={key:G,value:W,valueText:ge,index:K,liveGamesIds:new Set};J.set(G,Ge);const ct=z.reduce((Aa,ki)=>(ki.games.forEach(La=>{La.game_id===t.defaultGameId&&(g.value=G),La.roundAbbreviation=Number.isNaN(W)?W:`J ${W}`,La.scheduleKey=Ge}),Aa=Aa.concat(ki.games),Aa),[]),Js=Ee(ct);return u.value.set(G,Js),J},new Map).values())}function Ee(M,J=!1){const G=[];if(t.gamesPerMatchDay>0){let z=[];M.forEach((K,W)=>{z.push(K),(W+1)%t.gamesPerMatchDay===0&&(G.push([...z]),z=[])}),z.length&&G.push([...z])}else G.push(M);return J&&t.isTeamGamePerPage&&t.defaultGameId?G.filter(z=>z.game_id===t.defaultGameId||z.gameId===t.defaultGameId):G}async function Te(M){try{const{data:J}=await hn.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return J}catch(J){if(M>0)return Te(M-1);throw new Error(J)}}function Oe(){if(window.ResizeObserver)a=new ResizeObserver(()=>{d.value=c.value.clientWidth}),a.observe(c.value);else throw new Error("Resize observer not supported!")}function et(M){h.value.value!==M.value&&(h.value=M,e("change-round",M))}function it(M){t.areGamesCarouselType&&e("change-game-carousel",M.selectedItem)}function ot(M){e("action",M),H(M)}function C(M){e("open-modal-event",M)}function H(M){const J="PLAY_RESUME",G="PLAY_GOALS",z=[607,608,12,55,54,35,14,52,15,53,466,477],K=[12,55,"35_r","54_r"],{game_id:W,season_id:ge}=M.game;let Ge={seasonId:ge,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:[W],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};M.action===J?(Ge.categoryIds=z,Ge.advancedFilter.playListTitle="Resumen",e("openmedia",Ge)):M.action===G&&(Ge.categoryIds=K,Ge.advancedFilter.playListTitle="Goles",e("openmedia",Ge))}async function U(){try{if(!t.awaitForSeasons&&!t.games){const M=(await Te(3)).find(z=>z._id===1),J=M.seasons[0],G=[{id:J.id,type:J.type}];M&&M.tournament&&e("tournament-selected",M.tournament),J.related_seasons&&J.related_seasons.length&&G.push(...J.related_seasons.map(z=>({id:z.id,type:z.type}))),await ie(G,!1)}}catch(M){throw new Error(M)}}return n.onMounted(()=>{Oe()}),U(),(M,J)=>(n.openBlock(),n.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:n.normalizeStyle(E.value)},[s.teamId&&!s.avoidTeamIdFilter?(n.openBlock(),n.createBlock(kT,{key:0,"full-tournament-schedule":l.value,"team-id":s.teamId,"show-videos":s.showVideos,"is-landing-mode":!1,"row-height":s.rowHeight,"component-width":d.value,"games-pages":u.value,"is-pagination-visible":s.isPaginationVisible,"is-round-mode":s.isRoundMode,onAction:ot},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[s.areRoundsVisible&&B.value?(n.openBlock(),n.createBlock(sE,{key:0,"match-days":B.value,"is-landing-mode":s.isLandingMode,height:"48px","items-to-show":s.itemsToShow,"items-to-scroll":s.itemsToScroll,"component-width":d.value,"default-match-day-key":g.value,"closest-match-day":s.sortCalendar?R.value:"",onChangeMatchDay:et},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):n.createCommentVNode("",!0),n.createElementVNode("div",TC,[v.value?(n.openBlock(),n.createBlock(n.unref(Lh),{key:0,"is-pagination-visible":s.isPaginationVisible&&!s.areGamesCarouselType,items:T.value,"are-navigation-arrows-visible":s.areGamesCarouselType?!s.areGamesCarouselType:s.isPaginationVisible,"wrap-around":s.areGamesCarouselType&&!s.isTeamGamePerPage,"items-to-show":s.areGamesCarouselType&&!s.isTeamGamePerPage?1.2:1,"is-main-slide-priority":s.areGamesCarouselType,"are-slides-arrows-visible":s.areGamesCarouselType&&!s.isTeamGamePerPage,"slides-arrows-left-and-right":s.areGamesCarouselType?"30px":"0px","default-item-by-prop":s.areGamesCarouselType?{propName:"game_id",value:s.defaultGameId}:{},onInput:it},{default:n.withCtx(({item:G})=>[s.areGamesCarouselType?(n.openBlock(),n.createBlock(EC,{key:0,is_captured:s.is_captured,game:G,onOpenModalEvent:C,"plays-live":s.playsLive,"info-live":s.infoLive},null,8,["is_captured","game","plays-live","info-live"])):(n.openBlock(),n.createBlock(yT,{key:1,"team-id":s.teamId,"show-videos":s.showVideos,"games-per-page":G,"is-landing-mode":s.isLandingMode,"row-height":s.rowHeight,"component-width":d.value,"is-round-mode":s.isRoundMode,onAction:ot},null,8,["team-id","show-videos","games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):n.createCommentVNode("",!0)])],64))],4))}},vC=Lt(xC,[["__scopeId","data-v-12be1567"]]),AC=["Mi posición","Tabla General","Fases","Play Off"],LC={components:{GscSwitchComponent:yo,GSCGeneraltable:ow,GSCCalendarByGame:vC},props:{privileges:{type:Object,default:()=>{}},isPublic:{type:Boolean,default:!0},isPlayer:{type:Boolean,default:!1},isPlayerTournament:{type:Boolean,default:!1},isGeneric:{type:Boolean,default:!1},season:{type:Object,default:()=>{}},onlyTable:{type:Boolean,default:!0},seasons:{type:Array,default:()=>[]},tournamentType:{type:Number,default:0},tournament:{type:Number,default:1},teamId:{type:Number,default:0},componentWidth:{type:Number,default:768},tournaments:{type:Array,default:()=>[]}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{tableTitle(){return this.tournamentType!==0?this.tournamentType===1?"Fases":"Play Off":(this.selectedOpt!=="Calendario"&&this.changeCategory(this.teamId!=0?"Mi posición":"Tabla General"),this.teamId!==0?"Mi posición":"Tabla General")},isGeneralTableVisible(){return AC.includes(this.selectedOpt)}},watch:{tableTitle:{handler(s){this.selectedOpt=s},immediate:!0}},methods:{onAction(s){this.$emit("action",s)},changeCategory(s){this.selectedOpt=s},onOpenMedia(s){this.$emit("openmedia",s)},onOpenProfile(s){this.$emit("onOpenProfile",s)}},mounted(){this.selectedOpt=this.teamId!==0?"Mi posición":"Tabla General"}},IC={key:0,class:"gsc-switch-container"},RC={class:"gsc-app-component"},BC={key:0};function NC(s,e,t,a,i,o){const r=n.resolveComponent("GscSwitchComponent"),l=n.resolveComponent("GSCGeneraltable"),d=n.resolveComponent("GSCCalendarByGame");return n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(t.componentWidth>1e3?"gsc-calendar-table":"gsc-calendar-table-movil")},[t.onlyTable?(n.openBlock(),n.createElementBlock("div",{key:1,class:n.normalizeClass(["gsc-switch-container",t.isPlayer&&t.isPlayerTournament||!t.isGeneric?"gsc-switch-container-player":""])},[t.isPlayerTournament?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[t.isPublic?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("Tabla General")],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode("Mi posición")],64))],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode("Tabla General")],64))],2)):(n.openBlock(),n.createElementBlock("div",IC,[n.createVNode(r,{type:0,arrow:!1,"font-family":"Poppins-Light",buttons:[o.tableTitle,"Calendario"],height:"40px","selected-option":i.selectedOpt,"font-size":t.componentWidth>=768?"16px":"14px",width:"355px",onInput:o.changeCategory},null,8,["buttons","selected-option","font-size","onInput"])])),n.createElementVNode("div",RC,[o.isGeneralTableVisible?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createVNode(l,{isPaginationVisible:!0,"current-season-id":t.season.id,"team-default-select":t.teamId,"team-id":t.teamId,type:1,"show-videos":t.isPublic?t.privileges.vr_privileges!=0:!0,tournament:t.tournament,"type-view":t.tournamentType,"await-for-season":"","await-for-tournaments":"","external-tournaments":t.tournaments,onOpenmedia:o.onOpenMedia,onOpenTableProfile:o.onOpenProfile},null,8,["current-season-id","team-default-select","team-id","show-videos","tournament","type-view","external-tournaments","onOpenmedia","onOpenTableProfile"]),n.createElementVNode("div",{onClick:e[0]||(e[0]=c=>s.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[t.onlyTable?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",BC,[n.createVNode(d,{width:"100%",token:i.tokenFree,seasons:t.seasons,"tournament-type":t.tournamentType,"show-videos":t.isPublic,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5,onOpenmedia:o.onOpenMedia,onAction:o.onAction},null,8,["token","seasons","tournament-type","show-videos","onOpenmedia","onAction"]),n.createElementVNode("div",{onClick:e[1]||(e[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")]))],64))])],2)}const DC=qe(LC,[["render",NC],["__scopeId","data-v-c551289b"]]),Mh=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],Vh=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],$h=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],PC={class:"match"},OC={class:"match__header"},FC={key:0,class:"match__final-tag"},MC={key:1,class:"match__final-tag__no-border"},VC={class:"match__header__match-date"},$C={class:"match__tag"},zC={class:"match__body"},UC={class:"match__data"},GC={class:"match__acronym"},jC=["src"],HC={class:"match__score"},WC=["src"],KC={class:"match__acronym"},qC={class:"match__status"},mn=qe({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(s){const e=s,t=n.computed(()=>{const a=new Date(e.data.date_time_utc);return`${Mh[a.getDay()]}, ${a.getDate()} de ${Vh[a.getMonth()]}`});return(a,i)=>{var o,r,l;return n.openBlock(),n.createElementBlock("section",PC,[n.createElementVNode("div",OC,[s.infoType=="postmatch"?(n.openBlock(),n.createElementBlock("div",FC,"FINAL")):(n.openBlock(),n.createElementBlock("div",MC)),n.createElementVNode("div",VC,n.toDisplayString(t.value),1),n.createElementVNode("div",$C,n.toDisplayString(`${Number.isNaN(Number(s.data.roundAbbreviationV2))?"":"J"}${s.data.roundAbbreviationV2}`),1)]),n.createElementVNode("div",zC,[n.createElementVNode("div",UC,[n.createElementVNode("div",GC,n.toDisplayString((o=s.data)==null?void 0:o.home_team_acronym),1),n.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+s.data.home_team+".png",alt:"team-img"},null,8,jC),n.createElementVNode("div",HC,[s.infoType=="postmatch"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString(s.data.score[0])+" - "+n.toDisplayString(s.data.score[1]),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString((r=s.data)==null?void 0:r.schedule.replace(":00","")),1)],64))]),n.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+s.data.visiting_team+".png",alt:"team-img"},null,8,WC),n.createElementVNode("div",KC,n.toDisplayString((l=s.data)==null?void 0:l.visiting_team_acronym),1)]),n.createElementVNode("div",qC,[s.infoType=="postmatch"?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("Finalizado"+n.toDisplayString(s.penalScore?` - Penales ${s.penalScore}`:""),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode("CST")],64))])]),n.createElementVNode("div",{class:"match__button",onClick:i[0]||(i[0]=d=>a.$emit("clickMatch"))},"Ver →")])}}},[["__scopeId","data-v-12fb8db0"]]),zh=s=>(n.pushScopeId("data-v-5db14f31"),s=s(),n.popScopeId(),s),YC=["src"],JC=["src"],XC={class:"coming-match__body"},ZC={class:"coming-match__data"},QC=["src"],ex={key:0,class:"coming-match__live"},tx={class:"coming-match__live__score"},sx={class:"coming-match__live__time"},ax=zh(()=>n.createElementVNode("div",{class:"bullet"},null,-1)),nx=zh(()=>n.createElementVNode("div",{class:"coming-match__live__time__text"},"LIVE",-1)),ix={class:"coming-match__live__time__time"},ox={key:1,style:{"margin-top":"16px"}},rx={class:"coming-match__time"},lx={class:"coming-match__cst"},cx={key:0},dx=["src"],Ns=qe({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(s){const e=s,t=n.computed(()=>{const i=new Date(e.data.date_time_utc);return`${Mh[i.getDay()]}, ${i.getDate()} de ${e.small?$h[i.getMonth()]:Vh[i.getMonth()]}`}),a=n.computed(()=>e.data.is_live||e.data.game_status===0);return(i,o)=>{var r,l,d,c,h,u,f,p,m,g,y,b,S,w,x;return n.openBlock(),n.createElementBlock("section",{class:n.normalizeClass(["coming-match",{small:s.small}])},[n.createElementVNode("img",{class:n.normalizeClass(["coming-match__bg",{small:s.small}]),src:typeof s.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((r=s.data)==null?void 0:r.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((l=s.data)==null?void 0:l.home_team)+".png",alt:"team-img"},null,10,YC),n.createElementVNode("img",{class:n.normalizeClass(["coming-match__bg",{small:s.small}]),src:typeof s.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((d=s.data)==null?void 0:d.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((c=s.data)==null?void 0:c.visiting_team)+".png",alt:"team-img"},null,10,JC),n.createElementVNode("div",XC,[a.value?n.createCommentVNode("",!0):(n.openBlock(),n.createElementBlock("div",{key:0,class:n.normalizeClass(["coming-match__date",{small:s.small}])},n.toDisplayString(`${Number.isNaN(Number(s.data.roundAbbreviationV2))?"":"J"}${s.data.roundAbbreviationV2}`)+" | "+n.toDisplayString(t.value),3)),n.createElementVNode("div",ZC,[n.createElementVNode("div",{class:n.normalizeClass(["coming-match__team",{small:s.small}])},[n.createElementVNode("img",{class:n.normalizeClass(["coming-match__img",{small:s.small}]),src:typeof s.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=s.data)==null?void 0:h.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((u=s.data)==null?void 0:u.home_team)+".png",alt:"team-img"},null,10,QC),n.createElementVNode("div",{class:n.normalizeClass(["coming-match__acronym",{small:s.small}])},n.toDisplayString((f=s.data)==null?void 0:f.home_team_name),3)],2),a.value?(n.openBlock(),n.createElementBlock("div",ex,[n.createElementVNode("div",tx,n.toDisplayString((p=s.data)==null?void 0:p.score[0])+" - "+n.toDisplayString((m=s.data)==null?void 0:m.score[1]),1),n.createElementVNode("div",sx,[ax,nx,n.createElementVNode("div",ix,n.toDisplayString(s.data.currentTimeLive||"0'"),1)])])):(n.openBlock(),n.createElementBlock("div",ox,[n.createElementVNode("div",rx,[s.data.game_status!==4?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode(n.toDisplayString((g=s.data)==null?void 0:g.score[0])+" - "+n.toDisplayString((y=s.data)==null?void 0:y.score[1]),1)],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode(n.toDisplayString((b=s.data)==null?void 0:b.schedule.replace(":00","")),1)],64))]),n.createElementVNode("div",lx,[s.data.game_status===4?(n.openBlock(),n.createElementBlock("span",cx,"CST")):n.createCommentVNode("",!0)])])),n.createElementVNode("div",{class:n.normalizeClass(["coming-match__team away",{small:s.small}])},[n.createElementVNode("div",{class:n.normalizeClass(["coming-match__acronym",{small:s.small}])},n.toDisplayString((S=s.data)==null?void 0:S.visiting_team_name),3),n.createElementVNode("img",{class:n.normalizeClass(["coming-match__img",{small:s.small}]),src:typeof s.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((w=s.data)==null?void 0:w.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((x=s.data)==null?void 0:x.visiting_team)+".png",alt:"team-img"},null,10,dx)],2)])]),n.createElementVNode("div",{class:n.normalizeClass(["coming-match__button",{small:s.small}]),onClick:o[0]||(o[0]=E=>i.$emit("clickMatch"))},[s.data.game_status===4&&!s.data.is_live?(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.createTextVNode("Ver →")],64)):(n.openBlock(),n.createElementBlock(n.Fragment,{key:1},[n.createTextVNode("Ver →")],64))],2)],2)}}},[["__scopeId","data-v-5db14f31"]]),fn=s=>(n.pushScopeId("data-v-fec8d273"),s=s(),n.popScopeId(),s),hx={class:"game-item__header"},ux={class:"game-item__header__info text-type-1"},mx={key:0,class:"game-item__header__info__live"},fx=fn(()=>n.createElementVNode("div",{class:"game-item__header__info__live__status text-type-2"},[n.createElementVNode("div",{class:"bullet"}),n.createElementVNode("span",null,"LIVE")],-1)),px={class:"text-type-1"},gx={key:1,class:"game-item__header__info__pre-match text-type-2"},yx=fn(()=>n.createElementVNode("span",{class:"game-item__header__info__pre-match text-type-1"},[n.createTextVNode(" "),n.createElementVNode("small",null,"CST")],-1)),bx={key:2,class:"game-item__header__info__post-match"},Sx=[fn(()=>n.createElementVNode("span",{class:"text-type-2"},"Finalizado",-1))],_x={class:"game-item__body"},wx={class:"game-item__body__team__info"},kx=["src"],Ex={class:"game-item__body__team__info__acronym"},Tx={class:"game-item__body__team__score"},Cx=[fn(()=>n.createElementVNode("div",null,"Ver →",-1))],xx=qe({__name:"GameItem",props:{game:{type:Object,default:()=>{}}},emits:["clickMatch"],setup(s,{emit:e}){const t=s,a=n.computed(()=>{let l="";const d=Number(t.game.roundAbbreviationV2);if(l=Number.isNaN(d)?t.game.roundAbbreviationV2:`JOR ${d}`,t.game.game_status===4){const c=new Date(t.game.date_time_utc);l+=` • ${c.getDate()} ${$h[c.getMonth()]}`}return l}),i=n.computed(()=>t.game.schedule.replace(":00","")),o=n.computed(()=>[{id:t.game.home_team.team_id,teamLogo:t.game.home_team.logo,acronym:t.game.home_team.acronym,score:t.game.score[0]},{id:t.game.visiting_team.team_id,teamLogo:t.game.visiting_team.logo,acronym:t.game.visiting_team.acronym,score:t.game.score[1]}]);function r(){e("clickMatch")}return(l,d)=>(n.openBlock(),n.createElementBlock("div",{class:n.normalizeClass(["game-item",{"is-live":s.game.is_live}])},[n.createElementVNode("div",hx,[n.createElementVNode("div",ux,n.toDisplayString(a.value),1),s.game.is_live?(n.openBlock(),n.createElementBlock("div",mx,[fx,n.createElementVNode("div",px,n.toDisplayString(s.game.currentTimeLive||"0'"),1)])):s.game.game_status===4?(n.openBlock(),n.createElementBlock("div",gx,[n.createTextVNode(n.toDisplayString(i.value)+" ",1),yx])):(n.openBlock(),n.createElementBlock("div",bx,Sx))]),n.createElementVNode("div",_x,[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(o.value,c=>(n.openBlock(),n.createElementBlock("div",{key:c.id,class:"game-item__body__team"},[n.createElementVNode("div",wx,[n.createElementVNode("img",{src:c.teamLogo,alt:"team-logo"},null,8,kx),n.createElementVNode("div",Ex,n.toDisplayString(c.acronym),1)]),n.createElementVNode("div",Tx,[n.withDirectives(n.createElementVNode("div",{class:"game-item__body__team__score__value"},n.toDisplayString(c.score||0),513),[[n.vShow,s.game.is_live||s.game.game_status!==4]])])]))),128))]),n.createElementVNode("div",{class:"game-item__footer",onClick:r},Cx)],2))}},[["__scopeId","data-v-fec8d273"]]),vx=qe({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(s,{emit:e}){const t=s,a=n.ref(null);n.watch(()=>t.modelValue,()=>{i()},{immediate:!0});function i(){a.value&&(a.value.checked=t.modelValue)}function o(r){e("update:modelValue",r.target.checked)}return n.onMounted(()=>{i()}),(r,l)=>(n.openBlock(),n.createElementBlock("input",{ref_key:"switchCustom",ref:a,id:"toggle",className:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:o},null,544))}},[["__scopeId","data-v-3571f7e0"]]);/**
29
29
  * Vue 3 Carousel 0.3.4
30
30
  * (c) 2024
31
31
  * @license MIT