@golstats/gsc-game-data 1.0.111 → 1.0.112

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.
@@ -1,5 +1,5 @@
1
1
  import { useCssVars as E, computed as r, openBlock as s, createElementBlock as i, normalizeStyle as V, createElementVNode as d, createVNode as y, unref as g, Fragment as u, renderList as _, normalizeClass as b, toDisplayString as v, pushScopeId as $, popScopeId as H } from "vue";
2
- import { r as T, F as m } from "./index-e332f9e2.js";
2
+ import { r as T, F as m } from "./index-5187a836.js";
3
3
  const n = (o) => ($("data-v-80d9c265"), o = o(), H(), o), F = { class: "details__header" }, R = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "Jugando como", -1)), W = { class: "details__header__checkbox" }, I = { class: "details__body" }, z = { class: "details__body__playing-as" }, L = ["onClick"], N = { class: "details__header" }, U = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__header__title" }, "En: (Elige el lapso de tiempo)", -1)), D = { class: "details__header__checkbox" }, J = { class: "details__body" }, j = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__body__title" }, "1er tiempo", -1)), q = { class: "details__body__game-section" }, w = ["onClick"], G = { class: "details__body" }, K = /* @__PURE__ */ n(() => /* @__PURE__ */ d("div", { class: "details__body__title" }, "2do tiempo", -1)), M = { class: "details__body__game-section" }, O = ["onClick"], Q = {
4
4
  __name: "FilterConditions",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { ref as l, openBlock as a, createElementBlock as n, createVNode as c, unref as d } from "vue";
2
- import { r as u, R as f } from "./index-e332f9e2.js";
2
+ import { r as u, R as f } from "./index-5187a836.js";
3
3
  const i = { class: "filter-field" }, m = {
4
4
  __name: "FilterField",
5
5
  setup(s) {
@@ -1,5 +1,5 @@
1
1
  import { openBlock as r, createElementBlock as a, Fragment as t, renderList as u, createVNode as d, createBlock as i, unref as n } from "vue";
2
- import { r as l, F as y } from "./index-e332f9e2.js";
2
+ import { r as l, F as y } from "./index-5187a836.js";
3
3
  const b = { class: "subcategory-group" }, g = {
4
4
  __name: "SubcategoryGroup",
5
5
  props: {
@@ -1,4 +1,4 @@
1
- import { G as o, a as t } from "./index-e332f9e2.js";
1
+ import { G as o, a as t } from "./index-5187a836.js";
2
2
  import "vue";
3
3
  export {
4
4
  o as GSCGameData,
@@ -11,7 +11,7 @@
11
11
  * Vue 3 Carousel 0.3.1
12
12
  * (c) 2023
13
13
  * @license MIT
14
- */const $o={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"}},Dk={itemsToShow:{default:$o.itemsToShow,type:Number},itemsToScroll:{default:$o.itemsToScroll,type:Number},wrapAround:{default:$o.wrapAround,type:Boolean},throttle:{default:$o.throttle,type:Number},snapAlign:{default:$o.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:$o.transition,type:Number},breakpoints:{default:$o.breakpoints,type:Object},autoplay:{default:$o.autoplay,type:Number},pauseAutoplayOnHover:{default:$o.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:$o.mouseDrag,type:Boolean},touchDrag:{default:$o.touchDrag,type:Boolean},dir:{default:$o.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:$o.i18n,type:Object},settings:{default(){return{}},type:Object}};function aH({config:e,slidesCount:a}){const{snapAlign:r,wrapAround:d,itemsToShow:f=1}=e;if(d)return Math.max(a-1,0);let n;switch(r){case"start":n=a-f;break;case"end":n=a-1;break;case"center":case"center-odd":n=a-Math.ceil((f-.5)/2);break;case"center-even":n=a-Math.ceil(f/2);break;default:n=0;break}return Math.max(n,0)}function rH({config:e,slidesCount:a}){const{wrapAround:r,snapAlign:d,itemsToShow:f=1}=e;let n=0;if(r||f>a)return n;switch(d){case"start":n=0;break;case"end":n=f-1;break;case"center":case"center-odd":n=Math.floor((f-1)/2);break;case"center-even":n=Math.floor((f-2)/2);break;default:n=0;break}return n}function vb({val:e,max:a,min:r}){return a<r?e:Math.min(Math.max(e,r),a)}function nH({config:e,currentSlide:a,slidesCount:r}){const{snapAlign:d,wrapAround:f,itemsToShow:n=1}=e;let s=a;switch(d){case"center":case"center-odd":s-=(n-1)/2;break;case"center-even":s-=(n-2)/2;break;case"end":s-=n-1;break}return f?s:vb({val:s,max:r-n,min:0})}function Lk(e){return e?e.reduce((a,r)=>{var d;return r.type===t.Fragment?[...a,...Lk(r.children)]:((d=r.type)===null||d===void 0?void 0:d.name)==="CarouselSlide"?[...a,r]:a},[]):[]}function bb({val:e,max:a,min:r=0}){return e>a?bb({val:e-(a+1),max:a,min:r}):e<r?bb({val:e+(a+1),max:a,min:r}):e}function iH(e,a){let r;return a?function(...d){const f=this;r||(e.apply(f,d),r=!0,setTimeout(()=>r=!1,a))}:e}function oH(e,a){let r;return function(...d){r&&clearTimeout(r),r=setTimeout(()=>{e(...d),r=null},a)}}function sH(e="",a={}){return Object.entries(a).reduce((r,[d,f])=>r.replace(`{${d}}`,String(f)),e)}var lH=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},$o))),a=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},sH(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:r.value}))}}),cH=t.defineComponent({name:"Carousel",props:Dk,setup(e,{slots:a,emit:r,expose:d}){var f;const n=t.ref(null),s=t.ref([]),i=t.ref(0),_=t.ref(0),m=t.reactive(Object.assign({},$o));let o=Object.assign({},$o),g;const x=t.ref((f=e.modelValue)!==null&&f!==void 0?f:0),c=t.ref(0),l=t.ref(0),u=t.ref(0),p=t.ref(0);let h,y;t.provide("config",m),t.provide("slidesCount",_),t.provide("currentSlide",x),t.provide("maxSlide",u),t.provide("minSlide",p),t.provide("slideWidth",i);function b(){g=Object.assign({},e.breakpoints),o=Object.assign(Object.assign(Object.assign({},o),e),{i18n:Object.assign(Object.assign({},o.i18n),e.i18n),breakpoints:void 0}),w(o)}function v(){if(!g||!Object.keys(g).length)return;const Q=Object.keys(g).map(se=>Number(se)).sort((se,de)=>+de-+se);let ee=Object.assign({},o);Q.some(se=>{const de=window.matchMedia(`(min-width: ${se}px)`).matches;return de&&(ee=Object.assign(Object.assign({},ee),g[se])),de}),w(ee)}function w(Q){Object.entries(Q).forEach(([ee,se])=>m[ee]=se)}const C=oH(()=>{v(),k()},16);function k(){if(!n.value)return;const Q=n.value.getBoundingClientRect();i.value=Q.width/m.itemsToShow}function N(){_.value<=0||(l.value=Math.ceil((_.value-1)/2),u.value=aH({config:m,slidesCount:_.value}),p.value=rH({config:m,slidesCount:_.value}),m.wrapAround||(x.value=vb({val:x.value,max:u.value,min:p.value})))}t.onMounted(()=>{t.nextTick(()=>k()),setTimeout(()=>k(),1e3),v(),L(),window.addEventListener("resize",C,{passive:!0}),r("init")}),t.onUnmounted(()=>{y&&clearTimeout(y),h&&clearInterval(h),window.removeEventListener("resize",C,{passive:!0})});let E=!1;const T={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),B=t.ref(!1),O=t.ref(!1),S=()=>{B.value=!0},R=()=>{B.value=!1};function M(Q){["INPUT","TEXTAREA","SELECT"].includes(Q.target.tagName)||(E=Q.type==="touchstart",E||Q.preventDefault(),!(!E&&Q.button!==0||j.value)&&(T.x=E?Q.touches[0].clientX:Q.clientX,T.y=E?Q.touches[0].clientY:Q.clientY,document.addEventListener(E?"touchmove":"mousemove",P,!0),document.addEventListener(E?"touchend":"mouseup",z,!0)))}const P=iH(Q=>{O.value=!0,A.x=E?Q.touches[0].clientX:Q.clientX,A.y=E?Q.touches[0].clientY:Q.clientY;const ee=A.x-T.x,se=A.y-T.y;I.y=se,I.x=ee},m.throttle);function z(){const Q=m.dir==="rtl"?-1:1,ee=Math.sign(I.x)*.4,se=Math.round(I.x/i.value+ee)*Q;if(se&&!E){const de=ue=>{ue.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}W(x.value-se),I.x=0,I.y=0,O.value=!1,document.removeEventListener(E?"touchmove":"mousemove",P,!0),document.removeEventListener(E?"touchend":"mouseup",z,!0)}function L(){!m.autoplay||m.autoplay<=0||(h=setInterval(()=>{m.pauseAutoplayOnHover&&B.value||$()},m.autoplay))}function D(){h&&(clearInterval(h),h=null),L()}const j=t.ref(!1);function W(Q){const ee=m.wrapAround?Q:vb({val:Q,max:u.value,min:p.value});x.value===ee||j.value||(r("slide-start",{slidingToIndex:Q,currentSlideIndex:x.value,prevSlideIndex:c.value,slidesCount:_.value}),j.value=!0,c.value=x.value,x.value=ee,y=setTimeout(()=>{if(m.wrapAround){const se=bb({val:ee,max:u.value,min:0});se!==x.value&&(x.value=se,r("loop",{currentSlideIndex:x.value,slidingToIndex:Q}))}r("update:modelValue",x.value),r("slide-end",{currentSlideIndex:x.value,prevSlideIndex:c.value,slidesCount:_.value}),j.value=!1,D()},m.transition))}function $(){W(x.value+m.itemsToScroll)}function G(){W(x.value-m.itemsToScroll)}const X={slideTo:W,next:$,prev:G};t.provide("nav",X),t.provide("isSliding",j);const H=t.computed(()=>nH({config:m,currentSlide:x.value,slidesCount:_.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const Q=m.dir==="rtl"?-1:1,ee=H.value*i.value*Q;return{transform:`translateX(${I.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${_.value*i.value}px`:"",width:"100%"}});function Z(){b(),v(),N(),k(),D()}Object.keys(Dk).forEach(Q=>{["modelValue"].includes(Q)||t.watch(()=>e[Q],Z)}),t.watch(()=>e.modelValue,Q=>{Q!==x.value&&W(Number(Q))}),t.watch(_,N),r("before-init"),b();const le={config:m,slidesCount:_,slideWidth:i,next:$,prev:G,slideTo:W,currentSlide:x,maxSlide:u,minSlide:p,middleSlide:l};d({updateBreakpointsConfigs:v,updateSlidesData:N,updateSlideWidth:k,initDefaultConfigs:b,restartCarousel:Z,slideTo:W,next:$,prev:G,nav:X,data:le});const ie=a.default||a.slides,ne=a.addons,re=t.reactive(le);return()=>{const Q=Lk(ie==null?void 0:ie(re)),ee=(ne==null?void 0:ne(re))||[];Q.forEach((fe,ge)=>fe.props.index=ge);let se=Q;if(m.wrapAround){const fe=Q.map((ve,we)=>t.cloneVNode(ve,{index:-Q.length+we,isClone:!0,key:`clone-before-${we}`})),ge=Q.map((ve,we)=>t.cloneVNode(ve,{index:Q.length+we,isClone:!0,key:`clone-after-${we}`}));se=[...fe,...Q,...ge]}s.value=Q,_.value=Math.max(Q.length,1);const de=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?M:null,onTouchstartPassiveCapture:m.touchDrag?M:null},se),ue=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:n,class:{carousel:!0,"is-sliding":j.value,"is-dragging":O.value,"is-hover":B.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:S,onMouseleave:R},[ue,ee,t.h(lH)])}}}),xb;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(xb||(xb={}));const dH={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 uH(e){return e in xb}const wb=e=>{const a=t.inject("config",t.reactive(Object.assign({},$o))),r=String(e.name),d=`icon${r.charAt(0).toUpperCase()+r.slice(1)}`;if(!r||typeof r!="string"||!uH(r))return;const f=dH[r],n=t.h("path",{d:f}),s=a.i18n[d]||e.title||r,i=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[i,n])};wb.props={name:String,title:String};const pH=(e,{slots:a,attrs:r})=>{const{next:d,prev:f}=a||{},n=t.inject("config",t.reactive(Object.assign({},$o))),s=t.inject("maxSlide",t.ref(1)),i=t.inject("minSlide",t.ref(1)),_=t.inject("currentSlide",t.ref(1)),m=t.inject("nav",{}),{dir:o,wrapAround:g,i18n:x}=n,c=o==="rtl",l=t.h("button",{type:"button",class:["carousel__prev",!g&&_.value<=i.value&&"carousel__prev--disabled",r==null?void 0:r.class],"aria-label":x.ariaPreviousSlide,onClick:m.prev},(f==null?void 0:f())||t.h(wb,{name:c?"arrowRight":"arrowLeft"})),u=t.h("button",{type:"button",class:["carousel__next",!g&&_.value>=s.value&&"carousel__next--disabled",r==null?void 0:r.class],"aria-label":x.ariaNextSlide,onClick:m.next},(d==null?void 0:d())||t.h(wb,{name:c?"arrowLeft":"arrowRight"}));return[l,u]};var hH=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const r=t.inject("config",t.reactive(Object.assign({},$o))),d=t.inject("currentSlide",t.ref(0)),f=t.inject("slidesToScroll",t.ref(0)),n=t.inject("isSliding",t.ref(!1)),s=()=>e.index===d.value,i=()=>e.index===d.value-1,_=()=>e.index===d.value+1,m=()=>{const o=Math.floor(f.value),g=Math.ceil(f.value+r.itemsToShow-1);return e.index>=o&&e.index<=g};return()=>{var o;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m(),"carousel__slide--active":s(),"carousel__slide--prev":i(),"carousel__slide--next":_(),"carousel__slide--sliding":n.value},"aria-hidden":!m()},(o=a.default)===null||o===void 0?void 0:o.call(a))}}});const Fc=(e,a)=>{const r=e.__vccOpts||e;for(const[d,f]of a)r[d]=f;return r},fH={__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 r=e,d=t.computed(()=>{const i={"background-color":r.backgroundColor,height:r.height};return r.matchDay.key===r.matchDaySelected.key&&(i["border-bottom"]=`solid 1px ${r.bottomLineColor}`,i["background-color"]=r.selectedMatchDayBackgroundColor),r.isLandingMode||(i["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),i}),f=t.computed(()=>({color:r.numberColor,"font-family":r.numberFontFamily,"font-size":r.numberFontSize})),n=t.computed(()=>({color:r.textColor,"font-family":r.textFontFamily,"font-size":r.textFontSize}));function s(i){a("click-match-day",i)}return(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...d.value}),onClick:_[0]||(_[0]=m=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(f.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",n.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},mH=Fc(fH,[["__scopeId","data-v-687d929a"]]),gH={__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 r=e;t.useCssVars(m=>({"395ea484":n.value,"395d8d44":s.value}));const d=t.ref(null),f=t.computed(()=>({itemsToShow:r.itemsToShow,itemsToScroll:r.itemsToScroll,snapAlign:"start"})),n=t.computed(()=>d.value.data.currentSlide.value==0?"none":"inline"),s=t.computed(()=>d.value.data.currentSlide.value==d.value.data.maxSlide.value?"none":"inline"),i=t.ref({});t.watch(()=>r.closestMatchDay,m=>{if(m){const o=r.matchDays.find(g=>g.key===m);_(o||r.matchDays[0],!0)}}),t.watch(()=>r.matchDays,m=>{if(!r.closestMatchDay&&m&&m.length){const o=m.find(g=>g.key===r.defaultMatchDayKey);i.value=o||m[0],a("change-match-day",i.value)}},{immediate:!0});function _(m,o=!1){o&&d.value.slideTo(m.index),i.value=m,a("change-match-day",i.value)}return(m,o)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(cH),t.mergeProps(f.value,{ref_key:"matchDayPickerCarousel",ref:d}),{addons:t.withCtx(()=>[t.createVNode(t.unref(pH))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,g=>(t.openBlock(),t.createBlock(t.unref(hH),{key:g.key},{default:t.withCtx(()=>[t.createVNode(mH,t.mergeProps(r,{"match-day":g,"match-day-selected":i.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:_}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},yH=Fc(gH,[["__scopeId","data-v-1ad19205"]]);function ih(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function $k(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 _H(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 vH={class:"game-info__teams"},bH={class:"game-info__teams__team__logo"},xH=["src"],wH={class:"game-info__teams__detail"},kH={key:0,class:"game-info__teams__detail__pre-game"},CH={class:"game-info__teams__team__logo away"},EH=["src"],SH={key:0},TH={key:0},AH={key:1},NH={__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,r=t.computed(()=>{let m=a.game.schedule.split(":");return m.pop(),m=m.join(":"),m}),d=t.computed(()=>{let m="120px";return(a.isLandingMode||a.isAcronymVisible)&&(m="70px"),{"min-width":m}}),f=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),n=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),s=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),i=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),_=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(m,o)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",vH,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(f.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",bH,[t.createElementVNode("img",{src:t.unref(ih)(e.game.home_team.team_id),alt:""},null,8,xH)])],4),t.createElementVNode("div",wH,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",kH,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(_.value)},t.toDisplayString(r.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(i.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(s.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",CH,[t.createElementVNode("img",{src:t.unref(ih)(e.game.visiting_team.team_id),alt:""},null,8,EH)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(f.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([n.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",SH,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",TH,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",AH,t.toDisplayString(t.unref(_H)(e.game)),1))],4)],4))}},jk=Fc(NH,[["__scopeId","data-v-a6b3fc44"]]),Uk=e=>(t.pushScopeId("data-v-e2fc9ed0"),e=e(),t.popScopeId(),e),IH={class:"game-status"},BH={key:0,class:"game-status__day__live"},MH=Uk(()=>t.createElementVNode("span",null,"LIVE",-1)),OH=Uk(()=>t.createElementVNode("span",{class:"dot"},null,-1)),PH=[MH,OH],FH={key:0,class:"game-status__round"},RH={__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,r=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],d=t.computed(()=>{let s="";if(a.dateTimeMillis){const i=new Date(a.dateTimeMillis);s=`${i.getDate()} ${r[i.getMonth()]}`}return s}),f=t.computed(()=>({"font-size":a.fontSize})),n=t.computed(()=>{let s=[];return a.isLive?s.push("live"):a.status!==1&&s.push("pre-match"),s});return(s,i)=>(t.openBlock(),t.createElementBlock("div",IH,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",n.value]),style:t.normalizeStyle(f.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",BH,PH)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(d.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",FH,t.toDisplayString(e.roundAbbreviation),1))]))}},Hk=Fc(RH,[["__scopeId","data-v-e2fc9ed0"]]),Rc={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},VH=e=>(t.pushScopeId("data-v-5711c5a6"),e=e(),t.popScopeId(),e),zH={class:"actions"},DH={class:"actions__row"},LH=VH(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),$H=[LH],jH={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},UH=["fill"],HH={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GH=["fill"],WH={__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 r=e,d=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor}));function f(n){a("action",n)}return(n,s)=>(t.openBlock(),t.createElementBlock("div",zH,[t.createElementVNode("div",DH,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:s[0]||(s[0]=i=>f(t.unref(Rc).STATISTICS))},$H,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:s[1]||(s[1]=i=>f(t.unref(Rc).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",jH,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:r.iconColor},null,8,UH)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=i=>f(t.unref(Rc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",HH,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,GH)]))])):t.createCommentVNode("",!0)])]))}},qH=Fc(WH,[["__scopeId","data-v-5711c5a6"]]),kb=e=>(t.pushScopeId("data-v-d64f8667"),e=e(),t.popScopeId(),e),YH={class:"actions"},ZH={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XH=["fill"],KH={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},JH=["fill"],QH=kb(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),eG=[QH],tG={key:0,class:"actions__videos"},aG={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rG=["fill"],nG={key:1,class:"actions__videos__thumbnails"},iG=kb(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),oG=kb(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),sG={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lG=["stroke"],cG={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},hasGoals:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e,d=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor})),f=t.computed(()=>{const _=[];return r.componentWidth<540&&_.push("mobile"),_}),n=t.computed(()=>r.componentWidth>730),s=t.computed(()=>({color:r.thumbnailColor,fontFamily:r.thumbnailFontFamily,fontSize:r.thumbnailFontSize}));function i(_){a("action",_)}return(_,m)=>(t.openBlock(),t.createElementBlock("div",YH,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",f.value])},[e.gameStatus===4444&&!e.isLive&&!n.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:m[0]||(m[0]=o=>i(t.unref(Rc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",ZH,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,XH)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!n.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:m[1]||(m[1]=o=>i(t.unref(Rc).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",KH,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:r.iconColor},null,8,JH)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:m[2]||(m[2]=o=>i(t.unref(Rc).STATISTICS))},eG,4)],2),n.value?(t.openBlock(),t.createElementBlock("div",tG,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:m[3]||(m[3]=o=>i(t.unref(Rc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",aG,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,rG)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",nG,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:m[4]||(m[4]=o=>i(t.unref(Rc).PLAY_GOALS))},[iG,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:m[5]||(m[5]=o=>i(t.unref(Rc).PLAY_RESUME))},[oG,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:m[6]||(m[6]=o=>i(t.unref(Rc).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",sG,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,lG)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},dG=Fc(cG,[["__scopeId","data-v-d64f8667"]]),$1=e=>(t.pushScopeId("data-v-51906051"),e=e(),t.popScopeId(),e),uG={class:"row-landing__game-status"},pG={class:"row-landing__game-actions"},hG={class:"row-full__game-status"},fG={class:"row-full__game-info"},mG={key:0},gG={class:"row-full__game-actions"},yG={class:"game-events-container"},_G=$1(()=>t.createElementVNode("div",{class:"separator"},null,-1)),vG=$1(()=>t.createElementVNode("div",null,null,-1)),bG={class:"game-events__data"},xG={class:"game-events__data__team"},wG=["src"],kG={class:"game-events__data__team__event__text"},CG={class:"game-events__data__team away"},EG={class:"game-events__data__team__event__text"},SG=["src"],TG=$1(()=>t.createElementVNode("div",null,null,-1)),AG=$1(()=>t.createElementVNode("div",null,null,-1)),NG={__name:"CalendarRow",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const r=e,d={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"},f=t.ref(!1),n=t.ref(!1),s=t.computed(()=>{const p={homeTeam:[],awayTeam:[]};return r.game&&r.game.game_status!==4&&!r.game.is_live&&r.game.minutes&&(p.homeTeam.push(...l(r.game.minutes.home_goals_minutes,d.GOAL)),p.homeTeam.push(...l(r.game.minutes.home_red_cards_minutes,d.RED_CARD)),p.homeTeam.push(...l(r.game.minutes.home_yellow_cards_minutes,d.YELLOW_CARD)),p.awayTeam.push(...l(r.game.minutes.visiting_goals_minutes,d.GOAL)),p.awayTeam.push(...l(r.game.minutes.away_red_cards_minutes,d.RED_CARD)),p.awayTeam.push(...l(r.game.minutes.away_yellow_cards_minutes,d.YELLOW_CARD))),p}),i=t.computed(()=>{const p=s.value.homeTeam.length,h=s.value.awayTeam.length;return p+h>0}),_=t.computed(()=>{const p=r.game.score[0],h=r.game.score[1];return p>0||h>0}),m=t.computed(()=>({"background-color":r.backgroundColor})),o=t.computed(()=>({height:r.height})),g=t.computed(()=>{const p={game:[],events:[]};return r.componentWidth<500?(p.events.push("break-point-3"),p.game.push("break-point-2")):r.componentWidth<730?(p.game.push("break-point-2"),p.events.push("break-point-2")):r.componentWidth<910&&(p.game.push("break-point-1"),p.events.push("break-point-1")),p}),x=t.computed(()=>({isLandingMode:r.isLandingMode,game:r.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),c=t.computed(()=>({"font-size":r.televisionFontSize,"font-family":r.televisionFontFamily,color:r.televisionColor}));t.watch(()=>r.componentWidth,p=>{n.value=p<910});function l(p,h){return p.map(y=>({iconUrl:h,text:y}))}function u(p){p===Rc.SHOW_GAME_EVENTS?f.value=!f.value:a("action",{action:p,game:r.game})}return(p,h)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(m.value)},[t.createVNode(jk,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",uG,[t.createVNode(Hk,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref($k)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",pG,[t.createVNode(qH,{"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"game-status":e.game.game_status,"show-play-button":!0,onAction:u},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",g.value.game]),style:t.normalizeStyle(o.value)},[t.createElementVNode("div",hG,[t.createVNode(Hk,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref($k)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",fG,[t.createVNode(jk,t.mergeProps(x.value,{"is-television-visible":n.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(c.value)},[!n.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",mG,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",gG,[t.createVNode(dG,{"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"has-actions":i.value,"has-goals":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?_.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":f.value,"component-width":e.componentWidth,onAction:u},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",yG,[_G,t.createElementVNode("div",{class:t.normalizeClass(["game-events",g.value.events])},[vG,t.createElementVNode("div",bG,[t.createElementVNode("div",xG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`h${b}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:y.iconUrl},null,8,wG),t.createElementVNode("div",kG,t.toDisplayString(y.text),1)]))),128))]),t.createElementVNode("div",CG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`a${b}`,class:"game-events__data__team__event"},[t.createElementVNode("div",EG,t.toDisplayString(y.text),1),t.createElementVNode("img",{src:y.iconUrl},null,8,SG)]))),128))])]),TG,AG],2)],512),[[t.vShow,f.value]])]),_:1})],4))}},Gk=Fc(NG,[["__scopeId","data-v-51906051"]]),IG={class:"calendar-table"},BG={__name:"CalendarTable",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e;function d(n){return n%2===0?r.evenRowColor:r.oddRowColor}function f(n){a("action",n)}return(n,s)=>(t.openBlock(),t.createElementBlock("div",IG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(i,_)=>(t.openBlock(),t.createBlock(Gk,{key:i.game_id,game:i,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":d(_),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:f},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},MG=Fc(BG,[["__scopeId","data-v-c7bf1232"]]),OG={class:"calendar-by-team"},PG={class:"playing-as-picker"},FG={class:"calendar-by-team__page"},RG={__name:"CalendarTableByTeam",props:{showVideos:{type:Number,default:0},teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e,d=t.ref(0),f=t.computed(()=>{let _=[];if(r.gamesPages.size>0){const m=Array.from(r.gamesPages.entries()).reduce((o,[g,x])=>{const c=Number(g),l=Number.isNaN(c)?g:`Jornada ${c<10?"0":""}${c}`,u=x.reduce((p,h)=>(p.push(...h),p),[]).filter(p=>d.value===0||d.value===1&&p.visiting_team.team_id===r.teamId?!0:d.value===2&&p.home_team.team_id===r.teamId);return u.length>0&&o.push({roundName:l,games:u}),o},[]);_.push(m)}return _});function n(_){a("action",_)}function s(_){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),d.value=_,document.querySelector("#opc"+_).classList.add("selected")}function i(_){let m=_;switch(_){case"PI1":m="Play In 1";break;case"PI2":m="Play In 2";break;case"R1":m="Repechaje";break;case"CFI":m="Cuartos de final - Ida";break;case"CFV":m="Cuartos de final - Vuelta";break;case"SFI":m="Semifinal - Ida";break;case"SFV":m="Semifinal - Vuelta";break;case"FI":m="Final - Ida";break;case"FV":m="Final - Vuelta";break}return m}return(_,m)=>(t.openBlock(),t.createElementBlock("div",OG,[t.createElementVNode("div",PG,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:m[0]||(m[0]=o=>s(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:m[1]||(m[1]=o=>s(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:m[2]||(m[2]=o=>s(2))},"Local")]),t.createVNode(t.unref(zk),{"is-pagination-visible":e.isPaginationVisible,items:f.value},{default:t.withCtx(({item:o})=>[t.createElementVNode("div",FG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o,(g,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(i(g.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.games,c=>(t.openBlock(),t.createBlock(Gk,{key:c.game_id,game:c,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:n},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},VG=Fc(RG,[["__scopeId","data-v-6e0e406c"]]),zG="_image62Icon_1ybd3_2",DG="_imgChivasIcon_1ybd3_11",LG="_nameDesktop_1ybd3_18",$G="_nameMobile_1ybd3_31",jG="_homeTeam_1ybd3_43",UG="_sbado16De_1ybd3_54",HG="_gameDate_1ybd3_63",GG="_sab16092023_1ybd3_67",WG="_div_1ybd3_80",qG="_divscore_1ybd3_89",YG="_cst_1ybd3_99",ZG="_hour_1ybd3_108",XG="_score_1ybd3_109",KG="_chivasTvCanal_1ybd3_120",JG="_gameStatus_1ybd3_132",QG="_matchInfo_1ybd3_143",eW="_image62Icon1_1ybd3_156",tW="_name_1ybd3_18",aW="_imgAtlasIcon_1ybd3_178",rW="_name1_1ybd3_185",nW="_awayTeam_1ybd3_197",iW="_matchCard_1ybd3_208",oW={image62Icon:zG,imgChivasIcon:DG,nameDesktop:LG,nameMobile:$G,homeTeam:jG,sbado16De:UG,gameDate:HG,sab16092023:GG,div:WG,divscore:qG,cst:YG,hour:ZG,score:XG,chivasTvCanal:KG,gameStatus:JG,matchInfo:QG,image62Icon1:eW,name:tW,imgAtlasIcon:aW,name1:rW,awayTeam:nW,matchCard:iW},sW=["src"],lW=["src"],cW={key:0},dW=["src"],uW=["src"],pW={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,r=t.computed(()=>{const f={...a.game};return f.gameSchedule=a.game.schedule.split(":"),f.gameSchedule.pop(),f.gameSchedule=f.gameSchedule.join(":"),f});function d(f,n){const s=new Date(f);if(n==1){const i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],_=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${i[s.getDay()]} ${s.getDate()} de ${_[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()+1}-${s.getFullYear()}`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(f.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(f.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(f.$style.image62Icon),alt:"",src:t.unref(ih)(r.value.home_team.team_id,150)},null,10,sW),t.createElementVNode("img",{class:t.normalizeClass(f.$style.imgChivasIcon),alt:"",src:t.unref(ih)(r.value.home_team.team_id)},null,10,lW),t.createElementVNode("h3",{class:t.normalizeClass(f.$style.nameDesktop),id:"team-name"},t.toDisplayString(r.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(f.$style.nameMobile),id:"team-name"},t.toDisplayString(r.value.home_team.acronym),3)],2),r.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(f.$style.sbado16De)},t.toDisplayString(d(r.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(f.$style.sab16092023)},t.toDisplayString(d(r.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(f.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(f.$style.div)},t.toDisplayString(r.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(f.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(f.$style.chivasTvCanal)},t.toDisplayString(r.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(f.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([f.$style.sbado16De,f.$style.gameDate])},t.toDisplayString(d(r.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([f.$style.sab16092023,f.$style.gameDate])},t.toDisplayString(d(r.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(f.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(f.$style.divscore)},t.toDisplayString(r.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(f.$style.gameStatus)},[t.createTextVNode(" Finalizado "),r.value.penalties_score_home_team!=0||r.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",cW," - Penales "+t.toDisplayString(r.value.penalties_score_home_team)+" - "+t.toDisplayString(r.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(f.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(f.$style.image62Icon1),alt:"",src:t.unref(ih)(r.value.visiting_team.team_id,150)},null,10,dW),t.createElementVNode("h3",{class:t.normalizeClass(f.$style.name),id:"team-name"},t.toDisplayString(r.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(f.$style.imgAtlasIcon),alt:"",src:t.unref(ih)(r.value.visiting_team.team_id)},null,10,uW),t.createElementVNode("h3",{class:t.normalizeClass(f.$style.name1),id:"team-name"},t.toDisplayString(r.value.visiting_team.acronym),3)],2)],2))}},hW={$style:oW},fW=Fc(pW,[["__cssModules",hW]]),mW={class:"calendar-by-game__carousel"},gW={__name:"GSC-CalendarByGame",props:{showVideos:{type:Number,default:0},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},isTeamGamePerPage:{type:Boolean,default:!1},onlyGamesTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges"],setup(e,{emit:a}){const r=e;let d=null;const f=t.ref([]),n=t.ref({}),s=t.ref(0),i=t.ref(null),_=t.ref({}),m=t.ref(new Map),o=t.ref(!1),g=t.ref(null),x=t.ref(null),c=t.ref(null),l=t.computed(()=>r.isCup),u=t.computed(()=>r.isCupLegacy),p=t.computed(()=>({height:r.height,width:r.width})),h=t.computed(()=>{if(r.games)return B(r.games,r.isTeamGamePerPage);{const D=m.value.get(_.value.key);return D&&r.isTeamGamePerPage&&r.onlyGamesTeamId?[D[0].filter(j=>j.home_team.team_id===r.onlyGamesTeamId||j.visiting_team.team_id===r.onlyGamesTeamId)]:D||[]}}),y=t.ref(0),b=t.ref("1"),v=t.ref([]),w=t.ref([]),C=t.computed(()=>w.value&&w.value.length?N(n.value):k(n.value));t.watch(()=>C.value,D=>{y.value=v.value.findIndex(j=>j===D),b.value=D}),t.watch(()=>r.seasons,D=>{D&&D.length&&(o.value=!0,f.value=D.map(j=>j.id),A(D,!0))},{immediate:!0,deep:!0}),t.watch(m,D=>{if(r.onlyGamesTeamId&&D.size){const j=Array.from(D.values()).reduce((W,$)=>($.forEach(G=>{const X=G.find(H=>H.home_team.team_id===r.onlyGamesTeamId||H.visiting_team.team_id===r.onlyGamesTeamId);X&&W.push(X)}),W),[]);a("change-games-by-client-privileges",j)}},{immediate:!0});function k(D){const j=Object.entries(Object.entries(D).reduce((G,[X,H])=>(G[X]=[],H.forEach(Y=>{Y.games.forEach(Z=>{const le=new Date(Z.date_time_utc).getTime()+66e5;G[X].push(le)})}),G),{}));if(!j.length)return"1";const W=new Date().getTime(),$=j.reduce((G,[X,H])=>{let Y=null;return H.forEach(Z=>{const le=Z-W;le>=0&&(Y===null||le<Y)&&(Y=le)}),Y&&(G.shortestTime===null||Y<G.shortestTime)&&(G.round=X,G.shortestTime=Y),G},{round:"",shortestTime:null});return $.shortestTime!==null?$.round:j[j.length-1][0]}function N(D){let j=1;if(w.value.length){const W=w.value[0];for(const[$,G]of Object.entries(D))for(const X of G)if(X.games.find(H=>H.game_id===W.game_id))return $}return j}t.watch(()=>r.teamId,()=>{I()},{immediate:!0});async function E(D,j,W=""){let $=W;try{const G={};r.token&&(G.Authorization=r.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",D.forEach((Y,Z)=>{$+=`${Z===0?"":"&"}seasons=${Y}`}));const{data:{data:X,teams:H}}=await Pk.get($,{headers:G});return{seasonsAndGames:X,seasonsAndTeams:H}}catch(G){if(j>0)return E(D,j-1,$);throw new Error(G)}}function T(D){for(const j of D)if(!f.value.includes(j.season_id))return!0;return!1}async function A(D,j){try{n.value={};let W=0;const{seasonsAndGames:$,seasonsAndTeams:G}=await E(D.map(H=>H.id),3);if(j&&T($))return;$.forEach(H=>{const{type:Y}=D.find(Z=>Z.id===H.season_id);H.type=Y,H.games.forEach(Z=>{Z.season_id=H.season_id}),Y===0&&(W=H.season_id)}),g.value={seasonsGames:$};const{teams:X}=G.find(H=>H.season_id===W);x.value=X,a("change-teams",X),I()}catch(W){throw new Error(W)}}function I(){if(!x.value)return;w.value=[];const D=g.value&&g.value.seasonsGames?g.value.seasonsGames.map(j=>{const W=j.games.reduce(($,G)=>{const X={...G};return X.dateTimeMillis=new Date(X.date_time_utc).valueOf(),X.home_team=x.value.find(H=>H.team_id===G.home_team),X.visiting_team=x.value.find(H=>H.team_id===G.visiting_team),r.teamId&&X.home_team.team_id!==r.teamId&&X.visiting_team.team_id!==r.teamId||($[G.matchday_abbreviation]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date].push(X):$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]=[X]:$[G.matchday_abbreviation]={[G.game_status===3?"canceled":G.date]:[X]},r.userTeamId&&X.game_status===4&&(X.home_team.team_id===r.userTeamId||X.visiting_team.team_id===r.userTeamId)&&w.value.push(X)),$},{});for(let[$,G]of Object.entries(W))W[$]=Object.entries(G).map(([X,H])=>({date:X,games:H.sort((Y,Z)=>Y.dateTimeMillis-Z.dateTimeMillis)})),W[$].sort((X,H)=>X.date<H.date?-1:X.date>H.date?1:0);return{type:j.type,weight:j.type===0?0:j.type===2?1:2,schedule:W}}):[];D.sort((j,W)=>j.weight-W.weight),n.value=D.reduce((j,W)=>{for(const[$,G]of Object.entries(W.schedule))if(W.type===0)if(l.value){const X=$.replace("M",""),H=X;u.value?j[tH[X]||H]=G:j[eH[$]||H]=G}else j[Number($.replace("M","")).toString()]=G;else W.type===2?$.charAt(1)=="I"?j[`PI${Number($.replace("PI",""))}`]=G:j[`R${Number($.replace("PO",""))}`]=G:W.type===1&&(j[QU[$]]=G);return j},{}),m.value=new Map,v.value=Array.from(Object.entries(n.value).reduce((j,[W,$],G)=>{const X=Number(W);let H="";Number.isNaN(X)?H=W:H=X<10?`0${X}`:W,j.set(W,{key:W,value:X,valueText:H,index:G});const Y=$.reduce((le,ie)=>(ie.games.forEach(ne=>{ne.game_id===r.defaultGameId&&(c.value=W),ne.roundAbbreviation=Number.isNaN(X)?X:`J ${X}`}),le=le.concat(ie.games),le),[]),Z=B(Y);return m.value.set(W,Z),j},new Map).values())}function B(D,j=!1){const W=[];if(r.gamesPerMatchDay>0){let $=[];D.forEach((G,X)=>{$.push(G),(X+1)%r.gamesPerMatchDay===0&&(W.push([...$]),$=[])}),$.length&&W.push([...$])}else W.push(D);return j&&r.isTeamGamePerPage&&r.defaultGameId?W.filter($=>$.game_id===r.defaultGameId||$.gameId===r.defaultGameId):W}async function O(D){try{const{data:j}=await Pk.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return j}catch(j){if(D>0)return O(D-1);throw new Error(j)}}function S(){if(window.ResizeObserver)d=new ResizeObserver(()=>{s.value=i.value.clientWidth}),d.observe(i.value);else throw new Error("Resize observer not supported!")}function R(D){_.value=D,a("change-round",D)}function M(D){r.areGamesCarouselType&&a("change-game-carousel",D.selectedItem)}function P(D){a("action",D),z(D)}function z(D){const j="PLAY_RESUME",W="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],G=[12,55,"35_r","54_r"],{game_id:X,season_id:H}=D.game;let Y={seasonId:H,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[X],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};D.action===j?(Y.categoryIds=$,Y.advancedFilter.playListTitle="Resumen",a("openmedia",Y)):D.action===W&&(Y.categoryIds=G,Y.advancedFilter.playListTitle="Goles",a("openmedia",Y))}async function L(){try{if(!r.awaitForSeasons&&!r.games){const D=(await O(3)).find($=>$._id===1),j=D.seasons[0],W=[{id:j.id,type:j.type}];D&&D.tournament&&a("tournament-selected",D.tournament),j.related_seasons&&j.related_seasons.length&&W.push(...j.related_seasons.map($=>({id:$.id,type:$.type}))),await A(W,!1)}}catch(D){throw new Error(D)}}return t.onMounted(()=>{S()}),L(),(D,j)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:i,class:"calendar-by-game",style:t.normalizeStyle(p.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(VG,{key:0,"full-tournament-schedule":n.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":s.value,"games-pages":m.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:P},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&v.value?(t.openBlock(),t.createBlock(yH,{key:0,"match-days":v.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":s.value,"default-match-day-key":c.value,"closest-match-day":e.sortCalendar?C.value:"",onChangeMatchDay:R},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",mW,[h.value?(t.openBlock(),t.createBlock(t.unref(zk),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?h.value[0]:h.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType&&!e.isTeamGamePerPage,"items-to-show":e.areGamesCarouselType&&!e.isTeamGamePerPage?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType&&!e.isTeamGamePerPage,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:M},{default:t.withCtx(({item:W})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(fW,{key:0,game:W},null,8,["game"])):(t.openBlock(),t.createBlock(MG,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":W,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":s.value,"is-round-mode":e.isRoundMode,onAction:P},null,8,["team-id","show-videos","games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},yW=Fc(gW,[["__scopeId","data-v-adc76593"]]);function _W(){return Wk().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Wk(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const vW=typeof Proxy=="function",bW="devtools-plugin:setup",xW="plugin:settings:set";let oh,Cb;function wW(){var e;return oh!==void 0||(typeof window<"u"&&window.performance?(oh=!0,Cb=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(oh=!0,Cb=globalThis.perf_hooks.performance):oh=!1),oh}function kW(){return wW()?Cb.now():Date.now()}class CW{constructor(a,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=a,this.hook=r;const d={};if(a.settings)for(const s in a.settings){const i=a.settings[s];d[s]=i.defaultValue}const f=`__vue-devtools-plugin-settings__${a.id}`;let n=Object.assign({},d);try{const s=localStorage.getItem(f),i=JSON.parse(s);Object.assign(n,i)}catch{}this.fallbacks={getSettings(){return n},setSettings(s){try{localStorage.setItem(f,JSON.stringify(s))}catch{}n=s},now(){return kW()}},r&&r.on(xW,(s,i)=>{s===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(s,i)=>this.target?this.target.on[i]:(..._)=>{this.onQueue.push({method:i,args:_})}}),this.proxiedTarget=new Proxy({},{get:(s,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(..._)=>(this.targetQueue.push({method:i,args:_,resolve:()=>{}}),this.fallbacks[i](..._)):(..._)=>new Promise(m=>{this.targetQueue.push({method:i,args:_,resolve:m})})})}async setRealTarget(a){this.target=a;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function EW(e,a){const r=e,d=Wk(),f=_W(),n=vW&&r.enableEarlyProxy;if(f&&(d.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!n))f.emit(bW,e,a);else{const s=n?new CW(r,f):null;(d.__VUE_DEVTOOLS_PLUGINS__=d.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:a,proxy:s}),s&&a(s.proxiedTarget)}}/*!
14
+ */const $o={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"}},Dk={itemsToShow:{default:$o.itemsToShow,type:Number},itemsToScroll:{default:$o.itemsToScroll,type:Number},wrapAround:{default:$o.wrapAround,type:Boolean},throttle:{default:$o.throttle,type:Number},snapAlign:{default:$o.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:$o.transition,type:Number},breakpoints:{default:$o.breakpoints,type:Object},autoplay:{default:$o.autoplay,type:Number},pauseAutoplayOnHover:{default:$o.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:$o.mouseDrag,type:Boolean},touchDrag:{default:$o.touchDrag,type:Boolean},dir:{default:$o.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:$o.i18n,type:Object},settings:{default(){return{}},type:Object}};function aH({config:e,slidesCount:a}){const{snapAlign:r,wrapAround:d,itemsToShow:f=1}=e;if(d)return Math.max(a-1,0);let n;switch(r){case"start":n=a-f;break;case"end":n=a-1;break;case"center":case"center-odd":n=a-Math.ceil((f-.5)/2);break;case"center-even":n=a-Math.ceil(f/2);break;default:n=0;break}return Math.max(n,0)}function rH({config:e,slidesCount:a}){const{wrapAround:r,snapAlign:d,itemsToShow:f=1}=e;let n=0;if(r||f>a)return n;switch(d){case"start":n=0;break;case"end":n=f-1;break;case"center":case"center-odd":n=Math.floor((f-1)/2);break;case"center-even":n=Math.floor((f-2)/2);break;default:n=0;break}return n}function vb({val:e,max:a,min:r}){return a<r?e:Math.min(Math.max(e,r),a)}function nH({config:e,currentSlide:a,slidesCount:r}){const{snapAlign:d,wrapAround:f,itemsToShow:n=1}=e;let s=a;switch(d){case"center":case"center-odd":s-=(n-1)/2;break;case"center-even":s-=(n-2)/2;break;case"end":s-=n-1;break}return f?s:vb({val:s,max:r-n,min:0})}function Lk(e){return e?e.reduce((a,r)=>{var d;return r.type===t.Fragment?[...a,...Lk(r.children)]:((d=r.type)===null||d===void 0?void 0:d.name)==="CarouselSlide"?[...a,r]:a},[]):[]}function bb({val:e,max:a,min:r=0}){return e>a?bb({val:e-(a+1),max:a,min:r}):e<r?bb({val:e+(a+1),max:a,min:r}):e}function iH(e,a){let r;return a?function(...d){const f=this;r||(e.apply(f,d),r=!0,setTimeout(()=>r=!1,a))}:e}function oH(e,a){let r;return function(...d){r&&clearTimeout(r),r=setTimeout(()=>{e(...d),r=null},a)}}function sH(e="",a={}){return Object.entries(a).reduce((r,[d,f])=>r.replace(`{${d}}`,String(f)),e)}var lH=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},$o))),a=t.inject("currentSlide",t.ref(0)),r=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},sH(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:r.value}))}}),cH=t.defineComponent({name:"Carousel",props:Dk,setup(e,{slots:a,emit:r,expose:d}){var f;const n=t.ref(null),s=t.ref([]),i=t.ref(0),_=t.ref(0),m=t.reactive(Object.assign({},$o));let o=Object.assign({},$o),g;const x=t.ref((f=e.modelValue)!==null&&f!==void 0?f:0),c=t.ref(0),l=t.ref(0),u=t.ref(0),p=t.ref(0);let h,y;t.provide("config",m),t.provide("slidesCount",_),t.provide("currentSlide",x),t.provide("maxSlide",u),t.provide("minSlide",p),t.provide("slideWidth",i);function b(){g=Object.assign({},e.breakpoints),o=Object.assign(Object.assign(Object.assign({},o),e),{i18n:Object.assign(Object.assign({},o.i18n),e.i18n),breakpoints:void 0}),w(o)}function v(){if(!g||!Object.keys(g).length)return;const Q=Object.keys(g).map(se=>Number(se)).sort((se,de)=>+de-+se);let ee=Object.assign({},o);Q.some(se=>{const de=window.matchMedia(`(min-width: ${se}px)`).matches;return de&&(ee=Object.assign(Object.assign({},ee),g[se])),de}),w(ee)}function w(Q){Object.entries(Q).forEach(([ee,se])=>m[ee]=se)}const C=oH(()=>{v(),k()},16);function k(){if(!n.value)return;const Q=n.value.getBoundingClientRect();i.value=Q.width/m.itemsToShow}function N(){_.value<=0||(l.value=Math.ceil((_.value-1)/2),u.value=aH({config:m,slidesCount:_.value}),p.value=rH({config:m,slidesCount:_.value}),m.wrapAround||(x.value=vb({val:x.value,max:u.value,min:p.value})))}t.onMounted(()=>{t.nextTick(()=>k()),setTimeout(()=>k(),1e3),v(),L(),window.addEventListener("resize",C,{passive:!0}),r("init")}),t.onUnmounted(()=>{y&&clearTimeout(y),h&&clearInterval(h),window.removeEventListener("resize",C,{passive:!0})});let E=!1;const T={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),B=t.ref(!1),O=t.ref(!1),S=()=>{B.value=!0},R=()=>{B.value=!1};function M(Q){["INPUT","TEXTAREA","SELECT"].includes(Q.target.tagName)||(E=Q.type==="touchstart",E||Q.preventDefault(),!(!E&&Q.button!==0||j.value)&&(T.x=E?Q.touches[0].clientX:Q.clientX,T.y=E?Q.touches[0].clientY:Q.clientY,document.addEventListener(E?"touchmove":"mousemove",P,!0),document.addEventListener(E?"touchend":"mouseup",z,!0)))}const P=iH(Q=>{O.value=!0,A.x=E?Q.touches[0].clientX:Q.clientX,A.y=E?Q.touches[0].clientY:Q.clientY;const ee=A.x-T.x,se=A.y-T.y;I.y=se,I.x=ee},m.throttle);function z(){const Q=m.dir==="rtl"?-1:1,ee=Math.sign(I.x)*.4,se=Math.round(I.x/i.value+ee)*Q;if(se&&!E){const de=ue=>{ue.stopPropagation(),window.removeEventListener("click",de,!0)};window.addEventListener("click",de,!0)}W(x.value-se),I.x=0,I.y=0,O.value=!1,document.removeEventListener(E?"touchmove":"mousemove",P,!0),document.removeEventListener(E?"touchend":"mouseup",z,!0)}function L(){!m.autoplay||m.autoplay<=0||(h=setInterval(()=>{m.pauseAutoplayOnHover&&B.value||$()},m.autoplay))}function D(){h&&(clearInterval(h),h=null),L()}const j=t.ref(!1);function W(Q){const ee=m.wrapAround?Q:vb({val:Q,max:u.value,min:p.value});x.value===ee||j.value||(r("slide-start",{slidingToIndex:Q,currentSlideIndex:x.value,prevSlideIndex:c.value,slidesCount:_.value}),j.value=!0,c.value=x.value,x.value=ee,y=setTimeout(()=>{if(m.wrapAround){const se=bb({val:ee,max:u.value,min:0});se!==x.value&&(x.value=se,r("loop",{currentSlideIndex:x.value,slidingToIndex:Q}))}r("update:modelValue",x.value),r("slide-end",{currentSlideIndex:x.value,prevSlideIndex:c.value,slidesCount:_.value}),j.value=!1,D()},m.transition))}function $(){W(x.value+m.itemsToScroll)}function G(){W(x.value-m.itemsToScroll)}const X={slideTo:W,next:$,prev:G};t.provide("nav",X),t.provide("isSliding",j);const H=t.computed(()=>nH({config:m,currentSlide:x.value,slidesCount:_.value}));t.provide("slidesToScroll",H);const Y=t.computed(()=>{const Q=m.dir==="rtl"?-1:1,ee=H.value*i.value*Q;return{transform:`translateX(${I.x-ee}px)`,transition:`${j.value?m.transition:0}ms`,margin:m.wrapAround?`0 -${_.value*i.value}px`:"",width:"100%"}});function Z(){b(),v(),N(),k(),D()}Object.keys(Dk).forEach(Q=>{["modelValue"].includes(Q)||t.watch(()=>e[Q],Z)}),t.watch(()=>e.modelValue,Q=>{Q!==x.value&&W(Number(Q))}),t.watch(_,N),r("before-init"),b();const le={config:m,slidesCount:_,slideWidth:i,next:$,prev:G,slideTo:W,currentSlide:x,maxSlide:u,minSlide:p,middleSlide:l};d({updateBreakpointsConfigs:v,updateSlidesData:N,updateSlideWidth:k,initDefaultConfigs:b,restartCarousel:Z,slideTo:W,next:$,prev:G,nav:X,data:le});const ie=a.default||a.slides,ne=a.addons,re=t.reactive(le);return()=>{const Q=Lk(ie==null?void 0:ie(re)),ee=(ne==null?void 0:ne(re))||[];Q.forEach((fe,ge)=>fe.props.index=ge);let se=Q;if(m.wrapAround){const fe=Q.map((ve,we)=>t.cloneVNode(ve,{index:-Q.length+we,isClone:!0,key:`clone-before-${we}`})),ge=Q.map((ve,we)=>t.cloneVNode(ve,{index:Q.length+we,isClone:!0,key:`clone-after-${we}`}));se=[...fe,...Q,...ge]}s.value=Q,_.value=Math.max(Q.length,1);const de=t.h("ol",{class:"carousel__track",style:Y.value,onMousedownCapture:m.mouseDrag?M:null,onTouchstartPassiveCapture:m.touchDrag?M:null},se),ue=t.h("div",{class:"carousel__viewport"},de);return t.h("section",{ref:n,class:{carousel:!0,"is-sliding":j.value,"is-dragging":O.value,"is-hover":B.value,"carousel--rtl":m.dir==="rtl"},dir:m.dir,"aria-label":m.i18n.ariaGallery,tabindex:"0",onMouseenter:S,onMouseleave:R},[ue,ee,t.h(lH)])}}}),xb;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(xb||(xb={}));const dH={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 uH(e){return e in xb}const wb=e=>{const a=t.inject("config",t.reactive(Object.assign({},$o))),r=String(e.name),d=`icon${r.charAt(0).toUpperCase()+r.slice(1)}`;if(!r||typeof r!="string"||!uH(r))return;const f=dH[r],n=t.h("path",{d:f}),s=a.i18n[d]||e.title||r,i=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[i,n])};wb.props={name:String,title:String};const pH=(e,{slots:a,attrs:r})=>{const{next:d,prev:f}=a||{},n=t.inject("config",t.reactive(Object.assign({},$o))),s=t.inject("maxSlide",t.ref(1)),i=t.inject("minSlide",t.ref(1)),_=t.inject("currentSlide",t.ref(1)),m=t.inject("nav",{}),{dir:o,wrapAround:g,i18n:x}=n,c=o==="rtl",l=t.h("button",{type:"button",class:["carousel__prev",!g&&_.value<=i.value&&"carousel__prev--disabled",r==null?void 0:r.class],"aria-label":x.ariaPreviousSlide,onClick:m.prev},(f==null?void 0:f())||t.h(wb,{name:c?"arrowRight":"arrowLeft"})),u=t.h("button",{type:"button",class:["carousel__next",!g&&_.value>=s.value&&"carousel__next--disabled",r==null?void 0:r.class],"aria-label":x.ariaNextSlide,onClick:m.next},(d==null?void 0:d())||t.h(wb,{name:c?"arrowLeft":"arrowRight"}));return[l,u]};var hH=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const r=t.inject("config",t.reactive(Object.assign({},$o))),d=t.inject("currentSlide",t.ref(0)),f=t.inject("slidesToScroll",t.ref(0)),n=t.inject("isSliding",t.ref(!1)),s=()=>e.index===d.value,i=()=>e.index===d.value-1,_=()=>e.index===d.value+1,m=()=>{const o=Math.floor(f.value),g=Math.ceil(f.value+r.itemsToShow-1);return e.index>=o&&e.index<=g};return()=>{var o;return t.h("li",{style:{width:`${100/r.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":m(),"carousel__slide--active":s(),"carousel__slide--prev":i(),"carousel__slide--next":_(),"carousel__slide--sliding":n.value},"aria-hidden":!m()},(o=a.default)===null||o===void 0?void 0:o.call(a))}}});const Fc=(e,a)=>{const r=e.__vccOpts||e;for(const[d,f]of a)r[d]=f;return r},fH={__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 r=e,d=t.computed(()=>{const i={"background-color":r.backgroundColor,height:r.height};return r.matchDay.key===r.matchDaySelected.key&&(i["border-bottom"]=`solid 1px ${r.bottomLineColor}`,i["background-color"]=r.selectedMatchDayBackgroundColor),r.isLandingMode||(i["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),i}),f=t.computed(()=>({color:r.numberColor,"font-family":r.numberFontFamily,"font-size":r.numberFontSize})),n=t.computed(()=>({color:r.textColor,"font-family":r.textFontFamily,"font-size":r.textFontSize}));function s(i){a("click-match-day",i)}return(i,_)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...d.value}),onClick:_[0]||(_[0]=m=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(f.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",n.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},mH=Fc(fH,[["__scopeId","data-v-687d929a"]]),gH={__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 r=e;t.useCssVars(m=>({"395ea484":n.value,"395d8d44":s.value}));const d=t.ref(null),f=t.computed(()=>({itemsToShow:r.itemsToShow,itemsToScroll:r.itemsToScroll,snapAlign:"start"})),n=t.computed(()=>d.value.data.currentSlide.value==0?"none":"inline"),s=t.computed(()=>d.value.data.currentSlide.value==d.value.data.maxSlide.value?"none":"inline"),i=t.ref({});t.watch(()=>r.closestMatchDay,m=>{if(m){const o=r.matchDays.find(g=>g.key===m);_(o||r.matchDays[0],!0)}}),t.watch(()=>r.matchDays,m=>{if(!r.closestMatchDay&&m&&m.length){const o=m.find(g=>g.key===r.defaultMatchDayKey);i.value=o||m[0],a("change-match-day",i.value)}},{immediate:!0});function _(m,o=!1){o&&d.value.slideTo(m.index),i.value=m,a("change-match-day",i.value)}return(m,o)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(cH),t.mergeProps(f.value,{ref_key:"matchDayPickerCarousel",ref:d}),{addons:t.withCtx(()=>[t.createVNode(t.unref(pH))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,g=>(t.openBlock(),t.createBlock(t.unref(hH),{key:g.key},{default:t.withCtx(()=>[t.createVNode(mH,t.mergeProps(r,{"match-day":g,"match-day-selected":i.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:_}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},yH=Fc(gH,[["__scopeId","data-v-1ad19205"]]);function ih(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function $k(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 _H(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 vH={class:"game-info__teams"},bH={class:"game-info__teams__team__logo"},xH=["src"],wH={class:"game-info__teams__detail"},kH={key:0,class:"game-info__teams__detail__pre-game"},CH={class:"game-info__teams__team__logo away"},EH=["src"],SH={key:0},TH={key:0},AH={key:1},NH={__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,r=t.computed(()=>{let m=a.game.schedule.split(":");return m.pop(),m=m.join(":"),m}),d=t.computed(()=>{let m="120px";return(a.isLandingMode||a.isAcronymVisible)&&(m="70px"),{"min-width":m}}),f=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),n=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),s=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),i=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),_=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(m,o)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",vH,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(f.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",bH,[t.createElementVNode("img",{src:t.unref(ih)(e.game.home_team.team_id),alt:""},null,8,xH)])],4),t.createElementVNode("div",wH,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",kH,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(_.value)},t.toDisplayString(r.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(i.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(s.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(d.value)},[t.createElementVNode("div",CH,[t.createElementVNode("img",{src:t.unref(ih)(e.game.visiting_team.team_id),alt:""},null,8,EH)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(f.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([n.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",SH,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",TH,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",AH,t.toDisplayString(t.unref(_H)(e.game)),1))],4)],4))}},jk=Fc(NH,[["__scopeId","data-v-a6b3fc44"]]),Uk=e=>(t.pushScopeId("data-v-e2fc9ed0"),e=e(),t.popScopeId(),e),IH={class:"game-status"},BH={key:0,class:"game-status__day__live"},MH=Uk(()=>t.createElementVNode("span",null,"LIVE",-1)),OH=Uk(()=>t.createElementVNode("span",{class:"dot"},null,-1)),PH=[MH,OH],FH={key:0,class:"game-status__round"},RH={__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,r=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],d=t.computed(()=>{let s="";if(a.dateTimeMillis){const i=new Date(a.dateTimeMillis);s=`${i.getDate()} ${r[i.getMonth()]}`}return s}),f=t.computed(()=>({"font-size":a.fontSize})),n=t.computed(()=>{let s=[];return a.isLive?s.push("live"):a.status!==1&&s.push("pre-match"),s});return(s,i)=>(t.openBlock(),t.createElementBlock("div",IH,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",n.value]),style:t.normalizeStyle(f.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",BH,PH)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(d.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",FH,t.toDisplayString(e.roundAbbreviation),1))]))}},Hk=Fc(RH,[["__scopeId","data-v-e2fc9ed0"]]),Rc={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},VH=e=>(t.pushScopeId("data-v-5711c5a6"),e=e(),t.popScopeId(),e),zH={class:"actions"},DH={class:"actions__row"},LH=VH(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),$H=[LH],jH={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},UH=["fill"],HH={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GH=["fill"],WH={__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 r=e,d=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor}));function f(n){a("action",n)}return(n,s)=>(t.openBlock(),t.createElementBlock("div",zH,[t.createElementVNode("div",DH,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:s[0]||(s[0]=i=>f(t.unref(Rc).STATISTICS))},$H,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:s[1]||(s[1]=i=>f(t.unref(Rc).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",jH,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:r.iconColor},null,8,UH)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=i=>f(t.unref(Rc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",HH,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,GH)]))])):t.createCommentVNode("",!0)])]))}},qH=Fc(WH,[["__scopeId","data-v-5711c5a6"]]),kb=e=>(t.pushScopeId("data-v-d64f8667"),e=e(),t.popScopeId(),e),YH={class:"actions"},ZH={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XH=["fill"],KH={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},JH=["fill"],QH=kb(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),eG=[QH],tG={key:0,class:"actions__videos"},aG={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},rG=["fill"],nG={key:1,class:"actions__videos__thumbnails"},iG=kb(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),oG=kb(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),sG={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lG=["stroke"],cG={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},hasGoals:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e,d=t.computed(()=>({backgroundColor:r.iconBackgroundColor,borderColor:r.iconBorderColor})),f=t.computed(()=>{const _=[];return r.componentWidth<540&&_.push("mobile"),_}),n=t.computed(()=>r.componentWidth>730),s=t.computed(()=>({color:r.thumbnailColor,fontFamily:r.thumbnailFontFamily,fontSize:r.thumbnailFontSize}));function i(_){a("action",_)}return(_,m)=>(t.openBlock(),t.createElementBlock("div",YH,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",f.value])},[e.gameStatus===4444&&!e.isLive&&!n.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:m[0]||(m[0]=o=>i(t.unref(Rc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",ZH,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,XH)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!n.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:m[1]||(m[1]=o=>i(t.unref(Rc).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",KH,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:r.iconColor},null,8,JH)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(d.value),onClick:m[2]||(m[2]=o=>i(t.unref(Rc).STATISTICS))},eG,4)],2),n.value?(t.openBlock(),t.createElementBlock("div",tG,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:m[3]||(m[3]=o=>i(t.unref(Rc).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",aG,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:r.iconColor},null,8,rG)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",nG,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:m[4]||(m[4]=o=>i(t.unref(Rc).PLAY_GOALS))},[iG,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:m[5]||(m[5]=o=>i(t.unref(Rc).PLAY_RESUME))},[oG,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:m[6]||(m[6]=o=>i(t.unref(Rc).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",sG,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,lG)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},dG=Fc(cG,[["__scopeId","data-v-d64f8667"]]),$1=e=>(t.pushScopeId("data-v-51906051"),e=e(),t.popScopeId(),e),uG={class:"row-landing__game-status"},pG={class:"row-landing__game-actions"},hG={class:"row-full__game-status"},fG={class:"row-full__game-info"},mG={key:0},gG={class:"row-full__game-actions"},yG={class:"game-events-container"},_G=$1(()=>t.createElementVNode("div",{class:"separator"},null,-1)),vG=$1(()=>t.createElementVNode("div",null,null,-1)),bG={class:"game-events__data"},xG={class:"game-events__data__team"},wG=["src"],kG={class:"game-events__data__team__event__text"},CG={class:"game-events__data__team away"},EG={class:"game-events__data__team__event__text"},SG=["src"],TG=$1(()=>t.createElementVNode("div",null,null,-1)),AG=$1(()=>t.createElementVNode("div",null,null,-1)),NG={__name:"CalendarRow",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const r=e,d={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"},f=t.ref(!1),n=t.ref(!1),s=t.computed(()=>{const p={homeTeam:[],awayTeam:[]};return r.game&&r.game.game_status!==4&&!r.game.is_live&&r.game.minutes&&(p.homeTeam.push(...l(r.game.minutes.home_goals_minutes,d.GOAL)),p.homeTeam.push(...l(r.game.minutes.home_red_cards_minutes,d.RED_CARD)),p.homeTeam.push(...l(r.game.minutes.home_yellow_cards_minutes,d.YELLOW_CARD)),p.awayTeam.push(...l(r.game.minutes.visiting_goals_minutes,d.GOAL)),p.awayTeam.push(...l(r.game.minutes.away_red_cards_minutes,d.RED_CARD)),p.awayTeam.push(...l(r.game.minutes.away_yellow_cards_minutes,d.YELLOW_CARD))),p}),i=t.computed(()=>{const p=s.value.homeTeam.length,h=s.value.awayTeam.length;return p+h>0}),_=t.computed(()=>{const p=r.game.score[0],h=r.game.score[1];return p>0||h>0}),m=t.computed(()=>({"background-color":r.backgroundColor})),o=t.computed(()=>({height:r.height})),g=t.computed(()=>{const p={game:[],events:[]};return r.componentWidth<500?(p.events.push("break-point-3"),p.game.push("break-point-2")):r.componentWidth<730?(p.game.push("break-point-2"),p.events.push("break-point-2")):r.componentWidth<910&&(p.game.push("break-point-1"),p.events.push("break-point-1")),p}),x=t.computed(()=>({isLandingMode:r.isLandingMode,game:r.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),c=t.computed(()=>({"font-size":r.televisionFontSize,"font-family":r.televisionFontFamily,color:r.televisionColor}));t.watch(()=>r.componentWidth,p=>{n.value=p<910});function l(p,h){return p.map(y=>({iconUrl:h,text:y}))}function u(p){p===Rc.SHOW_GAME_EVENTS?f.value=!f.value:a("action",{action:p,game:r.game})}return(p,h)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(m.value)},[t.createVNode(jk,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",uG,[t.createVNode(Hk,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref($k)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",pG,[t.createVNode(qH,{"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"game-status":e.game.game_status,"show-play-button":!0,onAction:u},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",g.value.game]),style:t.normalizeStyle(o.value)},[t.createElementVNode("div",hG,[t.createVNode(Hk,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref($k)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",fG,[t.createVNode(jk,t.mergeProps(x.value,{"is-television-visible":n.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(c.value)},[!n.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",mG,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",gG,[t.createVNode(dG,{"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"has-actions":i.value,"has-goals":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?_.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":f.value,"component-width":e.componentWidth,onAction:u},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",yG,[_G,t.createElementVNode("div",{class:t.normalizeClass(["game-events",g.value.events])},[vG,t.createElementVNode("div",bG,[t.createElementVNode("div",xG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`h${b}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:y.iconUrl},null,8,wG),t.createElementVNode("div",kG,t.toDisplayString(y.text),1)]))),128))]),t.createElementVNode("div",CG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(y,b)=>(t.openBlock(),t.createElementBlock("div",{key:`a${b}`,class:"game-events__data__team__event"},[t.createElementVNode("div",EG,t.toDisplayString(y.text),1),t.createElementVNode("img",{src:y.iconUrl},null,8,SG)]))),128))])]),TG,AG],2)],512),[[t.vShow,f.value]])]),_:1})],4))}},Gk=Fc(NG,[["__scopeId","data-v-51906051"]]),IG={class:"calendar-table"},BG={__name:"CalendarTable",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e;function d(n){return n%2===0?r.evenRowColor:r.oddRowColor}function f(n){a("action",n)}return(n,s)=>(t.openBlock(),t.createElementBlock("div",IG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(i,_)=>(t.openBlock(),t.createBlock(Gk,{key:i.game_id,game:i,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":d(_),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:f},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},MG=Fc(BG,[["__scopeId","data-v-c7bf1232"]]),OG={class:"calendar-by-team"},PG={class:"playing-as-picker"},FG={class:"calendar-by-team__page"},RG={__name:"CalendarTableByTeam",props:{showVideos:{type:Number,default:0},teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const r=e,d=t.ref(0),f=t.computed(()=>{let _=[];if(r.gamesPages.size>0){const m=Array.from(r.gamesPages.entries()).reduce((o,[g,x])=>{const c=Number(g),l=Number.isNaN(c)?g:`Jornada ${c<10?"0":""}${c}`,u=x.reduce((p,h)=>(p.push(...h),p),[]).filter(p=>d.value===0||d.value===1&&p.visiting_team.team_id===r.teamId?!0:d.value===2&&p.home_team.team_id===r.teamId);return u.length>0&&o.push({roundName:l,games:u}),o},[]);_.push(m)}return _});function n(_){a("action",_)}function s(_){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),d.value=_,document.querySelector("#opc"+_).classList.add("selected")}function i(_){let m=_;switch(_){case"PI1":m="Play In 1";break;case"PI2":m="Play In 2";break;case"R1":m="Repechaje";break;case"CFI":m="Cuartos de final - Ida";break;case"CFV":m="Cuartos de final - Vuelta";break;case"SFI":m="Semifinal - Ida";break;case"SFV":m="Semifinal - Vuelta";break;case"FI":m="Final - Ida";break;case"FV":m="Final - Vuelta";break}return m}return(_,m)=>(t.openBlock(),t.createElementBlock("div",OG,[t.createElementVNode("div",PG,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:m[0]||(m[0]=o=>s(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:m[1]||(m[1]=o=>s(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:m[2]||(m[2]=o=>s(2))},"Local")]),t.createVNode(t.unref(zk),{"is-pagination-visible":e.isPaginationVisible,items:f.value},{default:t.withCtx(({item:o})=>[t.createElementVNode("div",FG,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o,(g,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(i(g.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(g.games,c=>(t.openBlock(),t.createBlock(Gk,{key:c.game_id,game:c,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:n},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},VG=Fc(RG,[["__scopeId","data-v-6e0e406c"]]),zG="_image62Icon_1ybd3_2",DG="_imgChivasIcon_1ybd3_11",LG="_nameDesktop_1ybd3_18",$G="_nameMobile_1ybd3_31",jG="_homeTeam_1ybd3_43",UG="_sbado16De_1ybd3_54",HG="_gameDate_1ybd3_63",GG="_sab16092023_1ybd3_67",WG="_div_1ybd3_80",qG="_divscore_1ybd3_89",YG="_cst_1ybd3_99",ZG="_hour_1ybd3_108",XG="_score_1ybd3_109",KG="_chivasTvCanal_1ybd3_120",JG="_gameStatus_1ybd3_132",QG="_matchInfo_1ybd3_143",eW="_image62Icon1_1ybd3_156",tW="_name_1ybd3_18",aW="_imgAtlasIcon_1ybd3_178",rW="_name1_1ybd3_185",nW="_awayTeam_1ybd3_197",iW="_matchCard_1ybd3_208",oW={image62Icon:zG,imgChivasIcon:DG,nameDesktop:LG,nameMobile:$G,homeTeam:jG,sbado16De:UG,gameDate:HG,sab16092023:GG,div:WG,divscore:qG,cst:YG,hour:ZG,score:XG,chivasTvCanal:KG,gameStatus:JG,matchInfo:QG,image62Icon1:eW,name:tW,imgAtlasIcon:aW,name1:rW,awayTeam:nW,matchCard:iW},sW=["src"],lW=["src"],cW={key:0},dW=["src"],uW=["src"],pW={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,r=t.computed(()=>{const f={...a.game};return f.gameSchedule=a.game.schedule.split(":"),f.gameSchedule.pop(),f.gameSchedule=f.gameSchedule.join(":"),f});function d(f,n){const s=new Date(f);if(n==1){const i=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],_=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${i[s.getDay()]} ${s.getDate()} de ${_[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()+1}-${s.getFullYear()}`}return(f,n)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(f.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(f.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(f.$style.image62Icon),alt:"",src:t.unref(ih)(r.value.home_team.team_id,150)},null,10,sW),t.createElementVNode("img",{class:t.normalizeClass(f.$style.imgChivasIcon),alt:"",src:t.unref(ih)(r.value.home_team.team_id)},null,10,lW),t.createElementVNode("h3",{class:t.normalizeClass(f.$style.nameDesktop),id:"team-name"},t.toDisplayString(r.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(f.$style.nameMobile),id:"team-name"},t.toDisplayString(r.value.home_team.acronym),3)],2),r.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(f.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(f.$style.sbado16De)},t.toDisplayString(d(r.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(f.$style.sab16092023)},t.toDisplayString(d(r.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(f.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(f.$style.div)},t.toDisplayString(r.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(f.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(f.$style.chivasTvCanal)},t.toDisplayString(r.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(f.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([f.$style.sbado16De,f.$style.gameDate])},t.toDisplayString(d(r.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([f.$style.sab16092023,f.$style.gameDate])},t.toDisplayString(d(r.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(f.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(f.$style.divscore)},t.toDisplayString(r.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(f.$style.gameStatus)},[t.createTextVNode(" Finalizado "),r.value.penalties_score_home_team!=0||r.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",cW," - Penales "+t.toDisplayString(r.value.penalties_score_home_team)+" - "+t.toDisplayString(r.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(f.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(f.$style.image62Icon1),alt:"",src:t.unref(ih)(r.value.visiting_team.team_id,150)},null,10,dW),t.createElementVNode("h3",{class:t.normalizeClass(f.$style.name),id:"team-name"},t.toDisplayString(r.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(f.$style.imgAtlasIcon),alt:"",src:t.unref(ih)(r.value.visiting_team.team_id)},null,10,uW),t.createElementVNode("h3",{class:t.normalizeClass(f.$style.name1),id:"team-name"},t.toDisplayString(r.value.visiting_team.acronym),3)],2)],2))}},hW={$style:oW},fW=Fc(pW,[["__cssModules",hW]]),mW={class:"calendar-by-game__carousel"},gW={__name:"GSC-CalendarByGame",props:{showVideos:{type:Number,default:0},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},isTeamGamePerPage:{type:Boolean,default:!1},onlyGamesTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges"],setup(e,{emit:a}){const r=e;let d=null;const f=t.ref([]),n=t.ref({}),s=t.ref(0),i=t.ref(null),_=t.ref({}),m=t.ref(new Map),o=t.ref(!1),g=t.ref(null),x=t.ref(null),c=t.ref(null),l=t.computed(()=>r.isCup),u=t.computed(()=>r.isCupLegacy),p=t.computed(()=>({height:r.height,width:r.width})),h=t.computed(()=>{if(r.games)return B(r.games,r.isTeamGamePerPage);{const D=m.value.get(_.value.key);return D&&r.isTeamGamePerPage&&r.onlyGamesTeamId?[D[0].filter(j=>j.home_team.team_id===r.onlyGamesTeamId||j.visiting_team.team_id===r.onlyGamesTeamId)]:D||[]}}),y=t.ref(0),b=t.ref("1"),v=t.ref([]),w=t.ref([]),C=t.computed(()=>w.value&&w.value.length?N(n.value):k(n.value));t.watch(()=>C.value,D=>{y.value=v.value.findIndex(j=>j===D),b.value=D}),t.watch(()=>r.seasons,D=>{D&&D.length&&(o.value=!0,f.value=D.map(j=>j.id),A(D,!0))},{immediate:!0,deep:!0}),t.watch(m,D=>{if(r.onlyGamesTeamId&&D.size){const j=Array.from(D.values()).reduce((W,$)=>($.forEach(G=>{const X=G.find(H=>H.home_team.team_id===r.onlyGamesTeamId||H.visiting_team.team_id===r.onlyGamesTeamId);X&&W.push(X)}),W),[]);a("change-games-by-client-privileges",j)}},{immediate:!0});function k(D){const j=Object.entries(Object.entries(D).reduce((G,[X,H])=>(G[X]=[],H.forEach(Y=>{Y.games.forEach(Z=>{const le=new Date(Z.date_time_utc).getTime()+66e5;G[X].push(le)})}),G),{}));if(!j.length)return"1";const W=new Date().getTime(),$=j.reduce((G,[X,H])=>{let Y=null;return H.forEach(Z=>{const le=Z-W;le>=0&&(Y===null||le<Y)&&(Y=le)}),Y&&(G.shortestTime===null||Y<G.shortestTime)&&(G.round=X,G.shortestTime=Y),G},{round:"",shortestTime:null});return $.shortestTime!==null?$.round:j[j.length-1][0]}function N(D){let j=1;if(w.value.length){const W=w.value[0];for(const[$,G]of Object.entries(D))for(const X of G)if(X.games.find(H=>H.game_id===W.game_id))return $}return j}t.watch(()=>r.teamId,()=>{I()},{immediate:!0});async function E(D,j,W=""){let $=W;try{const G={};r.token&&(G.Authorization=r.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",D.forEach((Y,Z)=>{$+=`${Z===0?"":"&"}seasons=${Y}`}));const{data:{data:X,teams:H}}=await Pk.get($,{headers:G});return{seasonsAndGames:X,seasonsAndTeams:H}}catch(G){if(j>0)return E(D,j-1,$);throw new Error(G)}}function T(D){for(const j of D)if(!f.value.includes(j.season_id))return!0;return!1}async function A(D,j){try{n.value={};let W=0;const{seasonsAndGames:$,seasonsAndTeams:G}=await E(D.map(H=>H.id),3);if(j&&T($))return;$.forEach(H=>{const{type:Y}=D.find(Z=>Z.id===H.season_id);H.type=Y,H.games.forEach(Z=>{Z.season_id=H.season_id}),Y===0&&(W=H.season_id)}),g.value={seasonsGames:$};const{teams:X}=G.find(H=>H.season_id===W);x.value=X,a("change-teams",X),I()}catch(W){throw new Error(W)}}function I(){if(!x.value)return;w.value=[];const D=g.value&&g.value.seasonsGames?g.value.seasonsGames.map(j=>{const W=j.games.reduce(($,G)=>{if(r.onlyGamesTeamId&&r.onlyGamesTeamId!==G.home_team&&r.onlyGamesTeamId!==G.visiting_team)return $;const X={...G};return X.dateTimeMillis=new Date(X.date_time_utc).valueOf(),X.home_team=x.value.find(H=>H.team_id===G.home_team),X.visiting_team=x.value.find(H=>H.team_id===G.visiting_team),r.teamId&&X.home_team.team_id!==r.teamId&&X.visiting_team.team_id!==r.teamId||($[G.matchday_abbreviation]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]?$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date].push(X):$[G.matchday_abbreviation][G.game_status===3?"canceled":G.date]=[X]:$[G.matchday_abbreviation]={[G.game_status===3?"canceled":G.date]:[X]},r.userTeamId&&X.game_status===4&&(X.home_team.team_id===r.userTeamId||X.visiting_team.team_id===r.userTeamId)&&w.value.push(X)),$},{});for(let[$,G]of Object.entries(W))W[$]=Object.entries(G).map(([X,H])=>({date:X,games:H.sort((Y,Z)=>Y.dateTimeMillis-Z.dateTimeMillis)})),W[$].sort((X,H)=>X.date<H.date?-1:X.date>H.date?1:0);return{type:j.type,weight:j.type===0?0:j.type===2?1:2,schedule:W}}):[];D.sort((j,W)=>j.weight-W.weight),n.value=D.reduce((j,W)=>{for(const[$,G]of Object.entries(W.schedule))if(W.type===0)if(l.value){const X=$.replace("M",""),H=X;u.value?j[tH[X]||H]=G:j[eH[$]||H]=G}else j[Number($.replace("M","")).toString()]=G;else W.type===2?$.charAt(1)=="I"?j[`PI${Number($.replace("PI",""))}`]=G:j[`R${Number($.replace("PO",""))}`]=G:W.type===1&&(j[QU[$]]=G);return j},{}),m.value=new Map,v.value=Array.from(Object.entries(n.value).reduce((j,[W,$],G)=>{const X=Number(W);let H="";Number.isNaN(X)?H=W:H=X<10?`0${X}`:W,j.set(W,{key:W,value:X,valueText:H,index:G});const Y=$.reduce((le,ie)=>(ie.games.forEach(ne=>{ne.game_id===r.defaultGameId&&(c.value=W),ne.roundAbbreviation=Number.isNaN(X)?X:`J ${X}`}),le=le.concat(ie.games),le),[]),Z=B(Y);return m.value.set(W,Z),j},new Map).values())}function B(D,j=!1){const W=[];if(r.gamesPerMatchDay>0){let $=[];D.forEach((G,X)=>{$.push(G),(X+1)%r.gamesPerMatchDay===0&&(W.push([...$]),$=[])}),$.length&&W.push([...$])}else W.push(D);return j&&r.isTeamGamePerPage&&r.defaultGameId?W.filter($=>$.game_id===r.defaultGameId||$.gameId===r.defaultGameId):W}async function O(D){try{const{data:j}=await Pk.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return j}catch(j){if(D>0)return O(D-1);throw new Error(j)}}function S(){if(window.ResizeObserver)d=new ResizeObserver(()=>{s.value=i.value.clientWidth}),d.observe(i.value);else throw new Error("Resize observer not supported!")}function R(D){_.value=D,a("change-round",D)}function M(D){r.areGamesCarouselType&&a("change-game-carousel",D.selectedItem)}function P(D){a("action",D),z(D)}function z(D){const j="PLAY_RESUME",W="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],G=[12,55,"35_r","54_r"],{game_id:X,season_id:H}=D.game;let Y={seasonId:H,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[X],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};D.action===j?(Y.categoryIds=$,Y.advancedFilter.playListTitle="Resumen",a("openmedia",Y)):D.action===W&&(Y.categoryIds=G,Y.advancedFilter.playListTitle="Goles",a("openmedia",Y))}async function L(){try{if(!r.awaitForSeasons&&!r.games){const D=(await O(3)).find($=>$._id===1),j=D.seasons[0],W=[{id:j.id,type:j.type}];D&&D.tournament&&a("tournament-selected",D.tournament),j.related_seasons&&j.related_seasons.length&&W.push(...j.related_seasons.map($=>({id:$.id,type:$.type}))),await A(W,!1)}}catch(D){throw new Error(D)}}return t.onMounted(()=>{S()}),L(),(D,j)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:i,class:"calendar-by-game",style:t.normalizeStyle(p.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(VG,{key:0,"full-tournament-schedule":n.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":s.value,"games-pages":m.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:P},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&v.value?(t.openBlock(),t.createBlock(yH,{key:0,"match-days":v.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":s.value,"default-match-day-key":c.value,"closest-match-day":e.sortCalendar?C.value:"",onChangeMatchDay:R},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",mW,[h.value?(t.openBlock(),t.createBlock(t.unref(zk),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?h.value[0]:h.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType&&!e.isTeamGamePerPage,"items-to-show":e.areGamesCarouselType&&!e.isTeamGamePerPage?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType&&!e.isTeamGamePerPage,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:M},{default:t.withCtx(({item:W})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(fW,{key:0,game:W},null,8,["game"])):(t.openBlock(),t.createBlock(MG,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":W,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":s.value,"is-round-mode":e.isRoundMode,onAction:P},null,8,["team-id","show-videos","games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},yW=Fc(gW,[["__scopeId","data-v-887f5275"]]);function _W(){return Wk().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Wk(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const vW=typeof Proxy=="function",bW="devtools-plugin:setup",xW="plugin:settings:set";let oh,Cb;function wW(){var e;return oh!==void 0||(typeof window<"u"&&window.performance?(oh=!0,Cb=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(oh=!0,Cb=globalThis.perf_hooks.performance):oh=!1),oh}function kW(){return wW()?Cb.now():Date.now()}class CW{constructor(a,r){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=a,this.hook=r;const d={};if(a.settings)for(const s in a.settings){const i=a.settings[s];d[s]=i.defaultValue}const f=`__vue-devtools-plugin-settings__${a.id}`;let n=Object.assign({},d);try{const s=localStorage.getItem(f),i=JSON.parse(s);Object.assign(n,i)}catch{}this.fallbacks={getSettings(){return n},setSettings(s){try{localStorage.setItem(f,JSON.stringify(s))}catch{}n=s},now(){return kW()}},r&&r.on(xW,(s,i)=>{s===this.plugin.id&&this.fallbacks.setSettings(i)}),this.proxiedOn=new Proxy({},{get:(s,i)=>this.target?this.target.on[i]:(..._)=>{this.onQueue.push({method:i,args:_})}}),this.proxiedTarget=new Proxy({},{get:(s,i)=>this.target?this.target[i]:i==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(i)?(..._)=>(this.targetQueue.push({method:i,args:_,resolve:()=>{}}),this.fallbacks[i](..._)):(..._)=>new Promise(m=>{this.targetQueue.push({method:i,args:_,resolve:m})})})}async setRealTarget(a){this.target=a;for(const r of this.onQueue)this.target.on[r.method](...r.args);for(const r of this.targetQueue)r.resolve(await this.target[r.method](...r.args))}}function EW(e,a){const r=e,d=Wk(),f=_W(),n=vW&&r.enableEarlyProxy;if(f&&(d.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!n))f.emit(bW,e,a);else{const s=n?new CW(r,f):null;(d.__VUE_DEVTOOLS_PLUGINS__=d.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:r,setupFn:a,proxy:s}),s&&a(s.proxiedTarget)}}/*!
15
15
  * vuex v4.0.2
16
16
  * (c) 2021 Evan You
17
17
  * @license MIT
@@ -5576,6 +5576,8 @@ const eq = { class: "game-info__teams" }, aq = { class: "game-info__teams__team_
5576
5576
  x.value = [];
5577
5577
  const B = m.value && m.value.seasonsGames ? m.value.seasonsGames.map((U) => {
5578
5578
  const W = U.games.reduce((j, G) => {
5579
+ if (a.onlyGamesTeamId && a.onlyGamesTeamId !== G.home_team && a.onlyGamesTeamId !== G.visiting_team)
5580
+ return j;
5579
5581
  const X = { ...G };
5580
5582
  return X.dateTimeMillis = new Date(X.date_time_utc).valueOf(), X.home_team = b.value.find(
5581
5583
  (H) => H.team_id === G.home_team
@@ -5790,7 +5792,7 @@ const eq = { class: "game-info__teams" }, aq = { class: "game-info__teams__team_
5790
5792
  ], 64))
5791
5793
  ], 4));
5792
5794
  }
5793
- }, QY = /* @__PURE__ */ Uu(JY, [["__scopeId", "data-v-adc76593"]]);
5795
+ }, QY = /* @__PURE__ */ Uu(JY, [["__scopeId", "data-v-887f5275"]]);
5794
5796
  function tZ() {
5795
5797
  return aR().__VUE_DEVTOOLS_GLOBAL_HOOK__;
5796
5798
  }
@@ -84793,11 +84795,11 @@ const t1e = { class: "dropdown" }, e1e = { class: "selected-item" }, a1e = {
84793
84795
  },
84794
84796
  setup(t) {
84795
84797
  const e = t, a = A3(
84796
- () => import("./FilterSubcategories-a7b96423-Bs67-HFD-d4c37943.js")
84798
+ () => import("./FilterSubcategories-a7b96423-Bs67-HFD-506eaa34.js")
84797
84799
  ), c = A3(
84798
- () => import("./FilterConditions-dc6b25de-CdawgDTp-6e718beb.js")
84800
+ () => import("./FilterConditions-dc6b25de-CdawgDTp-1fc84652.js")
84799
84801
  ), p = A3(
84800
- () => import("./FilterField-37ad154d-PFd8HpMJ-aacb38a5.js")
84802
+ () => import("./FilterField-37ad154d-PFd8HpMJ-b1910c3a.js")
84801
84803
  ), r = [
84802
84804
  {
84803
84805
  name: "Sub categorías",