@golstats/gsc-game-data 1.0.279 → 1.0.280
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.
- package/dist/{FilterConditions-45e377fe-0cc43cd1.js → FilterConditions-45e377fe-ea41f111.js} +1 -1
- package/dist/{FilterConditions-67a56ee9-Byh7UnF3-39dc6c0a.js → FilterConditions-67a56ee9-Byh7UnF3-d4377b46.js} +1 -1
- package/dist/{FilterField-1d2345af-DewpBlbm-b3165cd3.js → FilterField-1d2345af-DewpBlbm-2d0ed0e4.js} +1 -1
- package/dist/{FilterField-2a5066d5-b00256c5.js → FilterField-2a5066d5-5d68127d.js} +1 -1
- package/dist/{FilterSubcategories-92dfe0dc-C1aiPRbE-9dcce6f5.js → FilterSubcategories-92dfe0dc-C1aiPRbE-ff1818d4.js} +1 -1
- package/dist/{FilterSubcategories-f62528f5-c724979e.js → FilterSubcategories-f62528f5-77900395.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/{index-935e47d4.js → index-4fb6dc5f.js} +8517 -8491
- package/package.json +2 -2
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Vue 3 Carousel 0.3.4
|
|
12
12
|
* (c) 2024
|
|
13
13
|
* @license MIT
|
|
14
|
-
*/const Kd={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"}},qI={itemsToShow:{default:Kd.itemsToShow,type:Number},itemsToScroll:{default:Kd.itemsToScroll,type:Number},wrapAround:{default:Kd.wrapAround,type:Boolean},throttle:{default:Kd.throttle,type:Number},snapAlign:{default:Kd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Kd.transition,type:Number},breakpoints:{default:Kd.breakpoints,type:Object},autoplay:{default:Kd.autoplay,type:Number},pauseAutoplayOnHover:{default:Kd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Kd.mouseDrag,type:Boolean},touchDrag:{default:Kd.touchDrag,type:Boolean},dir:{default:Kd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Kd.i18n,type:Object},settings:{default(){return{}},type:Object}};function ote({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function ste({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function Q6({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function lte({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let m=r;switch(B){case"center":case"center-odd":m-=(c-1)/2;break;case"center-even":m-=(c-2)/2;break;case"end":m-=c-1;break}return D?m:Q6({val:m,max:i-c,min:0})}function YI(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...YI(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function e8({val:e,max:r,min:i=0}){return e>r?e8({val:e-(r+1),max:r,min:i}):e<i?e8({val:e+(r+1),max:r,min:i}):e}function cte(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function dte(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function ute(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var hte=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Kd))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},ute(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),pte=t.defineComponent({name:"Carousel",props:qI,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),m=t.ref([]),a=t.ref(0),v=t.ref(0),f=t.reactive(Object.assign({},Kd));let n=Object.assign({},Kd),y;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",v),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){y=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function g(){if(!y||!Object.keys(y).length)return;const ae=Object.keys(y).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),y[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=dte(()=>{g(),S(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){v.value<=0||(l.value=Math.ceil((v.value-1)/2),o.value=ote({config:f,slidesCount:v.value}),s.value=ste({config:f,slidesCount:v.value}),f.wrapAround||(_.value=Q6({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),g(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},C={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(k=ae.type==="touchstart",k||ae.preventDefault(),!(!k&&ae.button!==0||U.value)&&(T.x=k?ae.touches[0].clientX:ae.clientX,T.y=k?ae.touches[0].clientY:ae.clientY,document.addEventListener(k?"touchmove":"mousemove",F,!0),document.addEventListener(k?"touchend":"mouseup",R,!0)))}const F=cte(ae=>{M.value=!0,C.x=k?ae.touches[0].clientX:ae.clientX,C.y=k?ae.touches[0].clientY:ae.clientY;const ne=C.x-T.x,ie=C.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!k){const ue=he=>{window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(k?"touchmove":"mousemove",F,!0),document.removeEventListener(k?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:Q6({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:v.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=e8({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:v.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>lte({config:f,currentSlide:_.value,slidesCount:v.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${v.value*a.value}px`:"",width:"100%"}});function ee(){h(),g(),S(),x(),$()}Object.keys(qI).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(v,S),i("before-init"),h();const le={config:f,slidesCount:v,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:g,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=YI(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((_e,xe)=>t.cloneVNode(_e,{index:-ae.length+xe,isClone:!0,key:`clone-before-${xe}`})),me=ae.map((_e,xe)=>t.cloneVNode(_e,{index:ae.length+xe,isClone:!0,key:`clone-after-${xe}`}));ie=[...pe,...ae,...me]}m.value=ae,v.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(hte)])}}}),t8;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(t8||(t8={}));const fte={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 mte(e){return e in t8}const a8=e=>{const r=t.inject("config",t.reactive(Object.assign({},Kd))),i=String(e.name),B=`icon${i.charAt(0).toUpperCase()+i.slice(1)}`;if(!i||typeof i!="string"||!mte(i))return;const D=fte[i],c=t.h("path",{d:D}),m=r.i18n[B]||e.title||i,a=t.h("title",m);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":m},[a,c])};a8.props={name:String,title:String};const gte=(e,{slots:r,attrs:i})=>{const{next:B,prev:D}=r||{},c=t.inject("config",t.reactive(Object.assign({},Kd))),m=t.inject("maxSlide",t.ref(1)),a=t.inject("minSlide",t.ref(1)),v=t.inject("currentSlide",t.ref(1)),f=t.inject("nav",{}),{dir:n,wrapAround:y,i18n:_}=c,p=n==="rtl",l=t.h("button",{type:"button",class:["carousel__prev",!y&&v.value<=a.value&&"carousel__prev--disabled",i==null?void 0:i.class],"aria-label":_.ariaPreviousSlide,onClick:f.prev},(D==null?void 0:D())||t.h(a8,{name:p?"arrowRight":"arrowLeft"})),o=t.h("button",{type:"button",class:["carousel__next",!y&&v.value>=m.value&&"carousel__next--disabled",i==null?void 0:i.class],"aria-label":_.ariaNextSlide,onClick:f.next},(B==null?void 0:B())||t.h(a8,{name:p?"arrowLeft":"arrowRight"}));return[l,o]};var yte=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Kd))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),m=t.computed(()=>e.index===B.value),a=t.computed(()=>e.index===B.value-1),v=t.computed(()=>e.index===B.value+1),f=t.computed(()=>{const n=Math.floor(D.value),y=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=y});return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":m.value,"carousel__slide--prev":a.value,"carousel__slide--next":v.value,"carousel__slide--sliding":c.value},"aria-hidden":!f.value},(n=r.default)===null||n===void 0?void 0:n.call(r,{isActive:m.value,isClone:e.isClone,isPrev:a.value,isNext:v.value,isSliding:c.value,isVisible:f.value}))}}});const Pp=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},XI=e=>(t.pushScopeId("data-v-d88e6c89"),e=e(),t.popScopeId(),e),vte={key:1,class:"match-day__live"},_te=XI(()=>t.createElementVNode("div",{class:"match-day__live__bullet"},null,-1)),bte=XI(()=>t.createElementVNode("div",{class:"match-day__live__text"},"LIVE",-1)),xte=[_te,bte],wte={__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(e,{emit:r}){const i=e,B=t.computed(()=>{const a={"background-color":i.backgroundColor,height:i.height};return i.matchDay.key===i.matchDaySelected.key&&(a["border-bottom"]=`solid 1px ${i.bottomLineColor}`,a["background-color"]=i.selectedMatchDayBackgroundColor),i.isLandingMode||(a["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),a}),D=t.computed(()=>({color:i.numberColor,"font-family":i.numberFontFamily,"font-size":i.numberFontSize})),c=t.computed(()=>({color:i.textColor,"font-family":i.textFontFamily,"font-size":i.textFontSize}));function m(a){r("click-match-day",a)}return(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...B.value}),onClick:v[0]||(v[0]=f=>m(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(D.value)},t.toDisplayString(e.matchDay.valueText),5),!Number.isNaN(e.matchDay.value)&&!e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",c.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5)):e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",vte,xte)):t.createCommentVNode("",!0)],4))}},kte=Pp(wte,[["__scopeId","data-v-d88e6c89"]]),Cte={__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(e,{emit:r}){const i=e;t.useCssVars(f=>({"59858af6":c.value,"5987b976":m.value}));const B=t.ref(null),D=t.computed(()=>({itemsToShow:i.itemsToShow,itemsToScroll:i.itemsToScroll,snapAlign:"start"})),c=t.computed(()=>B.value.data.currentSlide.value==0?"none":"inline"),m=t.computed(()=>B.value.data.currentSlide.value==B.value.data.maxSlide.value?"none":"inline"),a=t.ref({});t.watch(()=>i.closestMatchDay,f=>{if(f){const n=i.matchDays.find(y=>y.key===f);v(n||i.matchDays[0],!0)}}),t.watch(()=>i.matchDays,f=>{if(!i.closestMatchDay&&f&&f.length){const n=f.find(y=>y.key===i.defaultMatchDayKey);a.value=n||f[0],r("change-match-day",a.value)}else i.closestMatchDay&&(a.value=f.find(n=>n.key===i.closestMatchDay)||{})},{immediate:!0});function v(f,n=!1){n&&B.value&&B.value.slideTo(f.index),a.value=f,r("change-match-day",a.value)}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[(t.openBlock(),t.createBlock(t.unref(pte),t.mergeProps(D.value,{modelValue:a.value.index,ref_key:"matchDayPickerCarousel",ref:B,key:a.value.index}),{addons:t.withCtx(()=>[t.createVNode(t.unref(gte))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,y=>(t.openBlock(),t.createBlock(t.unref(yte),{key:y.key},{default:t.withCtx(()=>[t.createVNode(kte,t.mergeProps(i,{"match-day":y,"match-day-selected":a.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:v}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16,["modelValue"]))],4))}},Ste=Pp(Cte,[["__scopeId","data-v-85216dc3"]]);function Sf(e,r=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${r}/${e}.png`}function ZI(e){if(typeof e=="string"){let r=e.replace("M","J ");return r=r.replace("PO1","CFI"),r=r.replace("PO2","CFV"),r=r.replace("PO3","SFI"),r=r.replace("PO4","SFV"),r=r.replace("PO5","FI"),r=r.replace("PO6","FV"),r}}function Tte(e){let r="";return e.game_status!=4&&(r+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(r+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),r}const Ete={class:"game-info__teams"},Ate={class:"game-info__teams__team__logo"},Mte=["src"],Ite={class:"game-info__teams__detail"},Pte={key:0,class:"game-info__teams__detail__pre-game"},Bte={class:"game-info__teams__team__logo away"},Nte=["src"],zte={key:0},Ote={key:0},Fte={key:1},Lte={__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(e){const r=e,i=t.computed(()=>{let f=r.game.schedule.split(":");return f.pop(),f=f.join(":"),f}),B=t.computed(()=>{let f="120px";return(r.isLandingMode||r.isAcronymVisible)&&(f="70px"),{"min-width":f}}),D=t.computed(()=>({"font-size":r.namesFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary})),c=t.computed(()=>({"font-size":r.additionalInfoFontSize,"font-family":r.additionalInfoFontFamily,color:r.colorSecondary})),m=t.computed(()=>({"font-size":r.scoreFontSize,"font-family":r.scoreFontFamily,color:r.colorPrimary})),a=t.computed(()=>({"font-size":r.timeZoneFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary})),v=t.computed(()=>({"font-size":r.timeFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary}));return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",Ete,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(D.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",Ate,[t.createElementVNode("img",{src:t.unref(Sf)(e.game.home_team.team_id),alt:""},null,8,Mte)])],4),t.createElementVNode("div",Ite,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",Pte,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(v.value)},t.toDisplayString(i.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(a.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(m.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Bte,[t.createElementVNode("img",{src:t.unref(Sf)(e.game.visiting_team.team_id),alt:""},null,8,Nte)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(D.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([c.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",zte,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",Ote,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Fte,t.toDisplayString(t.unref(Tte)(e.game)),1))],4)],4))}},JI=Pp(Lte,[["__scopeId","data-v-87b8c34a"]]),KI=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),Dte={class:"game-status"},Rte={key:0,class:"game-status__day__live"},Vte=KI(()=>t.createElementVNode("span",null,"LIVE",-1)),$te=KI(()=>t.createElementVNode("span",{class:"dot"},null,-1)),jte=[Vte,$te],Ute={key:0,class:"game-status__round"},Gte={__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(e){const r=e,i=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],B=t.computed(()=>{let m="";if(r.dateTimeMillis){const a=new Date(r.dateTimeMillis);m=`${a.getDate()} ${i[a.getMonth()]}`}return m}),D=t.computed(()=>({"font-size":r.fontSize})),c=t.computed(()=>{let m=[];return r.isLive?m.push("live"):r.status!==1&&m.push("pre-match"),m});return(m,a)=>(t.openBlock(),t.createElementBlock("div",Dte,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",c.value]),style:t.normalizeStyle(D.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",Rte,jte)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(B.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ute,t.toDisplayString(e.roundAbbreviation),1))]))}},QI=Pp(Gte,[["__scopeId","data-v-8839c56d"]]),Bp={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Hte=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),Wte={class:"actions"},qte={class:"actions__row"},Yte=Hte(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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"}),t.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"}),t.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)),Xte=[Yte],Zte={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jte=["fill"],Kte={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qte=["fill"],eae={__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(e,{emit:r}){const i=e,B=t.computed(()=>({backgroundColor:i.iconBackgroundColor,borderColor:i.iconBorderColor}));function D(c){r("action",c)}return(c,m)=>(t.openBlock(),t.createElementBlock("div",Wte,[t.createElementVNode("div",qte,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:m[0]||(m[0]=a=>D(t.unref(Bp).STATISTICS))},Xte,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:m[1]||(m[1]=a=>D(t.unref(Bp).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Zte,[t.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:i.iconColor},null,8,Jte)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:m[2]||(m[2]=a=>D(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Kte,[t.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:i.iconColor},null,8,Qte)]))])):t.createCommentVNode("",!0)])]))}},tae=Pp(eae,[["__scopeId","data-v-0d97b1a8"]]),n8=e=>(t.pushScopeId("data-v-7ec0f118"),e=e(),t.popScopeId(),e),aae={class:"actions"},nae={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rae=["fill"],iae={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oae=["fill"],sae=n8(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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"}),t.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"}),t.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)),lae=[sae],cae={key:0,class:"actions__videos"},dae={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uae=["fill"],hae={key:1,class:"actions__videos__thumbnails"},pae=n8(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),fae=n8(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),mae={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gae=["stroke"],yae={__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(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({backgroundColor:i.iconBackgroundColor,borderColor:i.iconBorderColor})),D=t.computed(()=>{const v=[];return i.componentWidth<540&&v.push("mobile"),v}),c=t.computed(()=>i.componentWidth>730),m=t.computed(()=>({color:i.thumbnailColor,fontFamily:i.thumbnailFontFamily,fontSize:i.thumbnailFontSize}));function a(v){r("action",v)}return(v,f)=>(t.openBlock(),t.createElementBlock("div",aae,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",D.value])},[e.gameStatus===4444&&!e.isLive&&!c.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[0]||(f[0]=n=>a(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",nae,[t.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:i.iconColor},null,8,rae)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!c.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:f[1]||(f[1]=n=>a(t.unref(Bp).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",iae,[t.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:i.iconColor},null,8,oae)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:f[2]||(f[2]=n=>a(t.unref(Bp).STATISTICS))},lae,4)],2),c.value?(t.openBlock(),t.createElementBlock("div",cae,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[3]||(f[3]=n=>a(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",dae,[t.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:i.iconColor},null,8,uae)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",hae,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:f[4]||(f[4]=n=>a(t.unref(Bp).PLAY_GOALS))},[pae,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(m.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:f[5]||(f[5]=n=>a(t.unref(Bp).PLAY_RESUME))},[fae,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(m.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:f[6]||(f[6]=n=>a(t.unref(Bp).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",mae,[t.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:e.arrowColor},null,8,gae)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},vae=Pp(yae,[["__scopeId","data-v-7ec0f118"]]),ex=e=>(t.pushScopeId("data-v-58b99b1d"),e=e(),t.popScopeId(),e),_ae={class:"row-landing__game-status"},bae={class:"row-landing__game-actions"},xae={class:"row-full__game-status"},wae={class:"row-full__game-info"},kae={key:0},Cae={class:"row-full__game-actions"},Sae={class:"game-events-container"},Tae=ex(()=>t.createElementVNode("div",{class:"separator"},null,-1)),Eae=ex(()=>t.createElementVNode("div",null,null,-1)),Aae={class:"game-events__data"},Mae={class:"game-events__data__team"},Iae=["src"],Pae={class:"game-events__data__team__event__text"},Bae={class:"game-events__data__team away"},Nae={class:"game-events__data__team__event__text"},zae=["src"],Oae=ex(()=>t.createElementVNode("div",null,null,-1)),Fae=ex(()=>t.createElementVNode("div",null,null,-1)),Lae={__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(e){return e>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(e,{emit:r}){const i=e,B={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"},D=t.ref(!1),c=t.ref(!1),m=t.computed(()=>{const s={homeTeam:[],awayTeam:[]};return i.game&&i.game.game_status!==4&&!i.game.is_live&&i.game.minutes&&(s.homeTeam.push(...l(i.game.minutes.home_goals_minutes,B.GOAL)),s.homeTeam.push(...l(i.game.minutes.home_red_cards_minutes,B.RED_CARD)),s.homeTeam.push(...l(i.game.minutes.home_yellow_cards_minutes,B.YELLOW_CARD)),s.awayTeam.push(...l(i.game.minutes.visiting_goals_minutes,B.GOAL)),s.awayTeam.push(...l(i.game.minutes.away_red_cards_minutes,B.RED_CARD)),s.awayTeam.push(...l(i.game.minutes.away_yellow_cards_minutes,B.YELLOW_CARD))),s}),a=t.computed(()=>{const s=m.value.homeTeam.length,u=m.value.awayTeam.length;return s+u>0}),v=t.computed(()=>{const s=i.game.score[0],u=i.game.score[1];return s>0||u>0}),f=t.computed(()=>({"background-color":i.backgroundColor})),n=t.computed(()=>({height:i.height})),y=t.computed(()=>{const s={game:[],events:[]};return i.componentWidth<500?(s.events.push("break-point-3"),s.game.push("break-point-2")):i.componentWidth<730?(s.game.push("break-point-2"),s.events.push("break-point-2")):i.componentWidth<910&&(s.game.push("break-point-1"),s.events.push("break-point-1")),s}),_=t.computed(()=>({isLandingMode:i.isLandingMode,game:i.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=t.computed(()=>({"font-size":i.televisionFontSize,"font-family":i.televisionFontFamily,color:i.televisionColor}));t.watch(()=>i.componentWidth,s=>{c.value=s<910});function l(s,u){return s.map(d=>({iconUrl:u,text:d}))}function o(s){s===Bp.SHOW_GAME_EVENTS?D.value=!D.value:r("action",{action:s,game:i.game})}return(s,u)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(f.value)},[t.createVNode(JI,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",_ae,[t.createVNode(QI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(ZI)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",bae,[e.game.home_team?(t.openBlock(),t.createBlock(tae,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"game-status":e.game.game_status,"show-play-button":!0,onAction:o},null,8,["is-live","has-video","game-status"])):t.createCommentVNode("",!0)])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",y.value.game]),style:t.normalizeStyle(n.value)},[t.createElementVNode("div",xae,[t.createVNode(QI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(ZI)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",wae,[t.createVNode(JI,t.mergeProps(_.value,{"is-television-visible":c.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(p.value)},[!c.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",kae,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Cae,[e.game.home_team?(t.openBlock(),t.createBlock(vae,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"has-actions":a.value,"has-goals":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?v.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":D.value,"component-width":e.componentWidth,onAction:o},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])):t.createCommentVNode("",!0)])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Sae,[Tae,t.createElementVNode("div",{class:t.normalizeClass(["game-events",y.value.events])},[Eae,t.createElementVNode("div",Aae,[t.createElementVNode("div",Mae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.homeTeam,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:`h${h}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:d.iconUrl},null,8,Iae),t.createElementVNode("div",Pae,t.toDisplayString(d.text),1)]))),128))]),t.createElementVNode("div",Bae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.awayTeam,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:`a${h}`,class:"game-events__data__team__event"},[t.createElementVNode("div",Nae,t.toDisplayString(d.text),1),t.createElementVNode("img",{src:d.iconUrl},null,8,zae)]))),128))])]),Oae,Fae],2)],512),[[t.vShow,D.value]])]),_:1})],4))}},eP=Pp(Lae,[["__scopeId","data-v-58b99b1d"]]),Dae={class:"calendar-table"},Rae={__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(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e;function B(c){return c%2===0?i.evenRowColor:i.oddRowColor}function D(c){r("action",c)}return(c,m)=>(t.openBlock(),t.createElementBlock("div",Dae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(a,v)=>(t.openBlock(),t.createBlock(eP,{key:a.game_id,game:a,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":B(v),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:D},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},Vae=Pp(Rae,[["__scopeId","data-v-ebabdc0c"]]),$ae={class:"calendar-by-team"},jae={class:"playing-as-picker"},Uae={class:"calendar-by-team__page"},Gae={__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(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e,B=t.ref(0),D=t.computed(()=>{let v=[];if(i.gamesPages.size>0){const f=Array.from(i.gamesPages.entries()).reduce((n,[y,_])=>{const p=Number(y),l=Number.isNaN(p)?y:`Jornada ${p<10?"0":""}${p}`,o=_.reduce((s,u)=>(s.push(...u),s),[]).filter(s=>B.value===0||B.value===1&&s.visiting_team.team_id===i.teamId?!0:B.value===2&&s.home_team.team_id===i.teamId);return o.length>0&&n.push({roundName:l,games:o}),n},[]);v.push(f)}return v});function c(v){r("action",v)}function m(v){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),B.value=v,document.querySelector("#opc"+v).classList.add("selected")}function a(v){let f=v;switch(v){case"PI1":f="Play In 1";break;case"PI2":f="Play In 2";break;case"R1":f="Repechaje";break;case"CFI":f="Cuartos de final - Ida";break;case"CFV":f="Cuartos de final - Vuelta";break;case"SFI":f="Semifinal - Ida";break;case"SFV":f="Semifinal - Vuelta";break;case"FI":f="Final - Ida";break;case"FV":f="Final - Vuelta";break}return f}return(v,f)=>(t.openBlock(),t.createElementBlock("div",$ae,[t.createElementVNode("div",jae,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:f[0]||(f[0]=n=>m(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:f[1]||(f[1]=n=>m(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:f[2]||(f[2]=n=>m(2))},"Local")]),t.createVNode(t.unref(WI),{"is-pagination-visible":e.isPaginationVisible,items:D.value},{default:t.withCtx(({item:n})=>[t.createElementVNode("div",Uae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n,(y,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(a(y.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.games,p=>(t.openBlock(),t.createBlock(eP,{key:p.game_id,game:p,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:c},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"])]))}},Hae=Pp(Gae,[["__scopeId","data-v-d93dcb09"]]),Wae="_pccard_h7wuw_3",qae="_pcmobile_h7wuw_17",Yae="_headerinfomobile_h7wuw_25",Xae="_liveMinutes_h7wuw_31",Zae="_viewButtomEvent_h7wuw_39",Jae="_viewButtomEventMobile_h7wuw_67",Kae="_containerEvents_h7wuw_95",Qae="_sepEvents_h7wuw_107",ene="_goalsContainer_h7wuw_127",tne="_yellowContainer_h7wuw_145",ane="_redContainer_h7wuw_161",nne="_containerEventsGameHometeam_h7wuw_177",rne="_containerEventsGameAwayteam_h7wuw_203",ine="_image62Icon_h7wuw_229",one="_imgChivasIcon_h7wuw_247",sne="_nameDesktop_h7wuw_261",lne="_nameMobile_h7wuw_287",cne="_homeTeam_h7wuw_311",dne="_sbado16De_h7wuw_333",une="_gameDate_h7wuw_351",hne="_sab16092023_h7wuw_359",pne="_div_h7wuw_385",fne="_divscore_h7wuw_403",mne="_cst_h7wuw_423",gne="_hour_h7wuw_441",yne="_score_h7wuw_443",vne="_chivasTvCanal_h7wuw_465",_ne="_gameStatus_h7wuw_489",bne="_matchInfo_h7wuw_511",xne="_image62Icon1_h7wuw_539",wne="_name_h7wuw_261",kne="_imgAtlasIcon_h7wuw_583",Cne="_name1_h7wuw_597",Sne="_awayTeam_h7wuw_621",Tne="_matchCard_h7wuw_643",Ene="_headereventsmobile_h7wuw_987",Ane="_headereventsmobilecont_h7wuw_1005",Mne="_headereventsmobilecontlocal_h7wuw_1021",Ine="_icongoalheader_h7wuw_1033",Pne="_conttarjetasmobile_h7wuw_1043",Bne="_conttarjetasmobileyellow_h7wuw_1053",Nne="_iconmobileyellow_h7wuw_1065",zne="_txtmobileyellow_h7wuw_1081",One="_iconmobilered_h7wuw_1109",Fne="_txtmobilered_h7wuw_1125",Lne="_conttarjetasmobilered_h7wuw_1155",Dne="_itemmobilgoal_h7wuw_1167",Rne="_goalscontainermobile_h7wuw_1197",Vne="_headereventsmobileconttitle_h7wuw_1227",$ne="_headereventsmobilecontaway_h7wuw_1273",jne={pccard:Wae,pcmobile:qae,headerinfomobile:Yae,liveMinutes:Xae,viewButtomEvent:Zae,viewButtomEventMobile:Jae,containerEvents:Kae,sepEvents:Qae,goalsContainer:ene,yellowContainer:tne,redContainer:ane,containerEventsGameHometeam:nne,containerEventsGameAwayteam:rne,image62Icon:ine,imgChivasIcon:one,nameDesktop:sne,nameMobile:lne,homeTeam:cne,sbado16De:dne,gameDate:une,sab16092023:hne,div:pne,divscore:fne,cst:mne,hour:gne,score:yne,chivasTvCanal:vne,gameStatus:_ne,matchInfo:bne,image62Icon1:xne,name:wne,imgAtlasIcon:kne,name1:Cne,awayTeam:Sne,matchCard:Tne,headereventsmobile:Ene,headereventsmobilecont:Ane,headereventsmobilecontlocal:Mne,icongoalheader:Ine,conttarjetasmobile:Pne,conttarjetasmobileyellow:Bne,iconmobileyellow:Nne,txtmobileyellow:zne,iconmobilered:One,txtmobilered:Fne,conttarjetasmobilered:Lne,itemmobilgoal:Dne,goalscontainermobile:Rne,headereventsmobileconttitle:Vne,headereventsmobilecontaway:$ne},Une=["src"],Gne=["src"],Hne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Wne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),qne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Yne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Xne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),Zne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Jne=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),Kne={key:0},Qne=t.createElementVNode("div",null,"ver desglose",-1),ere=t.createElementVNode("img",{width:"13",style:{"margin-top":"1px"},src:"http://golstatsimages.blob.core.windows.net/todoelfut/arrow-live-down.png"},null,-1),tre=["src"],are=["src"],nre={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},rre={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},ire={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},ore=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),sre=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),lre=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),cre=["src"],dre=["src"],ure=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),hre={key:0},pre=["src"],fre=["src"],mre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),gre=[mre],yre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),vre=[yre],_re=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),bre=[_re],xre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),wre=[xre],kre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Cre=[kre],Sre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Tre=[Sre],Ere=t.createElementVNode("img",{style:{"margin-left":"6px"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-down.png"},null,-1),Are=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Mre=[Are],Ire=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Pre=[Ire],Bre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Nre=[Bre],zre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Ore=[zre],Fre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),Lre=[Fre],Dre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),Rre=[Dre],Vre={__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(e,{emit:r}){const i=e,B=new Map([[1,45],[2,90],[3,105],[4,120]]),D=t.computed(()=>{const n=B.get(i.infoLive.recent_lapse);return n&&n<i.infoLive.minute?`${n}' + ${i.infoLive.minute-n}'`:`${i.infoLive.minute}'`}),c=t.computed(()=>{let n=0,y=0,_=!1;var p=!1;return Object.keys(i.infoLive).includes("score")&&(i.infoLive.score["own_"+i.game.home_team.team_id]!=null&&i.infoLive.score["own_"+i.game.home_team.team_id]!=0&&(p=!0),i.infoLive.score["own_"+i.game.visiting_team.team_id]!=null&&i.infoLive.score["own_"+i.game.visiting_team.team_id]!=0&&(_=!0),_?i.infoLive.score[i.game.home_team.team_id]!=null&&(n=parseInt(i.infoLive.score[i.game.home_team.team_id])+parseInt(i.infoLive.score["own_"+i.game.visiting_team.team_id])):i.infoLive.score[i.game.home_team.team_id]!=null&&(n=parseInt(i.infoLive.score[i.game.home_team.team_id])),p?i.infoLive.score[i.game.visiting_team.team_id]!=null&&(y=parseInt(i.infoLive.score[i.game.visiting_team.team_id])+parseInt(i.infoLive.score["own_"+i.game.home_team.team_id])):i.infoLive.score[i.game.visiting_team.team_id]!=null&&(y=parseInt(i.infoLive.score[i.game.visiting_team.team_id]))),n+" - "+y}),m=t.computed(()=>{const n={...i.game};return n.gameSchedule=i.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function a(n){let y=n.split(" "),_=y[y.length-2];return _.includes("+")?y[y.length-3]+"+"+y[y.length-1]:(_=y[y.length-1],_)}function v(n){r("open-modal-event",n)}function f(n,y){const _=new Date(n);if(y==1){const p=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],l=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${p[_.getDay()]} ${_.getDate()} de ${l[_.getMonth()]}`}else return`${_.getDate()}-${_.getMonth()+1}-${_.getFullYear()}`}return(n,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.pccard)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id,150)},null,10,Une),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgChivasIcon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id)},null,10,Gne),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameDesktop),id:"team-name"},t.toDisplayString(m.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameMobile),id:"team-name"},t.toDisplayString(m.value.home_team.acronym),3),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==0&&m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[Hne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),p!=m.value.minutes.home_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0&&m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.yellowContainer)},[Wne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_red_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.home_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0||m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.home_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(n.$style.redContainer)},[qne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_yellow_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.home_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.home_team.team_id]&&"goals"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[Yne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"red"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.yellowContainer)},[Xne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].red),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].red[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"yellow"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.redContainer)},[Zne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].yellow),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].yellow[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2),m.value.game_status==4&&m.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.sbado16De)},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.sab16092023)},t.toDisplayString(f(m.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.div)},t.toDisplayString(m.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.chivasTvCanal)},t.toDisplayString(m.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[m.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(f(m.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,0)),3)],64)),m.value.is_live||m.value.game_status!=1&&m.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(c.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(m.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.gameStatus)},[m.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.liveMinutes)},[Jne,t.createTextVNode(" LIVE - "+t.toDisplayString(D.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),m.value.penalties_score_home_team!=0||m.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",Kne," - Penales "+t.toDisplayString(m.value.penalties_score_home_team)+" - "+t.toDisplayString(m.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2),e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[m.value.is_live==1||m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.viewButtomEvent),onClick:y[0]||(y[0]=_=>v(m.value))},[Qne,t.createTextVNode(" "),ere],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon1),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id,150)},null,10,tre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name),id:"team-name"},t.toDisplayString(m.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id)},null,10,are),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name1),id:"team-name"},t.toDisplayString(m.value.visiting_team.acronym),3),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==0&&m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("img",nre)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.visiting_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),p!=m.value.minutes.visiting_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0&&m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.yellowContainer)},[m.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",rre)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.away_red_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.away_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0||m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(n.$style.redContainer)},[m.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",ire)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.away_yellow_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_))+"'",1),p!=m.value.minutes.away_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[ore,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"red"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.yellowContainer)},[sre,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].red),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].red[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"yellow"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.redContainer)},[lre,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].yellow[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.pcmobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headerinfomobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id,150)},null,10,cre),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgChivasIcon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id)},null,10,dre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameDesktop),id:"team-name"},t.toDisplayString(m.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameMobile),id:"team-name"},t.toDisplayString(m.value.home_team.acronym),3)],2),m.value.game_status==4&&m.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.sbado16De)},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.sab16092023)},t.toDisplayString(f(m.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.div)},t.toDisplayString(m.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.chivasTvCanal)},t.toDisplayString(m.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[m.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(f(m.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,0)),3)],64)),m.value.is_live||m.value.game_status!=1&&m.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(c.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(m.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.gameStatus)},[m.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.liveMinutes)},[ure,t.createTextVNode(" LIVE - "+t.toDisplayString(D.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),m.value.penalties_score_home_team!=0||m.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",hre," - Penales "+t.toDisplayString(m.value.penalties_score_home_team)+" - "+t.toDisplayString(m.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon1),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id,150)},null,10,pre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name),id:"team-name"},t.toDisplayString(m.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id)},null,10,fre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name1),id:"team-name"},t.toDisplayString(m.value.visiting_team.acronym),3)],2)],2),m.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.headereventsmobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecont)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecontlocal)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},gre,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},vre,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.goalscontainermobile),style:{"justify-content":"left !important"}},[m.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value.minutes.home_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(n.$style.itemmobilgoal)},t.toDisplayString(a(_).replace("(AG)",""))+"’",3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1)],64))),128)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobile)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},bre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(m.value.minutes.home_yellow_cards_minutes.length),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},wre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(m.value.minutes.home_red_cards_minutes.length),3)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Cre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Tre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].red).length),3)],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobileconttitle)},[e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==1||m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(n.$style.viewButtomEventMobile),onClick:y[1]||(y[1]=_=>v(m.value))},[t.createTextVNode(" ver desglose "),Ere],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecontaway)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobile)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(m.value.minutes.away_yellow_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Mre,2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(m.value.minutes.away_red_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Pre,2)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Nre,2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Ore,2)],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.goalscontainermobile),style:{"justify-content":"right !important"}},[m.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value.minutes.visiting_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(n.$style.itemmobilgoal)},t.toDisplayString(a(_).replace("(AG)",""))+"’",3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1)],64))),128)):t.createCommentVNode("",!0)],64))],2),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},Lre,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},Rre,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2)],2)):t.createCommentVNode("",!0)],2)],2))}},$re={$style:jne},jre=Pp(Vre,[["__cssModules",$re]]),Ure={class:"calendar-by-game__carousel"},Gre="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",Hre={__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(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},is_captured:{type:Number,default:1},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isTeamGamePerPage:{type:Boolean,default:!1},onlyGamesTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=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(e,{emit:r}){const i=e;let B=null,D=null,c=null;const m=t.ref([]),a=t.ref({}),v=t.ref(0),f=t.ref(null),n=t.ref({}),y=t.ref(new Map),_=t.ref(!1),p=t.ref(null),l=t.ref(null),o=t.ref(null),s=t.ref([]),u=t.ref(new Map),d=t.ref(new Set),h=t.computed(()=>i.isCup),g=t.computed(()=>i.isCupLegacy),b=t.computed(()=>({height:i.height,width:i.width})),w=t.computed(()=>{if(i.games)return le(i.games,i.isTeamGamePerPage);{const pe=y.value.get(n.value.key);return pe&&i.isTeamGamePerPage&&i.onlyGamesTeamId?[pe[0].filter(me=>me.home_team.team_id===i.onlyGamesTeamId||me.visiting_team.team_id===i.onlyGamesTeamId)]:pe||[]}}),x=t.computed(()=>i.areGamesCarouselType?w.value[0]:w.value),S=t.ref([]),k=t.ref(new Map),T=t.ref([]),C=t.ref(0),A=t.ref(0),E=t.computed(()=>{const pe=I(a.value),me=S.value.find(_e=>_e.key===pe);return me&&_.value&&(M(!1),ce(me)),pe});t.watch(()=>i.seasons,pe=>{pe&&pe.length&&(M(!0),m.value=pe.map(me=>me.id),F(pe,!0))},{immediate:!0,deep:!0}),t.watch(y,pe=>{if(i.onlyGamesTeamId&&pe.size){const me=Array.from(pe.values()).reduce((_e,xe)=>(xe.forEach(we=>{const Ee=we.find(Pe=>Pe.home_team.team_id===i.onlyGamesTeamId||Pe.visiting_team.team_id===i.onlyGamesTeamId);Ee&&_e.push(Ee)}),_e),[]);r("change-games-by-client-privileges",me)}},{immediate:!0});function M(pe){_.value=pe}function I(pe){const me=new Date().valueOf(),_e=Object.entries(Object.entries(pe).reduce((we,[Ee,Pe])=>(we[Ee]=null,Pe.forEach($e=>{$e.games.forEach(Te=>{if([1,0].includes(Te.game_status)||Te.is_live){const Ce=me-Te.dateTimeMillis;(we[Ee]===null||Ce<we[Ee])&&(we[Ee]=Ce)}})}),we),{}));if(!_e.length)return"1";const xe=_e.reduce((we,[Ee,Pe])=>{if(Pe!==null){const $e=k.value.get(Ee);(we.shortestMillisToNow===null||Pe<we.shortestMillisToNow&&$e.index>=we.scheduleKey.index)&&(we.shortestMillisToNow=Pe,we.round=Ee,we.scheduleKey=$e)}return we},{round:"",shortestMillisToNow:null,scheduleKey:null});return xe.shortestMillisToNow!==null?xe.round:_e[_e.length-1][0]}t.watch(()=>i.teamId,()=>{ee()},{immediate:!0});async function N(pe,me,_e=""){let xe=_e;try{const we={};i.token&&(we.Authorization=i.token),xe||(xe="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",pe.forEach(($e,Te)=>{xe+=`${Te===0?"":"&"}seasons=${$e}`}));const{data:{data:Ee,teams:Pe}}=await Qb.get(xe,{headers:we});return{seasonsAndGames:Ee,seasonsAndTeams:Pe}}catch(we){if(me>0)return N(pe,me-1,xe);throw new Error(we)}}function z(pe){for(const me of pe)if(!m.value.includes(me.season_id))return!0;return!1}async function F(pe,me){try{a.value={},A.value=0,C.value=0;let _e=0;const{seasonsAndGames:xe,seasonsAndTeams:we}=await N(pe.map(Pe=>Pe.id),3);if(me&&z(xe))return;xe.forEach(Pe=>{const{type:$e}=pe.find(Te=>Te.id===Pe.season_id);Pe.type=$e,Pe.games.forEach(Te=>{A.value++,([1,0].includes(Te.game_status)||Te.is_live)&&C.value++,Te.season_id=Pe.season_id}),$e===0&&(_e=Pe.season_id)}),p.value={seasonsGames:xe};const{teams:Ee}=we.find(Pe=>Pe.season_id===_e);l.value=Ee,r("change-teams",Ee),ee(),d.value.size?$():await R()}catch(_e){throw new Error(_e)}}async function R(){try{const pe=await J(),me=new Set;if(s.value=pe.data.reduce((_e,xe)=>(xe.games.forEach(we=>{me.add(we.game_id),_e.push(we)}),_e),[]),s.value.length){D||await V();const _e=[];d.value.forEach(xe=>{const we=u.value.get(xe);we&&new Date().valueOf()>we.dateTimeMillis&&_e.push(xe)}),_e.length&&_e.every(xe=>u.value.get(xe).isLiveTracked)&&q()}}catch(pe){throw new Error(pe)}}async function V(){try{const pe=[];for(const _e of s.value){const xe=u.value.get(_e.game_id);xe&&(xe.is_live=1,xe.game_status=4,xe.scheduleKey&&xe.scheduleKey.liveGamesIds.add(_e.game_id)),xe.isLiveTracked=!0,pe.push(X(_e.game_id))}const me=await Promise.all(pe);for(const _e of me){const xe=u.value.get(_e.game_id);if(xe){const we=[Number(_e.score[xe.home_team.team_id.toString()])+Number(_e.score[`own_${xe.visiting_team.team_id.toString()}`]),Number(_e.score[xe.visiting_team.team_id.toString()])+Number(_e.score[`own_${xe.home_team.team_id.toString()}`])],Ee=we[0],Pe=we[1];xe.score=[Number.isNaN(Ee)?0:Ee,Number.isNaN(Pe)?0:Pe],Q(xe,_e.plays)}}D||Z()}catch(pe){throw new Error(pe)}}function $(){d.value.size&&d.value.forEach(pe=>{const me=u.value.get(pe);if(me){const _e=new Date().valueOf();if(60*1e3*30+me.dateTimeMillis-_e>0){const xe=me.dateTimeMillis-_e-3e5;setTimeout(()=>{U()},xe>0?xe:0)}}})}function U(){q(),c||(c=setInterval(()=>{R()},i.checkLiveGamesIntervalMinutes*60*1e3))}function Z(){W(),D=setInterval(()=>{V()},i.gamesEventsIntervalMinutes*60*1e3)}function q(){clearInterval(c),c=null}function W(){clearInterval(D),D=null}function Q(pe,me){for(const _e of me)if(_e.category_id===0&&_e.game_status_id===13){const xe=u.value.get(_e.game_id);s.value=s.value.filter(we=>we.game_id!==pe.game_id),xe.is_live=0,xe.game_status=0,xe.scheduleKey&&xe.scheduleKey.liveGamesIds.delete(pe.game_id)}}async function X(pe){try{return(await Qb.get(`${Gre}${pe}`,{headers:{Authorization:`${i.token}`}})).data}catch(me){throw new Error(me)}}async function J(){try{if(i.seasons.length===0)return[];const pe=i.seasons.reduce((xe,we)=>`${xe}seasons=${we.id}&`,""),me=Qb.create({headers:{Authorization:`${i.token}`}}),{data:_e}=await me.get(`https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/lives?${pe}`);return _e}catch(pe){throw new Error(pe)}}function ee(){if(q(),!l.value)return;u.value.clear(),d.value.clear(),T.value=[];const pe=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(me=>{const _e=me.games.reduce((xe,we)=>{if(i.onlyGamesTeamId&&i.onlyGamesTeamId!==we.home_team&&i.onlyGamesTeamId!==we.visiting_team)return xe;const Ee={...we},Pe=new Date,[$e,Te,Ce]=Ee.date.split("-"),[ye,ge,Me]=Ee.schedule.split(":"),Se=new Date(Number($e),Number(Te)-1,Number(Ce),Number(ye),Number(ge),Number(Me));return Ee.dateTimeMillis=Se.valueOf(),Ee.home_team=l.value.find(ze=>ze.team_id===we.home_team),Ee.visiting_team=l.value.find(ze=>ze.team_id===we.visiting_team),Ee.game_status===4&&Pe.getFullYear()===Se.getFullYear()&&Pe.getMonth()===Se.getMonth()&&Pe.getDate()===Se.getDate()&&d.value.add(Ee.game_id),u.value.set(Ee.game_id,Ee),i.teamId&&Ee.home_team.team_id!==i.teamId&&Ee.visiting_team.team_id!==i.teamId||(xe[we.matchday_abbreviation]?xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date]?xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date].push(Ee):xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date]=[Ee]:xe[we.matchday_abbreviation]={[we.game_status===3?"canceled":we.date]:[Ee]},i.userTeamId&&([1,0].includes(Ee.game_status)||Ee.is_live)&&(Ee.home_team.team_id===i.userTeamId||Ee.visiting_team.team_id===i.userTeamId)&&T.value.push(Ee)),xe},{});for(let[xe,we]of Object.entries(_e))_e[xe]=Object.entries(we).map(([Ee,Pe])=>({date:Ee,games:Pe.sort(($e,Te)=>$e.dateTimeMillis-Te.dateTimeMillis)})),_e[xe].sort((Ee,Pe)=>Ee.date<Pe.date?-1:Ee.date>Pe.date?1:0);return{type:me.type,weight:me.type===0?0:me.type===2?1:2,schedule:_e}}):[];pe.sort((me,_e)=>me.weight-_e.weight),a.value=pe.reduce((me,_e)=>{for(const[xe,we]of Object.entries(_e.schedule))if(_e.type===0)if([1,2].includes(i.tournamentType)){const Ee=ite.get(i.tournamentType);if(Ee){const Pe=Ee.get(xe);Pe&&(me[Pe.matchDayAbbreviation]=we)}}else if(h.value){const Ee=xe.replace("M",""),Pe=Ee;g.value?me[rte[Ee]||Pe]=we:me[nte[xe]||Pe]=we}else me[Number(xe.replace("M","")).toString()]=we;else _e.type===2?xe.charAt(1)=="I"?me[`PI${Number(xe.replace("PI",""))}`]=we:me[`R${Number(xe.replace("PO",""))}`]=we:_e.type===1&&(me[ate[xe]]=we);return me},{}),y.value=new Map,k.value.clear(),S.value=Array.from(Object.entries(a.value).reduce((me,[_e,xe],we)=>{const Ee=Number(_e);let Pe="";Number.isNaN(Ee)?Pe=_e:Pe=Ee<10?`0${Ee}`:_e;const $e={key:_e,value:Ee,valueText:Pe,index:we,liveGamesIds:new Set};k.value.set(_e,$e),me.set(_e,$e);const Te=xe.reduce((ye,ge)=>(ge.games.forEach(Me=>{Me.game_id===i.defaultGameId&&(o.value=_e),Me.roundAbbreviation=Number.isNaN(Ee)?Ee:`J ${Ee}`,Me.scheduleKey=$e,Me.is_live&&$e.liveGamesIds.add(Me.game_id)}),ye=ye.concat(ge.games),ye),[]),Ce=le(Te);return y.value.set(_e,Ce),me},new Map).values())}function le(pe,me=!1){const _e=[];if(i.gamesPerMatchDay>0){let xe=[];pe.forEach((we,Ee)=>{xe.push(we),(Ee+1)%i.gamesPerMatchDay===0&&(_e.push([...xe]),xe=[])}),xe.length&&_e.push([...xe])}else _e.push(pe);return me&&i.isTeamGamePerPage&&i.defaultGameId?_e.filter(xe=>xe.game_id===i.defaultGameId||xe.gameId===i.defaultGameId):_e}async function oe(pe){try{const{data:me}=await Qb.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return me}catch(me){if(pe>0)return oe(pe-1);throw new Error(me)}}function se(){if(window.ResizeObserver)B=new ResizeObserver(()=>{v.value=f.value.clientWidth}),B.observe(f.value);else throw new Error("Resize observer not supported!")}function ce(pe){n.value.value!==pe.value&&(n.value=pe,r("change-round",pe))}function ae(pe){i.areGamesCarouselType&&r("change-game-carousel",pe.selectedItem)}function ne(pe){r("action",pe),ue(pe)}function ie(pe){r("open-modal-event",pe)}function ue(pe){const me="PLAY_RESUME",_e="PLAY_GOALS",xe=[607,608,12,55,54,35,14,52,15,53,466,477],we=[12,55,"35_r","54_r"],{game_id:Ee,season_id:Pe}=pe.game;let $e={seasonId:Pe,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:[Ee],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};pe.action===me?($e.categoryIds=xe,$e.advancedFilter.playListTitle="Resumen",r("openmedia",$e)):pe.action===_e&&($e.categoryIds=we,$e.advancedFilter.playListTitle="Goles",r("openmedia",$e))}async function he(){try{if(!i.awaitForSeasons&&!i.games){const pe=(await oe(3)).find(xe=>xe._id===1),me=pe.seasons[0],_e=[{id:me.id,type:me.type}];pe&&pe.tournament&&r("tournament-selected",pe.tournament),me.related_seasons&&me.related_seasons.length&&_e.push(...me.related_seasons.map(xe=>({id:xe.id,type:xe.type}))),await F(_e,!1)}}catch(pe){throw new Error(pe)}}return t.onMounted(()=>{se()}),he(),(pe,me)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:f,class:"calendar-by-game",style:t.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(Hae,{key:0,"full-tournament-schedule":a.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":v.value,"games-pages":y.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:ne},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&S.value?(t.openBlock(),t.createBlock(Ste,{key:0,"match-days":S.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":v.value,"default-match-day-key":o.value,"closest-match-day":e.sortCalendar?E.value:"",onChangeMatchDay:ce},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ure,[w.value?(t.openBlock(),t.createBlock(t.unref(WI),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:x.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType&&!e.isTeamGamePerPage,"items-to-show":e.areGamesCarouselType&&!e.isTeamGamePerPage?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType&&!e.isTeamGamePerPage,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:ae},{default:t.withCtx(({item:_e})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(jre,{key:0,is_captured:e.is_captured,game:_e,onOpenModalEvent:ie,"plays-live":e.playsLive,"info-live":e.infoLive},null,8,["is_captured","game","plays-live","info-live"])):(t.openBlock(),t.createBlock(Vae,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":_e,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":v.value,"is-round-mode":e.isRoundMode,onAction:ne},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"])):t.createCommentVNode("",!0)])],64))],4))}},Wre=Pp(Hre,[["__scopeId","data-v-5fabec8f"]]);function qre(){return tP().__VUE_DEVTOOLS_GLOBAL_HOOK__}function tP(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Yre=typeof Proxy=="function",Xre="devtools-plugin:setup",Zre="plugin:settings:set";let Fg,r8;function Jre(){var e;return Fg!==void 0||(typeof window<"u"&&window.performance?(Fg=!0,r8=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Fg=!0,r8=globalThis.perf_hooks.performance):Fg=!1),Fg}function Kre(){return Jre()?r8.now():Date.now()}class Qre{constructor(r,i){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=r,this.hook=i;const B={};if(r.settings)for(const m in r.settings){const a=r.settings[m];B[m]=a.defaultValue}const D=`__vue-devtools-plugin-settings__${r.id}`;let c=Object.assign({},B);try{const m=localStorage.getItem(D),a=JSON.parse(m);Object.assign(c,a)}catch{}this.fallbacks={getSettings(){return c},setSettings(m){try{localStorage.setItem(D,JSON.stringify(m))}catch{}c=m},now(){return Kre()}},i&&i.on(Zre,(m,a)=>{m===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(m,a)=>this.target?this.target.on[a]:(...v)=>{this.onQueue.push({method:a,args:v})}}),this.proxiedTarget=new Proxy({},{get:(m,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...v)=>(this.targetQueue.push({method:a,args:v,resolve:()=>{}}),this.fallbacks[a](...v)):(...v)=>new Promise(f=>{this.targetQueue.push({method:a,args:v,resolve:f})})})}async setRealTarget(r){this.target=r;for(const i of this.onQueue)this.target.on[i.method](...i.args);for(const i of this.targetQueue)i.resolve(await this.target[i.method](...i.args))}}function eie(e,r){const i=e,B=tP(),D=qre(),c=Yre&&i.enableEarlyProxy;if(D&&(B.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!c))D.emit(Xre,e,r);else{const m=c?new Qre(i,D):null;(B.__VUE_DEVTOOLS_PLUGINS__=B.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:i,setupFn:r,proxy:m}),m&&r(m.proxiedTarget)}}/*!
|
|
14
|
+
*/const Kd={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"}},qI={itemsToShow:{default:Kd.itemsToShow,type:Number},itemsToScroll:{default:Kd.itemsToScroll,type:Number},wrapAround:{default:Kd.wrapAround,type:Boolean},throttle:{default:Kd.throttle,type:Number},snapAlign:{default:Kd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Kd.transition,type:Number},breakpoints:{default:Kd.breakpoints,type:Object},autoplay:{default:Kd.autoplay,type:Number},pauseAutoplayOnHover:{default:Kd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Kd.mouseDrag,type:Boolean},touchDrag:{default:Kd.touchDrag,type:Boolean},dir:{default:Kd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Kd.i18n,type:Object},settings:{default(){return{}},type:Object}};function ote({config:e,slidesCount:r}){const{snapAlign:i,wrapAround:B,itemsToShow:D=1}=e;if(B)return Math.max(r-1,0);let c;switch(i){case"start":c=r-D;break;case"end":c=r-1;break;case"center":case"center-odd":c=r-Math.ceil((D-.5)/2);break;case"center-even":c=r-Math.ceil(D/2);break;default:c=0;break}return Math.max(c,0)}function ste({config:e,slidesCount:r}){const{wrapAround:i,snapAlign:B,itemsToShow:D=1}=e;let c=0;if(i||D>r)return c;switch(B){case"start":c=0;break;case"end":c=D-1;break;case"center":case"center-odd":c=Math.floor((D-1)/2);break;case"center-even":c=Math.floor((D-2)/2);break;default:c=0;break}return c}function Q6({val:e,max:r,min:i}){return r<i?e:Math.min(Math.max(e,i),r)}function lte({config:e,currentSlide:r,slidesCount:i}){const{snapAlign:B,wrapAround:D,itemsToShow:c=1}=e;let m=r;switch(B){case"center":case"center-odd":m-=(c-1)/2;break;case"center-even":m-=(c-2)/2;break;case"end":m-=c-1;break}return D?m:Q6({val:m,max:i-c,min:0})}function YI(e){return e?e.reduce((r,i)=>{var B;return i.type===t.Fragment?[...r,...YI(i.children)]:((B=i.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...r,i]:r},[]):[]}function e8({val:e,max:r,min:i=0}){return e>r?e8({val:e-(r+1),max:r,min:i}):e<i?e8({val:e+(r+1),max:r,min:i}):e}function cte(e,r){let i;return r?function(...B){const D=this;i||(e.apply(D,B),i=!0,setTimeout(()=>i=!1,r))}:e}function dte(e,r){let i;return function(...B){i&&clearTimeout(i),i=setTimeout(()=>{e(...B),i=null},r)}}function ute(e="",r={}){return Object.entries(r).reduce((i,[B,D])=>i.replace(`{${B}}`,String(D)),e)}var hte=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Kd))),r=t.inject("currentSlide",t.ref(0)),i=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},ute(e.i18n.itemXofY,{currentSlide:r.value+1,slidesCount:i.value}))}}),pte=t.defineComponent({name:"Carousel",props:qI,setup(e,{slots:r,emit:i,expose:B}){var D;const c=t.ref(null),m=t.ref([]),a=t.ref(0),v=t.ref(0),f=t.reactive(Object.assign({},Kd));let n=Object.assign({},Kd),y;const _=t.ref((D=e.modelValue)!==null&&D!==void 0?D:0),p=t.ref(0),l=t.ref(0),o=t.ref(0),s=t.ref(0);let u,d;t.provide("config",f),t.provide("slidesCount",v),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",s),t.provide("slideWidth",a);function h(){y=Object.assign({},e.breakpoints),n=Object.assign(Object.assign(Object.assign({},n),e),{i18n:Object.assign(Object.assign({},n.i18n),e.i18n),breakpoints:void 0}),b(n)}function g(){if(!y||!Object.keys(y).length)return;const ae=Object.keys(y).map(ie=>Number(ie)).sort((ie,ue)=>+ue-+ie);let ne=Object.assign({},n);ae.some(ie=>{const ue=window.matchMedia(`(min-width: ${ie}px)`).matches;return ue&&(ne=Object.assign(Object.assign({},ne),y[ie])),ue}),b(ne)}function b(ae){Object.entries(ae).forEach(([ne,ie])=>f[ne]=ie)}const w=dte(()=>{g(),S(),x()},16);function x(){if(!c.value)return;const ae=c.value.getBoundingClientRect();a.value=ae.width/f.itemsToShow}function S(){v.value<=0||(l.value=Math.ceil((v.value-1)/2),o.value=ote({config:f,slidesCount:v.value}),s.value=ste({config:f,slidesCount:v.value}),f.wrapAround||(_.value=Q6({val:_.value,max:o.value,min:s.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),g(),V(),window.addEventListener("resize",w,{passive:!0}),i("init")}),t.onUnmounted(()=>{d&&clearTimeout(d),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},C={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),M=t.ref(!1),I=()=>{E.value=!0},N=()=>{E.value=!1};function z(ae){["INPUT","TEXTAREA","SELECT"].includes(ae.target.tagName)||(k=ae.type==="touchstart",k||ae.preventDefault(),!(!k&&ae.button!==0||U.value)&&(T.x=k?ae.touches[0].clientX:ae.clientX,T.y=k?ae.touches[0].clientY:ae.clientY,document.addEventListener(k?"touchmove":"mousemove",F,!0),document.addEventListener(k?"touchend":"mouseup",R,!0)))}const F=cte(ae=>{M.value=!0,C.x=k?ae.touches[0].clientX:ae.clientX,C.y=k?ae.touches[0].clientY:ae.clientY;const ne=C.x-T.x,ie=C.y-T.y;A.y=ie,A.x=ne},f.throttle);function R(){const ae=f.dir==="rtl"?-1:1,ne=Math.sign(A.x)*.4,ie=Math.round(A.x/a.value+ne)*ae;if(ie&&!k){const ue=he=>{window.removeEventListener("click",ue,!0)};window.addEventListener("click",ue,!0)}Z(_.value-ie),A.x=0,A.y=0,M.value=!1,document.removeEventListener(k?"touchmove":"mousemove",F,!0),document.removeEventListener(k?"touchend":"mouseup",R,!0)}function V(){!f.autoplay||f.autoplay<=0||(u=setInterval(()=>{f.pauseAutoplayOnHover&&E.value||q()},f.autoplay))}function $(){u&&(clearInterval(u),u=null),V()}const U=t.ref(!1);function Z(ae){const ne=f.wrapAround?ae:Q6({val:ae,max:o.value,min:s.value});_.value===ne||U.value||(i("slide-start",{slidingToIndex:ae,currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:v.value}),U.value=!0,p.value=_.value,_.value=ne,d=setTimeout(()=>{if(f.wrapAround){const ie=e8({val:ne,max:o.value,min:0});ie!==_.value&&(_.value=ie,i("loop",{currentSlideIndex:_.value,slidingToIndex:ae}))}i("update:modelValue",_.value),i("slide-end",{currentSlideIndex:_.value,prevSlideIndex:p.value,slidesCount:v.value}),U.value=!1,$()},f.transition))}function q(){Z(_.value+f.itemsToScroll)}function W(){Z(_.value-f.itemsToScroll)}const Q={slideTo:Z,next:q,prev:W};t.provide("nav",Q),t.provide("isSliding",U);const X=t.computed(()=>lte({config:f,currentSlide:_.value,slidesCount:v.value}));t.provide("slidesToScroll",X);const J=t.computed(()=>{const ae=f.dir==="rtl"?-1:1,ne=X.value*a.value*ae;return{transform:`translateX(${A.x-ne}px)`,transition:`${U.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${v.value*a.value}px`:"",width:"100%"}});function ee(){h(),g(),S(),x(),$()}Object.keys(qI).forEach(ae=>{["modelValue"].includes(ae)||t.watch(()=>e[ae],ee)}),t.watch(()=>e.modelValue,ae=>{ae!==_.value&&Z(Number(ae))}),t.watch(v,S),i("before-init"),h();const le={config:f,slidesCount:v,slideWidth:a,next:q,prev:W,slideTo:Z,currentSlide:_,maxSlide:o,minSlide:s,middleSlide:l};B({updateBreakpointsConfigs:g,updateSlidesData:S,updateSlideWidth:x,initDefaultConfigs:h,restartCarousel:ee,slideTo:Z,next:q,prev:W,nav:Q,data:le});const oe=r.default||r.slides,se=r.addons,ce=t.reactive(le);return()=>{const ae=YI(oe==null?void 0:oe(ce)),ne=(se==null?void 0:se(ce))||[];ae.forEach((pe,me)=>pe.props.index=me);let ie=ae;if(f.wrapAround){const pe=ae.map((_e,xe)=>t.cloneVNode(_e,{index:-ae.length+xe,isClone:!0,key:`clone-before-${xe}`})),me=ae.map((_e,xe)=>t.cloneVNode(_e,{index:ae.length+xe,isClone:!0,key:`clone-after-${xe}`}));ie=[...pe,...ae,...me]}m.value=ae,v.value=Math.max(ae.length,1);const ue=t.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:f.mouseDrag?z:null,onTouchstartPassiveCapture:f.touchDrag?z:null},ie),he=t.h("div",{class:"carousel__viewport"},ue);return t.h("section",{ref:c,class:{carousel:!0,"is-sliding":U.value,"is-dragging":M.value,"is-hover":E.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:I,onMouseleave:N},[he,ne,t.h(hte)])}}}),t8;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(t8||(t8={}));const fte={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 mte(e){return e in t8}const a8=e=>{const r=t.inject("config",t.reactive(Object.assign({},Kd))),i=String(e.name),B=`icon${i.charAt(0).toUpperCase()+i.slice(1)}`;if(!i||typeof i!="string"||!mte(i))return;const D=fte[i],c=t.h("path",{d:D}),m=r.i18n[B]||e.title||i,a=t.h("title",m);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":m},[a,c])};a8.props={name:String,title:String};const gte=(e,{slots:r,attrs:i})=>{const{next:B,prev:D}=r||{},c=t.inject("config",t.reactive(Object.assign({},Kd))),m=t.inject("maxSlide",t.ref(1)),a=t.inject("minSlide",t.ref(1)),v=t.inject("currentSlide",t.ref(1)),f=t.inject("nav",{}),{dir:n,wrapAround:y,i18n:_}=c,p=n==="rtl",l=t.h("button",{type:"button",class:["carousel__prev",!y&&v.value<=a.value&&"carousel__prev--disabled",i==null?void 0:i.class],"aria-label":_.ariaPreviousSlide,onClick:f.prev},(D==null?void 0:D())||t.h(a8,{name:p?"arrowRight":"arrowLeft"})),o=t.h("button",{type:"button",class:["carousel__next",!y&&v.value>=m.value&&"carousel__next--disabled",i==null?void 0:i.class],"aria-label":_.ariaNextSlide,onClick:f.next},(B==null?void 0:B())||t.h(a8,{name:p?"arrowLeft":"arrowRight"}));return[l,o]};var yte=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:r}){const i=t.inject("config",t.reactive(Object.assign({},Kd))),B=t.inject("currentSlide",t.ref(0)),D=t.inject("slidesToScroll",t.ref(0)),c=t.inject("isSliding",t.ref(!1)),m=t.computed(()=>e.index===B.value),a=t.computed(()=>e.index===B.value-1),v=t.computed(()=>e.index===B.value+1),f=t.computed(()=>{const n=Math.floor(D.value),y=Math.ceil(D.value+i.itemsToShow-1);return e.index>=n&&e.index<=y});return()=>{var n;return t.h("li",{style:{width:`${100/i.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":f.value,"carousel__slide--active":m.value,"carousel__slide--prev":a.value,"carousel__slide--next":v.value,"carousel__slide--sliding":c.value},"aria-hidden":!f.value},(n=r.default)===null||n===void 0?void 0:n.call(r,{isActive:m.value,isClone:e.isClone,isPrev:a.value,isNext:v.value,isSliding:c.value,isVisible:f.value}))}}});const Pp=(e,r)=>{const i=e.__vccOpts||e;for(const[B,D]of r)i[B]=D;return i},XI=e=>(t.pushScopeId("data-v-d88e6c89"),e=e(),t.popScopeId(),e),vte={key:1,class:"match-day__live"},_te=XI(()=>t.createElementVNode("div",{class:"match-day__live__bullet"},null,-1)),bte=XI(()=>t.createElementVNode("div",{class:"match-day__live__text"},"LIVE",-1)),xte=[_te,bte],wte={__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(e,{emit:r}){const i=e,B=t.computed(()=>{const a={"background-color":i.backgroundColor,height:i.height};return i.matchDay.key===i.matchDaySelected.key&&(a["border-bottom"]=`solid 1px ${i.bottomLineColor}`,a["background-color"]=i.selectedMatchDayBackgroundColor),i.isLandingMode||(a["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),a}),D=t.computed(()=>({color:i.numberColor,"font-family":i.numberFontFamily,"font-size":i.numberFontSize})),c=t.computed(()=>({color:i.textColor,"font-family":i.textFontFamily,"font-size":i.textFontSize}));function m(a){r("click-match-day",a)}return(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...B.value}),onClick:v[0]||(v[0]=f=>m(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(D.value)},t.toDisplayString(e.matchDay.valueText),5),!Number.isNaN(e.matchDay.value)&&!e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",c.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5)):e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",vte,xte)):t.createCommentVNode("",!0)],4))}},kte=Pp(wte,[["__scopeId","data-v-d88e6c89"]]),Cte={__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(e,{emit:r}){const i=e;t.useCssVars(f=>({"59858af6":c.value,"5987b976":m.value}));const B=t.ref(null),D=t.computed(()=>({itemsToShow:i.itemsToShow,itemsToScroll:i.itemsToScroll,snapAlign:"start"})),c=t.computed(()=>B.value.data.currentSlide.value==0?"none":"inline"),m=t.computed(()=>B.value.data.currentSlide.value==B.value.data.maxSlide.value?"none":"inline"),a=t.ref({});t.watch(()=>i.closestMatchDay,f=>{if(f){const n=i.matchDays.find(y=>y.key===f);v(n||i.matchDays[0],!0)}}),t.watch(()=>i.matchDays,f=>{if(!i.closestMatchDay&&f&&f.length){const n=f.find(y=>y.key===i.defaultMatchDayKey);a.value=n||f[0],r("change-match-day",a.value)}else i.closestMatchDay&&(a.value=f.find(n=>n.key===i.closestMatchDay)||{})},{immediate:!0});function v(f,n=!1){n&&B.value&&B.value.slideTo(f.index),a.value=f,r("change-match-day",a.value)}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[(t.openBlock(),t.createBlock(t.unref(pte),t.mergeProps(D.value,{modelValue:a.value.index,ref_key:"matchDayPickerCarousel",ref:B,key:a.value.index}),{addons:t.withCtx(()=>[t.createVNode(t.unref(gte))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,y=>(t.openBlock(),t.createBlock(t.unref(yte),{key:y.key},{default:t.withCtx(()=>[t.createVNode(kte,t.mergeProps(i,{"match-day":y,"match-day-selected":a.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:v}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16,["modelValue"]))],4))}},Ste=Pp(Cte,[["__scopeId","data-v-85216dc3"]]);function Sf(e,r=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${r}/${e}.png`}function ZI(e){if(typeof e=="string"){let r=e.replace("M","J ");return r=r.replace("PO1","CFI"),r=r.replace("PO2","CFV"),r=r.replace("PO3","SFI"),r=r.replace("PO4","SFV"),r=r.replace("PO5","FI"),r=r.replace("PO6","FV"),r}}function Tte(e){let r="";return e.game_status!=4&&(r+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(r+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),r}const Ete={class:"game-info__teams"},Ate={class:"game-info__teams__team__logo"},Mte=["src"],Ite={class:"game-info__teams__detail"},Pte={key:0,class:"game-info__teams__detail__pre-game"},Bte={class:"game-info__teams__team__logo away"},Nte=["src"],zte={key:0},Ote={key:0},Fte={key:1},Lte={__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(e){const r=e,i=t.computed(()=>{let f=r.game.schedule.split(":");return f.pop(),f=f.join(":"),f}),B=t.computed(()=>{let f="120px";return(r.isLandingMode||r.isAcronymVisible)&&(f="70px"),{"min-width":f}}),D=t.computed(()=>({"font-size":r.namesFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary})),c=t.computed(()=>({"font-size":r.additionalInfoFontSize,"font-family":r.additionalInfoFontFamily,color:r.colorSecondary})),m=t.computed(()=>({"font-size":r.scoreFontSize,"font-family":r.scoreFontFamily,color:r.colorPrimary})),a=t.computed(()=>({"font-size":r.timeZoneFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary})),v=t.computed(()=>({"font-size":r.timeFontSize,"font-family":r.namesFontFamily,color:r.colorPrimary}));return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",Ete,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(D.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",Ate,[t.createElementVNode("img",{src:t.unref(Sf)(e.game.home_team.team_id),alt:""},null,8,Mte)])],4),t.createElementVNode("div",Ite,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",Pte,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(v.value)},t.toDisplayString(i.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(a.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(m.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",Bte,[t.createElementVNode("img",{src:t.unref(Sf)(e.game.visiting_team.team_id),alt:""},null,8,Nte)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(D.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([c.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",zte,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",Ote,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Fte,t.toDisplayString(t.unref(Tte)(e.game)),1))],4)],4))}},JI=Pp(Lte,[["__scopeId","data-v-87b8c34a"]]),KI=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),Dte={class:"game-status"},Rte={key:0,class:"game-status__day__live"},Vte=KI(()=>t.createElementVNode("span",null,"LIVE",-1)),$te=KI(()=>t.createElementVNode("span",{class:"dot"},null,-1)),jte=[Vte,$te],Ute={key:0,class:"game-status__round"},Gte={__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(e){const r=e,i=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],B=t.computed(()=>{let m="";if(r.dateTimeMillis){const a=new Date(r.dateTimeMillis);m=`${a.getDate()} ${i[a.getMonth()]}`}return m}),D=t.computed(()=>({"font-size":r.fontSize})),c=t.computed(()=>{let m=[];return r.isLive?m.push("live"):r.status!==1&&m.push("pre-match"),m});return(m,a)=>(t.openBlock(),t.createElementBlock("div",Dte,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",c.value]),style:t.normalizeStyle(D.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",Rte,jte)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(B.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ute,t.toDisplayString(e.roundAbbreviation),1))]))}},QI=Pp(Gte,[["__scopeId","data-v-8839c56d"]]),Bp={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Hte=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),Wte={class:"actions"},qte={class:"actions__row"},Yte=Hte(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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"}),t.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"}),t.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)),Xte=[Yte],Zte={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Jte=["fill"],Kte={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qte=["fill"],eae={__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(e,{emit:r}){const i=e,B=t.computed(()=>({backgroundColor:i.iconBackgroundColor,borderColor:i.iconBorderColor}));function D(c){r("action",c)}return(c,m)=>(t.openBlock(),t.createElementBlock("div",Wte,[t.createElementVNode("div",qte,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:m[0]||(m[0]=a=>D(t.unref(Bp).STATISTICS))},Xte,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:m[1]||(m[1]=a=>D(t.unref(Bp).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Zte,[t.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:i.iconColor},null,8,Jte)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:m[2]||(m[2]=a=>D(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Kte,[t.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:i.iconColor},null,8,Qte)]))])):t.createCommentVNode("",!0)])]))}},tae=Pp(eae,[["__scopeId","data-v-0d97b1a8"]]),n8=e=>(t.pushScopeId("data-v-7ec0f118"),e=e(),t.popScopeId(),e),aae={class:"actions"},nae={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rae=["fill"],iae={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oae=["fill"],sae=n8(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.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"}),t.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"}),t.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)),lae=[sae],cae={key:0,class:"actions__videos"},dae={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},uae=["fill"],hae={key:1,class:"actions__videos__thumbnails"},pae=n8(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),fae=n8(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),mae={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},gae=["stroke"],yae={__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(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e,B=t.computed(()=>({backgroundColor:i.iconBackgroundColor,borderColor:i.iconBorderColor})),D=t.computed(()=>{const v=[];return i.componentWidth<540&&v.push("mobile"),v}),c=t.computed(()=>i.componentWidth>730),m=t.computed(()=>({color:i.thumbnailColor,fontFamily:i.thumbnailFontFamily,fontSize:i.thumbnailFontSize}));function a(v){r("action",v)}return(v,f)=>(t.openBlock(),t.createElementBlock("div",aae,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",D.value])},[e.gameStatus===4444&&!e.isLive&&!c.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[0]||(f[0]=n=>a(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",nae,[t.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:i.iconColor},null,8,rae)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!c.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:f[1]||(f[1]=n=>a(t.unref(Bp).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",iae,[t.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:i.iconColor},null,8,oae)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:f[2]||(f[2]=n=>a(t.unref(Bp).STATISTICS))},lae,4)],2),c.value?(t.openBlock(),t.createElementBlock("div",cae,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:f[3]||(f[3]=n=>a(t.unref(Bp).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",dae,[t.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:i.iconColor},null,8,uae)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",hae,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:f[4]||(f[4]=n=>a(t.unref(Bp).PLAY_GOALS))},[pae,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(m.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:f[5]||(f[5]=n=>a(t.unref(Bp).PLAY_RESUME))},[fae,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(m.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:f[6]||(f[6]=n=>a(t.unref(Bp).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",mae,[t.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:e.arrowColor},null,8,gae)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},vae=Pp(yae,[["__scopeId","data-v-7ec0f118"]]),ex=e=>(t.pushScopeId("data-v-58b99b1d"),e=e(),t.popScopeId(),e),_ae={class:"row-landing__game-status"},bae={class:"row-landing__game-actions"},xae={class:"row-full__game-status"},wae={class:"row-full__game-info"},kae={key:0},Cae={class:"row-full__game-actions"},Sae={class:"game-events-container"},Tae=ex(()=>t.createElementVNode("div",{class:"separator"},null,-1)),Eae=ex(()=>t.createElementVNode("div",null,null,-1)),Aae={class:"game-events__data"},Mae={class:"game-events__data__team"},Iae=["src"],Pae={class:"game-events__data__team__event__text"},Bae={class:"game-events__data__team away"},Nae={class:"game-events__data__team__event__text"},zae=["src"],Oae=ex(()=>t.createElementVNode("div",null,null,-1)),Fae=ex(()=>t.createElementVNode("div",null,null,-1)),Lae={__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(e){return e>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(e,{emit:r}){const i=e,B={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"},D=t.ref(!1),c=t.ref(!1),m=t.computed(()=>{const s={homeTeam:[],awayTeam:[]};return i.game&&i.game.game_status!==4&&!i.game.is_live&&i.game.minutes&&(s.homeTeam.push(...l(i.game.minutes.home_goals_minutes,B.GOAL)),s.homeTeam.push(...l(i.game.minutes.home_red_cards_minutes,B.RED_CARD)),s.homeTeam.push(...l(i.game.minutes.home_yellow_cards_minutes,B.YELLOW_CARD)),s.awayTeam.push(...l(i.game.minutes.visiting_goals_minutes,B.GOAL)),s.awayTeam.push(...l(i.game.minutes.away_red_cards_minutes,B.RED_CARD)),s.awayTeam.push(...l(i.game.minutes.away_yellow_cards_minutes,B.YELLOW_CARD))),s}),a=t.computed(()=>{const s=m.value.homeTeam.length,u=m.value.awayTeam.length;return s+u>0}),v=t.computed(()=>{const s=i.game.score[0],u=i.game.score[1];return s>0||u>0}),f=t.computed(()=>({"background-color":i.backgroundColor})),n=t.computed(()=>({height:i.height})),y=t.computed(()=>{const s={game:[],events:[]};return i.componentWidth<500?(s.events.push("break-point-3"),s.game.push("break-point-2")):i.componentWidth<730?(s.game.push("break-point-2"),s.events.push("break-point-2")):i.componentWidth<910&&(s.game.push("break-point-1"),s.events.push("break-point-1")),s}),_=t.computed(()=>({isLandingMode:i.isLandingMode,game:i.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=t.computed(()=>({"font-size":i.televisionFontSize,"font-family":i.televisionFontFamily,color:i.televisionColor}));t.watch(()=>i.componentWidth,s=>{c.value=s<910});function l(s,u){return s.map(d=>({iconUrl:u,text:d}))}function o(s){s===Bp.SHOW_GAME_EVENTS?D.value=!D.value:r("action",{action:s,game:i.game})}return(s,u)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(f.value)},[t.createVNode(JI,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",_ae,[t.createVNode(QI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(ZI)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",bae,[e.game.home_team?(t.openBlock(),t.createBlock(tae,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"game-status":e.game.game_status,"show-play-button":!0,onAction:o},null,8,["is-live","has-video","game-status"])):t.createCommentVNode("",!0)])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(f.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",y.value.game]),style:t.normalizeStyle(n.value)},[t.createElementVNode("div",xae,[t.createVNode(QI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(ZI)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",wae,[t.createVNode(JI,t.mergeProps(_.value,{"is-television-visible":c.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(p.value)},[!c.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",kae,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Cae,[e.game.home_team?(t.openBlock(),t.createBlock(vae,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"has-actions":a.value,"has-goals":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?v.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":D.value,"component-width":e.componentWidth,onAction:o},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])):t.createCommentVNode("",!0)])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Sae,[Tae,t.createElementVNode("div",{class:t.normalizeClass(["game-events",y.value.events])},[Eae,t.createElementVNode("div",Aae,[t.createElementVNode("div",Mae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.homeTeam,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:`h${h}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:d.iconUrl},null,8,Iae),t.createElementVNode("div",Pae,t.toDisplayString(d.text),1)]))),128))]),t.createElementVNode("div",Bae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.awayTeam,(d,h)=>(t.openBlock(),t.createElementBlock("div",{key:`a${h}`,class:"game-events__data__team__event"},[t.createElementVNode("div",Nae,t.toDisplayString(d.text),1),t.createElementVNode("img",{src:d.iconUrl},null,8,zae)]))),128))])]),Oae,Fae],2)],512),[[t.vShow,D.value]])]),_:1})],4))}},eP=Pp(Lae,[["__scopeId","data-v-58b99b1d"]]),Dae={class:"calendar-table"},Rae={__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(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e;function B(c){return c%2===0?i.evenRowColor:i.oddRowColor}function D(c){r("action",c)}return(c,m)=>(t.openBlock(),t.createElementBlock("div",Dae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(a,v)=>(t.openBlock(),t.createBlock(eP,{key:a.game_id,game:a,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":B(v),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:D},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},Vae=Pp(Rae,[["__scopeId","data-v-ebabdc0c"]]),$ae={class:"calendar-by-team"},jae={class:"playing-as-picker"},Uae={class:"calendar-by-team__page"},Gae={__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(e){return e>0}}},emits:["action"],setup(e,{emit:r}){const i=e,B=t.ref(0),D=t.computed(()=>{let v=[];if(i.gamesPages.size>0){const f=Array.from(i.gamesPages.entries()).reduce((n,[y,_])=>{const p=Number(y),l=Number.isNaN(p)?y:`Jornada ${p<10?"0":""}${p}`,o=_.reduce((s,u)=>(s.push(...u),s),[]).filter(s=>B.value===0||B.value===1&&s.visiting_team.team_id===i.teamId?!0:B.value===2&&s.home_team.team_id===i.teamId);return o.length>0&&n.push({roundName:l,games:o}),n},[]);v.push(f)}return v});function c(v){r("action",v)}function m(v){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),B.value=v,document.querySelector("#opc"+v).classList.add("selected")}function a(v){let f=v;switch(v){case"PI1":f="Play In 1";break;case"PI2":f="Play In 2";break;case"R1":f="Repechaje";break;case"CFI":f="Cuartos de final - Ida";break;case"CFV":f="Cuartos de final - Vuelta";break;case"SFI":f="Semifinal - Ida";break;case"SFV":f="Semifinal - Vuelta";break;case"FI":f="Final - Ida";break;case"FV":f="Final - Vuelta";break}return f}return(v,f)=>(t.openBlock(),t.createElementBlock("div",$ae,[t.createElementVNode("div",jae,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:f[0]||(f[0]=n=>m(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:f[1]||(f[1]=n=>m(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:f[2]||(f[2]=n=>m(2))},"Local")]),t.createVNode(t.unref(WI),{"is-pagination-visible":e.isPaginationVisible,items:D.value},{default:t.withCtx(({item:n})=>[t.createElementVNode("div",Uae,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n,(y,_)=>(t.openBlock(),t.createElementBlock("div",{key:_,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(a(y.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.games,p=>(t.openBlock(),t.createBlock(eP,{key:p.game_id,game:p,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:c},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"])]))}},Hae=Pp(Gae,[["__scopeId","data-v-d93dcb09"]]),Wae="_pccard_h7wuw_3",qae="_pcmobile_h7wuw_17",Yae="_headerinfomobile_h7wuw_25",Xae="_liveMinutes_h7wuw_31",Zae="_viewButtomEvent_h7wuw_39",Jae="_viewButtomEventMobile_h7wuw_67",Kae="_containerEvents_h7wuw_95",Qae="_sepEvents_h7wuw_107",ene="_goalsContainer_h7wuw_127",tne="_yellowContainer_h7wuw_145",ane="_redContainer_h7wuw_161",nne="_containerEventsGameHometeam_h7wuw_177",rne="_containerEventsGameAwayteam_h7wuw_203",ine="_image62Icon_h7wuw_229",one="_imgChivasIcon_h7wuw_247",sne="_nameDesktop_h7wuw_261",lne="_nameMobile_h7wuw_287",cne="_homeTeam_h7wuw_311",dne="_sbado16De_h7wuw_333",une="_gameDate_h7wuw_351",hne="_sab16092023_h7wuw_359",pne="_div_h7wuw_385",fne="_divscore_h7wuw_403",mne="_cst_h7wuw_423",gne="_hour_h7wuw_441",yne="_score_h7wuw_443",vne="_chivasTvCanal_h7wuw_465",_ne="_gameStatus_h7wuw_489",bne="_matchInfo_h7wuw_511",xne="_image62Icon1_h7wuw_539",wne="_name_h7wuw_261",kne="_imgAtlasIcon_h7wuw_583",Cne="_name1_h7wuw_597",Sne="_awayTeam_h7wuw_621",Tne="_matchCard_h7wuw_643",Ene="_headereventsmobile_h7wuw_987",Ane="_headereventsmobilecont_h7wuw_1005",Mne="_headereventsmobilecontlocal_h7wuw_1021",Ine="_icongoalheader_h7wuw_1033",Pne="_conttarjetasmobile_h7wuw_1043",Bne="_conttarjetasmobileyellow_h7wuw_1053",Nne="_iconmobileyellow_h7wuw_1065",zne="_txtmobileyellow_h7wuw_1081",One="_iconmobilered_h7wuw_1109",Fne="_txtmobilered_h7wuw_1125",Lne="_conttarjetasmobilered_h7wuw_1155",Dne="_itemmobilgoal_h7wuw_1167",Rne="_goalscontainermobile_h7wuw_1197",Vne="_headereventsmobileconttitle_h7wuw_1227",$ne="_headereventsmobilecontaway_h7wuw_1273",jne={pccard:Wae,pcmobile:qae,headerinfomobile:Yae,liveMinutes:Xae,viewButtomEvent:Zae,viewButtomEventMobile:Jae,containerEvents:Kae,sepEvents:Qae,goalsContainer:ene,yellowContainer:tne,redContainer:ane,containerEventsGameHometeam:nne,containerEventsGameAwayteam:rne,image62Icon:ine,imgChivasIcon:one,nameDesktop:sne,nameMobile:lne,homeTeam:cne,sbado16De:dne,gameDate:une,sab16092023:hne,div:pne,divscore:fne,cst:mne,hour:gne,score:yne,chivasTvCanal:vne,gameStatus:_ne,matchInfo:bne,image62Icon1:xne,name:wne,imgAtlasIcon:kne,name1:Cne,awayTeam:Sne,matchCard:Tne,headereventsmobile:Ene,headereventsmobilecont:Ane,headereventsmobilecontlocal:Mne,icongoalheader:Ine,conttarjetasmobile:Pne,conttarjetasmobileyellow:Bne,iconmobileyellow:Nne,txtmobileyellow:zne,iconmobilered:One,txtmobilered:Fne,conttarjetasmobilered:Lne,itemmobilgoal:Dne,goalscontainermobile:Rne,headereventsmobileconttitle:Vne,headereventsmobilecontaway:$ne},Une=["src"],Gne=["src"],Hne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Wne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),qne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Yne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Xne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),Zne=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Jne=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),Kne={key:0},Qne=t.createElementVNode("div",null,"ver desglose",-1),ere=t.createElementVNode("img",{width:"13",style:{"margin-top":"1px"},src:"http://golstatsimages.blob.core.windows.net/todoelfut/arrow-live-down.png"},null,-1),tre=["src"],are=["src"],nre={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},rre={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},ire={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},ore=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),sre=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),lre=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),cre=["src"],dre=["src"],ure=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),hre={key:0},pre=["src"],fre=["src"],mre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),gre=[mre],yre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),vre=[yre],_re=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),bre=[_re],xre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),wre=[xre],kre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Cre=[kre],Sre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Tre=[Sre],Ere=t.createElementVNode("img",{style:{"margin-left":"6px"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-down.png"},null,-1),Are=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Mre=[Are],Ire=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Pre=[Ire],Bre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),Nre=[Bre],zre=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),Ore=[zre],Fre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),Lre=[Fre],Dre=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"http://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),Rre=[Dre],Vre={__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(e,{emit:r}){const i=e,B=new Map([[1,45],[2,90],[3,105],[4,120]]),D=t.computed(()=>{const n=B.get(i.infoLive.recent_lapse);return n&&n<i.infoLive.minute?`${n}' + ${i.infoLive.minute-n}'`:`${i.infoLive.minute}'`}),c=t.computed(()=>{let n=0,y=0,_=!1;var p=!1;return Object.keys(i.infoLive).includes("score")&&(i.infoLive.score["own_"+i.game.home_team.team_id]!=null&&i.infoLive.score["own_"+i.game.home_team.team_id]!=0&&(p=!0),i.infoLive.score["own_"+i.game.visiting_team.team_id]!=null&&i.infoLive.score["own_"+i.game.visiting_team.team_id]!=0&&(_=!0),_?i.infoLive.score[i.game.home_team.team_id]!=null&&(n=parseInt(i.infoLive.score[i.game.home_team.team_id])+parseInt(i.infoLive.score["own_"+i.game.visiting_team.team_id])):i.infoLive.score[i.game.home_team.team_id]!=null&&(n=parseInt(i.infoLive.score[i.game.home_team.team_id])),p?i.infoLive.score[i.game.visiting_team.team_id]!=null&&(y=parseInt(i.infoLive.score[i.game.visiting_team.team_id])+parseInt(i.infoLive.score["own_"+i.game.home_team.team_id])):i.infoLive.score[i.game.visiting_team.team_id]!=null&&(y=parseInt(i.infoLive.score[i.game.visiting_team.team_id]))),n+" - "+y}),m=t.computed(()=>{const n={...i.game};return n.gameSchedule=i.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function a(n){let y=n.split(" "),_=y[y.length-2];return _.includes("+")?y[y.length-3]+"+"+y[y.length-1]:(_=y[y.length-1],_)}function v(n){r("open-modal-event",n)}function f(n,y){const _=new Date(n);if(y==1){const p=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],l=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${p[_.getDay()]} ${_.getDate()} de ${l[_.getMonth()]}`}else return`${_.getDate()}-${_.getMonth()+1}-${_.getFullYear()}`}return(n,y)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.pccard)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id,150)},null,10,Une),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgChivasIcon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id)},null,10,Gne),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameDesktop),id:"team-name"},t.toDisplayString(m.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameMobile),id:"team-name"},t.toDisplayString(m.value.home_team.acronym),3),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==0&&m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[Hne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),p!=m.value.minutes.home_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0&&m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.yellowContainer)},[Wne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_red_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.home_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.home_red_cards_minutes.length>0||m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.home_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(n.$style.redContainer)},[qne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.home_yellow_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.home_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.home_team.team_id]&&"goals"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[Yne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"red"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.yellowContainer)},[Xne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].red),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].red[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"yellow"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.redContainer)},[Zne,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].yellow),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].yellow[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2),m.value.game_status==4&&m.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.sbado16De)},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.sab16092023)},t.toDisplayString(f(m.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.div)},t.toDisplayString(m.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.chivasTvCanal)},t.toDisplayString(m.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[m.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(f(m.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,0)),3)],64)),m.value.is_live||m.value.game_status!=1&&m.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(c.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(m.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.gameStatus)},[m.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.liveMinutes)},[Jne,t.createTextVNode(" LIVE - "+t.toDisplayString(D.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),m.value.penalties_score_home_team!=0||m.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",Kne," - Penales "+t.toDisplayString(m.value.penalties_score_home_team)+" - "+t.toDisplayString(m.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2),e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[m.value.is_live==1||m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.viewButtomEvent),onClick:y[0]||(y[0]=_=>v(m.value))},[Qne,t.createTextVNode(" "),ere],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon1),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id,150)},null,10,tre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name),id:"team-name"},t.toDisplayString(m.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id)},null,10,are),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name1),id:"team-name"},t.toDisplayString(m.value.visiting_team.acronym),3),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==0&&m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("img",nre)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.visiting_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),p!=m.value.minutes.visiting_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0&&m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.yellowContainer)},[m.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",rre)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.away_red_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_)),1),p!=m.value.minutes.away_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),m.value.minutes.away_red_cards_minutes.length>0||m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),m.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(n.$style.redContainer)},[m.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",ire)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.value.minutes.away_yellow_cards_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(a(_))+"'",1),p!=m.value.minutes.away_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.goalsContainer)},[ore,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"red"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.yellowContainer)},[sre,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].red),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].red[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"yellow"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.redContainer)},[lre,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].yellow[_].event.map(l=>`${l}'`).join(", ")),1),p!=Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(", ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.pcmobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headerinfomobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id,150)},null,10,cre),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgChivasIcon),alt:"",src:t.unref(Sf)(m.value.home_team.team_id)},null,10,dre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameDesktop),id:"team-name"},t.toDisplayString(m.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameMobile),id:"team-name"},t.toDisplayString(m.value.home_team.acronym),3)],2),m.value.game_status==4&&m.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.sbado16De)},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.sab16092023)},t.toDisplayString(f(m.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.div)},t.toDisplayString(m.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.chivasTvCanal)},t.toDisplayString(m.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[m.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(f(m.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},t.toDisplayString(f(m.value.date_time_utc,0)),3)],64)),m.value.is_live||m.value.game_status!=1&&m.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(c.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(m.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.gameStatus)},[m.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.liveMinutes)},[ure,t.createTextVNode(" LIVE - "+t.toDisplayString(D.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),m.value.penalties_score_home_team!=0||m.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",hre," - Penales "+t.toDisplayString(m.value.penalties_score_home_team)+" - "+t.toDisplayString(m.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon1),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id,150)},null,10,pre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name),id:"team-name"},t.toDisplayString(m.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:t.unref(Sf)(m.value.visiting_team.team_id)},null,10,fre),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name1),id:"team-name"},t.toDisplayString(m.value.visiting_team.acronym),3)],2)],2),m.value.game_status!=4||m.value.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.headereventsmobile)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecont)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecontlocal)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},gre,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.home_team.team_id]&&"goals"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},vre,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.goalscontainermobile),style:{"justify-content":"left !important"}},[m.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value.minutes.home_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(n.$style.itemmobilgoal)},t.toDisplayString(a(_).replace("(AG)",""))+"’",3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(n.$style.itemmobilgoal)},t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),3))),128)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobile)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},bre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(m.value.minutes.home_yellow_cards_minutes.length),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},wre,2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(m.value.minutes.home_red_cards_minutes.length),3)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Cre,2),e.playsLive[e.game.home_team.team_id]&&"yellow"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.txtmobileyellow)},"0",2))],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Tre,2),e.playsLive[e.game.home_team.team_id]&&"red"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].red).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.txtmobilered)},"0",2))],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobileconttitle)},[e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.is_live==1||m.value.game_status==1||Object.keys(m.value.minutes).length>0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(n.$style.viewButtomEventMobile),onClick:y[1]||(y[1]=_=>v(m.value))},[t.createTextVNode(" ver desglose "),Ere],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.headereventsmobilecontaway)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobile)},[m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(m.value.minutes.away_yellow_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Mre,2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(m.value.minutes.away_red_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Pre,2)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobileyellow)},[e.playsLive[e.game.visiting_team.team_id]&&"yellow"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.txtmobileyellow)},"0",2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobileyellow)},Nre,2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.conttarjetasmobilered)},[e.playsLive[e.game.visiting_team.team_id]&&"red"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.txtmobilered)},"0",2)),t.createElementVNode("div",{class:t.normalizeClass(n.$style.iconmobilered)},Ore,2)],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.goalscontainermobile),style:{"justify-content":"right !important"}},[m.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.value.minutes.visiting_goals_minutes,(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(n.$style.itemmobilgoal)},t.toDisplayString(a(_).replace("(AG)",""))+"’",3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(_,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:t.normalizeClass(n.$style.itemmobilgoal)},t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[_].event.map(l=>`${l}'`).join(", ").replace("(AG)","")),3))),128)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),m.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},Lre,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[m.value.is_live==1&&m.value.game_status!=1||m.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(n.$style.icongoalheader)},Rre,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2)],2)):t.createCommentVNode("",!0)],2)],2))}},$re={$style:jne},jre=Pp(Vre,[["__cssModules",$re]]),Ure={class:"calendar-by-game__carousel"},Gre="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",Hre={__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(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},is_captured:{type:Number,default:1},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isTeamGamePerPage:{type:Boolean,default:!1},onlyGamesTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=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(e,{emit:r}){const i=e;let B=null,D=null,c=null;const m=t.ref([]),a=t.ref({}),v=t.ref(0),f=t.ref(null),n=t.ref({}),y=t.ref(new Map),_=t.ref(!1),p=t.ref(null),l=t.ref(null),o=t.ref(null),s=t.ref([]),u=t.ref(new Map),d=t.ref(new Set),h=t.computed(()=>i.isCup),g=t.computed(()=>i.isCupLegacy),b=t.computed(()=>({height:i.height,width:i.width})),w=t.computed(()=>{if(i.games)return le(i.games,i.isTeamGamePerPage);{const pe=y.value.get(n.value.key);return pe&&i.isTeamGamePerPage&&i.onlyGamesTeamId?[pe[0].filter(me=>me.home_team.team_id===i.onlyGamesTeamId||me.visiting_team.team_id===i.onlyGamesTeamId)]:pe||[]}}),x=t.computed(()=>i.areGamesCarouselType?w.value[0]:w.value),S=t.ref([]),k=t.ref(new Map),T=t.ref([]),C=t.ref(0),A=t.ref(0),E=t.computed(()=>{const pe=I(a.value),me=S.value.find(_e=>_e.key===pe);return me&&_.value&&(M(!1),ce(me)),pe});t.watch(()=>i.seasons,pe=>{pe&&pe.length&&(M(!0),m.value=pe.map(me=>me.id),F(pe,!0))},{immediate:!0,deep:!0}),t.watch(y,pe=>{if(i.onlyGamesTeamId&&pe.size){const me=Array.from(pe.values()).reduce((_e,xe)=>(xe.forEach(we=>{const Ee=we.find(Pe=>Pe.home_team.team_id===i.onlyGamesTeamId||Pe.visiting_team.team_id===i.onlyGamesTeamId);Ee&&_e.push(Ee)}),_e),[]);r("change-games-by-client-privileges",me)}},{immediate:!0});function M(pe){_.value=pe}function I(pe){const me=new Date().valueOf(),_e=Object.entries(Object.entries(pe).reduce((we,[Ee,Pe])=>(we[Ee]=null,Pe.forEach($e=>{$e.games.forEach(Te=>{if([1,0].includes(Te.game_status)||Te.is_live){const Ce=me-Te.dateTimeMillis;(we[Ee]===null||Ce<we[Ee])&&(we[Ee]=Ce)}})}),we),{}));if(!_e.length)return"1";const xe=_e.reduce((we,[Ee,Pe])=>{if(Pe!==null){const $e=k.value.get(Ee);(we.shortestMillisToNow===null||Pe<we.shortestMillisToNow&&$e.index>=we.scheduleKey.index)&&(we.shortestMillisToNow=Pe,we.round=Ee,we.scheduleKey=$e)}return we},{round:"",shortestMillisToNow:null,scheduleKey:null});return xe.shortestMillisToNow!==null?xe.round:_e[_e.length-1][0]}t.watch(()=>i.teamId,()=>{ee()},{immediate:!0});async function N(pe,me,_e=""){let xe=_e;try{const we={};i.token&&(we.Authorization=i.token),xe||(xe="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",pe.forEach(($e,Te)=>{xe+=`${Te===0?"":"&"}seasons=${$e}`}));const{data:{data:Ee,teams:Pe}}=await Qb.get(xe,{headers:we});return{seasonsAndGames:Ee,seasonsAndTeams:Pe}}catch(we){if(me>0)return N(pe,me-1,xe);throw new Error(we)}}function z(pe){for(const me of pe)if(!m.value.includes(me.season_id))return!0;return!1}async function F(pe,me){try{a.value={},A.value=0,C.value=0;let _e=0;const{seasonsAndGames:xe,seasonsAndTeams:we}=await N(pe.map(Pe=>Pe.id),3);if(me&&z(xe))return;xe.forEach(Pe=>{const{type:$e}=pe.find(Te=>Te.id===Pe.season_id);Pe.type=$e,Pe.games.forEach(Te=>{A.value++,([1,0].includes(Te.game_status)||Te.is_live)&&C.value++,Te.season_id=Pe.season_id}),$e===0&&(_e=Pe.season_id)}),p.value={seasonsGames:xe};const{teams:Ee}=we.find(Pe=>Pe.season_id===_e);l.value=Ee,r("change-teams",Ee),ee(),d.value.size?$():await R()}catch(_e){throw new Error(_e)}}async function R(){try{const pe=await J(),me=new Set;if(s.value=pe.data.reduce((_e,xe)=>(xe.games.forEach(we=>{me.add(we.game_id),_e.push(we)}),_e),[]),s.value.length){D||await V();const _e=[];d.value.forEach(xe=>{const we=u.value.get(xe);we&&new Date().valueOf()>we.dateTimeMillis&&_e.push(xe)}),_e.length&&_e.every(xe=>u.value.get(xe).isLiveTracked)&&q()}}catch(pe){throw new Error(pe)}}async function V(){try{const pe=[];for(const _e of s.value){const xe=u.value.get(_e.game_id);xe&&(xe.is_live=1,xe.game_status=4,xe.scheduleKey&&xe.scheduleKey.liveGamesIds.add(_e.game_id)),xe.isLiveTracked=!0,pe.push(X(_e.game_id))}const me=await Promise.all(pe);for(const _e of me){const xe=u.value.get(_e.game_id);if(xe){const we=[Number(_e.score[xe.home_team.team_id.toString()])+Number(_e.score[`own_${xe.visiting_team.team_id.toString()}`]),Number(_e.score[xe.visiting_team.team_id.toString()])+Number(_e.score[`own_${xe.home_team.team_id.toString()}`])],Ee=we[0],Pe=we[1];xe.score=[Number.isNaN(Ee)?0:Ee,Number.isNaN(Pe)?0:Pe],Q(xe,_e.plays)}}D||Z()}catch(pe){throw new Error(pe)}}function $(){d.value.size&&d.value.forEach(pe=>{const me=u.value.get(pe);if(me){const _e=new Date().valueOf();if(60*1e3*30+me.dateTimeMillis-_e>0){const xe=me.dateTimeMillis-_e-3e5;setTimeout(()=>{U()},xe>0?xe:0)}}})}function U(){q(),c||(c=setInterval(()=>{R()},i.checkLiveGamesIntervalMinutes*60*1e3))}function Z(){W(),D=setInterval(()=>{V()},i.gamesEventsIntervalMinutes*60*1e3)}function q(){clearInterval(c),c=null}function W(){clearInterval(D),D=null}function Q(pe,me){for(const _e of me)if(_e.category_id===0&&_e.game_status_id===13){const xe=u.value.get(_e.game_id);s.value=s.value.filter(we=>we.game_id!==pe.game_id),xe.is_live=0,xe.game_status=0,xe.scheduleKey&&xe.scheduleKey.liveGamesIds.delete(pe.game_id)}}async function X(pe){try{return(await Qb.get(`${Gre}${pe}`,{headers:{Authorization:`${i.token}`}})).data}catch(me){throw new Error(me)}}async function J(){try{if(i.seasons.length===0)return[];const pe=i.seasons.reduce((xe,we)=>`${xe}seasons=${we.id}&`,""),me=Qb.create({headers:{Authorization:`${i.token}`}}),{data:_e}=await me.get(`https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/lives?${pe}`);return _e}catch(pe){throw new Error(pe)}}function ee(){if(q(),!l.value)return;u.value.clear(),d.value.clear(),T.value=[];const pe=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(me=>{const _e=me.games.reduce((xe,we)=>{if(i.onlyGamesTeamId&&i.onlyGamesTeamId!==we.home_team&&i.onlyGamesTeamId!==we.visiting_team)return xe;const Ee={...we},Pe=new Date,[$e,Te,Ce]=Ee.date.split("-"),[ye,ge,Me]=Ee.schedule.split(":"),Se=new Date(Number($e),Number(Te)-1,Number(Ce),Number(ye),Number(ge),Number(Me));return Ee.dateTimeMillis=Se.valueOf(),Ee.home_team=l.value.find(ze=>ze.team_id===we.home_team),Ee.visiting_team=l.value.find(ze=>ze.team_id===we.visiting_team),Ee.game_status===4&&Pe.getFullYear()===Se.getFullYear()&&Pe.getMonth()===Se.getMonth()&&Pe.getDate()===Se.getDate()&&d.value.add(Ee.game_id),u.value.set(Ee.game_id,Ee),i.teamId&&Ee.home_team.team_id!==i.teamId&&Ee.visiting_team.team_id!==i.teamId||(xe[we.matchday_abbreviation]?xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date]?xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date].push(Ee):xe[we.matchday_abbreviation][we.game_status===3?"canceled":we.date]=[Ee]:xe[we.matchday_abbreviation]={[we.game_status===3?"canceled":we.date]:[Ee]},i.userTeamId&&([1,0].includes(Ee.game_status)||Ee.is_live)&&(Ee.home_team.team_id===i.userTeamId||Ee.visiting_team.team_id===i.userTeamId)&&T.value.push(Ee)),xe},{});for(let[xe,we]of Object.entries(_e))_e[xe]=Object.entries(we).map(([Ee,Pe])=>({date:Ee,games:Pe.sort(($e,Te)=>$e.dateTimeMillis-Te.dateTimeMillis)})),_e[xe].sort((Ee,Pe)=>Ee.date<Pe.date?-1:Ee.date>Pe.date?1:0);return{type:me.type,weight:me.type===0?0:me.type===2?1:2,schedule:_e}}):[];pe.sort((me,_e)=>me.weight-_e.weight),a.value=pe.reduce((me,_e)=>{for(const[xe,we]of Object.entries(_e.schedule))if(_e.type===0)if([1,2].includes(i.tournamentType)){const Ee=ite.get(i.tournamentType);if(Ee){const Pe=Ee.get(xe);Pe&&(me[Pe.matchDayAbbreviation]=we)}}else if(h.value){const Ee=xe.replace("M",""),Pe=Ee;g.value?me[rte[Ee]||Pe]=we:me[nte[xe]||Pe]=we}else me[Number(xe.replace("M","")).toString()]=we;else _e.type===2?xe.charAt(1)=="I"?me[`PI${Number(xe.replace("PI",""))}`]=we:me[`R${Number(xe.replace("PO",""))}`]=we:_e.type===1&&(me[ate[xe]]=we);return me},{}),y.value=new Map,k.value.clear(),S.value=Array.from(Object.entries(a.value).reduce((me,[_e,xe],we)=>{const Ee=Number(_e);let Pe="";Number.isNaN(Ee)?Pe=_e:Pe=Ee<10?`0${Ee}`:_e;const $e={key:_e,value:Ee,valueText:Pe,index:we,liveGamesIds:new Set};k.value.set(_e,$e),me.set(_e,$e);const Te=xe.reduce((ye,ge)=>(ge.games.forEach(Me=>{Me.game_id===i.defaultGameId&&(o.value=_e),Me.roundAbbreviation=Number.isNaN(Ee)?Ee:`J ${Ee}`,Me.scheduleKey=$e,Me.is_live&&$e.liveGamesIds.add(Me.game_id)}),ye=ye.concat(ge.games),ye),[]),Ce=le(Te);return y.value.set(_e,Ce),me},new Map).values())}function le(pe,me=!1){const _e=[];if(i.gamesPerMatchDay>0){let xe=[];pe.forEach((we,Ee)=>{xe.push(we),(Ee+1)%i.gamesPerMatchDay===0&&(_e.push([...xe]),xe=[])}),xe.length&&_e.push([...xe])}else _e.push(pe);return me&&i.isTeamGamePerPage&&i.defaultGameId?_e.filter(xe=>xe.game_id===i.defaultGameId||xe.gameId===i.defaultGameId):_e}async function oe(pe){try{const{data:me}=await Qb.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return me}catch(me){if(pe>0)return oe(pe-1);throw new Error(me)}}function se(){if(window.ResizeObserver)B=new ResizeObserver(()=>{v.value=f.value.clientWidth}),B.observe(f.value);else throw new Error("Resize observer not supported!")}function ce(pe){n.value.value!==pe.value&&(n.value=pe,r("change-round",pe))}function ae(pe){i.areGamesCarouselType&&r("change-game-carousel",pe.selectedItem)}function ne(pe){r("action",pe),ue(pe)}function ie(pe){r("open-modal-event",pe)}function ue(pe){const me="PLAY_RESUME",_e="PLAY_GOALS",xe=[607,608,12,55,54,35,14,52,15,53,466,477],we=[12,55,"35_r","54_r"],{game_id:Ee,season_id:Pe}=pe.game;let $e={seasonId:Pe,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:[Ee],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};pe.action===me?($e.categoryIds=xe,$e.advancedFilter.playListTitle="Resumen",r("openmedia",$e)):pe.action===_e&&($e.categoryIds=we,$e.advancedFilter.playListTitle="Goles",r("openmedia",$e))}async function he(){try{if(!i.awaitForSeasons&&!i.games){const pe=(await oe(3)).find(xe=>xe._id===1),me=pe.seasons[0],_e=[{id:me.id,type:me.type}];pe&&pe.tournament&&r("tournament-selected",pe.tournament),me.related_seasons&&me.related_seasons.length&&_e.push(...me.related_seasons.map(xe=>({id:xe.id,type:xe.type}))),await F(_e,!1)}}catch(pe){throw new Error(pe)}}return t.onMounted(()=>{se()}),he(),(pe,me)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:f,class:"calendar-by-game",style:t.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(Hae,{key:0,"full-tournament-schedule":a.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":v.value,"games-pages":y.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:ne},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&S.value?(t.openBlock(),t.createBlock(Ste,{key:0,"match-days":S.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":v.value,"default-match-day-key":o.value,"closest-match-day":e.sortCalendar?E.value:"",onChangeMatchDay:ce},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",Ure,[w.value?(t.openBlock(),t.createBlock(t.unref(WI),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:x.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType&&!e.isTeamGamePerPage,"items-to-show":e.areGamesCarouselType&&!e.isTeamGamePerPage?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType&&!e.isTeamGamePerPage,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:ae},{default:t.withCtx(({item:_e})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(jre,{key:0,is_captured:e.is_captured,game:_e,onOpenModalEvent:ie,"plays-live":e.playsLive,"info-live":e.infoLive},null,8,["is_captured","game","plays-live","info-live"])):(t.openBlock(),t.createBlock(Vae,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":_e,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":v.value,"is-round-mode":e.isRoundMode,onAction:ne},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"])):t.createCommentVNode("",!0)])],64))],4))}},Wre=Pp(Hre,[["__scopeId","data-v-5fabec8f"]]);function qre(){return tP().__VUE_DEVTOOLS_GLOBAL_HOOK__}function tP(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Yre=typeof Proxy=="function",Xre="devtools-plugin:setup",Zre="plugin:settings:set";let Fg,r8;function Jre(){var e;return Fg!==void 0||(typeof window<"u"&&window.performance?(Fg=!0,r8=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Fg=!0,r8=globalThis.perf_hooks.performance):Fg=!1),Fg}function Kre(){return Jre()?r8.now():Date.now()}class Qre{constructor(r,i){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=r,this.hook=i;const B={};if(r.settings)for(const m in r.settings){const a=r.settings[m];B[m]=a.defaultValue}const D=`__vue-devtools-plugin-settings__${r.id}`;let c=Object.assign({},B);try{const m=localStorage.getItem(D),a=JSON.parse(m);Object.assign(c,a)}catch{}this.fallbacks={getSettings(){return c},setSettings(m){try{localStorage.setItem(D,JSON.stringify(m))}catch{}c=m},now(){return Kre()}},i&&i.on(Zre,(m,a)=>{m===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(m,a)=>this.target?this.target.on[a]:(...v)=>{this.onQueue.push({method:a,args:v})}}),this.proxiedTarget=new Proxy({},{get:(m,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...v)=>(this.targetQueue.push({method:a,args:v,resolve:()=>{}}),this.fallbacks[a](...v)):(...v)=>new Promise(f=>{this.targetQueue.push({method:a,args:v,resolve:f})})})}async setRealTarget(r){this.target=r;for(const i of this.onQueue)this.target.on[i.method](...i.args);for(const i of this.targetQueue)i.resolve(await this.target[i.method](...i.args))}}function eie(e,r){const i=e,B=tP(),D=qre(),c=Yre&&i.enableEarlyProxy;if(D&&(B.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!c))D.emit(Xre,e,r);else{const m=c?new Qre(i,D):null;(B.__VUE_DEVTOOLS_PLUGINS__=B.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:i,setupFn:r,proxy:m}),m&&r(m.proxiedTarget)}}/*!
|
|
15
15
|
* vuex v4.0.2
|
|
16
16
|
* (c) 2021 Evan You
|
|
17
17
|
* @license MIT
|