@golstats/gsc-game-data 1.0.213 → 1.0.214
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-3aab28df-9179ed52.js → FilterConditions-3aab28df-4ab998a0.js} +1 -1
- package/dist/{FilterConditions-dc6b25de-DOW3ApFh-bec1f166.js → FilterConditions-dc6b25de-DOW3ApFh-e192e4ed.js} +1 -1
- package/dist/{FilterField-37ad154d-CGBI29FT-03d805f6.js → FilterField-37ad154d-CGBI29FT-215d44b8.js} +1 -1
- package/dist/{FilterField-c27c9666-4433c159.js → FilterField-c27c9666-3a46e5a5.js} +1 -1
- package/dist/{FilterSubcategories-5a4d9250-3282b86b.js → FilterSubcategories-5a4d9250-9378cb9d.js} +1 -1
- package/dist/{FilterSubcategories-a7b96423-Dq4ouXsj-ec45b232.js → FilterSubcategories-a7b96423-Dq4ouXsj-1a8d3fe5.js} +1 -1
- package/dist/gsc-game-data.js +1 -1
- package/dist/gsc-game-data.umd.cjs +1 -1
- package/dist/{index-1255f215.js → index-f5b72149.js} +8 -8
- package/package.json +2 -2
package/dist/{FilterConditions-3aab28df-9179ed52.js → FilterConditions-3aab28df-4ab998a0.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCssVars as E, computed as r, openBlock as d, createElementBlock as i, normalizeStyle as $, createElementVNode as o, createVNode as y, unref as g, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as H, popScopeId as R } from "vue";
|
|
2
|
-
import { Z as T, Y as m } from "./index-
|
|
2
|
+
import { Z as T, Y as m } from "./index-f5b72149.js";
|
|
3
3
|
const n = (s) => (H("data-v-80d9c265"), s = s(), R(), s), V = { class: "details__header" }, W = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__header__title" }, "Jugando como", -1)), I = { class: "details__header__checkbox" }, z = { class: "details__body" }, F = { class: "details__body__playing-as" }, L = ["onClick"], N = { class: "details__header" }, U = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), Y = { class: "details__header__checkbox" }, D = { class: "details__body" }, J = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__body__title" }, "1er tiempo", -1)), j = { class: "details__body__game-section" }, q = ["onClick"], w = { class: "details__body" }, G = /* @__PURE__ */ n(() => /* @__PURE__ */ o("div", { class: "details__body__title" }, "2do tiempo", -1)), K = { class: "details__body__game-section" }, M = ["onClick"], O = {
|
|
4
4
|
__name: "FilterConditions",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCssVars as E, computed as r, openBlock as s, createElementBlock as i, normalizeStyle as R, createElementVNode as d, createVNode as y, unref as g, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as V, popScopeId as $ } from "vue";
|
|
2
|
-
import { r as H, R as m } from "./index-
|
|
2
|
+
import { r as H, R as m } from "./index-f5b72149.js";
|
|
3
3
|
const n = (o) => (V("data-v-80d9c265"), o = o(), $(), o), T = { class: "details__header" }, W = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "Jugando como", -1)), I = { class: "details__header__checkbox" }, z = { class: "details__body" }, F = { class: "details__body__playing-as" }, L = ["onClick"], N = { class: "details__header" }, U = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), D = { class: "details__header__checkbox" }, J = { class: "details__body" }, j = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__body__title" }, "1er tiempo", -1)), q = { class: "details__body__game-section" }, w = ["onClick"], G = { class: "details__body" }, K = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__body__title" }, "2do tiempo", -1)), M = { class: "details__body__game-section" }, O = ["onClick"], Q = {
|
|
4
4
|
__name: "FilterConditions",
|
|
5
5
|
props: {
|
package/dist/{FilterField-37ad154d-CGBI29FT-03d805f6.js → FilterField-37ad154d-CGBI29FT-215d44b8.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as l, openBlock as a, createElementBlock as n, createVNode as c, unref as d } from "vue";
|
|
2
|
-
import { r as u, H as f } from "./index-
|
|
2
|
+
import { r as u, H as f } from "./index-f5b72149.js";
|
|
3
3
|
const i = { class: "filter-field" }, m = {
|
|
4
4
|
__name: "FilterField",
|
|
5
5
|
setup(s) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ref as r, openBlock as a, createElementBlock as n, createVNode as c, unref as u } from "vue";
|
|
2
|
-
import { Z as d, o as i } from "./index-
|
|
2
|
+
import { Z as d, o as i } from "./index-f5b72149.js";
|
|
3
3
|
const f = { class: "filter-field" }, m = {
|
|
4
4
|
__name: "FilterField",
|
|
5
5
|
setup(p) {
|
package/dist/{FilterSubcategories-5a4d9250-3282b86b.js → FilterSubcategories-5a4d9250-9378cb9d.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as o, Fragment as t, renderList as u, createVNode as d, createBlock as n, unref as i } from "vue";
|
|
2
|
-
import { Z as l, Y as g } from "./index-
|
|
2
|
+
import { Z as l, Y as g } from "./index-f5b72149.js";
|
|
3
3
|
const y = { class: "subcategory-group" }, b = {
|
|
4
4
|
__name: "SubcategoryGroup",
|
|
5
5
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as r, createElementBlock as a, Fragment as t, renderList as u, createVNode as d, createBlock as i, unref as n } from "vue";
|
|
2
|
-
import { r as l, R as y } from "./index-
|
|
2
|
+
import { r as l, R as y } from "./index-f5b72149.js";
|
|
3
3
|
const b = { class: "subcategory-group" }, g = {
|
|
4
4
|
__name: "SubcategoryGroup",
|
|
5
5
|
props: {
|
package/dist/gsc-game-data.js
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* Vue 3 Carousel 0.3.3
|
|
12
12
|
* (c) 2024
|
|
13
13
|
* @license MIT
|
|
14
|
-
*/const Mc={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"}},vI={itemsToShow:{default:Mc.itemsToShow,type:Number},itemsToScroll:{default:Mc.itemsToScroll,type:Number},wrapAround:{default:Mc.wrapAround,type:Boolean},throttle:{default:Mc.throttle,type:Number},snapAlign:{default:Mc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Mc.transition,type:Number},breakpoints:{default:Mc.breakpoints,type:Object},autoplay:{default:Mc.autoplay,type:Number},pauseAutoplayOnHover:{default:Mc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Mc.mouseDrag,type:Boolean},touchDrag:{default:Mc.touchDrag,type:Boolean},dir:{default:Mc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Mc.i18n,type:Object},settings:{default(){return{}},type:Object}};function ree({config:e,slidesCount:n}){const{snapAlign:r,wrapAround:I,itemsToShow:L=1}=e;if(I)return Math.max(n-1,0);let d;switch(r){case"start":d=n-L;break;case"end":d=n-1;break;case"center":case"center-odd":d=n-Math.ceil((L-.5)/2);break;case"center-even":d=n-Math.ceil(L/2);break;default:d=0;break}return Math.max(d,0)}function iee({config:e,slidesCount:n}){const{wrapAround:r,snapAlign:I,itemsToShow:L=1}=e;let d=0;if(r||L>n)return d;switch(I){case"start":d=0;break;case"end":d=L-1;break;case"center":case"center-odd":d=Math.floor((L-1)/2);break;case"center-even":d=Math.floor((L-2)/2);break;default:d=0;break}return d}function lw({val:e,max:n,min:r}){return n<r?e:Math.min(Math.max(e,r),n)}function oee({config:e,currentSlide:n,slidesCount:r}){const{snapAlign:I,wrapAround:L,itemsToShow:d=1}=e;let g=n;switch(I){case"center":case"center-odd":g-=(d-1)/2;break;case"center-even":g-=(d-2)/2;break;case"end":g-=d-1;break}return L?g:lw({val:g,max:r-d,min:0})}function _I(e){return e?e.reduce((n,r)=>{var I;return r.type===t.Fragment?[...n,..._I(r.children)]:((I=r.type)===null||I===void 0?void 0:I.name)==="CarouselSlide"?[...n,r]:n},[]):[]}function cw({val:e,max:n,min:r=0}){return e>n?cw({val:e-(n+1),max:n,min:r}):e<r?cw({val:e+(n+1),max:n,min:r}):e}function see(e,n){let r;return n?function(...I){const L=this;r||(e.apply(L,I),r=!0,setTimeout(()=>r=!1,n))}:e}function lee(e,n){let r;return function(...I){r&&clearTimeout(r),r=setTimeout(()=>{e(...I),r=null},n)}}function cee(e="",n={}){return Object.entries(n).reduce((r,[I,L])=>r.replace(`{${I}}`,String(L)),e)}var dee=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Mc))),n=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},cee(e.i18n.itemXofY,{currentSlide:n.value+1,slidesCount:r.value}))}}),uee=t.defineComponent({name:"Carousel",props:vI,setup(e,{slots:n,emit:r,expose:I}){var L;const d=t.ref(null),g=t.ref([]),a=t.ref(0),b=t.ref(0),m=t.reactive(Object.assign({},Mc));let i=Object.assign({},Mc),v;const _=t.ref((L=e.modelValue)!==null&&L!==void 0?L:0),c=t.ref(0),s=t.ref(0),o=t.ref(0),l=t.ref(0);let u,h;t.provide("config",m),t.provide("slidesCount",b),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",l),t.provide("slideWidth",a);function p(){v=Object.assign({},e.breakpoints),i=Object.assign(Object.assign(Object.assign({},i),e),{i18n:Object.assign(Object.assign({},i.i18n),e.i18n),breakpoints:void 0}),y(i)}function f(){if(!v||!Object.keys(v).length)return;const te=Object.keys(v).map(se=>Number(se)).sort((se,he)=>+he-+se);let ee=Object.assign({},i);te.some(se=>{const he=window.matchMedia(`(min-width: ${se}px)`).matches;return he&&(ee=Object.assign(Object.assign({},ee),v[se])),he}),y(ee)}function y(te){Object.entries(te).forEach(([ee,se])=>m[ee]=se)}const w=lee(()=>{f(),M(),x()},16);function x(){if(!d.value)return;const te=d.value.getBoundingClientRect();a.value=te.width/m.itemsToShow}function M(){b.value<=0||(s.value=Math.ceil((b.value-1)/2),o.value=ree({config:m,slidesCount:b.value}),l.value=iee({config:m,slidesCount:b.value}),m.wrapAround||(_.value=lw({val:_.value,max:o.value,min:l.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),V(),window.addEventListener("resize",w,{passive:!0}),r("init")}),t.onUnmounted(()=>{h&&clearTimeout(h),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},S={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),N=t.ref(!1),C=()=>{E.value=!0},z=()=>{E.value=!1};function P(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",D,!0)))}const O=see(te=>{N.value=!0,S.x=k?te.touches[0].clientX:te.clientX,S.y=k?te.touches[0].clientY:te.clientY;const ee=S.x-T.x,se=S.y-T.y;A.y=se,A.x=ee},m.throttle);function D(){const te=m.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,se=Math.round(A.x/a.value+ee)*te;if(se&&!k){const he=ue=>{window.removeEventListener("click",he,!0)};window.addEventListener("click",he,!0)}q(_.value-se),A.x=0,A.y=0,N.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",D,!0)}function V(){!m.autoplay||m.autoplay<=0||(u=setInterval(()=>{m.pauseAutoplayOnHover&&E.value||$()},m.autoplay))}function R(){u&&(clearInterval(u),u=null),V()}const j=t.ref(!1);function q(te){const ee=m.wrapAround?te:lw({val:te,max:o.value,min:l.value});_.value===ee||j.value||(r("slide-start",{slidingToIndex:te,currentSlideIndex:_.value,prevSlideIndex:c.value,slidesCount:b.value}),j.value=!0,c.value=_.value,_.value=ee,h=setTimeout(()=>{if(m.wrapAround){const se=cw({val:ee,max:o.value,min:0});se!==_.value&&(_.value=se,r("loop",{currentSlideIndex:_.value,slidingToIndex:te}))}r("update:modelValue",_.value),r("slide-end",{currentSlideIndex:_.value,prevSlideIndex:c.value,slidesCount:b.value}),j.value=!1,R()},m.transition))}function $(){q(_.value+m.itemsToScroll)}function G(){q(_.value-m.itemsToScroll)}const Z={slideTo:q,next:$,prev:G};t.provide("nav",Z),t.provide("isSliding",j);const H=t.computed(()=>oee({config:m,currentSlide:_.value,slidesCount:b.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const te=m.dir==="rtl"?-1:1,ee=H.value*a.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${b.value*a.value}px`:"",width:"100%"}});function K(){p(),f(),M(),x(),R()}Object.keys(vI).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],K)}),t.watch(()=>e.modelValue,te=>{te!==_.value&&q(Number(te))}),t.watch(b,M),r("before-init"),p();const le={config:m,slidesCount:b,slideWidth:a,next:$,prev:G,slideTo:q,currentSlide:_,maxSlide:o,minSlide:l,middleSlide:s};I({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:K,slideTo:q,next:$,prev:G,nav:Z,data:le});const oe=n.default||n.slides,ne=n.addons,re=t.reactive(le);return()=>{const te=_I(oe==null?void 0:oe(re)),ee=(ne==null?void 0:ne(re))||[];te.forEach((fe,ge)=>fe.props.index=ge);let se=te;if(m.wrapAround){const fe=te.map((ve,we)=>t.cloneVNode(ve,{index:-te.length+we,isClone:!0,key:`clone-before-${we}`})),ge=te.map((ve,we)=>t.cloneVNode(ve,{index:te.length+we,isClone:!0,key:`clone-after-${we}`}));se=[...fe,...te,...ge]}g.value=te,b.value=Math.max(te.length,1);const he=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?P:null,onTouchstartPassiveCapture:m.touchDrag?P:null},se),ue=t.h("div",{class:"carousel__viewport"},he);return t.h("section",{ref:d,class:{carousel:!0,"is-sliding":j.value,"is-dragging":N.value,"is-hover":E.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:C,onMouseleave:z},[ue,ee,t.h(dee)])}}}),dw;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(dw||(dw={}));const hee={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 pee(e){return e in dw}const uw=e=>{const n=t.inject("config",t.reactive(Object.assign({},Mc))),r=String(e.name),I=`icon${r.charAt(0).toUpperCase()+r.slice(1)}`;if(!r||typeof r!="string"||!pee(r))return;const L=hee[r],d=t.h("path",{d:L}),g=n.i18n[I]||e.title||r,a=t.h("title",g);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":g},[a,d])};uw.props={name:String,title:String};const fee=(e,{slots:n,attrs:r})=>{const{next:I,prev:L}=n||{},d=t.inject("config",t.reactive(Object.assign({},Mc))),g=t.inject("maxSlide",t.ref(1)),a=t.inject("minSlide",t.ref(1)),b=t.inject("currentSlide",t.ref(1)),m=t.inject("nav",{}),{dir:i,wrapAround:v,i18n:_}=d,c=i==="rtl",s=t.h("button",{type:"button",class:["carousel__prev",!v&&b.value<=a.value&&"carousel__prev--disabled",r==null?void 0:r.class],"aria-label":_.ariaPreviousSlide,onClick:m.prev},(L==null?void 0:L())||t.h(uw,{name:c?"arrowRight":"arrowLeft"})),o=t.h("button",{type:"button",class:["carousel__next",!v&&b.value>=g.value&&"carousel__next--disabled",r==null?void 0:r.class],"aria-label":_.ariaNextSlide,onClick:m.next},(I==null?void 0:I())||t.h(uw,{name:c?"arrowLeft":"arrowRight"}));return[s,o]};var mee=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:n}){const r=t.inject("config",t.reactive(Object.assign({},Mc))),I=t.inject("currentSlide",t.ref(0)),L=t.inject("slidesToScroll",t.ref(0)),d=t.inject("isSliding",t.ref(!1)),g=t.computed(()=>e.index===I.value),a=t.computed(()=>e.index===I.value-1),b=t.computed(()=>e.index===I.value+1),m=t.computed(()=>{const i=Math.floor(L.value),v=Math.ceil(L.value+r.itemsToShow-1);return e.index>=i&&e.index<=v});return()=>{var i;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m.value,"carousel__slide--active":g.value,"carousel__slide--prev":a.value,"carousel__slide--next":b.value,"carousel__slide--sliding":d.value},"aria-hidden":!m.value},(i=n.default)===null||i===void 0?void 0:i.call(n,{isActive:g.value,isClone:e.isClone,isPrev:a.value,isNext:b.value,isSliding:d.value,isVisible:m.value}))}}});const $u=(e,n)=>{const r=e.__vccOpts||e;for(const[I,L]of n)r[I]=L;return r},gee={__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:n}){const r=e,I=t.computed(()=>{const a={"background-color":r.backgroundColor,height:r.height};return r.matchDay.key===r.matchDaySelected.key&&(a["border-bottom"]=`solid 1px ${r.bottomLineColor}`,a["background-color"]=r.selectedMatchDayBackgroundColor),r.isLandingMode||(a["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),a}),L=t.computed(()=>({color:r.numberColor,"font-family":r.numberFontFamily,"font-size":r.numberFontSize})),d=t.computed(()=>({color:r.textColor,"font-family":r.textFontFamily,"font-size":r.textFontSize}));function g(a){n("click-match-day",a)}return(a,b)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...I.value}),onClick:b[0]||(b[0]=m=>g(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(L.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",d.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},yee=$u(gee,[["__scopeId","data-v-89459353"]]),vee={__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:n}){const r=e;t.useCssVars(m=>({e74cf094:d.value,e74f1f14:g.value}));const I=t.ref(null),L=t.computed(()=>({itemsToShow:r.itemsToShow,itemsToScroll:r.itemsToScroll,snapAlign:"start"})),d=t.computed(()=>I.value.data.currentSlide.value==0?"none":"inline"),g=t.computed(()=>I.value.data.currentSlide.value==I.value.data.maxSlide.value?"none":"inline"),a=t.ref({});t.watch(()=>r.closestMatchDay,m=>{if(m){const i=r.matchDays.find(v=>v.key===m);b(i||r.matchDays[0],!0)}}),t.watch(()=>r.matchDays,m=>{if(!r.closestMatchDay&&m&&m.length){const i=m.find(v=>v.key===r.defaultMatchDayKey);a.value=i||m[0],n("change-match-day",a.value)}else r.closestMatchDay&&(a.value=m.find(i=>i.key===r.closestMatchDay)||{})},{immediate:!0});function b(m,i=!1){i&&I.value&&I.value.slideTo(m.index),a.value=m,n("change-match-day",a.value)}return(m,i)=>(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.createVNode(t.unref(uee),t.mergeProps(L.value,{ref_key:"matchDayPickerCarousel",ref:I}),{addons:t.withCtx(()=>[t.createVNode(t.unref(fee))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,v=>(t.openBlock(),t.createBlock(t.unref(mee),{key:v.key},{default:t.withCtx(()=>[t.createVNode(yee,t.mergeProps(r,{"match-day":v,"match-day-selected":a.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:b}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},_ee=$u(vee,[["__scopeId","data-v-fe058409"]]);function E0(e,n=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${n}/${e}.png`}function bI(e){if(typeof e=="string"){let n=e.replace("M","J ");return n=n.replace("PO1","CFI"),n=n.replace("PO2","CFV"),n=n.replace("PO3","SFI"),n=n.replace("PO4","SFV"),n=n.replace("PO5","FI"),n=n.replace("PO6","FV"),n}}function bee(e){let n="";return e.game_status!=4&&(n+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(n+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),n}const xee={class:"game-info__teams"},wee={class:"game-info__teams__team__logo"},kee=["src"],Cee={class:"game-info__teams__detail"},Tee={key:0,class:"game-info__teams__detail__pre-game"},See={class:"game-info__teams__team__logo away"},Eee=["src"],Aee={key:0},Mee={key:0},Iee={key:1},Pee={__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 n=e,r=t.computed(()=>{let m=n.game.schedule.split(":");return m.pop(),m=m.join(":"),m}),I=t.computed(()=>{let m="120px";return(n.isLandingMode||n.isAcronymVisible)&&(m="70px"),{"min-width":m}}),L=t.computed(()=>({"font-size":n.namesFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary})),d=t.computed(()=>({"font-size":n.additionalInfoFontSize,"font-family":n.additionalInfoFontFamily,color:n.colorSecondary})),g=t.computed(()=>({"font-size":n.scoreFontSize,"font-family":n.scoreFontFamily,color:n.colorPrimary})),a=t.computed(()=>({"font-size":n.timeZoneFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary})),b=t.computed(()=>({"font-size":n.timeFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary}));return(m,i)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",xee,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(I.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(L.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",wee,[t.createElementVNode("img",{src:t.unref(E0)(e.game.home_team.team_id),alt:""},null,8,kee)])],4),t.createElementVNode("div",Cee,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",Tee,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(b.value)},t.toDisplayString(r.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(g.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(I.value)},[t.createElementVNode("div",See,[t.createElementVNode("img",{src:t.unref(E0)(e.game.visiting_team.team_id),alt:""},null,8,Eee)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(L.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([d.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",Aee,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",Mee,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Iee,t.toDisplayString(t.unref(bee)(e.game)),1))],4)],4))}},xI=$u(Pee,[["__scopeId","data-v-64bda814"]]),wI=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),Nee={class:"game-status"},Bee={key:0,class:"game-status__day__live"},Oee=wI(()=>t.createElementVNode("span",null,"LIVE",-1)),zee=wI(()=>t.createElementVNode("span",{class:"dot"},null,-1)),Lee=[Oee,zee],Fee={key:0,class:"game-status__round"},Dee={__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 n=e,r=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],I=t.computed(()=>{let g="";if(n.dateTimeMillis){const a=new Date(n.dateTimeMillis);g=`${a.getDate()} ${r[a.getMonth()]}`}return g}),L=t.computed(()=>({"font-size":n.fontSize})),d=t.computed(()=>{let g=[];return n.isLive?g.push("live"):n.status!==1&&g.push("pre-match"),g});return(g,a)=>(t.openBlock(),t.createElementBlock("div",Nee,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",d.value]),style:t.normalizeStyle(L.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",Bee,Lee)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(I.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Fee,t.toDisplayString(e.roundAbbreviation),1))]))}},kI=$u(Dee,[["__scopeId","data-v-8839c56d"]]),ju={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Vee=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),Ree={class:"actions"},$ee={class:"actions__row"},jee=Vee(()=>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)),Uee=[jee],Hee={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gee=["fill"],Wee={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qee=["fill"],Yee={__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:n}){const r=e,I=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor}));function L(d){n("action",d)}return(d,g)=>(t.openBlock(),t.createElementBlock("div",Ree,[t.createElementVNode("div",$ee,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(I.value),onClick:g[0]||(g[0]=a=>L(t.unref(ju).STATISTICS))},Uee,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(I.value),onClick:g[1]||(g[1]=a=>L(t.unref(ju).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Hee,[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:r.iconColor},null,8,Gee)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:g[2]||(g[2]=a=>L(t.unref(ju).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Wee,[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:r.iconColor},null,8,qee)]))])):t.createCommentVNode("",!0)])]))}},Zee=$u(Yee,[["__scopeId","data-v-0d97b1a8"]]),hw=e=>(t.pushScopeId("data-v-7ec0f118"),e=e(),t.popScopeId(),e),Jee={class:"actions"},Xee={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kee=["fill"],Qee={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ete=["fill"],tte=hw(()=>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)),ate=[tte],nte={key:0,class:"actions__videos"},rte={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ite=["fill"],ote={key:1,class:"actions__videos__thumbnails"},ste=hw(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),lte=hw(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),cte={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dte=["stroke"],ute={__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:n}){const r=e,I=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor})),L=t.computed(()=>{const b=[];return r.componentWidth<540&&b.push("mobile"),b}),d=t.computed(()=>r.componentWidth>730),g=t.computed(()=>({color:r.thumbnailColor,fontFamily:r.thumbnailFontFamily,fontSize:r.thumbnailFontSize}));function a(b){n("action",b)}return(b,m)=>(t.openBlock(),t.createElementBlock("div",Jee,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",L.value])},[e.gameStatus===4444&&!e.isLive&&!d.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:m[0]||(m[0]=i=>a(t.unref(ju).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Xee,[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:r.iconColor},null,8,Kee)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!d.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(I.value),onClick:m[1]||(m[1]=i=>a(t.unref(ju).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Qee,[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:r.iconColor},null,8,ete)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(I.value),onClick:m[2]||(m[2]=i=>a(t.unref(ju).STATISTICS))},ate,4)],2),d.value?(t.openBlock(),t.createElementBlock("div",nte,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:m[3]||(m[3]=i=>a(t.unref(ju).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",rte,[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:r.iconColor},null,8,ite)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",ote,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:m[4]||(m[4]=i=>a(t.unref(ju).PLAY_GOALS))},[ste,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(g.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:m[5]||(m[5]=i=>a(t.unref(ju).PLAY_RESUME))},[lte,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(g.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:m[6]||(m[6]=i=>a(t.unref(ju).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",cte,[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,dte)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},hte=$u(ute,[["__scopeId","data-v-7ec0f118"]]),x_=e=>(t.pushScopeId("data-v-3e92c161"),e=e(),t.popScopeId(),e),pte={class:"row-landing__game-status"},fte={class:"row-landing__game-actions"},mte={class:"row-full__game-status"},gte={class:"row-full__game-info"},yte={key:0},vte={class:"row-full__game-actions"},_te={class:"game-events-container"},bte=x_(()=>t.createElementVNode("div",{class:"separator"},null,-1)),xte=x_(()=>t.createElementVNode("div",null,null,-1)),wte={class:"game-events__data"},kte={class:"game-events__data__team"},Cte=["src"],Tte={class:"game-events__data__team__event__text"},Ste={class:"game-events__data__team away"},Ete={class:"game-events__data__team__event__text"},Ate=["src"],Mte=x_(()=>t.createElementVNode("div",null,null,-1)),Ite=x_(()=>t.createElementVNode("div",null,null,-1)),Pte={__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:n}){const r=e,I={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"},L=t.ref(!1),d=t.ref(!1),g=t.computed(()=>{const l={homeTeam:[],awayTeam:[]};return r.game&&r.game.game_status!==4&&!r.game.is_live&&r.game.minutes&&(l.homeTeam.push(...s(r.game.minutes.home_goals_minutes,I.GOAL)),l.homeTeam.push(...s(r.game.minutes.home_red_cards_minutes,I.RED_CARD)),l.homeTeam.push(...s(r.game.minutes.home_yellow_cards_minutes,I.YELLOW_CARD)),l.awayTeam.push(...s(r.game.minutes.visiting_goals_minutes,I.GOAL)),l.awayTeam.push(...s(r.game.minutes.away_red_cards_minutes,I.RED_CARD)),l.awayTeam.push(...s(r.game.minutes.away_yellow_cards_minutes,I.YELLOW_CARD))),l}),a=t.computed(()=>{const l=g.value.homeTeam.length,u=g.value.awayTeam.length;return l+u>0}),b=t.computed(()=>{const l=r.game.score[0],u=r.game.score[1];return l>0||u>0}),m=t.computed(()=>({"background-color":r.backgroundColor})),i=t.computed(()=>({height:r.height})),v=t.computed(()=>{const l={game:[],events:[]};return r.componentWidth<500?(l.events.push("break-point-3"),l.game.push("break-point-2")):r.componentWidth<730?(l.game.push("break-point-2"),l.events.push("break-point-2")):r.componentWidth<910&&(l.game.push("break-point-1"),l.events.push("break-point-1")),l}),_=t.computed(()=>({isLandingMode:r.isLandingMode,game:r.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),c=t.computed(()=>({"font-size":r.televisionFontSize,"font-family":r.televisionFontFamily,color:r.televisionColor}));t.watch(()=>r.componentWidth,l=>{d.value=l<910});function s(l,u){return l.map(h=>({iconUrl:u,text:h}))}function o(l){l===ju.SHOW_GAME_EVENTS?L.value=!L.value:n("action",{action:l,game:r.game})}return(l,u)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(m.value)},[t.createVNode(xI,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",pte,[t.createVNode(kI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(bI)(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",fte,[t.createVNode(Zee,{"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"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",v.value.game]),style:t.normalizeStyle(i.value)},[t.createElementVNode("div",mte,[t.createVNode(kI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(bI)(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",gte,[t.createVNode(xI,t.mergeProps(_.value,{"is-television-visible":d.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(c.value)},[!d.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",yte,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",vte,[t.createVNode(hte,{"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?b.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":L.value,"component-width":e.componentWidth,onAction:o},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",_te,[bte,t.createElementVNode("div",{class:t.normalizeClass(["game-events",v.value.events])},[xte,t.createElementVNode("div",wte,[t.createElementVNode("div",kte,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.homeTeam,(h,p)=>(t.openBlock(),t.createElementBlock("div",{key:`h${p}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:h.iconUrl},null,8,Cte),t.createElementVNode("div",Tte,t.toDisplayString(h.text),1)]))),128))]),t.createElementVNode("div",Ste,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.awayTeam,(h,p)=>(t.openBlock(),t.createElementBlock("div",{key:`a${p}`,class:"game-events__data__team__event"},[t.createElementVNode("div",Ete,t.toDisplayString(h.text),1),t.createElementVNode("img",{src:h.iconUrl},null,8,Ate)]))),128))])]),Mte,Ite],2)],512),[[t.vShow,L.value]])]),_:1})],4))}},CI=$u(Pte,[["__scopeId","data-v-3e92c161"]]),Nte={class:"calendar-table"},Bte={__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:n}){const r=e;function I(d){return d%2===0?r.evenRowColor:r.oddRowColor}function L(d){n("action",d)}return(d,g)=>(t.openBlock(),t.createElementBlock("div",Nte,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(a,b)=>(t.openBlock(),t.createBlock(CI,{key:a.game_id,game:a,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":I(b),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:L},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},Ote=$u(Bte,[["__scopeId","data-v-ebabdc0c"]]),zte={class:"calendar-by-team"},Lte={class:"playing-as-picker"},Fte={class:"calendar-by-team__page"},Dte={__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:n}){const r=e,I=t.ref(0),L=t.computed(()=>{let b=[];if(r.gamesPages.size>0){const m=Array.from(r.gamesPages.entries()).reduce((i,[v,_])=>{const c=Number(v),s=Number.isNaN(c)?v:`Jornada ${c<10?"0":""}${c}`,o=_.reduce((l,u)=>(l.push(...u),l),[]).filter(l=>I.value===0||I.value===1&&l.visiting_team.team_id===r.teamId?!0:I.value===2&&l.home_team.team_id===r.teamId);return o.length>0&&i.push({roundName:s,games:o}),i},[]);b.push(m)}return b});function d(b){n("action",b)}function g(b){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),I.value=b,document.querySelector("#opc"+b).classList.add("selected")}function a(b){let m=b;switch(b){case"PI1":m="Play In 1";break;case"PI2":m="Play In 2";break;case"R1":m="Repechaje";break;case"CFI":m="Cuartos de final - Ida";break;case"CFV":m="Cuartos de final - Vuelta";break;case"SFI":m="Semifinal - Ida";break;case"SFV":m="Semifinal - Vuelta";break;case"FI":m="Final - Ida";break;case"FV":m="Final - Vuelta";break}return m}return(b,m)=>(t.openBlock(),t.createElementBlock("div",zte,[t.createElementVNode("div",Lte,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:m[0]||(m[0]=i=>g(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:m[1]||(m[1]=i=>g(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:m[2]||(m[2]=i=>g(2))},"Local")]),t.createVNode(t.unref(yI),{"is-pagination-visible":e.isPaginationVisible,items:L.value},{default:t.withCtx(({item:i})=>[t.createElementVNode("div",Fte,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i,(v,_)=>(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(v.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.games,c=>(t.openBlock(),t.createBlock(CI,{key:c.game_id,game:c,"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:d},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"])]))}},Vte=$u(Dte,[["__scopeId","data-v-d93dcb09"]]),Rte="_liveMinutes_7ejvy_3",$te="_viewButtomEvent_7ejvy_11",jte="_containerEvents_7ejvy_39",Ute="_sepEvents_7ejvy_51",Hte="_goalsContainer_7ejvy_71",Gte="_yellowContainer_7ejvy_87",Wte="_redContainer_7ejvy_103",qte="_containerEventsGameHometeam_7ejvy_119",Yte="_containerEventsGameAwayteam_7ejvy_147",Zte="_image62Icon_7ejvy_173",Jte="_imgChivasIcon_7ejvy_191",Xte="_nameDesktop_7ejvy_205",Kte="_nameMobile_7ejvy_231",Qte="_homeTeam_7ejvy_255",eae="_sbado16De_7ejvy_277",tae="_gameDate_7ejvy_295",aae="_sab16092023_7ejvy_303",nae="_div_7ejvy_329",rae="_divscore_7ejvy_347",iae="_cst_7ejvy_367",oae="_hour_7ejvy_385",sae="_score_7ejvy_387",lae="_chivasTvCanal_7ejvy_409",cae="_gameStatus_7ejvy_433",dae="_matchInfo_7ejvy_455",uae="_image62Icon1_7ejvy_483",hae="_name_7ejvy_205",pae="_imgAtlasIcon_7ejvy_527",fae="_name1_7ejvy_541",mae="_awayTeam_7ejvy_565",gae="_matchCard_7ejvy_587",yae={liveMinutes:Rte,viewButtomEvent:$te,containerEvents:jte,sepEvents:Ute,goalsContainer:Hte,yellowContainer:Gte,redContainer:Wte,containerEventsGameHometeam:qte,containerEventsGameAwayteam:Yte,image62Icon:Zte,imgChivasIcon:Jte,nameDesktop:Xte,nameMobile:Kte,homeTeam:Qte,sbado16De:eae,gameDate:tae,sab16092023:aae,div:nae,divscore:rae,cst:iae,hour:oae,score:sae,chivasTvCanal:lae,gameStatus:cae,matchInfo:dae,image62Icon1:uae,name:hae,imgAtlasIcon:pae,name1:fae,awayTeam:mae,matchCard:gae},vae=["src"],_ae=["src"],bae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),xae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),wae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),kae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Cae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),Tae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Sae=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),Eae={key:0},Aae=t.createElementVNode("div",null,"ver eventos",-1),Mae=t.createElementVNode("img",{width:"13",style:{"margin-top":"1px"},src:"http://golstatsimages.blob.core.windows.net/todoelfut/arrow-live-down.png"},null,-1),Iae=["src"],Pae=["src"],Nae={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},Bae={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},Oae={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},zae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Lae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),Fae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Dae={__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:n}){const r=e,I=new Map([[1,45],[2,90],[3,105],[4,120]]),L=t.computed(()=>{const i=I.get(r.infoLive.recent_lapse);return i&&i<r.infoLive.minute?`${i}' + ${r.infoLive.minute-i}'`:`${r.infoLive.minute}'`}),d=t.computed(()=>{let i=0,v=0,_=!1;var c=!1;return Object.keys(r.infoLive).includes("score")&&(r.infoLive.score["own_"+r.game.home_team.team_id]!=null&&r.infoLive.score["own_"+r.game.home_team.team_id]!=0&&(c=!0),r.infoLive.score["own_"+r.game.visiting_team.team_id]!=null&&r.infoLive.score["own_"+r.game.visiting_team.team_id]!=0&&(_=!0),_?r.infoLive.score[r.game.home_team.team_id]!=null&&(i=parseInt(r.infoLive.score[r.game.home_team.team_id])+parseInt(r.infoLive.score["own_"+r.game.visiting_team.team_id])):r.infoLive.score[r.game.home_team.team_id]!=null&&(i=parseInt(r.infoLive.score[r.game.home_team.team_id])),c?r.infoLive.score[r.game.visiting_team.team_id]!=null&&(v=parseInt(r.infoLive.score[r.game.visiting_team.team_id])+parseInt(r.infoLive.score["own_"+r.game.home_team.team_id])):r.infoLive.score[r.game.visiting_team.team_id]!=null&&(v=parseInt(r.infoLive.score[r.game.visiting_team.team_id]))),i+" - "+v}),g=t.computed(()=>{const i={...r.game};return i.gameSchedule=r.game.schedule.split(":"),i.gameSchedule.pop(),i.gameSchedule=i.gameSchedule.join(":"),i});function a(i){let v=i.split(" "),_=v[v.length-2];return _.includes("+")?v[v.length-3]+"+"+v[v.length-1]:(_=v[v.length-1],_)}function b(i){n("open-modal-event",i)}function m(i,v){const _=new Date(i);if(v==1){const c=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],s=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${c[_.getDay()]} ${_.getDate()} de ${s[_.getMonth()]}`}else return`${_.getDate()}-${_.getMonth()+1}-${_.getFullYear()}`}return(i,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon),alt:"",src:t.unref(E0)(g.value.home_team.team_id,150)},null,10,vae),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgChivasIcon),alt:"",src:t.unref(E0)(g.value.home_team.team_id)},null,10,_ae),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameDesktop),id:"team-name"},t.toDisplayString(g.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameMobile),id:"team-name"},t.toDisplayString(g.value.home_team.acronym)+" "+t.toDisplayString(i.gameSelected),3),g.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[g.value.is_live==0&&g.value.game_status==1||Object.keys(g.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.containerEvents)},[g.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.goalsContainer)},[bae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.home_goals_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),c!=g.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),g.value.minutes.home_red_cards_minutes.length>0&&g.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.sepEvents)},"|",2)):t.createCommentVNode("",!0),g.value.minutes.home_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(i.$style.yellowContainer)},[xae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.home_red_cards_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_)),1),c!=g.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),g.value.minutes.home_red_cards_minutes.length>0||g.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(i.$style.sepEvents)},"|",2)):t.createCommentVNode("",!0),g.value.minutes.home_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(i.$style.redContainer)},[wae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.home_yellow_cards_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_)),1),c!=g.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},[g.value.is_live==1&&g.value.game_status!=1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(i.$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(i.$style.goalsContainer)},[kae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[_].event.map(s=>`${s}'`).join(", ").replace("(AG)","")),1),c!=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(i.$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(i.$style.yellowContainer)},[Cae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].red),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].red[_].event.map(s=>`${s}'`).join(", ")),1),c!=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(i.$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(i.$style.redContainer)},[Tae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].yellow),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].yellow[_].event.map(s=>`${s}'`).join(", ")),1),c!=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),g.value.game_status==4&&g.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.sbado16De)},t.toDisplayString(m(g.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.sab16092023)},t.toDisplayString(m(g.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.div)},t.toDisplayString(g.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.chivasTvCanal)},t.toDisplayString(g.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[g.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m(g.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([i.$style.sbado16De,i.$style.gameDate])},t.toDisplayString(m(g.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([i.$style.sab16092023,i.$style.gameDate])},t.toDisplayString(m(g.value.date_time_utc,0)),3)],64)),g.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(i.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.divscore)},t.toDisplayString(d.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(i.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.divscore)},t.toDisplayString(g.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(i.$style.gameStatus)},[g.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.liveMinutes)},[Sae,t.createTextVNode(" LIVE - "+t.toDisplayString(L.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),g.value.penalties_score_home_team!=0||g.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",Eae," - Penales "+t.toDisplayString(g.value.penalties_score_home_team)+" - "+t.toDisplayString(g.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2),e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[g.value.is_live==1||g.value.game_status==1||Object.keys(g.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.viewButtomEvent),onClick:v[0]||(v[0]=_=>b(g.value))},[Aae,t.createTextVNode(" "),Mae],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(i.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon1),alt:"",src:t.unref(E0)(g.value.visiting_team.team_id,150)},null,10,Iae),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name),id:"team-name"},t.toDisplayString(g.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgAtlasIcon),alt:"",src:t.unref(E0)(g.value.visiting_team.team_id)},null,10,Pae),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name1),id:"team-name"},t.toDisplayString(g.value.visiting_team.acronym),3),g.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[g.value.is_live==0&&g.value.game_status==1||Object.keys(g.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.containerEvents)},[g.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.goalsContainer)},[g.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("img",Nae)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.visiting_goals_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),c!=g.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),g.value.minutes.away_red_cards_minutes.length>0&&g.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.sepEvents)},"|",2)):t.createCommentVNode("",!0),g.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(i.$style.yellowContainer)},[g.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",Bae)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.away_red_cards_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_)),1),c!=g.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),g.value.minutes.away_red_cards_minutes.length>0||g.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(i.$style.sepEvents)},"|",2)):t.createCommentVNode("",!0),g.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(i.$style.redContainer)},[g.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",Oae)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.away_yellow_cards_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_))+"'",1),c!=g.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},[g.value.is_live==1&&g.value.game_status!=1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(i.$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(i.$style.goalsContainer)},[zae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[_].event.map(s=>`${s}'`).join(", ").replace("(AG)","")),1),c!=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(i.$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(i.$style.yellowContainer)},[Lae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].red),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].red[_].event.map(s=>`${s}'`).join(", ")),1),c!=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(i.$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(i.$style.redContainer)},[Fae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].yellow[_].event.map(s=>`${s}'`).join(", ")),1),c!=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))}},Vae={$style:yae},Rae=$u(Dae,[["__cssModules",Vae]]),$ae={class:"calendar-by-game__carousel"},jae={__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}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges","open-modal-event"],setup(e,{emit:n}){const r=e;let I=null;const L=t.ref([]),d=t.ref({}),g=t.ref(0),a=t.ref(null),b=t.ref({}),m=t.ref(new Map),i=t.ref(!1),v=t.ref(null),_=t.ref(null),c=t.ref(null),s=t.computed(()=>r.isCup),o=t.computed(()=>r.isCupLegacy),l=t.computed(()=>({height:r.height,width:r.width})),u=t.computed(()=>{if(r.games)return A(r.games,r.isTeamGamePerPage);{const R=m.value.get(b.value.key);return R&&r.isTeamGamePerPage&&r.onlyGamesTeamId?[R[0].filter(j=>j.home_team.team_id===r.onlyGamesTeamId||j.visiting_team.team_id===r.onlyGamesTeamId)]:R||[]}}),h=t.ref([]),p=t.ref([]),f=t.computed(()=>{const R=p.value&&p.value.length?x(d.value):w(d.value),j=h.value.find(q=>q.key===R);return j&&i.value&&(y(!1),C(j)),R});t.watch(()=>r.seasons,R=>{R&&R.length&&(y(!0),L.value=R.map(j=>j.id),T(R,!0))},{immediate:!0,deep:!0}),t.watch(m,R=>{if(r.onlyGamesTeamId&&R.size){const j=Array.from(R.values()).reduce((q,$)=>($.forEach(G=>{const Z=G.find(H=>H.home_team.team_id===r.onlyGamesTeamId||H.visiting_team.team_id===r.onlyGamesTeamId);Z&&q.push(Z)}),q),[]);n("change-games-by-client-privileges",j)}},{immediate:!0});function y(R){i.value=R}function w(R){const j=Object.entries(Object.entries(R).reduce((G,[Z,H])=>(G[Z]=[],H.forEach(Y=>{Y.games.forEach(K=>{const le=new Date(K.date_time_utc).getTime()+66e5;G[Z].push(le)})}),G),{}));if(!j.length)return"1";const q=new Date().getTime(),$=j.reduce((G,[Z,H])=>{let Y=null;return H.forEach(K=>{const le=K-q;le>=0&&(Y===null||le<Y)&&(Y=le)}),Y&&(G.shortestTime===null||Y<G.shortestTime)&&(G.round=Z,G.shortestTime=Y),G},{round:"",shortestTime:null});return $.shortestTime!==null?$.round:j[j.length-1][0]}function x(R){let j=1;if(p.value.length){const q=p.value[0];for(const[$,G]of Object.entries(R))for(const Z of G)if(Z.games.find(H=>H.game_id===q.game_id))return $}return j}t.watch(()=>r.teamId,()=>{S()},{immediate:!0});async function M(R,j,q=""){let $=q;try{const G={};r.token&&(G.Authorization=r.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",R.forEach((Y,K)=>{$+=`${K===0?"":"&"}seasons=${Y}`}));const{data:{data:Z,teams:H}}=await pI.get($,{headers:G});return{seasonsAndGames:Z,seasonsAndTeams:H}}catch(G){if(j>0)return M(R,j-1,$);throw new Error(G)}}function k(R){for(const j of R)if(!L.value.includes(j.season_id))return!0;return!1}async function T(R,j){try{d.value={};let q=0;const{seasonsAndGames:$,seasonsAndTeams:G}=await M(R.map(H=>H.id),3);if(j&&k($))return;$.forEach(H=>{const{type:Y}=R.find(K=>K.id===H.season_id);H.type=Y,H.games.forEach(K=>{K.season_id=H.season_id}),Y===0&&(q=H.season_id)}),v.value={seasonsGames:$};const{teams:Z}=G.find(H=>H.season_id===q);_.value=Z,n("change-teams",Z),S()}catch(q){throw new Error(q)}}function S(){if(!_.value)return;p.value=[];const R=v.value&&v.value.seasonsGames?v.value.seasonsGames.map(j=>{const q=j.games.reduce(($,G)=>{if(r.onlyGamesTeamId&&r.onlyGamesTeamId!==G.home_team&&r.onlyGamesTeamId!==G.visiting_team)return $;const Z={...G};return Z.dateTimeMillis=new Date(Z.date_time_utc).valueOf(),Z.home_team=_.value.find(H=>H.team_id===G.home_team),Z.visiting_team=_.value.find(H=>H.team_id===G.visiting_team),r.teamId&&Z.home_team.team_id!==r.teamId&&Z.visiting_team.team_id!==r.teamId||($[G.matchday_abbreviation]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date].push(Z):$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]=[Z]:$[G.matchday_abbreviation]={[G.game_status===3?"canceled":G.date]:[Z]},r.userTeamId&&Z.game_status===4&&(Z.home_team.team_id===r.userTeamId||Z.visiting_team.team_id===r.userTeamId)&&p.value.push(Z)),$},{});for(let[$,G]of Object.entries(q))q[$]=Object.entries(G).map(([Z,H])=>({date:Z,games:H.sort((Y,K)=>Y.dateTimeMillis-K.dateTimeMillis)})),q[$].sort((Z,H)=>Z.date<H.date?-1:Z.date>H.date?1:0);return{type:j.type,weight:j.type===0?0:j.type===2?1:2,schedule:q}}):[];R.sort((j,q)=>j.weight-q.weight),d.value=R.reduce((j,q)=>{for(const[$,G]of Object.entries(q.schedule))if(q.type===0)if([1,2].includes(r.tournamentType)){const Z=nee.get(r.tournamentType);if(Z){const H=Z.get($);H&&(j[H.matchDayAbbreviation]=G)}}else if(s.value){const Z=$.replace("M",""),H=Z;o.value?j[aee[Z]||H]=G:j[tee[$]||H]=G}else j[Number($.replace("M","")).toString()]=G;else q.type===2?$.charAt(1)=="I"?j[`PI${Number($.replace("PI",""))}`]=G:j[`R${Number($.replace("PO",""))}`]=G:q.type===1&&(j[eee[$]]=G);return j},{}),m.value=new Map,h.value=Array.from(Object.entries(d.value).reduce((j,[q,$],G)=>{const Z=Number(q);let H="";Number.isNaN(Z)?H=q:H=Z<10?`0${Z}`:q,j.set(q,{key:q,value:Z,valueText:H,index:G});const Y=$.reduce((le,oe)=>(oe.games.forEach(ne=>{ne.game_id===r.defaultGameId&&(c.value=q),ne.roundAbbreviation=Number.isNaN(Z)?Z:`J ${Z}`}),le=le.concat(oe.games),le),[]),K=A(Y);return m.value.set(q,K),j},new Map).values())}function A(R,j=!1){const q=[];if(r.gamesPerMatchDay>0){let $=[];R.forEach((G,Z)=>{$.push(G),(Z+1)%r.gamesPerMatchDay===0&&(q.push([...$]),$=[])}),$.length&&q.push([...$])}else q.push(R);return j&&r.isTeamGamePerPage&&r.defaultGameId?q.filter($=>$.game_id===r.defaultGameId||$.gameId===r.defaultGameId):q}async function E(R){try{const{data:j}=await pI.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return j}catch(j){if(R>0)return E(R-1);throw new Error(j)}}function N(){if(window.ResizeObserver)I=new ResizeObserver(()=>{g.value=a.value.clientWidth}),I.observe(a.value);else throw new Error("Resize observer not supported!")}function C(R){b.value.value!==R.value&&(b.value=R,n("change-round",R))}function z(R){r.areGamesCarouselType&&n("change-game-carousel",R.selectedItem)}function P(R){n("action",R),D(R)}function O(R){n("open-modal-event",R)}function D(R){const j="PLAY_RESUME",q="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],G=[12,55,"35_r","54_r"],{game_id:Z,season_id:H}=R.game;let Y={seasonId:H,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[Z],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};R.action===j?(Y.categoryIds=$,Y.advancedFilter.playListTitle="Resumen",n("openmedia",Y)):R.action===q&&(Y.categoryIds=G,Y.advancedFilter.playListTitle="Goles",n("openmedia",Y))}async function V(){try{if(!r.awaitForSeasons&&!r.games){const R=(await E(3)).find($=>$._id===1),j=R.seasons[0],q=[{id:j.id,type:j.type}];R&&R.tournament&&n("tournament-selected",R.tournament),j.related_seasons&&j.related_seasons.length&&q.push(...j.related_seasons.map($=>({id:$.id,type:$.type}))),await T(q,!1)}}catch(R){throw new Error(R)}}return t.onMounted(()=>{N()}),V(),(R,j)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:a,class:"calendar-by-game",style:t.normalizeStyle(l.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(Vte,{key:0,"full-tournament-schedule":d.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":g.value,"games-pages":m.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:P},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&&h.value?(t.openBlock(),t.createBlock(_ee,{key:0,"match-days":h.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":g.value,"default-match-day-key":c.value,"closest-match-day":e.sortCalendar?f.value:"",onChangeMatchDay:C},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",$ae,[u.value?(t.openBlock(),t.createBlock(t.unref(yI),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?u.value[0]:u.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:z},{default:t.withCtx(({item:q})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(Rae,{key:0,is_captured:e.is_captured,game:q,onOpenModalEvent:O,"plays-live":e.playsLive,"info-live":e.infoLive},null,8,["is_captured","game","plays-live","info-live"])):(t.openBlock(),t.createBlock(Ote,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":q,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":g.value,"is-round-mode":e.isRoundMode,onAction:P},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))}},Uae=$u(jae,[["__scopeId","data-v-9b45aca0"]]);function Hae(){return TI().__VUE_DEVTOOLS_GLOBAL_HOOK__}function TI(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Gae=typeof Proxy=="function",Wae="devtools-plugin:setup",qae="plugin:settings:set";let A0,pw;function Yae(){var e;return A0!==void 0||(typeof window<"u"&&window.performance?(A0=!0,pw=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(A0=!0,pw=globalThis.perf_hooks.performance):A0=!1),A0}function Zae(){return Yae()?pw.now():Date.now()}class Jae{constructor(n,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=n,this.hook=r;const I={};if(n.settings)for(const g in n.settings){const a=n.settings[g];I[g]=a.defaultValue}const L=`__vue-devtools-plugin-settings__${n.id}`;let d=Object.assign({},I);try{const g=localStorage.getItem(L),a=JSON.parse(g);Object.assign(d,a)}catch{}this.fallbacks={getSettings(){return d},setSettings(g){try{localStorage.setItem(L,JSON.stringify(g))}catch{}d=g},now(){return Zae()}},r&&r.on(qae,(g,a)=>{g===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(g,a)=>this.target?this.target.on[a]:(...b)=>{this.onQueue.push({method:a,args:b})}}),this.proxiedTarget=new Proxy({},{get:(g,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...b)=>(this.targetQueue.push({method:a,args:b,resolve:()=>{}}),this.fallbacks[a](...b)):(...b)=>new Promise(m=>{this.targetQueue.push({method:a,args:b,resolve:m})})})}async setRealTarget(n){this.target=n;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function Xae(e,n){const r=e,I=TI(),L=Hae(),d=Gae&&r.enableEarlyProxy;if(L&&(I.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!d))L.emit(Wae,e,n);else{const g=d?new Jae(r,L):null;(I.__VUE_DEVTOOLS_PLUGINS__=I.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:n,proxy:g}),g&&n(g.proxiedTarget)}}/*!
|
|
14
|
+
*/const Mc={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"}},vI={itemsToShow:{default:Mc.itemsToShow,type:Number},itemsToScroll:{default:Mc.itemsToScroll,type:Number},wrapAround:{default:Mc.wrapAround,type:Boolean},throttle:{default:Mc.throttle,type:Number},snapAlign:{default:Mc.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Mc.transition,type:Number},breakpoints:{default:Mc.breakpoints,type:Object},autoplay:{default:Mc.autoplay,type:Number},pauseAutoplayOnHover:{default:Mc.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Mc.mouseDrag,type:Boolean},touchDrag:{default:Mc.touchDrag,type:Boolean},dir:{default:Mc.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Mc.i18n,type:Object},settings:{default(){return{}},type:Object}};function ree({config:e,slidesCount:n}){const{snapAlign:r,wrapAround:I,itemsToShow:L=1}=e;if(I)return Math.max(n-1,0);let d;switch(r){case"start":d=n-L;break;case"end":d=n-1;break;case"center":case"center-odd":d=n-Math.ceil((L-.5)/2);break;case"center-even":d=n-Math.ceil(L/2);break;default:d=0;break}return Math.max(d,0)}function iee({config:e,slidesCount:n}){const{wrapAround:r,snapAlign:I,itemsToShow:L=1}=e;let d=0;if(r||L>n)return d;switch(I){case"start":d=0;break;case"end":d=L-1;break;case"center":case"center-odd":d=Math.floor((L-1)/2);break;case"center-even":d=Math.floor((L-2)/2);break;default:d=0;break}return d}function lw({val:e,max:n,min:r}){return n<r?e:Math.min(Math.max(e,r),n)}function oee({config:e,currentSlide:n,slidesCount:r}){const{snapAlign:I,wrapAround:L,itemsToShow:d=1}=e;let g=n;switch(I){case"center":case"center-odd":g-=(d-1)/2;break;case"center-even":g-=(d-2)/2;break;case"end":g-=d-1;break}return L?g:lw({val:g,max:r-d,min:0})}function _I(e){return e?e.reduce((n,r)=>{var I;return r.type===t.Fragment?[...n,..._I(r.children)]:((I=r.type)===null||I===void 0?void 0:I.name)==="CarouselSlide"?[...n,r]:n},[]):[]}function cw({val:e,max:n,min:r=0}){return e>n?cw({val:e-(n+1),max:n,min:r}):e<r?cw({val:e+(n+1),max:n,min:r}):e}function see(e,n){let r;return n?function(...I){const L=this;r||(e.apply(L,I),r=!0,setTimeout(()=>r=!1,n))}:e}function lee(e,n){let r;return function(...I){r&&clearTimeout(r),r=setTimeout(()=>{e(...I),r=null},n)}}function cee(e="",n={}){return Object.entries(n).reduce((r,[I,L])=>r.replace(`{${I}}`,String(L)),e)}var dee=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Mc))),n=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},cee(e.i18n.itemXofY,{currentSlide:n.value+1,slidesCount:r.value}))}}),uee=t.defineComponent({name:"Carousel",props:vI,setup(e,{slots:n,emit:r,expose:I}){var L;const d=t.ref(null),g=t.ref([]),a=t.ref(0),b=t.ref(0),m=t.reactive(Object.assign({},Mc));let i=Object.assign({},Mc),v;const _=t.ref((L=e.modelValue)!==null&&L!==void 0?L:0),c=t.ref(0),s=t.ref(0),o=t.ref(0),l=t.ref(0);let u,h;t.provide("config",m),t.provide("slidesCount",b),t.provide("currentSlide",_),t.provide("maxSlide",o),t.provide("minSlide",l),t.provide("slideWidth",a);function p(){v=Object.assign({},e.breakpoints),i=Object.assign(Object.assign(Object.assign({},i),e),{i18n:Object.assign(Object.assign({},i.i18n),e.i18n),breakpoints:void 0}),y(i)}function f(){if(!v||!Object.keys(v).length)return;const te=Object.keys(v).map(se=>Number(se)).sort((se,he)=>+he-+se);let ee=Object.assign({},i);te.some(se=>{const he=window.matchMedia(`(min-width: ${se}px)`).matches;return he&&(ee=Object.assign(Object.assign({},ee),v[se])),he}),y(ee)}function y(te){Object.entries(te).forEach(([ee,se])=>m[ee]=se)}const w=lee(()=>{f(),M(),x()},16);function x(){if(!d.value)return;const te=d.value.getBoundingClientRect();a.value=te.width/m.itemsToShow}function M(){b.value<=0||(s.value=Math.ceil((b.value-1)/2),o.value=ree({config:m,slidesCount:b.value}),l.value=iee({config:m,slidesCount:b.value}),m.wrapAround||(_.value=lw({val:_.value,max:o.value,min:l.value})))}t.onMounted(()=>{t.nextTick(()=>x()),setTimeout(()=>x(),1e3),f(),V(),window.addEventListener("resize",w,{passive:!0}),r("init")}),t.onUnmounted(()=>{h&&clearTimeout(h),u&&clearInterval(u),window.removeEventListener("resize",w,{passive:!0})});let k=!1;const T={x:0,y:0},S={x:0,y:0},A=t.reactive({x:0,y:0}),E=t.ref(!1),N=t.ref(!1),C=()=>{E.value=!0},z=()=>{E.value=!1};function P(te){["INPUT","TEXTAREA","SELECT"].includes(te.target.tagName)||(k=te.type==="touchstart",k||te.preventDefault(),!(!k&&te.button!==0||j.value)&&(T.x=k?te.touches[0].clientX:te.clientX,T.y=k?te.touches[0].clientY:te.clientY,document.addEventListener(k?"touchmove":"mousemove",O,!0),document.addEventListener(k?"touchend":"mouseup",D,!0)))}const O=see(te=>{N.value=!0,S.x=k?te.touches[0].clientX:te.clientX,S.y=k?te.touches[0].clientY:te.clientY;const ee=S.x-T.x,se=S.y-T.y;A.y=se,A.x=ee},m.throttle);function D(){const te=m.dir==="rtl"?-1:1,ee=Math.sign(A.x)*.4,se=Math.round(A.x/a.value+ee)*te;if(se&&!k){const he=ue=>{window.removeEventListener("click",he,!0)};window.addEventListener("click",he,!0)}q(_.value-se),A.x=0,A.y=0,N.value=!1,document.removeEventListener(k?"touchmove":"mousemove",O,!0),document.removeEventListener(k?"touchend":"mouseup",D,!0)}function V(){!m.autoplay||m.autoplay<=0||(u=setInterval(()=>{m.pauseAutoplayOnHover&&E.value||$()},m.autoplay))}function R(){u&&(clearInterval(u),u=null),V()}const j=t.ref(!1);function q(te){const ee=m.wrapAround?te:lw({val:te,max:o.value,min:l.value});_.value===ee||j.value||(r("slide-start",{slidingToIndex:te,currentSlideIndex:_.value,prevSlideIndex:c.value,slidesCount:b.value}),j.value=!0,c.value=_.value,_.value=ee,h=setTimeout(()=>{if(m.wrapAround){const se=cw({val:ee,max:o.value,min:0});se!==_.value&&(_.value=se,r("loop",{currentSlideIndex:_.value,slidingToIndex:te}))}r("update:modelValue",_.value),r("slide-end",{currentSlideIndex:_.value,prevSlideIndex:c.value,slidesCount:b.value}),j.value=!1,R()},m.transition))}function $(){q(_.value+m.itemsToScroll)}function G(){q(_.value-m.itemsToScroll)}const Z={slideTo:q,next:$,prev:G};t.provide("nav",Z),t.provide("isSliding",j);const H=t.computed(()=>oee({config:m,currentSlide:_.value,slidesCount:b.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const te=m.dir==="rtl"?-1:1,ee=H.value*a.value*te;return{transform:`translateX(${A.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${b.value*a.value}px`:"",width:"100%"}});function K(){p(),f(),M(),x(),R()}Object.keys(vI).forEach(te=>{["modelValue"].includes(te)||t.watch(()=>e[te],K)}),t.watch(()=>e.modelValue,te=>{te!==_.value&&q(Number(te))}),t.watch(b,M),r("before-init"),p();const le={config:m,slidesCount:b,slideWidth:a,next:$,prev:G,slideTo:q,currentSlide:_,maxSlide:o,minSlide:l,middleSlide:s};I({updateBreakpointsConfigs:f,updateSlidesData:M,updateSlideWidth:x,initDefaultConfigs:p,restartCarousel:K,slideTo:q,next:$,prev:G,nav:Z,data:le});const oe=n.default||n.slides,ne=n.addons,re=t.reactive(le);return()=>{const te=_I(oe==null?void 0:oe(re)),ee=(ne==null?void 0:ne(re))||[];te.forEach((fe,ge)=>fe.props.index=ge);let se=te;if(m.wrapAround){const fe=te.map((ve,we)=>t.cloneVNode(ve,{index:-te.length+we,isClone:!0,key:`clone-before-${we}`})),ge=te.map((ve,we)=>t.cloneVNode(ve,{index:te.length+we,isClone:!0,key:`clone-after-${we}`}));se=[...fe,...te,...ge]}g.value=te,b.value=Math.max(te.length,1);const he=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?P:null,onTouchstartPassiveCapture:m.touchDrag?P:null},se),ue=t.h("div",{class:"carousel__viewport"},he);return t.h("section",{ref:d,class:{carousel:!0,"is-sliding":j.value,"is-dragging":N.value,"is-hover":E.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:C,onMouseleave:z},[ue,ee,t.h(dee)])}}}),dw;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(dw||(dw={}));const hee={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 pee(e){return e in dw}const uw=e=>{const n=t.inject("config",t.reactive(Object.assign({},Mc))),r=String(e.name),I=`icon${r.charAt(0).toUpperCase()+r.slice(1)}`;if(!r||typeof r!="string"||!pee(r))return;const L=hee[r],d=t.h("path",{d:L}),g=n.i18n[I]||e.title||r,a=t.h("title",g);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":g},[a,d])};uw.props={name:String,title:String};const fee=(e,{slots:n,attrs:r})=>{const{next:I,prev:L}=n||{},d=t.inject("config",t.reactive(Object.assign({},Mc))),g=t.inject("maxSlide",t.ref(1)),a=t.inject("minSlide",t.ref(1)),b=t.inject("currentSlide",t.ref(1)),m=t.inject("nav",{}),{dir:i,wrapAround:v,i18n:_}=d,c=i==="rtl",s=t.h("button",{type:"button",class:["carousel__prev",!v&&b.value<=a.value&&"carousel__prev--disabled",r==null?void 0:r.class],"aria-label":_.ariaPreviousSlide,onClick:m.prev},(L==null?void 0:L())||t.h(uw,{name:c?"arrowRight":"arrowLeft"})),o=t.h("button",{type:"button",class:["carousel__next",!v&&b.value>=g.value&&"carousel__next--disabled",r==null?void 0:r.class],"aria-label":_.ariaNextSlide,onClick:m.next},(I==null?void 0:I())||t.h(uw,{name:c?"arrowLeft":"arrowRight"}));return[s,o]};var mee=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:n}){const r=t.inject("config",t.reactive(Object.assign({},Mc))),I=t.inject("currentSlide",t.ref(0)),L=t.inject("slidesToScroll",t.ref(0)),d=t.inject("isSliding",t.ref(!1)),g=t.computed(()=>e.index===I.value),a=t.computed(()=>e.index===I.value-1),b=t.computed(()=>e.index===I.value+1),m=t.computed(()=>{const i=Math.floor(L.value),v=Math.ceil(L.value+r.itemsToShow-1);return e.index>=i&&e.index<=v});return()=>{var i;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m.value,"carousel__slide--active":g.value,"carousel__slide--prev":a.value,"carousel__slide--next":b.value,"carousel__slide--sliding":d.value},"aria-hidden":!m.value},(i=n.default)===null||i===void 0?void 0:i.call(n,{isActive:g.value,isClone:e.isClone,isPrev:a.value,isNext:b.value,isSliding:d.value,isVisible:m.value}))}}});const $u=(e,n)=>{const r=e.__vccOpts||e;for(const[I,L]of n)r[I]=L;return r},gee={__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:n}){const r=e,I=t.computed(()=>{const a={"background-color":r.backgroundColor,height:r.height};return r.matchDay.key===r.matchDaySelected.key&&(a["border-bottom"]=`solid 1px ${r.bottomLineColor}`,a["background-color"]=r.selectedMatchDayBackgroundColor),r.isLandingMode||(a["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),a}),L=t.computed(()=>({color:r.numberColor,"font-family":r.numberFontFamily,"font-size":r.numberFontSize})),d=t.computed(()=>({color:r.textColor,"font-family":r.textFontFamily,"font-size":r.textFontSize}));function g(a){n("click-match-day",a)}return(a,b)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...I.value}),onClick:b[0]||(b[0]=m=>g(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(L.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",d.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},yee=$u(gee,[["__scopeId","data-v-89459353"]]),vee={__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:n}){const r=e;t.useCssVars(m=>({e74cf094:d.value,e74f1f14:g.value}));const I=t.ref(null),L=t.computed(()=>({itemsToShow:r.itemsToShow,itemsToScroll:r.itemsToScroll,snapAlign:"start"})),d=t.computed(()=>I.value.data.currentSlide.value==0?"none":"inline"),g=t.computed(()=>I.value.data.currentSlide.value==I.value.data.maxSlide.value?"none":"inline"),a=t.ref({});t.watch(()=>r.closestMatchDay,m=>{if(m){const i=r.matchDays.find(v=>v.key===m);b(i||r.matchDays[0],!0)}}),t.watch(()=>r.matchDays,m=>{if(!r.closestMatchDay&&m&&m.length){const i=m.find(v=>v.key===r.defaultMatchDayKey);a.value=i||m[0],n("change-match-day",a.value)}else r.closestMatchDay&&(a.value=m.find(i=>i.key===r.closestMatchDay)||{})},{immediate:!0});function b(m,i=!1){i&&I.value&&I.value.slideTo(m.index),a.value=m,n("change-match-day",a.value)}return(m,i)=>(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.createVNode(t.unref(uee),t.mergeProps(L.value,{ref_key:"matchDayPickerCarousel",ref:I}),{addons:t.withCtx(()=>[t.createVNode(t.unref(fee))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,v=>(t.openBlock(),t.createBlock(t.unref(mee),{key:v.key},{default:t.withCtx(()=>[t.createVNode(yee,t.mergeProps(r,{"match-day":v,"match-day-selected":a.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:b}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},_ee=$u(vee,[["__scopeId","data-v-fe058409"]]);function E0(e,n=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${n}/${e}.png`}function bI(e){if(typeof e=="string"){let n=e.replace("M","J ");return n=n.replace("PO1","CFI"),n=n.replace("PO2","CFV"),n=n.replace("PO3","SFI"),n=n.replace("PO4","SFV"),n=n.replace("PO5","FI"),n=n.replace("PO6","FV"),n}}function bee(e){let n="";return e.game_status!=4&&(n+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(n+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),n}const xee={class:"game-info__teams"},wee={class:"game-info__teams__team__logo"},kee=["src"],Cee={class:"game-info__teams__detail"},Tee={key:0,class:"game-info__teams__detail__pre-game"},See={class:"game-info__teams__team__logo away"},Eee=["src"],Aee={key:0},Mee={key:0},Iee={key:1},Pee={__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 n=e,r=t.computed(()=>{let m=n.game.schedule.split(":");return m.pop(),m=m.join(":"),m}),I=t.computed(()=>{let m="120px";return(n.isLandingMode||n.isAcronymVisible)&&(m="70px"),{"min-width":m}}),L=t.computed(()=>({"font-size":n.namesFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary})),d=t.computed(()=>({"font-size":n.additionalInfoFontSize,"font-family":n.additionalInfoFontFamily,color:n.colorSecondary})),g=t.computed(()=>({"font-size":n.scoreFontSize,"font-family":n.scoreFontFamily,color:n.colorPrimary})),a=t.computed(()=>({"font-size":n.timeZoneFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary})),b=t.computed(()=>({"font-size":n.timeFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary}));return(m,i)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",xee,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(I.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(L.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",wee,[t.createElementVNode("img",{src:t.unref(E0)(e.game.home_team.team_id),alt:""},null,8,kee)])],4),t.createElementVNode("div",Cee,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",Tee,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(b.value)},t.toDisplayString(r.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(g.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(I.value)},[t.createElementVNode("div",See,[t.createElementVNode("img",{src:t.unref(E0)(e.game.visiting_team.team_id),alt:""},null,8,Eee)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(L.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([d.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",Aee,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",Mee,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",Iee,t.toDisplayString(t.unref(bee)(e.game)),1))],4)],4))}},xI=$u(Pee,[["__scopeId","data-v-64bda814"]]),wI=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),Nee={class:"game-status"},Bee={key:0,class:"game-status__day__live"},Oee=wI(()=>t.createElementVNode("span",null,"LIVE",-1)),zee=wI(()=>t.createElementVNode("span",{class:"dot"},null,-1)),Lee=[Oee,zee],Fee={key:0,class:"game-status__round"},Dee={__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 n=e,r=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],I=t.computed(()=>{let g="";if(n.dateTimeMillis){const a=new Date(n.dateTimeMillis);g=`${a.getDate()} ${r[a.getMonth()]}`}return g}),L=t.computed(()=>({"font-size":n.fontSize})),d=t.computed(()=>{let g=[];return n.isLive?g.push("live"):n.status!==1&&g.push("pre-match"),g});return(g,a)=>(t.openBlock(),t.createElementBlock("div",Nee,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",d.value]),style:t.normalizeStyle(L.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",Bee,Lee)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(I.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Fee,t.toDisplayString(e.roundAbbreviation),1))]))}},kI=$u(Dee,[["__scopeId","data-v-8839c56d"]]),ju={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Vee=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),Ree={class:"actions"},$ee={class:"actions__row"},jee=Vee(()=>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)),Uee=[jee],Hee={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gee=["fill"],Wee={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qee=["fill"],Yee={__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:n}){const r=e,I=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor}));function L(d){n("action",d)}return(d,g)=>(t.openBlock(),t.createElementBlock("div",Ree,[t.createElementVNode("div",$ee,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(I.value),onClick:g[0]||(g[0]=a=>L(t.unref(ju).STATISTICS))},Uee,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(I.value),onClick:g[1]||(g[1]=a=>L(t.unref(ju).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Hee,[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:r.iconColor},null,8,Gee)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:g[2]||(g[2]=a=>L(t.unref(ju).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Wee,[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:r.iconColor},null,8,qee)]))])):t.createCommentVNode("",!0)])]))}},Zee=$u(Yee,[["__scopeId","data-v-0d97b1a8"]]),hw=e=>(t.pushScopeId("data-v-7ec0f118"),e=e(),t.popScopeId(),e),Jee={class:"actions"},Xee={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kee=["fill"],Qee={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ete=["fill"],tte=hw(()=>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)),ate=[tte],nte={key:0,class:"actions__videos"},rte={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ite=["fill"],ote={key:1,class:"actions__videos__thumbnails"},ste=hw(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),lte=hw(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),cte={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dte=["stroke"],ute={__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:n}){const r=e,I=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor})),L=t.computed(()=>{const b=[];return r.componentWidth<540&&b.push("mobile"),b}),d=t.computed(()=>r.componentWidth>730),g=t.computed(()=>({color:r.thumbnailColor,fontFamily:r.thumbnailFontFamily,fontSize:r.thumbnailFontSize}));function a(b){n("action",b)}return(b,m)=>(t.openBlock(),t.createElementBlock("div",Jee,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",L.value])},[e.gameStatus===4444&&!e.isLive&&!d.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:m[0]||(m[0]=i=>a(t.unref(ju).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Xee,[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:r.iconColor},null,8,Kee)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!d.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(I.value),onClick:m[1]||(m[1]=i=>a(t.unref(ju).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Qee,[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:r.iconColor},null,8,ete)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(I.value),onClick:m[2]||(m[2]=i=>a(t.unref(ju).STATISTICS))},ate,4)],2),d.value?(t.openBlock(),t.createElementBlock("div",nte,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:m[3]||(m[3]=i=>a(t.unref(ju).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",rte,[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:r.iconColor},null,8,ite)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",ote,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:m[4]||(m[4]=i=>a(t.unref(ju).PLAY_GOALS))},[ste,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(g.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:m[5]||(m[5]=i=>a(t.unref(ju).PLAY_RESUME))},[lte,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(g.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:m[6]||(m[6]=i=>a(t.unref(ju).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",cte,[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,dte)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},hte=$u(ute,[["__scopeId","data-v-7ec0f118"]]),x_=e=>(t.pushScopeId("data-v-3e92c161"),e=e(),t.popScopeId(),e),pte={class:"row-landing__game-status"},fte={class:"row-landing__game-actions"},mte={class:"row-full__game-status"},gte={class:"row-full__game-info"},yte={key:0},vte={class:"row-full__game-actions"},_te={class:"game-events-container"},bte=x_(()=>t.createElementVNode("div",{class:"separator"},null,-1)),xte=x_(()=>t.createElementVNode("div",null,null,-1)),wte={class:"game-events__data"},kte={class:"game-events__data__team"},Cte=["src"],Tte={class:"game-events__data__team__event__text"},Ste={class:"game-events__data__team away"},Ete={class:"game-events__data__team__event__text"},Ate=["src"],Mte=x_(()=>t.createElementVNode("div",null,null,-1)),Ite=x_(()=>t.createElementVNode("div",null,null,-1)),Pte={__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:n}){const r=e,I={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"},L=t.ref(!1),d=t.ref(!1),g=t.computed(()=>{const l={homeTeam:[],awayTeam:[]};return r.game&&r.game.game_status!==4&&!r.game.is_live&&r.game.minutes&&(l.homeTeam.push(...s(r.game.minutes.home_goals_minutes,I.GOAL)),l.homeTeam.push(...s(r.game.minutes.home_red_cards_minutes,I.RED_CARD)),l.homeTeam.push(...s(r.game.minutes.home_yellow_cards_minutes,I.YELLOW_CARD)),l.awayTeam.push(...s(r.game.minutes.visiting_goals_minutes,I.GOAL)),l.awayTeam.push(...s(r.game.minutes.away_red_cards_minutes,I.RED_CARD)),l.awayTeam.push(...s(r.game.minutes.away_yellow_cards_minutes,I.YELLOW_CARD))),l}),a=t.computed(()=>{const l=g.value.homeTeam.length,u=g.value.awayTeam.length;return l+u>0}),b=t.computed(()=>{const l=r.game.score[0],u=r.game.score[1];return l>0||u>0}),m=t.computed(()=>({"background-color":r.backgroundColor})),i=t.computed(()=>({height:r.height})),v=t.computed(()=>{const l={game:[],events:[]};return r.componentWidth<500?(l.events.push("break-point-3"),l.game.push("break-point-2")):r.componentWidth<730?(l.game.push("break-point-2"),l.events.push("break-point-2")):r.componentWidth<910&&(l.game.push("break-point-1"),l.events.push("break-point-1")),l}),_=t.computed(()=>({isLandingMode:r.isLandingMode,game:r.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),c=t.computed(()=>({"font-size":r.televisionFontSize,"font-family":r.televisionFontFamily,color:r.televisionColor}));t.watch(()=>r.componentWidth,l=>{d.value=l<910});function s(l,u){return l.map(h=>({iconUrl:u,text:h}))}function o(l){l===ju.SHOW_GAME_EVENTS?L.value=!L.value:n("action",{action:l,game:r.game})}return(l,u)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(m.value)},[t.createVNode(xI,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",pte,[t.createVNode(kI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(bI)(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",fte,[t.createVNode(Zee,{"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"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",v.value.game]),style:t.normalizeStyle(i.value)},[t.createElementVNode("div",mte,[t.createVNode(kI,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(bI)(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",gte,[t.createVNode(xI,t.mergeProps(_.value,{"is-television-visible":d.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(c.value)},[!d.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",yte,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",vte,[t.createVNode(hte,{"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?b.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":L.value,"component-width":e.componentWidth,onAction:o},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",_te,[bte,t.createElementVNode("div",{class:t.normalizeClass(["game-events",v.value.events])},[xte,t.createElementVNode("div",wte,[t.createElementVNode("div",kte,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.homeTeam,(h,p)=>(t.openBlock(),t.createElementBlock("div",{key:`h${p}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:h.iconUrl},null,8,Cte),t.createElementVNode("div",Tte,t.toDisplayString(h.text),1)]))),128))]),t.createElementVNode("div",Ste,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.awayTeam,(h,p)=>(t.openBlock(),t.createElementBlock("div",{key:`a${p}`,class:"game-events__data__team__event"},[t.createElementVNode("div",Ete,t.toDisplayString(h.text),1),t.createElementVNode("img",{src:h.iconUrl},null,8,Ate)]))),128))])]),Mte,Ite],2)],512),[[t.vShow,L.value]])]),_:1})],4))}},CI=$u(Pte,[["__scopeId","data-v-3e92c161"]]),Nte={class:"calendar-table"},Bte={__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:n}){const r=e;function I(d){return d%2===0?r.evenRowColor:r.oddRowColor}function L(d){n("action",d)}return(d,g)=>(t.openBlock(),t.createElementBlock("div",Nte,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(a,b)=>(t.openBlock(),t.createBlock(CI,{key:a.game_id,game:a,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":I(b),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:L},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},Ote=$u(Bte,[["__scopeId","data-v-ebabdc0c"]]),zte={class:"calendar-by-team"},Lte={class:"playing-as-picker"},Fte={class:"calendar-by-team__page"},Dte={__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:n}){const r=e,I=t.ref(0),L=t.computed(()=>{let b=[];if(r.gamesPages.size>0){const m=Array.from(r.gamesPages.entries()).reduce((i,[v,_])=>{const c=Number(v),s=Number.isNaN(c)?v:`Jornada ${c<10?"0":""}${c}`,o=_.reduce((l,u)=>(l.push(...u),l),[]).filter(l=>I.value===0||I.value===1&&l.visiting_team.team_id===r.teamId?!0:I.value===2&&l.home_team.team_id===r.teamId);return o.length>0&&i.push({roundName:s,games:o}),i},[]);b.push(m)}return b});function d(b){n("action",b)}function g(b){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),I.value=b,document.querySelector("#opc"+b).classList.add("selected")}function a(b){let m=b;switch(b){case"PI1":m="Play In 1";break;case"PI2":m="Play In 2";break;case"R1":m="Repechaje";break;case"CFI":m="Cuartos de final - Ida";break;case"CFV":m="Cuartos de final - Vuelta";break;case"SFI":m="Semifinal - Ida";break;case"SFV":m="Semifinal - Vuelta";break;case"FI":m="Final - Ida";break;case"FV":m="Final - Vuelta";break}return m}return(b,m)=>(t.openBlock(),t.createElementBlock("div",zte,[t.createElementVNode("div",Lte,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:m[0]||(m[0]=i=>g(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:m[1]||(m[1]=i=>g(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:m[2]||(m[2]=i=>g(2))},"Local")]),t.createVNode(t.unref(yI),{"is-pagination-visible":e.isPaginationVisible,items:L.value},{default:t.withCtx(({item:i})=>[t.createElementVNode("div",Fte,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i,(v,_)=>(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(v.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(v.games,c=>(t.openBlock(),t.createBlock(CI,{key:c.game_id,game:c,"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:d},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"])]))}},Vte=$u(Dte,[["__scopeId","data-v-d93dcb09"]]),Rte="_liveMinutes_7ejvy_3",$te="_viewButtomEvent_7ejvy_11",jte="_containerEvents_7ejvy_39",Ute="_sepEvents_7ejvy_51",Hte="_goalsContainer_7ejvy_71",Gte="_yellowContainer_7ejvy_87",Wte="_redContainer_7ejvy_103",qte="_containerEventsGameHometeam_7ejvy_119",Yte="_containerEventsGameAwayteam_7ejvy_147",Zte="_image62Icon_7ejvy_173",Jte="_imgChivasIcon_7ejvy_191",Xte="_nameDesktop_7ejvy_205",Kte="_nameMobile_7ejvy_231",Qte="_homeTeam_7ejvy_255",eae="_sbado16De_7ejvy_277",tae="_gameDate_7ejvy_295",aae="_sab16092023_7ejvy_303",nae="_div_7ejvy_329",rae="_divscore_7ejvy_347",iae="_cst_7ejvy_367",oae="_hour_7ejvy_385",sae="_score_7ejvy_387",lae="_chivasTvCanal_7ejvy_409",cae="_gameStatus_7ejvy_433",dae="_matchInfo_7ejvy_455",uae="_image62Icon1_7ejvy_483",hae="_name_7ejvy_205",pae="_imgAtlasIcon_7ejvy_527",fae="_name1_7ejvy_541",mae="_awayTeam_7ejvy_565",gae="_matchCard_7ejvy_587",yae={liveMinutes:Rte,viewButtomEvent:$te,containerEvents:jte,sepEvents:Ute,goalsContainer:Hte,yellowContainer:Gte,redContainer:Wte,containerEventsGameHometeam:qte,containerEventsGameAwayteam:Yte,image62Icon:Zte,imgChivasIcon:Jte,nameDesktop:Xte,nameMobile:Kte,homeTeam:Qte,sbado16De:eae,gameDate:tae,sab16092023:aae,div:nae,divscore:rae,cst:iae,hour:oae,score:sae,chivasTvCanal:lae,gameStatus:cae,matchInfo:dae,image62Icon1:uae,name:hae,imgAtlasIcon:pae,name1:fae,awayTeam:mae,matchCard:gae},vae=["src"],_ae=["src"],bae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),xae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),wae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),kae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Cae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),Tae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Sae=t.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),Eae={key:0},Aae=t.createElementVNode("div",null,"ver eventos",-1),Mae=t.createElementVNode("img",{width:"13",style:{"margin-top":"1px"},src:"http://golstatsimages.blob.core.windows.net/todoelfut/arrow-live-down.png"},null,-1),Iae=["src"],Pae=["src"],Nae={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},Bae={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},Oae={key:0,width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},zae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/players-goals-con-goles.png"},null,-1),Lae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/red_card.png"},null,-1),Fae=t.createElementVNode("img",{width:"10",src:"https://az755631.vo.msecnd.net/todoelfut/yellow_card.png"},null,-1),Dae={__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:n}){const r=e,I=new Map([[1,45],[2,90],[3,105],[4,120]]),L=t.computed(()=>{const i=I.get(r.infoLive.recent_lapse);return i&&i<r.infoLive.minute?`${i}' + ${r.infoLive.minute-i}'`:`${r.infoLive.minute}'`}),d=t.computed(()=>{let i=0,v=0,_=!1;var c=!1;return Object.keys(r.infoLive).includes("score")&&(r.infoLive.score["own_"+r.game.home_team.team_id]!=null&&r.infoLive.score["own_"+r.game.home_team.team_id]!=0&&(c=!0),r.infoLive.score["own_"+r.game.visiting_team.team_id]!=null&&r.infoLive.score["own_"+r.game.visiting_team.team_id]!=0&&(_=!0),_?r.infoLive.score[r.game.home_team.team_id]!=null&&(i=parseInt(r.infoLive.score[r.game.home_team.team_id])+parseInt(r.infoLive.score["own_"+r.game.visiting_team.team_id])):r.infoLive.score[r.game.home_team.team_id]!=null&&(i=parseInt(r.infoLive.score[r.game.home_team.team_id])),c?r.infoLive.score[r.game.visiting_team.team_id]!=null&&(v=parseInt(r.infoLive.score[r.game.visiting_team.team_id])+parseInt(r.infoLive.score["own_"+r.game.home_team.team_id])):r.infoLive.score[r.game.visiting_team.team_id]!=null&&(v=parseInt(r.infoLive.score[r.game.visiting_team.team_id]))),i+" - "+v}),g=t.computed(()=>{const i={...r.game};return i.gameSchedule=r.game.schedule.split(":"),i.gameSchedule.pop(),i.gameSchedule=i.gameSchedule.join(":"),i});function a(i){let v=i.split(" "),_=v[v.length-2];return _.includes("+")?v[v.length-3]+"+"+v[v.length-1]:(_=v[v.length-1],_)}function b(i){n("open-modal-event",i)}function m(i,v){const _=new Date(i);if(v==1){const c=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],s=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${c[_.getDay()]} ${_.getDate()} de ${s[_.getMonth()]}`}else return`${_.getDate()}-${_.getMonth()+1}-${_.getFullYear()}`}return(i,v)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(i.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon),alt:"",src:t.unref(E0)(g.value.home_team.team_id,150)},null,10,vae),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgChivasIcon),alt:"",src:t.unref(E0)(g.value.home_team.team_id)},null,10,_ae),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameDesktop),id:"team-name"},t.toDisplayString(g.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.nameMobile),id:"team-name"},t.toDisplayString(g.value.home_team.acronym)+" "+t.toDisplayString(i.gameSelected),3),g.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[g.value.is_live==0&&g.value.game_status==1||Object.keys(g.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.containerEvents)},[g.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.goalsContainer)},[bae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.home_goals_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),c!=g.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),g.value.minutes.home_red_cards_minutes.length>0&&g.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.sepEvents)},"|",2)):t.createCommentVNode("",!0),g.value.minutes.home_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(i.$style.yellowContainer)},[xae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.home_red_cards_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_)),1),c!=g.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),g.value.minutes.home_red_cards_minutes.length>0||g.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(i.$style.sepEvents)},"|",2)):t.createCommentVNode("",!0),g.value.minutes.home_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(i.$style.redContainer)},[wae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.home_yellow_cards_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_)),1),c!=g.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},[g.value.is_live==1&&g.value.game_status!=1||g.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(i.$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(i.$style.goalsContainer)},[kae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[_].event.map(s=>`${s}'`).join(", ").replace("(AG)","")),1),c!=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(i.$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(i.$style.yellowContainer)},[Cae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].red),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].red[_].event.map(s=>`${s}'`).join(", ")),1),c!=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(i.$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(i.$style.redContainer)},[Tae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].yellow),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].yellow[_].event.map(s=>`${s}'`).join(", ")),1),c!=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),g.value.game_status==4&&g.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.sbado16De)},t.toDisplayString(m(g.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.sab16092023)},t.toDisplayString(m(g.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.div)},t.toDisplayString(g.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(i.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.$style.chivasTvCanal)},t.toDisplayString(g.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.matchInfo),id:"container-match-info"},[g.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(m(g.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([i.$style.sbado16De,i.$style.gameDate])},t.toDisplayString(m(g.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([i.$style.sab16092023,i.$style.gameDate])},t.toDisplayString(m(g.value.date_time_utc,0)),3)],64)),g.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(i.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.divscore)},t.toDisplayString(d.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(i.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.divscore)},t.toDisplayString(g.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(i.$style.gameStatus)},[g.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.liveMinutes)},[Sae,t.createTextVNode(" LIVE - "+t.toDisplayString(L.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),g.value.penalties_score_home_team!=0||g.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",Eae," - Penales "+t.toDisplayString(g.value.penalties_score_home_team)+" - "+t.toDisplayString(g.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2),e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[g.value.is_live==1||g.value.game_status==1||Object.keys(g.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.viewButtomEvent),onClick:v[0]||(v[0]=_=>b(g.value))},[Aae,t.createTextVNode(" "),Mae],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(i.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(i.$style.image62Icon1),alt:"",src:t.unref(E0)(g.value.visiting_team.team_id,150)},null,10,Iae),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name),id:"team-name"},t.toDisplayString(g.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(i.$style.imgAtlasIcon),alt:"",src:t.unref(E0)(g.value.visiting_team.team_id)},null,10,Pae),t.createElementVNode("h3",{class:t.normalizeClass(i.$style.name1),id:"team-name"},t.toDisplayString(g.value.visiting_team.acronym),3),g.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[g.value.is_live==0&&g.value.game_status==1||Object.keys(g.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(i.$style.containerEvents)},[g.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.goalsContainer)},[g.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("img",Nae)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.visiting_goals_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_).replace("(AG)","")),1),c!=g.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),g.value.minutes.away_red_cards_minutes.length>0&&g.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.$style.sepEvents)},"|",2)):t.createCommentVNode("",!0),g.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(i.$style.yellowContainer)},[g.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",Bae)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.away_red_cards_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_)),1),c!=g.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),g.value.minutes.away_red_cards_minutes.length>0||g.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(i.$style.sepEvents)},"|",2)):t.createCommentVNode("",!0),g.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(i.$style.redContainer)},[g.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",Oae)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.value.minutes.away_yellow_cards_minutes,(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(a(_))+"'",1),c!=g.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},[g.value.is_live==1&&g.value.game_status!=1||g.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(i.$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(i.$style.goalsContainer)},[zae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[_].event.map(s=>`${s}'`).join(", ").replace("(AG)","")),1),c!=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(i.$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(i.$style.yellowContainer)},[Lae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].red),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].red[_].event.map(s=>`${s}'`).join(", ")),1),c!=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(i.$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(i.$style.redContainer)},[Fae,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow),(_,c)=>(t.openBlock(),t.createElementBlock("div",{key:c},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].yellow[_].event.map(s=>`${s}'`).join(", ")),1),c!=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))}},Vae={$style:yae},Rae=$u(Dae,[["__cssModules",Vae]]),$ae={class:"calendar-by-game__carousel"},jae={__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}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges","open-modal-event"],setup(e,{emit:n}){const r=e;let I=null;const L=t.ref([]),d=t.ref({}),g=t.ref(0),a=t.ref(null),b=t.ref({}),m=t.ref(new Map),i=t.ref(!1),v=t.ref(null),_=t.ref(null),c=t.ref(null),s=t.computed(()=>r.isCup),o=t.computed(()=>r.isCupLegacy),l=t.computed(()=>({height:r.height,width:r.width})),u=t.computed(()=>{if(r.games)return A(r.games,r.isTeamGamePerPage);{const R=m.value.get(b.value.key);return R&&r.isTeamGamePerPage&&r.onlyGamesTeamId?[R[0].filter(j=>j.home_team.team_id===r.onlyGamesTeamId||j.visiting_team.team_id===r.onlyGamesTeamId)]:R||[]}}),h=t.ref([]),p=t.ref([]),f=t.computed(()=>{const R=p.value&&p.value.length?x(d.value):w(d.value),j=h.value.find(q=>q.key===R);return j&&i.value&&(y(!1),C(j)),R});t.watch(()=>r.seasons,R=>{R&&R.length&&(y(!0),L.value=R.map(j=>j.id),T(R,!0))},{immediate:!0,deep:!0}),t.watch(m,R=>{if(r.onlyGamesTeamId&&R.size){const j=Array.from(R.values()).reduce((q,$)=>($.forEach(G=>{const Z=G.find(H=>H.home_team.team_id===r.onlyGamesTeamId||H.visiting_team.team_id===r.onlyGamesTeamId);Z&&q.push(Z)}),q),[]);n("change-games-by-client-privileges",j)}},{immediate:!0});function y(R){i.value=R}function w(R){const j=Object.entries(Object.entries(R).reduce((G,[Z,H])=>(G[Z]=[],H.forEach(Y=>{Y.games.forEach(K=>{const le=new Date(K.date_time_utc).getTime()+66e5;G[Z].push(le)})}),G),{}));if(!j.length)return"1";const q=new Date().getTime(),$=j.reduce((G,[Z,H])=>{let Y=null;return H.forEach(K=>{const le=K-q;le>=0&&(Y===null||le<Y)&&(Y=le)}),Y&&(G.shortestTime===null||Y<G.shortestTime)&&(G.round=Z,G.shortestTime=Y),G},{round:"",shortestTime:null});return $.shortestTime!==null?$.round:j[j.length-1][0]}function x(R){let j=1;if(p.value.length){const q=p.value[0];for(const[$,G]of Object.entries(R))for(const Z of G)if(Z.games.find(H=>H.game_id===q.game_id))return $}return j}t.watch(()=>r.teamId,()=>{S()},{immediate:!0});async function M(R,j,q=""){let $=q;try{const G={};r.token&&(G.Authorization=r.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",R.forEach((Y,K)=>{$+=`${K===0?"":"&"}seasons=${Y}`}));const{data:{data:Z,teams:H}}=await pI.get($,{headers:G});return{seasonsAndGames:Z,seasonsAndTeams:H}}catch(G){if(j>0)return M(R,j-1,$);throw new Error(G)}}function k(R){for(const j of R)if(!L.value.includes(j.season_id))return!0;return!1}async function T(R,j){try{d.value={};let q=0;const{seasonsAndGames:$,seasonsAndTeams:G}=await M(R.map(H=>H.id),3);if(j&&k($))return;$.forEach(H=>{const{type:Y}=R.find(K=>K.id===H.season_id);H.type=Y,H.games.forEach(K=>{K.season_id=H.season_id}),Y===0&&(q=H.season_id)}),v.value={seasonsGames:$};const{teams:Z}=G.find(H=>H.season_id===q);_.value=Z,n("change-teams",Z),S()}catch(q){throw new Error(q)}}function S(){if(!_.value)return;p.value=[];const R=v.value&&v.value.seasonsGames?v.value.seasonsGames.map(j=>{const q=j.games.reduce(($,G)=>{if(r.onlyGamesTeamId&&r.onlyGamesTeamId!==G.home_team&&r.onlyGamesTeamId!==G.visiting_team)return $;const Z={...G};return Z.dateTimeMillis=new Date(Z.date_time_utc).valueOf(),Z.home_team=_.value.find(H=>H.team_id===G.home_team),Z.visiting_team=_.value.find(H=>H.team_id===G.visiting_team),r.teamId&&Z.home_team.team_id!==r.teamId&&Z.visiting_team.team_id!==r.teamId||($[G.matchday_abbreviation]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date].push(Z):$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]=[Z]:$[G.matchday_abbreviation]={[G.game_status===3?"canceled":G.date]:[Z]},r.userTeamId&&Z.game_status===4&&(Z.home_team.team_id===r.userTeamId||Z.visiting_team.team_id===r.userTeamId)&&p.value.push(Z)),$},{});for(let[$,G]of Object.entries(q))q[$]=Object.entries(G).map(([Z,H])=>({date:Z,games:H.sort((Y,K)=>Y.dateTimeMillis-K.dateTimeMillis)})),q[$].sort((Z,H)=>Z.date<H.date?-1:Z.date>H.date?1:0);return{type:j.type,weight:j.type===0?0:j.type===2?1:2,schedule:q}}):[];R.sort((j,q)=>j.weight-q.weight),d.value=R.reduce((j,q)=>{for(const[$,G]of Object.entries(q.schedule))if(q.type===0)if([1,2].includes(r.tournamentType)){const Z=nee.get(r.tournamentType);if(Z){const H=Z.get($);H&&(j[H.matchDayAbbreviation]=G)}}else if(s.value){const Z=$.replace("M",""),H=Z;o.value?j[aee[Z]||H]=G:j[tee[$]||H]=G}else j[Number($.replace("M","")).toString()]=G;else q.type===2?$.charAt(1)=="I"?j[`PI${Number($.replace("PI",""))}`]=G:j[`R${Number($.replace("PO",""))}`]=G:q.type===1&&(j[eee[$]]=G);return j},{}),m.value=new Map,h.value=Array.from(Object.entries(d.value).reduce((j,[q,$],G)=>{const Z=Number(q);let H="";Number.isNaN(Z)?H=q:H=Z<10?`0${Z}`:q,j.set(q,{key:q,value:Z,valueText:H,index:G});const Y=$.reduce((le,oe)=>(oe.games.forEach(ne=>{ne.game_id===r.defaultGameId&&(c.value=q),ne.roundAbbreviation=Number.isNaN(Z)?Z:`J ${Z}`}),le=le.concat(oe.games),le),[]),K=A(Y);return m.value.set(q,K),j},new Map).values())}function A(R,j=!1){const q=[];if(r.gamesPerMatchDay>0){let $=[];R.forEach((G,Z)=>{$.push(G),(Z+1)%r.gamesPerMatchDay===0&&(q.push([...$]),$=[])}),$.length&&q.push([...$])}else q.push(R);return j&&r.isTeamGamePerPage&&r.defaultGameId?q.filter($=>$.game_id===r.defaultGameId||$.gameId===r.defaultGameId):q}async function E(R){try{const{data:j}=await pI.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return j}catch(j){if(R>0)return E(R-1);throw new Error(j)}}function N(){if(window.ResizeObserver)I=new ResizeObserver(()=>{g.value=a.value.clientWidth}),I.observe(a.value);else throw new Error("Resize observer not supported!")}function C(R){b.value.value!==R.value&&(b.value=R,n("change-round",R))}function z(R){r.areGamesCarouselType&&n("change-game-carousel",R.selectedItem)}function P(R){n("action",R),D(R)}function O(R){n("open-modal-event",R)}function D(R){const j="PLAY_RESUME",q="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],G=[12,55,"35_r","54_r"],{game_id:Z,season_id:H}=R.game;let Y={seasonId:H,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[Z],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};R.action===j?(Y.categoryIds=$,Y.advancedFilter.playListTitle="Resumen",n("openmedia",Y)):R.action===q&&(Y.categoryIds=G,Y.advancedFilter.playListTitle="Goles",n("openmedia",Y))}async function V(){try{if(!r.awaitForSeasons&&!r.games){const R=(await E(3)).find($=>$._id===1),j=R.seasons[0],q=[{id:j.id,type:j.type}];R&&R.tournament&&n("tournament-selected",R.tournament),j.related_seasons&&j.related_seasons.length&&q.push(...j.related_seasons.map($=>({id:$.id,type:$.type}))),await T(q,!1)}}catch(R){throw new Error(R)}}return t.onMounted(()=>{N()}),V(),(R,j)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:a,class:"calendar-by-game",style:t.normalizeStyle(l.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(Vte,{key:0,"full-tournament-schedule":d.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":g.value,"games-pages":m.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:P},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&&h.value?(t.openBlock(),t.createBlock(_ee,{key:0,"match-days":h.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":g.value,"default-match-day-key":c.value,"closest-match-day":e.sortCalendar?f.value:"",onChangeMatchDay:C},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",$ae,[u.value?(t.openBlock(),t.createBlock(t.unref(yI),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?u.value[0]:u.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:z},{default:t.withCtx(({item:q})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(Rae,{key:0,is_captured:e.is_captured,game:q,onOpenModalEvent:O,"plays-live":e.playsLive,"info-live":e.infoLive},null,8,["is_captured","game","plays-live","info-live"])):(t.openBlock(),t.createBlock(Ote,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":q,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":g.value,"is-round-mode":e.isRoundMode,onAction:P},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))}},Uae=$u(jae,[["__scopeId","data-v-9b45aca0"]]);function Hae(){return TI().__VUE_DEVTOOLS_GLOBAL_HOOK__}function TI(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Gae=typeof Proxy=="function",Wae="devtools-plugin:setup",qae="plugin:settings:set";let A0,pw;function Yae(){var e;return A0!==void 0||(typeof window<"u"&&window.performance?(A0=!0,pw=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(A0=!0,pw=globalThis.perf_hooks.performance):A0=!1),A0}function Zae(){return Yae()?pw.now():Date.now()}class Jae{constructor(n,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=n,this.hook=r;const I={};if(n.settings)for(const g in n.settings){const a=n.settings[g];I[g]=a.defaultValue}const L=`__vue-devtools-plugin-settings__${n.id}`;let d=Object.assign({},I);try{const g=localStorage.getItem(L),a=JSON.parse(g);Object.assign(d,a)}catch{}this.fallbacks={getSettings(){return d},setSettings(g){try{localStorage.setItem(L,JSON.stringify(g))}catch{}d=g},now(){return Zae()}},r&&r.on(qae,(g,a)=>{g===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(g,a)=>this.target?this.target.on[a]:(...b)=>{this.onQueue.push({method:a,args:b})}}),this.proxiedTarget=new Proxy({},{get:(g,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...b)=>(this.targetQueue.push({method:a,args:b,resolve:()=>{}}),this.fallbacks[a](...b)):(...b)=>new Promise(m=>{this.targetQueue.push({method:a,args:b,resolve:m})})})}async setRealTarget(n){this.target=n;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function Xae(e,n){const r=e,I=TI(),L=Hae(),d=Gae&&r.enableEarlyProxy;if(L&&(I.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!d))L.emit(Wae,e,n);else{const g=d?new Jae(r,L):null;(I.__VUE_DEVTOOLS_PLUGINS__=I.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:n,proxy:g}),g&&n(g.proxiedTarget)}}/*!
|
|
15
15
|
* vuex v4.0.2
|
|
16
16
|
* (c) 2021 Evan You
|
|
17
17
|
* @license MIT
|
|
@@ -5608,7 +5608,7 @@ const ute = { class: "game-info__teams" }, dte = { class: "game-info__teams__tea
|
|
|
5608
5608
|
], 2)
|
|
5609
5609
|
], 2)) : wt("", !0)
|
|
5610
5610
|
], 64)) : (Fe(), Ue(ma, { key: 1 }, [
|
|
5611
|
-
m.value.is_live == 1 && m.value.game_status != 1 ? (Fe(), Ue("div", {
|
|
5611
|
+
m.value.is_live == 1 && m.value.game_status != 1 || m.value.game_status == 0 ? (Fe(), Ue("div", {
|
|
5612
5612
|
key: 0,
|
|
5613
5613
|
class: He(r.$style.containerEventsGameHometeam)
|
|
5614
5614
|
}, [
|
|
@@ -5828,7 +5828,7 @@ const ute = { class: "game-info__teams" }, dte = { class: "game-info__teams__tea
|
|
|
5828
5828
|
], 2)
|
|
5829
5829
|
], 2)) : wt("", !0)
|
|
5830
5830
|
], 64)) : (Fe(), Ue(ma, { key: 1 }, [
|
|
5831
|
-
m.value.is_live == 1 && m.value.game_status != 1 ? (Fe(), Ue("div", {
|
|
5831
|
+
m.value.is_live == 1 && m.value.game_status != 1 || m.value.game_status == 0 ? (Fe(), Ue("div", {
|
|
5832
5832
|
key: 0,
|
|
5833
5833
|
class: He(r.$style.containerEventsGameAwayteam)
|
|
5834
5834
|
}, [
|
|
@@ -94702,11 +94702,11 @@ const LTt = { class: "dropdown" }, FTt = { class: "selected-item" }, RTt = {
|
|
|
94702
94702
|
},
|
|
94703
94703
|
setup(e) {
|
|
94704
94704
|
const a = e, n = _1(
|
|
94705
|
-
() => import("./FilterSubcategories-5a4d9250-
|
|
94705
|
+
() => import("./FilterSubcategories-5a4d9250-9378cb9d.js")
|
|
94706
94706
|
), E = _1(
|
|
94707
|
-
() => import("./FilterConditions-3aab28df-
|
|
94707
|
+
() => import("./FilterConditions-3aab28df-4ab998a0.js")
|
|
94708
94708
|
), R = _1(
|
|
94709
|
-
() => import("./FilterField-c27c9666-
|
|
94709
|
+
() => import("./FilterField-c27c9666-3a46e5a5.js")
|
|
94710
94710
|
), l = [
|
|
94711
94711
|
{
|
|
94712
94712
|
name: "Sub categorías",
|
|
@@ -210087,11 +210087,11 @@ const Aea = { class: "dropdown" }, Mea = { class: "selected-item" }, Eea = {
|
|
|
210087
210087
|
},
|
|
210088
210088
|
setup(e) {
|
|
210089
210089
|
const a = e, n = _1(
|
|
210090
|
-
() => import("./FilterSubcategories-a7b96423-Dq4ouXsj-
|
|
210090
|
+
() => import("./FilterSubcategories-a7b96423-Dq4ouXsj-1a8d3fe5.js")
|
|
210091
210091
|
), E = _1(
|
|
210092
|
-
() => import("./FilterConditions-dc6b25de-DOW3ApFh-
|
|
210092
|
+
() => import("./FilterConditions-dc6b25de-DOW3ApFh-e192e4ed.js")
|
|
210093
210093
|
), R = _1(
|
|
210094
|
-
() => import("./FilterField-37ad154d-CGBI29FT-
|
|
210094
|
+
() => import("./FilterField-37ad154d-CGBI29FT-215d44b8.js")
|
|
210095
210095
|
), l = [
|
|
210096
210096
|
{
|
|
210097
210097
|
name: "Sub categorías",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golstats/gsc-game-data",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.214",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"format": "prettier --write src/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@golstats/gsc-calendar-by-game": "^1.0.
|
|
24
|
+
"@golstats/gsc-calendar-by-game": "^1.0.47",
|
|
25
25
|
"@golstats/gsc-checkbox": "^1.0.12",
|
|
26
26
|
"@golstats/gsc-datagames": "^1.0.43",
|
|
27
27
|
"@golstats/gsc-dropdown": "^1.0.11",
|