@golstats/gsc-landing 1.0.100 → 1.0.101

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -25,7 +25,7 @@
25
25
  * Vue 3 Carousel 0.3.1
26
26
  * (c) 2023
27
27
  * @license MIT
28
- */const fe={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},tl={itemsToShow:{default:fe.itemsToShow,type:Number},itemsToScroll:{default:fe.itemsToScroll,type:Number},wrapAround:{default:fe.wrapAround,type:Boolean},throttle:{default:fe.throttle,type:Number},snapAlign:{default:fe.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:fe.transition,type:Number},breakpoints:{default:fe.breakpoints,type:Object},autoplay:{default:fe.autoplay,type:Number},pauseAutoplayOnHover:{default:fe.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:fe.mouseDrag,type:Boolean},touchDrag:{default:fe.touchDrag,type:Boolean},dir:{default:fe.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:fe.i18n,type:Object},settings:{default(){return{}},type:Object}};function O1({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function E1({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function Cn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function x1({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:Cn({val:r,max:t-i,min:0})}function ol(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...ol(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function kn({val:e,max:a,min:t=0}){return e>a?kn({val:e-(a+1),max:a,min:t}):e<t?kn({val:e+(a+1),max:a,min:t}):e}function M1(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function V1(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function R1(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var F1=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},fe))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},R1(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),z1=o.defineComponent({name:"Carousel",props:tl,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),p=o.ref(0),c=o.reactive(Object.assign({},fe));let d=Object.assign({},fe),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=o.ref(0),u=o.ref(0),g=o.ref(0),b=o.ref(0);let A,C;o.provide("config",c),o.provide("slidesCount",p),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function k(){h=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),L(d)}function j(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,K)=>+K-+x);let R=Object.assign({},d);w.some(x=>{const K=window.matchMedia(`(min-width: ${x}px)`).matches;return K&&(R=Object.assign(Object.assign({},R),h[x])),K}),L(R)}function L(w){Object.entries(w).forEach(([R,x])=>c[R]=x)}const D=V1(()=>{j(),U()},16);function U(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function _(){p.value<=0||(u.value=Math.ceil((p.value-1)/2),g.value=O1({config:c,slidesCount:p.value}),b.value=E1({config:c,slidesCount:p.value}),c.wrapAround||(f.value=Cn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>U()),setTimeout(()=>U(),1e3),j(),N(),window.addEventListener("resize",D,{passive:!0}),t("init")}),o.onUnmounted(()=>{C&&clearTimeout(C),A&&clearInterval(A),window.removeEventListener("resize",D,{passive:!0})});let P=!1;const oe={x:0,y:0},ie={x:0,y:0},Y=o.reactive({x:0,y:0}),se=o.ref(!1),pe=o.ref(!1),He=()=>{se.value=!0},_e=()=>{se.value=!1};function Ve(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||(P=w.type==="touchstart",P||w.preventDefault(),!(!P&&w.button!==0||V.value)&&(oe.x=P?w.touches[0].clientX:w.clientX,oe.y=P?w.touches[0].clientY:w.clientY,document.addEventListener(P?"touchmove":"mousemove",Te,!0),document.addEventListener(P?"touchend":"mouseup",Ne,!0)))}const Te=M1(w=>{pe.value=!0,ie.x=P?w.touches[0].clientX:w.clientX,ie.y=P?w.touches[0].clientY:w.clientY;const R=ie.x-oe.x,x=ie.y-oe.y;Y.y=x,Y.x=R},c.throttle);function Ne(){const w=c.dir==="rtl"?-1:1,R=Math.sign(Y.x)*.4,x=Math.round(Y.x/l.value+R)*w;if(x&&!P){const K=Oe=>{Oe.stopPropagation(),window.removeEventListener("click",K,!0)};window.addEventListener("click",K,!0)}M(f.value-x),Y.x=0,Y.y=0,pe.value=!1,document.removeEventListener(P?"touchmove":"mousemove",Te,!0),document.removeEventListener(P?"touchend":"mouseup",Ne,!0)}function N(){!c.autoplay||c.autoplay<=0||(A=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||F()},c.autoplay))}function v(){A&&(clearInterval(A),A=null),N()}const V=o.ref(!1);function M(w){const R=c.wrapAround?w:Cn({val:w,max:g.value,min:b.value});f.value===R||V.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),V.value=!0,m.value=f.value,f.value=R,C=setTimeout(()=>{if(c.wrapAround){const x=kn({val:R,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),V.value=!1,v()},c.transition))}function F(){M(f.value+c.itemsToScroll)}function I(){M(f.value-c.itemsToScroll)}const G={slideTo:M,next:F,prev:I};o.provide("nav",G),o.provide("isSliding",V);const W=o.computed(()=>x1({config:c,currentSlide:f.value,slidesCount:p.value}));o.provide("slidesToScroll",W);const ce=o.computed(()=>{const w=c.dir==="rtl"?-1:1,R=W.value*l.value*w;return{transform:`translateX(${Y.x-R}px)`,transition:`${V.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function le(){k(),j(),_(),U(),v()}Object.keys(tl).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],le)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&M(Number(w))}),o.watch(p,_),t("before-init"),k();const Re={config:c,slidesCount:p,slideWidth:l,next:F,prev:I,slideTo:M,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:u};n({updateBreakpointsConfigs:j,updateSlidesData:_,updateSlideWidth:U,initDefaultConfigs:k,restartCarousel:le,slideTo:M,next:F,prev:I,nav:G,data:Re});const Be=a.default||a.slides,ve=a.addons,Ie=o.reactive(Re);return()=>{const w=ol(Be==null?void 0:Be(Ie)),R=(ve==null?void 0:ve(Ie))||[];w.forEach((we,Ae)=>we.props.index=Ae);let x=w;if(c.wrapAround){const we=w.map((Ce,ae)=>o.cloneVNode(Ce,{index:-w.length+ae,isClone:!0,key:`clone-before-${ae}`})),Ae=w.map((Ce,ae)=>o.cloneVNode(Ce,{index:w.length+ae,isClone:!0,key:`clone-after-${ae}`}));x=[...we,...w,...Ae]}r.value=w,p.value=Math.max(w.length,1);const K=o.h("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},x),Oe=o.h("div",{class:"carousel__viewport"},K);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":V.value,"is-dragging":pe.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:He,onMouseleave:_e},[Oe,R,o.h(F1)])}}}),Sn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Sn||(Sn={}));const T1={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 N1(e){return e in Sn}const Bn=e=>{const a=o.inject("config",o.reactive(Object.assign({},fe))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!N1(t))return;const s=T1[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};Bn.props={name:String,title:String};const v1=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},fe))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),p=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:d,wrapAround:h,i18n:f}=i,m=d==="rtl",u=o.h("button",{type:"button",class:["carousel__prev",!h&&p.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(Bn,{name:m?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!h&&p.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(Bn,{name:m?"arrowLeft":"arrowRight"}));return[u,g]};var P1=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},fe))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const d=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=d&&e.index<=h};return()=>{var d;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const Ye=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},I1={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},j1=Ye(I1,[["__scopeId","data-v-687d929a"]]),U1={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e;o.useCssVars(c=>({"26769adc":i.value,"2678c95c":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const d=t.matchDays.find(h=>h.key===c);p(d||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const d=c.find(h=>h.key===t.defaultMatchDayKey);l.value=d||c[0],a("change-match-day",l.value)}else t.closestMatchDay&&(l.value=c.find(d=>d.key===t.closestMatchDay)||{})},{immediate:!0});function p(c,d=!1){d&&n.value&&n.value.slideTo(c.index),l.value=c,a("change-match-day",l.value)}return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(z1),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(v1))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,h=>(o.openBlock(),o.createBlock(o.unref(P1),{key:h.key},{default:o.withCtx(()=>[o.createVNode(j1,o.mergeProps(t,{"match-day":h,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},D1=Ye(U1,[["__scopeId","data-v-1621f164"]]);function Vt(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function al(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 G1(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 H1={class:"game-info__teams"},L1={class:"game-info__teams__team__logo"},K1=["src"],q1={class:"game-info__teams__detail"},Z1={key:0,class:"game-info__teams__detail__pre-game"},Q1={class:"game-info__teams__team__logo away"},Y1=["src"],W1={key:0},J1={key:0},X1={key:1},_1={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,t=o.computed(()=>{let c=a.game.schedule.split(":");return c.pop(),c=c.join(":"),c}),n=o.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),s=o.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=o.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),r=o.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=o.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),p=o.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"game-info",style:o.normalizeStyle(e.isLandingMode?"gap:5px":"")},[o.createElementVNode("div",H1,[o.createElementVNode("div",{class:"game-info__teams__team",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),o.createElementVNode("div",L1,[o.createElementVNode("img",{src:o.unref(Vt)(e.game.home_team.team_id),alt:""},null,8,K1)])],4),o.createElementVNode("div",q1,[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("div",Z1,[o.createElementVNode("div",null,[o.createElementVNode("span",{style:o.normalizeStyle(p.value)},o.toDisplayString(t.value),5),o.createTextVNode(),o.createElementVNode("span",{style:o.normalizeStyle(l.value)},"CST",4)])])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:o.normalizeStyle(r.value)},[o.createElementVNode("span",null,o.toDisplayString(e.game.score[0])+" - "+o.toDisplayString(e.game.score[1]),1)],4))]),o.createElementVNode("div",{class:"game-info__teams__team away",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",Q1,[o.createElementVNode("img",{src:o.unref(Vt)(e.game.visiting_team.team_id),alt:""},null,8,Y1)]),o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),o.createElementVNode("div",{class:"game-info__status",style:o.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("span",W1,[e.isTelevisionVisible?(o.openBlock(),o.createElementBlock("span",J1,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("span",X1,o.toDisplayString(o.unref(G1)(e.game)),1))],4)],4))}},nl=Ye(_1,[["__scopeId","data-v-a6b3fc44"]]),il=e=>(o.pushScopeId("data-v-e2fc9ed0"),e=e(),o.popScopeId(),e),$1={class:"game-status"},eb={key:0,class:"game-status__day__live"},tb=il(()=>o.createElementVNode("span",null,"LIVE",-1)),ob=il(()=>o.createElementVNode("span",{class:"dot"},null,-1)),ab=[tb,ob],nb={key:0,class:"game-status__round"},ib={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,t=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=o.computed(()=>{let r="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);r=`${l.getDate()} ${t[l.getMonth()]}`}return r}),s=o.computed(()=>({"font-size":a.fontSize})),i=o.computed(()=>{let r=[];return a.isLive?r.push("live"):a.status!==1&&r.push("pre-match"),r});return(r,l)=>(o.openBlock(),o.createElementBlock("div",$1,[o.createElementVNode("div",{class:o.normalizeClass(["game-status__day",i.value]),style:o.normalizeStyle(s.value)},[e.isLive?(o.openBlock(),o.createElementBlock("div",eb,ab)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.value),1)],64))],6),e.isRoundMode?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",nb,o.toDisplayString(e.roundAbbreviation),1))]))}},sl=Ye(ib,[["__scopeId","data-v-e2fc9ed0"]]),We={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},sb=e=>(o.pushScopeId("data-v-5711c5a6"),e=e(),o.popScopeId(),e),rb={class:"actions"},lb={class:"actions__row"},cb=sb(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),db=[cb],mb={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pb=["fill"],ub={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hb=["fill"],gb={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor}));function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",rb,[o.createElementVNode("div",lb,[o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[0]||(r[0]=l=>s(o.unref(We).STATISTICS))},db,4),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[1]||(r[1]=l=>s(o.unref(We).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",mb,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,pb)]))],4)):o.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=l=>s(o.unref(We).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",ub,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,hb)]))])):o.createCommentVNode("",!0)])]))}},fb=Ye(gb,[["__scopeId","data-v-5711c5a6"]]),On=e=>(o.pushScopeId("data-v-d64f8667"),e=e(),o.popScopeId(),e),yb={class:"actions"},bb={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wb=["fill"],Ab={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cb=["fill"],kb=On(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Sb=[kb],Bb={key:0,class:"actions__videos"},Ob={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eb=["fill"],xb={key:1,class:"actions__videos__thumbnails"},Mb=On(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),Vb=On(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),Rb={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fb=["stroke"],zb={__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 t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor})),s=o.computed(()=>{const p=[];return t.componentWidth<540&&p.push("mobile"),p}),i=o.computed(()=>t.componentWidth>730),r=o.computed(()=>({color:t.thumbnailColor,fontFamily:t.thumbnailFontFamily,fontSize:t.thumbnailFontSize}));function l(p){a("action",p)}return(p,c)=>(o.openBlock(),o.createElementBlock("div",yb,[o.createElementVNode("div",{class:o.normalizeClass(["actions__buttons",s.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=d=>l(o.unref(We).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",bb,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,wb)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[1]||(c[1]=d=>l(o.unref(We).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",Ab,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,Cb)]))],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[2]||(c[2]=d=>l(o.unref(We).STATISTICS))},Sb,4)],2),i.value?(o.openBlock(),o.createElementBlock("div",Bb,[e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=d=>l(o.unref(We).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",Ob,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,Eb)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",xb,[e.hasGoals?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=d=>l(o.unref(We).PLAY_GOALS))},[Mb,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Goles ",4)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=d=>l(o.unref(We).PLAY_RESUME))},[Vb,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Resumen ",4)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=d=>l(o.unref(We).SHOW_GAME_EVENTS))},[(o.openBlock(),o.createElementBlock("svg",Rb,[o.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Fb)]))],2)):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},Tb=Ye(zb,[["__scopeId","data-v-d64f8667"]]),jo=e=>(o.pushScopeId("data-v-51906051"),e=e(),o.popScopeId(),e),Nb={class:"row-landing__game-status"},vb={class:"row-landing__game-actions"},Pb={class:"row-full__game-status"},Ib={class:"row-full__game-info"},jb={key:0},Ub={class:"row-full__game-actions"},Db={class:"game-events-container"},Gb=jo(()=>o.createElementVNode("div",{class:"separator"},null,-1)),Hb=jo(()=>o.createElementVNode("div",null,null,-1)),Lb={class:"game-events__data"},Kb={class:"game-events__data__team"},qb=["src"],Zb={class:"game-events__data__team__event__text"},Qb={class:"game-events__data__team away"},Yb={class:"game-events__data__team__event__text"},Wb=["src"],Jb=jo(()=>o.createElementVNode("div",null,null,-1)),Xb=jo(()=>o.createElementVNode("div",null,null,-1)),_b={__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 t=e,n={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},s=o.ref(!1),i=o.ref(!1),r=o.computed(()=>{const b={homeTeam:[],awayTeam:[]};return t.game&&t.game.game_status!==4&&!t.game.is_live&&t.game.minutes&&(b.homeTeam.push(...u(t.game.minutes.home_goals_minutes,n.GOAL)),b.homeTeam.push(...u(t.game.minutes.home_red_cards_minutes,n.RED_CARD)),b.homeTeam.push(...u(t.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),b.awayTeam.push(...u(t.game.minutes.visiting_goals_minutes,n.GOAL)),b.awayTeam.push(...u(t.game.minutes.away_red_cards_minutes,n.RED_CARD)),b.awayTeam.push(...u(t.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),b}),l=o.computed(()=>{const b=r.value.homeTeam.length,A=r.value.awayTeam.length;return b+A>0}),p=o.computed(()=>{const b=t.game.score[0],A=t.game.score[1];return b>0||A>0}),c=o.computed(()=>({"background-color":t.backgroundColor})),d=o.computed(()=>({height:t.height})),h=o.computed(()=>{const b={game:[],events:[]};return t.componentWidth<500?(b.events.push("break-point-3"),b.game.push("break-point-2")):t.componentWidth<730?(b.game.push("break-point-2"),b.events.push("break-point-2")):t.componentWidth<910&&(b.game.push("break-point-1"),b.events.push("break-point-1")),b}),f=o.computed(()=>({isLandingMode:t.isLandingMode,game:t.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),m=o.computed(()=>({"font-size":t.televisionFontSize,"font-family":t.televisionFontFamily,color:t.televisionColor}));o.watch(()=>t.componentWidth,b=>{i.value=b<910});function u(b,A){return b.map(C=>({iconUrl:A,text:C}))}function g(b){b===We.SHOW_GAME_EVENTS?s.value=!s.value:a("action",{action:b,game:t.game})}return(b,A)=>e.isLandingMode?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-landing",style:o.normalizeStyle(c.value)},[o.createVNode(nl,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),o.createElementVNode("div",Nb,[o.createVNode(sl,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(al)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),o.createElementVNode("div",vb,[o.createVNode(fb,{"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:g},null,8,["is-live","has-video","game-status"])])],4)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"row-full-container",style:o.normalizeStyle(c.value)},[o.createElementVNode("div",{class:o.normalizeClass(["row-full",h.value.game]),style:o.normalizeStyle(d.value)},[o.createElementVNode("div",Pb,[o.createVNode(sl,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(al)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),o.createElementVNode("div",Ib,[o.createVNode(nl,o.mergeProps(f.value,{"is-television-visible":i.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-full__television",style:o.normalizeStyle(m.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(o.openBlock(),o.createElementBlock("span",jb,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),o.createElementVNode("div",Ub,[o.createVNode(Tb,{"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":l.value,"has-goals":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?p.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":s.value,"component-width":e.componentWidth,onAction:g},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])])],6),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",Db,[Gb,o.createElementVNode("div",{class:o.normalizeClass(["game-events",h.value.events])},[Hb,o.createElementVNode("div",Lb,[o.createElementVNode("div",Kb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.homeTeam,(C,k)=>(o.openBlock(),o.createElementBlock("div",{key:`h${k}`,class:"game-events__data__team__event"},[o.createElementVNode("img",{src:C.iconUrl},null,8,qb),o.createElementVNode("div",Zb,o.toDisplayString(C.text),1)]))),128))]),o.createElementVNode("div",Qb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.awayTeam,(C,k)=>(o.openBlock(),o.createElementBlock("div",{key:`a${k}`,class:"game-events__data__team__event"},[o.createElementVNode("div",Yb,o.toDisplayString(C.text),1),o.createElementVNode("img",{src:C.iconUrl},null,8,Wb)]))),128))])]),Jb,Xb],2)],512),[[o.vShow,s.value]])]),_:1})],4))}},rl=Ye(_b,[["__scopeId","data-v-51906051"]]),$b={class:"calendar-table"},ew={__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 t=e;function n(i){return i%2===0?t.evenRowColor:t.oddRowColor}function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",$b,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.gamesPerPage,(l,p)=>(o.openBlock(),o.createBlock(rl,{key:l.game_id,game:l,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(p),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:s},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},tw=Ye(ew,[["__scopeId","data-v-c7bf1232"]]),ow={class:"calendar-by-team"},aw={class:"playing-as-picker"},nw={class:"calendar-by-team__page"},iw={__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 t=e,n=o.ref(0),s=o.computed(()=>{let p=[];if(t.gamesPages.size>0){const c=Array.from(t.gamesPages.entries()).reduce((d,[h,f])=>{const m=Number(h),u=Number.isNaN(m)?h:`Jornada ${m<10?"0":""}${m}`,g=f.reduce((b,A)=>(b.push(...A),b),[]).filter(b=>n.value===0||n.value===1&&b.visiting_team.team_id===t.teamId?!0:n.value===2&&b.home_team.team_id===t.teamId);return g.length>0&&d.push({roundName:u,games:g}),d},[]);p.push(c)}return p});function i(p){a("action",p)}function r(p){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=p,document.querySelector("#opc"+p).classList.add("selected")}function l(p){let c=p;switch(p){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(p,c)=>(o.openBlock(),o.createElementBlock("div",ow,[o.createElementVNode("div",aw,[o.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=d=>r(0))}," Todas "),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=d=>r(1))},"Visitante"),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=d=>r(2))},"Local")]),o.createVNode(o.unref(el),{"is-pagination-visible":e.isPaginationVisible,items:s.value},{default:o.withCtx(({item:d})=>[o.createElementVNode("div",nw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d,(h,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"calendar-by-team__page__round"},[o.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:o.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},o.toDisplayString(l(h.roundName)),5),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.games,m=>(o.openBlock(),o.createBlock(rl,{key:m.game_id,game:m,"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:i},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"])]))}},sw=Ye(iw,[["__scopeId","data-v-6e0e406c"]]),rw="_image62Icon_1ybd3_2",lw="_imgChivasIcon_1ybd3_11",cw="_nameDesktop_1ybd3_18",dw="_nameMobile_1ybd3_31",mw="_homeTeam_1ybd3_43",pw="_sbado16De_1ybd3_54",uw="_gameDate_1ybd3_63",hw="_sab16092023_1ybd3_67",gw="_div_1ybd3_80",fw="_divscore_1ybd3_89",yw="_cst_1ybd3_99",bw="_hour_1ybd3_108",ww="_score_1ybd3_109",Aw="_chivasTvCanal_1ybd3_120",Cw="_gameStatus_1ybd3_132",kw="_matchInfo_1ybd3_143",Sw="_image62Icon1_1ybd3_156",Bw="_name_1ybd3_18",Ow="_imgAtlasIcon_1ybd3_178",Ew="_name1_1ybd3_185",xw="_awayTeam_1ybd3_197",Mw="_matchCard_1ybd3_208",Vw={image62Icon:rw,imgChivasIcon:lw,nameDesktop:cw,nameMobile:dw,homeTeam:mw,sbado16De:pw,gameDate:uw,sab16092023:hw,div:gw,divscore:fw,cst:yw,hour:bw,score:ww,chivasTvCanal:Aw,gameStatus:Cw,matchInfo:kw,image62Icon1:Sw,name:Bw,imgAtlasIcon:Ow,name1:Ew,awayTeam:xw,matchCard:Mw},Rw=["src"],Fw=["src"],zw={key:0},Tw=["src"],Nw=["src"],vw={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,t=o.computed(()=>{const s={...a.game};return s.gameSchedule=a.game.schedule.split(":"),s.gameSchedule.pop(),s.gameSchedule=s.gameSchedule.join(":"),s});function n(s,i){const r=new Date(s);if(i==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],p=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[r.getDay()]} ${r.getDate()} de ${p[r.getMonth()]}`}else return`${r.getDate()}-${r.getMonth()+1}-${r.getFullYear()}`}return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(s.$style.matchCard)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.homeTeam),id:"container-home-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon),alt:"",src:o.unref(Vt)(t.value.home_team.team_id,150)},null,10,Rw),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgChivasIcon),alt:"",src:o.unref(Vt)(t.value.home_team.team_id)},null,10,Fw),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameDesktop),id:"team-name"},o.toDisplayString(t.value.home_team.colloquial_name),3),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameMobile),id:"team-name"},o.toDisplayString(t.value.home_team.acronym),3)],2),t.value.game_status==4?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.sbado16De)},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.sab16092023)},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.hour)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.div)},o.toDisplayString(t.value.gameSchedule),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.cst)},"CST",2)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.chivasTvCanal)},o.toDisplayString(t.value.tv_stations.join(", ")),3)],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass([s.$style.sbado16De,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass([s.$style.sab16092023,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.score)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.divscore)},o.toDisplayString(t.value.score.join(" - ")),3)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.gameStatus)},[o.createTextVNode(" Finalizado "),t.value.penalties_score_home_team!=0||t.value.penalties_score_visiting_team!=0?(o.openBlock(),o.createElementBlock("span",zw," - Penales "+o.toDisplayString(t.value.penalties_score_home_team)+" - "+o.toDisplayString(t.value.penalties_score_visiting_team),1)):o.createCommentVNode("",!0)],2)],2)),o.createElementVNode("div",{class:o.normalizeClass(s.$style.awayTeam),id:"container-away-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon1),alt:"",src:o.unref(Vt)(t.value.visiting_team.team_id,150)},null,10,Tw),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name),id:"team-name"},o.toDisplayString(t.value.visiting_team.colloquial_name),3),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgAtlasIcon),alt:"",src:o.unref(Vt)(t.value.visiting_team.team_id)},null,10,Nw),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name1),id:"team-name"},o.toDisplayString(t.value.visiting_team.acronym),3)],2)],2))}},Pw={$style:Vw},Iw=Ye(vw,[["__cssModules",Pw]]),jw={class:"calendar-by-game__carousel"},Uw={__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}},tournamentType:{type:Number,default:0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges"],setup(e,{emit:a}){const t=e;let n=null;const s=o.ref([]),i=o.ref({}),r=o.ref(0),l=o.ref(null),p=o.ref({}),c=o.ref(new Map),d=o.ref(!1),h=o.ref(null),f=o.ref(null),m=o.ref(null),u=o.computed(()=>t.isCup),g=o.computed(()=>t.isCupLegacy),b=o.computed(()=>({height:t.height,width:t.width})),A=o.computed(()=>{if(t.games)return Y(t.games,t.isTeamGamePerPage);{const N=c.value.get(p.value.key);return N&&t.isTeamGamePerPage&&t.onlyGamesTeamId?[N[0].filter(v=>v.home_team.team_id===t.onlyGamesTeamId||v.visiting_team.team_id===t.onlyGamesTeamId)]:N||[]}}),C=o.ref([]),k=o.ref([]),j=o.computed(()=>{const N=k.value&&k.value.length?U(i.value):D(i.value),v=C.value.find(V=>V.key===N);return v&&d.value&&(L(!1),He(v)),N});o.watch(()=>t.seasons,N=>{N&&N.length&&(L(!0),s.value=N.map(v=>v.id),oe(N,!0))},{immediate:!0,deep:!0}),o.watch(c,N=>{if(t.onlyGamesTeamId&&N.size){const v=Array.from(N.values()).reduce((V,M)=>(M.forEach(F=>{const I=F.find(G=>G.home_team.team_id===t.onlyGamesTeamId||G.visiting_team.team_id===t.onlyGamesTeamId);I&&V.push(I)}),V),[]);a("change-games-by-client-privileges",v)}},{immediate:!0});function L(N){N.value=N}function D(N){const v=Object.entries(Object.entries(N).reduce((F,[I,G])=>(F[I]=[],G.forEach(W=>{W.games.forEach(ce=>{const le=new Date(ce.date_time_utc).getTime()+66e5;F[I].push(le)})}),F),{}));if(!v.length)return"1";const V=new Date().getTime(),M=v.reduce((F,[I,G])=>{let W=null;return G.forEach(ce=>{const le=ce-V;le>=0&&(W===null||le<W)&&(W=le)}),W&&(F.shortestTime===null||W<F.shortestTime)&&(F.round=I,F.shortestTime=W),F},{round:"",shortestTime:null});return M.shortestTime!==null?M.round:v[v.length-1][0]}function U(N){let v=1;if(k.value.length){const V=k.value[0];for(const[M,F]of Object.entries(N))for(const I of F)if(I.games.find(G=>G.game_id===V.game_id))return M}return v}o.watch(()=>t.teamId,()=>{ie()},{immediate:!0});async function _(N,v,V=""){let M=V;try{const F={};t.token&&(F.Authorization=t.token),M||(M="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",N.forEach((W,ce)=>{M+=`${ce===0?"":"&"}seasons=${W}`}));const{data:{data:I,teams:G}}=await Jr.get(M,{headers:F});return{seasonsAndGames:I,seasonsAndTeams:G}}catch(F){if(v>0)return _(N,v-1,M);throw new Error(F)}}function P(N){for(const v of N)if(!s.value.includes(v.season_id))return!0;return!1}async function oe(N,v){try{i.value={};let V=0;const{seasonsAndGames:M,seasonsAndTeams:F}=await _(N.map(G=>G.id),3);if(v&&P(M))return;M.forEach(G=>{const{type:W}=N.find(ce=>ce.id===G.season_id);G.type=W,G.games.forEach(ce=>{ce.season_id=G.season_id}),W===0&&(V=G.season_id)}),h.value={seasonsGames:M};const{teams:I}=F.find(G=>G.season_id===V);f.value=I,a("change-teams",I),ie()}catch(V){throw new Error(V)}}function ie(){if(!f.value)return;k.value=[];const N=h.value&&h.value.seasonsGames?h.value.seasonsGames.map(v=>{const V=v.games.reduce((M,F)=>{if(t.onlyGamesTeamId&&t.onlyGamesTeamId!==F.home_team&&t.onlyGamesTeamId!==F.visiting_team)return M;const I={...F};return I.dateTimeMillis=new Date(I.date_time_utc).valueOf(),I.home_team=f.value.find(G=>G.team_id===F.home_team),I.visiting_team=f.value.find(G=>G.team_id===F.visiting_team),t.teamId&&I.home_team.team_id!==t.teamId&&I.visiting_team.team_id!==t.teamId||(M[F.matchday_abbreviation]?M[F.matchday_abbreviation][F.game_status===3?"canceled":F.date]?M[F.matchday_abbreviation][F.game_status===3?"canceled":F.date].push(I):M[F.matchday_abbreviation][F.game_status===3?"canceled":F.date]=[I]:M[F.matchday_abbreviation]={[F.game_status===3?"canceled":F.date]:[I]},t.userTeamId&&I.game_status===4&&(I.home_team.team_id===t.userTeamId||I.visiting_team.team_id===t.userTeamId)&&k.value.push(I)),M},{});for(let[M,F]of Object.entries(V))V[M]=Object.entries(F).map(([I,G])=>({date:I,games:G.sort((W,ce)=>W.dateTimeMillis-ce.dateTimeMillis)})),V[M].sort((I,G)=>I.date<G.date?-1:I.date>G.date?1:0);return{type:v.type,weight:v.type===0?0:v.type===2?1:2,schedule:V}}):[];N.sort((v,V)=>v.weight-V.weight),i.value=N.reduce((v,V)=>{for(const[M,F]of Object.entries(V.schedule))if(V.type===0)if([1,2].includes(t.tournamentType)){const I=B1.get(t.tournamentType);if(I){const G=I.get(M);G&&(v[G.matchDayAbbreviation]=F)}}else if(u.value){const I=M.replace("M",""),G=I;g.value?v[S1[I]||G]=F:v[k1[M]||G]=F}else v[Number(M.replace("M","")).toString()]=F;else V.type===2?M.charAt(1)=="I"?v[`PI${Number(M.replace("PI",""))}`]=F:v[`R${Number(M.replace("PO",""))}`]=F:V.type===1&&(v[C1[M]]=F);return v},{}),c.value=new Map,C.value=Array.from(Object.entries(i.value).reduce((v,[V,M],F)=>{const I=Number(V);let G="";Number.isNaN(I)?G=V:G=I<10?`0${I}`:V,v.set(V,{key:V,value:I,valueText:G,index:F});const W=M.reduce((le,Re)=>(Re.games.forEach(Be=>{Be.game_id===t.defaultGameId&&(m.value=V),Be.roundAbbreviation=Number.isNaN(I)?I:`J ${I}`}),le=le.concat(Re.games),le),[]),ce=Y(W);return c.value.set(V,ce),v},new Map).values())}function Y(N,v=!1){const V=[];if(t.gamesPerMatchDay>0){let M=[];N.forEach((F,I)=>{M.push(F),(I+1)%t.gamesPerMatchDay===0&&(V.push([...M]),M=[])}),M.length&&V.push([...M])}else V.push(N);return v&&t.isTeamGamePerPage&&t.defaultGameId?V.filter(M=>M.game_id===t.defaultGameId||M.gameId===t.defaultGameId):V}async function se(N){try{const{data:v}=await Jr.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return v}catch(v){if(N>0)return se(N-1);throw new Error(v)}}function pe(){if(window.ResizeObserver)n=new ResizeObserver(()=>{r.value=l.value.clientWidth}),n.observe(l.value);else throw new Error("Resize observer not supported!")}function He(N){p.value.value!==N.value&&(p.value=N,a("change-round",N))}function _e(N){t.areGamesCarouselType&&a("change-game-carousel",N.selectedItem)}function Ve(N){a("action",N),Te(N)}function Te(N){const v="PLAY_RESUME",V="PLAY_GOALS",M=[607,608,12,55,54,35,14,52,15,53,466,477],F=[12,55,"35_r","54_r"],{game_id:I,season_id:G}=N.game;let W={seasonId:G,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[I],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};N.action===v?(W.categoryIds=M,W.advancedFilter.playListTitle="Resumen",a("openmedia",W)):N.action===V&&(W.categoryIds=F,W.advancedFilter.playListTitle="Goles",a("openmedia",W))}async function Ne(){try{if(!t.awaitForSeasons&&!t.games){const N=(await se(3)).find(M=>M._id===1),v=N.seasons[0],V=[{id:v.id,type:v.type}];N&&N.tournament&&a("tournament-selected",N.tournament),v.related_seasons&&v.related_seasons.length&&V.push(...v.related_seasons.map(M=>({id:M.id,type:M.type}))),await oe(V,!1)}}catch(N){throw new Error(N)}}return o.onMounted(()=>{pe()}),Ne(),(N,v)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"calendarByGame",ref:l,class:"calendar-by-game",style:o.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(o.openBlock(),o.createBlock(sw,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":c.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Ve},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.areRoundsVisible&&C.value?(o.openBlock(),o.createBlock(D1,{key:0,"match-days":C.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":m.value,"closest-match-day":e.sortCalendar?j.value:"",onChangeMatchDay:He},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):o.createCommentVNode("",!0),o.createElementVNode("div",jw,[A.value?(o.openBlock(),o.createBlock(o.unref(el),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?A.value[0]:A.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType&&!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:_e},{default:o.withCtx(({item:V})=>[e.areGamesCarouselType?(o.openBlock(),o.createBlock(Iw,{key:0,game:V},null,8,["game"])):(o.openBlock(),o.createBlock(tw,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":V,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,onAction:Ve},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"])):o.createCommentVNode("",!0)])],64))],4))}},Dw=Ye(Uw,[["__scopeId","data-v-850d78df"]]),Gw=["Mi posición","Tabla General","Fases","Play Off"],Hw={components:{GscSwitchComponent:an,GSCGeneraltable:r0,GSCCalendarByGame:Dw},props:{privileges:{type:Object,default:()=>{}},isPublic:{type:Boolean,default:!0},season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},tournamentType:{type:Number,default:0},tournament:{type:Number,default:1},teamId:{type:Number,default:0},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{tableTitle(){return this.tournamentType!==0?this.tournamentType===1?"Fases":"Play Off":(this.selectedOpt!=="Calendario"&&this.changeCategory(this.teamId!=0?"Mi posición":"Tabla General"),this.teamId!==0?"Mi posición":"Tabla General")},isGeneralTableVisible(){return Gw.includes(this.selectedOpt)}},watch:{tableTitle:{handler(e){this.selectedOpt=e},immediate:!0}},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}},onMount(){this.selectedOpt=this.teamId!=0?"Mi posición":"Tabla General"}},Lw={class:"gsc-calendar-table"},Kw={class:"gsc-switch-container"},qw={class:"gsc-app-component"};function Zw(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCGeneraltable"),p=o.resolveComponent("GSCCalendarByGame");return o.openBlock(),o.createElementBlock("div",Lw,[o.createElementVNode("div",Kw,[o.createVNode(r,{type:0,arrow:!1,"font-family":"Poppins-Light",buttons:[i.tableTitle,"Calendario"],height:"40px","selected-option":s.selectedOpt,"font-size":t.componentWidth>=768?"16px":"14px",width:"355px",onInput:i.changeCategory},null,8,["buttons","selected-option","font-size","onInput"])]),o.createElementVNode("div",qw,[i.isGeneralTableVisible?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(l,{isPaginationVisible:!0,"current-season-id":t.season.id,"team-default-select":t.teamId,"team-id":t.teamId,type:1,"show-videos":t.isPublic?t.privileges.vr_privileges!=0:!0,tournament:t.tournament,"type-view":t.tournamentType,"await-for-season":!0,onOpenmedia:i.onOpenMedia,onOpenTableProfile:i.onOpenProfile},null,8,["current-season-id","team-default-select","team-id","show-videos","tournament","type-view","onOpenmedia","onOpenTableProfile"]),o.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(p,{onAction:i.onAction,onOpenmedia:i.onOpenMedia,width:"100%",token:s.tokenFree,seasons:t.seasons,"tournament-type":t.tournamentType,"show-videos":!!t.isPublic,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons","tournament-type","show-videos"]),o.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const Qw=Fe(Hw,[["render",Zw],["__scopeId","data-v-124be1c8"]]),ll=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],cl=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Setiembre","Octubre","Noviembre","Diciembre"],Yw=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Set","Oct","Nov","Dic"],Ww={class:"match"},Jw={class:"match__header"},Xw={key:0,class:"match__final-tag"},_w={key:1,class:"match__final-tag__no-border"},$w={class:"match__header__match-date"},e2={class:"match__tag"},t2={class:"match__body"},o2={class:"match__data"},a2={class:"match__acronym"},n2=["src"],i2={class:"match__score"},s2=["src"],r2={class:"match__acronym"},l2={class:"match__status"},Uo=Fe({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){const a=e,t=o.computed(()=>{const n=new Date(a.data.date_time_utc);return`${ll[n.getDay()]}, ${n.getDate()} de ${cl[n.getMonth()]}`});return(n,s)=>{var i,r,l;return o.openBlock(),o.createElementBlock("section",Ww,[o.createElementVNode("div",Jw,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock("div",Xw,"FINAL")):(o.openBlock(),o.createElementBlock("div",_w)),o.createElementVNode("div",$w,o.toDisplayString(t.value),1),o.createElementVNode("div",e2,o.toDisplayString(`${Number.isNaN(Number(e.data.roundAbbreviationV2))?"":"J"}${e.data.roundAbbreviationV2}`),1)]),o.createElementVNode("div",t2,[o.createElementVNode("div",o2,[o.createElementVNode("div",a2,o.toDisplayString((i=e.data)==null?void 0:i.home_team_acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,n2),o.createElementVNode("div",i2,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((r=e.data)==null?void 0:r.schedule.replace(":00","")),1)],64))]),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,s2),o.createElementVNode("div",r2,o.toDisplayString((l=e.data)==null?void 0:l.visiting_team_acronym),1)]),o.createElementVNode("div",l2,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("CST")],64))])]),o.createElementVNode("div",{class:"match__button",onClick:s[0]||(s[0]=p=>n.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-a55efbe4"]]),c2=["src"],d2=["src"],m2={class:"coming-match__body"},p2={class:"coming-match__data"},u2=["src"],h2={style:{"margin-top":"16px"}},g2={class:"coming-match__time"},f2={class:"coming-match__cst"},y2={key:0},b2=["src"],wt=Fe({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){const a=e,t=o.computed(()=>{const n=new Date(a.data.date_time_utc);return`${ll[n.getDay()]}, ${n.getDate()} de ${a.small?Yw[n.getMonth()]:cl[n.getMonth()]}`});return(n,s)=>{var i,r,l,p,c,d,h,f,m,u,g,b,A;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.home_team)+".png",alt:"team-img"},null,10,c2),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((l=e.data)==null?void 0:l.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((p=e.data)==null?void 0:p.visiting_team)+".png",alt:"team-img"},null,10,d2),o.createElementVNode("div",m2,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(`${Number.isNaN(Number(e.data.roundAbbreviationV2))?"":"J"}${e.data.roundAbbreviationV2}`)+" | "+o.toDisplayString(t.value),3),o.createElementVNode("div",p2,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((c=e.data)==null?void 0:c.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((d=e.data)==null?void 0:d.home_team)+".png",alt:"team-img"},null,10,u2),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((h=e.data)==null?void 0:h.home_team_name),3)],2),o.createElementVNode("div",h2,[o.createElementVNode("div",g2,[e.data.game_status!==4?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.score[0])+" - "+o.toDisplayString((m=e.data)==null?void 0:m.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((u=e.data)==null?void 0:u.schedule.replace(":00","")),1)],64))]),o.createElementVNode("div",f2,[e.data.game_status===4?(o.openBlock(),o.createElementBlock("span",y2,"CST")):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((g=e.data)==null?void 0:g.visiting_team_name),3),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((b=e.data)==null?void 0:b.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((A=e.data)==null?void 0:A.visiting_team)+".png",alt:"team-img"},null,10,b2)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:s[0]||(s[0]=C=>n.$emit("clickMatch"))},[e.data.game_status===4?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Analizar previa →")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("Analizar partido →")],64))],2)],2)}}},[["__scopeId","data-v-f2738fb7"]]),w2=Fe({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:a}){const t=e,n=o.ref(null);o.watch(()=>t.modelValue,()=>{s()},{immediate:!0});function s(){n.value&&(n.value.checked=t.modelValue)}function i(r){a("update:modelValue",r.target.checked)}return o.onMounted(()=>{s()}),(r,l)=>(o.openBlock(),o.createElementBlock("input",{ref_key:"switchCustom",ref:n,id:"toggle",className:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:i},null,544))}},[["__scopeId","data-v-3571f7e0"]]);/**
28
+ */const fe={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},tl={itemsToShow:{default:fe.itemsToShow,type:Number},itemsToScroll:{default:fe.itemsToScroll,type:Number},wrapAround:{default:fe.wrapAround,type:Boolean},throttle:{default:fe.throttle,type:Number},snapAlign:{default:fe.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:fe.transition,type:Number},breakpoints:{default:fe.breakpoints,type:Object},autoplay:{default:fe.autoplay,type:Number},pauseAutoplayOnHover:{default:fe.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:fe.mouseDrag,type:Boolean},touchDrag:{default:fe.touchDrag,type:Boolean},dir:{default:fe.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:fe.i18n,type:Object},settings:{default(){return{}},type:Object}};function O1({config:e,slidesCount:a}){const{snapAlign:t,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(t){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function E1({config:e,slidesCount:a}){const{wrapAround:t,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(t||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function Cn({val:e,max:a,min:t}){return a<t?e:Math.min(Math.max(e,t),a)}function x1({config:e,currentSlide:a,slidesCount:t}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return s?r:Cn({val:r,max:t-i,min:0})}function ol(e){return e?e.reduce((a,t)=>{var n;return t.type===o.Fragment?[...a,...ol(t.children)]:((n=t.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,t]:a},[]):[]}function kn({val:e,max:a,min:t=0}){return e>a?kn({val:e-(a+1),max:a,min:t}):e<t?kn({val:e+(a+1),max:a,min:t}):e}function M1(e,a){let t;return a?function(...n){const s=this;t||(e.apply(s,n),t=!0,setTimeout(()=>t=!1,a))}:e}function V1(e,a){let t;return function(...n){t&&clearTimeout(t),t=setTimeout(()=>{e(...n),t=null},a)}}function R1(e="",a={}){return Object.entries(a).reduce((t,[n,s])=>t.replace(`{${n}}`,String(s)),e)}var F1=o.defineComponent({name:"ARIA",setup(){const e=o.inject("config",o.reactive(Object.assign({},fe))),a=o.inject("currentSlide",o.ref(0)),t=o.inject("slidesCount",o.ref(0));return()=>o.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},R1(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:t.value}))}}),z1=o.defineComponent({name:"Carousel",props:tl,setup(e,{slots:a,emit:t,expose:n}){var s;const i=o.ref(null),r=o.ref([]),l=o.ref(0),p=o.ref(0),c=o.reactive(Object.assign({},fe));let d=Object.assign({},fe),h;const f=o.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=o.ref(0),u=o.ref(0),g=o.ref(0),b=o.ref(0);let A,C;o.provide("config",c),o.provide("slidesCount",p),o.provide("currentSlide",f),o.provide("maxSlide",g),o.provide("minSlide",b),o.provide("slideWidth",l);function k(){h=Object.assign({},e.breakpoints),d=Object.assign(Object.assign(Object.assign({},d),e),{i18n:Object.assign(Object.assign({},d.i18n),e.i18n),breakpoints:void 0}),L(d)}function j(){if(!h||!Object.keys(h).length)return;const w=Object.keys(h).map(x=>Number(x)).sort((x,K)=>+K-+x);let R=Object.assign({},d);w.some(x=>{const K=window.matchMedia(`(min-width: ${x}px)`).matches;return K&&(R=Object.assign(Object.assign({},R),h[x])),K}),L(R)}function L(w){Object.entries(w).forEach(([R,x])=>c[R]=x)}const D=V1(()=>{j(),U()},16);function U(){if(!i.value)return;const w=i.value.getBoundingClientRect();l.value=w.width/c.itemsToShow}function _(){p.value<=0||(u.value=Math.ceil((p.value-1)/2),g.value=O1({config:c,slidesCount:p.value}),b.value=E1({config:c,slidesCount:p.value}),c.wrapAround||(f.value=Cn({val:f.value,max:g.value,min:b.value})))}o.onMounted(()=>{o.nextTick(()=>U()),setTimeout(()=>U(),1e3),j(),N(),window.addEventListener("resize",D,{passive:!0}),t("init")}),o.onUnmounted(()=>{C&&clearTimeout(C),A&&clearInterval(A),window.removeEventListener("resize",D,{passive:!0})});let P=!1;const oe={x:0,y:0},ie={x:0,y:0},Y=o.reactive({x:0,y:0}),se=o.ref(!1),pe=o.ref(!1),He=()=>{se.value=!0},_e=()=>{se.value=!1};function Ve(w){["INPUT","TEXTAREA","SELECT"].includes(w.target.tagName)||(P=w.type==="touchstart",P||w.preventDefault(),!(!P&&w.button!==0||V.value)&&(oe.x=P?w.touches[0].clientX:w.clientX,oe.y=P?w.touches[0].clientY:w.clientY,document.addEventListener(P?"touchmove":"mousemove",Te,!0),document.addEventListener(P?"touchend":"mouseup",Ne,!0)))}const Te=M1(w=>{pe.value=!0,ie.x=P?w.touches[0].clientX:w.clientX,ie.y=P?w.touches[0].clientY:w.clientY;const R=ie.x-oe.x,x=ie.y-oe.y;Y.y=x,Y.x=R},c.throttle);function Ne(){const w=c.dir==="rtl"?-1:1,R=Math.sign(Y.x)*.4,x=Math.round(Y.x/l.value+R)*w;if(x&&!P){const K=Oe=>{Oe.stopPropagation(),window.removeEventListener("click",K,!0)};window.addEventListener("click",K,!0)}M(f.value-x),Y.x=0,Y.y=0,pe.value=!1,document.removeEventListener(P?"touchmove":"mousemove",Te,!0),document.removeEventListener(P?"touchend":"mouseup",Ne,!0)}function N(){!c.autoplay||c.autoplay<=0||(A=setInterval(()=>{c.pauseAutoplayOnHover&&se.value||F()},c.autoplay))}function v(){A&&(clearInterval(A),A=null),N()}const V=o.ref(!1);function M(w){const R=c.wrapAround?w:Cn({val:w,max:g.value,min:b.value});f.value===R||V.value||(t("slide-start",{slidingToIndex:w,currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),V.value=!0,m.value=f.value,f.value=R,C=setTimeout(()=>{if(c.wrapAround){const x=kn({val:R,max:g.value,min:0});x!==f.value&&(f.value=x,t("loop",{currentSlideIndex:f.value,slidingToIndex:w}))}t("update:modelValue",f.value),t("slide-end",{currentSlideIndex:f.value,prevSlideIndex:m.value,slidesCount:p.value}),V.value=!1,v()},c.transition))}function F(){M(f.value+c.itemsToScroll)}function I(){M(f.value-c.itemsToScroll)}const G={slideTo:M,next:F,prev:I};o.provide("nav",G),o.provide("isSliding",V);const W=o.computed(()=>x1({config:c,currentSlide:f.value,slidesCount:p.value}));o.provide("slidesToScroll",W);const ce=o.computed(()=>{const w=c.dir==="rtl"?-1:1,R=W.value*l.value*w;return{transform:`translateX(${Y.x-R}px)`,transition:`${V.value?c.transition:0}ms`,margin:c.wrapAround?`0 -${p.value*l.value}px`:"",width:"100%"}});function le(){k(),j(),_(),U(),v()}Object.keys(tl).forEach(w=>{["modelValue"].includes(w)||o.watch(()=>e[w],le)}),o.watch(()=>e.modelValue,w=>{w!==f.value&&M(Number(w))}),o.watch(p,_),t("before-init"),k();const Re={config:c,slidesCount:p,slideWidth:l,next:F,prev:I,slideTo:M,currentSlide:f,maxSlide:g,minSlide:b,middleSlide:u};n({updateBreakpointsConfigs:j,updateSlidesData:_,updateSlideWidth:U,initDefaultConfigs:k,restartCarousel:le,slideTo:M,next:F,prev:I,nav:G,data:Re});const Be=a.default||a.slides,ve=a.addons,Ie=o.reactive(Re);return()=>{const w=ol(Be==null?void 0:Be(Ie)),R=(ve==null?void 0:ve(Ie))||[];w.forEach((we,Ae)=>we.props.index=Ae);let x=w;if(c.wrapAround){const we=w.map((Ce,ae)=>o.cloneVNode(Ce,{index:-w.length+ae,isClone:!0,key:`clone-before-${ae}`})),Ae=w.map((Ce,ae)=>o.cloneVNode(Ce,{index:w.length+ae,isClone:!0,key:`clone-after-${ae}`}));x=[...we,...w,...Ae]}r.value=w,p.value=Math.max(w.length,1);const K=o.h("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:c.mouseDrag?Ve:null,onTouchstartPassiveCapture:c.touchDrag?Ve:null},x),Oe=o.h("div",{class:"carousel__viewport"},K);return o.h("section",{ref:i,class:{carousel:!0,"is-sliding":V.value,"is-dragging":pe.value,"is-hover":se.value,"carousel--rtl":c.dir==="rtl"},dir:c.dir,"aria-label":c.i18n.ariaGallery,tabindex:"0",onMouseenter:He,onMouseleave:_e},[Oe,R,o.h(F1)])}}}),Sn;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Sn||(Sn={}));const T1={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 N1(e){return e in Sn}const Bn=e=>{const a=o.inject("config",o.reactive(Object.assign({},fe))),t=String(e.name),n=`icon${t.charAt(0).toUpperCase()+t.slice(1)}`;if(!t||typeof t!="string"||!N1(t))return;const s=T1[t],i=o.h("path",{d:s}),r=a.i18n[n]||e.title||t,l=o.h("title",r);return o.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[l,i])};Bn.props={name:String,title:String};const v1=(e,{slots:a,attrs:t})=>{const{next:n,prev:s}=a||{},i=o.inject("config",o.reactive(Object.assign({},fe))),r=o.inject("maxSlide",o.ref(1)),l=o.inject("minSlide",o.ref(1)),p=o.inject("currentSlide",o.ref(1)),c=o.inject("nav",{}),{dir:d,wrapAround:h,i18n:f}=i,m=d==="rtl",u=o.h("button",{type:"button",class:["carousel__prev",!h&&p.value<=l.value&&"carousel__prev--disabled",t==null?void 0:t.class],"aria-label":f.ariaPreviousSlide,onClick:c.prev},(s==null?void 0:s())||o.h(Bn,{name:m?"arrowRight":"arrowLeft"})),g=o.h("button",{type:"button",class:["carousel__next",!h&&p.value>=r.value&&"carousel__next--disabled",t==null?void 0:t.class],"aria-label":f.ariaNextSlide,onClick:c.next},(n==null?void 0:n())||o.h(Bn,{name:m?"arrowLeft":"arrowRight"}));return[u,g]};var P1=o.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const t=o.inject("config",o.reactive(Object.assign({},fe))),n=o.inject("currentSlide",o.ref(0)),s=o.inject("slidesToScroll",o.ref(0)),i=o.inject("isSliding",o.ref(!1)),r=()=>e.index===n.value,l=()=>e.index===n.value-1,p=()=>e.index===n.value+1,c=()=>{const d=Math.floor(s.value),h=Math.ceil(s.value+t.itemsToShow-1);return e.index>=d&&e.index<=h};return()=>{var d;return o.h("li",{style:{width:`${100/t.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":c(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":p(),"carousel__slide--sliding":i.value},"aria-hidden":!c()},(d=a.default)===null||d===void 0?void 0:d.call(a))}}});const Ye=(e,a)=>{const t=e.__vccOpts||e;for(const[n,s]of a)t[n]=s;return t},I1={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e,n=o.computed(()=>{const l={"background-color":t.backgroundColor,height:t.height};return t.matchDay.key===t.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${t.bottomLineColor}`,l["background-color"]=t.selectedMatchDayBackgroundColor),t.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),s=o.computed(()=>({color:t.numberColor,"font-family":t.numberFontFamily,"font-size":t.numberFontSize})),i=o.computed(()=>({color:t.textColor,"font-family":t.textFontFamily,"font-size":t.textFontSize}));function r(l){a("click-match-day",l)}return(l,p)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day",style:o.normalizeStyle({...n.value}),onClick:p[0]||(p[0]=c=>r(e.matchDay))},[o.createElementVNode("div",{class:"match-day__value",style:o.normalizeStyle(s.value)},o.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"match-day__text",style:o.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},o.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},j1=Ye(I1,[["__scopeId","data-v-687d929a"]]),U1={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const t=e;o.useCssVars(c=>({"26769adc":i.value,"2678c95c":r.value}));const n=o.ref(null),s=o.computed(()=>({itemsToShow:t.itemsToShow,itemsToScroll:t.itemsToScroll,snapAlign:"start"})),i=o.computed(()=>n.value.data.currentSlide.value==0?"none":"inline"),r=o.computed(()=>n.value.data.currentSlide.value==n.value.data.maxSlide.value?"none":"inline"),l=o.ref({});o.watch(()=>t.closestMatchDay,c=>{if(c){const d=t.matchDays.find(h=>h.key===c);p(d||t.matchDays[0],!0)}}),o.watch(()=>t.matchDays,c=>{if(!t.closestMatchDay&&c&&c.length){const d=c.find(h=>h.key===t.defaultMatchDayKey);l.value=d||c[0],a("change-match-day",l.value)}else t.closestMatchDay&&(l.value=c.find(d=>d.key===t.closestMatchDay)||{})},{immediate:!0});function p(c,d=!1){d&&n.value&&n.value.slideTo(c.index),l.value=c,a("change-match-day",l.value)}return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"match-day-picker",style:o.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[o.createVNode(o.unref(z1),o.mergeProps(s.value,{ref_key:"matchDayPickerCarousel",ref:n}),{addons:o.withCtx(()=>[o.createVNode(o.unref(v1))]),default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.matchDays,h=>(o.openBlock(),o.createBlock(o.unref(P1),{key:h.key},{default:o.withCtx(()=>[o.createVNode(j1,o.mergeProps(t,{"match-day":h,"match-day-selected":l.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:p}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},D1=Ye(U1,[["__scopeId","data-v-1621f164"]]);function Vt(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function al(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 G1(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 H1={class:"game-info__teams"},L1={class:"game-info__teams__team__logo"},K1=["src"],q1={class:"game-info__teams__detail"},Z1={key:0,class:"game-info__teams__detail__pre-game"},Q1={class:"game-info__teams__team__logo away"},Y1=["src"],W1={key:0},J1={key:0},X1={key:1},_1={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,t=o.computed(()=>{let c=a.game.schedule.split(":");return c.pop(),c=c.join(":"),c}),n=o.computed(()=>{let c="120px";return(a.isLandingMode||a.isAcronymVisible)&&(c="70px"),{"min-width":c}}),s=o.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=o.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),r=o.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),l=o.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),p=o.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(c,d)=>(o.openBlock(),o.createElementBlock("div",{class:"game-info",style:o.normalizeStyle(e.isLandingMode?"gap:5px":"")},[o.createElementVNode("div",H1,[o.createElementVNode("div",{class:"game-info__teams__team",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),o.createElementVNode("div",L1,[o.createElementVNode("img",{src:o.unref(Vt)(e.game.home_team.team_id),alt:""},null,8,K1)])],4),o.createElementVNode("div",q1,[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("div",Z1,[o.createElementVNode("div",null,[o.createElementVNode("span",{style:o.normalizeStyle(p.value)},o.toDisplayString(t.value),5),o.createTextVNode(),o.createElementVNode("span",{style:o.normalizeStyle(l.value)},"CST",4)])])):(o.openBlock(),o.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:o.normalizeStyle(r.value)},[o.createElementVNode("span",null,o.toDisplayString(e.game.score[0])+" - "+o.toDisplayString(e.game.score[1]),1)],4))]),o.createElementVNode("div",{class:"game-info__teams__team away",style:o.normalizeStyle(n.value)},[o.createElementVNode("div",Q1,[o.createElementVNode("img",{src:o.unref(Vt)(e.game.visiting_team.team_id),alt:""},null,8,Y1)]),o.createElementVNode("div",{class:"game-info__teams__team__name",style:o.normalizeStyle(s.value)},o.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),o.createElementVNode("div",{class:"game-info__status",style:o.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(o.openBlock(),o.createElementBlock("span",W1,[e.isTelevisionVisible?(o.openBlock(),o.createElementBlock("span",J1,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)])):(o.openBlock(),o.createElementBlock("span",X1,o.toDisplayString(o.unref(G1)(e.game)),1))],4)],4))}},nl=Ye(_1,[["__scopeId","data-v-a6b3fc44"]]),il=e=>(o.pushScopeId("data-v-e2fc9ed0"),e=e(),o.popScopeId(),e),$1={class:"game-status"},eb={key:0,class:"game-status__day__live"},tb=il(()=>o.createElementVNode("span",null,"LIVE",-1)),ob=il(()=>o.createElementVNode("span",{class:"dot"},null,-1)),ab=[tb,ob],nb={key:0,class:"game-status__round"},ib={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,t=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],n=o.computed(()=>{let r="";if(a.dateTimeMillis){const l=new Date(a.dateTimeMillis);r=`${l.getDate()} ${t[l.getMonth()]}`}return r}),s=o.computed(()=>({"font-size":a.fontSize})),i=o.computed(()=>{let r=[];return a.isLive?r.push("live"):a.status!==1&&r.push("pre-match"),r});return(r,l)=>(o.openBlock(),o.createElementBlock("div",$1,[o.createElementVNode("div",{class:o.normalizeClass(["game-status__day",i.value]),style:o.normalizeStyle(s.value)},[e.isLive?(o.openBlock(),o.createElementBlock("div",eb,ab)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString(n.value),1)],64))],6),e.isRoundMode?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",nb,o.toDisplayString(e.roundAbbreviation),1))]))}},sl=Ye(ib,[["__scopeId","data-v-e2fc9ed0"]]),We={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},sb=e=>(o.pushScopeId("data-v-5711c5a6"),e=e(),o.popScopeId(),e),rb={class:"actions"},lb={class:"actions__row"},cb=sb(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),db=[cb],mb={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},pb=["fill"],ub={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hb=["fill"],gb={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor}));function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",rb,[o.createElementVNode("div",lb,[o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[0]||(r[0]=l=>s(o.unref(We).STATISTICS))},db,4),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:r[1]||(r[1]=l=>s(o.unref(We).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",mb,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,pb)]))],4)):o.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=l=>s(o.unref(We).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",ub,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,hb)]))])):o.createCommentVNode("",!0)])]))}},fb=Ye(gb,[["__scopeId","data-v-5711c5a6"]]),On=e=>(o.pushScopeId("data-v-d64f8667"),e=e(),o.popScopeId(),e),yb={class:"actions"},bb={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wb=["fill"],Ab={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Cb=["fill"],kb=On(()=>o.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),o.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Sb=[kb],Bb={key:0,class:"actions__videos"},Ob={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Eb=["fill"],xb={key:1,class:"actions__videos__thumbnails"},Mb=On(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),Vb=On(()=>o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),Rb={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Fb=["stroke"],zb={__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 t=e,n=o.computed(()=>({backgroundColor:t.iconBackgroundColor,borderColor:t.iconBorderColor})),s=o.computed(()=>{const p=[];return t.componentWidth<540&&p.push("mobile"),p}),i=o.computed(()=>t.componentWidth>730),r=o.computed(()=>({color:t.thumbnailColor,fontFamily:t.thumbnailFontFamily,fontSize:t.thumbnailFontSize}));function l(p){a("action",p)}return(p,c)=>(o.openBlock(),o.createElementBlock("div",yb,[o.createElementVNode("div",{class:o.normalizeClass(["actions__buttons",s.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[0]||(c[0]=d=>l(o.unref(We).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",bb,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,wb)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(o.openBlock(),o.createElementBlock("div",{key:1,class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[1]||(c[1]=d=>l(o.unref(We).PLAY_RESUME))},[(o.openBlock(),o.createElementBlock("svg",Ab,[o.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:t.iconColor},null,8,Cb)]))],4)):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"actions__button rounded",style:o.normalizeStyle(n.value),onClick:c[2]||(c[2]=d=>l(o.unref(We).STATISTICS))},Sb,4)],2),i.value?(o.openBlock(),o.createElementBlock("div",Bb,[e.gameStatus===4444&&!e.isLive?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__button",onClick:c[3]||(c[3]=d=>l(o.unref(We).NOTIFICATION))},[(o.openBlock(),o.createElementBlock("svg",Ob,[o.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:t.iconColor},null,8,Eb)]))])):o.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(o.openBlock(),o.createElementBlock("div",xb,[e.hasGoals?(o.openBlock(),o.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:c[4]||(c[4]=d=>l(o.unref(We).PLAY_GOALS))},[Mb,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Goles ",4)])):o.createCommentVNode("",!0),o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:c[5]||(c[5]=d=>l(o.unref(We).PLAY_RESUME))},[Vb,o.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:o.normalizeStyle(r.value)}," Resumen ",4)])])):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:c[6]||(c[6]=d=>l(o.unref(We).SHOW_GAME_EVENTS))},[(o.openBlock(),o.createElementBlock("svg",Rb,[o.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Fb)]))],2)):(o.openBlock(),o.createElementBlock("div",{key:2,class:o.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},Tb=Ye(zb,[["__scopeId","data-v-d64f8667"]]),jo=e=>(o.pushScopeId("data-v-51906051"),e=e(),o.popScopeId(),e),Nb={class:"row-landing__game-status"},vb={class:"row-landing__game-actions"},Pb={class:"row-full__game-status"},Ib={class:"row-full__game-info"},jb={key:0},Ub={class:"row-full__game-actions"},Db={class:"game-events-container"},Gb=jo(()=>o.createElementVNode("div",{class:"separator"},null,-1)),Hb=jo(()=>o.createElementVNode("div",null,null,-1)),Lb={class:"game-events__data"},Kb={class:"game-events__data__team"},qb=["src"],Zb={class:"game-events__data__team__event__text"},Qb={class:"game-events__data__team away"},Yb={class:"game-events__data__team__event__text"},Wb=["src"],Jb=jo(()=>o.createElementVNode("div",null,null,-1)),Xb=jo(()=>o.createElementVNode("div",null,null,-1)),_b={__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 t=e,n={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},s=o.ref(!1),i=o.ref(!1),r=o.computed(()=>{const b={homeTeam:[],awayTeam:[]};return t.game&&t.game.game_status!==4&&!t.game.is_live&&t.game.minutes&&(b.homeTeam.push(...u(t.game.minutes.home_goals_minutes,n.GOAL)),b.homeTeam.push(...u(t.game.minutes.home_red_cards_minutes,n.RED_CARD)),b.homeTeam.push(...u(t.game.minutes.home_yellow_cards_minutes,n.YELLOW_CARD)),b.awayTeam.push(...u(t.game.minutes.visiting_goals_minutes,n.GOAL)),b.awayTeam.push(...u(t.game.minutes.away_red_cards_minutes,n.RED_CARD)),b.awayTeam.push(...u(t.game.minutes.away_yellow_cards_minutes,n.YELLOW_CARD))),b}),l=o.computed(()=>{const b=r.value.homeTeam.length,A=r.value.awayTeam.length;return b+A>0}),p=o.computed(()=>{const b=t.game.score[0],A=t.game.score[1];return b>0||A>0}),c=o.computed(()=>({"background-color":t.backgroundColor})),d=o.computed(()=>({height:t.height})),h=o.computed(()=>{const b={game:[],events:[]};return t.componentWidth<500?(b.events.push("break-point-3"),b.game.push("break-point-2")):t.componentWidth<730?(b.game.push("break-point-2"),b.events.push("break-point-2")):t.componentWidth<910&&(b.game.push("break-point-1"),b.events.push("break-point-1")),b}),f=o.computed(()=>({isLandingMode:t.isLandingMode,game:t.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),m=o.computed(()=>({"font-size":t.televisionFontSize,"font-family":t.televisionFontFamily,color:t.televisionColor}));o.watch(()=>t.componentWidth,b=>{i.value=b<910});function u(b,A){return b.map(C=>({iconUrl:A,text:C}))}function g(b){b===We.SHOW_GAME_EVENTS?s.value=!s.value:a("action",{action:b,game:t.game})}return(b,A)=>e.isLandingMode?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-landing",style:o.normalizeStyle(c.value)},[o.createVNode(nl,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),o.createElementVNode("div",Nb,[o.createVNode(sl,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(al)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),o.createElementVNode("div",vb,[o.createVNode(fb,{"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:g},null,8,["is-live","has-video","game-status"])])],4)):(o.openBlock(),o.createElementBlock("div",{key:1,class:"row-full-container",style:o.normalizeStyle(c.value)},[o.createElementVNode("div",{class:o.normalizeClass(["row-full",h.value.game]),style:o.normalizeStyle(d.value)},[o.createElementVNode("div",Pb,[o.createVNode(sl,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":o.unref(al)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),o.createElementVNode("div",Ib,[o.createVNode(nl,o.mergeProps(f.value,{"is-television-visible":i.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(o.openBlock(),o.createElementBlock("div",{key:0,class:"row-full__television",style:o.normalizeStyle(m.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(o.openBlock(),o.createElementBlock("span",jb,o.toDisplayString(e.game.tv_stations.join(", ")),1)):o.createCommentVNode("",!0)],4)):o.createCommentVNode("",!0),o.createElementVNode("div",Ub,[o.createVNode(Tb,{"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":l.value,"has-goals":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?p.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":s.value,"component-width":e.componentWidth,onAction:g},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])])],6),o.createVNode(o.Transition,null,{default:o.withCtx(()=>[o.withDirectives(o.createElementVNode("div",Db,[Gb,o.createElementVNode("div",{class:o.normalizeClass(["game-events",h.value.events])},[Hb,o.createElementVNode("div",Lb,[o.createElementVNode("div",Kb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.homeTeam,(C,k)=>(o.openBlock(),o.createElementBlock("div",{key:`h${k}`,class:"game-events__data__team__event"},[o.createElementVNode("img",{src:C.iconUrl},null,8,qb),o.createElementVNode("div",Zb,o.toDisplayString(C.text),1)]))),128))]),o.createElementVNode("div",Qb,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(r.value.awayTeam,(C,k)=>(o.openBlock(),o.createElementBlock("div",{key:`a${k}`,class:"game-events__data__team__event"},[o.createElementVNode("div",Yb,o.toDisplayString(C.text),1),o.createElementVNode("img",{src:C.iconUrl},null,8,Wb)]))),128))])]),Jb,Xb],2)],512),[[o.vShow,s.value]])]),_:1})],4))}},rl=Ye(_b,[["__scopeId","data-v-51906051"]]),$b={class:"calendar-table"},ew={__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 t=e;function n(i){return i%2===0?t.evenRowColor:t.oddRowColor}function s(i){a("action",i)}return(i,r)=>(o.openBlock(),o.createElementBlock("div",$b,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.gamesPerPage,(l,p)=>(o.openBlock(),o.createBlock(rl,{key:l.game_id,game:l,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":n(p),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:s},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},tw=Ye(ew,[["__scopeId","data-v-c7bf1232"]]),ow={class:"calendar-by-team"},aw={class:"playing-as-picker"},nw={class:"calendar-by-team__page"},iw={__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 t=e,n=o.ref(0),s=o.computed(()=>{let p=[];if(t.gamesPages.size>0){const c=Array.from(t.gamesPages.entries()).reduce((d,[h,f])=>{const m=Number(h),u=Number.isNaN(m)?h:`Jornada ${m<10?"0":""}${m}`,g=f.reduce((b,A)=>(b.push(...A),b),[]).filter(b=>n.value===0||n.value===1&&b.visiting_team.team_id===t.teamId?!0:n.value===2&&b.home_team.team_id===t.teamId);return g.length>0&&d.push({roundName:u,games:g}),d},[]);p.push(c)}return p});function i(p){a("action",p)}function r(p){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),n.value=p,document.querySelector("#opc"+p).classList.add("selected")}function l(p){let c=p;switch(p){case"PI1":c="Play In 1";break;case"PI2":c="Play In 2";break;case"R1":c="Repechaje";break;case"CFI":c="Cuartos de final - Ida";break;case"CFV":c="Cuartos de final - Vuelta";break;case"SFI":c="Semifinal - Ida";break;case"SFV":c="Semifinal - Vuelta";break;case"FI":c="Final - Ida";break;case"FV":c="Final - Vuelta";break}return c}return(p,c)=>(o.openBlock(),o.createElementBlock("div",ow,[o.createElementVNode("div",aw,[o.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:c[0]||(c[0]=d=>r(0))}," Todas "),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:c[1]||(c[1]=d=>r(1))},"Visitante"),o.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:c[2]||(c[2]=d=>r(2))},"Local")]),o.createVNode(o.unref(el),{"is-pagination-visible":e.isPaginationVisible,items:s.value},{default:o.withCtx(({item:d})=>[o.createElementVNode("div",nw,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(d,(h,f)=>(o.openBlock(),o.createElementBlock("div",{key:f,class:"calendar-by-team__page__round"},[o.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:o.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},o.toDisplayString(l(h.roundName)),5),(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h.games,m=>(o.openBlock(),o.createBlock(rl,{key:m.game_id,game:m,"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:i},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"])]))}},sw=Ye(iw,[["__scopeId","data-v-6e0e406c"]]),rw="_image62Icon_1ybd3_2",lw="_imgChivasIcon_1ybd3_11",cw="_nameDesktop_1ybd3_18",dw="_nameMobile_1ybd3_31",mw="_homeTeam_1ybd3_43",pw="_sbado16De_1ybd3_54",uw="_gameDate_1ybd3_63",hw="_sab16092023_1ybd3_67",gw="_div_1ybd3_80",fw="_divscore_1ybd3_89",yw="_cst_1ybd3_99",bw="_hour_1ybd3_108",ww="_score_1ybd3_109",Aw="_chivasTvCanal_1ybd3_120",Cw="_gameStatus_1ybd3_132",kw="_matchInfo_1ybd3_143",Sw="_image62Icon1_1ybd3_156",Bw="_name_1ybd3_18",Ow="_imgAtlasIcon_1ybd3_178",Ew="_name1_1ybd3_185",xw="_awayTeam_1ybd3_197",Mw="_matchCard_1ybd3_208",Vw={image62Icon:rw,imgChivasIcon:lw,nameDesktop:cw,nameMobile:dw,homeTeam:mw,sbado16De:pw,gameDate:uw,sab16092023:hw,div:gw,divscore:fw,cst:yw,hour:bw,score:ww,chivasTvCanal:Aw,gameStatus:Cw,matchInfo:kw,image62Icon1:Sw,name:Bw,imgAtlasIcon:Ow,name1:Ew,awayTeam:xw,matchCard:Mw},Rw=["src"],Fw=["src"],zw={key:0},Tw=["src"],Nw=["src"],vw={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,t=o.computed(()=>{const s={...a.game};return s.gameSchedule=a.game.schedule.split(":"),s.gameSchedule.pop(),s.gameSchedule=s.gameSchedule.join(":"),s});function n(s,i){const r=new Date(s);if(i==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],p=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[r.getDay()]} ${r.getDate()} de ${p[r.getMonth()]}`}else return`${r.getDate()}-${r.getMonth()+1}-${r.getFullYear()}`}return(s,i)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(s.$style.matchCard)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.homeTeam),id:"container-home-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon),alt:"",src:o.unref(Vt)(t.value.home_team.team_id,150)},null,10,Rw),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgChivasIcon),alt:"",src:o.unref(Vt)(t.value.home_team.team_id)},null,10,Fw),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameDesktop),id:"team-name"},o.toDisplayString(t.value.home_team.colloquial_name),3),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.nameMobile),id:"team-name"},o.toDisplayString(t.value.home_team.acronym),3)],2),t.value.game_status==4?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.sbado16De)},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.sab16092023)},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.hour)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.div)},o.toDisplayString(t.value.gameSchedule),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.cst)},"CST",2)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.chivasTvCanal)},o.toDisplayString(t.value.tv_stations.join(", ")),3)],2)):(o.openBlock(),o.createElementBlock("div",{key:1,class:o.normalizeClass(s.$style.matchInfo),id:"container-match-info"},[o.createElementVNode("div",{class:o.normalizeClass([s.$style.sbado16De,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,1)),3),o.createElementVNode("div",{class:o.normalizeClass([s.$style.sab16092023,s.$style.gameDate])},o.toDisplayString(n(t.value.date_time_utc,0)),3),o.createElementVNode("div",{class:o.normalizeClass(s.$style.score)},[o.createElementVNode("div",{class:o.normalizeClass(s.$style.divscore)},o.toDisplayString(t.value.score.join(" - ")),3)],2),o.createElementVNode("div",{class:o.normalizeClass(s.$style.gameStatus)},[o.createTextVNode(" Finalizado "),t.value.penalties_score_home_team!=0||t.value.penalties_score_visiting_team!=0?(o.openBlock(),o.createElementBlock("span",zw," - Penales "+o.toDisplayString(t.value.penalties_score_home_team)+" - "+o.toDisplayString(t.value.penalties_score_visiting_team),1)):o.createCommentVNode("",!0)],2)],2)),o.createElementVNode("div",{class:o.normalizeClass(s.$style.awayTeam),id:"container-away-team"},[o.createElementVNode("img",{class:o.normalizeClass(s.$style.image62Icon1),alt:"",src:o.unref(Vt)(t.value.visiting_team.team_id,150)},null,10,Tw),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name),id:"team-name"},o.toDisplayString(t.value.visiting_team.colloquial_name),3),o.createElementVNode("img",{class:o.normalizeClass(s.$style.imgAtlasIcon),alt:"",src:o.unref(Vt)(t.value.visiting_team.team_id)},null,10,Nw),o.createElementVNode("h3",{class:o.normalizeClass(s.$style.name1),id:"team-name"},o.toDisplayString(t.value.visiting_team.acronym),3)],2)],2))}},Pw={$style:Vw},Iw=Ye(vw,[["__cssModules",Pw]]),jw={class:"calendar-by-game__carousel"},Uw={__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}},tournamentType:{type:Number,default:0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges"],setup(e,{emit:a}){const t=e;let n=null;const s=o.ref([]),i=o.ref({}),r=o.ref(0),l=o.ref(null),p=o.ref({}),c=o.ref(new Map),d=o.ref(!1),h=o.ref(null),f=o.ref(null),m=o.ref(null),u=o.computed(()=>t.isCup),g=o.computed(()=>t.isCupLegacy),b=o.computed(()=>({height:t.height,width:t.width})),A=o.computed(()=>{if(t.games)return Y(t.games,t.isTeamGamePerPage);{const N=c.value.get(p.value.key);return N&&t.isTeamGamePerPage&&t.onlyGamesTeamId?[N[0].filter(v=>v.home_team.team_id===t.onlyGamesTeamId||v.visiting_team.team_id===t.onlyGamesTeamId)]:N||[]}}),C=o.ref([]),k=o.ref([]),j=o.computed(()=>{const N=k.value&&k.value.length?U(i.value):D(i.value),v=C.value.find(V=>V.key===N);return v&&d.value&&(L(!1),He(v)),N});o.watch(()=>t.seasons,N=>{N&&N.length&&(L(!0),s.value=N.map(v=>v.id),oe(N,!0))},{immediate:!0,deep:!0}),o.watch(c,N=>{if(t.onlyGamesTeamId&&N.size){const v=Array.from(N.values()).reduce((V,M)=>(M.forEach(F=>{const I=F.find(G=>G.home_team.team_id===t.onlyGamesTeamId||G.visiting_team.team_id===t.onlyGamesTeamId);I&&V.push(I)}),V),[]);a("change-games-by-client-privileges",v)}},{immediate:!0});function L(N){d.value=N}function D(N){const v=Object.entries(Object.entries(N).reduce((F,[I,G])=>(F[I]=[],G.forEach(W=>{W.games.forEach(ce=>{const le=new Date(ce.date_time_utc).getTime()+66e5;F[I].push(le)})}),F),{}));if(!v.length)return"1";const V=new Date().getTime(),M=v.reduce((F,[I,G])=>{let W=null;return G.forEach(ce=>{const le=ce-V;le>=0&&(W===null||le<W)&&(W=le)}),W&&(F.shortestTime===null||W<F.shortestTime)&&(F.round=I,F.shortestTime=W),F},{round:"",shortestTime:null});return M.shortestTime!==null?M.round:v[v.length-1][0]}function U(N){let v=1;if(k.value.length){const V=k.value[0];for(const[M,F]of Object.entries(N))for(const I of F)if(I.games.find(G=>G.game_id===V.game_id))return M}return v}o.watch(()=>t.teamId,()=>{ie()},{immediate:!0});async function _(N,v,V=""){let M=V;try{const F={};t.token&&(F.Authorization=t.token),M||(M="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",N.forEach((W,ce)=>{M+=`${ce===0?"":"&"}seasons=${W}`}));const{data:{data:I,teams:G}}=await Jr.get(M,{headers:F});return{seasonsAndGames:I,seasonsAndTeams:G}}catch(F){if(v>0)return _(N,v-1,M);throw new Error(F)}}function P(N){for(const v of N)if(!s.value.includes(v.season_id))return!0;return!1}async function oe(N,v){try{i.value={};let V=0;const{seasonsAndGames:M,seasonsAndTeams:F}=await _(N.map(G=>G.id),3);if(v&&P(M))return;M.forEach(G=>{const{type:W}=N.find(ce=>ce.id===G.season_id);G.type=W,G.games.forEach(ce=>{ce.season_id=G.season_id}),W===0&&(V=G.season_id)}),h.value={seasonsGames:M};const{teams:I}=F.find(G=>G.season_id===V);f.value=I,a("change-teams",I),ie()}catch(V){throw new Error(V)}}function ie(){if(!f.value)return;k.value=[];const N=h.value&&h.value.seasonsGames?h.value.seasonsGames.map(v=>{const V=v.games.reduce((M,F)=>{if(t.onlyGamesTeamId&&t.onlyGamesTeamId!==F.home_team&&t.onlyGamesTeamId!==F.visiting_team)return M;const I={...F};return I.dateTimeMillis=new Date(I.date_time_utc).valueOf(),I.home_team=f.value.find(G=>G.team_id===F.home_team),I.visiting_team=f.value.find(G=>G.team_id===F.visiting_team),t.teamId&&I.home_team.team_id!==t.teamId&&I.visiting_team.team_id!==t.teamId||(M[F.matchday_abbreviation]?M[F.matchday_abbreviation][F.game_status===3?"canceled":F.date]?M[F.matchday_abbreviation][F.game_status===3?"canceled":F.date].push(I):M[F.matchday_abbreviation][F.game_status===3?"canceled":F.date]=[I]:M[F.matchday_abbreviation]={[F.game_status===3?"canceled":F.date]:[I]},t.userTeamId&&I.game_status===4&&(I.home_team.team_id===t.userTeamId||I.visiting_team.team_id===t.userTeamId)&&k.value.push(I)),M},{});for(let[M,F]of Object.entries(V))V[M]=Object.entries(F).map(([I,G])=>({date:I,games:G.sort((W,ce)=>W.dateTimeMillis-ce.dateTimeMillis)})),V[M].sort((I,G)=>I.date<G.date?-1:I.date>G.date?1:0);return{type:v.type,weight:v.type===0?0:v.type===2?1:2,schedule:V}}):[];N.sort((v,V)=>v.weight-V.weight),i.value=N.reduce((v,V)=>{for(const[M,F]of Object.entries(V.schedule))if(V.type===0)if([1,2].includes(t.tournamentType)){const I=B1.get(t.tournamentType);if(I){const G=I.get(M);G&&(v[G.matchDayAbbreviation]=F)}}else if(u.value){const I=M.replace("M",""),G=I;g.value?v[S1[I]||G]=F:v[k1[M]||G]=F}else v[Number(M.replace("M","")).toString()]=F;else V.type===2?M.charAt(1)=="I"?v[`PI${Number(M.replace("PI",""))}`]=F:v[`R${Number(M.replace("PO",""))}`]=F:V.type===1&&(v[C1[M]]=F);return v},{}),c.value=new Map,C.value=Array.from(Object.entries(i.value).reduce((v,[V,M],F)=>{const I=Number(V);let G="";Number.isNaN(I)?G=V:G=I<10?`0${I}`:V,v.set(V,{key:V,value:I,valueText:G,index:F});const W=M.reduce((le,Re)=>(Re.games.forEach(Be=>{Be.game_id===t.defaultGameId&&(m.value=V),Be.roundAbbreviation=Number.isNaN(I)?I:`J ${I}`}),le=le.concat(Re.games),le),[]),ce=Y(W);return c.value.set(V,ce),v},new Map).values())}function Y(N,v=!1){const V=[];if(t.gamesPerMatchDay>0){let M=[];N.forEach((F,I)=>{M.push(F),(I+1)%t.gamesPerMatchDay===0&&(V.push([...M]),M=[])}),M.length&&V.push([...M])}else V.push(N);return v&&t.isTeamGamePerPage&&t.defaultGameId?V.filter(M=>M.game_id===t.defaultGameId||M.gameId===t.defaultGameId):V}async function se(N){try{const{data:v}=await Jr.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return v}catch(v){if(N>0)return se(N-1);throw new Error(v)}}function pe(){if(window.ResizeObserver)n=new ResizeObserver(()=>{r.value=l.value.clientWidth}),n.observe(l.value);else throw new Error("Resize observer not supported!")}function He(N){p.value.value!==N.value&&(p.value=N,a("change-round",N))}function _e(N){t.areGamesCarouselType&&a("change-game-carousel",N.selectedItem)}function Ve(N){a("action",N),Te(N)}function Te(N){const v="PLAY_RESUME",V="PLAY_GOALS",M=[607,608,12,55,54,35,14,52,15,53,466,477],F=[12,55,"35_r","54_r"],{game_id:I,season_id:G}=N.game;let W={seasonId:G,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[I],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};N.action===v?(W.categoryIds=M,W.advancedFilter.playListTitle="Resumen",a("openmedia",W)):N.action===V&&(W.categoryIds=F,W.advancedFilter.playListTitle="Goles",a("openmedia",W))}async function Ne(){try{if(!t.awaitForSeasons&&!t.games){const N=(await se(3)).find(M=>M._id===1),v=N.seasons[0],V=[{id:v.id,type:v.type}];N&&N.tournament&&a("tournament-selected",N.tournament),v.related_seasons&&v.related_seasons.length&&V.push(...v.related_seasons.map(M=>({id:M.id,type:M.type}))),await oe(V,!1)}}catch(N){throw new Error(N)}}return o.onMounted(()=>{pe()}),Ne(),(N,v)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"calendarByGame",ref:l,class:"calendar-by-game",style:o.normalizeStyle(b.value)},[e.teamId&&!e.avoidTeamIdFilter?(o.openBlock(),o.createBlock(sw,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":c.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Ve},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[e.areRoundsVisible&&C.value?(o.openBlock(),o.createBlock(D1,{key:0,"match-days":C.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":m.value,"closest-match-day":e.sortCalendar?j.value:"",onChangeMatchDay:He},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):o.createCommentVNode("",!0),o.createElementVNode("div",jw,[A.value?(o.openBlock(),o.createBlock(o.unref(el),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?A.value[0]:A.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType&&!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:_e},{default:o.withCtx(({item:V})=>[e.areGamesCarouselType?(o.openBlock(),o.createBlock(Iw,{key:0,game:V},null,8,["game"])):(o.openBlock(),o.createBlock(tw,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":V,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,onAction:Ve},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"])):o.createCommentVNode("",!0)])],64))],4))}},Dw=Ye(Uw,[["__scopeId","data-v-643489dd"]]),Gw=["Mi posición","Tabla General","Fases","Play Off"],Hw={components:{GscSwitchComponent:an,GSCGeneraltable:r0,GSCCalendarByGame:Dw},props:{privileges:{type:Object,default:()=>{}},isPublic:{type:Boolean,default:!0},season:{type:Object,default:()=>{}},seasons:{type:Array,default:()=>[]},tournamentType:{type:Number,default:0},tournament:{type:Number,default:1},teamId:{type:Number,default:0},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{tableTitle(){return this.tournamentType!==0?this.tournamentType===1?"Fases":"Play Off":(this.selectedOpt!=="Calendario"&&this.changeCategory(this.teamId!=0?"Mi posición":"Tabla General"),this.teamId!==0?"Mi posición":"Tabla General")},isGeneralTableVisible(){return Gw.includes(this.selectedOpt)}},watch:{tableTitle:{handler(e){this.selectedOpt=e},immediate:!0}},methods:{onAction(e){this.$emit("action",e)},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)},onOpenProfile(e){this.$emit("onOpenProfile",e)}},onMount(){this.selectedOpt=this.teamId!=0?"Mi posición":"Tabla General"}},Lw={class:"gsc-calendar-table"},Kw={class:"gsc-switch-container"},qw={class:"gsc-app-component"};function Zw(e,a,t,n,s,i){const r=o.resolveComponent("GscSwitchComponent"),l=o.resolveComponent("GSCGeneraltable"),p=o.resolveComponent("GSCCalendarByGame");return o.openBlock(),o.createElementBlock("div",Lw,[o.createElementVNode("div",Kw,[o.createVNode(r,{type:0,arrow:!1,"font-family":"Poppins-Light",buttons:[i.tableTitle,"Calendario"],height:"40px","selected-option":s.selectedOpt,"font-size":t.componentWidth>=768?"16px":"14px",width:"355px",onInput:i.changeCategory},null,8,["buttons","selected-option","font-size","onInput"])]),o.createElementVNode("div",qw,[i.isGeneralTableVisible?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createVNode(l,{isPaginationVisible:!0,"current-season-id":t.season.id,"team-default-select":t.teamId,"team-id":t.teamId,type:1,"show-videos":t.isPublic?t.privileges.vr_privileges!=0:!0,tournament:t.tournament,"type-view":t.tournamentType,"await-for-season":!0,onOpenmedia:i.onOpenMedia,onOpenTableProfile:i.onOpenProfile},null,8,["current-season-id","team-default-select","team-id","show-videos","tournament","type-view","onOpenmedia","onOpenTableProfile"]),o.createElementVNode("div",{onClick:a[0]||(a[0]=c=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createVNode(p,{onAction:i.onAction,onOpenmedia:i.onOpenMedia,width:"100%",token:s.tokenFree,seasons:t.seasons,"tournament-type":t.tournamentType,"show-videos":!!t.isPublic,"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":9,"items-to-scroll":5,"max-games-to-show":5,"games-per-match-day":5},null,8,["onAction","onOpenmedia","token","seasons","tournament-type","show-videos"]),o.createElementVNode("div",{onClick:a[1]||(a[1]=c=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const Qw=Fe(Hw,[["render",Zw],["__scopeId","data-v-124be1c8"]]),ll=["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],cl=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Setiembre","Octubre","Noviembre","Diciembre"],Yw=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Set","Oct","Nov","Dic"],Ww={class:"match"},Jw={class:"match__header"},Xw={key:0,class:"match__final-tag"},_w={key:1,class:"match__final-tag__no-border"},$w={class:"match__header__match-date"},e2={class:"match__tag"},t2={class:"match__body"},o2={class:"match__data"},a2={class:"match__acronym"},n2=["src"],i2={class:"match__score"},s2=["src"],r2={class:"match__acronym"},l2={class:"match__status"},Uo=Fe({__name:"PreviousMatch",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""},infoType:{type:String,default:"postmatch"}},setup(e){const a=e,t=o.computed(()=>{const n=new Date(a.data.date_time_utc);return`${ll[n.getDay()]}, ${n.getDate()} de ${cl[n.getMonth()]}`});return(n,s)=>{var i,r,l;return o.openBlock(),o.createElementBlock("section",Ww,[o.createElementVNode("div",Jw,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock("div",Xw,"FINAL")):(o.openBlock(),o.createElementBlock("div",_w)),o.createElementVNode("div",$w,o.toDisplayString(t.value),1),o.createElementVNode("div",e2,o.toDisplayString(`${Number.isNaN(Number(e.data.roundAbbreviationV2))?"":"J"}${e.data.roundAbbreviationV2}`),1)]),o.createElementVNode("div",t2,[o.createElementVNode("div",o2,[o.createElementVNode("div",a2,o.toDisplayString((i=e.data)==null?void 0:i.home_team_acronym),1),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,n2),o.createElementVNode("div",i2,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString(e.data.score[0])+" - "+o.toDisplayString(e.data.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((r=e.data)==null?void 0:r.schedule.replace(":00","")),1)],64))]),o.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,s2),o.createElementVNode("div",r2,o.toDisplayString((l=e.data)==null?void 0:l.visiting_team_acronym),1)]),o.createElementVNode("div",l2,[e.infoType=="postmatch"?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Finalizado"+o.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("CST")],64))])]),o.createElementVNode("div",{class:"match__button",onClick:s[0]||(s[0]=p=>n.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-a55efbe4"]]),c2=["src"],d2=["src"],m2={class:"coming-match__body"},p2={class:"coming-match__data"},u2=["src"],h2={style:{"margin-top":"16px"}},g2={class:"coming-match__time"},f2={class:"coming-match__cst"},y2={key:0},b2=["src"],wt=Fe({__name:"ComingMatch",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){const a=e,t=o.computed(()=>{const n=new Date(a.data.date_time_utc);return`${ll[n.getDay()]}, ${n.getDate()} de ${a.small?Yw[n.getMonth()]:cl[n.getMonth()]}`});return(n,s)=>{var i,r,l,p,c,d,h,f,m,u,g,b,A;return o.openBlock(),o.createElementBlock("section",{class:o.normalizeClass(["coming-match",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((r=e.data)==null?void 0:r.home_team)+".png",alt:"team-img"},null,10,c2),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-150/"+((l=e.data)==null?void 0:l.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-150/"+((p=e.data)==null?void 0:p.visiting_team)+".png",alt:"team-img"},null,10,d2),o.createElementVNode("div",m2,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__date",{small:e.small}])},o.toDisplayString(`${Number.isNaN(Number(e.data.roundAbbreviationV2))?"":"J"}${e.data.roundAbbreviationV2}`)+" | "+o.toDisplayString(t.value),3),o.createElementVNode("div",p2,[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((c=e.data)==null?void 0:c.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((d=e.data)==null?void 0:d.home_team)+".png",alt:"team-img"},null,10,u2),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((h=e.data)==null?void 0:h.home_team_name),3)],2),o.createElementVNode("div",h2,[o.createElementVNode("div",g2,[e.data.game_status!==4?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode(o.toDisplayString((f=e.data)==null?void 0:f.score[0])+" - "+o.toDisplayString((m=e.data)==null?void 0:m.score[1]),1)],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode(o.toDisplayString((u=e.data)==null?void 0:u.schedule.replace(":00","")),1)],64))]),o.createElementVNode("div",f2,[e.data.game_status===4?(o.openBlock(),o.createElementBlock("span",y2,"CST")):o.createCommentVNode("",!0)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__team",{small:e.small}])},[o.createElementVNode("div",{class:o.normalizeClass(["coming-match__acronym",{small:e.small}])},o.toDisplayString((g=e.data)==null?void 0:g.visiting_team_name),3),o.createElementVNode("img",{class:o.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((b=e.data)==null?void 0:b.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((A=e.data)==null?void 0:A.visiting_team)+".png",alt:"team-img"},null,10,b2)],2)])]),o.createElementVNode("div",{class:o.normalizeClass(["coming-match__button",{small:e.small}]),onClick:s[0]||(s[0]=C=>n.$emit("clickMatch"))},[e.data.game_status===4?(o.openBlock(),o.createElementBlock(o.Fragment,{key:0},[o.createTextVNode("Analizar previa →")],64)):(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[o.createTextVNode("Analizar partido →")],64))],2)],2)}}},[["__scopeId","data-v-f2738fb7"]]),w2=Fe({__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:a}){const t=e,n=o.ref(null);o.watch(()=>t.modelValue,()=>{s()},{immediate:!0});function s(){n.value&&(n.value.checked=t.modelValue)}function i(r){a("update:modelValue",r.target.checked)}return o.onMounted(()=>{s()}),(r,l)=>(o.openBlock(),o.createElementBlock("input",{ref_key:"switchCustom",ref:n,id:"toggle",className:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:i},null,544))}},[["__scopeId","data-v-3571f7e0"]]);/**
29
29
  * Vue 3 Carousel 0.3.3
30
30
  * (c) 2024
31
31
  * @license MIT