@golstats/gsc-landing 1.0.68 → 1.0.69

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.
@@ -12004,7 +12004,7 @@ const Ov = /* @__PURE__ */ _e(wv, [["render", kv], ["__scopeId", "data-v-13490dc
12004
12004
  m("div", Mv, [
12005
12005
  e.infoType == "postmatch" ? (f(), b("div", Rv, "FINAL")) : (f(), b("div", Tv)),
12006
12006
  m("div", Fv, B(t.value), 1),
12007
- m("div", zv, B(`${Number.isNaN(e.data.roundAbbreviationV2) ? "" : "J"}${e.data.roundAbbreviationV2}`), 1)
12007
+ m("div", zv, B(`${Number.isNaN(Number(e.data.roundAbbreviationV2)) ? "" : "J"}${e.data.roundAbbreviationV2}`), 1)
12008
12008
  ]),
12009
12009
  m("div", Pv, [
12010
12010
  m("div", jv, [
@@ -12043,7 +12043,7 @@ const Ov = /* @__PURE__ */ _e(wv, [["render", kv], ["__scopeId", "data-v-13490dc
12043
12043
  ]);
12044
12044
  };
12045
12045
  }
12046
- }, Va = /* @__PURE__ */ _e(Hv, [["__scopeId", "data-v-7663a149"]]), Dv = (e) => (be("data-v-2697909d"), e = e(), ve(), e), Lv = { class: "match" }, Kv = { class: "match__header" }, qv = /* @__PURE__ */ Dv(() => /* @__PURE__ */ m("div", { class: "match__final-tag" }, "FINAL", -1)), Zv = { class: "match__header__match-date" }, Qv = { class: "match__tag" }, Yv = { class: "match__body" }, Wv = { class: "match__data" }, Jv = { class: "match__acronym" }, Xv = ["src"], _v = { class: "match__score" }, $v = ["src"], e2 = { class: "match__acronym" }, t2 = { class: "match__status" }, a2 = {
12046
+ }, Va = /* @__PURE__ */ _e(Hv, [["__scopeId", "data-v-02d713e0"]]), Dv = (e) => (be("data-v-85bf3478"), e = e(), ve(), e), Lv = { class: "match" }, Kv = { class: "match__header" }, qv = /* @__PURE__ */ Dv(() => /* @__PURE__ */ m("div", { class: "match__final-tag" }, "FINAL", -1)), Zv = { class: "match__header__match-date" }, Qv = { class: "match__tag" }, Yv = { class: "match__body" }, Wv = { class: "match__data" }, Jv = { class: "match__acronym" }, Xv = ["src"], _v = { class: "match__score" }, $v = ["src"], e2 = { class: "match__acronym" }, t2 = { class: "match__status" }, a2 = {
12047
12047
  __name: "PreviousMatchGame",
12048
12048
  props: {
12049
12049
  visitTeam: {
@@ -12083,7 +12083,7 @@ const Ov = /* @__PURE__ */ _e(wv, [["render", kv], ["__scopeId", "data-v-13490dc
12083
12083
  m("div", Kv, [
12084
12084
  qv,
12085
12085
  m("div", Zv, B(t.value), 1),
12086
- m("div", Qv, B(`${Number.isNaN(e.data.roundAbbreviationV2) ? "" : "J"}${e.data.roundAbbreviationV2}`), 1)
12086
+ m("div", Qv, B(`${Number.isNaN(Number(e.data.roundAbbreviationV2)) ? "" : "J"}${e.data.roundAbbreviationV2}`), 1)
12087
12087
  ]),
12088
12088
  m("div", Yv, [
12089
12089
  m("div", Wv, [
@@ -12109,7 +12109,7 @@ const Ov = /* @__PURE__ */ _e(wv, [["render", kv], ["__scopeId", "data-v-13490dc
12109
12109
  }, "Analizar partido →")
12110
12110
  ]));
12111
12111
  }
12112
- }, ir = /* @__PURE__ */ _e(a2, [["__scopeId", "data-v-2697909d"]]), o2 = ["src"], n2 = ["src"], i2 = { class: "coming-match__body" }, s2 = { class: "coming-match__data" }, r2 = ["src"], l2 = { style: { "margin-top": "16px" } }, c2 = { class: "coming-match__time" }, d2 = { class: "coming-match__cst" }, u2 = { key: 0 }, m2 = ["src"], p2 = {
12112
+ }, ir = /* @__PURE__ */ _e(a2, [["__scopeId", "data-v-85bf3478"]]), o2 = ["src"], n2 = ["src"], i2 = { class: "coming-match__body" }, s2 = { class: "coming-match__data" }, r2 = ["src"], l2 = { style: { "margin-top": "16px" } }, c2 = { class: "coming-match__time" }, d2 = { class: "coming-match__cst" }, u2 = { key: 0 }, m2 = ["src"], p2 = {
12113
12113
  __name: "ComingMatch",
12114
12114
  props: {
12115
12115
  small: {
@@ -12163,7 +12163,7 @@ const Ov = /* @__PURE__ */ _e(wv, [["render", kv], ["__scopeId", "data-v-13490dc
12163
12163
  m("div", i2, [
12164
12164
  m("div", {
12165
12165
  class: S(["coming-match__date", { small: e.small }])
12166
- }, B(`${Number.isNaN(e.data.roundAbbreviationV2) ? "" : "J"}${e.data.roundAbbreviationV2}`) + " | " + B(t.value), 3),
12166
+ }, B(`${Number.isNaN(Number(e.data.roundAbbreviationV2)) ? "" : "J"}${e.data.roundAbbreviationV2}`) + " | " + B(t.value), 3),
12167
12167
  m("div", s2, [
12168
12168
  m("div", {
12169
12169
  class: S(["coming-match__team", { small: e.small }])
@@ -12216,7 +12216,7 @@ const Ov = /* @__PURE__ */ _e(wv, [["render", kv], ["__scopeId", "data-v-13490dc
12216
12216
  ], 2);
12217
12217
  };
12218
12218
  }
12219
- }, Jo = /* @__PURE__ */ _e(p2, [["__scopeId", "data-v-75687c23"]]), h2 = (e) => (be("data-v-c5c96484"), e = e(), ve(), e), g2 = ["src"], f2 = ["src"], y2 = { class: "coming-match__body" }, b2 = { class: "coming-match__data" }, v2 = ["src"], w2 = { style: { "margin-top": "16px" } }, A2 = { class: "coming-match__time" }, C2 = /* @__PURE__ */ h2(() => /* @__PURE__ */ m("div", { class: "coming-match__cst" }, "CST", -1)), S2 = ["src"], k2 = {
12219
+ }, Jo = /* @__PURE__ */ _e(p2, [["__scopeId", "data-v-39eff678"]]), h2 = (e) => (be("data-v-32dd0855"), e = e(), ve(), e), g2 = ["src"], f2 = ["src"], y2 = { class: "coming-match__body" }, b2 = { class: "coming-match__data" }, v2 = ["src"], w2 = { style: { "margin-top": "16px" } }, A2 = { class: "coming-match__time" }, C2 = /* @__PURE__ */ h2(() => /* @__PURE__ */ m("div", { class: "coming-match__cst" }, "CST", -1)), S2 = ["src"], k2 = {
12220
12220
  __name: "ComingMatchGame",
12221
12221
  props: {
12222
12222
  small: {
@@ -12266,7 +12266,7 @@ const Ov = /* @__PURE__ */ _e(wv, [["render", kv], ["__scopeId", "data-v-13490dc
12266
12266
  m("div", y2, [
12267
12267
  m("div", {
12268
12268
  class: S(["coming-match__date", { small: e.small }])
12269
- }, B(`${Number.isNaN(e.data.roundAbbreviationV2) ? "" : "J"}${e.data.roundAbbreviationV2}`), 3),
12269
+ }, B(`${Number.isNaN(Number(e.data.roundAbbreviationV2)) ? "" : "J"}${e.data.roundAbbreviationV2}`), 3),
12270
12270
  m("div", b2, [
12271
12271
  m("div", {
12272
12272
  class: S(["coming-match__team", { small: e.small }])
@@ -12311,7 +12311,7 @@ const Ov = /* @__PURE__ */ _e(wv, [["render", kv], ["__scopeId", "data-v-13490dc
12311
12311
  ], 2);
12312
12312
  };
12313
12313
  }
12314
- }, sr = /* @__PURE__ */ _e(k2, [["__scopeId", "data-v-c5c96484"]]), O2 = {
12314
+ }, sr = /* @__PURE__ */ _e(k2, [["__scopeId", "data-v-32dd0855"]]), O2 = {
12315
12315
  __name: "SwitchCustom",
12316
12316
  props: {
12317
12317
  modelValue: {
@@ -25,7 +25,7 @@
25
25
  * Vue 3 Carousel 0.3.1
26
26
  * (c) 2023
27
27
  * @license MIT
28
- */const fe={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"}},Nr={itemsToShow:{default:fe.itemsToShow,type:Number},itemsToScroll:{default:fe.itemsToScroll,type:Number},wrapAround:{default:fe.wrapAround,type:Boolean},throttle:{default:fe.throttle,type:Number},snapAlign:{default:fe.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:fe.transition,type:Number},breakpoints:{default:fe.breakpoints,type:Object},autoplay:{default:fe.autoplay,type:Number},pauseAutoplayOnHover:{default:fe.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:fe.mouseDrag,type:Boolean},touchDrag:{default:fe.touchDrag,type:Boolean},dir:{default:fe.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:fe.i18n,type:Object},settings:{default(){return{}},type:Object}};function sy({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function ry({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function dn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function ly({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:dn({val:r,max:t-i,min:0})}function vr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...vr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function mn({val:e,max:a,min:t=0}){return e>a?mn({val:e-(a+1),max:a,min:t}):e<t?mn({val:e+(a+1),max:a,min:t}):e}function cy(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function dy(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function my(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var py=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},fe))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},my(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),uy=o.defineComponent({name:"Carousel",props:Nr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),p=o.ref(0),c=o.reactive(Object.assign({},fe));let d=Object.assign({},fe),u;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=o.ref(0),h=o.ref(0),g=o.ref(0),b=o.ref(0);let A,C;o.provide("config",c),o.provide("slidesCount",p),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function M(){u=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),G(d)}function P(){if(!u||!Object.keys(u).length)return;const w=Object.keys(u).map(E=>Number(E)).sort((E,L)=>+L-+E);let z=Object.assign({},d);w.some(E=>{const L=window.matchMedia(`(min-width: ${E}px)`).matches;return L&&(z=Object.assign(Object.assign({},z),u[E])),L}),G(z)}function G(w){Object.entries(w).forEach(([z,E])=>c[z]=E)}const Z=dy(()=>{P(),H()},16);function H(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function re(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),g.value=sy({config:c,slidesCount:p.value}),b.value=ry({config:c,slidesCount:p.value}),c.wrapAround||(f.value=dn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>H()),setTimeout(()=>H(),1e3),P(),ve(),window.addEventListener("resize",Z,{passive:!0}),t("init")}),o.onUnmounted(()=>{C&&clearTimeout(C),A&&clearInterval(A),window.removeEventListener("resize",Z,{passive:!0})});let T=!1;const ae={x:0,y:0},ie={x:0,y:0},q=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),qe=()=>{se.value=!0},Ze=()=>{se.value=!1};function Te(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||(T=w.type==="touchstart",T||w.preventDefault(),!(!T&&w.button!==0||x.value)&&(ae.x=T?w.touches[0].clientX:w.clientX,ae.y=T?w.touches[0].clientY:w.clientY,document.addEventListener(T?"touchmove":"mousemove",Fe,!0),document.addEventListener(T?"touchend":"mouseup",Ne,!0)))}const Fe=cy(w=>{de.value=!0,ie.x=T?w.touches[0].clientX:w.clientX,ie.y=T?w.touches[0].clientY:w.clientY;const z=ie.x-ae.x,E=ie.y-ae.y;q.y=E,q.x=z},c.throttle);function Ne(){const w=c.dir==="rtl"?-1:1,z=Math.sign(q.x)*.4,E=Math.round(q.x/l.value+z)*w;if(E&&!T){const L=we=>{we.stopPropagation(),window.removeEventListener("click",L,!0)};window.addEventListener("click",L,!0)}R(f.value-E),q.x=0,q.y=0,de.value=!1,document.removeEventListener(T?"touchmove":"mousemove",Fe,!0),document.removeEventListener(T?"touchend":"mouseup",Ne,!0)}function ve(){!c.autoplay||c.autoplay<=0||(A=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||v()},c.autoplay))}function j(){A&&(clearInterval(A),A=null),ve()}const x=o.ref(!1);function R(w){const z=c.wrapAround?w:dn({val:w,max:g.value,min:b.value});f.value===z||x.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),x.value=!0,m.value=f.value,f.value=z,C=setTimeout(()=>{if(c.wrapAround){const E=mn({val:z,max:g.value,min:0});E!==f.value&&(f.value=E,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),x.value=!1,j()},c.transition))}function v(){R(f.value+c.itemsToScroll)}function N(){R(f.value-c.itemsToScroll)}const I={slideTo:R,next:v,prev:N};o.provide("nav",I),o.provide("isSliding",x);const U=o.computed(()=>ly({config:c,currentSlide:f.value,slidesCount:p.value}));o.provide("slidesToScroll",U);const X=o.computed(()=>{const w=c.dir==="rtl"?-1:1,z=U.value*l.value*w;return{transform:`translateX(${q.x-z}px)`,transition:`${x.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function ne(){M(),P(),re(),H(),j()}Object.keys(Nr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&R(Number(w))}),o.watch(p,re),t("before-init"),M();const ce={config:c,slidesCount:p,slideWidth:l,next:v,prev:N,slideTo:R,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:h};n({updateBreakpointsConfigs:P,updateSlidesData:re,updateSlideWidth:H,initDefaultConfigs:M,restartCarousel:ne,slideTo:R,next:v,prev:N,nav:I,data:ce});const Ee=a.default||a.slides,xe=a.addons,Pe=o.reactive(ce);return()=>{const w=vr(Ee==null?void 0:Ee(Pe)),z=(xe==null?void 0:xe(Pe))||[];w.forEach((Ae,Ce)=>Ae.props.index=Ce);let E=w;if(c.wrapAround){const Ae=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),Ce=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));E=[...Ae,...w,...Ce]}r.value=w,p.value=Math.max(w.length,1);const L=o.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:c.mouseDrag?Te:null,onTouchstartPassiveCapture:c.touchDrag?Te:null},E),we=o.h("div",{class:"carousel__viewport"},L);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":x.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:qe,onMouseleave:Ze},[we,z,o.h(py)])}}}),pn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(pn||(pn={}));const hy={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 gy(e){return e in pn}const un=e=>{const a=o.inject("config",o.reactive(Object.assign({},fe))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!gy(t))return;const s=hy[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};un.props={name:String,title:String};const fy=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},fe))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),p=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:d,wrapAround:u,i18n:f}=i,m=d==="rtl",h=o.h("button",{type:"button",class:["carousel__prev",!u&&p.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(un,{name:m?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!u&&p.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(un,{name:m?"arrowLeft":"arrowRight"}));return[h,g]};var yy=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},fe))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const d=Math.floor(s.value),u=Math.ceil(s.value+t.itemsToShow-1);return e.index>=d&&e.index<=u};return()=>{var d;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const Ge=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},by={__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:a}){const t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},wy=Ge(by,[["__scopeId","data-v-687d929a"]]),Ay={__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:a}){const t=e;o.useCssVars(c=>({"395ea484":i.value,"395d8d44":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const d=t.matchDays.find(u=>u.key===c);p(d||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const d=c.find(u=>u.key===t.defaultMatchDayKey);l.value=d||c[0],a("change-match-day",l.value)}},{immediate:!0});function p(c,d=!1){d&&n.value.slideTo(c.index),l.value=c,a("change-match-day",l.value)}return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(uy),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(fy))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,u=>(o.openBlock(),o.createBlock(o.unref(yy),{key:u.key},{default:o.withCtx(()=>[o.createVNode(wy,o.mergeProps(t,{"match-day":u,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},Cy=Ge(Ay,[["__scopeId","data-v-1ad19205"]]);function Ot(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function Pr(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function ky(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const Sy={class:"game-info__teams"},By={class:"game-info__teams__team__logo"},Oy=["src"],Ey={class:"game-info__teams__detail"},xy={key:0,class:"game-info__teams__detail__pre-game"},My={class:"game-info__teams__team__logo away"},zy=["src"],Ry={key:0},Fy={key:0},Vy={key:1},Ty={__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 a=e,t=o.computed(()=>{let c=a.game.schedule.split(":");return c.pop(),c=c.join(":"),c}),n=o.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),s=o.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=o.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),r=o.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=o.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),p=o.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"game-info",style:o.normalizeStyle(e.isLandingMode?"gap:5px":"")},[o.createElementVNode("div",Sy,[o.createElementVNode("div",{class:"game-info__teams__team",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),o.createElementVNode("div",By,[o.createElementVNode("img",{src:o.unref(Ot)(e.game.home_team.team_id),alt:""},null,8,Oy)])],4),o.createElementVNode("div",Ey,[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("div",xy,[o.createElementVNode("div",null,[o.createElementVNode("span",{style:o.normalizeStyle(p.value)},o.toDisplayString(t.value),5),o.createTextVNode(),o.createElementVNode("span",{style:o.normalizeStyle(l.value)},"CST",4)])])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:o.normalizeStyle(r.value)},[o.createElementVNode("span",null,o.toDisplayString(e.game.score[0])+" - "+o.toDisplayString(e.game.score[1]),1)],4))]),o.createElementVNode("div",{class:"game-info__teams__team away",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",My,[o.createElementVNode("img",{src:o.unref(Ot)(e.game.visiting_team.team_id),alt:""},null,8,zy)]),o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),o.createElementVNode("div",{class:"game-info__status",style:o.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("span",Ry,[e.isTelevisionVisible?(o.openBlock(),o.createElementBlock("span",Fy,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("span",Vy,o.toDisplayString(o.unref(ky)(e.game)),1))],4)],4))}},jr=Ge(Ty,[["__scopeId","data-v-a6b3fc44"]]),Ir=e=>(o.pushScopeId("data-v-e2fc9ed0"),e=e(),o.popScopeId(),e),Ny={class:"game-status"},vy={key:0,class:"game-status__day__live"},Py=Ir(()=>o.createElementVNode("span",null,"LIVE",-1)),jy=Ir(()=>o.createElementVNode("span",{class:"dot"},null,-1)),Iy=[Py,jy],Uy={key:0,class:"game-status__round"},Dy={__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 a=e,t=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=o.computed(()=>{let r="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);r=`${l.getDate()} ${t[l.getMonth()]}`}return r}),s=o.computed(()=>({"font-size":a.fontSize})),i=o.computed(()=>{let r=[];return a.isLive?r.push("live"):a.status!==1&&r.push("pre-match"),r});return(r,l)=>(o.openBlock(),o.createElementBlock("div",Ny,[o.createElementVNode("div",{class:o.normalizeClass(["game-status__day",i.value]),style:o.normalizeStyle(s.value)},[e.isLive?(o.openBlock(),o.createElementBlock("div",vy,Iy)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.value),1)],64))],6),e.isRoundMode?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Uy,o.toDisplayString(e.roundAbbreviation),1))]))}},Ur=Ge(Dy,[["__scopeId","data-v-e2fc9ed0"]]),He={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Gy=e=>(o.pushScopeId("data-v-5711c5a6"),e=e(),o.popScopeId(),e),Hy={class:"actions"},Ly={class:"actions__row"},Ky=Gy(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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"}),o.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"}),o.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)),qy=[Ky],Zy={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qy=["fill"],Yy={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wy=["fill"],Jy={__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:a}){const t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor}));function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",Hy,[o.createElementVNode("div",Ly,[o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[0]||(r[0]=l=>s(o.unref(He).STATISTICS))},qy,4),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[1]||(r[1]=l=>s(o.unref(He).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",Zy,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,Qy)]))],4)):o.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=l=>s(o.unref(He).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",Yy,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,Wy)]))])):o.createCommentVNode("",!0)])]))}},Xy=Ge(Jy,[["__scopeId","data-v-5711c5a6"]]),hn=e=>(o.pushScopeId("data-v-643ec896"),e=e(),o.popScopeId(),e),_y={class:"actions"},$y={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e1=["fill"],t1={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o1=["fill"],a1=hn(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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"}),o.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"}),o.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)),n1=[a1],i1={key:0,class:"actions__videos"},s1={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r1=["fill"],l1={key:1,class:"actions__videos__thumbnails"},c1=hn(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),d1=hn(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),m1={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p1=["stroke"],u1={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{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:a}){const t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor})),s=o.computed(()=>{const p=[];return t.componentWidth<540&&p.push("mobile"),p}),i=o.computed(()=>t.componentWidth>730),r=o.computed(()=>({color:t.thumbnailColor,fontFamily:t.thumbnailFontFamily,fontSize:t.thumbnailFontSize}));function l(p){a("action",p)}return(p,c)=>(o.openBlock(),o.createElementBlock("div",_y,[o.createElementVNode("div",{class:o.normalizeClass(["actions__buttons",s.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=d=>l(o.unref(He).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",$y,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,e1)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[1]||(c[1]=d=>l(o.unref(He).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",t1,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,o1)]))],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[2]||(c[2]=d=>l(o.unref(He).STATISTICS))},n1,4)],2),i.value?(o.openBlock(),o.createElementBlock("div",i1,[e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=d=>l(o.unref(He).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",s1,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,r1)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",l1,[o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=d=>l(o.unref(He).PLAY_GOALS))},[c1,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Goles ",4)]),o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=d=>l(o.unref(He).PLAY_RESUME))},[d1,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Resumen ",4)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=d=>l(o.unref(He).SHOW_GAME_EVENTS))},[(o.openBlock(),o.createElementBlock("svg",m1,[o.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,p1)]))],2)):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},h1=Ge(u1,[["__scopeId","data-v-643ec896"]]),Vo=e=>(o.pushScopeId("data-v-8af393ec"),e=e(),o.popScopeId(),e),g1={class:"row-landing__game-status"},f1={class:"row-landing__game-actions"},y1={class:"row-full__game-status"},b1={class:"row-full__game-info"},w1={key:0},A1={class:"row-full__game-actions"},C1={class:"game-events-container"},k1=Vo(()=>o.createElementVNode("div",{class:"separator"},null,-1)),S1=Vo(()=>o.createElementVNode("div",null,null,-1)),B1={class:"game-events__data"},O1={class:"game-events__data__team"},E1=["src"],x1={class:"game-events__data__team__event__text"},M1={class:"game-events__data__team away"},z1={class:"game-events__data__team__event__text"},R1=["src"],F1=Vo(()=>o.createElementVNode("div",null,null,-1)),V1=Vo(()=>o.createElementVNode("div",null,null,-1)),T1={__name:"CalendarRow",props:{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:a}){const t=e,n={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"},s=o.ref(!1),i=o.ref(!1),r=o.computed(()=>{const g={homeTeam:[],awayTeam:[]};return t.game&&t.game.game_status!==4&&!t.game.is_live&&t.game.minutes&&(g.homeTeam.push(...m(t.game.minutes.home_goals_minutes,n.GOAL)),g.homeTeam.push(...m(t.game.minutes.home_red_cards_minutes,n.RED_CARD)),g.homeTeam.push(...m(t.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),g.awayTeam.push(...m(t.game.minutes.visiting_goals_minutes,n.GOAL)),g.awayTeam.push(...m(t.game.minutes.away_red_cards_minutes,n.RED_CARD)),g.awayTeam.push(...m(t.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),g}),l=o.computed(()=>{const g=r.value.homeTeam.length,b=r.value.awayTeam.length;return g+b>0}),p=o.computed(()=>({"background-color":t.backgroundColor})),c=o.computed(()=>({height:t.height})),d=o.computed(()=>{const g={game:[],events:[]};return t.componentWidth<500?(g.events.push("break-point-3"),g.game.push("break-point-2")):t.componentWidth<730?(g.game.push("break-point-2"),g.events.push("break-point-2")):t.componentWidth<910&&(g.game.push("break-point-1"),g.events.push("break-point-1")),g}),u=o.computed(()=>({isLandingMode:t.isLandingMode,game:t.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),f=o.computed(()=>({"font-size":t.televisionFontSize,"font-family":t.televisionFontFamily,color:t.televisionColor}));o.watch(()=>t.componentWidth,g=>{i.value=g<910});function m(g,b){return g.map(A=>({iconUrl:b,text:A}))}function h(g){g===He.SHOW_GAME_EVENTS?s.value=!s.value:a("action",{action:g,game:t.game})}return(g,b)=>e.isLandingMode?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-landing",style:o.normalizeStyle(p.value)},[o.createVNode(jr,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),o.createElementVNode("div",g1,[o.createVNode(Ur,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(Pr)(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"])]),o.createElementVNode("div",f1,[o.createVNode(Xy,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:h},null,8,["is-live","has-video","game-status"])])],4)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"row-full-container",style:o.normalizeStyle(p.value)},[o.createElementVNode("div",{class:o.normalizeClass(["row-full",d.value.game]),style:o.normalizeStyle(c.value)},[o.createElementVNode("div",y1,[o.createVNode(Ur,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(Pr)(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"])]),o.createElementVNode("div",b1,[o.createVNode(jr,o.mergeProps(u.value,{"is-television-visible":i.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?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-full__television",style:o.normalizeStyle(f.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(o.openBlock(),o.createElementBlock("span",w1,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),o.createElementVNode("div",A1,[o.createVNode(h1,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":l.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":s.value,"component-width":e.componentWidth,onAction:h},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",C1,[k1,o.createElementVNode("div",{class:o.normalizeClass(["game-events",d.value.events])},[S1,o.createElementVNode("div",B1,[o.createElementVNode("div",O1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.homeTeam,(A,C)=>(o.openBlock(),o.createElementBlock("div",{key:`h${C}`,class:"game-events__data__team__event"},[o.createElementVNode("img",{src:A.iconUrl},null,8,E1),o.createElementVNode("div",x1,o.toDisplayString(A.text),1)]))),128))]),o.createElementVNode("div",M1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.awayTeam,(A,C)=>(o.openBlock(),o.createElementBlock("div",{key:`a${C}`,class:"game-events__data__team__event"},[o.createElementVNode("div",z1,o.toDisplayString(A.text),1),o.createElementVNode("img",{src:A.iconUrl},null,8,R1)]))),128))])]),F1,V1],2)],512),[[o.vShow,s.value]])]),_:1})],4))}},Dr=Ge(T1,[["__scopeId","data-v-8af393ec"]]),N1={class:"calendar-table"},v1={__name:"CalendarTable",props:{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:a}){const t=e;function n(i){return i%2===0?t.evenRowColor:t.oddRowColor}function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",N1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.gamesPerPage,(l,p)=>(o.openBlock(),o.createBlock(Dr,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(p),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:s},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},P1=Ge(v1,[["__scopeId","data-v-c8583c72"]]),j1={class:"calendar-by-team"},I1={class:"playing-as-picker"},U1={class:"calendar-by-team__page"},D1={__name:"CalendarTableByTeam",props:{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:a}){const t=e,n=o.ref(0),s=o.computed(()=>{let p=[];if(t.gamesPages.size>0){const c=Array.from(t.gamesPages.entries()).reduce((d,[u,f])=>{const m=Number(u),h=Number.isNaN(m)?u:`Jornada ${m<10?"0":""}${m}`,g=f.reduce((b,A)=>(b.push(...A),b),[]).filter(b=>n.value===0||n.value===1&&b.visiting_team.team_id===t.teamId?!0:n.value===2&&b.home_team.team_id===t.teamId);return g.length>0&&d.push({roundName:h,games:g}),d},[]);p.push(c)}return p});function i(p){a("action",p)}function r(p){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=p,document.querySelector("#opc"+p).classList.add("selected")}function l(p){let c=p;switch(p){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(p,c)=>(o.openBlock(),o.createElementBlock("div",j1,[o.createElementVNode("div",I1,[o.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=d=>r(0))}," Todas "),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=d=>r(1))},"Visitante"),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=d=>r(2))},"Local")]),o.createVNode(o.unref(Tr),{"is-pagination-visible":e.isPaginationVisible,items:s.value},{default:o.withCtx(({item:d})=>[o.createElementVNode("div",U1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d,(u,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"calendar-by-team__page__round"},[o.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:o.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},o.toDisplayString(l(u.roundName)),5),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.games,m=>(o.openBlock(),o.createBlock(Dr,{key:m.game_id,game:m,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},G1=Ge(D1,[["__scopeId","data-v-7776a54a"]]),H1="_image62Icon_1ybd3_2",L1="_imgChivasIcon_1ybd3_11",K1="_nameDesktop_1ybd3_18",q1="_nameMobile_1ybd3_31",Z1="_homeTeam_1ybd3_43",Q1="_sbado16De_1ybd3_54",Y1="_gameDate_1ybd3_63",W1="_sab16092023_1ybd3_67",J1="_div_1ybd3_80",X1="_divscore_1ybd3_89",_1="_cst_1ybd3_99",$1="_hour_1ybd3_108",eb="_score_1ybd3_109",tb="_chivasTvCanal_1ybd3_120",ob="_gameStatus_1ybd3_132",ab="_matchInfo_1ybd3_143",nb="_image62Icon1_1ybd3_156",ib="_name_1ybd3_18",sb="_imgAtlasIcon_1ybd3_178",rb="_name1_1ybd3_185",lb="_awayTeam_1ybd3_197",cb="_matchCard_1ybd3_208",db={image62Icon:H1,imgChivasIcon:L1,nameDesktop:K1,nameMobile:q1,homeTeam:Z1,sbado16De:Q1,gameDate:Y1,sab16092023:W1,div:J1,divscore:X1,cst:_1,hour:$1,score:eb,chivasTvCanal:tb,gameStatus:ob,matchInfo:ab,image62Icon1:nb,name:ib,imgAtlasIcon:sb,name1:rb,awayTeam:lb,matchCard:cb},mb=["src"],pb=["src"],ub={key:0},hb=["src"],gb=["src"],fb={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,t=o.computed(()=>{const s={...a.game};return s.gameSchedule=a.game.schedule.split(":"),s.gameSchedule.pop(),s.gameSchedule=s.gameSchedule.join(":"),s});function n(s,i){const r=new Date(s);if(i==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],p=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[r.getDay()]} ${r.getDate()} de ${p[r.getMonth()]}`}else return`${r.getDate()}-${r.getMonth()+1}-${r.getFullYear()}`}return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(s.$style.matchCard)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.homeTeam),id:"container-home-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon),alt:"",src:o.unref(Ot)(t.value.home_team.team_id,150)},null,10,mb),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgChivasIcon),alt:"",src:o.unref(Ot)(t.value.home_team.team_id)},null,10,pb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameDesktop),id:"team-name"},o.toDisplayString(t.value.home_team.colloquial_name),3),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameMobile),id:"team-name"},o.toDisplayString(t.value.home_team.acronym),3)],2),t.value.game_status==4?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.sbado16De)},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.sab16092023)},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.hour)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.div)},o.toDisplayString(t.value.gameSchedule),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.cst)},"CST",2)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.chivasTvCanal)},o.toDisplayString(t.value.tv_stations.join(", ")),3)],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass([s.$style.sbado16De,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass([s.$style.sab16092023,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.score)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.divscore)},o.toDisplayString(t.value.score.join(" - ")),3)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.gameStatus)},[o.createTextVNode(" Finalizado "),t.value.penalties_score_home_team!=0||t.value.penalties_score_visiting_team!=0?(o.openBlock(),o.createElementBlock("span",ub," - Penales "+o.toDisplayString(t.value.penalties_score_home_team)+" - "+o.toDisplayString(t.value.penalties_score_visiting_team),1)):o.createCommentVNode("",!0)],2)],2)),o.createElementVNode("div",{class:o.normalizeClass(s.$style.awayTeam),id:"container-away-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon1),alt:"",src:o.unref(Ot)(t.value.visiting_team.team_id,150)},null,10,hb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name),id:"team-name"},o.toDisplayString(t.value.visiting_team.colloquial_name),3),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgAtlasIcon),alt:"",src:o.unref(Ot)(t.value.visiting_team.team_id)},null,10,gb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name1),id:"team-name"},o.toDisplayString(t.value.visiting_team.acronym),3)],2)],2))}},yb={$style:db},bb=Ge(fb,[["__cssModules",yb]]),wb={class:"calendar-by-game__carousel"},Ab={components:{GscSwitchComponent:Za,GSCGeneraltable:Kg,GSCCalendarByGame:Ge({__name:"GSC-CalendarByGame",props:{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},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}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const t=e;let n=null;const s=o.ref([]),i=o.ref({}),r=o.ref(0),l=o.ref(null),p=o.ref({}),c=o.ref(new Map),d=o.ref(!1),u=o.ref(null),f=o.ref(null),m=o.ref(null),h=o.computed(()=>t.isCup),g=o.computed(()=>t.isCupLegacy),b=o.computed(()=>({height:t.height,width:t.width})),A=o.computed(()=>t.games?se(t.games):c.value.get(p.value.key)||[]),C=o.ref(0),M=o.ref("1"),P=o.ref([]),G=o.ref([]),Z=o.computed(()=>G.value&&G.value.length?re(i.value):H(i.value));o.watch(()=>Z.value,j=>{C.value=P.value.findIndex(x=>x===j),M.value=j}),o.watch(()=>t.seasons,j=>{j&&j.length&&(d.value=!0,s.value=j.map(x=>x.id),ie(j,!0))},{immediate:!0,deep:!0});function H(j){const x=Object.entries(Object.entries(j).reduce((N,[I,U])=>(N[I]=[],U.forEach(X=>{X.games.forEach(ne=>{const ce=new Date(ne.date_time_utc).getTime()+66e5;N[I].push(ce)})}),N),{}));if(!x.length)return"1";const R=new Date().getTime(),v=x.reduce((N,[I,U])=>{let X=null;return U.forEach(ne=>{const ce=ne-R;ce>=0&&(X===null||ce<X)&&(X=ce)}),X&&(N.shortestTime===null||X<N.shortestTime)&&(N.round=I,N.shortestTime=X),N},{round:"",shortestTime:null});return v.shortestTime!==null?v.round:x[x.length-1][0]}function re(j){let x=1;if(G.value.length){const R=G.value[0];for(const[v,N]of Object.entries(j))for(const I of N)if(I.games.find(U=>U.game_id===R.game_id))return v}return x}o.watch(()=>t.teamId,()=>{q()},{immediate:!0});async function T(j,x,R=""){let v=R;try{const N={};t.token&&(N.Authorization=t.token),v||(v="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",j.forEach((X,ne)=>{v+=`${ne===0?"":"&"}seasons=${X}`}));const{data:{data:I,teams:U}}=await zr.get(v,{headers:N});return{seasonsAndGames:I,seasonsAndTeams:U}}catch(N){if(x>0)return T(j,x-1,v);throw new Error(N)}}function ae(j){for(const x of j)if(!s.value.includes(x.season_id))return!0;return!1}async function ie(j,x){try{i.value={};let R=0;const{seasonsAndGames:v,seasonsAndTeams:N}=await T(j.map(U=>U.id),3);if(x&&ae(v))return;v.forEach(U=>{const{type:X}=j.find(ne=>ne.id===U.season_id);U.type=X,U.games.forEach(ne=>{ne.season_id=U.season_id}),X===0&&(R=U.season_id)}),u.value={seasonsGames:v};const{teams:I}=N.find(U=>U.season_id===R);f.value=I,a("change-teams",I),q()}catch(R){throw new Error(R)}}function q(){if(!f.value)return;G.value=[];const j=u.value&&u.value.seasonsGames?u.value.seasonsGames.map(x=>{const R=x.games.reduce((v,N)=>{const I={...N};return I.dateTimeMillis=new Date(I.date_time_utc).valueOf(),I.home_team=f.value.find(U=>U.team_id===N.home_team),I.visiting_team=f.value.find(U=>U.team_id===N.visiting_team),t.teamId&&I.home_team.team_id!==t.teamId&&I.visiting_team.team_id!==t.teamId||(v[N.matchday_abbreviation]?v[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]?v[N.matchday_abbreviation][N.game_status===3?"canceled":N.date].push(I):v[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]=[I]:v[N.matchday_abbreviation]={[N.game_status===3?"canceled":N.date]:[I]},t.userTeamId&&I.game_status===4&&(I.home_team.team_id===t.userTeamId||I.visiting_team.team_id===t.userTeamId)&&G.value.push(I)),v},{});for(let[v,N]of Object.entries(R))R[v]=Object.entries(N).map(([I,U])=>({date:I,games:U.sort((X,ne)=>X.dateTimeMillis-ne.dateTimeMillis)})),R[v].sort((I,U)=>I.date<U.date?-1:I.date>U.date?1:0);return{type:x.type,weight:x.type===0?0:x.type===2?1:2,schedule:R}}):[];j.sort((x,R)=>x.weight-R.weight),i.value=j.reduce((x,R)=>{for(const[v,N]of Object.entries(R.schedule))if(R.type===0)if(h.value){const I=v.replace("M",""),U=I;g.value?x[iy[I]||U]=N:x[ny[v]||U]=N}else x[Number(v.replace("M","")).toString()]=N;else R.type===2?v.charAt(1)=="I"?x[`PI${Number(v.replace("PI",""))}`]=N:x[`R${Number(v.replace("PO",""))}`]=N:R.type===1&&(x[ay[v]]=N);return x},{}),c.value=new Map,P.value=Array.from(Object.entries(i.value).reduce((x,[R,v],N)=>{const I=Number(R);let U="";Number.isNaN(I)?U=R:U=I<10?`0${I}`:R,x.set(R,{key:R,value:I,valueText:U,index:N});const X=v.reduce((ce,Ee)=>(Ee.games.forEach(xe=>{xe.game_id===t.defaultGameId&&(m.value=R),xe.roundAbbreviation=Number.isNaN(I)?I:`J ${I}`}),ce=ce.concat(Ee.games),ce),[]),ne=se(X);return c.value.set(R,ne),x},new Map).values())}function se(j){const x=[];if(t.gamesPerMatchDay>0){let R=[];j.forEach((v,N)=>{R.push(v),(N+1)%t.gamesPerMatchDay===0&&(x.push([...R]),R=[])}),R.length&&x.push([...R])}else x.push(j);return x}async function de(j){try{const{data:x}=await zr.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return x}catch(x){if(j>0)return de(j-1);throw new Error(x)}}function qe(){if(window.ResizeObserver)n=new ResizeObserver(()=>{r.value=l.value.clientWidth}),n.observe(l.value);else throw new Error("Resize observer not supported!")}function Ze(j){p.value=j,a("change-round",j)}function Te(j){t.areGamesCarouselType&&a("change-game-carousel",j.selectedItem)}function Fe(j){a("action",j),Ne(j)}function Ne(j){const x="PLAY_RESUME",R="PLAY_GOALS",v=[607,608,12,55,54,35,14,52,15,53,466,477],N=[12,55,"35_r","54_r"],{game_id:I,season_id:U}=j.game;let X={seasonId:U,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[I],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};j.action===x?(X.categoryIds=v,X.advancedFilter.playListTitle="Resumen",a("openmedia",X)):j.action===R&&(X.categoryIds=N,X.advancedFilter.playListTitle="Goles",a("openmedia",X))}async function ve(){try{if(!t.awaitForSeasons&&!t.games){const j=(await de(3)).find(v=>v._id===1),x=j.seasons[0],R=[{id:x.id,type:x.type}];j&&j.tournament&&a("tournament-selected",j.tournament),x.related_seasons&&x.related_seasons.length&&R.push(...x.related_seasons.map(v=>({id:v.id,type:v.type}))),await ie(R,!1)}}catch(j){throw new Error(j)}}return o.onMounted(()=>{qe()}),ve(),(j,x)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"calendarByGame",ref:l,class:"calendar-by-game",style:o.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(o.openBlock(),o.createBlock(G1,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":c.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Fe},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.areRoundsVisible&&P.value?(o.openBlock(),o.createBlock(Cy,{key:0,"match-days":P.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":m.value,"closest-match-day":e.sortCalendar?Z.value:"",onChangeMatchDay:Ze},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):o.createCommentVNode("",!0),o.createElementVNode("div",wb,[A.value?(o.openBlock(),o.createBlock(o.unref(Tr),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?A.value[0]:A.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:Te},{default:o.withCtx(({item:R})=>[e.areGamesCarouselType?(o.openBlock(),o.createBlock(bb,{key:0,game:R},null,8,["game"])):(o.openBlock(),o.createBlock(P1,{key:1,"games-per-page":R,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,onAction:Fe},null,8,["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"])):o.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-dd648f83"]])},props:{season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}}},Cb={class:"gsc-calendar-table"},kb={class:"gsc-switch-container"},Sb={class:"gsc-app-component"};function Bb(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCGeneraltable"),p=o.resolveComponent("GSCCalendarByGame");return o.openBlock(),o.createElementBlock("div",Cb,[o.createElementVNode("div",kb,[o.createVNode(r,{type:0,"font-family":"Poppins-Light",buttons:["Mi posición","Calendario"],height:"40px","selected-option":s.selectedOpt,"font-size":t.componentWidth>=768?"16px":"14px",width:"355px",onInput:i.changeCategory},null,8,["selected-option","font-size","onInput"])]),o.createElementVNode("div",Sb,[s.selectedOpt=="Mi posición"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(l,{isPaginationVisible:!0,"current-season-id":t.season.id,type:1,"await-for-season":!0,onOpenmedia:i.onOpenMedia,onOpenTableProfile:i.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),o.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(p,{onAction:i.onAction,onOpenmedia:i.onOpenMedia,width:"100%",token:s.tokenFree,seasons:t.seasons,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons"]),o.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const Ob=Se(Ab,[["render",Bb],["__scopeId","data-v-13490dc5"]]),gn=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],fn=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Setiembre","Octubre","Noviembre","Diciembre"],Eb=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Set","Oct","Nov","Dic"],xb={class:"match"},Mb={class:"match__header"},zb={key:0,class:"match__final-tag"},Rb={key:1,class:"match__final-tag__no-border"},Fb={class:"match__header__match-date"},Vb={class:"match__tag"},Tb={class:"match__body"},Nb={class:"match__data"},vb={class:"match__acronym"},Pb=["src"],jb={class:"match__score"},Ib=["src"],Ub={class:"match__acronym"},Db={class:"match__status"},To=Se({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){const a=e,t=o.computed(()=>{const n=new Date(a.data.date_time_utc);return`${gn[n.getDay()]}, ${n.getDate()} de ${fn[n.getMonth()]}`});return(n,s)=>{var i,r,l;return o.openBlock(),o.createElementBlock("section",xb,[o.createElementVNode("div",Mb,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock("div",zb,"FINAL")):(o.openBlock(),o.createElementBlock("div",Rb)),o.createElementVNode("div",Fb,o.toDisplayString(t.value),1),o.createElementVNode("div",Vb,o.toDisplayString(`${Number.isNaN(e.data.roundAbbreviationV2)?"":"J"}${e.data.roundAbbreviationV2}`),1)]),o.createElementVNode("div",Tb,[o.createElementVNode("div",Nb,[o.createElementVNode("div",vb,o.toDisplayString((i=e.data)==null?void 0:i.home_team_acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,Pb),o.createElementVNode("div",jb,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((r=e.data)==null?void 0:r.schedule.replace(":00","")),1)],64))]),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,Ib),o.createElementVNode("div",Ub,o.toDisplayString((l=e.data)==null?void 0:l.visiting_team_acronym),1)]),o.createElementVNode("div",Db,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("CST")],64))])]),o.createElementVNode("div",{class:"match__button",onClick:s[0]||(s[0]=p=>n.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-7663a149"]]),Gb=e=>(o.pushScopeId("data-v-2697909d"),e=e(),o.popScopeId(),e),Hb={class:"match"},Lb={class:"match__header"},Kb=Gb(()=>o.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),qb={class:"match__header__match-date"},Zb={class:"match__tag"},Qb={class:"match__body"},Yb={class:"match__data"},Wb={class:"match__acronym"},Jb=["src"],Xb={class:"match__score"},_b=["src"],$b={class:"match__acronym"},ew={class:"match__status"},Gr=Se({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){const a=e,t=o.computed(()=>{const n=new Date(a.data.date_time_utc);return`${gn[n.getDay()]}, ${n.getDate()} de ${fn[n.getMonth()]}`});return(n,s)=>(o.openBlock(),o.createElementBlock("section",Hb,[o.createElementVNode("div",Lb,[Kb,o.createElementVNode("div",qb,o.toDisplayString(t.value),1),o.createElementVNode("div",Zb,o.toDisplayString(`${Number.isNaN(e.data.roundAbbreviationV2)?"":"J"}${e.data.roundAbbreviationV2}`),1)]),o.createElementVNode("div",Qb,[o.createElementVNode("div",Yb,[o.createElementVNode("div",Wb,o.toDisplayString(e.data.home_team.acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,Jb),o.createElementVNode("div",Xb,o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,_b),o.createElementVNode("div",$b,o.toDisplayString(e.data.visiting_team.acronym),1)]),o.createElementVNode("div",ew,"Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),o.createElementVNode("div",{class:"match__button",onClick:s[0]||(s[0]=i=>n.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-2697909d"]]),tw=["src"],ow=["src"],aw={class:"coming-match__body"},nw={class:"coming-match__data"},iw=["src"],sw={style:{"margin-top":"16px"}},rw={class:"coming-match__time"},lw={class:"coming-match__cst"},cw={key:0},dw=["src"],yn=Se({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){const a=e,t=o.computed(()=>{const n=new Date(a.data.date_time_utc);return`${gn[n.getDay()]}, ${n.getDate()} de ${a.small?Eb[n.getMonth()]:fn[n.getMonth()]}`});return(n,s)=>{var i,r,l,p,c,d,u,f,m,h,g,b,A;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.home_team)+".png",alt:"team-img"},null,10,tw),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((l=e.data)==null?void 0:l.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((p=e.data)==null?void 0:p.visiting_team)+".png",alt:"team-img"},null,10,ow),o.createElementVNode("div",aw,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(`${Number.isNaN(e.data.roundAbbreviationV2)?"":"J"}${e.data.roundAbbreviationV2}`)+" | "+o.toDisplayString(t.value),3),o.createElementVNode("div",nw,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((c=e.data)==null?void 0:c.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((d=e.data)==null?void 0:d.home_team)+".png",alt:"team-img"},null,10,iw),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((u=e.data)==null?void 0:u.home_team_name),3)],2),o.createElementVNode("div",sw,[o.createElementVNode("div",rw,[e.data.game_status!==4?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.score[0])+" - "+o.toDisplayString((m=e.data)==null?void 0:m.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((h=e.data)==null?void 0:h.schedule.replace(":00","")),1)],64))]),o.createElementVNode("div",lw,[e.data.game_status===4?(o.openBlock(),o.createElementBlock("span",cw,"CST")):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((g=e.data)==null?void 0:g.visiting_team_name),3),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((b=e.data)==null?void 0:b.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((A=e.data)==null?void 0:A.visiting_team)+".png",alt:"team-img"},null,10,dw)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:s[0]||(s[0]=C=>n.$emit("clickMatch"))},[e.data.game_status===4?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Analizar previa →")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("Analizar partido →")],64))],2)],2)}}},[["__scopeId","data-v-75687c23"]]),mw=e=>(o.pushScopeId("data-v-c5c96484"),e=e(),o.popScopeId(),e),pw=["src"],uw=["src"],hw={class:"coming-match__body"},gw={class:"coming-match__data"},fw=["src"],yw={style:{"margin-top":"16px"}},bw={class:"coming-match__time"},ww=mw(()=>o.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),Aw=["src"],Hr=Se({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,t)=>{var n,s,i,r,l,p,c,d,u,f,m,h,g;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((s=e.data)==null?void 0:s.home_team)+".png",alt:"team-img"},null,10,pw),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team)+".png",alt:"team-img"},null,10,uw),o.createElementVNode("div",hw,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(`${Number.isNaN(e.data.roundAbbreviationV2)?"":"J"}${e.data.roundAbbreviationV2}`),3),o.createElementVNode("div",gw,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,fw),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),o.createElementVNode("div",yw,[o.createElementVNode("div",bw,[e.data.game_status==1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((d=e.data)==null?void 0:d.score[0])+" - "+o.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.schedule.replace(":00","")),1)],64))]),ww]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((m=e.data)==null?void 0:m.visiting_team_name),3),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,Aw)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:t[0]||(t[0]=b=>a.$emit("clickMatch"))}," Analizar partido → ",2)],2)}}},[["__scopeId","data-v-c5c96484"]]),Cw=Se({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:a}){const t=e,n=o.ref(null);o.watch(()=>t.modelValue,()=>{s()},{immediate:!0});function s(){n.value&&(n.value.checked=t.modelValue)}function i(r){a("update:modelValue",r.target.checked)}return o.onMounted(()=>{s()}),(r,l)=>(o.openBlock(),o.createElementBlock("input",{ref_key:"switchCustom",ref:n,id:"toggle",className:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:i},null,544))}},[["__scopeId","data-v-9e2bfbd7"]]);/**
28
+ */const fe={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"}},Nr={itemsToShow:{default:fe.itemsToShow,type:Number},itemsToScroll:{default:fe.itemsToScroll,type:Number},wrapAround:{default:fe.wrapAround,type:Boolean},throttle:{default:fe.throttle,type:Number},snapAlign:{default:fe.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:fe.transition,type:Number},breakpoints:{default:fe.breakpoints,type:Object},autoplay:{default:fe.autoplay,type:Number},pauseAutoplayOnHover:{default:fe.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:fe.mouseDrag,type:Boolean},touchDrag:{default:fe.touchDrag,type:Boolean},dir:{default:fe.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:fe.i18n,type:Object},settings:{default(){return{}},type:Object}};function sy({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function ry({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function dn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function ly({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:dn({val:r,max:t-i,min:0})}function vr(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...vr(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function mn({val:e,max:a,min:t=0}){return e>a?mn({val:e-(a+1),max:a,min:t}):e<t?mn({val:e+(a+1),max:a,min:t}):e}function cy(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function dy(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function my(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var py=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},fe))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},my(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),uy=o.defineComponent({name:"Carousel",props:Nr,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),p=o.ref(0),c=o.reactive(Object.assign({},fe));let d=Object.assign({},fe),u;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=o.ref(0),h=o.ref(0),g=o.ref(0),b=o.ref(0);let A,C;o.provide("config",c),o.provide("slidesCount",p),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function M(){u=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),G(d)}function P(){if(!u||!Object.keys(u).length)return;const w=Object.keys(u).map(E=>Number(E)).sort((E,L)=>+L-+E);let z=Object.assign({},d);w.some(E=>{const L=window.matchMedia(`(min-width: ${E}px)`).matches;return L&&(z=Object.assign(Object.assign({},z),u[E])),L}),G(z)}function G(w){Object.entries(w).forEach(([z,E])=>c[z]=E)}const Z=dy(()=>{P(),H()},16);function H(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function re(){p.value<=0||(h.value=Math.ceil((p.value-1)/2),g.value=sy({config:c,slidesCount:p.value}),b.value=ry({config:c,slidesCount:p.value}),c.wrapAround||(f.value=dn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>H()),setTimeout(()=>H(),1e3),P(),ve(),window.addEventListener("resize",Z,{passive:!0}),t("init")}),o.onUnmounted(()=>{C&&clearTimeout(C),A&&clearInterval(A),window.removeEventListener("resize",Z,{passive:!0})});let T=!1;const ae={x:0,y:0},ie={x:0,y:0},q=o.reactive({x:0,y:0}),se=o.ref(!1),de=o.ref(!1),qe=()=>{se.value=!0},Ze=()=>{se.value=!1};function Te(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||(T=w.type==="touchstart",T||w.preventDefault(),!(!T&&w.button!==0||x.value)&&(ae.x=T?w.touches[0].clientX:w.clientX,ae.y=T?w.touches[0].clientY:w.clientY,document.addEventListener(T?"touchmove":"mousemove",Fe,!0),document.addEventListener(T?"touchend":"mouseup",Ne,!0)))}const Fe=cy(w=>{de.value=!0,ie.x=T?w.touches[0].clientX:w.clientX,ie.y=T?w.touches[0].clientY:w.clientY;const z=ie.x-ae.x,E=ie.y-ae.y;q.y=E,q.x=z},c.throttle);function Ne(){const w=c.dir==="rtl"?-1:1,z=Math.sign(q.x)*.4,E=Math.round(q.x/l.value+z)*w;if(E&&!T){const L=we=>{we.stopPropagation(),window.removeEventListener("click",L,!0)};window.addEventListener("click",L,!0)}R(f.value-E),q.x=0,q.y=0,de.value=!1,document.removeEventListener(T?"touchmove":"mousemove",Fe,!0),document.removeEventListener(T?"touchend":"mouseup",Ne,!0)}function ve(){!c.autoplay||c.autoplay<=0||(A=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||v()},c.autoplay))}function j(){A&&(clearInterval(A),A=null),ve()}const x=o.ref(!1);function R(w){const z=c.wrapAround?w:dn({val:w,max:g.value,min:b.value});f.value===z||x.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),x.value=!0,m.value=f.value,f.value=z,C=setTimeout(()=>{if(c.wrapAround){const E=mn({val:z,max:g.value,min:0});E!==f.value&&(f.value=E,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),x.value=!1,j()},c.transition))}function v(){R(f.value+c.itemsToScroll)}function N(){R(f.value-c.itemsToScroll)}const I={slideTo:R,next:v,prev:N};o.provide("nav",I),o.provide("isSliding",x);const U=o.computed(()=>ly({config:c,currentSlide:f.value,slidesCount:p.value}));o.provide("slidesToScroll",U);const X=o.computed(()=>{const w=c.dir==="rtl"?-1:1,z=U.value*l.value*w;return{transform:`translateX(${q.x-z}px)`,transition:`${x.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function ne(){M(),P(),re(),H(),j()}Object.keys(Nr).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],ne)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&R(Number(w))}),o.watch(p,re),t("before-init"),M();const ce={config:c,slidesCount:p,slideWidth:l,next:v,prev:N,slideTo:R,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:h};n({updateBreakpointsConfigs:P,updateSlidesData:re,updateSlideWidth:H,initDefaultConfigs:M,restartCarousel:ne,slideTo:R,next:v,prev:N,nav:I,data:ce});const Ee=a.default||a.slides,xe=a.addons,Pe=o.reactive(ce);return()=>{const w=vr(Ee==null?void 0:Ee(Pe)),z=(xe==null?void 0:xe(Pe))||[];w.forEach((Ae,Ce)=>Ae.props.index=Ce);let E=w;if(c.wrapAround){const Ae=w.map((ke,te)=>o.cloneVNode(ke,{index:-w.length+te,isClone:!0,key:`clone-before-${te}`})),Ce=w.map((ke,te)=>o.cloneVNode(ke,{index:w.length+te,isClone:!0,key:`clone-after-${te}`}));E=[...Ae,...w,...Ce]}r.value=w,p.value=Math.max(w.length,1);const L=o.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:c.mouseDrag?Te:null,onTouchstartPassiveCapture:c.touchDrag?Te:null},E),we=o.h("div",{class:"carousel__viewport"},L);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":x.value,"is-dragging":de.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:qe,onMouseleave:Ze},[we,z,o.h(py)])}}}),pn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(pn||(pn={}));const hy={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 gy(e){return e in pn}const un=e=>{const a=o.inject("config",o.reactive(Object.assign({},fe))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!gy(t))return;const s=hy[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};un.props={name:String,title:String};const fy=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},fe))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),p=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:d,wrapAround:u,i18n:f}=i,m=d==="rtl",h=o.h("button",{type:"button",class:["carousel__prev",!u&&p.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(un,{name:m?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!u&&p.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(un,{name:m?"arrowLeft":"arrowRight"}));return[h,g]};var yy=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},fe))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const d=Math.floor(s.value),u=Math.ceil(s.value+t.itemsToShow-1);return e.index>=d&&e.index<=u};return()=>{var d;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const Ge=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},by={__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:a}){const t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},wy=Ge(by,[["__scopeId","data-v-687d929a"]]),Ay={__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:a}){const t=e;o.useCssVars(c=>({"395ea484":i.value,"395d8d44":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const d=t.matchDays.find(u=>u.key===c);p(d||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const d=c.find(u=>u.key===t.defaultMatchDayKey);l.value=d||c[0],a("change-match-day",l.value)}},{immediate:!0});function p(c,d=!1){d&&n.value.slideTo(c.index),l.value=c,a("change-match-day",l.value)}return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(uy),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(fy))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,u=>(o.openBlock(),o.createBlock(o.unref(yy),{key:u.key},{default:o.withCtx(()=>[o.createVNode(wy,o.mergeProps(t,{"match-day":u,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},Cy=Ge(Ay,[["__scopeId","data-v-1ad19205"]]);function Ot(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function Pr(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function ky(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const Sy={class:"game-info__teams"},By={class:"game-info__teams__team__logo"},Oy=["src"],Ey={class:"game-info__teams__detail"},xy={key:0,class:"game-info__teams__detail__pre-game"},My={class:"game-info__teams__team__logo away"},zy=["src"],Ry={key:0},Fy={key:0},Vy={key:1},Ty={__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 a=e,t=o.computed(()=>{let c=a.game.schedule.split(":");return c.pop(),c=c.join(":"),c}),n=o.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),s=o.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=o.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),r=o.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=o.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),p=o.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"game-info",style:o.normalizeStyle(e.isLandingMode?"gap:5px":"")},[o.createElementVNode("div",Sy,[o.createElementVNode("div",{class:"game-info__teams__team",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),o.createElementVNode("div",By,[o.createElementVNode("img",{src:o.unref(Ot)(e.game.home_team.team_id),alt:""},null,8,Oy)])],4),o.createElementVNode("div",Ey,[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("div",xy,[o.createElementVNode("div",null,[o.createElementVNode("span",{style:o.normalizeStyle(p.value)},o.toDisplayString(t.value),5),o.createTextVNode(),o.createElementVNode("span",{style:o.normalizeStyle(l.value)},"CST",4)])])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:o.normalizeStyle(r.value)},[o.createElementVNode("span",null,o.toDisplayString(e.game.score[0])+" - "+o.toDisplayString(e.game.score[1]),1)],4))]),o.createElementVNode("div",{class:"game-info__teams__team away",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",My,[o.createElementVNode("img",{src:o.unref(Ot)(e.game.visiting_team.team_id),alt:""},null,8,zy)]),o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),o.createElementVNode("div",{class:"game-info__status",style:o.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("span",Ry,[e.isTelevisionVisible?(o.openBlock(),o.createElementBlock("span",Fy,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("span",Vy,o.toDisplayString(o.unref(ky)(e.game)),1))],4)],4))}},jr=Ge(Ty,[["__scopeId","data-v-a6b3fc44"]]),Ir=e=>(o.pushScopeId("data-v-e2fc9ed0"),e=e(),o.popScopeId(),e),Ny={class:"game-status"},vy={key:0,class:"game-status__day__live"},Py=Ir(()=>o.createElementVNode("span",null,"LIVE",-1)),jy=Ir(()=>o.createElementVNode("span",{class:"dot"},null,-1)),Iy=[Py,jy],Uy={key:0,class:"game-status__round"},Dy={__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 a=e,t=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=o.computed(()=>{let r="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);r=`${l.getDate()} ${t[l.getMonth()]}`}return r}),s=o.computed(()=>({"font-size":a.fontSize})),i=o.computed(()=>{let r=[];return a.isLive?r.push("live"):a.status!==1&&r.push("pre-match"),r});return(r,l)=>(o.openBlock(),o.createElementBlock("div",Ny,[o.createElementVNode("div",{class:o.normalizeClass(["game-status__day",i.value]),style:o.normalizeStyle(s.value)},[e.isLive?(o.openBlock(),o.createElementBlock("div",vy,Iy)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.value),1)],64))],6),e.isRoundMode?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",Uy,o.toDisplayString(e.roundAbbreviation),1))]))}},Ur=Ge(Dy,[["__scopeId","data-v-e2fc9ed0"]]),He={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},Gy=e=>(o.pushScopeId("data-v-5711c5a6"),e=e(),o.popScopeId(),e),Hy={class:"actions"},Ly={class:"actions__row"},Ky=Gy(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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"}),o.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"}),o.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)),qy=[Ky],Zy={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Qy=["fill"],Yy={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wy=["fill"],Jy={__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:a}){const t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor}));function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",Hy,[o.createElementVNode("div",Ly,[o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[0]||(r[0]=l=>s(o.unref(He).STATISTICS))},qy,4),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[1]||(r[1]=l=>s(o.unref(He).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",Zy,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,Qy)]))],4)):o.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=l=>s(o.unref(He).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",Yy,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,Wy)]))])):o.createCommentVNode("",!0)])]))}},Xy=Ge(Jy,[["__scopeId","data-v-5711c5a6"]]),hn=e=>(o.pushScopeId("data-v-643ec896"),e=e(),o.popScopeId(),e),_y={class:"actions"},$y={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e1=["fill"],t1={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},o1=["fill"],a1=hn(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.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"}),o.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"}),o.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)),n1=[a1],i1={key:0,class:"actions__videos"},s1={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r1=["fill"],l1={key:1,class:"actions__videos__thumbnails"},c1=hn(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),d1=hn(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),m1={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p1=["stroke"],u1={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{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:a}){const t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor})),s=o.computed(()=>{const p=[];return t.componentWidth<540&&p.push("mobile"),p}),i=o.computed(()=>t.componentWidth>730),r=o.computed(()=>({color:t.thumbnailColor,fontFamily:t.thumbnailFontFamily,fontSize:t.thumbnailFontSize}));function l(p){a("action",p)}return(p,c)=>(o.openBlock(),o.createElementBlock("div",_y,[o.createElementVNode("div",{class:o.normalizeClass(["actions__buttons",s.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=d=>l(o.unref(He).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",$y,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,e1)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[1]||(c[1]=d=>l(o.unref(He).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",t1,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,o1)]))],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[2]||(c[2]=d=>l(o.unref(He).STATISTICS))},n1,4)],2),i.value?(o.openBlock(),o.createElementBlock("div",i1,[e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=d=>l(o.unref(He).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",s1,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,r1)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",l1,[o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=d=>l(o.unref(He).PLAY_GOALS))},[c1,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Goles ",4)]),o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=d=>l(o.unref(He).PLAY_RESUME))},[d1,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Resumen ",4)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=d=>l(o.unref(He).SHOW_GAME_EVENTS))},[(o.openBlock(),o.createElementBlock("svg",m1,[o.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,p1)]))],2)):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},h1=Ge(u1,[["__scopeId","data-v-643ec896"]]),Vo=e=>(o.pushScopeId("data-v-8af393ec"),e=e(),o.popScopeId(),e),g1={class:"row-landing__game-status"},f1={class:"row-landing__game-actions"},y1={class:"row-full__game-status"},b1={class:"row-full__game-info"},w1={key:0},A1={class:"row-full__game-actions"},C1={class:"game-events-container"},k1=Vo(()=>o.createElementVNode("div",{class:"separator"},null,-1)),S1=Vo(()=>o.createElementVNode("div",null,null,-1)),B1={class:"game-events__data"},O1={class:"game-events__data__team"},E1=["src"],x1={class:"game-events__data__team__event__text"},M1={class:"game-events__data__team away"},z1={class:"game-events__data__team__event__text"},R1=["src"],F1=Vo(()=>o.createElementVNode("div",null,null,-1)),V1=Vo(()=>o.createElementVNode("div",null,null,-1)),T1={__name:"CalendarRow",props:{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:a}){const t=e,n={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"},s=o.ref(!1),i=o.ref(!1),r=o.computed(()=>{const g={homeTeam:[],awayTeam:[]};return t.game&&t.game.game_status!==4&&!t.game.is_live&&t.game.minutes&&(g.homeTeam.push(...m(t.game.minutes.home_goals_minutes,n.GOAL)),g.homeTeam.push(...m(t.game.minutes.home_red_cards_minutes,n.RED_CARD)),g.homeTeam.push(...m(t.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),g.awayTeam.push(...m(t.game.minutes.visiting_goals_minutes,n.GOAL)),g.awayTeam.push(...m(t.game.minutes.away_red_cards_minutes,n.RED_CARD)),g.awayTeam.push(...m(t.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),g}),l=o.computed(()=>{const g=r.value.homeTeam.length,b=r.value.awayTeam.length;return g+b>0}),p=o.computed(()=>({"background-color":t.backgroundColor})),c=o.computed(()=>({height:t.height})),d=o.computed(()=>{const g={game:[],events:[]};return t.componentWidth<500?(g.events.push("break-point-3"),g.game.push("break-point-2")):t.componentWidth<730?(g.game.push("break-point-2"),g.events.push("break-point-2")):t.componentWidth<910&&(g.game.push("break-point-1"),g.events.push("break-point-1")),g}),u=o.computed(()=>({isLandingMode:t.isLandingMode,game:t.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),f=o.computed(()=>({"font-size":t.televisionFontSize,"font-family":t.televisionFontFamily,color:t.televisionColor}));o.watch(()=>t.componentWidth,g=>{i.value=g<910});function m(g,b){return g.map(A=>({iconUrl:b,text:A}))}function h(g){g===He.SHOW_GAME_EVENTS?s.value=!s.value:a("action",{action:g,game:t.game})}return(g,b)=>e.isLandingMode?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-landing",style:o.normalizeStyle(p.value)},[o.createVNode(jr,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),o.createElementVNode("div",g1,[o.createVNode(Ur,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(Pr)(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"])]),o.createElementVNode("div",f1,[o.createVNode(Xy,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:h},null,8,["is-live","has-video","game-status"])])],4)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"row-full-container",style:o.normalizeStyle(p.value)},[o.createElementVNode("div",{class:o.normalizeClass(["row-full",d.value.game]),style:o.normalizeStyle(c.value)},[o.createElementVNode("div",y1,[o.createVNode(Ur,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(Pr)(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"])]),o.createElementVNode("div",b1,[o.createVNode(jr,o.mergeProps(u.value,{"is-television-visible":i.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?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-full__television",style:o.normalizeStyle(f.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(o.openBlock(),o.createElementBlock("span",w1,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),o.createElementVNode("div",A1,[o.createVNode(h1,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":l.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":s.value,"component-width":e.componentWidth,onAction:h},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",C1,[k1,o.createElementVNode("div",{class:o.normalizeClass(["game-events",d.value.events])},[S1,o.createElementVNode("div",B1,[o.createElementVNode("div",O1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.homeTeam,(A,C)=>(o.openBlock(),o.createElementBlock("div",{key:`h${C}`,class:"game-events__data__team__event"},[o.createElementVNode("img",{src:A.iconUrl},null,8,E1),o.createElementVNode("div",x1,o.toDisplayString(A.text),1)]))),128))]),o.createElementVNode("div",M1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.awayTeam,(A,C)=>(o.openBlock(),o.createElementBlock("div",{key:`a${C}`,class:"game-events__data__team__event"},[o.createElementVNode("div",z1,o.toDisplayString(A.text),1),o.createElementVNode("img",{src:A.iconUrl},null,8,R1)]))),128))])]),F1,V1],2)],512),[[o.vShow,s.value]])]),_:1})],4))}},Dr=Ge(T1,[["__scopeId","data-v-8af393ec"]]),N1={class:"calendar-table"},v1={__name:"CalendarTable",props:{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:a}){const t=e;function n(i){return i%2===0?t.evenRowColor:t.oddRowColor}function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",N1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.gamesPerPage,(l,p)=>(o.openBlock(),o.createBlock(Dr,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(p),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:s},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},P1=Ge(v1,[["__scopeId","data-v-c8583c72"]]),j1={class:"calendar-by-team"},I1={class:"playing-as-picker"},U1={class:"calendar-by-team__page"},D1={__name:"CalendarTableByTeam",props:{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:a}){const t=e,n=o.ref(0),s=o.computed(()=>{let p=[];if(t.gamesPages.size>0){const c=Array.from(t.gamesPages.entries()).reduce((d,[u,f])=>{const m=Number(u),h=Number.isNaN(m)?u:`Jornada ${m<10?"0":""}${m}`,g=f.reduce((b,A)=>(b.push(...A),b),[]).filter(b=>n.value===0||n.value===1&&b.visiting_team.team_id===t.teamId?!0:n.value===2&&b.home_team.team_id===t.teamId);return g.length>0&&d.push({roundName:h,games:g}),d},[]);p.push(c)}return p});function i(p){a("action",p)}function r(p){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=p,document.querySelector("#opc"+p).classList.add("selected")}function l(p){let c=p;switch(p){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(p,c)=>(o.openBlock(),o.createElementBlock("div",j1,[o.createElementVNode("div",I1,[o.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=d=>r(0))}," Todas "),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=d=>r(1))},"Visitante"),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=d=>r(2))},"Local")]),o.createVNode(o.unref(Tr),{"is-pagination-visible":e.isPaginationVisible,items:s.value},{default:o.withCtx(({item:d})=>[o.createElementVNode("div",U1,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d,(u,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"calendar-by-team__page__round"},[o.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:o.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},o.toDisplayString(l(u.roundName)),5),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(u.games,m=>(o.openBlock(),o.createBlock(Dr,{key:m.game_id,game:m,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},G1=Ge(D1,[["__scopeId","data-v-7776a54a"]]),H1="_image62Icon_1ybd3_2",L1="_imgChivasIcon_1ybd3_11",K1="_nameDesktop_1ybd3_18",q1="_nameMobile_1ybd3_31",Z1="_homeTeam_1ybd3_43",Q1="_sbado16De_1ybd3_54",Y1="_gameDate_1ybd3_63",W1="_sab16092023_1ybd3_67",J1="_div_1ybd3_80",X1="_divscore_1ybd3_89",_1="_cst_1ybd3_99",$1="_hour_1ybd3_108",eb="_score_1ybd3_109",tb="_chivasTvCanal_1ybd3_120",ob="_gameStatus_1ybd3_132",ab="_matchInfo_1ybd3_143",nb="_image62Icon1_1ybd3_156",ib="_name_1ybd3_18",sb="_imgAtlasIcon_1ybd3_178",rb="_name1_1ybd3_185",lb="_awayTeam_1ybd3_197",cb="_matchCard_1ybd3_208",db={image62Icon:H1,imgChivasIcon:L1,nameDesktop:K1,nameMobile:q1,homeTeam:Z1,sbado16De:Q1,gameDate:Y1,sab16092023:W1,div:J1,divscore:X1,cst:_1,hour:$1,score:eb,chivasTvCanal:tb,gameStatus:ob,matchInfo:ab,image62Icon1:nb,name:ib,imgAtlasIcon:sb,name1:rb,awayTeam:lb,matchCard:cb},mb=["src"],pb=["src"],ub={key:0},hb=["src"],gb=["src"],fb={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,t=o.computed(()=>{const s={...a.game};return s.gameSchedule=a.game.schedule.split(":"),s.gameSchedule.pop(),s.gameSchedule=s.gameSchedule.join(":"),s});function n(s,i){const r=new Date(s);if(i==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],p=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[r.getDay()]} ${r.getDate()} de ${p[r.getMonth()]}`}else return`${r.getDate()}-${r.getMonth()+1}-${r.getFullYear()}`}return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(s.$style.matchCard)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.homeTeam),id:"container-home-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon),alt:"",src:o.unref(Ot)(t.value.home_team.team_id,150)},null,10,mb),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgChivasIcon),alt:"",src:o.unref(Ot)(t.value.home_team.team_id)},null,10,pb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameDesktop),id:"team-name"},o.toDisplayString(t.value.home_team.colloquial_name),3),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameMobile),id:"team-name"},o.toDisplayString(t.value.home_team.acronym),3)],2),t.value.game_status==4?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.sbado16De)},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.sab16092023)},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.hour)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.div)},o.toDisplayString(t.value.gameSchedule),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.cst)},"CST",2)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.chivasTvCanal)},o.toDisplayString(t.value.tv_stations.join(", ")),3)],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass([s.$style.sbado16De,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass([s.$style.sab16092023,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.score)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.divscore)},o.toDisplayString(t.value.score.join(" - ")),3)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.gameStatus)},[o.createTextVNode(" Finalizado "),t.value.penalties_score_home_team!=0||t.value.penalties_score_visiting_team!=0?(o.openBlock(),o.createElementBlock("span",ub," - Penales "+o.toDisplayString(t.value.penalties_score_home_team)+" - "+o.toDisplayString(t.value.penalties_score_visiting_team),1)):o.createCommentVNode("",!0)],2)],2)),o.createElementVNode("div",{class:o.normalizeClass(s.$style.awayTeam),id:"container-away-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon1),alt:"",src:o.unref(Ot)(t.value.visiting_team.team_id,150)},null,10,hb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name),id:"team-name"},o.toDisplayString(t.value.visiting_team.colloquial_name),3),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgAtlasIcon),alt:"",src:o.unref(Ot)(t.value.visiting_team.team_id)},null,10,gb),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name1),id:"team-name"},o.toDisplayString(t.value.visiting_team.acronym),3)],2)],2))}},yb={$style:db},bb=Ge(fb,[["__cssModules",yb]]),wb={class:"calendar-by-game__carousel"},Ab={components:{GscSwitchComponent:Za,GSCGeneraltable:Kg,GSCCalendarByGame:Ge({__name:"GSC-CalendarByGame",props:{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},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}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const t=e;let n=null;const s=o.ref([]),i=o.ref({}),r=o.ref(0),l=o.ref(null),p=o.ref({}),c=o.ref(new Map),d=o.ref(!1),u=o.ref(null),f=o.ref(null),m=o.ref(null),h=o.computed(()=>t.isCup),g=o.computed(()=>t.isCupLegacy),b=o.computed(()=>({height:t.height,width:t.width})),A=o.computed(()=>t.games?se(t.games):c.value.get(p.value.key)||[]),C=o.ref(0),M=o.ref("1"),P=o.ref([]),G=o.ref([]),Z=o.computed(()=>G.value&&G.value.length?re(i.value):H(i.value));o.watch(()=>Z.value,j=>{C.value=P.value.findIndex(x=>x===j),M.value=j}),o.watch(()=>t.seasons,j=>{j&&j.length&&(d.value=!0,s.value=j.map(x=>x.id),ie(j,!0))},{immediate:!0,deep:!0});function H(j){const x=Object.entries(Object.entries(j).reduce((N,[I,U])=>(N[I]=[],U.forEach(X=>{X.games.forEach(ne=>{const ce=new Date(ne.date_time_utc).getTime()+66e5;N[I].push(ce)})}),N),{}));if(!x.length)return"1";const R=new Date().getTime(),v=x.reduce((N,[I,U])=>{let X=null;return U.forEach(ne=>{const ce=ne-R;ce>=0&&(X===null||ce<X)&&(X=ce)}),X&&(N.shortestTime===null||X<N.shortestTime)&&(N.round=I,N.shortestTime=X),N},{round:"",shortestTime:null});return v.shortestTime!==null?v.round:x[x.length-1][0]}function re(j){let x=1;if(G.value.length){const R=G.value[0];for(const[v,N]of Object.entries(j))for(const I of N)if(I.games.find(U=>U.game_id===R.game_id))return v}return x}o.watch(()=>t.teamId,()=>{q()},{immediate:!0});async function T(j,x,R=""){let v=R;try{const N={};t.token&&(N.Authorization=t.token),v||(v="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",j.forEach((X,ne)=>{v+=`${ne===0?"":"&"}seasons=${X}`}));const{data:{data:I,teams:U}}=await zr.get(v,{headers:N});return{seasonsAndGames:I,seasonsAndTeams:U}}catch(N){if(x>0)return T(j,x-1,v);throw new Error(N)}}function ae(j){for(const x of j)if(!s.value.includes(x.season_id))return!0;return!1}async function ie(j,x){try{i.value={};let R=0;const{seasonsAndGames:v,seasonsAndTeams:N}=await T(j.map(U=>U.id),3);if(x&&ae(v))return;v.forEach(U=>{const{type:X}=j.find(ne=>ne.id===U.season_id);U.type=X,U.games.forEach(ne=>{ne.season_id=U.season_id}),X===0&&(R=U.season_id)}),u.value={seasonsGames:v};const{teams:I}=N.find(U=>U.season_id===R);f.value=I,a("change-teams",I),q()}catch(R){throw new Error(R)}}function q(){if(!f.value)return;G.value=[];const j=u.value&&u.value.seasonsGames?u.value.seasonsGames.map(x=>{const R=x.games.reduce((v,N)=>{const I={...N};return I.dateTimeMillis=new Date(I.date_time_utc).valueOf(),I.home_team=f.value.find(U=>U.team_id===N.home_team),I.visiting_team=f.value.find(U=>U.team_id===N.visiting_team),t.teamId&&I.home_team.team_id!==t.teamId&&I.visiting_team.team_id!==t.teamId||(v[N.matchday_abbreviation]?v[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]?v[N.matchday_abbreviation][N.game_status===3?"canceled":N.date].push(I):v[N.matchday_abbreviation][N.game_status===3?"canceled":N.date]=[I]:v[N.matchday_abbreviation]={[N.game_status===3?"canceled":N.date]:[I]},t.userTeamId&&I.game_status===4&&(I.home_team.team_id===t.userTeamId||I.visiting_team.team_id===t.userTeamId)&&G.value.push(I)),v},{});for(let[v,N]of Object.entries(R))R[v]=Object.entries(N).map(([I,U])=>({date:I,games:U.sort((X,ne)=>X.dateTimeMillis-ne.dateTimeMillis)})),R[v].sort((I,U)=>I.date<U.date?-1:I.date>U.date?1:0);return{type:x.type,weight:x.type===0?0:x.type===2?1:2,schedule:R}}):[];j.sort((x,R)=>x.weight-R.weight),i.value=j.reduce((x,R)=>{for(const[v,N]of Object.entries(R.schedule))if(R.type===0)if(h.value){const I=v.replace("M",""),U=I;g.value?x[iy[I]||U]=N:x[ny[v]||U]=N}else x[Number(v.replace("M","")).toString()]=N;else R.type===2?v.charAt(1)=="I"?x[`PI${Number(v.replace("PI",""))}`]=N:x[`R${Number(v.replace("PO",""))}`]=N:R.type===1&&(x[ay[v]]=N);return x},{}),c.value=new Map,P.value=Array.from(Object.entries(i.value).reduce((x,[R,v],N)=>{const I=Number(R);let U="";Number.isNaN(I)?U=R:U=I<10?`0${I}`:R,x.set(R,{key:R,value:I,valueText:U,index:N});const X=v.reduce((ce,Ee)=>(Ee.games.forEach(xe=>{xe.game_id===t.defaultGameId&&(m.value=R),xe.roundAbbreviation=Number.isNaN(I)?I:`J ${I}`}),ce=ce.concat(Ee.games),ce),[]),ne=se(X);return c.value.set(R,ne),x},new Map).values())}function se(j){const x=[];if(t.gamesPerMatchDay>0){let R=[];j.forEach((v,N)=>{R.push(v),(N+1)%t.gamesPerMatchDay===0&&(x.push([...R]),R=[])}),R.length&&x.push([...R])}else x.push(j);return x}async function de(j){try{const{data:x}=await zr.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return x}catch(x){if(j>0)return de(j-1);throw new Error(x)}}function qe(){if(window.ResizeObserver)n=new ResizeObserver(()=>{r.value=l.value.clientWidth}),n.observe(l.value);else throw new Error("Resize observer not supported!")}function Ze(j){p.value=j,a("change-round",j)}function Te(j){t.areGamesCarouselType&&a("change-game-carousel",j.selectedItem)}function Fe(j){a("action",j),Ne(j)}function Ne(j){const x="PLAY_RESUME",R="PLAY_GOALS",v=[607,608,12,55,54,35,14,52,15,53,466,477],N=[12,55,"35_r","54_r"],{game_id:I,season_id:U}=j.game;let X={seasonId:U,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[I],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};j.action===x?(X.categoryIds=v,X.advancedFilter.playListTitle="Resumen",a("openmedia",X)):j.action===R&&(X.categoryIds=N,X.advancedFilter.playListTitle="Goles",a("openmedia",X))}async function ve(){try{if(!t.awaitForSeasons&&!t.games){const j=(await de(3)).find(v=>v._id===1),x=j.seasons[0],R=[{id:x.id,type:x.type}];j&&j.tournament&&a("tournament-selected",j.tournament),x.related_seasons&&x.related_seasons.length&&R.push(...x.related_seasons.map(v=>({id:v.id,type:v.type}))),await ie(R,!1)}}catch(j){throw new Error(j)}}return o.onMounted(()=>{qe()}),ve(),(j,x)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"calendarByGame",ref:l,class:"calendar-by-game",style:o.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(o.openBlock(),o.createBlock(G1,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":c.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Fe},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.areRoundsVisible&&P.value?(o.openBlock(),o.createBlock(Cy,{key:0,"match-days":P.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":m.value,"closest-match-day":e.sortCalendar?Z.value:"",onChangeMatchDay:Ze},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):o.createCommentVNode("",!0),o.createElementVNode("div",wb,[A.value?(o.openBlock(),o.createBlock(o.unref(Tr),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?A.value[0]:A.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:Te},{default:o.withCtx(({item:R})=>[e.areGamesCarouselType?(o.openBlock(),o.createBlock(bb,{key:0,game:R},null,8,["game"])):(o.openBlock(),o.createBlock(P1,{key:1,"games-per-page":R,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,onAction:Fe},null,8,["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"])):o.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-dd648f83"]])},props:{season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}}},Cb={class:"gsc-calendar-table"},kb={class:"gsc-switch-container"},Sb={class:"gsc-app-component"};function Bb(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCGeneraltable"),p=o.resolveComponent("GSCCalendarByGame");return o.openBlock(),o.createElementBlock("div",Cb,[o.createElementVNode("div",kb,[o.createVNode(r,{type:0,"font-family":"Poppins-Light",buttons:["Mi posición","Calendario"],height:"40px","selected-option":s.selectedOpt,"font-size":t.componentWidth>=768?"16px":"14px",width:"355px",onInput:i.changeCategory},null,8,["selected-option","font-size","onInput"])]),o.createElementVNode("div",Sb,[s.selectedOpt=="Mi posición"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(l,{isPaginationVisible:!0,"current-season-id":t.season.id,type:1,"await-for-season":!0,onOpenmedia:i.onOpenMedia,onOpenTableProfile:i.onOpenProfile},null,8,["current-season-id","onOpenmedia","onOpenTableProfile"]),o.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(p,{onAction:i.onAction,onOpenmedia:i.onOpenMedia,width:"100%",token:s.tokenFree,seasons:t.seasons,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons"]),o.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const Ob=Se(Ab,[["render",Bb],["__scopeId","data-v-13490dc5"]]),gn=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],fn=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Setiembre","Octubre","Noviembre","Diciembre"],Eb=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Set","Oct","Nov","Dic"],xb={class:"match"},Mb={class:"match__header"},zb={key:0,class:"match__final-tag"},Rb={key:1,class:"match__final-tag__no-border"},Fb={class:"match__header__match-date"},Vb={class:"match__tag"},Tb={class:"match__body"},Nb={class:"match__data"},vb={class:"match__acronym"},Pb=["src"],jb={class:"match__score"},Ib=["src"],Ub={class:"match__acronym"},Db={class:"match__status"},To=Se({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){const a=e,t=o.computed(()=>{const n=new Date(a.data.date_time_utc);return`${gn[n.getDay()]}, ${n.getDate()} de ${fn[n.getMonth()]}`});return(n,s)=>{var i,r,l;return o.openBlock(),o.createElementBlock("section",xb,[o.createElementVNode("div",Mb,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock("div",zb,"FINAL")):(o.openBlock(),o.createElementBlock("div",Rb)),o.createElementVNode("div",Fb,o.toDisplayString(t.value),1),o.createElementVNode("div",Vb,o.toDisplayString(`${Number.isNaN(Number(e.data.roundAbbreviationV2))?"":"J"}${e.data.roundAbbreviationV2}`),1)]),o.createElementVNode("div",Tb,[o.createElementVNode("div",Nb,[o.createElementVNode("div",vb,o.toDisplayString((i=e.data)==null?void 0:i.home_team_acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,Pb),o.createElementVNode("div",jb,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((r=e.data)==null?void 0:r.schedule.replace(":00","")),1)],64))]),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,Ib),o.createElementVNode("div",Ub,o.toDisplayString((l=e.data)==null?void 0:l.visiting_team_acronym),1)]),o.createElementVNode("div",Db,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("CST")],64))])]),o.createElementVNode("div",{class:"match__button",onClick:s[0]||(s[0]=p=>n.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-02d713e0"]]),Gb=e=>(o.pushScopeId("data-v-85bf3478"),e=e(),o.popScopeId(),e),Hb={class:"match"},Lb={class:"match__header"},Kb=Gb(()=>o.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),qb={class:"match__header__match-date"},Zb={class:"match__tag"},Qb={class:"match__body"},Yb={class:"match__data"},Wb={class:"match__acronym"},Jb=["src"],Xb={class:"match__score"},_b=["src"],$b={class:"match__acronym"},ew={class:"match__status"},Gr=Se({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){const a=e,t=o.computed(()=>{const n=new Date(a.data.date_time_utc);return`${gn[n.getDay()]}, ${n.getDate()} de ${fn[n.getMonth()]}`});return(n,s)=>(o.openBlock(),o.createElementBlock("section",Hb,[o.createElementVNode("div",Lb,[Kb,o.createElementVNode("div",qb,o.toDisplayString(t.value),1),o.createElementVNode("div",Zb,o.toDisplayString(`${Number.isNaN(Number(e.data.roundAbbreviationV2))?"":"J"}${e.data.roundAbbreviationV2}`),1)]),o.createElementVNode("div",Qb,[o.createElementVNode("div",Yb,[o.createElementVNode("div",Wb,o.toDisplayString(e.data.home_team.acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,Jb),o.createElementVNode("div",Xb,o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,_b),o.createElementVNode("div",$b,o.toDisplayString(e.data.visiting_team.acronym),1)]),o.createElementVNode("div",ew,"Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),o.createElementVNode("div",{class:"match__button",onClick:s[0]||(s[0]=i=>n.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-85bf3478"]]),tw=["src"],ow=["src"],aw={class:"coming-match__body"},nw={class:"coming-match__data"},iw=["src"],sw={style:{"margin-top":"16px"}},rw={class:"coming-match__time"},lw={class:"coming-match__cst"},cw={key:0},dw=["src"],yn=Se({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){const a=e,t=o.computed(()=>{const n=new Date(a.data.date_time_utc);return`${gn[n.getDay()]}, ${n.getDate()} de ${a.small?Eb[n.getMonth()]:fn[n.getMonth()]}`});return(n,s)=>{var i,r,l,p,c,d,u,f,m,h,g,b,A;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.home_team)+".png",alt:"team-img"},null,10,tw),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((l=e.data)==null?void 0:l.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((p=e.data)==null?void 0:p.visiting_team)+".png",alt:"team-img"},null,10,ow),o.createElementVNode("div",aw,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(`${Number.isNaN(Number(e.data.roundAbbreviationV2))?"":"J"}${e.data.roundAbbreviationV2}`)+" | "+o.toDisplayString(t.value),3),o.createElementVNode("div",nw,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((c=e.data)==null?void 0:c.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((d=e.data)==null?void 0:d.home_team)+".png",alt:"team-img"},null,10,iw),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((u=e.data)==null?void 0:u.home_team_name),3)],2),o.createElementVNode("div",sw,[o.createElementVNode("div",rw,[e.data.game_status!==4?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.score[0])+" - "+o.toDisplayString((m=e.data)==null?void 0:m.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((h=e.data)==null?void 0:h.schedule.replace(":00","")),1)],64))]),o.createElementVNode("div",lw,[e.data.game_status===4?(o.openBlock(),o.createElementBlock("span",cw,"CST")):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((g=e.data)==null?void 0:g.visiting_team_name),3),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((b=e.data)==null?void 0:b.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((A=e.data)==null?void 0:A.visiting_team)+".png",alt:"team-img"},null,10,dw)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:s[0]||(s[0]=C=>n.$emit("clickMatch"))},[e.data.game_status===4?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Analizar previa →")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("Analizar partido →")],64))],2)],2)}}},[["__scopeId","data-v-39eff678"]]),mw=e=>(o.pushScopeId("data-v-32dd0855"),e=e(),o.popScopeId(),e),pw=["src"],uw=["src"],hw={class:"coming-match__body"},gw={class:"coming-match__data"},fw=["src"],yw={style:{"margin-top":"16px"}},bw={class:"coming-match__time"},ww=mw(()=>o.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),Aw=["src"],Hr=Se({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(a,t)=>{var n,s,i,r,l,p,c,d,u,f,m,h,g;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((s=e.data)==null?void 0:s.home_team)+".png",alt:"team-img"},null,10,pw),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team)+".png",alt:"team-img"},null,10,uw),o.createElementVNode("div",hw,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(`${Number.isNaN(Number(e.data.roundAbbreviationV2))?"":"J"}${e.data.roundAbbreviationV2}`),3),o.createElementVNode("div",gw,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((p=e.data)==null?void 0:p.home_team)+".png",alt:"team-img"},null,10,fw),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),o.createElementVNode("div",yw,[o.createElementVNode("div",bw,[e.data.game_status==1?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((d=e.data)==null?void 0:d.score[0])+" - "+o.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.schedule.replace(":00","")),1)],64))]),ww]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((m=e.data)==null?void 0:m.visiting_team_name),3),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((g=e.data)==null?void 0:g.visiting_team)+".png",alt:"team-img"},null,10,Aw)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:t[0]||(t[0]=b=>a.$emit("clickMatch"))}," Analizar partido → ",2)],2)}}},[["__scopeId","data-v-32dd0855"]]),Cw=Se({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:a}){const t=e,n=o.ref(null);o.watch(()=>t.modelValue,()=>{s()},{immediate:!0});function s(){n.value&&(n.value.checked=t.modelValue)}function i(r){a("update:modelValue",r.target.checked)}return o.onMounted(()=>{s()}),(r,l)=>(o.openBlock(),o.createElementBlock("input",{ref_key:"switchCustom",ref:n,id:"toggle",className:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:i},null,544))}},[["__scopeId","data-v-9e2bfbd7"]]);/**
29
29
  * Vue 3 Carousel 0.3.1
30
30
  * (c) 2023
31
31
  * @license MIT