@golstats/gsc-landing 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-e3f08685-rBpd34JA.js → FilterConditions-e3f08685-o14Oji7J.js} +1 -1
- package/dist/{FilterField-5f30ec24-bWI3fi0v.js → FilterField-5f30ec24-8N78DxoG.js} +1 -1
- package/dist/{FilterSubcategories-459a9bc2-BpdiT22u.js → FilterSubcategories-459a9bc2-ysOTpoeT.js} +1 -1
- package/dist/gsc-landing.js +1 -1
- package/dist/gsc-landing.umd.cjs +1 -1
- package/dist/{index-zIufOEzN.js → index-FFJDIQ1Y.js} +5 -5
- package/dist/style.css +1 -1
- package/package.json +3 -3
package/dist/gsc-landing.umd.cjs
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
* Vue 3 Carousel 0.3.1
|
|
21
21
|
* (c) 2023
|
|
22
22
|
* @license MIT
|
|
23
|
-
*/const na={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"}},ST={itemsToShow:{default:na.itemsToShow,type:Number},itemsToScroll:{default:na.itemsToScroll,type:Number},wrapAround:{default:na.wrapAround,type:Boolean},throttle:{default:na.throttle,type:Number},snapAlign:{default:na.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:na.transition,type:Number},breakpoints:{default:na.breakpoints,type:Object},autoplay:{default:na.autoplay,type:Number},pauseAutoplayOnHover:{default:na.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:na.mouseDrag,type:Boolean},touchDrag:{default:na.touchDrag,type:Boolean},dir:{default:na.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:na.i18n,type:Object},settings:{default(){return{}},type:Object}};function bM({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function vM({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function $g({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function SM({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:$g({val:o,max:a-r,min:0})}function wT(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...wT(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function ey({val:e,max:t,min:a=0}){return e>t?ey({val:e-(t+1),max:t,min:a}):e<a?ey({val:e+(t+1),max:t,min:a}):e}function wM(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function TM(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function CM(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var kM=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},na))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},CM(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),EM=s.defineComponent({name:"Carousel",props:ST,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},na));let u=Object.assign({},na),h;const p=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),m=s.ref(0),f=s.ref(0),b=s.ref(0),_=s.ref(0);let N,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",p),s.provide("maxSlide",b),s.provide("minSlide",_),s.provide("slideWidth",l);function j(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),B(u)}function O(){if(!h||!Object.keys(h).length)return;const W=Object.keys(h).map(Se=>Number(Se)).sort((Se,Ge)=>+Ge-+Se);let ke=Object.assign({},u);W.some(Se=>{const Ge=window.matchMedia(`(min-width: ${Se}px)`).matches;return Ge&&(ke=Object.assign(Object.assign({},ke),h[Se])),Ge}),B(ke)}function B(W){Object.entries(W).forEach(([ke,Se])=>d[ke]=Se)}const R=TM(()=>{O(),L()},16);function L(){if(!r.value)return;const W=r.value.getBoundingClientRect();l.value=W.width/d.itemsToShow}function X(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),b.value=bM({config:d,slidesCount:c.value}),_.value=vM({config:d,slidesCount:c.value}),d.wrapAround||(p.value=$g({val:p.value,max:b.value,min:_.value})))}s.onMounted(()=>{s.nextTick(()=>L()),setTimeout(()=>L(),1e3),O(),Fe(),window.addEventListener("resize",R,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),N&&clearInterval(N),window.removeEventListener("resize",R,{passive:!0})});let U=!1;const ne={x:0,y:0},le={x:0,y:0},Z=s.reactive({x:0,y:0}),re=s.ref(!1),Ce=s.ref(!1),ve=()=>{re.value=!0},pe=()=>{re.value=!1};function z(W){["INPUT","TEXTAREA","SELECT"].includes(W.target.tagName)||(U=W.type==="touchstart",U||W.preventDefault(),!(!U&&W.button!==0||te.value)&&(ne.x=U?W.touches[0].clientX:W.clientX,ne.y=U?W.touches[0].clientY:W.clientY,document.addEventListener(U?"touchmove":"mousemove",$,!0),document.addEventListener(U?"touchend":"mouseup",ae,!0)))}const $=wM(W=>{Ce.value=!0,le.x=U?W.touches[0].clientX:W.clientX,le.y=U?W.touches[0].clientY:W.clientY;const ke=le.x-ne.x,Se=le.y-ne.y;Z.y=Se,Z.x=ke},d.throttle);function ae(){const W=d.dir==="rtl"?-1:1,ke=Math.sign(Z.x)*.4,Se=Math.round(Z.x/l.value+ke)*W;if(Se&&!U){const Ge=gt=>{gt.stopPropagation(),window.removeEventListener("click",Ge,!0)};window.addEventListener("click",Ge,!0)}_e(p.value-Se),Z.x=0,Z.y=0,Ce.value=!1,document.removeEventListener(U?"touchmove":"mousemove",$,!0),document.removeEventListener(U?"touchend":"mouseup",ae,!0)}function Fe(){!d.autoplay||d.autoplay<=0||(N=setInterval(()=>{d.pauseAutoplayOnHover&&re.value||we()},d.autoplay))}function se(){N&&(clearInterval(N),N=null),Fe()}const te=s.ref(!1);function _e(W){const ke=d.wrapAround?W:$g({val:W,max:b.value,min:_.value});p.value===ke||te.value||(a("slide-start",{slidingToIndex:W,currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!0,m.value=p.value,p.value=ke,D=setTimeout(()=>{if(d.wrapAround){const Se=ey({val:ke,max:b.value,min:0});Se!==p.value&&(p.value=Se,a("loop",{currentSlideIndex:p.value,slidingToIndex:W}))}a("update:modelValue",p.value),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!1,se()},d.transition))}function we(){_e(p.value+d.itemsToScroll)}function ge(){_e(p.value-d.itemsToScroll)}const ee={slideTo:_e,next:we,prev:ge};s.provide("nav",ee),s.provide("isSliding",te);const ce=s.computed(()=>SM({config:d,currentSlide:p.value,slidesCount:c.value}));s.provide("slidesToScroll",ce);const J=s.computed(()=>{const W=d.dir==="rtl"?-1:1,ke=ce.value*l.value*W;return{transform:`translateX(${Z.x-ke}px)`,transition:`${te.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function M(){j(),O(),X(),L(),se()}Object.keys(ST).forEach(W=>{["modelValue"].includes(W)||s.watch(()=>e[W],M)}),s.watch(()=>e.modelValue,W=>{W!==p.value&&_e(Number(W))}),s.watch(c,X),a("before-init"),j();const he={config:d,slidesCount:c,slideWidth:l,next:we,prev:ge,slideTo:_e,currentSlide:p,maxSlide:b,minSlide:_,middleSlide:f};i({updateBreakpointsConfigs:O,updateSlidesData:X,updateSlideWidth:L,initDefaultConfigs:j,restartCarousel:M,slideTo:_e,next:we,prev:ge,nav:ee,data:he});const be=t.default||t.slides,Re=t.addons,We=s.reactive(he);return()=>{const W=wT(be==null?void 0:be(We)),ke=(Re==null?void 0:Re(We))||[];W.forEach((Ye,Ze)=>Ye.props.index=Ze);let Se=W;if(d.wrapAround){const Ye=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:-W.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:W.length+rt,isClone:!0,key:`clone-after-${rt}`}));Se=[...Ye,...W,...Ze]}o.value=W,c.value=Math.max(W.length,1);const Ge=s.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Se),gt=s.h("div",{class:"carousel__viewport"},Ge);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":te.value,"is-dragging":Ce.value,"is-hover":re.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:ve,onMouseleave:pe},[gt,ke,s.h(kM)])}}}),ty;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ty||(ty={}));const IM={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 xM(e){return e in ty}const ay=e=>{const t=s.inject("config",s.reactive(Object.assign({},na))),a=String(e.name),i=`icon${a.charAt(0).toUpperCase()+a.slice(1)}`;if(!a||typeof a!="string"||!xM(a))return;const n=IM[a],r=s.h("path",{d:n}),o=t.i18n[i]||e.title||a,l=s.h("title",o);return s.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":o},[l,r])};ay.props={name:String,title:String};const NM=(e,{slots:t,attrs:a})=>{const{next:i,prev:n}=t||{},r=s.inject("config",s.reactive(Object.assign({},na))),o=s.inject("maxSlide",s.ref(1)),l=s.inject("minSlide",s.ref(1)),c=s.inject("currentSlide",s.ref(1)),d=s.inject("nav",{}),{dir:u,wrapAround:h,i18n:p}=r,m=u==="rtl",f=s.h("button",{type:"button",class:["carousel__prev",!h&&c.value<=l.value&&"carousel__prev--disabled",a==null?void 0:a.class],"aria-label":p.ariaPreviousSlide,onClick:d.prev},(n==null?void 0:n())||s.h(ay,{name:m?"arrowRight":"arrowLeft"})),b=s.h("button",{type:"button",class:["carousel__next",!h&&c.value>=o.value&&"carousel__next--disabled",a==null?void 0:a.class],"aria-label":p.ariaNextSlide,onClick:d.next},(i==null?void 0:i())||s.h(ay,{name:m?"arrowLeft":"arrowRight"}));return[f,b]};var AM=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},na))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const Ri=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},PM={__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:"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:t}){const a=e,i=s.computed(()=>{const l={"background-color":a.backgroundColor,height:a.height};return a.matchDay.key===a.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${a.bottomLineColor}`,l["background-color"]=a.selectedMatchDayBackgroundColor),a.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),n=s.computed(()=>({color:a.numberColor,"font-family":a.numberFontFamily,"font-size":a.numberFontSize})),r=s.computed(()=>({color:a.textColor,"font-family":a.textFontFamily,"font-size":a.textFontSize}));function o(l){t("click-match-day",l)}return(l,c)=>(s.openBlock(),s.createElementBlock("div",{class:"match-day",style:s.normalizeStyle({...i.value}),onClick:c[0]||(c[0]=d=>o(e.matchDay))},[s.createElementVNode("div",{class:"match-day__value",style:s.normalizeStyle(n.value)},s.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"match-day__text",style:s.normalizeStyle(r.value)},s.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},OM=Ri(PM,[["__scopeId","data-v-2e85c709"]]),BM={class:"match-day-picker"},DM={__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}},emits:["change-match-day"],setup(e,{emit:t}){const a=e,i=s.computed(()=>({itemsToShow:a.itemsToShow,itemsToScroll:a.itemsToScroll,snapAlign:"start"})),n=s.ref({});s.watch(()=>a.matchDays,o=>{if(o&&o.length){const l=o.find(c=>c.key===a.defaultMatchDayKey);n.value=l||o[0],t("change-match-day",n.value)}},{immediate:!0});function r(o){n.value=o,t("change-match-day",n.value)}return(o,l)=>(s.openBlock(),s.createElementBlock("div",BM,[s.createVNode(s.unref(EM),s.normalizeProps(s.guardReactiveProps(i.value)),{addons:s.withCtx(()=>[s.createVNode(s.unref(NM))]),default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.matchDays,c=>(s.openBlock(),s.createBlock(s.unref(AM),{key:c.key},{default:s.withCtx(()=>[s.createVNode(OM,s.mergeProps(a,{"match-day":c,"match-day-selected":n.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:r}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)]))}},LM=Ri(DM,[["__scopeId","data-v-fe04fd25"]]);function yo(e,t=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${t}/${e}.png`}function TT(e){let t=e.replace("M","J ");return t=t.replace("PO1","CFI"),t=t.replace("PO2","CFV"),t=t.replace("PO3","SFI"),t=t.replace("PO4","SFV"),t=t.replace("PO5","FI"),t=t.replace("PO6","FV"),t}function RM(e){let t="";return e.game_status!=4&&(t+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(t+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),t}const MM={class:"game-info"},FM={class:"game-info__teams"},VM={class:"game-info__teams__team__logo"},UM=["src"],jM={class:"game-info__teams__detail"},zM={key:0,class:"game-info__teams__detail__pre-game"},HM={class:"game-info__teams__team__logo away"},qM=["src"],WM={key:0},GM={key:0},KM={key:1},JM={__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 t=e,a=s.computed(()=>{const d=new Date(t.game.dateTimeMillis),u=d.getHours(),h=d.getMinutes();return`${u<10?`0${u}`:u}:${h<10?`0${h}`:h}`}),i=s.computed(()=>{let d="120px";return(t.isLandingMode||t.isAcronymVisible)&&(d="70px"),{"min-width":d}}),n=s.computed(()=>({"font-size":t.namesFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),r=s.computed(()=>({"font-size":t.additionalInfoFontSize,"font-family":t.additionalInfoFontFamily,color:t.colorSecondary})),o=s.computed(()=>({"font-size":t.scoreFontSize,"font-family":t.scoreFontFamily,color:t.colorPrimary})),l=s.computed(()=>({"font-size":t.timeZoneFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),c=s.computed(()=>({"font-size":t.timeFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary}));return(d,u)=>(s.openBlock(),s.createElementBlock("div",MM,[s.createElementVNode("div",FM,[s.createElementVNode("div",{class:"game-info__teams__team",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),s.createElementVNode("div",VM,[s.createElementVNode("img",{src:s.unref(yo)(e.game.home_team.team_id),alt:""},null,8,UM)])],4),s.createElementVNode("div",jM,[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("div",zM,[s.createElementVNode("div",null,[s.createElementVNode("span",{style:s.normalizeStyle(c.value)},s.toDisplayString(a.value),5),s.createTextVNode(),s.createElementVNode("span",{style:s.normalizeStyle(l.value)},"CST",4)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:s.normalizeStyle(o.value)},[s.createElementVNode("span",null,s.toDisplayString(e.game.score[0])+" - "+s.toDisplayString(e.game.score[1]),1)],4))]),s.createElementVNode("div",{class:"game-info__teams__team away",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",HM,[s.createElementVNode("img",{src:s.unref(yo)(e.game.visiting_team.team_id),alt:""},null,8,qM)]),s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),s.createElementVNode("div",{class:"game-info__status",style:s.normalizeStyle(r.value)},[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("span",WM,[e.isTelevisionVisible?(s.openBlock(),s.createElementBlock("span",GM,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("span",KM,s.toDisplayString(s.unref(RM)(e.game)),1))],4)]))}},CT=Ri(JM,[["__scopeId","data-v-81ac514d"]]),kT=e=>(s.pushScopeId("data-v-3bf9087f"),e=e(),s.popScopeId(),e),XM={class:"game-status"},YM={key:0,class:"game-status__day__live"},QM=kT(()=>s.createElementVNode("span",null,"LIVE",-1)),ZM=kT(()=>s.createElementVNode("span",{class:"dot"},null,-1)),$M=[QM,ZM],eF={key:0,class:"game-status__round"},tF={__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 t=e,a=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],i=s.computed(()=>{let o="";if(t.dateTimeMillis){const l=new Date(t.dateTimeMillis);o=`${l.getDate()} ${a[l.getMonth()]}`}return o}),n=s.computed(()=>({"font-size":t.fontSize})),r=s.computed(()=>{let o=[];return t.isLive?o.push("live"):t.status!==1&&o.push("pre-match"),o});return(o,l)=>(s.openBlock(),s.createElementBlock("div",XM,[s.createElementVNode("div",{class:s.normalizeClass(["game-status__day",r.value]),style:s.normalizeStyle(n.value)},[e.isLive?(s.openBlock(),s.createElementBlock("div",YM,$M)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(i.value),1)],64))],6),e.isRoundMode?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",eF,s.toDisplayString(e.roundAbbreviation),1))]))}},ET=Ri(tF,[["__scopeId","data-v-3bf9087f"]]),Mi={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},aF=e=>(s.pushScopeId("data-v-70dd3937"),e=e(),s.popScopeId(),e),iF={class:"actions"},nF={class:"actions__row"},rF=aF(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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"}),s.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"}),s.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)),sF=[rF],oF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lF=["fill"],cF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dF=["fill"],uF={__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:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor}));function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",iF,[s.createElementVNode("div",nF,[s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[0]||(o[0]=l=>n(s.unref(Mi).STATISTICS))},sF,4),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[1]||(o[1]=l=>n(s.unref(Mi).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",oF,[s.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:a.iconColor},null,8,lF)]))],4)):s.createCommentVNode("",!0),e.gameStatus===4&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button",onClick:o[2]||(o[2]=l=>n(s.unref(Mi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",cF,[s.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:a.iconColor},null,8,dF)]))])):s.createCommentVNode("",!0)])]))}},hF=Ri(uF,[["__scopeId","data-v-70dd3937"]]),iy=e=>(s.pushScopeId("data-v-89107a16"),e=e(),s.popScopeId(),e),pF={class:"actions"},mF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fF=["fill"],gF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yF=["fill"],_F=iy(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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"}),s.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"}),s.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)),bF=[_F],vF={key:0,class:"actions__videos"},SF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wF=["fill"],TF={key:1,class:"actions__videos__thumbnails"},CF=iy(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__img"},null,-1)),kF=iy(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__img"},null,-1)),EF={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},IF=["stroke"],xF={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},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:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor})),n=s.computed(()=>{const c=[];return a.componentWidth<540&&c.push("mobile"),c}),r=s.computed(()=>a.componentWidth>730),o=s.computed(()=>({color:a.thumbnailColor,fontFamily:a.thumbnailFontFamily,fontSize:a.thumbnailFontSize}));function l(c){t("action",c)}return(c,d)=>(s.openBlock(),s.createElementBlock("div",pF,[s.createElementVNode("div",{class:s.normalizeClass(["actions__buttons",n.value])},[e.gameStatus===4&&!e.isLive&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=u=>l(s.unref(Mi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",mF,[s.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:a.iconColor},null,8,fF)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[1]||(d[1]=u=>l(s.unref(Mi).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",gF,[s.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:a.iconColor},null,8,yF)]))],4)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[2]||(d[2]=u=>l(s.unref(Mi).STATISTICS))},bF,4)],2),r.value?(s.openBlock(),s.createElementBlock("div",vF,[e.gameStatus===4&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=u=>l(s.unref(Mi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",SF,[s.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:a.iconColor},null,8,wF)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",TF,[s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=u=>l(s.unref(Mi).PLAY_GOALS))},[CF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Goles ",4)]),s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=u=>l(s.unref(Mi).PLAY_RESUME))},[kF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Resumen ",4)])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=u=>l(s.unref(Mi).SHOW_GAME_EVENTS))},[(s.openBlock(),s.createElementBlock("svg",EF,[s.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,IF)]))],2)]))}},NF=Ri(xF,[["__scopeId","data-v-89107a16"]]),nh=e=>(s.pushScopeId("data-v-33964596"),e=e(),s.popScopeId(),e),AF={class:"row-landing__game-status"},PF={class:"row-landing__game-actions"},OF={class:"row-full__game-status"},BF={class:"row-full__game-info"},DF={key:0},LF={class:"row-full__game-actions"},RF={class:"game-events-container"},MF=nh(()=>s.createElementVNode("div",{class:"separator"},null,-1)),FF=nh(()=>s.createElementVNode("div",null,null,-1)),VF={class:"game-events__data"},UF={class:"game-events__data__team"},jF=["src"],zF={class:"game-events__data__team__event__text"},HF={class:"game-events__data__team away"},qF={class:"game-events__data__team__event__text"},WF=["src"],GF=nh(()=>s.createElementVNode("div",null,null,-1)),KF=nh(()=>s.createElementVNode("div",null,null,-1)),JF={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:t}){const a=e,i={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},n=s.ref(!1),r=s.ref(!1),o=s.computed(()=>{const f={homeTeam:[],awayTeam:[]};return a.game&&a.game.game_status!==4&&!a.game.is_live&&a.game.minutes&&(f.homeTeam.push(...p(a.game.minutes.home_goals_minutes,i.GOAL)),f.homeTeam.push(...p(a.game.minutes.home_red_cards_minutes,i.RED_CARD)),f.homeTeam.push(...p(a.game.minutes.home_yellow_cards_minutes,i.YELLOW_CARD)),f.awayTeam.push(...p(a.game.minutes.visiting_goals_minutes,i.GOAL)),f.awayTeam.push(...p(a.game.minutes.away_red_cards_minutes,i.RED_CARD)),f.awayTeam.push(...p(a.game.minutes.away_yellow_cards_minutes,i.YELLOW_CARD))),f}),l=s.computed(()=>({"background-color":a.backgroundColor})),c=s.computed(()=>({height:a.height})),d=s.computed(()=>{const f={game:[],events:[]};return a.componentWidth<500?(f.events.push("break-point-3"),f.game.push("break-point-2")):a.componentWidth<730?(f.game.push("break-point-2"),f.events.push("break-point-2")):a.componentWidth<910&&(f.game.push("break-point-1"),f.events.push("break-point-1")),f}),u=s.computed(()=>({isLandingMode:a.isLandingMode,game:a.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),h=s.computed(()=>({"font-size":a.televisionFontSize,"font-family":a.televisionFontFamily,color:a.televisionColor}));s.watch(()=>a.componentWidth,f=>{r.value=f<910});function p(f,b){return f.map(_=>({iconUrl:b,text:_}))}function m(f){f===Mi.SHOW_GAME_EVENTS?n.value=!n.value:t("action",{action:f,game:a.game})}return(f,b)=>e.isLandingMode?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-landing",style:s.normalizeStyle(l.value)},[s.createVNode(CT,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),s.createElementVNode("div",AF,[s.createVNode(ET,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(TT)(e.game.roundAbbreviation),"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"])]),s.createElementVNode("div",PF,[s.createVNode(hF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:m},null,8,["is-live","has-video","game-status"])])],4)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"row-full-container",style:s.normalizeStyle(l.value)},[s.createElementVNode("div",{class:s.normalizeClass(["row-full",d.value.game]),style:s.normalizeStyle(c.value)},[s.createElementVNode("div",OF,[s.createVNode(ET,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(TT)(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"])]),s.createElementVNode("div",BF,[s.createVNode(CT,s.mergeProps(u.value,{"is-television-visible":r.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?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-full__television",style:s.normalizeStyle(h.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(s.openBlock(),s.createElementBlock("span",DF,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0),s.createElementVNode("div",LF,[s.createVNode(NF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":n.value,"component-width":e.componentWidth,onAction:m},null,8,["is-live","has-video","game-status","are-events-visible","component-width"])])],6),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",RF,[MF,s.createElementVNode("div",{class:s.normalizeClass(["game-events",d.value.events])},[FF,s.createElementVNode("div",VF,[s.createElementVNode("div",UF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.homeTeam,(_,N)=>(s.openBlock(),s.createElementBlock("div",{key:`h${N}`,class:"game-events__data__team__event"},[s.createElementVNode("img",{src:_.iconUrl},null,8,jF),s.createElementVNode("div",zF,s.toDisplayString(_.text),1)]))),128))]),s.createElementVNode("div",HF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.awayTeam,(_,N)=>(s.openBlock(),s.createElementBlock("div",{key:`a${N}`,class:"game-events__data__team__event"},[s.createElementVNode("div",qF,s.toDisplayString(_.text),1),s.createElementVNode("img",{src:_.iconUrl},null,8,WF)]))),128))])]),GF,KF],2)],512),[[s.vShow,n.value]])]),_:1})],4))}},IT=Ri(JF,[["__scopeId","data-v-33964596"]]),XF={class:"calendar-table"},YF={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:t}){const a=e;function i(r){return r%2===0?a.evenRowColor:a.oddRowColor}function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",XF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.gamesPerPage,(l,c)=>(s.openBlock(),s.createBlock(IT,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":i(c),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:n},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},QF=Ri(YF,[["__scopeId","data-v-c8583c72"]]),ZF={class:"calendar-by-team"},$F={class:"playing-as-picker"},eV={class:"calendar-by-team__page"},tV={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:t}){const a=e,i=s.ref(0),n=s.computed(()=>{let c=[];if(a.gamesPages.size>0){const d=Array.from(a.gamesPages.entries()).reduce((u,[h,p])=>{const m=Number(h),f=Number.isNaN(m)?h:`Jornada ${m<10?"0":""}${m}`,b=p.reduce((_,N)=>(_.push(...N),_),[]).filter(_=>i.value===0||i.value===1&&_.visiting_team.team_id===a.teamId?!0:i.value===2&&_.home_team.team_id===a.teamId);return b.length>0&&u.push({roundName:f,games:b}),u},[]);c.push(d)}return c});function r(c){t("action",c)}function o(c){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),i.value=c,document.querySelector("#opc"+c).classList.add("selected")}function l(c){let d=c;switch(c){case"PI1":d="Play In 1";break;case"PI2":d="Play In 2";break;case"R1":d="Repechaje";break;case"CFI":d="Cuartos de final - Ida";break;case"CFV":d="Cuartos de final - Vuelta";break;case"SFI":d="Semifinal - Ida";break;case"SFV":d="Semifinal - Vuelta";break;case"FI":d="Final - Ida";break;case"FV":d="Final - Vuelta";break}return d}return(c,d)=>(s.openBlock(),s.createElementBlock("div",ZF,[s.createElementVNode("div",$F,[s.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:d[0]||(d[0]=u=>o(0))},"Todas"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:d[1]||(d[1]=u=>o(1))},"Visitante"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:d[2]||(d[2]=u=>o(2))},"Local")]),s.createVNode(s.unref(vT),{"is-pagination-visible":e.isPaginationVisible,items:n.value},{default:s.withCtx(({item:u})=>[s.createElementVNode("div",eV,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u,(h,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,class:"calendar-by-team__page__round"},[s.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:s.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},s.toDisplayString(l(h.roundName)),5),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.games,m=>(s.openBlock(),s.createBlock(IT,{key:m.game_id,game:m,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:r},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},aV=Ri(tV,[["__scopeId","data-v-875ef70b"]]),iV="_image62Icon_1ybd3_2",nV="_imgChivasIcon_1ybd3_11",rV="_nameDesktop_1ybd3_18",sV="_nameMobile_1ybd3_31",oV="_homeTeam_1ybd3_43",lV="_sbado16De_1ybd3_54",cV="_gameDate_1ybd3_63",dV="_sab16092023_1ybd3_67",uV="_div_1ybd3_80",hV="_divscore_1ybd3_89",pV="_cst_1ybd3_99",mV="_hour_1ybd3_108",fV="_score_1ybd3_109",gV="_chivasTvCanal_1ybd3_120",yV="_gameStatus_1ybd3_132",_V="_matchInfo_1ybd3_143",bV="_image62Icon1_1ybd3_156",vV="_name_1ybd3_18",SV="_imgAtlasIcon_1ybd3_178",wV="_name1_1ybd3_185",TV="_awayTeam_1ybd3_197",CV="_matchCard_1ybd3_208",kV={image62Icon:iV,imgChivasIcon:nV,nameDesktop:rV,nameMobile:sV,homeTeam:oV,sbado16De:lV,gameDate:cV,sab16092023:dV,div:uV,divscore:hV,cst:pV,hour:mV,score:fV,chivasTvCanal:gV,gameStatus:yV,matchInfo:_V,image62Icon1:bV,name:vV,imgAtlasIcon:SV,name1:wV,awayTeam:TV,matchCard:CV},EV=["src"],IV=["src"],xV={key:0},NV=["src"],AV=["src"],PV={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const t=e,a=s.computed(()=>{const n={...t.game};return n.gameSchedule=t.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function i(n,r){const o=new Date(n);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],c=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[o.getDay()]} ${o.getDate()} de ${c[o.getMonth()]}`}else return`${o.getDate()}-${o.getMonth()}-${o.getFullYear()}`}return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n.$style.matchCard)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon),alt:"",src:s.unref(yo)(a.value.home_team.team_id,150)},null,10,EV),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgChivasIcon),alt:"",src:s.unref(yo)(a.value.home_team.team_id)},null,10,IV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameDesktop),id:"team-name"},s.toDisplayString(a.value.home_team.colloquial_name),3),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameMobile),id:"team-name"},s.toDisplayString(a.value.home_team.acronym),3)],2),a.value.game_status==4?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.sbado16De)},s.toDisplayString(i(a.value.date,1)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.sab16092023)},s.toDisplayString(i(a.value.date,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.hour)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.div)},s.toDisplayString(a.value.gameSchedule),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.cst)},"CST",2)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.chivasTvCanal)},s.toDisplayString(a.value.tv_stations.join(", ")),3)],2)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},s.toDisplayString(i(a.value.date,1)),3),s.createElementVNode("div",{class:s.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},s.toDisplayString(i(a.value.date,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.score)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.divscore)},s.toDisplayString(a.value.score.join(" - ")),3)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.gameStatus)},[s.createTextVNode(" Finalizado "),a.value.penalties_score_home_team!=0||a.value.penalties_score_visiting_team!=0?(s.openBlock(),s.createElementBlock("span",xV," - Penales "+s.toDisplayString(a.value.penalties_score_home_team)+" - "+s.toDisplayString(a.value.penalties_score_visiting_team),1)):s.createCommentVNode("",!0)],2)],2)),s.createElementVNode("div",{class:s.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon1),alt:"",src:s.unref(yo)(a.value.visiting_team.team_id,150)},null,10,NV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name),id:"team-name"},s.toDisplayString(a.value.visiting_team.colloquial_name),3),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:s.unref(yo)(a.value.visiting_team.team_id)},null,10,AV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name1),id:"team-name"},s.toDisplayString(a.value.visiting_team.acronym),3)],2)],2))}},OV={$style:kV},BV=Ri(PV,[["__cssModules",OV]]),DV={class:"calendar-by-game__carousel"},LV={components:{GscSwitchComponent:Uw,GSCGeneraltable:rL,GSCCalendarByGame:Ri({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:t}){const a=e;let i=null;const n=s.ref([]),r=s.ref({}),o=s.ref([]),l=s.ref(0),c=s.ref(null),d=s.ref({}),u=s.ref(new Map),h=s.ref(!1),p=s.ref(null),m=s.ref(null),f=s.ref(null),b=s.computed(()=>a.isCup),_=s.computed(()=>a.isCupLegacy),N=s.computed(()=>({height:a.height,width:a.width})),D=s.computed(()=>a.games?L(a.games):u.value.get(d.value.key)||[]);s.watch(()=>a.seasons,ve=>{ve&&ve.length&&(h.value=!0,n.value=ve.map(pe=>pe.id),B(ve,!0))},{immediate:!0,deep:!0}),s.watch(()=>a.teamId,()=>{R()});async function j(ve,pe,z=""){let $=z;try{const ae={};a.token&&(ae.Authorization=a.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",ve.forEach((te,_e)=>{$+=`${_e===0?"":"&"}seasons=${te}`}));const{data:{data:Fe,teams:se}}=await gT.get($,{headers:ae});return{seasonsAndGames:Fe,seasonsAndTeams:se}}catch(ae){if(pe>0)return j(ve,pe-1,$);throw new Error(ae)}}function O(ve){for(const pe of ve)if(!n.value.includes(pe.season_id))return!0;return!1}async function B(ve,pe){try{r.value={};let z=0;const{seasonsAndGames:$,seasonsAndTeams:ae}=await j(ve.map(se=>se.id),3);if(pe&&O($))return;$.forEach(se=>{const{type:te}=ve.find(_e=>_e.id===se.season_id);se.type=te,se.games.forEach(_e=>{_e.season_id=se.season_id}),te===0&&(z=se.season_id)}),p.value={seasonsGames:$};const{teams:Fe}=ae.find(se=>se.season_id===z);m.value=Fe,t("change-teams",Fe),R()}catch(z){throw new Error(z)}}function R(){if(!m.value)return;const ve=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(pe=>{const z=pe.games.reduce(($,ae)=>{const Fe={...ae};return Fe.dateTimeMillis=new Date(Fe.date_time_utc).valueOf(),Fe.home_team=m.value.find(se=>se.team_id===ae.home_team),Fe.visiting_team=m.value.find(se=>se.team_id===ae.visiting_team),a.teamId&&Fe.home_team.team_id!==a.teamId&&Fe.visiting_team.team_id!==a.teamId||($[ae.matchday_abbreviation]?$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]?$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date].push(Fe):$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]=[Fe]:$[ae.matchday_abbreviation]={[ae.game_status===3?"canceled":ae.date]:[Fe]}),$},{});for(let[$,ae]of Object.entries(z))z[$]=Object.entries(ae).map(([Fe,se])=>({date:Fe,games:se.sort((te,_e)=>te.dateTimeMillis-_e.dateTimeMillis)})),z[$].sort((Fe,se)=>Fe.date<se.date?-1:Fe.date>se.date?1:0);return{type:pe.type,weight:pe.type===0?0:pe.type===2?1:2,schedule:z}}):[];ve.sort((pe,z)=>pe.weight-z.weight),r.value=ve.reduce((pe,z)=>{for(const[$,ae]of Object.entries(z.schedule))if(z.type===0)if(b.value){const Fe=$.replace("M",""),se=Fe;_.value?pe[_M[Fe]||se]=ae:pe[yM[$]||se]=ae}else pe[Number($.replace("M","")).toString()]=ae;else z.type===2?$.charAt(1)=="I"?pe[`PI${Number($.replace("PI",""))}`]=ae:pe[`R${Number($.replace("PO",""))}`]=ae:z.type===1&&(pe[gM[$]]=ae);return pe},{}),u.value=new Map,o.value=Array.from(Object.entries(r.value).reduce((pe,[z,$])=>{const ae=Number(z);let Fe="";Number.isNaN(ae)?Fe=z:Fe=ae<10?`0${ae}`:z,pe.set(z,{key:z,value:ae,valueText:Fe});const se=$.reduce((_e,we)=>(we.games.forEach(ge=>{ge.game_id===a.defaultGameId&&(f.value=z),ge.roundAbbreviation=Number.isNaN(ae)?ae:`J ${ae}`}),_e=_e.concat(we.games),_e),[]),te=L(se);return u.value.set(z,te),pe},new Map).values())}function L(ve){const pe=[];if(a.gamesPerMatchDay>0){let z=[];ve.forEach(($,ae)=>{z.push($),(ae+1)%a.gamesPerMatchDay===0&&(pe.push([...z]),z=[])}),z.length&&pe.push([...z])}else pe.push(ve);return pe}async function X(ve){try{const{data:pe}=await gT.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return pe}catch(pe){if(ve>0)return X(ve-1);throw new Error(pe)}}function U(){if(window.ResizeObserver)i=new ResizeObserver(()=>{l.value=c.value.clientWidth}),i.observe(c.value);else throw new Error("Resize observer not supported!")}function ne(ve){d.value=ve,t("change-round",ve)}function le(ve){a.areGamesCarouselType&&t("change-game-carousel",ve.selectedItem)}function Z(ve){t("action",ve),re(ve)}function re(ve){const pe="PLAY_RESUME",z="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],ae=[12,55,"35_r","54_r"],{game_id:Fe,season_id:se}=ve.game;let te={seasonId:se,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[Fe],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};ve.action===pe?(te.categoryIds=$,te.advancedFilter.playListTitle="Resumen"):ve.action===z&&(te.categoryIds=ae,te.advancedFilter.playListTitle="Goles"),t("openmedia",te)}async function Ce(){try{if(!a.awaitForSeasons&&!a.games){const ve=(await X(3)).find($=>$._id===1),pe=ve.seasons[0],z=[{id:pe.id,type:pe.type}];ve&&ve.tournament&&t("tournament-selected",ve.tournament),pe.related_seasons&&pe.related_seasons.length&&z.push(...pe.related_seasons.map($=>({id:$.id,type:$.type}))),await B(z,!1)}}catch(ve){throw new Error(ve)}}return s.onMounted(()=>{U()}),Ce(),(ve,pe)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:s.normalizeStyle(N.value)},[e.teamId&&!e.avoidTeamIdFilter?(s.openBlock(),s.createBlock(aV,{key:0,"full-tournament-schedule":r.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":l.value,"games-pages":u.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Z},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.areRoundsVisible&&o.value?(s.openBlock(),s.createBlock(LM,{key:0,"match-days":o.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":l.value,"default-match-day-key":f.value,onChangeMatchDay:ne},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key"])):s.createCommentVNode("",!0),s.createElementVNode("div",DV,[D.value?(s.openBlock(),s.createBlock(s.unref(vT),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?D.value[0]:D.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:le},{default:s.withCtx(({item:z})=>[e.areGamesCarouselType?(s.openBlock(),s.createBlock(BV,{key:0,game:z},null,8,["game"])):(s.openBlock(),s.createBlock(QF,{key:1,"games-per-page":z,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,"is-round-mode":e.isRoundMode,onAction:Z},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):s.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-59b1b369"]])},props:{season:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)}}},RV={class:"gsc-calendar-table"},MV={class:"gsc-switch-container"},FV={class:"gsc-app-component"};function VV(e,t,a,i,n,r){const o=s.resolveComponent("GscSwitchComponent"),l=s.resolveComponent("GSCGeneraltable"),c=s.resolveComponent("GSCCalendarByGame");return s.openBlock(),s.createElementBlock("div",RV,[s.createElementVNode("div",MV,[s.createVNode(o,{type:0,"font-family":"Poppins-Regular",buttons:["Mi posición","Calendario"],height:"40px","selected-option":n.selectedOpt,"font-size":a.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),s.createElementVNode("div",FV,[n.selectedOpt=="Mi posición"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(l,{isPaginationVisible:!0,"current-season-id":a.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia},null,8,["current-season-id","onOpenmedia"]),s.createElementVNode("div",{onClick:t[0]||(t[0]=d=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(c,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:n.tokenFree,seasons:[a.season],"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":5,"items-to-scroll":5,"max-games-to-show":5},null,8,["onAction","onOpenmedia","token","seasons"]),s.createElementVNode("div",{onClick:t[1]||(t[1]=d=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const UV=ri(LV,[["render",VV],["__scopeId","data-v-de96d7c8"]]),jV=e=>(s.pushScopeId("data-v-7252e477"),e=e(),s.popScopeId(),e),zV={class:"match"},HV={class:"match__header"},qV=jV(()=>s.createElementVNode("div",{class:"match__final-tag"},"FINAL ",-1)),WV={class:"match__tag"},GV={class:"match__body"},KV={class:"match__data"},JV={class:"match__acronym"},XV=["src"],YV={class:"match__score"},QV=["src"],ZV={class:"match__acronym"},$V={class:"match__status"},xT=ri({__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:""}},setup(e){return(t,a)=>{var i,n;return s.openBlock(),s.createElementBlock("section",zV,[s.createElementVNode("div",HV,[qV,s.createElementVNode("div",WV,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",GV,[s.createElementVNode("div",KV,[s.createElementVNode("div",JV,s.toDisplayString((i=e.data)==null?void 0:i.home_team_acronym),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,XV),s.createElementVNode("div",YV,s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,QV),s.createElementVNode("div",ZV,s.toDisplayString((n=e.data)==null?void 0:n.visiting_team_acronym),1)]),s.createElementVNode("div",$V,"Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=r=>t.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-7252e477"]]),eU=e=>(s.pushScopeId("data-v-e8d30afb"),e=e(),s.popScopeId(),e),tU={class:"match"},aU={class:"match__header"},iU=eU(()=>s.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),nU={class:"match__tag"},rU={class:"match__body"},sU={class:"match__data"},oU={class:"match__acronym"},lU=["src"],cU={class:"match__score"},dU=["src"],uU={class:"match__acronym"},hU={class:"match__status"},NT=ri({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("section",tU,[s.createElementVNode("div",aU,[iU,s.createElementVNode("div",nU,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",rU,[s.createElementVNode("div",sU,[s.createElementVNode("div",oU,s.toDisplayString(e.data.home_team.acronym),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,lU),s.createElementVNode("div",cU,s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,dU),s.createElementVNode("div",uU,s.toDisplayString(e.data.visiting_team.acronym),1)]),s.createElementVNode("div",hU,"Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=i=>t.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-e8d30afb"]]),pU=e=>(s.pushScopeId("data-v-a5cc46a2"),e=e(),s.popScopeId(),e),mU=["src"],fU=["src"],gU={class:"coming-match__body"},yU={class:"coming-match__data"},_U=["src"],bU={style:{"margin-top":"16px"}},vU={class:"coming-match__time"},SU=pU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),wU=["src"],ny=ri({__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){return(t,a)=>{var i,n,r,o,l,c,d,u,h,p,m,f;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,mU),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team)+".png",alt:"team-img"},null,10,fU),s.createElementVNode("div",gU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",yU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((o=e.data)==null?void 0:o.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team)+".png",alt:"team-img"},null,10,_U),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),s.createElementVNode("div",bU,[s.createElementVNode("div",vU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((d=e.data)==null?void 0:d.score[0])+" - "+s.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((h=e.data)==null?void 0:h.schedule.replace(":00","")),1)],64))]),SU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((p=e.data)==null?void 0:p.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((m=e.data)==null?void 0:m.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team)+".png",alt:"team-img"},null,10,wU)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=b=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-a5cc46a2"]]),TU=e=>(s.pushScopeId("data-v-4800d07e"),e=e(),s.popScopeId(),e),CU=["src"],kU=["src"],EU={class:"coming-match__body"},IU={class:"coming-match__data"},xU=["src"],NU={style:{"margin-top":"16px"}},AU={class:"coming-match__time"},PU=TU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),OU=["src"],AT=ri({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(t,a)=>{var i,n,r,o,l,c,d,u,h,p,m,f,b;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,CU),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((o=e.data)==null?void 0:o.visiting_team)+".png",alt:"team-img"},null,10,kU),s.createElementVNode("div",EU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",IU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((c=e.data)==null?void 0:c.home_team)+".png",alt:"team-img"},null,10,xU),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),s.createElementVNode("div",NU,[s.createElementVNode("div",AU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((u=e.data)==null?void 0:u.score[0])+" - "+s.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((p=e.data)==null?void 0:p.schedule.replace(":00","")),1)],64))]),PU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((m=e.data)==null?void 0:m.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((b=e.data)==null?void 0:b.visiting_team)+".png",alt:"team-img"},null,10,OU)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=_=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-4800d07e"]]),BU=e=>(s.pushScopeId("data-v-32065aa1"),e=e(),s.popScopeId(),e),DU={class:"quadrant-matches"},LU={class:"quadrant-matches__header"},RU={class:"quadrant-matches__title"},MU=BU(()=>s.createElementVNode("span",null," →",-1)),FU={key:0,class:"quadrant-matches__body"},VU={class:"quadrant-matches__body",style:{"column-gap":"16px"}},UU={class:"quadrant-matches__body matches"},jU={key:0,class:"quadrant-matches__body"},zU={class:"quadrant-matches__body",style:{"column-gap":"16px"}},HU=ri({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},comingMatches:{type:Array,default:()=>[]},data:{type:Object,default:()=>{}},previousMatches:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},setup(e){const t=e;s.computed(()=>t.comingMatches[0]||{}),s.computed(()=>t.previousMatches[0]||{});const a=s.toRef(t,"componentWidth"),i=s.computed(()=>a.value<768);return(n,r)=>(s.openBlock(),s.createElementBlock("section",DU,[s.createElementVNode("div",LU,[s.createElementVNode("h2",RU,s.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),s.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=o=>n.$emit("clickCalendar"))},[s.createElementVNode("span",null,s.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),MU])]),e.isFull?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.data.length>1?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0},{default:s.withCtx(()=>[s.createElementVNode("div",UU,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.data,(o,l)=>(s.openBlock(),s.createBlock(ny,{key:l,data:o,small:"",onClickMatch:c=>n.$emit("clickMatch",o[0].games[0])},null,8,["data","onClickMatch"]))),128))])]),_:1})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0,arrows:!1},{default:s.withCtx(()=>[s.createElementVNode("div",zU,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(AT,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(NT,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",jU,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(AT,{key:0,data:e.data[0],onClickMatch:r[5]||(r[5]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(NT,{key:1,data:e.data[0],onClickMatch:r[6]||(r[6]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0,arrows:!1},{default:s.withCtx(()=>[s.createElementVNode("div",VU,[s.createVNode(ny,{small:"",data:e.data.data.prematch,onClickMatch:r[3]||(r[3]=o=>n.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),s.createVNode(xT,{data:e.data.data.postmatch,onClickMatch:r[4]||(r[4]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",FU,[s.createVNode(ny,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=o=>n.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),s.createVNode(xT,{data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])])):s.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-32065aa1"]]),qU={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},setup(e){function t(){window.location.href="/calendar"}function a(i){window.location.href=`/game?g=${i.game_id}`}return(i,n)=>(s.openBlock(),s.createElementBlock("main",null,[s.createVNode(HU,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:t,onClickMatch:a,"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},WU="_toniKroos_1pe59_35",GU="_centralMidfielder_1pe59_55",KU="_icnPlayIcon_1pe59_75",JU="_verVideos_1pe59_89",XU="_btnVideosOptions_1pe59_109",YU="_info_1pe59_147",QU="_goalUnlock_1pe59_171",ZU="_teamsAmerica_1pe59_197",$U="_imageIcon_1pe59_217",ej="_playerTops_1pe59_237",tj={toniKroos:WU,centralMidfielder:GU,icnPlayIcon:KU,verVideos:JU,btnVideosOptions:XU,info:YU,goalUnlock:QU,teamsAmerica:ZU,imageIcon:$U,playerTops:ej},aj=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},ij={props:{height:{type:String,default:"194px"},background:{type:String,default:"#122735"},borderRadius:{type:String,default:"4px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#ffffff"},namePlayerFont:{type:String,default:"Montserrat-SemiBold"},namePlayerFontColor:{type:String,default:"#ffffff"},namePlayerFontSize:{type:String,default:"18px"},namePlayerFontStyle:{type:String,default:"Normal"},namePositionFont:{type:String,default:"Poppins-Regular"},namePositionFontColor:{type:String,default:"#8ea2ab"},namePositionFontSize:{type:String,default:"14px"},namePositionFontStyle:{type:String,default:"Normal"},totalFont:{type:String,default:"Poppins-Regular"},totalFontColor:{type:String,default:"#ffffff"},totalFontSize:{type:String,default:"8px"},totalFontStyle:{type:String,default:"Normal"},totalHeight:{type:String,default:"22px"},totalWidth:{type:String,default:"75px"},totalBorderRadius:{type:String,default:"64px"},totalBorderWidth:{type:Number,default:1},totalBorderColor:{type:String,default:"#cbee6b"},iconPlay:{type:String,default:"/icnplay1.svg"},teamWidth:{type:String,default:"34px"},teamPositionLeft:{type:String,default:"12px"},teamPositionTop:{type:String,default:""},playerOrTeamPhotoWidth:{type:String,default:"99px"},numbertopLeft:{type:String,default:"-8px"},numbertopBottom:{type:String,default:"-25px"},numbertopTop:{type:String},numbertopRight:{type:String},numbertopColor:{type:String,default:"#ffffff"},numbertopFontSize:{type:String,default:"98px"},numbertopOpacity:{type:String,default:"0.18"},numberFontFamily:{type:String,default:"Montserrat-SemiBold"},showShieldTeam:{type:Boolean,default:!0},showIconVideo:{type:Boolean,default:!0},showPositionPlayer:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},freemiumActive:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},computed:{customMosaic(){return{height:this.height,background:this.background,borderRadius:`${this.borderRadius} !important`,border:`solid ${this.borderWidth}px ${this.borderColor}`}},customNamePlayer(){return{fontFamily:this.namePlayerFont,fontSize:this.namePlayerFontSize,color:this.namePlayerFontColor,fontStyle:this.namePlayerFontStyle}},customNamePosition(){return{fontFamily:this.namePositionFont,fontSize:this.namePositionFontSize,color:this.namePositionFontColor,fontStyle:this.namePositionFontStyle}},customTotal(){return{fontFamily:this.totalFont,fontSize:this.totalFontSize,color:this.totalFontColor,fontStyle:this.totalFontStyle}},customTotalCont(){return{MinHeight:this.totalHeight,width:this.totalWidth,borderRadius:`${this.totalBorderRadius} !important`,border:`solid ${this.totalBorderWidth}px ${this.totalBorderColor}`}},customShieldTeam(){return{width:this.teamWidth,top:this.teamPositionTop,left:this.teamPositionLeft}},customPhotoPlayerOrTeam(){return{width:this.playerOrTeamPhotoWidth}},customNumberTop(){return{fontSize:this.numbertopFontSize,color:this.numbertopColor,left:this.numbertopLeft,right:this.numbertopRight,top:this.numbertopTop,bottom:this.numbertopBottom,opacity:this.numbertopOpacity,fontFamily:this.numberFontFamily}}},methods:{onPlayerTopsClick(e){this.activeVideos&&(this.$emit("clickMosaic",e),this.$emit("freemium",this.freemiumActive))},onButtonVideos(e){this.activeVideos&&(this.$emit("openmedia",e),this.$emit("clickvideos",e.id),this.$emit("freemium",this.freemiumActive))}}},nj=["src"],rj=["src"],sj=["src"];function oj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(e.$style.playerTops),style:s.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:t[1]||(t[1]=o=>r.onPlayerTopsClick(a.data.player_id))},[s.createElementVNode("div",{class:s.normalizeClass(e.$style.info)},[s.createElementVNode("h3",{class:s.normalizeClass(e.$style.toniKroos),style:s.normalizeStyle(r.customNamePlayer)},s.toDisplayString(a.data.player_name),7),a.showPositionPlayer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(e.$style.centralMidfielder),style:s.normalizeStyle(r.customNamePosition)},s.toDisplayString(a.data.player_position),7)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(e.$style.btnVideosOptions),style:s.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:t[0]||(t[0]=o=>r.onButtonVideos(a.data))},[a.showIconVideo?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.icnPlayIcon),src:a.iconPlay},null,10,nj)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(e.$style.verVideos),style:s.normalizeStyle(r.customTotal)},s.toDisplayString(a.data.player_stat)+" "+s.toDisplayString(a.data.category),7)],6)],2),s.createElementVNode("b",{style:s.normalizeStyle(r.customNumberTop),class:s.normalizeClass(e.$style.goalUnlock)},s.toDisplayString(a.data.top),7),a.showShieldTeam?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.teamsAmerica),style:s.normalizeStyle(r.customShieldTeam),loading:"lazy",src:a.data.team_logo},null,14,rj)):s.createCommentVNode("",!0),s.createElementVNode("img",{style:s.normalizeStyle(r.customPhotoPlayerOrTeam),class:s.normalizeClass(e.$style.imageIcon),loading:"lazy",src:a.data.player_photo},null,14,sj)],6)}const lj={$style:tj},cj=aj(ij,[["render",oj],["__cssModules",lj]]),dj=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},ry={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},PT=()=>{s.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},OT=ry.setup;ry.setup=OT?(e,t)=>(PT(),OT(e,t)):PT;const uj=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),hj=["src"],pj={key:1,class:"text"},mj=["src"],fj={class:"stats"},gj=uj(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),yj={class:"numstats"},_j={class:"leyend"};function bj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,hj)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",pj,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,mj)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",fj,[gj,s.createElementVNode("div",yj,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",_j,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const vj=dj(ry,[["render",bj],["__scopeId","data-v-fb269a1e"]]);function Sj(e){const t=s.ref({width:0,height:0});function a(){const i=e.value.getBoundingClientRect();t.value.width=i.width,t.value.height=i.height}return s.onMounted(()=>{a(),window.addEventListener("resize",a)}),s.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:t}}const sy={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(t){throw new Error(t)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},BT=()=>{s.useCssVars(e=>({"07b24dd0":e.backgroundColor,"2ba6f6b1":e.widthCircle,c219f888:e.heightCircle}))},DT=sy.setup;sy.setup=DT?(e,t)=>(BT(),DT(e,t)):BT;const wj={key:0,class:"text-left"},Tj=["width","src"],Cj=["checked"],kj=["width","src"],Ej={key:3,class:"text-right"};function Ij(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",{class:"gsc-switch-radio",style:s.normalizeStyle(r.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",wj,s.toDisplayString(a.textOptionLeft),1)):s.createCommentVNode("",!0),a.iconA!=""?(s.openBlock(),s.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA},null,8,Tj)):s.createCommentVNode("",!0),s.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:t[0]||(t[0]=(...o)=>r.handleSwitchChange&&r.handleSwitchChange(...o)),checked:n.OptionDefault},null,40,Cj),s.createElementVNode("label",{for:"toggle-btn",style:s.normalizeStyle([r.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(s.openBlock(),s.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB},null,8,kj)):s.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",Ej,s.toDisplayString(a.textOptionRight),1)):s.createCommentVNode("",!0)],4)}const oy={components:{GSCSlider:Sc,GSCMosaicthebest:cj,GscSwitchComponent:Uw,GSCButton:vj,GSCRadioToggle:ri(sy,[["render",Ij],["__scopeId","data-v-f00464ad"]])},setup(){const e=s.ref("myDivRef"),{elementSize:t}=Sj(e);return{myDivRef:e,elementSize:t}},props:{backgroundColor:{type:String,default:"#0D1D29"},showSwitch:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,t){await this.getCategoryStats(e,1)}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoriesDefault:["Goles","Pases acertados","Balones recuperados en disputa","Asistencias","Participaciones en gol","Tiros a gol","Tiros a gol que llegaron a la portería","Cabeceos en área rival","Cabeceos en área propia","Centros","Centros acertados","1vs1 exitosos ofensivos","1vs1 exitosos ofensivos que terminaron en gol","1vs1 defensivos exitoso","Rechaces","Balones ganados en área propia","Balones ganados en área rival","Faltas cometidas","Faltas recibidas","Tarjetas amarillas","Tarjetas rojas","Atajadas","Tiros de Esquina"],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8,name:"Cabeceos en área rival"},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],categoryData:[],categorySelected:null,isTeam:!1,categoryName:"Goles",optionSelected:"Jugadores",positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}]}),async created(){},computed:{topData(){var e=[];return this.categorySelected!=null&&this.categoryData[this.categorySelected]!==void 0&&(this.isTeam?e=this.categoryData[this.categorySelected].top__teams:e=this.categoryData[this.categorySelected].top__players),e}},methods:{translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const t=this.translateTopCategories(this.categorySelected),a=2,i=3;let n=[],r=0,o=0;this.isTeam?(r=e.player_id,o=i):(n=[e.player_id],o=a);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:n,goalkeeperIds:[],categoryIds:t,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:e.category},objectPlaySync:null};this.$emit("openmedia",l)},async ChangeRadio(e){e==="Mi equipo"&&await this.getCategoryStats(this.season,0),e==="Liga MX"&&await this.getCategoryStats(this.season,1)},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const t=this.categories.find(a=>a.name===e);this.categorySelected=t.id},async getCategoryStats(e,t){try{let n={},r={},o=[];const l=ms.create({headers:{Authorization:`${this.token}`}});var a={};if(t==0&&(a=await l.get(this.url+this.season+"/teams/"+this.teamId)),t==1&&(a=await l.get(this.url+e)),a&&a.data){a.data.teams.map(c=>{n[c[0]]={},n[c[0]].id=c[0],n[c[0]].name=c[2],n[c[0]].img=c[3],n[c[0]].abrv=c[2],n[c[0]].logo=c[3]}),a.data.players.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[2],r[c[0]].position=c[6],r[c[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+c[10][0].team_id+".png"});var i=1;a.data.tops.map(c=>{o[c.category?c.category:i]={};var d={},u={};c.teams.map(m=>{d[m[0]]={},d[m[0]].total=m[1],d[m[0]].id=n[m[0]].id,d[m[0]].name=n[m[0]].name,d[m[0]].img="https://az755631.vo.msecnd.net/teams-150/"+m[0]+".png",d[m[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+m[0]+".png"}),c.players.map(m=>{u[m[0]]={},u[m[0]].total=m[1],u[m[0]].name=r[m[0]].name,u[m[0]].img=r[m[0]].img.replace("players-profile/","players-profile/"),u[m[0]].id=r[m[0]].id,u[m[0]].position=this.positions[r[m[0]].position-1].name,u[m[0]].logo=r[m[0]].logo});var h=[],p=[];for(const m in d)h.push(d[m]);for(const m in u)p.push(u[m]);h.sort((m,f)=>m.total<f.total?1:-1),p.sort((m,f)=>m.total<f.total?1:-1),o[c.category?c.category:i].top__players=p,o[c.category?c.category:i].top__teams=h,i++})}this.categorySelected=1,this.categoryData=o}catch(n){return Promise.reject(n)}}}},LT=()=>{s.useCssVars(e=>({"578abbed":e.backgroundColor,"201d087b":e.fontFamily,e93e3250:e.fontSize,"4045f928":e.fontColor,d58d9480:e.marginMosaic}))},RT=oy.setup;oy.setup=RT?(e,t)=>(LT(),RT(e,t)):LT;const xj=e=>(s.pushScopeId("data-v-e870c7c5"),e=e(),s.popScopeId(),e),Nj={class:"gsc-best",ref:"myDivRef"},Aj={class:"gsc-best__line-bar-tools"},Pj={key:0,class:"gsc-best__line-bar-tools__title"},Oj=xj(()=>s.createElementVNode("span",null,"Los mejores ",-1)),Bj={key:1,class:"gsc-best__line-bar-tools__titlefull"},Dj={class:"unit-items"},Lj={key:2,class:"gsc-best__line-bar-tools__tools"},Rj={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},Mj={class:"gsc-best__line-bar-tools__tools__btn"},Fj={key:0,class:"gsc-best__line-bar-tools-movil"},Vj={class:"gsc-best__line-bar-tools-movil__tabs"},Uj={class:"gsc-best__categories"},jj={class:"gsc-best__players"};function zj(e,t,a,i,n,r){const o=s.resolveComponent("GSCRadioToggle"),l=s.resolveComponent("GSCButton"),c=s.resolveComponent("GscSwitchComponent"),d=s.resolveComponent("GSCMosaicthebest"),u=s.resolveComponent("GSCSlider");return s.openBlock(),s.createElementBlock("div",Nj,[s.createElementVNode("div",Aj,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Pj,[Oj,e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",Bj,[s.createElementVNode("span",{style:s.normalizeStyle(i.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),s.createElementVNode("span",Dj,[e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","hidden-labels":!0,"value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0),s.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":i.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":i.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):s.createCommentVNode("",!0),i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Lj,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Rj,[s.createVNode(c,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Regular",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):s.createCommentVNode("",!0),s.createElementVNode("div",Mj,[s.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),s.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):s.createCommentVNode("",!0)]),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",Fj,[s.createElementVNode("div",Vj,[s.createVNode(c,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Regular",onInput:r.changeType},null,8,["selected-option","onInput"])])])):s.createCommentVNode("",!0),s.createElementVNode("div",Uj,[s.createVNode(c,{type:2,arrow:!0,"font-family":"Poppins-Regular",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":i.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:r.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0},null,8,["buttons","font-size","onInput"])]),s.createElementVNode("div",jj,[s.createVNode(u,{pxScroll:777,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.topData,(h,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,class:s.normalizeClass(["gsc-best__players__item",p==0?"margin-none":""])},[s.createVNode(d,{data:{player_id:h.id,player_name:h.name,player_position:h.position,player_stat:h.total,category:"Total",top:p<9?"0"+(p+1):p+1,team_logo:h.logo,player_photo:h.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"14px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-SemiBold!important",totalHeight:"21px"},null,8,["data","onClickMosaic","onOpenmedia"])],2))),128))]),_:1})])],512)}const Hj=ri(oy,[["render",zj],["__scopeId","data-v-e870c7c5"]]),_t=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},qj=e=>(s.pushScopeId("data-v-b9c574d2"),e=e(),s.popScopeId(),e),Wj={key:0,class:"match-header__left"},Gj={class:"match-header__img-container"},Kj=["src"],Jj={class:"match-header__img-container overlap"},Xj=["src"],Yj={class:"match-header__score"},Qj={class:"match-header__date"},Zj={key:0,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",viewBox:"0 0 12 7",fill:"none"},$j=qj(()=>s.createElementVNode("path",{d:"M11 1L6 6L1 0.999999",stroke:"#9CA3AF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),ez=[$j],tz={__name:"MatchHeader",props:{match:{type:Object,default:()=>({})},mobileClass:{type:String,default:""},clientWidth:{type:Number,default:0},hideArrow:{type:Boolean,default:!1}},setup(e){const t=e,a=s.computed(()=>{let r=[];return t.clientWidth>0&&(t.clientWidth<=450?r.push("match-header__acronyms__450"):t.clientWidth<=750?r.push("match-header__acronyms__750"):t.clientWidth<=850?r.push("match-header__acronyms__850"):r.push("match-header__acronyms")),r}),{match:i,mobileClass:n}=s.toRefs(t);return(r,o)=>{var l,c,d,u,h,p,m,f;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["match-header",s.unref(n)])},[s.unref(i)?(s.openBlock(),s.createElementBlock("div",Wj,[s.createElementVNode("div",Gj,[s.createElementVNode("img",{class:"match-header__img",src:(c=(l=s.unref(i))==null?void 0:l.homeTeam)==null?void 0:c.logo},null,8,Kj)]),s.createElementVNode("div",Jj,[s.createElementVNode("img",{class:"match-header__img",src:(u=(d=s.unref(i))==null?void 0:d.awayTeam)==null?void 0:u.logo},null,8,Xj)]),s.createElementVNode("div",{class:s.normalizeClass(["match-header__acronyms",a.value])},s.toDisplayString(`${(p=(h=s.unref(i))==null?void 0:h.homeTeam)==null?void 0:p.acronym} VS ${(f=(m=s.unref(i))==null?void 0:m.awayTeam)==null?void 0:f.acronym}`),3)])):s.createCommentVNode("",!0),s.createElementVNode("div",Yj,s.toDisplayString(`${s.unref(i).score[0]} - ${s.unref(i).score[1]}`),1),s.createElementVNode("div",Qj,[s.createElementVNode("span",null,s.toDisplayString(s.unref(i).date.split("-").reverse().join("/")),1),e.hideArrow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("svg",Zj,ez))])],2)}}},MT=_t(tz,[["__scopeId","data-v-b9c574d2"]]);function az(){return FT().__VUE_DEVTOOLS_GLOBAL_HOOK__}function FT(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const iz=typeof Proxy=="function",nz="devtools-plugin:setup",rz="plugin:settings:set";let Ac,ly;function sz(){var e;return Ac!==void 0||(typeof window<"u"&&window.performance?(Ac=!0,ly=window.performance):typeof global<"u"&&!((e=global.perf_hooks)===null||e===void 0)&&e.performance?(Ac=!0,ly=global.perf_hooks.performance):Ac=!1),Ac}function oz(){return sz()?ly.now():Date.now()}class lz{constructor(t,a){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=a;const i={};if(t.settings)for(const o in t.settings){const l=t.settings[o];i[o]=l.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},i);try{const o=localStorage.getItem(n),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(n,JSON.stringify(o))}catch{}r=o},now(){return oz()}},a&&a.on(rz,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:l,args:c,resolve:d})})})}async setRealTarget(t){this.target=t;for(const a of this.onQueue)this.target.on[a.method](...a.args);for(const a of this.targetQueue)a.resolve(await this.target[a.method](...a.args))}}function cz(e,t){const a=e,i=FT(),n=az(),r=iz&&a.enableEarlyProxy;if(n&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))n.emit(nz,e,t);else{const o=r?new lz(a,n):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:a,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
|
|
23
|
+
*/const na={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"}},ST={itemsToShow:{default:na.itemsToShow,type:Number},itemsToScroll:{default:na.itemsToScroll,type:Number},wrapAround:{default:na.wrapAround,type:Boolean},throttle:{default:na.throttle,type:Number},snapAlign:{default:na.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:na.transition,type:Number},breakpoints:{default:na.breakpoints,type:Object},autoplay:{default:na.autoplay,type:Number},pauseAutoplayOnHover:{default:na.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:na.mouseDrag,type:Boolean},touchDrag:{default:na.touchDrag,type:Boolean},dir:{default:na.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:na.i18n,type:Object},settings:{default(){return{}},type:Object}};function bM({config:e,slidesCount:t}){const{snapAlign:a,wrapAround:i,itemsToShow:n=1}=e;if(i)return Math.max(t-1,0);let r;switch(a){case"start":r=t-n;break;case"end":r=t-1;break;case"center":case"center-odd":r=t-Math.ceil((n-.5)/2);break;case"center-even":r=t-Math.ceil(n/2);break;default:r=0;break}return Math.max(r,0)}function vM({config:e,slidesCount:t}){const{wrapAround:a,snapAlign:i,itemsToShow:n=1}=e;let r=0;if(a||n>t)return r;switch(i){case"start":r=0;break;case"end":r=n-1;break;case"center":case"center-odd":r=Math.floor((n-1)/2);break;case"center-even":r=Math.floor((n-2)/2);break;default:r=0;break}return r}function $g({val:e,max:t,min:a}){return t<a?e:Math.min(Math.max(e,a),t)}function SM({config:e,currentSlide:t,slidesCount:a}){const{snapAlign:i,wrapAround:n,itemsToShow:r=1}=e;let o=t;switch(i){case"center":case"center-odd":o-=(r-1)/2;break;case"center-even":o-=(r-2)/2;break;case"end":o-=r-1;break}return n?o:$g({val:o,max:a-r,min:0})}function wT(e){return e?e.reduce((t,a)=>{var i;return a.type===s.Fragment?[...t,...wT(a.children)]:((i=a.type)===null||i===void 0?void 0:i.name)==="CarouselSlide"?[...t,a]:t},[]):[]}function ey({val:e,max:t,min:a=0}){return e>t?ey({val:e-(t+1),max:t,min:a}):e<a?ey({val:e+(t+1),max:t,min:a}):e}function wM(e,t){let a;return t?function(...i){const n=this;a||(e.apply(n,i),a=!0,setTimeout(()=>a=!1,t))}:e}function TM(e,t){let a;return function(...i){a&&clearTimeout(a),a=setTimeout(()=>{e(...i),a=null},t)}}function CM(e="",t={}){return Object.entries(t).reduce((a,[i,n])=>a.replace(`{${i}}`,String(n)),e)}var kM=s.defineComponent({name:"ARIA",setup(){const e=s.inject("config",s.reactive(Object.assign({},na))),t=s.inject("currentSlide",s.ref(0)),a=s.inject("slidesCount",s.ref(0));return()=>s.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},CM(e.i18n.itemXofY,{currentSlide:t.value+1,slidesCount:a.value}))}}),EM=s.defineComponent({name:"Carousel",props:ST,setup(e,{slots:t,emit:a,expose:i}){var n;const r=s.ref(null),o=s.ref([]),l=s.ref(0),c=s.ref(0),d=s.reactive(Object.assign({},na));let u=Object.assign({},na),h;const p=s.ref((n=e.modelValue)!==null&&n!==void 0?n:0),m=s.ref(0),f=s.ref(0),b=s.ref(0),_=s.ref(0);let N,D;s.provide("config",d),s.provide("slidesCount",c),s.provide("currentSlide",p),s.provide("maxSlide",b),s.provide("minSlide",_),s.provide("slideWidth",l);function j(){h=Object.assign({},e.breakpoints),u=Object.assign(Object.assign(Object.assign({},u),e),{i18n:Object.assign(Object.assign({},u.i18n),e.i18n),breakpoints:void 0}),B(u)}function O(){if(!h||!Object.keys(h).length)return;const W=Object.keys(h).map(Se=>Number(Se)).sort((Se,Ge)=>+Ge-+Se);let ke=Object.assign({},u);W.some(Se=>{const Ge=window.matchMedia(`(min-width: ${Se}px)`).matches;return Ge&&(ke=Object.assign(Object.assign({},ke),h[Se])),Ge}),B(ke)}function B(W){Object.entries(W).forEach(([ke,Se])=>d[ke]=Se)}const R=TM(()=>{O(),L()},16);function L(){if(!r.value)return;const W=r.value.getBoundingClientRect();l.value=W.width/d.itemsToShow}function X(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),b.value=bM({config:d,slidesCount:c.value}),_.value=vM({config:d,slidesCount:c.value}),d.wrapAround||(p.value=$g({val:p.value,max:b.value,min:_.value})))}s.onMounted(()=>{s.nextTick(()=>L()),setTimeout(()=>L(),1e3),O(),Fe(),window.addEventListener("resize",R,{passive:!0}),a("init")}),s.onUnmounted(()=>{D&&clearTimeout(D),N&&clearInterval(N),window.removeEventListener("resize",R,{passive:!0})});let U=!1;const ne={x:0,y:0},le={x:0,y:0},Z=s.reactive({x:0,y:0}),re=s.ref(!1),Ce=s.ref(!1),ve=()=>{re.value=!0},pe=()=>{re.value=!1};function z(W){["INPUT","TEXTAREA","SELECT"].includes(W.target.tagName)||(U=W.type==="touchstart",U||W.preventDefault(),!(!U&&W.button!==0||te.value)&&(ne.x=U?W.touches[0].clientX:W.clientX,ne.y=U?W.touches[0].clientY:W.clientY,document.addEventListener(U?"touchmove":"mousemove",$,!0),document.addEventListener(U?"touchend":"mouseup",ae,!0)))}const $=wM(W=>{Ce.value=!0,le.x=U?W.touches[0].clientX:W.clientX,le.y=U?W.touches[0].clientY:W.clientY;const ke=le.x-ne.x,Se=le.y-ne.y;Z.y=Se,Z.x=ke},d.throttle);function ae(){const W=d.dir==="rtl"?-1:1,ke=Math.sign(Z.x)*.4,Se=Math.round(Z.x/l.value+ke)*W;if(Se&&!U){const Ge=gt=>{gt.stopPropagation(),window.removeEventListener("click",Ge,!0)};window.addEventListener("click",Ge,!0)}_e(p.value-Se),Z.x=0,Z.y=0,Ce.value=!1,document.removeEventListener(U?"touchmove":"mousemove",$,!0),document.removeEventListener(U?"touchend":"mouseup",ae,!0)}function Fe(){!d.autoplay||d.autoplay<=0||(N=setInterval(()=>{d.pauseAutoplayOnHover&&re.value||we()},d.autoplay))}function se(){N&&(clearInterval(N),N=null),Fe()}const te=s.ref(!1);function _e(W){const ke=d.wrapAround?W:$g({val:W,max:b.value,min:_.value});p.value===ke||te.value||(a("slide-start",{slidingToIndex:W,currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!0,m.value=p.value,p.value=ke,D=setTimeout(()=>{if(d.wrapAround){const Se=ey({val:ke,max:b.value,min:0});Se!==p.value&&(p.value=Se,a("loop",{currentSlideIndex:p.value,slidingToIndex:W}))}a("update:modelValue",p.value),a("slide-end",{currentSlideIndex:p.value,prevSlideIndex:m.value,slidesCount:c.value}),te.value=!1,se()},d.transition))}function we(){_e(p.value+d.itemsToScroll)}function ge(){_e(p.value-d.itemsToScroll)}const ee={slideTo:_e,next:we,prev:ge};s.provide("nav",ee),s.provide("isSliding",te);const ce=s.computed(()=>SM({config:d,currentSlide:p.value,slidesCount:c.value}));s.provide("slidesToScroll",ce);const J=s.computed(()=>{const W=d.dir==="rtl"?-1:1,ke=ce.value*l.value*W;return{transform:`translateX(${Z.x-ke}px)`,transition:`${te.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function M(){j(),O(),X(),L(),se()}Object.keys(ST).forEach(W=>{["modelValue"].includes(W)||s.watch(()=>e[W],M)}),s.watch(()=>e.modelValue,W=>{W!==p.value&&_e(Number(W))}),s.watch(c,X),a("before-init"),j();const he={config:d,slidesCount:c,slideWidth:l,next:we,prev:ge,slideTo:_e,currentSlide:p,maxSlide:b,minSlide:_,middleSlide:f};i({updateBreakpointsConfigs:O,updateSlidesData:X,updateSlideWidth:L,initDefaultConfigs:j,restartCarousel:M,slideTo:_e,next:we,prev:ge,nav:ee,data:he});const be=t.default||t.slides,Re=t.addons,We=s.reactive(he);return()=>{const W=wT(be==null?void 0:be(We)),ke=(Re==null?void 0:Re(We))||[];W.forEach((Ye,Ze)=>Ye.props.index=Ze);let Se=W;if(d.wrapAround){const Ye=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:-W.length+rt,isClone:!0,key:`clone-before-${rt}`})),Ze=W.map((Bt,rt)=>s.cloneVNode(Bt,{index:W.length+rt,isClone:!0,key:`clone-after-${rt}`}));Se=[...Ye,...W,...Ze]}o.value=W,c.value=Math.max(W.length,1);const Ge=s.h("ol",{class:"carousel__track",style:J.value,onMousedownCapture:d.mouseDrag?z:null,onTouchstartPassiveCapture:d.touchDrag?z:null},Se),gt=s.h("div",{class:"carousel__viewport"},Ge);return s.h("section",{ref:r,class:{carousel:!0,"is-sliding":te.value,"is-dragging":Ce.value,"is-hover":re.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:ve,onMouseleave:pe},[gt,ke,s.h(kM)])}}}),ty;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ty||(ty={}));const IM={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 xM(e){return e in ty}const ay=e=>{const t=s.inject("config",s.reactive(Object.assign({},na))),a=String(e.name),i=`icon${a.charAt(0).toUpperCase()+a.slice(1)}`;if(!a||typeof a!="string"||!xM(a))return;const n=IM[a],r=s.h("path",{d:n}),o=t.i18n[i]||e.title||a,l=s.h("title",o);return s.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":o},[l,r])};ay.props={name:String,title:String};const NM=(e,{slots:t,attrs:a})=>{const{next:i,prev:n}=t||{},r=s.inject("config",s.reactive(Object.assign({},na))),o=s.inject("maxSlide",s.ref(1)),l=s.inject("minSlide",s.ref(1)),c=s.inject("currentSlide",s.ref(1)),d=s.inject("nav",{}),{dir:u,wrapAround:h,i18n:p}=r,m=u==="rtl",f=s.h("button",{type:"button",class:["carousel__prev",!h&&c.value<=l.value&&"carousel__prev--disabled",a==null?void 0:a.class],"aria-label":p.ariaPreviousSlide,onClick:d.prev},(n==null?void 0:n())||s.h(ay,{name:m?"arrowRight":"arrowLeft"})),b=s.h("button",{type:"button",class:["carousel__next",!h&&c.value>=o.value&&"carousel__next--disabled",a==null?void 0:a.class],"aria-label":p.ariaNextSlide,onClick:d.next},(i==null?void 0:i())||s.h(ay,{name:m?"arrowLeft":"arrowRight"}));return[f,b]};var AM=s.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:t}){const a=s.inject("config",s.reactive(Object.assign({},na))),i=s.inject("currentSlide",s.ref(0)),n=s.inject("slidesToScroll",s.ref(0)),r=s.inject("isSliding",s.ref(!1)),o=()=>e.index===i.value,l=()=>e.index===i.value-1,c=()=>e.index===i.value+1,d=()=>{const u=Math.floor(n.value),h=Math.ceil(n.value+a.itemsToShow-1);return e.index>=u&&e.index<=h};return()=>{var u;return s.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":o(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":r.value},"aria-hidden":!d()},(u=t.default)===null||u===void 0?void 0:u.call(t))}}});const Ri=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},PM={__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:"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:t}){const a=e,i=s.computed(()=>{const l={"background-color":a.backgroundColor,height:a.height};return a.matchDay.key===a.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${a.bottomLineColor}`,l["background-color"]=a.selectedMatchDayBackgroundColor),a.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),n=s.computed(()=>({color:a.numberColor,"font-family":a.numberFontFamily,"font-size":a.numberFontSize})),r=s.computed(()=>({color:a.textColor,"font-family":a.textFontFamily,"font-size":a.textFontSize}));function o(l){t("click-match-day",l)}return(l,c)=>(s.openBlock(),s.createElementBlock("div",{class:"match-day",style:s.normalizeStyle({...i.value}),onClick:c[0]||(c[0]=d=>o(e.matchDay))},[s.createElementVNode("div",{class:"match-day__value",style:s.normalizeStyle(n.value)},s.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",{key:0,class:"match-day__text",style:s.normalizeStyle(r.value)},s.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},OM=Ri(PM,[["__scopeId","data-v-2e85c709"]]),BM={class:"match-day-picker"},DM={__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}},emits:["change-match-day"],setup(e,{emit:t}){const a=e,i=s.computed(()=>({itemsToShow:a.itemsToShow,itemsToScroll:a.itemsToScroll,snapAlign:"start"})),n=s.ref({});s.watch(()=>a.matchDays,o=>{if(o&&o.length){const l=o.find(c=>c.key===a.defaultMatchDayKey);n.value=l||o[0],t("change-match-day",n.value)}},{immediate:!0});function r(o){n.value=o,t("change-match-day",n.value)}return(o,l)=>(s.openBlock(),s.createElementBlock("div",BM,[s.createVNode(s.unref(EM),s.normalizeProps(s.guardReactiveProps(i.value)),{addons:s.withCtx(()=>[s.createVNode(s.unref(NM))]),default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.matchDays,c=>(s.openBlock(),s.createBlock(s.unref(AM),{key:c.key},{default:s.withCtx(()=>[s.createVNode(OM,s.mergeProps(a,{"match-day":c,"match-day-selected":n.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:r}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)]))}},LM=Ri(DM,[["__scopeId","data-v-fe04fd25"]]);function yo(e,t=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${t}/${e}.png`}function TT(e){let t=e.replace("M","J ");return t=t.replace("PO1","CFI"),t=t.replace("PO2","CFV"),t=t.replace("PO3","SFI"),t=t.replace("PO4","SFV"),t=t.replace("PO5","FI"),t=t.replace("PO6","FV"),t}function RM(e){let t="";return e.game_status!=4&&(t+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(t+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),t}const MM={class:"game-info"},FM={class:"game-info__teams"},VM={class:"game-info__teams__team__logo"},UM=["src"],jM={class:"game-info__teams__detail"},zM={key:0,class:"game-info__teams__detail__pre-game"},HM={class:"game-info__teams__team__logo away"},qM=["src"],WM={key:0},GM={key:0},KM={key:1},JM={__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 t=e,a=s.computed(()=>{const d=new Date(t.game.dateTimeMillis),u=d.getHours(),h=d.getMinutes();return`${u<10?`0${u}`:u}:${h<10?`0${h}`:h}`}),i=s.computed(()=>{let d="120px";return(t.isLandingMode||t.isAcronymVisible)&&(d="70px"),{"min-width":d}}),n=s.computed(()=>({"font-size":t.namesFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),r=s.computed(()=>({"font-size":t.additionalInfoFontSize,"font-family":t.additionalInfoFontFamily,color:t.colorSecondary})),o=s.computed(()=>({"font-size":t.scoreFontSize,"font-family":t.scoreFontFamily,color:t.colorPrimary})),l=s.computed(()=>({"font-size":t.timeZoneFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary})),c=s.computed(()=>({"font-size":t.timeFontSize,"font-family":t.namesFontFamily,color:t.colorPrimary}));return(d,u)=>(s.openBlock(),s.createElementBlock("div",MM,[s.createElementVNode("div",FM,[s.createElementVNode("div",{class:"game-info__teams__team",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),s.createElementVNode("div",VM,[s.createElementVNode("img",{src:s.unref(yo)(e.game.home_team.team_id),alt:""},null,8,UM)])],4),s.createElementVNode("div",jM,[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("div",zM,[s.createElementVNode("div",null,[s.createElementVNode("span",{style:s.normalizeStyle(c.value)},s.toDisplayString(a.value),5),s.createTextVNode(),s.createElementVNode("span",{style:s.normalizeStyle(l.value)},"CST",4)])])):(s.openBlock(),s.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:s.normalizeStyle(o.value)},[s.createElementVNode("span",null,s.toDisplayString(e.game.score[0])+" - "+s.toDisplayString(e.game.score[1]),1)],4))]),s.createElementVNode("div",{class:"game-info__teams__team away",style:s.normalizeStyle(i.value)},[s.createElementVNode("div",HM,[s.createElementVNode("img",{src:s.unref(yo)(e.game.visiting_team.team_id),alt:""},null,8,qM)]),s.createElementVNode("div",{class:"game-info__teams__team__name",style:s.normalizeStyle(n.value)},s.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),s.createElementVNode("div",{class:"game-info__status",style:s.normalizeStyle(r.value)},[e.game.game_status===4&&!e.game.is_live?(s.openBlock(),s.createElementBlock("span",WM,[e.isTelevisionVisible?(s.openBlock(),s.createElementBlock("span",GM,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)])):(s.openBlock(),s.createElementBlock("span",KM,s.toDisplayString(s.unref(RM)(e.game)),1))],4)]))}},CT=Ri(JM,[["__scopeId","data-v-81ac514d"]]),kT=e=>(s.pushScopeId("data-v-3bf9087f"),e=e(),s.popScopeId(),e),XM={class:"game-status"},YM={key:0,class:"game-status__day__live"},QM=kT(()=>s.createElementVNode("span",null,"LIVE",-1)),ZM=kT(()=>s.createElementVNode("span",{class:"dot"},null,-1)),$M=[QM,ZM],eF={key:0,class:"game-status__round"},tF={__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 t=e,a=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],i=s.computed(()=>{let o="";if(t.dateTimeMillis){const l=new Date(t.dateTimeMillis);o=`${l.getDate()} ${a[l.getMonth()]}`}return o}),n=s.computed(()=>({"font-size":t.fontSize})),r=s.computed(()=>{let o=[];return t.isLive?o.push("live"):t.status!==1&&o.push("pre-match"),o});return(o,l)=>(s.openBlock(),s.createElementBlock("div",XM,[s.createElementVNode("div",{class:s.normalizeClass(["game-status__day",r.value]),style:s.normalizeStyle(n.value)},[e.isLive?(s.openBlock(),s.createElementBlock("div",YM,$M)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString(i.value),1)],64))],6),e.isRoundMode?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("div",eF,s.toDisplayString(e.roundAbbreviation),1))]))}},ET=Ri(tF,[["__scopeId","data-v-3bf9087f"]]),Mi={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},aF=e=>(s.pushScopeId("data-v-70dd3937"),e=e(),s.popScopeId(),e),iF={class:"actions"},nF={class:"actions__row"},rF=aF(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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"}),s.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"}),s.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)),sF=[rF],oF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lF=["fill"],cF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},dF=["fill"],uF={__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:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor}));function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",iF,[s.createElementVNode("div",nF,[s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[0]||(o[0]=l=>n(s.unref(Mi).STATISTICS))},sF,4),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:o[1]||(o[1]=l=>n(s.unref(Mi).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",oF,[s.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:a.iconColor},null,8,lF)]))],4)):s.createCommentVNode("",!0),e.gameStatus===4&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button",onClick:o[2]||(o[2]=l=>n(s.unref(Mi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",cF,[s.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:a.iconColor},null,8,dF)]))])):s.createCommentVNode("",!0)])]))}},hF=Ri(uF,[["__scopeId","data-v-70dd3937"]]),iy=e=>(s.pushScopeId("data-v-89107a16"),e=e(),s.popScopeId(),e),pF={class:"actions"},mF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},fF=["fill"],gF={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yF=["fill"],_F=iy(()=>s.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[s.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"}),s.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"}),s.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)),bF=[_F],vF={key:0,class:"actions__videos"},SF={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wF=["fill"],TF={key:1,class:"actions__videos__thumbnails"},CF=iy(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__img"},null,-1)),kF=iy(()=>s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__img"},null,-1)),EF={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},IF=["stroke"],xF={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},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:t}){const a=e,i=s.computed(()=>({backgroundColor:a.iconBackgroundColor,borderColor:a.iconBorderColor})),n=s.computed(()=>{const c=[];return a.componentWidth<540&&c.push("mobile"),c}),r=s.computed(()=>a.componentWidth>730),o=s.computed(()=>({color:a.thumbnailColor,fontFamily:a.thumbnailFontFamily,fontSize:a.thumbnailFontSize}));function l(c){t("action",c)}return(c,d)=>(s.openBlock(),s.createElementBlock("div",pF,[s.createElementVNode("div",{class:s.normalizeClass(["actions__buttons",n.value])},[e.gameStatus===4&&!e.isLive&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=u=>l(s.unref(Mi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",mF,[s.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:a.iconColor},null,8,fF)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!r.value?(s.openBlock(),s.createElementBlock("div",{key:1,class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[1]||(d[1]=u=>l(s.unref(Mi).PLAY_RESUME))},[(s.openBlock(),s.createElementBlock("svg",gF,[s.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:a.iconColor},null,8,yF)]))],4)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:"actions__button rounded",style:s.normalizeStyle(i.value),onClick:d[2]||(d[2]=u=>l(s.unref(Mi).STATISTICS))},bF,4)],2),r.value?(s.openBlock(),s.createElementBlock("div",vF,[e.gameStatus===4&&!e.isLive?(s.openBlock(),s.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=u=>l(s.unref(Mi).NOTIFICATION))},[(s.openBlock(),s.createElementBlock("svg",SF,[s.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:a.iconColor},null,8,wF)]))])):s.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(s.openBlock(),s.createElementBlock("div",TF,[s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=u=>l(s.unref(Mi).PLAY_GOALS))},[CF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Goles ",4)]),s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=u=>l(s.unref(Mi).PLAY_RESUME))},[kF,s.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:s.normalizeStyle(o.value)}," Resumen ",4)])])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=u=>l(s.unref(Mi).SHOW_GAME_EVENTS))},[(s.openBlock(),s.createElementBlock("svg",EF,[s.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,IF)]))],2)]))}},NF=Ri(xF,[["__scopeId","data-v-89107a16"]]),nh=e=>(s.pushScopeId("data-v-33964596"),e=e(),s.popScopeId(),e),AF={class:"row-landing__game-status"},PF={class:"row-landing__game-actions"},OF={class:"row-full__game-status"},BF={class:"row-full__game-info"},DF={key:0},LF={class:"row-full__game-actions"},RF={class:"game-events-container"},MF=nh(()=>s.createElementVNode("div",{class:"separator"},null,-1)),FF=nh(()=>s.createElementVNode("div",null,null,-1)),VF={class:"game-events__data"},UF={class:"game-events__data__team"},jF=["src"],zF={class:"game-events__data__team__event__text"},HF={class:"game-events__data__team away"},qF={class:"game-events__data__team__event__text"},WF=["src"],GF=nh(()=>s.createElementVNode("div",null,null,-1)),KF=nh(()=>s.createElementVNode("div",null,null,-1)),JF={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:t}){const a=e,i={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},n=s.ref(!1),r=s.ref(!1),o=s.computed(()=>{const f={homeTeam:[],awayTeam:[]};return a.game&&a.game.game_status!==4&&!a.game.is_live&&a.game.minutes&&(f.homeTeam.push(...p(a.game.minutes.home_goals_minutes,i.GOAL)),f.homeTeam.push(...p(a.game.minutes.home_red_cards_minutes,i.RED_CARD)),f.homeTeam.push(...p(a.game.minutes.home_yellow_cards_minutes,i.YELLOW_CARD)),f.awayTeam.push(...p(a.game.minutes.visiting_goals_minutes,i.GOAL)),f.awayTeam.push(...p(a.game.minutes.away_red_cards_minutes,i.RED_CARD)),f.awayTeam.push(...p(a.game.minutes.away_yellow_cards_minutes,i.YELLOW_CARD))),f}),l=s.computed(()=>({"background-color":a.backgroundColor})),c=s.computed(()=>({height:a.height})),d=s.computed(()=>{const f={game:[],events:[]};return a.componentWidth<500?(f.events.push("break-point-3"),f.game.push("break-point-2")):a.componentWidth<730?(f.game.push("break-point-2"),f.events.push("break-point-2")):a.componentWidth<910&&(f.game.push("break-point-1"),f.events.push("break-point-1")),f}),u=s.computed(()=>({isLandingMode:a.isLandingMode,game:a.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),h=s.computed(()=>({"font-size":a.televisionFontSize,"font-family":a.televisionFontFamily,color:a.televisionColor}));s.watch(()=>a.componentWidth,f=>{r.value=f<910});function p(f,b){return f.map(_=>({iconUrl:b,text:_}))}function m(f){f===Mi.SHOW_GAME_EVENTS?n.value=!n.value:t("action",{action:f,game:a.game})}return(f,b)=>e.isLandingMode?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-landing",style:s.normalizeStyle(l.value)},[s.createVNode(CT,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),s.createElementVNode("div",AF,[s.createVNode(ET,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(TT)(e.game.roundAbbreviation),"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"])]),s.createElementVNode("div",PF,[s.createVNode(hF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:m},null,8,["is-live","has-video","game-status"])])],4)):(s.openBlock(),s.createElementBlock("div",{key:1,class:"row-full-container",style:s.normalizeStyle(l.value)},[s.createElementVNode("div",{class:s.normalizeClass(["row-full",d.value.game]),style:s.normalizeStyle(c.value)},[s.createElementVNode("div",OF,[s.createVNode(ET,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":s.unref(TT)(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"])]),s.createElementVNode("div",BF,[s.createVNode(CT,s.mergeProps(u.value,{"is-television-visible":r.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?(s.openBlock(),s.createElementBlock("div",{key:0,class:"row-full__television",style:s.normalizeStyle(h.value)},[!r.value&&(e.game.game_status===4||e.game.is_live)?(s.openBlock(),s.createElementBlock("span",DF,s.toDisplayString(e.game.tv_stations.join(", ")),1)):s.createCommentVNode("",!0)],4)):s.createCommentVNode("",!0),s.createElementVNode("div",LF,[s.createVNode(NF,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":n.value,"component-width":e.componentWidth,onAction:m},null,8,["is-live","has-video","game-status","are-events-visible","component-width"])])],6),s.createVNode(s.Transition,null,{default:s.withCtx(()=>[s.withDirectives(s.createElementVNode("div",RF,[MF,s.createElementVNode("div",{class:s.normalizeClass(["game-events",d.value.events])},[FF,s.createElementVNode("div",VF,[s.createElementVNode("div",UF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.homeTeam,(_,N)=>(s.openBlock(),s.createElementBlock("div",{key:`h${N}`,class:"game-events__data__team__event"},[s.createElementVNode("img",{src:_.iconUrl},null,8,jF),s.createElementVNode("div",zF,s.toDisplayString(_.text),1)]))),128))]),s.createElementVNode("div",HF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(o.value.awayTeam,(_,N)=>(s.openBlock(),s.createElementBlock("div",{key:`a${N}`,class:"game-events__data__team__event"},[s.createElementVNode("div",qF,s.toDisplayString(_.text),1),s.createElementVNode("img",{src:_.iconUrl},null,8,WF)]))),128))])]),GF,KF],2)],512),[[s.vShow,n.value]])]),_:1})],4))}},IT=Ri(JF,[["__scopeId","data-v-33964596"]]),XF={class:"calendar-table"},YF={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:t}){const a=e;function i(r){return r%2===0?a.evenRowColor:a.oddRowColor}function n(r){t("action",r)}return(r,o)=>(s.openBlock(),s.createElementBlock("div",XF,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.gamesPerPage,(l,c)=>(s.openBlock(),s.createBlock(IT,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":i(c),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:n},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},QF=Ri(YF,[["__scopeId","data-v-c8583c72"]]),ZF={class:"calendar-by-team"},$F={class:"playing-as-picker"},eV={class:"calendar-by-team__page"},tV={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:t}){const a=e,i=s.ref(0),n=s.computed(()=>{let c=[];if(a.gamesPages.size>0){const d=Array.from(a.gamesPages.entries()).reduce((u,[h,p])=>{const m=Number(h),f=Number.isNaN(m)?h:`Jornada ${m<10?"0":""}${m}`,b=p.reduce((_,N)=>(_.push(...N),_),[]).filter(_=>i.value===0||i.value===1&&_.visiting_team.team_id===a.teamId?!0:i.value===2&&_.home_team.team_id===a.teamId);return b.length>0&&u.push({roundName:f,games:b}),u},[]);c.push(d)}return c});function r(c){t("action",c)}function o(c){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),i.value=c,document.querySelector("#opc"+c).classList.add("selected")}function l(c){let d=c;switch(c){case"PI1":d="Play In 1";break;case"PI2":d="Play In 2";break;case"R1":d="Repechaje";break;case"CFI":d="Cuartos de final - Ida";break;case"CFV":d="Cuartos de final - Vuelta";break;case"SFI":d="Semifinal - Ida";break;case"SFV":d="Semifinal - Vuelta";break;case"FI":d="Final - Ida";break;case"FV":d="Final - Vuelta";break}return d}return(c,d)=>(s.openBlock(),s.createElementBlock("div",ZF,[s.createElementVNode("div",$F,[s.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:d[0]||(d[0]=u=>o(0))},"Todas"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:d[1]||(d[1]=u=>o(1))},"Visitante"),s.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:d[2]||(d[2]=u=>o(2))},"Local")]),s.createVNode(s.unref(vT),{"is-pagination-visible":e.isPaginationVisible,items:n.value},{default:s.withCtx(({item:u})=>[s.createElementVNode("div",eV,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(u,(h,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,class:"calendar-by-team__page__round"},[s.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:s.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},s.toDisplayString(l(h.roundName)),5),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(h.games,m=>(s.openBlock(),s.createBlock(IT,{key:m.game_id,game:m,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:r},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},aV=Ri(tV,[["__scopeId","data-v-875ef70b"]]),iV="_image62Icon_1ybd3_2",nV="_imgChivasIcon_1ybd3_11",rV="_nameDesktop_1ybd3_18",sV="_nameMobile_1ybd3_31",oV="_homeTeam_1ybd3_43",lV="_sbado16De_1ybd3_54",cV="_gameDate_1ybd3_63",dV="_sab16092023_1ybd3_67",uV="_div_1ybd3_80",hV="_divscore_1ybd3_89",pV="_cst_1ybd3_99",mV="_hour_1ybd3_108",fV="_score_1ybd3_109",gV="_chivasTvCanal_1ybd3_120",yV="_gameStatus_1ybd3_132",_V="_matchInfo_1ybd3_143",bV="_image62Icon1_1ybd3_156",vV="_name_1ybd3_18",SV="_imgAtlasIcon_1ybd3_178",wV="_name1_1ybd3_185",TV="_awayTeam_1ybd3_197",CV="_matchCard_1ybd3_208",kV={image62Icon:iV,imgChivasIcon:nV,nameDesktop:rV,nameMobile:sV,homeTeam:oV,sbado16De:lV,gameDate:cV,sab16092023:dV,div:uV,divscore:hV,cst:pV,hour:mV,score:fV,chivasTvCanal:gV,gameStatus:yV,matchInfo:_V,image62Icon1:bV,name:vV,imgAtlasIcon:SV,name1:wV,awayTeam:TV,matchCard:CV},EV=["src"],IV=["src"],xV={key:0},NV=["src"],AV=["src"],PV={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const t=e,a=s.computed(()=>{const n={...t.game};return n.gameSchedule=t.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function i(n,r){const o=new Date(n);if(r==1){const l=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],c=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${l[o.getDay()]} ${o.getDate()} de ${c[o.getMonth()]}`}else return`${o.getDate()}-${o.getMonth()}-${o.getFullYear()}`}return(n,r)=>(s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(n.$style.matchCard)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon),alt:"",src:s.unref(yo)(a.value.home_team.team_id,150)},null,10,EV),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgChivasIcon),alt:"",src:s.unref(yo)(a.value.home_team.team_id)},null,10,IV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameDesktop),id:"team-name"},s.toDisplayString(a.value.home_team.colloquial_name),3),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.nameMobile),id:"team-name"},s.toDisplayString(a.value.home_team.acronym),3)],2),a.value.game_status==4?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.sbado16De)},s.toDisplayString(i(a.value.date,1)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.sab16092023)},s.toDisplayString(i(a.value.date,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.hour)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.div)},s.toDisplayString(a.value.gameSchedule),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.cst)},"CST",2)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.chivasTvCanal)},s.toDisplayString(a.value.tv_stations.join(", ")),3)],2)):(s.openBlock(),s.createElementBlock("div",{key:1,class:s.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[s.createElementVNode("div",{class:s.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},s.toDisplayString(i(a.value.date,1)),3),s.createElementVNode("div",{class:s.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},s.toDisplayString(i(a.value.date,0)),3),s.createElementVNode("div",{class:s.normalizeClass(n.$style.score)},[s.createElementVNode("div",{class:s.normalizeClass(n.$style.divscore)},s.toDisplayString(a.value.score.join(" - ")),3)],2),s.createElementVNode("div",{class:s.normalizeClass(n.$style.gameStatus)},[s.createTextVNode(" Finalizado "),a.value.penalties_score_home_team!=0||a.value.penalties_score_visiting_team!=0?(s.openBlock(),s.createElementBlock("span",xV," - Penales "+s.toDisplayString(a.value.penalties_score_home_team)+" - "+s.toDisplayString(a.value.penalties_score_visiting_team),1)):s.createCommentVNode("",!0)],2)],2)),s.createElementVNode("div",{class:s.normalizeClass(n.$style.awayTeam),id:"container-away-team"},[s.createElementVNode("img",{class:s.normalizeClass(n.$style.image62Icon1),alt:"",src:s.unref(yo)(a.value.visiting_team.team_id,150)},null,10,NV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name),id:"team-name"},s.toDisplayString(a.value.visiting_team.colloquial_name),3),s.createElementVNode("img",{class:s.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:s.unref(yo)(a.value.visiting_team.team_id)},null,10,AV),s.createElementVNode("h3",{class:s.normalizeClass(n.$style.name1),id:"team-name"},s.toDisplayString(a.value.visiting_team.acronym),3)],2)],2))}},OV={$style:kV},BV=Ri(PV,[["__cssModules",OV]]),DV={class:"calendar-by-game__carousel"},LV={components:{GscSwitchComponent:Uw,GSCGeneraltable:rL,GSCCalendarByGame:Ri({__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:t}){const a=e;let i=null;const n=s.ref([]),r=s.ref({}),o=s.ref([]),l=s.ref(0),c=s.ref(null),d=s.ref({}),u=s.ref(new Map),h=s.ref(!1),p=s.ref(null),m=s.ref(null),f=s.ref(null),b=s.computed(()=>a.isCup),_=s.computed(()=>a.isCupLegacy),N=s.computed(()=>({height:a.height,width:a.width})),D=s.computed(()=>a.games?L(a.games):u.value.get(d.value.key)||[]);s.watch(()=>a.seasons,ve=>{ve&&ve.length&&(h.value=!0,n.value=ve.map(pe=>pe.id),B(ve,!0))},{immediate:!0,deep:!0}),s.watch(()=>a.teamId,()=>{R()});async function j(ve,pe,z=""){let $=z;try{const ae={};a.token&&(ae.Authorization=a.token),$||($="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",ve.forEach((te,_e)=>{$+=`${_e===0?"":"&"}seasons=${te}`}));const{data:{data:Fe,teams:se}}=await gT.get($,{headers:ae});return{seasonsAndGames:Fe,seasonsAndTeams:se}}catch(ae){if(pe>0)return j(ve,pe-1,$);throw new Error(ae)}}function O(ve){for(const pe of ve)if(!n.value.includes(pe.season_id))return!0;return!1}async function B(ve,pe){try{r.value={};let z=0;const{seasonsAndGames:$,seasonsAndTeams:ae}=await j(ve.map(se=>se.id),3);if(pe&&O($))return;$.forEach(se=>{const{type:te}=ve.find(_e=>_e.id===se.season_id);se.type=te,se.games.forEach(_e=>{_e.season_id=se.season_id}),te===0&&(z=se.season_id)}),p.value={seasonsGames:$};const{teams:Fe}=ae.find(se=>se.season_id===z);m.value=Fe,t("change-teams",Fe),R()}catch(z){throw new Error(z)}}function R(){if(!m.value)return;const ve=p.value&&p.value.seasonsGames?p.value.seasonsGames.map(pe=>{const z=pe.games.reduce(($,ae)=>{const Fe={...ae};return Fe.dateTimeMillis=new Date(Fe.date_time_utc).valueOf(),Fe.home_team=m.value.find(se=>se.team_id===ae.home_team),Fe.visiting_team=m.value.find(se=>se.team_id===ae.visiting_team),a.teamId&&Fe.home_team.team_id!==a.teamId&&Fe.visiting_team.team_id!==a.teamId||($[ae.matchday_abbreviation]?$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]?$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date].push(Fe):$[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]=[Fe]:$[ae.matchday_abbreviation]={[ae.game_status===3?"canceled":ae.date]:[Fe]}),$},{});for(let[$,ae]of Object.entries(z))z[$]=Object.entries(ae).map(([Fe,se])=>({date:Fe,games:se.sort((te,_e)=>te.dateTimeMillis-_e.dateTimeMillis)})),z[$].sort((Fe,se)=>Fe.date<se.date?-1:Fe.date>se.date?1:0);return{type:pe.type,weight:pe.type===0?0:pe.type===2?1:2,schedule:z}}):[];ve.sort((pe,z)=>pe.weight-z.weight),r.value=ve.reduce((pe,z)=>{for(const[$,ae]of Object.entries(z.schedule))if(z.type===0)if(b.value){const Fe=$.replace("M",""),se=Fe;_.value?pe[_M[Fe]||se]=ae:pe[yM[$]||se]=ae}else pe[Number($.replace("M","")).toString()]=ae;else z.type===2?$.charAt(1)=="I"?pe[`PI${Number($.replace("PI",""))}`]=ae:pe[`R${Number($.replace("PO",""))}`]=ae:z.type===1&&(pe[gM[$]]=ae);return pe},{}),u.value=new Map,o.value=Array.from(Object.entries(r.value).reduce((pe,[z,$])=>{const ae=Number(z);let Fe="";Number.isNaN(ae)?Fe=z:Fe=ae<10?`0${ae}`:z,pe.set(z,{key:z,value:ae,valueText:Fe});const se=$.reduce((_e,we)=>(we.games.forEach(ge=>{ge.game_id===a.defaultGameId&&(f.value=z),ge.roundAbbreviation=Number.isNaN(ae)?ae:`J ${ae}`}),_e=_e.concat(we.games),_e),[]),te=L(se);return u.value.set(z,te),pe},new Map).values())}function L(ve){const pe=[];if(a.gamesPerMatchDay>0){let z=[];ve.forEach(($,ae)=>{z.push($),(ae+1)%a.gamesPerMatchDay===0&&(pe.push([...z]),z=[])}),z.length&&pe.push([...z])}else pe.push(ve);return pe}async function X(ve){try{const{data:pe}=await gT.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return pe}catch(pe){if(ve>0)return X(ve-1);throw new Error(pe)}}function U(){if(window.ResizeObserver)i=new ResizeObserver(()=>{l.value=c.value.clientWidth}),i.observe(c.value);else throw new Error("Resize observer not supported!")}function ne(ve){d.value=ve,t("change-round",ve)}function le(ve){a.areGamesCarouselType&&t("change-game-carousel",ve.selectedItem)}function Z(ve){t("action",ve),re(ve)}function re(ve){const pe="PLAY_RESUME",z="PLAY_GOALS",$=[607,608,12,55,54,35,14,52,15,53,466,477],ae=[12,55,"35_r","54_r"],{game_id:Fe,season_id:se}=ve.game;let te={seasonId:se,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[Fe],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};ve.action===pe?(te.categoryIds=$,te.advancedFilter.playListTitle="Resumen",t("openmedia",te)):ve.action===z&&(te.categoryIds=ae,te.advancedFilter.playListTitle="Goles",t("openmedia",te))}async function Ce(){try{if(!a.awaitForSeasons&&!a.games){const ve=(await X(3)).find($=>$._id===1),pe=ve.seasons[0],z=[{id:pe.id,type:pe.type}];ve&&ve.tournament&&t("tournament-selected",ve.tournament),pe.related_seasons&&pe.related_seasons.length&&z.push(...pe.related_seasons.map($=>({id:$.id,type:$.type}))),await B(z,!1)}}catch(ve){throw new Error(ve)}}return s.onMounted(()=>{U()}),Ce(),(ve,pe)=>(s.openBlock(),s.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:s.normalizeStyle(N.value)},[e.teamId&&!e.avoidTeamIdFilter?(s.openBlock(),s.createBlock(aV,{key:0,"full-tournament-schedule":r.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":l.value,"games-pages":u.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:Z},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.areRoundsVisible&&o.value?(s.openBlock(),s.createBlock(LM,{key:0,"match-days":o.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":l.value,"default-match-day-key":f.value,onChangeMatchDay:ne},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key"])):s.createCommentVNode("",!0),s.createElementVNode("div",DV,[D.value?(s.openBlock(),s.createBlock(s.unref(vT),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?D.value[0]:D.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:le},{default:s.withCtx(({item:z})=>[e.areGamesCarouselType?(s.openBlock(),s.createBlock(BV,{key:0,game:z},null,8,["game"])):(s.openBlock(),s.createBlock(QF,{key:1,"games-per-page":z,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,"is-round-mode":e.isRoundMode,onAction:Z},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):s.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-e9321c95"]])},props:{season:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},data(){return{selectedOpt:"Mi posición",tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{},methods:{onAction(e){},changeCategory(e){this.selectedOpt=e},onOpenMedia(e){this.$emit("openmedia",e)}}},RV={class:"gsc-calendar-table"},MV={class:"gsc-switch-container"},FV={class:"gsc-app-component"};function VV(e,t,a,i,n,r){const o=s.resolveComponent("GscSwitchComponent"),l=s.resolveComponent("GSCGeneraltable"),c=s.resolveComponent("GSCCalendarByGame");return s.openBlock(),s.createElementBlock("div",RV,[s.createElementVNode("div",MV,[s.createVNode(o,{type:0,"font-family":"Poppins-Regular",buttons:["Mi posición","Calendario"],height:"40px","selected-option":n.selectedOpt,"font-size":a.componentWidth>=768?"16px":"14px",width:"355px",onInput:r.changeCategory},null,8,["selected-option","font-size","onInput"])]),s.createElementVNode("div",FV,[n.selectedOpt=="Mi posición"?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createVNode(l,{isPaginationVisible:!0,"current-season-id":a.season.id,type:1,"await-for-season":!0,onOpenmedia:r.onOpenMedia},null,8,["current-season-id","onOpenmedia"]),s.createElementVNode("div",{onClick:t[0]||(t[0]=d=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createVNode(c,{onAction:r.onAction,onOpenmedia:r.onOpenMedia,width:"100%",token:n.tokenFree,seasons:[a.season],"row-height":"90px","is-landing-mode":!0,"is-pagination-visible":!0,isRoundPickerVisible:!0,"await-for-seasons":"","items-to-show":5,"items-to-scroll":5,"max-games-to-show":5},null,8,["onAction","onOpenmedia","token","seasons"]),s.createElementVNode("div",{onClick:t[1]||(t[1]=d=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const UV=ri(LV,[["render",VV],["__scopeId","data-v-de96d7c8"]]),jV=e=>(s.pushScopeId("data-v-7252e477"),e=e(),s.popScopeId(),e),zV={class:"match"},HV={class:"match__header"},qV=jV(()=>s.createElementVNode("div",{class:"match__final-tag"},"FINAL ",-1)),WV={class:"match__tag"},GV={class:"match__body"},KV={class:"match__data"},JV={class:"match__acronym"},XV=["src"],YV={class:"match__score"},QV=["src"],ZV={class:"match__acronym"},$V={class:"match__status"},xT=ri({__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:""}},setup(e){return(t,a)=>{var i,n;return s.openBlock(),s.createElementBlock("section",zV,[s.createElementVNode("div",HV,[qV,s.createElementVNode("div",WV,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",GV,[s.createElementVNode("div",KV,[s.createElementVNode("div",JV,s.toDisplayString((i=e.data)==null?void 0:i.home_team_acronym),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,XV),s.createElementVNode("div",YV,s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,QV),s.createElementVNode("div",ZV,s.toDisplayString((n=e.data)==null?void 0:n.visiting_team_acronym),1)]),s.createElementVNode("div",$V,"Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=r=>t.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-7252e477"]]),eU=e=>(s.pushScopeId("data-v-e8d30afb"),e=e(),s.popScopeId(),e),tU={class:"match"},aU={class:"match__header"},iU=eU(()=>s.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),nU={class:"match__tag"},rU={class:"match__body"},sU={class:"match__data"},oU={class:"match__acronym"},lU=["src"],cU={class:"match__score"},dU=["src"],uU={class:"match__acronym"},hU={class:"match__status"},NT=ri({__name:"PreviousMatchGame",props:{visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},score:{type:String,default:"2 - 1"},journey:{type:[String,Number],default:2},penalScore:{type:String,default:""}},setup(e){return(t,a)=>(s.openBlock(),s.createElementBlock("section",tU,[s.createElementVNode("div",aU,[iU,s.createElementVNode("div",nU,s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),s.createElementVNode("div",rU,[s.createElementVNode("div",sU,[s.createElementVNode("div",oU,s.toDisplayString(e.data.home_team.acronym),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team.team_id+".png",alt:"team-img"},null,8,lU),s.createElementVNode("div",cU,s.toDisplayString(e.data.score[0])+" - "+s.toDisplayString(e.data.score[1]),1),s.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team.team_id+".png",alt:"team-img"},null,8,dU),s.createElementVNode("div",uU,s.toDisplayString(e.data.visiting_team.acronym),1)]),s.createElementVNode("div",hU,"Finalizado"+s.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),s.createElementVNode("div",{class:"match__button",onClick:a[0]||(a[0]=i=>t.$emit("clickMatch"))},"Analizar partido →")]))}},[["__scopeId","data-v-e8d30afb"]]),pU=e=>(s.pushScopeId("data-v-a5cc46a2"),e=e(),s.popScopeId(),e),mU=["src"],fU=["src"],gU={class:"coming-match__body"},yU={class:"coming-match__data"},_U=["src"],bU={style:{"margin-top":"16px"}},vU={class:"coming-match__time"},SU=pU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),wU=["src"],ny=ri({__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){return(t,a)=>{var i,n,r,o,l,c,d,u,h,p,m,f;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,mU),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team)+".png",alt:"team-img"},null,10,fU),s.createElementVNode("div",gU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",yU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((o=e.data)==null?void 0:o.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team)+".png",alt:"team-img"},null,10,_U),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),s.createElementVNode("div",bU,[s.createElementVNode("div",vU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((d=e.data)==null?void 0:d.score[0])+" - "+s.toDisplayString((u=e.data)==null?void 0:u.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((h=e.data)==null?void 0:h.schedule.replace(":00","")),1)],64))]),SU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((p=e.data)==null?void 0:p.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((m=e.data)==null?void 0:m.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team)+".png",alt:"team-img"},null,10,wU)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=b=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-a5cc46a2"]]),TU=e=>(s.pushScopeId("data-v-4800d07e"),e=e(),s.popScopeId(),e),CU=["src"],kU=["src"],EU={class:"coming-match__body"},IU={class:"coming-match__data"},xU=["src"],NU={style:{"margin-top":"16px"}},AU={class:"coming-match__time"},PU=TU(()=>s.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),OU=["src"],AT=ri({__name:"ComingMatchGame",props:{small:{type:Boolean,default:!1},visitTeam:{type:Object,default:()=>{}},data:{type:Object,default:()=>{}},homeTeam:{type:Object,default:()=>{}},date:{type:String,default:"Jueves 7 de Abril"},time:{type:String,default:"5: 00"}},setup(e){return(t,a)=>{var i,n,r,o,l,c,d,u,h,p,m,f,b;return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(["coming-match",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((n=e.data)==null?void 0:n.home_team)+".png",alt:"team-img"},null,10,CU),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((o=e.data)==null?void 0:o.visiting_team)+".png",alt:"team-img"},null,10,kU),s.createElementVNode("div",EU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__date",{small:e.small}])},s.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),s.createElementVNode("div",IU,[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((l=e.data)==null?void 0:l.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((c=e.data)==null?void 0:c.home_team)+".png",alt:"team-img"},null,10,xU),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((d=e.data)==null?void 0:d.home_team_name),3)],2),s.createElementVNode("div",NU,[s.createElementVNode("div",AU,[e.data.game_status==1?(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString((u=e.data)==null?void 0:u.score[0])+" - "+s.toDisplayString((h=e.data)==null?void 0:h.score[1]),1)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createTextVNode(s.toDisplayString((p=e.data)==null?void 0:p.schedule.replace(":00","")),1)],64))]),PU]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__team",{small:e.small}])},[s.createElementVNode("div",{class:s.normalizeClass(["coming-match__acronym",{small:e.small}])},s.toDisplayString((m=e.data)==null?void 0:m.visiting_team_name),3),s.createElementVNode("img",{class:s.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((f=e.data)==null?void 0:f.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((b=e.data)==null?void 0:b.visiting_team)+".png",alt:"team-img"},null,10,OU)],2)])]),s.createElementVNode("div",{class:s.normalizeClass(["coming-match__button",{small:e.small}]),onClick:a[0]||(a[0]=_=>t.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-4800d07e"]]),BU=e=>(s.pushScopeId("data-v-32065aa1"),e=e(),s.popScopeId(),e),DU={class:"quadrant-matches"},LU={class:"quadrant-matches__header"},RU={class:"quadrant-matches__title"},MU=BU(()=>s.createElementVNode("span",null," →",-1)),FU={key:0,class:"quadrant-matches__body"},VU={class:"quadrant-matches__body",style:{"column-gap":"16px"}},UU={class:"quadrant-matches__body matches"},jU={key:0,class:"quadrant-matches__body"},zU={class:"quadrant-matches__body",style:{"column-gap":"16px"}},HU=ri({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},comingMatches:{type:Array,default:()=>[]},data:{type:Object,default:()=>{}},previousMatches:{type:Array,default:()=>[]},componentWidth:{type:Number,default:768,validator(e){return e>0}}},setup(e){const t=e;s.computed(()=>t.comingMatches[0]||{}),s.computed(()=>t.previousMatches[0]||{});const a=s.toRef(t,"componentWidth"),i=s.computed(()=>a.value<768);return(n,r)=>(s.openBlock(),s.createElementBlock("section",DU,[s.createElementVNode("div",LU,[s.createElementVNode("h2",RU,s.toDisplayString(e.isFull?"Partidos":"Mis partidos"),1),s.createElementVNode("button",{class:"quadrant-matches__button",onClick:r[0]||(r[0]=o=>n.$emit("clickCalendar"))},[s.createElementVNode("span",null,s.toDisplayString(e.isFull?"Calendario completo":"Mi calendario completo"),1),MU])]),e.isFull?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[e.data.length>1?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0},{default:s.withCtx(()=>[s.createElementVNode("div",UU,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.data,(o,l)=>(s.openBlock(),s.createBlock(ny,{key:l,data:o,small:"",onClickMatch:c=>n.$emit("clickMatch",o[0].games[0])},null,8,["data","onClickMatch"]))),128))])]),_:1})):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0,arrows:!1},{default:s.withCtx(()=>[s.createElementVNode("div",zU,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(AT,{key:0,data:e.data[0],onClickMatch:r[7]||(r[7]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(NT,{key:1,data:e.data[0],onClickMatch:r[8]||(r[8]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",jU,[e.data[0].game_status==4?(s.openBlock(),s.createBlock(AT,{key:0,data:e.data[0],onClickMatch:r[5]||(r[5]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0),e.data[0].game_status!=4?(s.openBlock(),s.createBlock(NT,{key:1,data:e.data[0],onClickMatch:r[6]||(r[6]=o=>n.$emit("clickMatch",e.data[0]))},null,8,["data"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0)],64))],64))],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[i.value?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[Object.keys(e.data).length>0?(s.openBlock(),s.createBlock(s.unref(Sc),{key:0,arrows:!1},{default:s.withCtx(()=>[s.createElementVNode("div",VU,[s.createVNode(ny,{small:"",data:e.data.data.prematch,onClickMatch:r[3]||(r[3]=o=>n.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),s.createVNode(xT,{data:e.data.data.postmatch,onClickMatch:r[4]||(r[4]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])])]),_:1})):s.createCommentVNode("",!0)],64)):(s.openBlock(),s.createElementBlock(s.Fragment,{key:0},[Object.keys(e.data).length>0?(s.openBlock(),s.createElementBlock("div",FU,[s.createVNode(ny,{data:e.data.data.prematch,onClickMatch:r[1]||(r[1]=o=>n.$emit("clickMatch",e.data.data.prematch))},null,8,["data"]),s.createVNode(xT,{data:e.data.data.postmatch,onClickMatch:r[2]||(r[2]=o=>n.$emit("clickMatch",e.data.data.postmatch))},null,8,["data"])])):s.createCommentVNode("",!0)],64))],64))]))}},[["__scopeId","data-v-32065aa1"]]),qU={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},isFull:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},setup(e){function t(){window.location.href="/calendar"}function a(i){window.location.href=`/game?g=${i.game_id}`}return(i,n)=>(s.openBlock(),s.createElementBlock("main",null,[s.createVNode(HU,{data:e.data,"component-width":e.componentWidth,"is-full":e.isFull,onClickCalendar:t,onClickMatch:a,"has-team":!e.isplayer},null,8,["data","component-width","is-full","has-team"])]))}},WU="_toniKroos_1pe59_35",GU="_centralMidfielder_1pe59_55",KU="_icnPlayIcon_1pe59_75",JU="_verVideos_1pe59_89",XU="_btnVideosOptions_1pe59_109",YU="_info_1pe59_147",QU="_goalUnlock_1pe59_171",ZU="_teamsAmerica_1pe59_197",$U="_imageIcon_1pe59_217",ej="_playerTops_1pe59_237",tj={toniKroos:WU,centralMidfielder:GU,icnPlayIcon:KU,verVideos:JU,btnVideosOptions:XU,info:YU,goalUnlock:QU,teamsAmerica:ZU,imageIcon:$U,playerTops:ej},aj=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},ij={props:{height:{type:String,default:"194px"},background:{type:String,default:"#122735"},borderRadius:{type:String,default:"4px"},borderWidth:{type:Number,default:0},borderColor:{type:String,default:"#ffffff"},namePlayerFont:{type:String,default:"Montserrat-SemiBold"},namePlayerFontColor:{type:String,default:"#ffffff"},namePlayerFontSize:{type:String,default:"18px"},namePlayerFontStyle:{type:String,default:"Normal"},namePositionFont:{type:String,default:"Poppins-Regular"},namePositionFontColor:{type:String,default:"#8ea2ab"},namePositionFontSize:{type:String,default:"14px"},namePositionFontStyle:{type:String,default:"Normal"},totalFont:{type:String,default:"Poppins-Regular"},totalFontColor:{type:String,default:"#ffffff"},totalFontSize:{type:String,default:"8px"},totalFontStyle:{type:String,default:"Normal"},totalHeight:{type:String,default:"22px"},totalWidth:{type:String,default:"75px"},totalBorderRadius:{type:String,default:"64px"},totalBorderWidth:{type:Number,default:1},totalBorderColor:{type:String,default:"#cbee6b"},iconPlay:{type:String,default:"/icnplay1.svg"},teamWidth:{type:String,default:"34px"},teamPositionLeft:{type:String,default:"12px"},teamPositionTop:{type:String,default:""},playerOrTeamPhotoWidth:{type:String,default:"99px"},numbertopLeft:{type:String,default:"-8px"},numbertopBottom:{type:String,default:"-25px"},numbertopTop:{type:String},numbertopRight:{type:String},numbertopColor:{type:String,default:"#ffffff"},numbertopFontSize:{type:String,default:"98px"},numbertopOpacity:{type:String,default:"0.18"},numberFontFamily:{type:String,default:"Montserrat-SemiBold"},showShieldTeam:{type:Boolean,default:!0},showIconVideo:{type:Boolean,default:!0},showPositionPlayer:{type:Boolean,default:!0},activeVideos:{type:Boolean,default:!0},freemiumActive:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},computed:{customMosaic(){return{height:this.height,background:this.background,borderRadius:`${this.borderRadius} !important`,border:`solid ${this.borderWidth}px ${this.borderColor}`}},customNamePlayer(){return{fontFamily:this.namePlayerFont,fontSize:this.namePlayerFontSize,color:this.namePlayerFontColor,fontStyle:this.namePlayerFontStyle}},customNamePosition(){return{fontFamily:this.namePositionFont,fontSize:this.namePositionFontSize,color:this.namePositionFontColor,fontStyle:this.namePositionFontStyle}},customTotal(){return{fontFamily:this.totalFont,fontSize:this.totalFontSize,color:this.totalFontColor,fontStyle:this.totalFontStyle}},customTotalCont(){return{MinHeight:this.totalHeight,width:this.totalWidth,borderRadius:`${this.totalBorderRadius} !important`,border:`solid ${this.totalBorderWidth}px ${this.totalBorderColor}`}},customShieldTeam(){return{width:this.teamWidth,top:this.teamPositionTop,left:this.teamPositionLeft}},customPhotoPlayerOrTeam(){return{width:this.playerOrTeamPhotoWidth}},customNumberTop(){return{fontSize:this.numbertopFontSize,color:this.numbertopColor,left:this.numbertopLeft,right:this.numbertopRight,top:this.numbertopTop,bottom:this.numbertopBottom,opacity:this.numbertopOpacity,fontFamily:this.numberFontFamily}}},methods:{onPlayerTopsClick(e){this.activeVideos&&(this.$emit("clickMosaic",e),this.$emit("freemium",this.freemiumActive))},onButtonVideos(e){this.activeVideos&&(this.$emit("openmedia",e),this.$emit("clickvideos",e.id),this.$emit("freemium",this.freemiumActive))}}},nj=["src"],rj=["src"],sj=["src"];function oj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("section",{class:s.normalizeClass(e.$style.playerTops),style:s.normalizeStyle(r.customMosaic),id:"player-mosaico",onClick:t[1]||(t[1]=o=>r.onPlayerTopsClick(a.data.player_id))},[s.createElementVNode("div",{class:s.normalizeClass(e.$style.info)},[s.createElementVNode("h3",{class:s.normalizeClass(e.$style.toniKroos),style:s.normalizeStyle(r.customNamePlayer)},s.toDisplayString(a.data.player_name),7),a.showPositionPlayer?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(e.$style.centralMidfielder),style:s.normalizeStyle(r.customNamePosition)},s.toDisplayString(a.data.player_position),7)):s.createCommentVNode("",!0),s.createElementVNode("button",{class:s.normalizeClass(e.$style.btnVideosOptions),style:s.normalizeStyle(r.customTotalCont),id:"button-actions",onClick:t[0]||(t[0]=o=>r.onButtonVideos(a.data))},[a.showIconVideo?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.icnPlayIcon),src:a.iconPlay},null,10,nj)):s.createCommentVNode("",!0),s.createElementVNode("div",{class:s.normalizeClass(e.$style.verVideos),style:s.normalizeStyle(r.customTotal)},s.toDisplayString(a.data.player_stat)+" "+s.toDisplayString(a.data.category),7)],6)],2),s.createElementVNode("b",{style:s.normalizeStyle(r.customNumberTop),class:s.normalizeClass(e.$style.goalUnlock)},s.toDisplayString(a.data.top),7),a.showShieldTeam?(s.openBlock(),s.createElementBlock("img",{key:0,class:s.normalizeClass(e.$style.teamsAmerica),style:s.normalizeStyle(r.customShieldTeam),loading:"lazy",src:a.data.team_logo},null,14,rj)):s.createCommentVNode("",!0),s.createElementVNode("img",{style:s.normalizeStyle(r.customPhotoPlayerOrTeam),class:s.normalizeClass(e.$style.imageIcon),loading:"lazy",src:a.data.player_photo},null,14,sj)],6)}const lj={$style:tj},cj=aj(ij,[["render",oj],["__cssModules",lj]]),dj=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},ry={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},PT=()=>{s.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},OT=ry.setup;ry.setup=OT?(e,t)=>(PT(),OT(e,t)):PT;const uj=e=>(s.pushScopeId("data-v-fb269a1e"),e=e(),s.popScopeId(),e),hj=["src"],pj={key:1,class:"text"},mj=["src"],fj={class:"stats"},gj=uj(()=>s.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),yj={class:"numstats"},_j={class:"leyend"};function bj(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",null,[a.type==0?(s.openBlock(),s.createElementBlock("div",{key:0,class:s.normalizeClass(["button",n.status&&a.typeOnOff&&"button-active"]),style:s.normalizeStyle([r.customStyle,n.status&&a.typeOnOff&&r.customActive]),onClick:t[0]||(t[0]=(...o)=>r.btnClick&&r.btnClick(...o))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(s.openBlock(),s.createElementBlock("img",{key:0,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,hj)):s.createCommentVNode("",!0),a.textValue?(s.openBlock(),s.createElementBlock("div",pj,s.toDisplayString(a.textValue),1)):s.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(s.openBlock(),s.createElementBlock("img",{key:2,class:"icon",style:s.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,mj)):s.createCommentVNode("",!0)],6)):s.createCommentVNode("",!0),a.type==1?(s.openBlock(),s.createElementBlock("div",{key:1,class:"button-target",onClick:t[1]||(t[1]=(...o)=>r.btnClick&&r.btnClick(...o))},[s.createElementVNode("div",fj,[gj,s.createElementVNode("div",yj,s.toDisplayString(a.textStat),1)]),s.createElementVNode("div",_j,s.toDisplayString(a.textCategory),1)])):s.createCommentVNode("",!0)])}const vj=dj(ry,[["render",bj],["__scopeId","data-v-fb269a1e"]]);function Sj(e){const t=s.ref({width:0,height:0});function a(){const i=e.value.getBoundingClientRect();t.value.width=i.width,t.value.height=i.height}return s.onMounted(()=>{a(),window.addEventListener("resize",a)}),s.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:t}}const sy={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(e){try{e==this.textOptionLeft&&(this.OptionDefault=!1),e==this.textOptionRight&&(this.OptionDefault=!0)}catch(t){throw new Error(t)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(e){e.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},BT=()=>{s.useCssVars(e=>({"07b24dd0":e.backgroundColor,"2ba6f6b1":e.widthCircle,c219f888:e.heightCircle}))},DT=sy.setup;sy.setup=DT?(e,t)=>(BT(),DT(e,t)):BT;const wj={key:0,class:"text-left"},Tj=["width","src"],Cj=["checked"],kj=["width","src"],Ej={key:3,class:"text-right"};function Ij(e,t,a,i,n,r){return s.openBlock(),s.createElementBlock("div",{class:"gsc-switch-radio",style:s.normalizeStyle(r.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",wj,s.toDisplayString(a.textOptionLeft),1)):s.createCommentVNode("",!0),a.iconA!=""?(s.openBlock(),s.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA},null,8,Tj)):s.createCommentVNode("",!0),s.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:t[0]||(t[0]=(...o)=>r.handleSwitchChange&&r.handleSwitchChange(...o)),checked:n.OptionDefault},null,40,Cj),s.createElementVNode("label",{for:"toggle-btn",style:s.normalizeStyle([r.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(s.openBlock(),s.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB},null,8,kj)):s.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(s.openBlock(),s.createElementBlock("span",Ej,s.toDisplayString(a.textOptionRight),1)):s.createCommentVNode("",!0)],4)}const oy={components:{GSCSlider:Sc,GSCMosaicthebest:cj,GscSwitchComponent:Uw,GSCButton:vj,GSCRadioToggle:ri(sy,[["render",Ij],["__scopeId","data-v-f00464ad"]])},setup(){const e=s.ref("myDivRef"),{elementSize:t}=Sj(e);return{myDivRef:e,elementSize:t}},props:{backgroundColor:{type:String,default:"#0D1D29"},showSwitch:{type:Boolean,default:!0},fontFamily:{type:String,default:"Poppins-Semibold"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"24px"},marginMosaic:{type:String,default:"24px"},season:{type:Number,default:1772},teamId:{type:Number,default:0}},watch:{async season(e,t){await this.getCategoryStats(e,1)}},data:()=>({url:"https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",categoriesDefault:["Goles","Pases acertados","Balones recuperados en disputa","Asistencias","Participaciones en gol","Tiros a gol","Tiros a gol que llegaron a la portería","Cabeceos en área rival","Cabeceos en área propia","Centros","Centros acertados","1vs1 exitosos ofensivos","1vs1 exitosos ofensivos que terminaron en gol","1vs1 defensivos exitoso","Rechaces","Balones ganados en área propia","Balones ganados en área rival","Faltas cometidas","Faltas recibidas","Tarjetas amarillas","Tarjetas rojas","Atajadas","Tiros de Esquina"],categories:[{id:1,name:"Goles"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8,name:"Cabeceos en área rival"},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],categoryData:[],categorySelected:null,isTeam:!1,categoryName:"Goles",optionSelected:"Jugadores",positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}]}),async created(){},computed:{topData(){var e=[];return this.categorySelected!=null&&this.categoryData[this.categorySelected]!==void 0&&(this.isTeam?e=this.categoryData[this.categorySelected].top__teams:e=this.categoryData[this.categorySelected].top__players),e}},methods:{translateTopCategories(e){return{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]}[e]||[]},onOpenMedia(e){const t=this.translateTopCategories(this.categorySelected),a=2,i=3;let n=[],r=0,o=0;this.isTeam?(r=e.player_id,o=i):(n=[e.player_id],o=a);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:o,gameIds:null,playerIds:n,goalkeeperIds:[],categoryIds:t,teamId:r,matchResult:[1,2,3],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:e.category},objectPlaySync:null};this.$emit("openmedia",l)},async ChangeRadio(e){e==="Mi equipo"&&await this.getCategoryStats(this.season,0),e==="Liga MX"&&await this.getCategoryStats(this.season,1)},clickMosaic(e){this.$emit("boxinput",e)},clickMore(){this.$emit("more")},async changeType(e){this.optionSelected=e,e=="Equipos"?(await this.getCategoryStats(this.season,1),this.isTeam=!0):this.isTeam=!1},changeCategory(e){this.categoryName=e;const t=this.categories.find(a=>a.name===e);this.categorySelected=t.id},async getCategoryStats(e,t){try{let n={},r={},o=[];const l=ms.create({headers:{Authorization:`${this.token}`}});var a={};if(t==0&&(a=await l.get(this.url+this.season+"/teams/"+this.teamId)),t==1&&(a=await l.get(this.url+e)),a&&a.data){a.data.teams.map(c=>{n[c[0]]={},n[c[0]].id=c[0],n[c[0]].name=c[2],n[c[0]].img=c[3],n[c[0]].abrv=c[2],n[c[0]].logo=c[3]}),a.data.players.map(c=>{r[c[0]]={},r[c[0]].id=c[0],r[c[0]].name=c[1],r[c[0]].img=c[2],r[c[0]].position=c[6],r[c[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+c[10][0].team_id+".png"});var i=1;a.data.tops.map(c=>{o[c.category?c.category:i]={};var d={},u={};c.teams.map(m=>{d[m[0]]={},d[m[0]].total=m[1],d[m[0]].id=n[m[0]].id,d[m[0]].name=n[m[0]].name,d[m[0]].img="https://az755631.vo.msecnd.net/teams-150/"+m[0]+".png",d[m[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+m[0]+".png"}),c.players.map(m=>{u[m[0]]={},u[m[0]].total=m[1],u[m[0]].name=r[m[0]].name,u[m[0]].img=r[m[0]].img.replace("players-profile/","players-profile/"),u[m[0]].id=r[m[0]].id,u[m[0]].position=this.positions[r[m[0]].position-1].name,u[m[0]].logo=r[m[0]].logo});var h=[],p=[];for(const m in d)h.push(d[m]);for(const m in u)p.push(u[m]);h.sort((m,f)=>m.total<f.total?1:-1),p.sort((m,f)=>m.total<f.total?1:-1),o[c.category?c.category:i].top__players=p,o[c.category?c.category:i].top__teams=h,i++})}this.categorySelected=1,this.categoryData=o}catch(n){return Promise.reject(n)}}}},LT=()=>{s.useCssVars(e=>({"578abbed":e.backgroundColor,"201d087b":e.fontFamily,e93e3250:e.fontSize,"4045f928":e.fontColor,d58d9480:e.marginMosaic}))},RT=oy.setup;oy.setup=RT?(e,t)=>(LT(),RT(e,t)):LT;const xj=e=>(s.pushScopeId("data-v-e870c7c5"),e=e(),s.popScopeId(),e),Nj={class:"gsc-best",ref:"myDivRef"},Aj={class:"gsc-best__line-bar-tools"},Pj={key:0,class:"gsc-best__line-bar-tools__title"},Oj=xj(()=>s.createElementVNode("span",null,"Los mejores ",-1)),Bj={key:1,class:"gsc-best__line-bar-tools__titlefull"},Dj={class:"unit-items"},Lj={key:2,class:"gsc-best__line-bar-tools__tools"},Rj={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},Mj={class:"gsc-best__line-bar-tools__tools__btn"},Fj={key:0,class:"gsc-best__line-bar-tools-movil"},Vj={class:"gsc-best__line-bar-tools-movil__tabs"},Uj={class:"gsc-best__categories"},jj={class:"gsc-best__players"};function zj(e,t,a,i,n,r){const o=s.resolveComponent("GSCRadioToggle"),l=s.resolveComponent("GSCButton"),c=s.resolveComponent("GscSwitchComponent"),d=s.resolveComponent("GSCMosaicthebest"),u=s.resolveComponent("GSCSlider");return s.openBlock(),s.createElementBlock("div",Nj,[s.createElementVNode("div",Aj,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Pj,[Oj,e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0)])):s.createCommentVNode("",!0),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",Bj,[s.createElementVNode("span",{style:s.normalizeStyle(i.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),s.createElementVNode("span",Dj,[e.optionSelected!=="Equipos"&&a.showSwitch?(s.openBlock(),s.createBlock(o,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","hidden-labels":!0,"value-default":"Liga MX",iconA:"https://az755631.vo.msecnd.net/teams-150/"+a.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:r.ChangeRadio},null,8,["iconA","onChange"])):s.createCommentVNode("",!0),s.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":i.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":i.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["font-color","font-size","onClick"])])])):s.createCommentVNode("",!0),i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Lj,[i.elementSize.width>900?(s.openBlock(),s.createElementBlock("div",Rj,[s.createVNode(c,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"12px",width:"270px",fontFamily:"Poppins-Regular",onInput:r.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):s.createCommentVNode("",!0),s.createElementVNode("div",Mj,[s.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:r.clickMore},null,8,["onClick"]),s.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:r.clickMore},null,8,["onClick"])])])):s.createCommentVNode("",!0)]),i.elementSize.width<=900?(s.openBlock(),s.createElementBlock("div",Fj,[s.createElementVNode("div",Vj,[s.createVNode(c,{type:1,buttons:["Jugadores","Equipos"],"selected-option":e.optionSelected,"border-radius":"32px",height:"28px","border-width":"1px","border-width-container":"0.5px","background-option-active":"#0d1d29","color-option-active":"#FFFFFF","font-size":"10px",width:"270px",fontFamily:"Poppins-Regular",onInput:r.changeType},null,8,["selected-option","onInput"])])])):s.createCommentVNode("",!0),s.createElementVNode("div",Uj,[s.createVNode(c,{type:2,arrow:!0,"font-family":"Poppins-Regular",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":i.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:r.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0},null,8,["buttons","font-size","onInput"])]),s.createElementVNode("div",jj,[s.createVNode(u,{pxScroll:777,scrollColor:"none",arrowsPosition:"absolute",arrowsScrollHide:!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(13,29,41,0) 0%, rgba(13,29,41,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd"},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(r.topData,(h,p)=>(s.openBlock(),s.createElementBlock("div",{key:p,class:s.normalizeClass(["gsc-best__players__item",p==0?"margin-none":""])},[s.createVNode(d,{data:{player_id:h.id,player_name:h.name,player_position:h.position,player_stat:h.total,category:"Total",top:p<9?"0"+(p+1):p+1,team_logo:h.logo,player_photo:h.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:r.clickMosaic,onOpenmedia:r.onOpenMedia,namePlayerFontSize:"14px",namePositionFontSize:"10px",numbertopLeft:"-15px",numberFontFamily:"Oswald-SemiBold",totalFontSize:"12px",totalFont:"Poppins-SemiBold!important",totalHeight:"21px"},null,8,["data","onClickMosaic","onOpenmedia"])],2))),128))]),_:1})])],512)}const Hj=ri(oy,[["render",zj],["__scopeId","data-v-e870c7c5"]]),_t=(e,t)=>{const a=e.__vccOpts||e;for(const[i,n]of t)a[i]=n;return a},qj=e=>(s.pushScopeId("data-v-b9c574d2"),e=e(),s.popScopeId(),e),Wj={key:0,class:"match-header__left"},Gj={class:"match-header__img-container"},Kj=["src"],Jj={class:"match-header__img-container overlap"},Xj=["src"],Yj={class:"match-header__score"},Qj={class:"match-header__date"},Zj={key:0,xmlns:"http://www.w3.org/2000/svg",width:"12",height:"7",viewBox:"0 0 12 7",fill:"none"},$j=qj(()=>s.createElementVNode("path",{d:"M11 1L6 6L1 0.999999",stroke:"#9CA3AF","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),ez=[$j],tz={__name:"MatchHeader",props:{match:{type:Object,default:()=>({})},mobileClass:{type:String,default:""},clientWidth:{type:Number,default:0},hideArrow:{type:Boolean,default:!1}},setup(e){const t=e,a=s.computed(()=>{let r=[];return t.clientWidth>0&&(t.clientWidth<=450?r.push("match-header__acronyms__450"):t.clientWidth<=750?r.push("match-header__acronyms__750"):t.clientWidth<=850?r.push("match-header__acronyms__850"):r.push("match-header__acronyms")),r}),{match:i,mobileClass:n}=s.toRefs(t);return(r,o)=>{var l,c,d,u,h,p,m,f;return s.openBlock(),s.createElementBlock("div",{class:s.normalizeClass(["match-header",s.unref(n)])},[s.unref(i)?(s.openBlock(),s.createElementBlock("div",Wj,[s.createElementVNode("div",Gj,[s.createElementVNode("img",{class:"match-header__img",src:(c=(l=s.unref(i))==null?void 0:l.homeTeam)==null?void 0:c.logo},null,8,Kj)]),s.createElementVNode("div",Jj,[s.createElementVNode("img",{class:"match-header__img",src:(u=(d=s.unref(i))==null?void 0:d.awayTeam)==null?void 0:u.logo},null,8,Xj)]),s.createElementVNode("div",{class:s.normalizeClass(["match-header__acronyms",a.value])},s.toDisplayString(`${(p=(h=s.unref(i))==null?void 0:h.homeTeam)==null?void 0:p.acronym} VS ${(f=(m=s.unref(i))==null?void 0:m.awayTeam)==null?void 0:f.acronym}`),3)])):s.createCommentVNode("",!0),s.createElementVNode("div",Yj,s.toDisplayString(`${s.unref(i).score[0]} - ${s.unref(i).score[1]}`),1),s.createElementVNode("div",Qj,[s.createElementVNode("span",null,s.toDisplayString(s.unref(i).date.split("-").reverse().join("/")),1),e.hideArrow?s.createCommentVNode("",!0):(s.openBlock(),s.createElementBlock("svg",Zj,ez))])],2)}}},MT=_t(tz,[["__scopeId","data-v-b9c574d2"]]);function az(){return FT().__VUE_DEVTOOLS_GLOBAL_HOOK__}function FT(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const iz=typeof Proxy=="function",nz="devtools-plugin:setup",rz="plugin:settings:set";let Ac,ly;function sz(){var e;return Ac!==void 0||(typeof window<"u"&&window.performance?(Ac=!0,ly=window.performance):typeof global<"u"&&!((e=global.perf_hooks)===null||e===void 0)&&e.performance?(Ac=!0,ly=global.perf_hooks.performance):Ac=!1),Ac}function oz(){return sz()?ly.now():Date.now()}class lz{constructor(t,a){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=a;const i={};if(t.settings)for(const o in t.settings){const l=t.settings[o];i[o]=l.defaultValue}const n=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},i);try{const o=localStorage.getItem(n),l=JSON.parse(o);Object.assign(r,l)}catch{}this.fallbacks={getSettings(){return r},setSettings(o){try{localStorage.setItem(n,JSON.stringify(o))}catch{}r=o},now(){return oz()}},a&&a.on(rz,(o,l)=>{o===this.plugin.id&&this.fallbacks.setSettings(l)}),this.proxiedOn=new Proxy({},{get:(o,l)=>this.target?this.target.on[l]:(...c)=>{this.onQueue.push({method:l,args:c})}}),this.proxiedTarget=new Proxy({},{get:(o,l)=>this.target?this.target[l]:l==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(l)?(...c)=>(this.targetQueue.push({method:l,args:c,resolve:()=>{}}),this.fallbacks[l](...c)):(...c)=>new Promise(d=>{this.targetQueue.push({method:l,args:c,resolve:d})})})}async setRealTarget(t){this.target=t;for(const a of this.onQueue)this.target.on[a.method](...a.args);for(const a of this.targetQueue)a.resolve(await this.target[a.method](...a.args))}}function cz(e,t){const a=e,i=FT(),n=az(),r=iz&&a.enableEarlyProxy;if(n&&(i.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))n.emit(nz,e,t);else{const o=r?new lz(a,n):null;(i.__VUE_DEVTOOLS_PLUGINS__=i.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:a,setupFn:t,proxy:o}),o&&t(o.proxiedTarget)}}/*!
|
|
24
24
|
* vuex v4.1.0
|
|
25
25
|
* (c) 2022 Evan You
|
|
26
26
|
* @license MIT
|