@golstats/gsc-landing 1.0.5 → 1.0.6

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.
@@ -18,4 +18,4 @@
18
18
  * Vue 3 Carousel 0.3.1
19
19
  * (c) 2023
20
20
  * @license MIT
21
- */const W={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"}},ta={itemsToShow:{default:W.itemsToShow,type:Number},itemsToScroll:{default:W.itemsToScroll,type:Number},wrapAround:{default:W.wrapAround,type:Boolean},throttle:{default:W.throttle,type:Number},snapAlign:{default:W.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:W.transition,type:Number},breakpoints:{default:W.breakpoints,type:Object},autoplay:{default:W.autoplay,type:Number},pauseAutoplayOnHover:{default:W.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:W.mouseDrag,type:Boolean},touchDrag:{default:W.touchDrag,type:Boolean},dir:{default:W.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:W.i18n,type:Object},settings:{default(){return{}},type:Object}};function Fp({config:e,slidesCount:n}){const{snapAlign:o,wrapAround:r,itemsToShow:a=1}=e;if(r)return Math.max(n-1,0);let i;switch(o){case"start":i=n-a;break;case"end":i=n-1;break;case"center":case"center-odd":i=n-Math.ceil((a-.5)/2);break;case"center-even":i=n-Math.ceil(a/2);break;default:i=0;break}return Math.max(i,0)}function Ip({config:e,slidesCount:n}){const{wrapAround:o,snapAlign:r,itemsToShow:a=1}=e;let i=0;if(o||a>n)return i;switch(r){case"start":i=0;break;case"end":i=a-1;break;case"center":case"center-odd":i=Math.floor((a-1)/2);break;case"center-even":i=Math.floor((a-2)/2);break;default:i=0;break}return i}function Mo({val:e,max:n,min:o}){return n<o?e:Math.min(Math.max(e,o),n)}function Lp({config:e,currentSlide:n,slidesCount:o}){const{snapAlign:r,wrapAround:a,itemsToShow:i=1}=e;let s=n;switch(r){case"center":case"center-odd":s-=(i-1)/2;break;case"center-even":s-=(i-2)/2;break;case"end":s-=i-1;break}return a?s:Mo({val:s,max:o-i,min:0})}function oa(e){return e?e.reduce((n,o)=>{var r;return o.type===t.Fragment?[...n,...oa(o.children)]:((r=o.type)===null||r===void 0?void 0:r.name)==="CarouselSlide"?[...n,o]:n},[]):[]}function jo({val:e,max:n,min:o=0}){return e>n?jo({val:e-(n+1),max:n,min:o}):e<o?jo({val:e+(n+1),max:n,min:o}):e}function zp(e,n){let o;return n?function(...r){const a=this;o||(e.apply(a,r),o=!0,setTimeout(()=>o=!1,n))}:e}function _p(e,n){let o;return function(...r){o&&clearTimeout(o),o=setTimeout(()=>{e(...r),o=null},n)}}function Pp(e="",n={}){return Object.entries(n).reduce((o,[r,a])=>o.replace(`{${r}}`,String(a)),e)}var Mp=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},W))),n=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Pp(e.i18n.itemXofY,{currentSlide:n.value+1,slidesCount:o.value}))}}),jp=t.defineComponent({name:"Carousel",props:ta,setup(e,{slots:n,emit:o,expose:r}){var a;const i=t.ref(null),s=t.ref([]),l=t.ref(0),c=t.ref(0),d=t.reactive(Object.assign({},W));let m=Object.assign({},W),p;const f=t.ref((a=e.modelValue)!==null&&a!==void 0?a:0),h=t.ref(0),u=t.ref(0),g=t.ref(0),C=t.ref(0);let k,M;t.provide("config",d),t.provide("slidesCount",c),t.provide("currentSlide",f),t.provide("maxSlide",g),t.provide("minSlide",C),t.provide("slideWidth",l);function v(){p=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),ce(m)}function q(){if(!p||!Object.keys(p).length)return;const y=Object.keys(p).map(E=>Number(E)).sort((E,j)=>+j-+E);let B=Object.assign({},m);y.some(E=>{const j=window.matchMedia(`(min-width: ${E}px)`).matches;return j&&(B=Object.assign(Object.assign({},B),p[E])),j}),ce(B)}function ce(y){Object.entries(y).forEach(([B,E])=>d[B]=E)}const de=_p(()=>{q(),J()},16);function J(){if(!i.value)return;const y=i.value.getBoundingClientRect();l.value=y.width/d.itemsToShow}function te(){c.value<=0||(u.value=Math.ceil((c.value-1)/2),g.value=Fp({config:d,slidesCount:c.value}),C.value=Ip({config:d,slidesCount:c.value}),d.wrapAround||(f.value=Mo({val:f.value,max:g.value,min:C.value})))}t.onMounted(()=>{t.nextTick(()=>J()),setTimeout(()=>J(),1e3),q(),F(),window.addEventListener("resize",de,{passive:!0}),o("init")}),t.onUnmounted(()=>{M&&clearTimeout(M),k&&clearInterval(k),window.removeEventListener("resize",de,{passive:!0})});let V=!1;const Q={x:0,y:0},$={x:0,y:0},D=t.reactive({x:0,y:0}),ee=t.ref(!1),ne=t.ref(!1),O=()=>{ee.value=!0},N=()=>{ee.value=!1};function T(y){["INPUT","TEXTAREA","SELECT"].includes(y.target.tagName)||(V=y.type==="touchstart",V||y.preventDefault(),!(!V&&y.button!==0||R.value)&&(Q.x=V?y.touches[0].clientX:y.clientX,Q.y=V?y.touches[0].clientY:y.clientY,document.addEventListener(V?"touchmove":"mousemove",A,!0),document.addEventListener(V?"touchend":"mouseup",x,!0)))}const A=zp(y=>{ne.value=!0,$.x=V?y.touches[0].clientX:y.clientX,$.y=V?y.touches[0].clientY:y.clientY;const B=$.x-Q.x,E=$.y-Q.y;D.y=E,D.x=B},d.throttle);function x(){const y=d.dir==="rtl"?-1:1,B=Math.sign(D.x)*.4,E=Math.round(D.x/l.value+B)*y;if(E&&!V){const j=me=>{me.stopPropagation(),window.removeEventListener("click",j,!0)};window.addEventListener("click",j,!0)}L(f.value-E),D.x=0,D.y=0,ne.value=!1,document.removeEventListener(V?"touchmove":"mousemove",A,!0),document.removeEventListener(V?"touchend":"mouseup",x,!0)}function F(){!d.autoplay||d.autoplay<=0||(k=setInterval(()=>{d.pauseAutoplayOnHover&&ee.value||Y()},d.autoplay))}function I(){k&&(clearInterval(k),k=null),F()}const R=t.ref(!1);function L(y){const B=d.wrapAround?y:Mo({val:y,max:g.value,min:C.value});f.value===B||R.value||(o("slide-start",{slidingToIndex:y,currentSlideIndex:f.value,prevSlideIndex:h.value,slidesCount:c.value}),R.value=!0,h.value=f.value,f.value=B,M=setTimeout(()=>{if(d.wrapAround){const E=jo({val:B,max:g.value,min:0});E!==f.value&&(f.value=E,o("loop",{currentSlideIndex:f.value,slidingToIndex:y}))}o("update:modelValue",f.value),o("slide-end",{currentSlideIndex:f.value,prevSlideIndex:h.value,slidesCount:c.value}),R.value=!1,I()},d.transition))}function Y(){L(f.value+d.itemsToScroll)}function oe(){L(f.value-d.itemsToScroll)}const Oe={slideTo:L,next:Y,prev:oe};t.provide("nav",Oe),t.provide("isSliding",R);const Ae=t.computed(()=>Lp({config:d,currentSlide:f.value,slidesCount:c.value}));t.provide("slidesToScroll",Ae);const nt=t.computed(()=>{const y=d.dir==="rtl"?-1:1,B=Ae.value*l.value*y;return{transform:`translateX(${D.x-B}px)`,transition:`${R.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function Ve(){v(),q(),te(),J(),I()}Object.keys(ta).forEach(y=>{["modelValue"].includes(y)||t.watch(()=>e[y],Ve)}),t.watch(()=>e.modelValue,y=>{y!==f.value&&L(Number(y))}),t.watch(c,te),o("before-init"),v();const Re={config:d,slidesCount:c,slideWidth:l,next:Y,prev:oe,slideTo:L,currentSlide:f,maxSlide:g,minSlide:C,middleSlide:u};r({updateBreakpointsConfigs:q,updateSlidesData:te,updateSlideWidth:J,initDefaultConfigs:v,restartCarousel:Ve,slideTo:L,next:Y,prev:oe,nav:Oe,data:Re});const Fe=n.default||n.slides,Ie=n.addons,Le=t.reactive(Re);return()=>{const y=oa(Fe==null?void 0:Fe(Le)),B=(Ie==null?void 0:Ie(Le))||[];y.forEach((pe,ue)=>pe.props.index=ue);let E=y;if(d.wrapAround){const pe=y.map((fe,X)=>t.cloneVNode(fe,{index:-y.length+X,isClone:!0,key:`clone-before-${X}`})),ue=y.map((fe,X)=>t.cloneVNode(fe,{index:y.length+X,isClone:!0,key:`clone-after-${X}`}));E=[...pe,...y,...ue]}s.value=y,c.value=Math.max(y.length,1);const j=t.h("ol",{class:"carousel__track",style:nt.value,onMousedownCapture:d.mouseDrag?T:null,onTouchstartPassiveCapture:d.touchDrag?T:null},E),me=t.h("div",{class:"carousel__viewport"},j);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":R.value,"is-dragging":ne.value,"is-hover":ee.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:O,onMouseleave:N},[me,B,t.h(Mp)])}}}),Do;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Do||(Do={}));const Dp={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 vp(e){return e in Do}const vo=e=>{const n=t.inject("config",t.reactive(Object.assign({},W))),o=String(e.name),r=`icon${o.charAt(0).toUpperCase()+o.slice(1)}`;if(!o||typeof o!="string"||!vp(o))return;const a=Dp[o],i=t.h("path",{d:a}),s=n.i18n[r]||e.title||o,l=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[l,i])};vo.props={name:String,title:String};const Up=(e,{slots:n,attrs:o})=>{const{next:r,prev:a}=n||{},i=t.inject("config",t.reactive(Object.assign({},W))),s=t.inject("maxSlide",t.ref(1)),l=t.inject("minSlide",t.ref(1)),c=t.inject("currentSlide",t.ref(1)),d=t.inject("nav",{}),{dir:m,wrapAround:p,i18n:f}=i,h=m==="rtl",u=t.h("button",{type:"button",class:["carousel__prev",!p&&c.value<=l.value&&"carousel__prev--disabled",o==null?void 0:o.class],"aria-label":f.ariaPreviousSlide,onClick:d.prev},(a==null?void 0:a())||t.h(vo,{name:h?"arrowRight":"arrowLeft"})),g=t.h("button",{type:"button",class:["carousel__next",!p&&c.value>=s.value&&"carousel__next--disabled",o==null?void 0:o.class],"aria-label":f.ariaNextSlide,onClick:d.next},(r==null?void 0:r())||t.h(vo,{name:h?"arrowLeft":"arrowRight"}));return[u,g]};var Jp=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:n}){const o=t.inject("config",t.reactive(Object.assign({},W))),r=t.inject("currentSlide",t.ref(0)),a=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),s=()=>e.index===r.value,l=()=>e.index===r.value-1,c=()=>e.index===r.value+1,d=()=>{const m=Math.floor(a.value),p=Math.ceil(a.value+o.itemsToShow-1);return e.index>=m&&e.index<=p};return()=>{var m;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(m=n.default)===null||m===void 0?void 0:m.call(n))}}});const se=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},Hp={__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:()=>{}}},emits:["change-match-day"],setup(e,{emit:n}){const o=e,r=t.computed(()=>{const l={"background-color":o.backgroundColor,height:o.height};return o.matchDay.key===o.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${o.bottomLineColor}`,l["background-color"]=o.selectedMatchDayBackgroundColor),o.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),a=t.computed(()=>({color:o.numberColor,"font-family":o.numberFontFamily,"font-size":o.numberFontSize})),i=t.computed(()=>({color:o.textColor,"font-family":o.textFontFamily,"font-size":o.textFontSize}));function s(l){n("click-match-day",l)}return(l,c)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...r.value}),onClick:c[0]||(c[0]=d=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(a.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode?"JOR":"JORNADA"),5))],4))}},Gp=se(Hp,[["__scopeId","data-v-24ec0c70"]]),Wp={class:"match-day-picker"},qp={__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:""}},emits:["change-match-day"],setup(e,{emit:n}){const o=e,r=t.computed(()=>({itemsToShow:o.itemsToShow,itemsToScroll:o.itemsToScroll,snapAlign:"start"})),a=t.ref({});t.watch(()=>o.matchDays,s=>{if(s&&s.length){const l=s.find(c=>c.key===o.defaultMatchDayKey);a.value=l||s[0],n("change-match-day",a.value)}},{immediate:!0});function i(s){a.value=s,n("change-match-day",a.value)}return(s,l)=>(t.openBlock(),t.createElementBlock("div",Wp,[t.createVNode(t.unref(jp),t.normalizeProps(t.guardReactiveProps(r.value)),{addons:t.withCtx(()=>[t.createVNode(t.unref(Up))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,c=>(t.openBlock(),t.createBlock(t.unref(Jp),{key:c.key},{default:t.withCtx(()=>[t.createVNode(Gp,t.mergeProps(o,{"match-day":c,"match-day-selected":a.value,"is-landing-mode":e.isLandingMode,onClickMatchDay:i}),null,16,["match-day","match-day-selected","is-landing-mode"])]),_:2},1024))),128))]),_:1},16)]))}},Kp=se(qp,[["__scopeId","data-v-5eedf1a0"]]);function Je(e,n=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${n}/${e}.png`}const Zp={class:"game-info"},Yp={class:"game-info__teams"},Xp={class:"game-info__teams__team"},Qp={class:"game-info__teams__team__logo"},$p=["src"],eu={class:"game-info__teams__detail"},tu={key:0,class:"game-info__teams__detail__pre-game"},ou={class:"game-info__teams__team"},nu={class:"game-info__teams__team__logo away"},ru=["src"],au={key:0},iu={key:0},su={key:1},lu={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const n=e,o=t.computed(()=>{const c=new Date(n.game.dateTimeMillis),d=c.getHours(),m=c.getMinutes();return`${d<10?`0${d}`:d}:${m<10?`0${m}`:m}`}),r=t.computed(()=>({"font-size":n.namesFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary})),a=t.computed(()=>({"font-size":n.additionalInfoFontSize,"font-family":n.additionalInfoFontFamily,color:n.colorSecondary})),i=t.computed(()=>({"font-size":n.scoreFontSize,"font-family":n.scoreFontFamily,color:n.colorPrimary})),s=t.computed(()=>({"font-size":n.timeZoneFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary})),l=t.computed(()=>({"font-size":n.timeFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary}));return(c,d)=>(t.openBlock(),t.createElementBlock("div",Zp,[t.createElementVNode("div",Yp,[t.createElementVNode("div",Xp,[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(r.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",Qp,[t.createElementVNode("img",{src:t.unref(Je)(e.game.home_team.team_id),alt:""},null,8,$p)])]),t.createElementVNode("div",eu,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",tu,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(l.value)},t.toDisplayString(o.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(s.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(i.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",ou,[t.createElementVNode("div",nu,[t.createElementVNode("img",{src:t.unref(Je)(e.game.visiting_team.team_id),alt:""},null,8,ru)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(r.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)])]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle(a.value)},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",au,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",iu,"fox, univision, televisa")):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",su,"finalizado - Penales 1-3 "))],4)]))}},na=se(lu,[["__scopeId","data-v-1d5f7267"]]),ra=e=>(t.pushScopeId("data-v-25969b23"),e=e(),t.popScopeId(),e),cu={class:"game-status"},du={key:0,class:"game-status__day__live"},mu=ra(()=>t.createElementVNode("span",null,"LIVE",-1)),pu=ra(()=>t.createElementVNode("span",{class:"dot"},null,-1)),uu=[mu,pu],fu={key:0,class:"game-status__round"},hu={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const n=e,o=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],r=t.computed(()=>{let s="";if(n.dateTimeMillis){const l=new Date(n.dateTimeMillis);s=`${l.getDate()} ${o[l.getMonth()]}`}return s}),a=t.computed(()=>({"font-size":n.fontSize})),i=t.computed(()=>{let s=[];return n.isLive?s.push("live"):n.status!==1&&s.push("pre-match"),s});return(s,l)=>(t.openBlock(),t.createElementBlock("div",cu,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",i.value]),style:t.normalizeStyle(a.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",du,uu)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.value),1)],64))],6),e.isLandingMode?(t.openBlock(),t.createElementBlock("div",fu,t.toDisplayString(e.roundAbbreviation),1)):t.createCommentVNode("",!0)]))}},aa=se(hu,[["__scopeId","data-v-25969b23"]]),le={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},gu=e=>(t.pushScopeId("data-v-70dd3937"),e=e(),t.popScopeId(),e),yu={class:"actions"},Su={class:"actions__row"},bu=gu(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),wu=[bu],Cu={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ku=["fill"],Eu={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bu=["fill"],xu={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:n}){const o=e,r=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor}));function a(i){n("action",i)}return(i,s)=>(t.openBlock(),t.createElementBlock("div",yu,[t.createElementVNode("div",Su,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(r.value),onClick:s[0]||(s[0]=l=>a(t.unref(le).STATISTICS))},wu,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(r.value),onClick:s[1]||(s[1]=l=>a(t.unref(le).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Cu,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:o.iconColor},null,8,ku)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=l=>a(t.unref(le).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Eu,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Bu)]))])):t.createCommentVNode("",!0)])]))}},Nu=se(xu,[["__scopeId","data-v-70dd3937"]]),Uo=e=>(t.pushScopeId("data-v-dac26549"),e=e(),t.popScopeId(),e),Tu={class:"actions"},Ou={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Au=["fill"],Vu={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ru=["fill"],Fu=Uo(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Iu=[Fu],Lu={key:0,class:"actions__videos"},zu={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_u=["fill"],Pu={key:1,class:"actions__videos__thumbnails"},Mu=Uo(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__img"},null,-1)),ju=Uo(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__img"},null,-1)),Du={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vu=["stroke"],Uu={__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:n}){const o=e,r=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor})),a=t.computed(()=>{const c=[];return o.componentWidth<540&&c.push("mobile"),c}),i=t.computed(()=>o.componentWidth>730),s=t.computed(()=>({color:o.thumbnailColor,fontFamily:o.thumbnailFontFamily,fontSize:o.thumbnailFontSize}));function l(c){n("action",c)}return(c,d)=>(t.openBlock(),t.createElementBlock("div",Tu,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",a.value])},[e.gameStatus===4&&!e.isLive&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=m=>l(t.unref(le).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Ou,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Au)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(r.value),onClick:d[1]||(d[1]=m=>l(t.unref(le).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Vu,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:o.iconColor},null,8,Ru)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(r.value),onClick:d[2]||(d[2]=m=>l(t.unref(le).STATISTICS))},Iu,4)],2),i.value?(t.openBlock(),t.createElementBlock("div",Lu,[e.gameStatus===4&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=m=>l(t.unref(le).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",zu,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,_u)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",Pu,[t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=m=>l(t.unref(le).PLAY_GOALS))},[Mu,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)]),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=m=>l(t.unref(le).PLAY_RESUME))},[ju,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=m=>l(t.unref(le).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",Du,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,vu)]))],2)]))}},Ju=se(Uu,[["__scopeId","data-v-dac26549"]]),_t=e=>(t.pushScopeId("data-v-47de00a2"),e=e(),t.popScopeId(),e),Hu={class:"row-landing__game-status"},Gu={class:"row-landing__game-actions"},Wu={class:"row-full__game-status"},qu={class:"row-full__game-info"},Ku={key:0},Zu={class:"row-full__game-actions"},Yu={class:"game-events-container"},Xu=_t(()=>t.createElementVNode("div",{class:"separator"},null,-1)),Qu=_t(()=>t.createElementVNode("div",null,null,-1)),$u={class:"game-events__data"},ef={class:"game-events__data__team"},tf=["src"],of={class:"game-events__data__team__event__text"},nf={class:"game-events__data__team away"},rf={class:"game-events__data__team__event__text"},af=["src"],sf=_t(()=>t.createElementVNode("div",null,null,-1)),lf=_t(()=>t.createElementVNode("div",null,null,-1)),cf={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:n}){const o=e,r={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"https://az755631.vo.msecnd.net/todoelfut/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"https://az755631.vo.msecnd.net/todoelfut/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"https://az755631.vo.msecnd.net/todoelfut/icn-amarilla.svg"},a=t.ref(!1),i=t.ref(!1),s=t.computed(()=>{const u={homeTeam:[],awayTeam:[]};return o.game&&o.game.game_status!==4&&!o.game.is_live&&o.game.minutes&&(u.homeTeam.push(...f(o.game.minutes.home_goals_minutes,r.GOAL)),u.homeTeam.push(...f(o.game.minutes.home_red_cards_minutes,r.RED_CARD)),u.homeTeam.push(...f(o.game.minutes.home_yellow_cards_minutes,r.YELLOW_CARD)),u.awayTeam.push(...f(o.game.minutes.visiting_goals_minutes,r.GOAL)),u.awayTeam.push(...f(o.game.minutes.away_red_cards_minutes,r.RED_CARD)),u.awayTeam.push(...f(o.game.minutes.away_yellow_cards_minutes,r.YELLOW_CARD))),u}),l=t.computed(()=>({"background-color":o.backgroundColor})),c=t.computed(()=>({height:o.height})),d=t.computed(()=>{const u={game:[],events:[]};return o.componentWidth<500?(u.events.push("break-point-3"),u.game.push("break-point-2")):o.componentWidth<730?(u.game.push("break-point-2"),u.events.push("break-point-2")):o.componentWidth<910&&(u.game.push("break-point-1"),u.events.push("break-point-1")),u}),m=t.computed(()=>({isLandingMode:o.isLandingMode,game:o.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),p=t.computed(()=>({"font-size":o.televisionFontSize,"font-family":o.televisionFontFamily,color:o.televisionColor}));t.watch(()=>o.componentWidth,u=>{i.value=u<910});function f(u,g){return u.map(C=>({iconUrl:g,text:C}))}function h(u){u===le.SHOW_GAME_EVENTS?a.value=!a.value:n("action",{action:u,game:o.game})}return(u,g)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(l.value)},[t.createVNode(na,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",Hu,[t.createVNode(aa,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":e.game.roundAbbreviation,"is-landing-mode":e.isLandingMode},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode"])]),t.createElementVNode("div",Gu,[t.createVNode(Nu,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onClick:h},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",d.value.game]),style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Wu,[t.createVNode(aa,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"is-landing-mode":e.isLandingMode,"font-size":"12px"},null,8,["status","is-live","date-time-millis","is-landing-mode"])]),t.createElementVNode("div",qu,[t.createVNode(na,t.mergeProps(m.value,{"is-television-visible":i.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(p.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",Ku,"fox, univision, televisas")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Zu,[t.createVNode(Ju,{"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":a.value,"component-width":e.componentWidth,onAction:h},null,8,["is-live","has-video","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Yu,[Xu,t.createElementVNode("div",{class:t.normalizeClass(["game-events",d.value.events])},[Qu,t.createElementVNode("div",$u,[t.createElementVNode("div",ef,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(C,k)=>(t.openBlock(),t.createElementBlock("div",{key:`h${k}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:C.iconUrl},null,8,tf),t.createElementVNode("div",of,t.toDisplayString(C.text),1)]))),128))]),t.createElementVNode("div",nf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(C,k)=>(t.openBlock(),t.createElementBlock("div",{key:`a${k}`,class:"game-events__data__team__event"},[t.createElementVNode("div",rf,t.toDisplayString(C.text),1),t.createElementVNode("img",{src:C.iconUrl},null,8,af)]))),128))])]),sf,lf],2)],512),[[t.vShow,a.value]])]),_:1})],4))}},ia=se(cf,[["__scopeId","data-v-47de00a2"]]),df={class:"calendar-table"},mf={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:n}){const o=e;function r(i){return i%2===0?o.evenRowColor:o.oddRowColor}function a(i){n("action",{action:i,game:o.game})}return(i,s)=>(t.openBlock(),t.createElementBlock("div",df,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(l,c)=>(t.openBlock(),t.createBlock(ia,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":r(c),"component-width":e.componentWidth,onAction:a},null,8,["game","is-landing-mode","height","background-color","component-width"]))),128))]))}},pf=se(mf,[["__scopeId","data-v-06159135"]]),uf={class:"calendar-by-team"},ff={class:"options"},hf={class:"calendar-by-team__page"},gf={class:"calendar-by-team__page__round__round-name",style:{color:"white"}},yf={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:n}){const o=e,r=t.ref(0),a=t.computed(()=>{let l=[];if(o.gamesPages.size>0){const c=Array.from(o.gamesPages.entries()).reduce((d,[m,p])=>{const f=Number(m),h=Number.isNaN(f)?m:`Jornada ${f<10?"0":""}${f}`,u=p.reduce((g,C)=>(g.push(...C),g),[]).filter(g=>r.value===0||r.value===1&&g.visiting_team.team_id===o.teamId?!0:r.value===2&&g.home_team.team_id===o.teamId);return u.length>0&&d.push({roundName:h,games:u}),d},[]);l.push(c)}return l});function i(l){n("action",l)}function s(l){r.value=l}return(l,c)=>(t.openBlock(),t.createElementBlock("div",uf,[t.createElementVNode("div",ff,[t.createElementVNode("button",{onClick:c[0]||(c[0]=d=>s(0))},"Todas"),t.createElementVNode("button",{onClick:c[1]||(c[1]=d=>s(1))},"Visitante"),t.createElementVNode("button",{onClick:c[2]||(c[2]=d=>s(2))},"Local")]),t.createVNode(t.unref(ea),{"is-pagination-visible":e.isPaginationVisible,items:a.value},{default:t.withCtx(({item:d})=>[t.createElementVNode("div",hf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d,(m,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"calendar-by-team__page__round"},[t.createElementVNode("div",gf,t.toDisplayString(m.roundName),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.games,f=>(t.openBlock(),t.createBlock(ia,{key:f.game_id,game:f,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},Sf=se(yf,[["__scopeId","data-v-7e9ebe42"]]),bf="_image62Icon_1ybd3_2",wf="_imgChivasIcon_1ybd3_11",Cf="_nameDesktop_1ybd3_18",kf="_nameMobile_1ybd3_31",Ef="_homeTeam_1ybd3_43",Bf="_sbado16De_1ybd3_54",xf="_gameDate_1ybd3_63",Nf="_sab16092023_1ybd3_67",Tf="_div_1ybd3_80",Of="_divscore_1ybd3_89",Af="_cst_1ybd3_99",Vf="_hour_1ybd3_108",Rf="_score_1ybd3_109",Ff="_chivasTvCanal_1ybd3_120",If="_gameStatus_1ybd3_132",Lf="_matchInfo_1ybd3_143",zf="_image62Icon1_1ybd3_156",_f="_name_1ybd3_18",Pf="_imgAtlasIcon_1ybd3_178",Mf="_name1_1ybd3_185",jf="_awayTeam_1ybd3_197",Df="_matchCard_1ybd3_208",vf={image62Icon:bf,imgChivasIcon:wf,nameDesktop:Cf,nameMobile:kf,homeTeam:Ef,sbado16De:Bf,gameDate:xf,sab16092023:Nf,div:Tf,divscore:Of,cst:Af,hour:Vf,score:Rf,chivasTvCanal:Ff,gameStatus:If,matchInfo:Lf,image62Icon1:zf,name:_f,imgAtlasIcon:Pf,name1:Mf,awayTeam:jf,matchCard:Df},Uf=["src"],Jf=["src"],Hf={key:0},Gf=["src"],Wf=["src"],qf={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const n=e,o=t.computed(()=>{const a={...n.game};return a.gameSchedule=n.game.schedule.split(":"),a.gameSchedule.pop(),a.gameSchedule=a.gameSchedule.join(":"),a});function r(a,i){const s=new Date(a);if(i==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[s.getDay()]} ${s.getDate()} de ${c[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()}-${s.getFullYear()}`}return(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(a.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(a.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(a.$style.image62Icon),alt:"",src:t.unref(Je)(o.value.home_team.team_id,150)},null,10,Uf),t.createElementVNode("img",{class:t.normalizeClass(a.$style.imgChivasIcon),alt:"",src:t.unref(Je)(o.value.home_team.team_id)},null,10,Jf),t.createElementVNode("h3",{class:t.normalizeClass(a.$style.nameDesktop),id:"team-name"},t.toDisplayString(o.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(a.$style.nameMobile),id:"team-name"},t.toDisplayString(o.value.home_team.acronym),3)],2),o.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(a.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(a.$style.sbado16De)},t.toDisplayString(r(o.value.date,1)),3),t.createElementVNode("div",{class:t.normalizeClass(a.$style.sab16092023)},t.toDisplayString(r(o.value.date,0)),3),t.createElementVNode("div",{class:t.normalizeClass(a.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(a.$style.div)},t.toDisplayString(o.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(a.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(a.$style.chivasTvCanal)},t.toDisplayString(o.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(a.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([a.$style.sbado16De,a.$style.gameDate])},t.toDisplayString(r(o.value.date,1)),3),t.createElementVNode("div",{class:t.normalizeClass([a.$style.sab16092023,a.$style.gameDate])},t.toDisplayString(r(o.value.date,0)),3),t.createElementVNode("div",{class:t.normalizeClass(a.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(a.$style.divscore)},t.toDisplayString(o.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(a.$style.gameStatus)},[t.createTextVNode(" Finalizado "),o.value.penalties_score_home_team!=0||o.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",Hf," - Penales "+t.toDisplayString(o.value.penalties_score_home_team)+" - "+t.toDisplayString(o.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(a.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(a.$style.image62Icon1),alt:"",src:t.unref(Je)(o.value.visiting_team.team_id,150)},null,10,Gf),t.createElementVNode("h3",{class:t.normalizeClass(a.$style.name),id:"team-name"},t.toDisplayString(o.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(a.$style.imgAtlasIcon),alt:"",src:t.unref(Je)(o.value.visiting_team.team_id)},null,10,Wf),t.createElementVNode("h3",{class:t.normalizeClass(a.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},Kf={$style:vf},Zf=se(qf,[["__cssModules",Kf]]),Yf={class:"calendar-by-game__carousel"},Xf={components:{GscSwitchComponent:wr,GSCGeneraltable:yd,GSCCalendarByGame:se({__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},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:n}){const o=e;let r=null;const a=t.ref([]),i=t.ref({}),s=t.ref([]),l=t.ref(0),c=t.ref(null),d=t.ref({}),m=t.ref(new Map),p=t.ref(!1),f=t.ref(null),h=t.ref(null),u=t.ref(null),g=t.computed(()=>o.isCup),C=t.computed(()=>o.isCupLegacy),k=t.computed(()=>({height:o.height,width:o.width})),M=t.computed(()=>o.games?J(o.games):m.value.get(d.value.key)||[]);t.watch(()=>o.seasons,O=>{O&&O.length&&(p.value=!0,a.value=O.map(N=>N.id),ce(O,!0))},{immediate:!0,deep:!0}),t.watch(()=>o.teamId,()=>{de()});async function v(O,N,T=""){let A=T;try{const x={};o.token&&(x.Authorization=o.token),A||(A="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",O.forEach((R,L)=>{A+=`${L===0?"":"&"}seasons=${R}`}));const{data:{data:F,teams:I}}=await Yr.get(A,{headers:x});return{seasonsAndGames:F,seasonsAndTeams:I}}catch(x){if(N>0)return v(O,N-1,A);throw new Error(x)}}function q(O){for(const N of O)if(!a.value.includes(N.season_id))return!0;return!1}async function ce(O,N){try{i.value={};let T=0;const{seasonsAndGames:A,seasonsAndTeams:x}=await v(O.map(I=>I.id),3);if(N&&q(A))return;A.forEach(I=>{const{type:R}=O.find(L=>L.id===I.season_id);I.type=R,I.games.forEach(L=>{L.season_id=I.season_id}),R===0&&(T=I.season_id)}),f.value={seasonsGames:A};const{teams:F}=x.find(I=>I.season_id===T);h.value=F,n("change-teams",F),de()}catch(T){throw new Error(T)}}function de(){if(!h.value)return;const O=f.value&&f.value.seasonsGames?f.value.seasonsGames.map(N=>{const T=N.games.reduce((A,x)=>{const F={...x};return F.dateTimeMillis=new Date(F.date_time_utc).valueOf(),F.home_team=h.value.find(I=>I.team_id===x.home_team),F.visiting_team=h.value.find(I=>I.team_id===x.visiting_team),o.teamId&&F.home_team.team_id!==o.teamId&&F.visiting_team.team_id!==o.teamId||(A[x.matchday_abbreviation]?A[x.matchday_abbreviation][x.game_status===3?"canceled":x.date]?A[x.matchday_abbreviation][x.game_status===3?"canceled":x.date].push(F):A[x.matchday_abbreviation][x.game_status===3?"canceled":x.date]=[F]:A[x.matchday_abbreviation]={[x.game_status===3?"canceled":x.date]:[F]}),A},{});for(let[A,x]of Object.entries(T))T[A]=Object.entries(x).map(([F,I])=>({date:F,games:I.sort((R,L)=>R.dateTimeMillis-L.dateTimeMillis)})),T[A].sort((F,I)=>F.date<I.date?-1:F.date>I.date?1:0);return{type:N.type,weight:N.type===0?0:N.type===2?1:2,schedule:T}}):[];O.sort((N,T)=>N.weight-T.weight),i.value=O.reduce((N,T)=>{for(const[A,x]of Object.entries(T.schedule))if(T.type===0)if(g.value){const F=A.replace("M",""),I=F;C.value?N[Rp[F]||I]=x:N[Vp[A]||I]=x}else N[Number(A.replace("M","")).toString()]=x;else T.type===2?N[`R${Number(A.replace("PO",""))}`]=x:T.type===1&&(N[Ap[A]]=x);return N},{}),m.value=new Map,s.value=Array.from(Object.entries(i.value).reduce((N,[T,A])=>{const x=Number(T);let F="";Number.isNaN(x)?F=T:F=x<10?`0${x}`:T,N.set(T,{key:T,value:x,valueText:F});const I=A.reduce((L,Y)=>(Y.games.forEach(oe=>{oe.game_id===o.defaultGameId&&(u.value=T),oe.roundAbbreviation=Number.isNaN(x)?x:`J ${x}`}),L=L.concat(Y.games),L),[]),R=J(I);return m.value.set(T,R),N},new Map).values())}function J(O){const N=[];if(o.gamesPerMatchDay>0){let T=[];O.forEach((A,x)=>{T.push(A),(x+1)%o.gamesPerMatchDay===0&&(N.push([...T]),T=[])}),T.length&&N.push([...T])}else N.push(O);return N}async function te(O){try{const{data:N}=await Yr.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return N}catch(N){if(O>0)return te(O-1);throw new Error(N)}}function V(){if(window.ResizeObserver)r=new ResizeObserver(()=>{l.value=c.value.clientWidth}),r.observe(c.value);else throw new Error("Resize observer not supported!")}function Q(O){d.value=O,n("change-round",O)}function $(O){o.areGamesCarouselType&&n("change-game-carousel",O.selectedItem)}function D(O){n("action",O),ee(O)}function ee(O){const N="PLAY_RESUME",T="PLAY_GOALS",A=[607,608,12,55,54,35,14,52,15,53,466,477],x=[12,55,"35_r","54_r"],{game_id:F,season_id:I}=O.game;let R={seasonId:I,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[F],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};O.action===N?(R.categoryIds=A,R.advancedFilter.playListTitle="Resumen"):O.action===T&&(R.categoryIds=x,R.advancedFilter.playListTitle="Goles"),n("openmedia",R)}async function ne(){try{if(!o.awaitForSeasons&&!o.games){const O=(await te(3)).find(A=>A._id===1),N=O.seasons[0],T=[{id:N.id,type:N.type}];O&&O.tournament&&n("tournament-selected",O.tournament),N.related_seasons&&N.related_seasons.length&&T.push(...N.related_seasons.map(A=>({id:A.id,type:A.type}))),await ce(T,!1)}}catch(O){throw new Error(O)}}return t.onMounted(()=>{V()}),ne(),(O,N)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:t.normalizeStyle(k.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(Sf,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":l.value,"games-pages":m.value,"is-pagination-visible":e.isPaginationVisible,onAction:D},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&s.value?(t.openBlock(),t.createBlock(Kp,{key:0,"match-days":s.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"default-match-day-key":u.value,onChangeMatchDay:Q},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","default-match-day-key"])):t.createCommentVNode("",!0),t.createElementVNode("div",Yf,[M.value?(t.openBlock(),t.createBlock(t.unref(ea),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?M.value[0]:M.value,"are-navigation-arrows-visible":!e.areGamesCarouselType,"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:$},{default:t.withCtx(({item:T})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(Zf,{key:0,game:T},null,8,["game"])):(t.openBlock(),t.createBlock(pf,{key:1,"games-per-page":T,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,onAction:D},null,8,["games-per-page","is-landing-mode","row-height","component-width"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-e30806d1"]])},props:{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)}}},Qf={class:"gsc-calendar-table"},$f={class:"gsc-switch-container"},eh={class:"gsc-app-component"};function th(e,n,o,r,a,i){const s=t.resolveComponent("GscSwitchComponent"),l=t.resolveComponent("GSCGeneraltable"),c=t.resolveComponent("GSCCalendarByGame");return t.openBlock(),t.createElementBlock("div",Qf,[t.createElementVNode("div",$f,[t.createVNode(s,{type:0,"font-family":"Poppins-Regular",buttons:["Mi posición","Calendario"],height:"40px","selected-option":a.selectedOpt,"font-size":o.componentWidth>=768?"16px":"14px",width:"355px",onInput:i.changeCategory},null,8,["selected-option","font-size","onInput"])]),t.createElementVNode("div",eh,[a.selectedOpt=="Mi posición"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{isPaginationVisible:!0,season:1772,type:1,onOpenmedia:i.onOpenMedia},null,8,["onOpenmedia"]),t.createElementVNode("div",{onClick:n[0]||(n[0]=d=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c,{onAction:i.onAction,onOpenmedia:i.onOpenMedia,width:"100%",token:a.tokenFree,seasons:[{id:1772,name:"Apertura 2023",type:0}],"row-height":"60px","is-landing-mode":!0,"is-pagination-visible":!1,isRoundPickerVisible:!1,"await-for-seasons":"","items-to-show":5,"items-to-scroll":5,"max-games-to-show":5},null,8,["onAction","onOpenmedia","token"]),t.createElementVNode("div",{onClick:n[1]||(n[1]=d=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const oh=ye(Xf,[["render",th],["__scopeId","data-v-d61847f0"]]),nh=e=>(t.pushScopeId("data-v-abfc0658"),e=e(),t.popScopeId(),e),rh={class:"match"},ah={class:"match__header"},ih=nh(()=>t.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),sh={class:"match__tag"},lh={class:"match__body"},ch={class:"match__data"},dh={class:"match__acronym"},mh=["src"],ph={class:"match__score"},uh=["src"],fh={class:"match__acronym"},hh={class:"match__status"},Pt=ye({__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(n,o)=>{var r,a;return t.openBlock(),t.createElementBlock("section",rh,[t.createElementVNode("div",ah,[ih,t.createElementVNode("div",sh,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",lh,[t.createElementVNode("div",ch,[t.createElementVNode("div",dh,t.toDisplayString((r=e.data)==null?void 0:r.home_team_acronym),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,mh),t.createElementVNode("div",ph,t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,uh),t.createElementVNode("div",fh,t.toDisplayString((a=e.data)==null?void 0:a.visiting_team_acronym),1)]),t.createElementVNode("div",hh,"Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=i=>n.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-abfc0658"]]),gh=e=>(t.pushScopeId("data-v-028f7189"),e=e(),t.popScopeId(),e),yh=["src"],Sh=["src"],bh={class:"coming-match__body"},wh={class:"coming-match__data"},Ch=["src"],kh={style:{"margin-top":"16px"}},Eh={class:"coming-match__time"},Bh=gh(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),xh=["src"],ot=ye({__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(n,o)=>{var r,a,i,s,l,c,d,m,p,f,h,u;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((a=e.data)==null?void 0:a.home_team)+".png",alt:"team-img"},null,10,yh),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.visiting_team)+".png",alt:"team-img"},null,10,Sh),t.createElementVNode("div",bh,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",wh,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((s=e.data)==null?void 0:s.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,Ch),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),t.createElementVNode("div",kh,[t.createElementVNode("div",Eh,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((d=e.data)==null?void 0:d.score[0])+" - "+t.toDisplayString((m=e.data)==null?void 0:m.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((p=e.data)==null?void 0:p.schedule.replace(":00","")),1)],64))]),Bh]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((f=e.data)==null?void 0:f.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((u=e.data)==null?void 0:u.visiting_team)+".png",alt:"team-img"},null,10,xh)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=g=>n.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-028f7189"]]),sa=e=>(t.pushScopeId("data-v-486c2635"),e=e(),t.popScopeId(),e),Nh={class:"quadrant-matches"},Th={class:"quadrant-matches__header"},Oh={class:"quadrant-matches__title"},Ah=[sa(()=>t.createElementVNode("span",null,"Mi calendario completo",-1)),sa(()=>t.createElementVNode("span",null," →",-1))],Vh={key:0,class:"quadrant-matches__body"},Rh={key:1,class:"quadrant-matches__body col2"},Fh={key:2,class:"quadrant-matches__body col2"},Ih={class:"quadrant-matches__body",style:{"column-gap":"16px"}},Lh={class:"quadrant-matches__body col2"},zh={class:"quadrant-matches__body col2"},_h={class:"quadrant-matches__body matches"},Ph=ye({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{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 n=e,o=t.computed(()=>n.comingMatches[0]||{}),r=t.computed(()=>n.previousMatches[0]||{}),a=t.toRef(n,"componentWidth"),i=t.computed(()=>a.value<768);return(s,l)=>(t.openBlock(),t.createElementBlock("section",Nh,[t.createElementVNode("div",Th,[t.createElementVNode("h2",Oh,t.toDisplayString(e.hasTeam?"Mis partidos":"Partidos"),1),t.createElementVNode("button",{class:"quadrant-matches__button",onClick:l[0]||(l[0]=c=>s.$emit("clickCalendar"))},Ah)]),e.hasTeam?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.comingMatches.length&&e.previousMatches.length?(t.openBlock(),t.createBlock(t.unref(Me),{key:0,arrows:!1},{default:t.withCtx(()=>[t.createElementVNode("div",Ih,[t.createVNode(ot,t.mergeProps({small:"",data:e.data.data.prematch},o.value,{onClickMatch:l[5]||(l[5]=c=>s.$emit("clickMatch",e.data.data.prematch))}),null,16,["data"]),t.createVNode(Pt,t.mergeProps({data:e.data.data.postmatch},r.value,{onClickMatch:l[6]||(l[6]=c=>s.$emit("clickMatch",e.data.data.postmatch))}),null,16,["data"])])]),_:1})):e.comingMatches.length?(t.openBlock(),t.createBlock(t.unref(Me),{key:1,arrows:!1},{default:t.withCtx(()=>[t.createElementVNode("div",Lh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.comingMatches.slice(0,2),(c,d)=>(t.openBlock(),t.createBlock(ot,t.mergeProps({data:e.data.data.prematch},c,{key:d,small:"",onClickMatch:l[7]||(l[7]=m=>s.$emit("clickMatch",e.data.data.prematch))}),null,16,["data"]))),128))])]),_:1})):e.previousMatches.length?(t.openBlock(),t.createBlock(t.unref(Me),{key:2,arrows:!1},{default:t.withCtx(()=>[t.createElementVNode("div",zh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.previousMatches.slice(0,2),(c,d)=>(t.openBlock(),t.createBlock(Pt,t.mergeProps({data:e.data.data.postmatch},c,{key:d,small:"",onClickMatch:l[8]||(l[8]=m=>s.$emit("clickMatch",e.data.data.postmatch))}),null,16,["data"]))),128))])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.comingMatches.length&&e.previousMatches.length?(t.openBlock(),t.createElementBlock("div",Vh,[t.createVNode(ot,t.mergeProps({data:e.data.data.prematch},o.value,{onClickMatch:l[1]||(l[1]=c=>s.$emit("clickMatch",e.data.data.prematch))}),null,16,["data"]),t.createVNode(Pt,t.mergeProps({data:e.data.data.postmatch},r.value,{onClickMatch:l[2]||(l[2]=c=>s.$emit("clickMatch",e.data.data.postmatch))}),null,16,["data"])])):e.comingMatches.length?(t.openBlock(),t.createElementBlock("div",Rh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.comingMatches.slice(0,2),(c,d)=>(t.openBlock(),t.createBlock(ot,t.mergeProps({data:e.data.data.prematch},c,{key:d,small:"",onClickMatch:l[3]||(l[3]=m=>s.$emit("clickMatch",e.data.data.prematch))}),null,16,["data"]))),128))])):e.previousMatches.length?(t.openBlock(),t.createElementBlock("div",Fh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.previousMatches.slice(0,2),(c,d)=>(t.openBlock(),t.createBlock(Pt,t.mergeProps({data:e.data.data.postmatch},c,{key:d,small:"",onClickMatch:l[4]||(l[4]=m=>s.$emit("clickMatch",e.data.data.postmatch))}),null,16,["data"]))),128))])):t.createCommentVNode("",!0)],64))],64)):(t.openBlock(),t.createBlock(t.unref(Me),{key:1},{default:t.withCtx(()=>[t.createElementVNode("div",_h,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(c,d)=>(t.openBlock(),t.createBlock(ot,{key:d,data:c[0].games[0],small:"",onClickMatch:m=>s.$emit("clickMatch",c[0].games[0])},null,8,["data","onClickMatch"]))),128))])]),_:1}))]))}},[["__scopeId","data-v-486c2635"]]),Mh={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},setup(e){const n=[{homeTeam:{name:"Ch1vas",img:"/team1.png",acronym:"CHI"},visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Chivas",img:"/team1.png",acronym:"CHI"},visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"}],o=[{homeTeam:{name:"Ch1vas",img:"/team1.png",acronym:"CHI"},journey:3,score:"2 - 4",visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Chivas",img:"/team1.png",acronym:"CHI"},penalScore:"1- 2",journey:3,score:"2 - 4",visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},penalScore:"1- 2",journey:3,score:"2 - 4",visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},penalScore:"1- 2",journey:3,score:"2 - 4",visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},penalScore:"1- 2",journey:3,score:"2 - 4",visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"}];function r(){window.location.href="/calendar"}function a(i){window.location.href=`/game?g=${i.game_id}`}return(i,s)=>(t.openBlock(),t.createElementBlock("main",null,[t.createVNode(Ph,{data:e.data,comingMatches:n,"component-width":e.componentWidth,previousMatches:o,onClickCalendar:r,onClickMatch:a,hasTeam:!e.isplayer},null,8,["data","component-width","hasTeam"])]))}},jh="_toniKroos_1pe59_35",Dh="_centralMidfielder_1pe59_55",vh="_icnPlayIcon_1pe59_75",Uh="_verVideos_1pe59_89",Jh="_btnVideosOptions_1pe59_109",Hh="_info_1pe59_147",Gh="_goalUnlock_1pe59_171",Wh="_teamsAmerica_1pe59_197",qh="_imageIcon_1pe59_217",Kh="_playerTops_1pe59_237",Zh={toniKroos:jh,centralMidfielder:Dh,icnPlayIcon:vh,verVideos:Uh,btnVideosOptions:Jh,info:Hh,goalUnlock:Gh,teamsAmerica:Wh,imageIcon:qh,playerTops:Kh},Yh=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},Xh={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))}}},Qh=["src"],$h=["src"],e0=["src"];function t0(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(e.$style.playerTops),style:t.normalizeStyle(i.customMosaic),id:"player-mosaico",onClick:n[1]||(n[1]=s=>i.onPlayerTopsClick(o.data.player_id))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.info)},[t.createElementVNode("h3",{class:t.normalizeClass(e.$style.toniKroos),style:t.normalizeStyle(i.customNamePlayer)},t.toDisplayString(o.data.player_name),7),o.showPositionPlayer?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.centralMidfielder),style:t.normalizeStyle(i.customNamePosition)},t.toDisplayString(o.data.player_position),7)):t.createCommentVNode("",!0),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnVideosOptions),style:t.normalizeStyle(i.customTotalCont),autofocus:"",id:"button-actions",onClick:n[0]||(n[0]=s=>i.onButtonVideos(o.data))},[o.showIconVideo?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnPlayIcon),src:o.iconPlay},null,10,Qh)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideos),style:t.normalizeStyle(i.customTotal)},t.toDisplayString(o.data.player_stat)+" "+t.toDisplayString(o.data.category),7)],6)],2),t.createElementVNode("b",{style:t.normalizeStyle(i.customNumberTop),class:t.normalizeClass(e.$style.goalUnlock)},t.toDisplayString(o.data.top),7),o.showShieldTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.teamsAmerica),style:t.normalizeStyle(i.customShieldTeam),loading:"lazy",src:o.data.team_logo},null,14,$h)):t.createCommentVNode("",!0),t.createElementVNode("img",{style:t.normalizeStyle(i.customPhotoPlayerOrTeam),class:t.normalizeClass(e.$style.imageIcon),loading:"lazy",src:o.data.player_photo},null,14,e0)],6)}const o0={$style:Zh},n0=Yh(Xh,[["render",t0],["__cssModules",o0]]),r0=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},Jo={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))}}},la=()=>{t.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}))},ca=Jo.setup;Jo.setup=ca?(e,n)=>(la(),ca(e,n)):la;const a0=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),i0=["src"],s0={key:1,class:"text"},l0=["src"],c0={class:"stats"},d0=a0(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),m0={class:"numstats"},p0={class:"leyend"};function u0(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",a.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,a.status&&o.typeOnOff&&i.customActive]),onClick:n[0]||(n[0]=(...s)=>i.btnClick&&i.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,i0)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",s0,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,l0)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:n[1]||(n[1]=(...s)=>i.btnClick&&i.btnClick(...s))},[t.createElementVNode("div",c0,[d0,t.createElementVNode("div",m0,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",p0,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const f0=r0(Jo,[["render",u0],["__scopeId","data-v-fb269a1e"]]);function h0(e){const n=t.ref({width:0,height:0});function o(){const r=e.value.getBoundingClientRect();n.value.width=r.width,n.value.height=r.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:n}}const Ho={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(n){throw new Error(n)}}}},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)}}},da=()=>{t.useCssVars(e=>({"0b58fe62":e.backgroundColor,"1350c043":e.widthCircle,a6fb272c:e.heightCircle}))},ma=Ho.setup;Ho.setup=ma?(e,n)=>(da(),ma(e,n)):da;const g0={key:0,class:"text-left"},y0=["width","src"],S0=["checked"],b0=["width","src"],w0={key:3,class:"text-right"};function C0(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(i.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",g0,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,y0)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:n[0]||(n[0]=(...s)=>i.handleSwitchChange&&i.handleSwitchChange(...s)),checked:a.OptionDefault},null,40,S0),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([i.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,b0)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",w0,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Go={components:{GSCSlider:Me,GSCMosaicthebest:n0,GscSwitchComponent:wr,GSCButton:f0,GSCRadioToggle:ye(Ho,[["render",C0],["__scopeId","data-v-d33948ae"]])},setup(){const e=t.ref("myDivRef"),{elementSize:n}=h0(e);return{myDivRef:e,elementSize:n}},props:{backgroundColor:{type:String,default:"#0D1D29"},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:{},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(){await this.getCategoryStats(this.season,1)},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 n=this.translateTopCategories(this.categorySelected),o=2,r=3;let a=[],i=0,s=0;this.isTeam?(i=e.player_id,s=r):(a=[e.player_id],s=o);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:s,gameIds:null,playerIds:a,goalkeeperIds:[],categoryIds:n,teamId:i,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")},changeType(e){this.optionSelected=e,e=="Equipos"?this.isTeam=!0:this.isTeam=!1},changeCategory(e){this.categoryName=e;const n=this.categories.find(o=>o.name===e);this.categorySelected=n.id},async getCategoryStats(e,n){try{let a={},i={},s=[];const l=ut.create({headers:{Authorization:`${this.token}`}});var o={};if(n==0&&(o=await l.get(this.url+this.season+"/teams/"+this.teamId)),n==1&&(o=await l.get(this.url+e)),o&&o.data){o.data.teams.map(c=>{a[c[0]]={},a[c[0]].id=c[0],a[c[0]].name=c[2],a[c[0]].img=c[3],a[c[0]].abrv=c[2],a[c[0]].logo=c[3]}),o.data.players.map(c=>{i[c[0]]={},i[c[0]].id=c[0],i[c[0]].name=c[1],i[c[0]].img=c[2],i[c[0]].position=c[6],i[c[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+c[10][0].team_id+".png"});var r=1;o.data.tops.map(c=>{s[c.category?c.category:r]={};var d={},m={};c.teams.map(h=>{d[h[0]]={},d[h[0]].total=h[1],d[h[0]].id=a[h[0]].id,d[h[0]].name=a[h[0]].name,d[h[0]].img="https://az755631.vo.msecnd.net/teams-150/"+h[0]+".png",d[h[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+h[0]+".png"}),c.players.map(h=>{m[h[0]]={},m[h[0]].total=h[1],m[h[0]].name=i[h[0]].name,m[h[0]].img=i[h[0]].img.replace("players-profile/","players-profile-no-bg/"),m[h[0]].id=i[h[0]].id,m[h[0]].position=this.positions[i[h[0]].position-1].name,m[h[0]].logo=i[h[0]].logo});var p=[],f=[];for(const h in d)p.push(d[h]);for(const h in m)f.push(m[h]);p.sort((h,u)=>h.total<u.total?1:-1),f.sort((h,u)=>h.total<u.total?1:-1),s[c.category?c.category:r].top__players=f,s[c.category?c.category:r].top__teams=p,r++})}this.categorySelected=1,this.categoryData=s}catch(a){return Promise.reject(a)}}}},pa=()=>{t.useCssVars(e=>({"49a851df":e.backgroundColor,"1cdbf96e":e.fontFamily,"985b85b4":e.fontSize,"74d31244":e.fontColor,"454a95e4":e.marginMosaic}))},ua=Go.setup;Go.setup=ua?(e,n)=>(pa(),ua(e,n)):pa;const k0=e=>(t.pushScopeId("data-v-97d3de3e"),e=e(),t.popScopeId(),e),E0={class:"gsc-best",ref:"myDivRef"},B0={class:"gsc-best__line-bar-tools"},x0={key:0,class:"gsc-best__line-bar-tools__title"},N0=k0(()=>t.createElementVNode("span",null,"Los mejores ",-1)),T0={key:1,class:"gsc-best__line-bar-tools__titlefull"},O0={class:"unit-items"},A0={key:2,class:"gsc-best__line-bar-tools__tools"},V0={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},R0={class:"gsc-best__line-bar-tools__tools__btn"},F0={key:0,class:"gsc-best__line-bar-tools-movil"},I0={class:"gsc-best__line-bar-tools-movil__tabs"},L0={class:"gsc-best__categories"},z0={class:"gsc-best__players"};function _0(e,n,o,r,a,i){const s=t.resolveComponent("GSCRadioToggle"),l=t.resolveComponent("GSCButton"),c=t.resolveComponent("GscSwitchComponent"),d=t.resolveComponent("GSCMosaicthebest"),m=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",E0,[t.createElementVNode("div",B0,[r.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",x0,[N0,e.optionSelected!=="Equipos"?(t.openBlock(),t.createBlock(s,{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/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),r.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",T0,[t.createElementVNode("span",{style:t.normalizeStyle(r.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),t.createElementVNode("span",O0,[e.optionSelected!=="Equipos"?(t.openBlock(),t.createBlock(s,{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/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0),t.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":r.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":r.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["font-color","font-size","onClick"])])])):t.createCommentVNode("",!0),r.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",A0,[r.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",V0,[t.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:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):t.createCommentVNode("",!0),t.createElementVNode("div",R0,[t.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["onClick"]),t.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:i.clickMore},null,8,["onClick"])])])):t.createCommentVNode("",!0)]),r.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",F0,[t.createElementVNode("div",I0,[t.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:i.changeType},null,8,["selected-option","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",L0,[t.createVNode(c,{type:2,arrow:!0,"font-family":"Poppins-Regular",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":r.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:i.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0},null,8,["buttons","font-size","onInput"])]),t.createElementVNode("div",z0,[t.createVNode(m,{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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.topData,(p,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:t.normalizeClass(["gsc-best__players__item",f==0?"margin-none":""])},[t.createVNode(d,{data:{player_id:p.id,player_name:p.name,player_position:p.position,player_stat:p.total,category:"Total",top:f<9?"0"+(f+1):f+1,team_logo:p.logo,player_photo:p.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:i.clickMosaic,onOpenmedia:i.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 P0=ye(Go,[["render",_0],["__scopeId","data-v-97d3de3e"]]),M0={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},j0={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},D0={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},v0=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},U0={props:{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"},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},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}},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))}}},J0=["src"],H0={key:1,class:"text"},G0=["src"];function W0(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["button",a.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,a.status&&o.typeOnOff&&i.customActive]),onClick:n[0]||(n[0]=(...s)=>i.btnClick&&i.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,J0)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",H0,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,G0)):t.createCommentVNode("",!0)],6)}const q0=v0(U0,[["render",W0],["__scopeId","data-v-1bfd444b"]]),K0={class:"gsc-dropdown__main-container__item-selected"},Z0=["height","width"],Y0=["stroke"],X0={class:"gsc-dropdown__items-container"},Q0=["onClick"],$0={key:0,class:"gsc-dropdown__items-footer"},eg={__name:"GSC-Dropdown",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(n=>n in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1}},emits:["input","click-ready"],setup(e,{emit:n}){const o=e,r=t.ref({}),a=t.ref(o.isMultipleOption?-1:0),i=t.ref(!1);t.watch(o,p=>{if(p.items&&p.items.length){if(o.defaultItemByProp){const f=o.items.findIndex(h=>h[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(a.value=f,r.value=p.items[f]):(a.value=0,r.value=p.items[0])}else r.value=p.items[o.defaultItemByIndex];n("input",r.value)}},{immediate:!0});const s=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`})),l=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){i.value=!i.value}function d(p,f){o.isMultipleOption?a.value=-1:(a.value=f,i.value=!1),r.value=p,n("input",r.value)}function m(){i.value=!1,n("click-ready")}return(p,f)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-dropdown",style:t.normalizeStyle(s.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",K0,[t.renderSlot(p.$slots,"default",{selectedItem:r.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":i.value}]),style:t.normalizeStyle(l.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Y0)],8,Z0))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",X0,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(h,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:u===a.value}]),key:u,onClick:g=>d(h,u)},[t.renderSlot(p.$slots,"availableItem",{item:h})],10,Q0))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",$0,[t.createVNode(t.unref(q0),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,i.value]])]),_:3})],4))}},tg=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},og={class:"tournament-select__selected-tournament"},ng={class:"tournament-select__selected-tournament__logo"},rg=["src"],ag={class:"tournament-select__selected-tournament__name"},ig={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},fontFamily:{type:String,default:"sans-serif"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(n=>n in e)}},emits:["input"],setup(e,{emit:n}){const o=e,r=t.ref([]),a=t.computed(()=>{const d={};return o.fontFamily&&(d["font-family"]=`${o.fontFamily}`),d});async function i(){try{if(o.items&&o.items.length)r.value=[...o.items];else if(o.apiUrl){const d=await l();r.value=d.map(m=>({...m.tournament,seasons:m.seasons}))}}catch(d){throw new Error(d)}}function s(d){const m=new XMLHttpRequest,p=`${o.logosUrl}${d}.${o.logoFileType}`;return m.open("HEAD",p,!1),m.send(),m.status!==404}async function l(){try{return(await fetch(o.apiUrl)).json()}catch(d){return Promise.reject(d)}}function c(d){n("input",d)}return t.onMounted(()=>{i()}),(d,m)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(a.value)},[t.createVNode(t.unref(eg),t.mergeProps(o,{items:r.value,onInput:c}),{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",og,[t.createElementVNode("div",ng,[s(p.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${p.id}.${o.logoFileType}`,alt:""},null,8,rg)):t.createCommentVNode("",!0)]),t.createElementVNode("div",ag,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},16,["items"])],4))}},sg=tg(ig,[["__scopeId","data-v-ed37b8ef"]]),lg=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},cg={props:{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"},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},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}},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))}}},dg=["src"],mg={key:1,class:"text"},pg=["src"];function ug(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["button",a.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,a.status&&o.typeOnOff&&i.customActive]),onClick:n[0]||(n[0]=(...s)=>i.btnClick&&i.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,dg)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",mg,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,pg)):t.createCommentVNode("",!0)],6)}const fg=lg(cg,[["render",ug],["__scopeId","data-v-1bfd444b"]]),hg={class:"gsc-dropdown__main-container__item-selected"},gg=["height","width"],yg=["stroke"],Sg={class:"gsc-dropdown__items-container"},bg=["onClick"],wg={key:0,class:"gsc-dropdown__items-footer"},Cg={__name:"GSC-Dropdown",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(n=>n in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1}},emits:["input","click-ready"],setup(e,{emit:n}){const o=e,r=t.ref({}),a=t.ref(o.isMultipleOption?-1:0),i=t.ref(!1);t.watch(o,p=>{if(p.items&&p.items.length){if(o.defaultItemByProp){const f=o.items.findIndex(h=>h[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(a.value=f,r.value=p.items[f]):(a.value=0,r.value=p.items[0])}else r.value=p.items[o.defaultItemByIndex];n("input",r.value)}},{immediate:!0});const s=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`})),l=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){i.value=!i.value}function d(p,f){o.isMultipleOption?a.value=-1:(a.value=f,i.value=!1),r.value=p,n("input",r.value)}function m(){i.value=!1,n("click-ready")}return(p,f)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-dropdown",style:t.normalizeStyle(s.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",hg,[t.renderSlot(p.$slots,"default",{selectedItem:r.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":i.value}]),style:t.normalizeStyle(l.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,yg)],8,gg))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Sg,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(h,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:u===a.value}]),key:u,onClick:g=>d(h,u)},[t.renderSlot(p.$slots,"availableItem",{item:h})],10,bg))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",wg,[t.createVNode(t.unref(fg),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,i.value]])]),_:3})],4))}},kg=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},Eg={class:"season-name"},Bg={components:{GSCSeasonSelect:kg({__name:"GSC-Season-Select",props:{seasons:{type:Array,default:()=>[]}},emits:["input"],setup(e,{emit:n}){function o(r){n("input",r)}return(r,a)=>(t.openBlock(),t.createBlock(t.unref(Cg),{items:e.seasons,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:o},{default:t.withCtx(({selectedItem:i})=>[t.createElementVNode("div",Eg,[t.createElementVNode("span",null,t.toDisplayString(i.name),1)])]),availableItem:t.withCtx(({item:i})=>[t.createElementVNode("span",null,t.toDisplayString(i.name),1)]),_:1},8,["items"]))}},[["__scopeId","data-v-ffcf8231"]]),GSCTournamentSelect:sg,GSCGames:Mh,GSCGridTeamsMatches:as,GSCPlayersLanding:Xi,GSCTops:P0,GSCTableCalendar:oh},setup(){const e=t.ref("landingref"),{elementSize:n}=xi(e);return{landingref:e,elementSize:n}},watch:{team:{immediate:!0,deep:!0,async handler(e){this.fetchGames(e)}}},props:{season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},data(){return{defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,defaultMatchDayKey:null,isCupTournament:!1,isCupLegacyTournament:!1,tournamentScheduleKeys:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:" https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",seasonSelected:{},fullTournamentSchedule:{},tournamentSelected:{},tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{onOpenMedia(e){this.$emit("openmedia",e)},moreTops(){window.location.href="/tops"},clickProfileBtn(e){window.location.href=`/profile?p=${e.player_id}&s=${this.seasonSelected.id}`},viewAll(){window.location.href="/players"},clickCard(e){e=="team"&&(this.isplayer?window.location.href=`/profile?t=${this.team}&s=${this.seasonSelected.id}`:window.location.href="/teams"),e=="player"&&(this.isplayer?window.location.href=`/profile?p=${this.player}&s=${this.seasonSelected.id}`:window.location.href="/players"),e=="schedule"&&(window.location.href="/calendar"),e=="scouting"&&(window.location.href="/tops")},async fetchGames(e){const n=ut.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?seasons="+this.season)},onInputTournament(e){this.tournamentSelected=e},onInputSeason(e){this.seasonSelected=e},async fetchTournaments(e){try{const{data:n}=await ut.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return n}catch(n){if(e>0)return fetchTournaments(e-1);throw new Error(n)}},async fetchSeasonsGamesAndTeams(e,n,o=""){let r=o;try{const a={};this.tokenFree&&(a.Authorization=this.tokenFree),r||(r="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",e.forEach((l,c)=>{r+=`${c===0?"":"&"}seasons=${l}`}));const{data:{data:i,teams:s}}=await ut.get(r,{headers:a});return{seasonsAndGames:i,seasonsAndTeams:s}}catch(a){if(n>0)return this.fetchSeasonsGamesAndTeams(e,n-1,r);throw new Error(a)}},areSeasonsDifferent(e){for(const n of e)if(!this.lastSeasonsIds.includes(n.season_id))return!0;return!1},filterGames(){if(!this.currentTournamentTeams)return;const e=this.currentTournamentGames&&this.currentTournamentGames.seasonsGames?this.currentTournamentGames.seasonsGames.map(n=>{const o=n.games.reduce((r,a)=>{const i={...a};return i.dateTimeMillis=new Date(i.date_time_utc).valueOf(),i.home_team=this.currentTournamentTeams.find(s=>s.team_id===a.home_team),i.visiting_team=this.currentTournamentTeams.find(s=>s.team_id===a.visiting_team),this.team&&i.home_team.team_id!==this.team&&i.visiting_team.team_id!==this.team||(r[a.matchday_abbreviation]?r[a.matchday_abbreviation][a.game_status===3?"canceled":a.date]?r[a.matchday_abbreviation][a.game_status===3?"canceled":a.date].push(i):r[a.matchday_abbreviation][a.game_status===3?"canceled":a.date]=[i]:r[a.matchday_abbreviation]={[a.game_status===3?"canceled":a.date]:[i]}),r},{});for(let[r,a]of Object.entries(o))o[r]=Object.entries(a).map(([i,s])=>({date:i,games:s.sort((l,c)=>l.dateTimeMillis-c.dateTimeMillis)})),o[r].sort((i,s)=>i.date<s.date?-1:i.date>s.date?1:0);return{type:n.type,weight:n.type===0?0:n.type===2?1:2,schedule:o}}):[];e.sort((n,o)=>n.weight-o.weight),this.fullTournamentSchedule=e.reduce((n,o)=>{for(const[r,a]of Object.entries(o.schedule))if(o.type===0)if(this.isCupTournament){const i=r.replace("M",""),s=i;this.isCupLegacyTournament?n[D0[i]||s]=a:n[j0[r]||s]=a}else n[Number(r.replace("M","")).toString()]=a;else o.type===2?n[`R${Number(r.replace("PO",""))}`]=a:o.type===1&&(n[M0[r]]=a);return n},{}),this.gamesPages=new Map,this.tournamentScheduleKeys=Array.from(Object.entries(this.fullTournamentSchedule).reduce((n,[o,r])=>{const a=Number(o);let i="";Number.isNaN(a)?i=o:i=a<10?`0${a}`:o,n.set(o,{key:o,value:a,valueText:i});const s=r.reduce((c,d)=>(d.games.forEach(m=>{m.game_id===this.defaultGameId&&(this.defaultMatchDayKey=o),m.roundAbbreviation=Number.isNaN(a)?a:`J ${a}`}),c=c.concat(d.games),c),[]),l=this.getPages(s);return this.gamesPages.set(o,l),n},new Map).values())},getPages(e){const n=[];if(this.gamesPerMatchDay>0){let o=[];e.forEach((r,a)=>{o.push(r),(a+1)%this.gamesPerMatchDay===0&&(n.push([...o]),o=[])}),o.length&&n.push([...o])}else n.push(e);return n},async createFullTournamentScheme(e,n){try{this.fullTournamentSchedule={};let o=0;const{seasonsAndGames:r,seasonsAndTeams:a}=await this.fetchSeasonsGamesAndTeams(e.map(s=>s.id),3);if(n&&this.areSeasonsDifferent(r))return;r.forEach(s=>{const{type:l}=e.find(c=>c.id===s.season_id);s.type=l,s.games.forEach(c=>{c.season_id=s.season_id}),l===0&&(o=s.season_id)}),this.currentTournamentGames={seasonsGames:r};const{teams:i}=a.find(s=>s.season_id===o);this.currentTournamentTeams=i,this.$emit("change-teams",i),this.filterGames()}catch(o){throw new Error(o)}}},async created(){try{if(this.isplayer){const n=(await this.fetchTournaments(3)).find(a=>a._id===1),o=n.seasons[0],r=[{id:o.id,type:o.type}];n&&n.tournament&&this.$emit("tournament-selected",n.tournament),o.related_seasons&&o.related_seasons.length&&r.push(...o.related_seasons.map(a=>({id:a.id,type:a.type}))),await this.createFullTournamentScheme(r,!1)}}catch(e){throw new Error(e)}}},Mt=e=>(t.pushScopeId("data-v-a83a777e"),e=e(),t.popScopeId(),e),xg={class:"gsclanding",ref:"landingref"},Ng={key:0,class:"container-selectors-mobile"},Tg={class:"container-selectors-mobile-tournament"},Og={class:"container-selectors-mobile-season"},Ag={key:0,class:"home-item-movil"},Vg=[Mt(()=>t.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),Mt(()=>t.createElementVNode("div",{class:"name-user-movil"},"Bienvenido, Ándres",-1))],Rg={key:1,class:"home-item"},Fg={key:2,class:"bar-settings"},Ig=Mt(()=>t.createElementVNode("div",{class:"name-user"},"Bienvenido, Ándres",-1)),Lg={class:"container-selectors"},zg={class:"selector-tournament"},_g={class:"selector-seasons"},Pg={key:3,class:"container-games"},Mg={class:"container-players"},jg={class:"container-tops"},Dg=Mt(()=>t.createElementVNode("div",{class:"container-vr"},null,-1));function vg(e,n,o,r,a,i){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),c=t.resolveComponent("GSCGames"),d=t.resolveComponent("GSCGridTeamsMatches"),m=t.resolveComponent("GSCTableCalendar"),p=t.resolveComponent("GSCPlayersLanding"),f=t.resolveComponent("GSCTops");return t.openBlock(),t.createElementBlock("div",xg,[r.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",Ng,[t.createElementVNode("div",Tg,[t.createVNode(s,{width:"100%","default-item-by-prop":{propName:"id",value:1},onInput:i.onInputTournament},null,8,["onInput"])]),t.createElementVNode("div",Og,[t.createVNode(l,{width:"100%",seasons:a.tournamentSelected.seasons,onInput:i.onInputSeason},null,8,["seasons","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.containerbackground)},[t.createElementVNode("div",{class:t.normalizeClass(i.containerdata)},[r.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",Ag,Vg)):t.createCommentVNode("",!0),r.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",Rg,"Inicio")):t.createCommentVNode("",!0),r.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",Fg,[Ig,t.createElementVNode("div",Lg,[t.createElementVNode("div",zg,[t.createVNode(s,{"default-item-by-prop":{propName:"id",value:1},onInput:i.onInputTournament},null,8,["onInput"])]),t.createElementVNode("div",_g,[t.createVNode(l,{seasons:a.tournamentSelected.seasons,onInput:i.onInputSeason},null,8,["seasons","onInput"])])])])):t.createCommentVNode("",!0),Object.keys(a.fullTournamentSchedule).length>0?(t.openBlock(),t.createElementBlock("div",Pg,[t.createVNode(c,{"component-width":r.elementSize.width,isplayer:o.isplayer,data:a.fullTournamentSchedule},null,8,["component-width","isplayer","data"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.containerGridCalendarTable)},[t.createElementVNode("div",{class:"container-grid",style:t.normalizeStyle(r.elementSize.width<1e3?"width: 100%":"")},[t.createVNode(d,{isPlayer:o.isplayer,"team-img":"https://az755631.vo.msecnd.net/teams-80/"+o.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile-no-bg/"+o.player+".png","component-width":r.elementSize.width,onAction:i.clickCard},null,8,["isPlayer","team-img","player-img","component-width","onAction"])],4),t.createElementVNode("div",{class:"container-calendar-table",style:t.normalizeStyle(r.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[t.createVNode(m,{onOpenmedia:i.onOpenMedia,componentWidth:r.elementSize.width},null,8,["onOpenmedia","componentWidth"])],4)],2),t.createElementVNode("div",Mg,[t.createVNode(p,{onClickProfileBtn:i.clickProfileBtn,onViewAll:i.viewAll,"team-id":o.team},null,8,["onClickProfileBtn","onViewAll","team-id"])]),t.createElementVNode("div",jg,[t.createVNode(f,{onMore:i.moreTops,season:o.season,"team-id":o.team,onOpenmedia:i.onOpenMedia},null,8,["onMore","season","team-id","onOpenmedia"])]),Dg],2)],2)],512)}const Ug=ye(Bg,[["render",vg],["__scopeId","data-v-a83a777e"]]);ze.GSCLanding=Ug,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});
21
+ */const W={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"}},ta={itemsToShow:{default:W.itemsToShow,type:Number},itemsToScroll:{default:W.itemsToScroll,type:Number},wrapAround:{default:W.wrapAround,type:Boolean},throttle:{default:W.throttle,type:Number},snapAlign:{default:W.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:W.transition,type:Number},breakpoints:{default:W.breakpoints,type:Object},autoplay:{default:W.autoplay,type:Number},pauseAutoplayOnHover:{default:W.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:W.mouseDrag,type:Boolean},touchDrag:{default:W.touchDrag,type:Boolean},dir:{default:W.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:W.i18n,type:Object},settings:{default(){return{}},type:Object}};function Fp({config:e,slidesCount:n}){const{snapAlign:o,wrapAround:r,itemsToShow:a=1}=e;if(r)return Math.max(n-1,0);let i;switch(o){case"start":i=n-a;break;case"end":i=n-1;break;case"center":case"center-odd":i=n-Math.ceil((a-.5)/2);break;case"center-even":i=n-Math.ceil(a/2);break;default:i=0;break}return Math.max(i,0)}function Ip({config:e,slidesCount:n}){const{wrapAround:o,snapAlign:r,itemsToShow:a=1}=e;let i=0;if(o||a>n)return i;switch(r){case"start":i=0;break;case"end":i=a-1;break;case"center":case"center-odd":i=Math.floor((a-1)/2);break;case"center-even":i=Math.floor((a-2)/2);break;default:i=0;break}return i}function Mo({val:e,max:n,min:o}){return n<o?e:Math.min(Math.max(e,o),n)}function Lp({config:e,currentSlide:n,slidesCount:o}){const{snapAlign:r,wrapAround:a,itemsToShow:i=1}=e;let s=n;switch(r){case"center":case"center-odd":s-=(i-1)/2;break;case"center-even":s-=(i-2)/2;break;case"end":s-=i-1;break}return a?s:Mo({val:s,max:o-i,min:0})}function oa(e){return e?e.reduce((n,o)=>{var r;return o.type===t.Fragment?[...n,...oa(o.children)]:((r=o.type)===null||r===void 0?void 0:r.name)==="CarouselSlide"?[...n,o]:n},[]):[]}function jo({val:e,max:n,min:o=0}){return e>n?jo({val:e-(n+1),max:n,min:o}):e<o?jo({val:e+(n+1),max:n,min:o}):e}function zp(e,n){let o;return n?function(...r){const a=this;o||(e.apply(a,r),o=!0,setTimeout(()=>o=!1,n))}:e}function _p(e,n){let o;return function(...r){o&&clearTimeout(o),o=setTimeout(()=>{e(...r),o=null},n)}}function Pp(e="",n={}){return Object.entries(n).reduce((o,[r,a])=>o.replace(`{${r}}`,String(a)),e)}var Mp=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},W))),n=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},Pp(e.i18n.itemXofY,{currentSlide:n.value+1,slidesCount:o.value}))}}),jp=t.defineComponent({name:"Carousel",props:ta,setup(e,{slots:n,emit:o,expose:r}){var a;const i=t.ref(null),s=t.ref([]),l=t.ref(0),c=t.ref(0),d=t.reactive(Object.assign({},W));let m=Object.assign({},W),p;const f=t.ref((a=e.modelValue)!==null&&a!==void 0?a:0),h=t.ref(0),u=t.ref(0),g=t.ref(0),C=t.ref(0);let k,M;t.provide("config",d),t.provide("slidesCount",c),t.provide("currentSlide",f),t.provide("maxSlide",g),t.provide("minSlide",C),t.provide("slideWidth",l);function v(){p=Object.assign({},e.breakpoints),m=Object.assign(Object.assign(Object.assign({},m),e),{i18n:Object.assign(Object.assign({},m.i18n),e.i18n),breakpoints:void 0}),ce(m)}function q(){if(!p||!Object.keys(p).length)return;const y=Object.keys(p).map(E=>Number(E)).sort((E,j)=>+j-+E);let B=Object.assign({},m);y.some(E=>{const j=window.matchMedia(`(min-width: ${E}px)`).matches;return j&&(B=Object.assign(Object.assign({},B),p[E])),j}),ce(B)}function ce(y){Object.entries(y).forEach(([B,E])=>d[B]=E)}const de=_p(()=>{q(),J()},16);function J(){if(!i.value)return;const y=i.value.getBoundingClientRect();l.value=y.width/d.itemsToShow}function te(){c.value<=0||(u.value=Math.ceil((c.value-1)/2),g.value=Fp({config:d,slidesCount:c.value}),C.value=Ip({config:d,slidesCount:c.value}),d.wrapAround||(f.value=Mo({val:f.value,max:g.value,min:C.value})))}t.onMounted(()=>{t.nextTick(()=>J()),setTimeout(()=>J(),1e3),q(),F(),window.addEventListener("resize",de,{passive:!0}),o("init")}),t.onUnmounted(()=>{M&&clearTimeout(M),k&&clearInterval(k),window.removeEventListener("resize",de,{passive:!0})});let V=!1;const Q={x:0,y:0},$={x:0,y:0},D=t.reactive({x:0,y:0}),ee=t.ref(!1),ne=t.ref(!1),O=()=>{ee.value=!0},N=()=>{ee.value=!1};function T(y){["INPUT","TEXTAREA","SELECT"].includes(y.target.tagName)||(V=y.type==="touchstart",V||y.preventDefault(),!(!V&&y.button!==0||R.value)&&(Q.x=V?y.touches[0].clientX:y.clientX,Q.y=V?y.touches[0].clientY:y.clientY,document.addEventListener(V?"touchmove":"mousemove",A,!0),document.addEventListener(V?"touchend":"mouseup",x,!0)))}const A=zp(y=>{ne.value=!0,$.x=V?y.touches[0].clientX:y.clientX,$.y=V?y.touches[0].clientY:y.clientY;const B=$.x-Q.x,E=$.y-Q.y;D.y=E,D.x=B},d.throttle);function x(){const y=d.dir==="rtl"?-1:1,B=Math.sign(D.x)*.4,E=Math.round(D.x/l.value+B)*y;if(E&&!V){const j=me=>{me.stopPropagation(),window.removeEventListener("click",j,!0)};window.addEventListener("click",j,!0)}L(f.value-E),D.x=0,D.y=0,ne.value=!1,document.removeEventListener(V?"touchmove":"mousemove",A,!0),document.removeEventListener(V?"touchend":"mouseup",x,!0)}function F(){!d.autoplay||d.autoplay<=0||(k=setInterval(()=>{d.pauseAutoplayOnHover&&ee.value||Y()},d.autoplay))}function I(){k&&(clearInterval(k),k=null),F()}const R=t.ref(!1);function L(y){const B=d.wrapAround?y:Mo({val:y,max:g.value,min:C.value});f.value===B||R.value||(o("slide-start",{slidingToIndex:y,currentSlideIndex:f.value,prevSlideIndex:h.value,slidesCount:c.value}),R.value=!0,h.value=f.value,f.value=B,M=setTimeout(()=>{if(d.wrapAround){const E=jo({val:B,max:g.value,min:0});E!==f.value&&(f.value=E,o("loop",{currentSlideIndex:f.value,slidingToIndex:y}))}o("update:modelValue",f.value),o("slide-end",{currentSlideIndex:f.value,prevSlideIndex:h.value,slidesCount:c.value}),R.value=!1,I()},d.transition))}function Y(){L(f.value+d.itemsToScroll)}function oe(){L(f.value-d.itemsToScroll)}const Oe={slideTo:L,next:Y,prev:oe};t.provide("nav",Oe),t.provide("isSliding",R);const Ae=t.computed(()=>Lp({config:d,currentSlide:f.value,slidesCount:c.value}));t.provide("slidesToScroll",Ae);const nt=t.computed(()=>{const y=d.dir==="rtl"?-1:1,B=Ae.value*l.value*y;return{transform:`translateX(${D.x-B}px)`,transition:`${R.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${c.value*l.value}px`:"",width:"100%"}});function Ve(){v(),q(),te(),J(),I()}Object.keys(ta).forEach(y=>{["modelValue"].includes(y)||t.watch(()=>e[y],Ve)}),t.watch(()=>e.modelValue,y=>{y!==f.value&&L(Number(y))}),t.watch(c,te),o("before-init"),v();const Re={config:d,slidesCount:c,slideWidth:l,next:Y,prev:oe,slideTo:L,currentSlide:f,maxSlide:g,minSlide:C,middleSlide:u};r({updateBreakpointsConfigs:q,updateSlidesData:te,updateSlideWidth:J,initDefaultConfigs:v,restartCarousel:Ve,slideTo:L,next:Y,prev:oe,nav:Oe,data:Re});const Fe=n.default||n.slides,Ie=n.addons,Le=t.reactive(Re);return()=>{const y=oa(Fe==null?void 0:Fe(Le)),B=(Ie==null?void 0:Ie(Le))||[];y.forEach((pe,ue)=>pe.props.index=ue);let E=y;if(d.wrapAround){const pe=y.map((fe,X)=>t.cloneVNode(fe,{index:-y.length+X,isClone:!0,key:`clone-before-${X}`})),ue=y.map((fe,X)=>t.cloneVNode(fe,{index:y.length+X,isClone:!0,key:`clone-after-${X}`}));E=[...pe,...y,...ue]}s.value=y,c.value=Math.max(y.length,1);const j=t.h("ol",{class:"carousel__track",style:nt.value,onMousedownCapture:d.mouseDrag?T:null,onTouchstartPassiveCapture:d.touchDrag?T:null},E),me=t.h("div",{class:"carousel__viewport"},j);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":R.value,"is-dragging":ne.value,"is-hover":ee.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:O,onMouseleave:N},[me,B,t.h(Mp)])}}}),Do;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(Do||(Do={}));const Dp={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 vp(e){return e in Do}const vo=e=>{const n=t.inject("config",t.reactive(Object.assign({},W))),o=String(e.name),r=`icon${o.charAt(0).toUpperCase()+o.slice(1)}`;if(!o||typeof o!="string"||!vp(o))return;const a=Dp[o],i=t.h("path",{d:a}),s=n.i18n[r]||e.title||o,l=t.h("title",s);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":s},[l,i])};vo.props={name:String,title:String};const Up=(e,{slots:n,attrs:o})=>{const{next:r,prev:a}=n||{},i=t.inject("config",t.reactive(Object.assign({},W))),s=t.inject("maxSlide",t.ref(1)),l=t.inject("minSlide",t.ref(1)),c=t.inject("currentSlide",t.ref(1)),d=t.inject("nav",{}),{dir:m,wrapAround:p,i18n:f}=i,h=m==="rtl",u=t.h("button",{type:"button",class:["carousel__prev",!p&&c.value<=l.value&&"carousel__prev--disabled",o==null?void 0:o.class],"aria-label":f.ariaPreviousSlide,onClick:d.prev},(a==null?void 0:a())||t.h(vo,{name:h?"arrowRight":"arrowLeft"})),g=t.h("button",{type:"button",class:["carousel__next",!p&&c.value>=s.value&&"carousel__next--disabled",o==null?void 0:o.class],"aria-label":f.ariaNextSlide,onClick:d.next},(r==null?void 0:r())||t.h(vo,{name:h?"arrowLeft":"arrowRight"}));return[u,g]};var Jp=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:n}){const o=t.inject("config",t.reactive(Object.assign({},W))),r=t.inject("currentSlide",t.ref(0)),a=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),s=()=>e.index===r.value,l=()=>e.index===r.value-1,c=()=>e.index===r.value+1,d=()=>{const m=Math.floor(a.value),p=Math.ceil(a.value+o.itemsToShow-1);return e.index>=m&&e.index<=p};return()=>{var m;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":s(),"carousel__slide--prev":l(),"carousel__slide--next":c(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(m=n.default)===null||m===void 0?void 0:m.call(n))}}});const se=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},Hp={__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:()=>{}}},emits:["change-match-day"],setup(e,{emit:n}){const o=e,r=t.computed(()=>{const l={"background-color":o.backgroundColor,height:o.height};return o.matchDay.key===o.matchDaySelected.key&&(l["border-bottom"]=`solid 1px ${o.bottomLineColor}`,l["background-color"]=o.selectedMatchDayBackgroundColor),o.isLandingMode||(l["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),l}),a=t.computed(()=>({color:o.numberColor,"font-family":o.numberFontFamily,"font-size":o.numberFontSize})),i=t.computed(()=>({color:o.textColor,"font-family":o.textFontFamily,"font-size":o.textFontSize}));function s(l){n("click-match-day",l)}return(l,c)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...r.value}),onClick:c[0]||(c[0]=d=>s(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(a.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle(i.value)},t.toDisplayString(e.isLandingMode?"JOR":"JORNADA"),5))],4))}},Gp=se(Hp,[["__scopeId","data-v-24ec0c70"]]),Wp={class:"match-day-picker"},qp={__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:""}},emits:["change-match-day"],setup(e,{emit:n}){const o=e,r=t.computed(()=>({itemsToShow:o.itemsToShow,itemsToScroll:o.itemsToScroll,snapAlign:"start"})),a=t.ref({});t.watch(()=>o.matchDays,s=>{if(s&&s.length){const l=s.find(c=>c.key===o.defaultMatchDayKey);a.value=l||s[0],n("change-match-day",a.value)}},{immediate:!0});function i(s){a.value=s,n("change-match-day",a.value)}return(s,l)=>(t.openBlock(),t.createElementBlock("div",Wp,[t.createVNode(t.unref(jp),t.normalizeProps(t.guardReactiveProps(r.value)),{addons:t.withCtx(()=>[t.createVNode(t.unref(Up))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,c=>(t.openBlock(),t.createBlock(t.unref(Jp),{key:c.key},{default:t.withCtx(()=>[t.createVNode(Gp,t.mergeProps(o,{"match-day":c,"match-day-selected":a.value,"is-landing-mode":e.isLandingMode,onClickMatchDay:i}),null,16,["match-day","match-day-selected","is-landing-mode"])]),_:2},1024))),128))]),_:1},16)]))}},Kp=se(qp,[["__scopeId","data-v-5eedf1a0"]]);function Je(e,n=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${n}/${e}.png`}const Zp={class:"game-info"},Yp={class:"game-info__teams"},Xp={class:"game-info__teams__team"},Qp={class:"game-info__teams__team__logo"},$p=["src"],eu={class:"game-info__teams__detail"},tu={key:0,class:"game-info__teams__detail__pre-game"},ou={class:"game-info__teams__team"},nu={class:"game-info__teams__team__logo away"},ru=["src"],au={key:0},iu={key:0},su={key:1},lu={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const n=e,o=t.computed(()=>{const c=new Date(n.game.dateTimeMillis),d=c.getHours(),m=c.getMinutes();return`${d<10?`0${d}`:d}:${m<10?`0${m}`:m}`}),r=t.computed(()=>({"font-size":n.namesFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary})),a=t.computed(()=>({"font-size":n.additionalInfoFontSize,"font-family":n.additionalInfoFontFamily,color:n.colorSecondary})),i=t.computed(()=>({"font-size":n.scoreFontSize,"font-family":n.scoreFontFamily,color:n.colorPrimary})),s=t.computed(()=>({"font-size":n.timeZoneFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary})),l=t.computed(()=>({"font-size":n.timeFontSize,"font-family":n.namesFontFamily,color:n.colorPrimary}));return(c,d)=>(t.openBlock(),t.createElementBlock("div",Zp,[t.createElementVNode("div",Yp,[t.createElementVNode("div",Xp,[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(r.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",Qp,[t.createElementVNode("img",{src:t.unref(Je)(e.game.home_team.team_id),alt:""},null,8,$p)])]),t.createElementVNode("div",eu,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",tu,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(l.value)},t.toDisplayString(o.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(s.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(i.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",ou,[t.createElementVNode("div",nu,[t.createElementVNode("img",{src:t.unref(Je)(e.game.visiting_team.team_id),alt:""},null,8,ru)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(r.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)])]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle(a.value)},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",au,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",iu,"fox, univision, televisa")):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",su,"finalizado - Penales 1-3 "))],4)]))}},na=se(lu,[["__scopeId","data-v-1d5f7267"]]),ra=e=>(t.pushScopeId("data-v-25969b23"),e=e(),t.popScopeId(),e),cu={class:"game-status"},du={key:0,class:"game-status__day__live"},mu=ra(()=>t.createElementVNode("span",null,"LIVE",-1)),pu=ra(()=>t.createElementVNode("span",{class:"dot"},null,-1)),uu=[mu,pu],fu={key:0,class:"game-status__round"},hu={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const n=e,o=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],r=t.computed(()=>{let s="";if(n.dateTimeMillis){const l=new Date(n.dateTimeMillis);s=`${l.getDate()} ${o[l.getMonth()]}`}return s}),a=t.computed(()=>({"font-size":n.fontSize})),i=t.computed(()=>{let s=[];return n.isLive?s.push("live"):n.status!==1&&s.push("pre-match"),s});return(s,l)=>(t.openBlock(),t.createElementBlock("div",cu,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",i.value]),style:t.normalizeStyle(a.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",du,uu)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(r.value),1)],64))],6),e.isLandingMode?(t.openBlock(),t.createElementBlock("div",fu,t.toDisplayString(e.roundAbbreviation),1)):t.createCommentVNode("",!0)]))}},aa=se(hu,[["__scopeId","data-v-25969b23"]]),le={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},gu=e=>(t.pushScopeId("data-v-70dd3937"),e=e(),t.popScopeId(),e),yu={class:"actions"},Su={class:"actions__row"},bu=gu(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),wu=[bu],Cu={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ku=["fill"],Eu={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Bu=["fill"],xu={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:n}){const o=e,r=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor}));function a(i){n("action",i)}return(i,s)=>(t.openBlock(),t.createElementBlock("div",yu,[t.createElementVNode("div",Su,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(r.value),onClick:s[0]||(s[0]=l=>a(t.unref(le).STATISTICS))},wu,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(r.value),onClick:s[1]||(s[1]=l=>a(t.unref(le).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Cu,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:o.iconColor},null,8,ku)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:s[2]||(s[2]=l=>a(t.unref(le).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Eu,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Bu)]))])):t.createCommentVNode("",!0)])]))}},Nu=se(xu,[["__scopeId","data-v-70dd3937"]]),Uo=e=>(t.pushScopeId("data-v-dac26549"),e=e(),t.popScopeId(),e),Tu={class:"actions"},Ou={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Au=["fill"],Vu={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ru=["fill"],Fu=Uo(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),Iu=[Fu],Lu={key:0,class:"actions__videos"},zu={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_u=["fill"],Pu={key:1,class:"actions__videos__thumbnails"},Mu=Uo(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__img"},null,-1)),ju=Uo(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__img"},null,-1)),Du={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vu=["stroke"],Uu={__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:n}){const o=e,r=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor})),a=t.computed(()=>{const c=[];return o.componentWidth<540&&c.push("mobile"),c}),i=t.computed(()=>o.componentWidth>730),s=t.computed(()=>({color:o.thumbnailColor,fontFamily:o.thumbnailFontFamily,fontSize:o.thumbnailFontSize}));function l(c){n("action",c)}return(c,d)=>(t.openBlock(),t.createElementBlock("div",Tu,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",a.value])},[e.gameStatus===4&&!e.isLive&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=m=>l(t.unref(le).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",Ou,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,Au)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(r.value),onClick:d[1]||(d[1]=m=>l(t.unref(le).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",Vu,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:o.iconColor},null,8,Ru)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(r.value),onClick:d[2]||(d[2]=m=>l(t.unref(le).STATISTICS))},Iu,4)],2),i.value?(t.openBlock(),t.createElementBlock("div",Lu,[e.gameStatus===4&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=m=>l(t.unref(le).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",zu,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:o.iconColor},null,8,_u)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",Pu,[t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=m=>l(t.unref(le).PLAY_GOALS))},[Mu,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Goles ",4)]),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=m=>l(t.unref(le).PLAY_RESUME))},[ju,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(s.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=m=>l(t.unref(le).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",Du,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,vu)]))],2)]))}},Ju=se(Uu,[["__scopeId","data-v-dac26549"]]),_t=e=>(t.pushScopeId("data-v-47de00a2"),e=e(),t.popScopeId(),e),Hu={class:"row-landing__game-status"},Gu={class:"row-landing__game-actions"},Wu={class:"row-full__game-status"},qu={class:"row-full__game-info"},Ku={key:0},Zu={class:"row-full__game-actions"},Yu={class:"game-events-container"},Xu=_t(()=>t.createElementVNode("div",{class:"separator"},null,-1)),Qu=_t(()=>t.createElementVNode("div",null,null,-1)),$u={class:"game-events__data"},ef={class:"game-events__data__team"},tf=["src"],of={class:"game-events__data__team__event__text"},nf={class:"game-events__data__team away"},rf={class:"game-events__data__team__event__text"},af=["src"],sf=_t(()=>t.createElementVNode("div",null,null,-1)),lf=_t(()=>t.createElementVNode("div",null,null,-1)),cf={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:n}){const o=e,r={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"https://az755631.vo.msecnd.net/todoelfut/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"https://az755631.vo.msecnd.net/todoelfut/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"https://az755631.vo.msecnd.net/todoelfut/icn-amarilla.svg"},a=t.ref(!1),i=t.ref(!1),s=t.computed(()=>{const u={homeTeam:[],awayTeam:[]};return o.game&&o.game.game_status!==4&&!o.game.is_live&&o.game.minutes&&(u.homeTeam.push(...f(o.game.minutes.home_goals_minutes,r.GOAL)),u.homeTeam.push(...f(o.game.minutes.home_red_cards_minutes,r.RED_CARD)),u.homeTeam.push(...f(o.game.minutes.home_yellow_cards_minutes,r.YELLOW_CARD)),u.awayTeam.push(...f(o.game.minutes.visiting_goals_minutes,r.GOAL)),u.awayTeam.push(...f(o.game.minutes.away_red_cards_minutes,r.RED_CARD)),u.awayTeam.push(...f(o.game.minutes.away_yellow_cards_minutes,r.YELLOW_CARD))),u}),l=t.computed(()=>({"background-color":o.backgroundColor})),c=t.computed(()=>({height:o.height})),d=t.computed(()=>{const u={game:[],events:[]};return o.componentWidth<500?(u.events.push("break-point-3"),u.game.push("break-point-2")):o.componentWidth<730?(u.game.push("break-point-2"),u.events.push("break-point-2")):o.componentWidth<910&&(u.game.push("break-point-1"),u.events.push("break-point-1")),u}),m=t.computed(()=>({isLandingMode:o.isLandingMode,game:o.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"})),p=t.computed(()=>({"font-size":o.televisionFontSize,"font-family":o.televisionFontFamily,color:o.televisionColor}));t.watch(()=>o.componentWidth,u=>{i.value=u<910});function f(u,g){return u.map(C=>({iconUrl:g,text:C}))}function h(u){u===le.SHOW_GAME_EVENTS?a.value=!a.value:n("action",{action:u,game:o.game})}return(u,g)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(l.value)},[t.createVNode(na,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",Hu,[t.createVNode(aa,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":e.game.roundAbbreviation,"is-landing-mode":e.isLandingMode},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode"])]),t.createElementVNode("div",Gu,[t.createVNode(Nu,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onClick:h},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(l.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",d.value.game]),style:t.normalizeStyle(c.value)},[t.createElementVNode("div",Wu,[t.createVNode(aa,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"is-landing-mode":e.isLandingMode,"font-size":"12px"},null,8,["status","is-live","date-time-millis","is-landing-mode"])]),t.createElementVNode("div",qu,[t.createVNode(na,t.mergeProps(m.value,{"is-television-visible":i.value,game:e.game,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-full__television",style:t.normalizeStyle(p.value)},[!i.value&&(e.game.game_status===4||e.game.is_live)?(t.openBlock(),t.createElementBlock("span",Ku,"fox, univision, televisas")):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Zu,[t.createVNode(Ju,{"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":a.value,"component-width":e.componentWidth,onAction:h},null,8,["is-live","has-video","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Yu,[Xu,t.createElementVNode("div",{class:t.normalizeClass(["game-events",d.value.events])},[Qu,t.createElementVNode("div",$u,[t.createElementVNode("div",ef,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.homeTeam,(C,k)=>(t.openBlock(),t.createElementBlock("div",{key:`h${k}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:C.iconUrl},null,8,tf),t.createElementVNode("div",of,t.toDisplayString(C.text),1)]))),128))]),t.createElementVNode("div",nf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.value.awayTeam,(C,k)=>(t.openBlock(),t.createElementBlock("div",{key:`a${k}`,class:"game-events__data__team__event"},[t.createElementVNode("div",rf,t.toDisplayString(C.text),1),t.createElementVNode("img",{src:C.iconUrl},null,8,af)]))),128))])]),sf,lf],2)],512),[[t.vShow,a.value]])]),_:1})],4))}},ia=se(cf,[["__scopeId","data-v-47de00a2"]]),df={class:"calendar-table"},mf={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:n}){const o=e;function r(i){return i%2===0?o.evenRowColor:o.oddRowColor}function a(i){n("action",{action:i,game:o.game})}return(i,s)=>(t.openBlock(),t.createElementBlock("div",df,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(l,c)=>(t.openBlock(),t.createBlock(ia,{key:l.game_id,game:l,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":r(c),"component-width":e.componentWidth,onAction:a},null,8,["game","is-landing-mode","height","background-color","component-width"]))),128))]))}},pf=se(mf,[["__scopeId","data-v-06159135"]]),uf={class:"calendar-by-team"},ff={class:"options"},hf={class:"calendar-by-team__page"},gf={class:"calendar-by-team__page__round__round-name",style:{color:"white"}},yf={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:n}){const o=e,r=t.ref(0),a=t.computed(()=>{let l=[];if(o.gamesPages.size>0){const c=Array.from(o.gamesPages.entries()).reduce((d,[m,p])=>{const f=Number(m),h=Number.isNaN(f)?m:`Jornada ${f<10?"0":""}${f}`,u=p.reduce((g,C)=>(g.push(...C),g),[]).filter(g=>r.value===0||r.value===1&&g.visiting_team.team_id===o.teamId?!0:r.value===2&&g.home_team.team_id===o.teamId);return u.length>0&&d.push({roundName:h,games:u}),d},[]);l.push(c)}return l});function i(l){n("action",l)}function s(l){r.value=l}return(l,c)=>(t.openBlock(),t.createElementBlock("div",uf,[t.createElementVNode("div",ff,[t.createElementVNode("button",{onClick:c[0]||(c[0]=d=>s(0))},"Todas"),t.createElementVNode("button",{onClick:c[1]||(c[1]=d=>s(1))},"Visitante"),t.createElementVNode("button",{onClick:c[2]||(c[2]=d=>s(2))},"Local")]),t.createVNode(t.unref(ea),{"is-pagination-visible":e.isPaginationVisible,items:a.value},{default:t.withCtx(({item:d})=>[t.createElementVNode("div",hf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d,(m,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"calendar-by-team__page__round"},[t.createElementVNode("div",gf,t.toDisplayString(m.roundName),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.games,f=>(t.openBlock(),t.createBlock(ia,{key:f.game_id,game:f,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},Sf=se(yf,[["__scopeId","data-v-7e9ebe42"]]),bf="_image62Icon_1ybd3_2",wf="_imgChivasIcon_1ybd3_11",Cf="_nameDesktop_1ybd3_18",kf="_nameMobile_1ybd3_31",Ef="_homeTeam_1ybd3_43",Bf="_sbado16De_1ybd3_54",xf="_gameDate_1ybd3_63",Nf="_sab16092023_1ybd3_67",Tf="_div_1ybd3_80",Of="_divscore_1ybd3_89",Af="_cst_1ybd3_99",Vf="_hour_1ybd3_108",Rf="_score_1ybd3_109",Ff="_chivasTvCanal_1ybd3_120",If="_gameStatus_1ybd3_132",Lf="_matchInfo_1ybd3_143",zf="_image62Icon1_1ybd3_156",_f="_name_1ybd3_18",Pf="_imgAtlasIcon_1ybd3_178",Mf="_name1_1ybd3_185",jf="_awayTeam_1ybd3_197",Df="_matchCard_1ybd3_208",vf={image62Icon:bf,imgChivasIcon:wf,nameDesktop:Cf,nameMobile:kf,homeTeam:Ef,sbado16De:Bf,gameDate:xf,sab16092023:Nf,div:Tf,divscore:Of,cst:Af,hour:Vf,score:Rf,chivasTvCanal:Ff,gameStatus:If,matchInfo:Lf,image62Icon1:zf,name:_f,imgAtlasIcon:Pf,name1:Mf,awayTeam:jf,matchCard:Df},Uf=["src"],Jf=["src"],Hf={key:0},Gf=["src"],Wf=["src"],qf={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const n=e,o=t.computed(()=>{const a={...n.game};return a.gameSchedule=n.game.schedule.split(":"),a.gameSchedule.pop(),a.gameSchedule=a.gameSchedule.join(":"),a});function r(a,i){const s=new Date(a);if(i==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[s.getDay()]} ${s.getDate()} de ${c[s.getMonth()]}`}else return`${s.getDate()}-${s.getMonth()}-${s.getFullYear()}`}return(a,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(a.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(a.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(a.$style.image62Icon),alt:"",src:t.unref(Je)(o.value.home_team.team_id,150)},null,10,Uf),t.createElementVNode("img",{class:t.normalizeClass(a.$style.imgChivasIcon),alt:"",src:t.unref(Je)(o.value.home_team.team_id)},null,10,Jf),t.createElementVNode("h3",{class:t.normalizeClass(a.$style.nameDesktop),id:"team-name"},t.toDisplayString(o.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(a.$style.nameMobile),id:"team-name"},t.toDisplayString(o.value.home_team.acronym),3)],2),o.value.game_status==4?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(a.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(a.$style.sbado16De)},t.toDisplayString(r(o.value.date,1)),3),t.createElementVNode("div",{class:t.normalizeClass(a.$style.sab16092023)},t.toDisplayString(r(o.value.date,0)),3),t.createElementVNode("div",{class:t.normalizeClass(a.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(a.$style.div)},t.toDisplayString(o.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(a.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(a.$style.chivasTvCanal)},t.toDisplayString(o.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(a.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([a.$style.sbado16De,a.$style.gameDate])},t.toDisplayString(r(o.value.date,1)),3),t.createElementVNode("div",{class:t.normalizeClass([a.$style.sab16092023,a.$style.gameDate])},t.toDisplayString(r(o.value.date,0)),3),t.createElementVNode("div",{class:t.normalizeClass(a.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(a.$style.divscore)},t.toDisplayString(o.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(a.$style.gameStatus)},[t.createTextVNode(" Finalizado "),o.value.penalties_score_home_team!=0||o.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",Hf," - Penales "+t.toDisplayString(o.value.penalties_score_home_team)+" - "+t.toDisplayString(o.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(a.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(a.$style.image62Icon1),alt:"",src:t.unref(Je)(o.value.visiting_team.team_id,150)},null,10,Gf),t.createElementVNode("h3",{class:t.normalizeClass(a.$style.name),id:"team-name"},t.toDisplayString(o.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(a.$style.imgAtlasIcon),alt:"",src:t.unref(Je)(o.value.visiting_team.team_id)},null,10,Wf),t.createElementVNode("h3",{class:t.normalizeClass(a.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},Kf={$style:vf},Zf=se(qf,[["__cssModules",Kf]]),Yf={class:"calendar-by-game__carousel"},Xf={components:{GscSwitchComponent:wr,GSCGeneraltable:yd,GSCCalendarByGame:se({__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},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:n}){const o=e;let r=null;const a=t.ref([]),i=t.ref({}),s=t.ref([]),l=t.ref(0),c=t.ref(null),d=t.ref({}),m=t.ref(new Map),p=t.ref(!1),f=t.ref(null),h=t.ref(null),u=t.ref(null),g=t.computed(()=>o.isCup),C=t.computed(()=>o.isCupLegacy),k=t.computed(()=>({height:o.height,width:o.width})),M=t.computed(()=>o.games?J(o.games):m.value.get(d.value.key)||[]);t.watch(()=>o.seasons,O=>{O&&O.length&&(p.value=!0,a.value=O.map(N=>N.id),ce(O,!0))},{immediate:!0,deep:!0}),t.watch(()=>o.teamId,()=>{de()});async function v(O,N,T=""){let A=T;try{const x={};o.token&&(x.Authorization=o.token),A||(A="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",O.forEach((R,L)=>{A+=`${L===0?"":"&"}seasons=${R}`}));const{data:{data:F,teams:I}}=await Yr.get(A,{headers:x});return{seasonsAndGames:F,seasonsAndTeams:I}}catch(x){if(N>0)return v(O,N-1,A);throw new Error(x)}}function q(O){for(const N of O)if(!a.value.includes(N.season_id))return!0;return!1}async function ce(O,N){try{i.value={};let T=0;const{seasonsAndGames:A,seasonsAndTeams:x}=await v(O.map(I=>I.id),3);if(N&&q(A))return;A.forEach(I=>{const{type:R}=O.find(L=>L.id===I.season_id);I.type=R,I.games.forEach(L=>{L.season_id=I.season_id}),R===0&&(T=I.season_id)}),f.value={seasonsGames:A};const{teams:F}=x.find(I=>I.season_id===T);h.value=F,n("change-teams",F),de()}catch(T){throw new Error(T)}}function de(){if(!h.value)return;const O=f.value&&f.value.seasonsGames?f.value.seasonsGames.map(N=>{const T=N.games.reduce((A,x)=>{const F={...x};return F.dateTimeMillis=new Date(F.date_time_utc).valueOf(),F.home_team=h.value.find(I=>I.team_id===x.home_team),F.visiting_team=h.value.find(I=>I.team_id===x.visiting_team),o.teamId&&F.home_team.team_id!==o.teamId&&F.visiting_team.team_id!==o.teamId||(A[x.matchday_abbreviation]?A[x.matchday_abbreviation][x.game_status===3?"canceled":x.date]?A[x.matchday_abbreviation][x.game_status===3?"canceled":x.date].push(F):A[x.matchday_abbreviation][x.game_status===3?"canceled":x.date]=[F]:A[x.matchday_abbreviation]={[x.game_status===3?"canceled":x.date]:[F]}),A},{});for(let[A,x]of Object.entries(T))T[A]=Object.entries(x).map(([F,I])=>({date:F,games:I.sort((R,L)=>R.dateTimeMillis-L.dateTimeMillis)})),T[A].sort((F,I)=>F.date<I.date?-1:F.date>I.date?1:0);return{type:N.type,weight:N.type===0?0:N.type===2?1:2,schedule:T}}):[];O.sort((N,T)=>N.weight-T.weight),i.value=O.reduce((N,T)=>{for(const[A,x]of Object.entries(T.schedule))if(T.type===0)if(g.value){const F=A.replace("M",""),I=F;C.value?N[Rp[F]||I]=x:N[Vp[A]||I]=x}else N[Number(A.replace("M","")).toString()]=x;else T.type===2?N[`R${Number(A.replace("PO",""))}`]=x:T.type===1&&(N[Ap[A]]=x);return N},{}),m.value=new Map,s.value=Array.from(Object.entries(i.value).reduce((N,[T,A])=>{const x=Number(T);let F="";Number.isNaN(x)?F=T:F=x<10?`0${x}`:T,N.set(T,{key:T,value:x,valueText:F});const I=A.reduce((L,Y)=>(Y.games.forEach(oe=>{oe.game_id===o.defaultGameId&&(u.value=T),oe.roundAbbreviation=Number.isNaN(x)?x:`J ${x}`}),L=L.concat(Y.games),L),[]),R=J(I);return m.value.set(T,R),N},new Map).values())}function J(O){const N=[];if(o.gamesPerMatchDay>0){let T=[];O.forEach((A,x)=>{T.push(A),(x+1)%o.gamesPerMatchDay===0&&(N.push([...T]),T=[])}),T.length&&N.push([...T])}else N.push(O);return N}async function te(O){try{const{data:N}=await Yr.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return N}catch(N){if(O>0)return te(O-1);throw new Error(N)}}function V(){if(window.ResizeObserver)r=new ResizeObserver(()=>{l.value=c.value.clientWidth}),r.observe(c.value);else throw new Error("Resize observer not supported!")}function Q(O){d.value=O,n("change-round",O)}function $(O){o.areGamesCarouselType&&n("change-game-carousel",O.selectedItem)}function D(O){n("action",O),ee(O)}function ee(O){const N="PLAY_RESUME",T="PLAY_GOALS",A=[607,608,12,55,54,35,14,52,15,53,466,477],x=[12,55,"35_r","54_r"],{game_id:F,season_id:I}=O.game;let R={seasonId:I,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[F],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};O.action===N?(R.categoryIds=A,R.advancedFilter.playListTitle="Resumen"):O.action===T&&(R.categoryIds=x,R.advancedFilter.playListTitle="Goles"),n("openmedia",R)}async function ne(){try{if(!o.awaitForSeasons&&!o.games){const O=(await te(3)).find(A=>A._id===1),N=O.seasons[0],T=[{id:N.id,type:N.type}];O&&O.tournament&&n("tournament-selected",O.tournament),N.related_seasons&&N.related_seasons.length&&T.push(...N.related_seasons.map(A=>({id:A.id,type:A.type}))),await ce(T,!1)}}catch(O){throw new Error(O)}}return t.onMounted(()=>{V()}),ne(),(O,N)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:t.normalizeStyle(k.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(Sf,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":l.value,"games-pages":m.value,"is-pagination-visible":e.isPaginationVisible,onAction:D},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&s.value?(t.openBlock(),t.createBlock(Kp,{key:0,"match-days":s.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"default-match-day-key":u.value,onChangeMatchDay:Q},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","default-match-day-key"])):t.createCommentVNode("",!0),t.createElementVNode("div",Yf,[M.value?(t.openBlock(),t.createBlock(t.unref(ea),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?M.value[0]:M.value,"are-navigation-arrows-visible":!e.areGamesCarouselType,"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:$},{default:t.withCtx(({item:T})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(Zf,{key:0,game:T},null,8,["game"])):(t.openBlock(),t.createBlock(pf,{key:1,"games-per-page":T,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":l.value,onAction:D},null,8,["games-per-page","is-landing-mode","row-height","component-width"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},[["__scopeId","data-v-e30806d1"]])},props:{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)}}},Qf={class:"gsc-calendar-table"},$f={class:"gsc-switch-container"},eh={class:"gsc-app-component"};function th(e,n,o,r,a,i){const s=t.resolveComponent("GscSwitchComponent"),l=t.resolveComponent("GSCGeneraltable"),c=t.resolveComponent("GSCCalendarByGame");return t.openBlock(),t.createElementBlock("div",Qf,[t.createElementVNode("div",$f,[t.createVNode(s,{type:0,"font-family":"Poppins-Regular",buttons:["Mi posición","Calendario"],height:"40px","selected-option":a.selectedOpt,"font-size":o.componentWidth>=768?"16px":"14px",width:"355px",onInput:i.changeCategory},null,8,["selected-option","font-size","onInput"])]),t.createElementVNode("div",eh,[a.selectedOpt=="Mi posición"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(l,{isPaginationVisible:!0,season:1772,type:1,onOpenmedia:i.onOpenMedia},null,8,["onOpenmedia"]),t.createElementVNode("div",{onClick:n[0]||(n[0]=d=>this.$router.push({name:"table"})),class:"gsc-app-component-view-all"}," Ver todo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c,{onAction:i.onAction,onOpenmedia:i.onOpenMedia,width:"100%",token:a.tokenFree,seasons:[{id:1772,name:"Apertura 2023",type:0}],"row-height":"60px","is-landing-mode":!0,"is-pagination-visible":!1,isRoundPickerVisible:!1,"await-for-seasons":"","items-to-show":5,"items-to-scroll":5,"max-games-to-show":5},null,8,["onAction","onOpenmedia","token"]),t.createElementVNode("div",{onClick:n[1]||(n[1]=d=>this.$router.push({name:"calendar"})),class:"gsc-app-component-view-all"}," Ver todo ")],64))])])}const oh=ye(Xf,[["render",th],["__scopeId","data-v-d61847f0"]]),nh=e=>(t.pushScopeId("data-v-abfc0658"),e=e(),t.popScopeId(),e),rh={class:"match"},ah={class:"match__header"},ih=nh(()=>t.createElementVNode("div",{class:"match__final-tag"},"FINAL",-1)),sh={class:"match__tag"},lh={class:"match__body"},ch={class:"match__data"},dh={class:"match__acronym"},mh=["src"],ph={class:"match__score"},uh=["src"],fh={class:"match__acronym"},hh={class:"match__status"},Pt=ye({__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(n,o)=>{var r,a;return t.openBlock(),t.createElementBlock("section",rh,[t.createElementVNode("div",ah,[ih,t.createElementVNode("div",sh,t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),1)]),t.createElementVNode("div",lh,[t.createElementVNode("div",ch,[t.createElementVNode("div",dh,t.toDisplayString((r=e.data)==null?void 0:r.home_team_acronym),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.home_team+".png",alt:"team-img"},null,8,mh),t.createElementVNode("div",ph,t.toDisplayString(e.data.score[0])+" - "+t.toDisplayString(e.data.score[1]),1),t.createElementVNode("img",{class:"match__img",src:"https://az755631.vo.msecnd.net/teams-80/"+e.data.visiting_team+".png",alt:"team-img"},null,8,uh),t.createElementVNode("div",fh,t.toDisplayString((a=e.data)==null?void 0:a.visiting_team_acronym),1)]),t.createElementVNode("div",hh,"Finalizado"+t.toDisplayString(e.penalScore?` - Penales ${e.penalScore}`:""),1)]),t.createElementVNode("div",{class:"match__button",onClick:o[0]||(o[0]=i=>n.$emit("clickMatch"))},"Analizar partido →")])}}},[["__scopeId","data-v-abfc0658"]]),gh=e=>(t.pushScopeId("data-v-028f7189"),e=e(),t.popScopeId(),e),yh=["src"],Sh=["src"],bh={class:"coming-match__body"},wh={class:"coming-match__data"},Ch=["src"],kh={style:{"margin-top":"16px"}},Eh={class:"coming-match__time"},Bh=gh(()=>t.createElementVNode("div",{class:"coming-match__cst"},"CST",-1)),xh=["src"],ot=ye({__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(n,o)=>{var r,a,i,s,l,c,d,m,p,f,h,u;return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["coming-match",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((r=e.data)==null?void 0:r.home_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((a=e.data)==null?void 0:a.home_team)+".png",alt:"team-img"},null,10,yh),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__bg",{small:e.small}]),src:"https://az755631.vo.msecnd.net/teams-80/"+((i=e.data)==null?void 0:i.visiting_team)+".png",alt:"team-img"},null,10,Sh),t.createElementVNode("div",bh,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__date",{small:e.small}])},t.toDisplayString(e.data.matchday_abbreviation.replace("M","J")),3),t.createElementVNode("div",wh,[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.home_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((s=e.data)==null?void 0:s.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,Ch),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((c=e.data)==null?void 0:c.home_team_name),3)],2),t.createElementVNode("div",kh,[t.createElementVNode("div",Eh,[e.data.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString((d=e.data)==null?void 0:d.score[0])+" - "+t.toDisplayString((m=e.data)==null?void 0:m.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString((p=e.data)==null?void 0:p.schedule.replace(":00","")),1)],64))]),Bh]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__team",{small:e.small}])},[t.createElementVNode("div",{class:t.normalizeClass(["coming-match__acronym",{small:e.small}])},t.toDisplayString((f=e.data)==null?void 0:f.visiting_team_name),3),t.createElementVNode("img",{class:t.normalizeClass(["coming-match__img",{small:e.small}]),src:typeof e.data.visiting_team=="object"?"https://az755631.vo.msecnd.net/teams-80/"+((h=e.data)==null?void 0:h.visiting_team.team_id)+".png":"https://az755631.vo.msecnd.net/teams-80/"+((u=e.data)==null?void 0:u.visiting_team)+".png",alt:"team-img"},null,10,xh)],2)])]),t.createElementVNode("div",{class:t.normalizeClass(["coming-match__button",{small:e.small}]),onClick:o[0]||(o[0]=g=>n.$emit("clickMatch"))},"Analizar partido →",2)],2)}}},[["__scopeId","data-v-028f7189"]]),sa=e=>(t.pushScopeId("data-v-486c2635"),e=e(),t.popScopeId(),e),Nh={class:"quadrant-matches"},Th={class:"quadrant-matches__header"},Oh={class:"quadrant-matches__title"},Ah=[sa(()=>t.createElementVNode("span",null,"Mi calendario completo",-1)),sa(()=>t.createElementVNode("span",null," →",-1))],Vh={key:0,class:"quadrant-matches__body"},Rh={key:1,class:"quadrant-matches__body col2"},Fh={key:2,class:"quadrant-matches__body col2"},Ih={class:"quadrant-matches__body",style:{"column-gap":"16px"}},Lh={class:"quadrant-matches__body col2"},zh={class:"quadrant-matches__body col2"},_h={class:"quadrant-matches__body matches"},Ph=ye({__name:"GSCQuadrantGames",props:{isUserPro:{type:Boolean,default:!1},hasTeam:{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 n=e,o=t.computed(()=>n.comingMatches[0]||{}),r=t.computed(()=>n.previousMatches[0]||{}),a=t.toRef(n,"componentWidth"),i=t.computed(()=>a.value<768);return(s,l)=>(t.openBlock(),t.createElementBlock("section",Nh,[t.createElementVNode("div",Th,[t.createElementVNode("h2",Oh,t.toDisplayString(e.hasTeam?"Mis partidos":"Partidos"),1),t.createElementVNode("button",{class:"quadrant-matches__button",onClick:l[0]||(l[0]=c=>s.$emit("clickCalendar"))},Ah)]),e.hasTeam?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[i.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.comingMatches.length&&e.previousMatches.length?(t.openBlock(),t.createBlock(t.unref(Me),{key:0,arrows:!1},{default:t.withCtx(()=>[t.createElementVNode("div",Ih,[t.createVNode(ot,t.mergeProps({small:"",data:e.data.data.prematch},o.value,{onClickMatch:l[5]||(l[5]=c=>s.$emit("clickMatch",e.data.data.prematch))}),null,16,["data"]),t.createVNode(Pt,t.mergeProps({data:e.data.data.postmatch},r.value,{onClickMatch:l[6]||(l[6]=c=>s.$emit("clickMatch",e.data.data.postmatch))}),null,16,["data"])])]),_:1})):e.comingMatches.length?(t.openBlock(),t.createBlock(t.unref(Me),{key:1,arrows:!1},{default:t.withCtx(()=>[t.createElementVNode("div",Lh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.comingMatches.slice(0,2),(c,d)=>(t.openBlock(),t.createBlock(ot,t.mergeProps({data:e.data.data.prematch},c,{key:d,small:"",onClickMatch:l[7]||(l[7]=m=>s.$emit("clickMatch",e.data.data.prematch))}),null,16,["data"]))),128))])]),_:1})):e.previousMatches.length?(t.openBlock(),t.createBlock(t.unref(Me),{key:2,arrows:!1},{default:t.withCtx(()=>[t.createElementVNode("div",zh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.previousMatches.slice(0,2),(c,d)=>(t.openBlock(),t.createBlock(Pt,t.mergeProps({data:e.data.data.postmatch},c,{key:d,small:"",onClickMatch:l[8]||(l[8]=m=>s.$emit("clickMatch",e.data.data.postmatch))}),null,16,["data"]))),128))])]),_:1})):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.comingMatches.length&&e.previousMatches.length?(t.openBlock(),t.createElementBlock("div",Vh,[t.createVNode(ot,t.mergeProps({data:e.data.data.prematch},o.value,{onClickMatch:l[1]||(l[1]=c=>s.$emit("clickMatch",e.data.data.prematch))}),null,16,["data"]),t.createVNode(Pt,t.mergeProps({data:e.data.data.postmatch},r.value,{onClickMatch:l[2]||(l[2]=c=>s.$emit("clickMatch",e.data.data.postmatch))}),null,16,["data"])])):e.comingMatches.length?(t.openBlock(),t.createElementBlock("div",Rh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.comingMatches.slice(0,2),(c,d)=>(t.openBlock(),t.createBlock(ot,t.mergeProps({data:e.data.data.prematch},c,{key:d,small:"",onClickMatch:l[3]||(l[3]=m=>s.$emit("clickMatch",e.data.data.prematch))}),null,16,["data"]))),128))])):e.previousMatches.length?(t.openBlock(),t.createElementBlock("div",Fh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.previousMatches.slice(0,2),(c,d)=>(t.openBlock(),t.createBlock(Pt,t.mergeProps({data:e.data.data.postmatch},c,{key:d,small:"",onClickMatch:l[4]||(l[4]=m=>s.$emit("clickMatch",e.data.data.postmatch))}),null,16,["data"]))),128))])):t.createCommentVNode("",!0)],64))],64)):(t.openBlock(),t.createBlock(t.unref(Me),{key:1},{default:t.withCtx(()=>[t.createElementVNode("div",_h,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.data,(c,d)=>(t.openBlock(),t.createBlock(ot,{key:d,data:c[0].games[0],small:"",onClickMatch:m=>s.$emit("clickMatch",c[0].games[0])},null,8,["data","onClickMatch"]))),128))])]),_:1}))]))}},[["__scopeId","data-v-486c2635"]]),Mh={__name:"gsc-games",props:{componentWidth:{type:Number,default:768,validator(e){return e>0}},isplayer:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},setup(e){const n=[{homeTeam:{name:"Ch1vas",img:"/team1.png",acronym:"CHI"},visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Chivas",img:"/team1.png",acronym:"CHI"},visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"}],o=[{homeTeam:{name:"Ch1vas",img:"/team1.png",acronym:"CHI"},journey:3,score:"2 - 4",visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Chivas",img:"/team1.png",acronym:"CHI"},penalScore:"1- 2",journey:3,score:"2 - 4",visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},penalScore:"1- 2",journey:3,score:"2 - 4",visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},penalScore:"1- 2",journey:3,score:"2 - 4",visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"},{homeTeam:{name:"Ch2vas",img:"/team1.png",acronym:"CHI"},penalScore:"1- 2",journey:3,score:"2 - 4",visitTeam:{name:"Atlas",acronym:"ATL",img:"/team2.png"},time:"6:30",date:"Miercoles 7 de Abril"}];function r(){window.location.href="/calendar"}function a(i){window.location.href=`/game?g=${i.game_id}`}return(i,s)=>(t.openBlock(),t.createElementBlock("main",null,[t.createVNode(Ph,{data:e.data,comingMatches:n,"component-width":e.componentWidth,previousMatches:o,onClickCalendar:r,onClickMatch:a,hasTeam:!e.isplayer},null,8,["data","component-width","hasTeam"])]))}},jh="_toniKroos_1pe59_35",Dh="_centralMidfielder_1pe59_55",vh="_icnPlayIcon_1pe59_75",Uh="_verVideos_1pe59_89",Jh="_btnVideosOptions_1pe59_109",Hh="_info_1pe59_147",Gh="_goalUnlock_1pe59_171",Wh="_teamsAmerica_1pe59_197",qh="_imageIcon_1pe59_217",Kh="_playerTops_1pe59_237",Zh={toniKroos:jh,centralMidfielder:Dh,icnPlayIcon:vh,verVideos:Uh,btnVideosOptions:Jh,info:Hh,goalUnlock:Gh,teamsAmerica:Wh,imageIcon:qh,playerTops:Kh},Yh=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},Xh={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))}}},Qh=["src"],$h=["src"],e0=["src"];function t0(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(e.$style.playerTops),style:t.normalizeStyle(i.customMosaic),id:"player-mosaico",onClick:n[1]||(n[1]=s=>i.onPlayerTopsClick(o.data.player_id))},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.info)},[t.createElementVNode("h3",{class:t.normalizeClass(e.$style.toniKroos),style:t.normalizeStyle(i.customNamePlayer)},t.toDisplayString(o.data.player_name),7),o.showPositionPlayer?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.centralMidfielder),style:t.normalizeStyle(i.customNamePosition)},t.toDisplayString(o.data.player_position),7)):t.createCommentVNode("",!0),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnVideosOptions),style:t.normalizeStyle(i.customTotalCont),autofocus:"",id:"button-actions",onClick:n[0]||(n[0]=s=>i.onButtonVideos(o.data))},[o.showIconVideo?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.icnPlayIcon),src:o.iconPlay},null,10,Qh)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.verVideos),style:t.normalizeStyle(i.customTotal)},t.toDisplayString(o.data.player_stat)+" "+t.toDisplayString(o.data.category),7)],6)],2),t.createElementVNode("b",{style:t.normalizeStyle(i.customNumberTop),class:t.normalizeClass(e.$style.goalUnlock)},t.toDisplayString(o.data.top),7),o.showShieldTeam?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.teamsAmerica),style:t.normalizeStyle(i.customShieldTeam),loading:"lazy",src:o.data.team_logo},null,14,$h)):t.createCommentVNode("",!0),t.createElementVNode("img",{style:t.normalizeStyle(i.customPhotoPlayerOrTeam),class:t.normalizeClass(e.$style.imageIcon),loading:"lazy",src:o.data.player_photo},null,14,e0)],6)}const o0={$style:Zh},n0=Yh(Xh,[["render",t0],["__cssModules",o0]]),r0=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},Jo={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))}}},la=()=>{t.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}))},ca=Jo.setup;Jo.setup=ca?(e,n)=>(la(),ca(e,n)):la;const a0=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),i0=["src"],s0={key:1,class:"text"},l0=["src"],c0={class:"stats"},d0=a0(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),m0={class:"numstats"},p0={class:"leyend"};function u0(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",a.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,a.status&&o.typeOnOff&&i.customActive]),onClick:n[0]||(n[0]=(...s)=>i.btnClick&&i.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,i0)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",s0,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,l0)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:n[1]||(n[1]=(...s)=>i.btnClick&&i.btnClick(...s))},[t.createElementVNode("div",c0,[d0,t.createElementVNode("div",m0,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",p0,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const f0=r0(Jo,[["render",u0],["__scopeId","data-v-fb269a1e"]]);function h0(e){const n=t.ref({width:0,height:0});function o(){const r=e.value.getBoundingClientRect();n.value.width=r.width,n.value.height=r.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:n}}const Ho={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(n){throw new Error(n)}}}},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)}}},da=()=>{t.useCssVars(e=>({"0b58fe62":e.backgroundColor,"1350c043":e.widthCircle,a6fb272c:e.heightCircle}))},ma=Ho.setup;Ho.setup=ma?(e,n)=>(da(),ma(e,n)):da;const g0={key:0,class:"text-left"},y0=["width","src"],S0=["checked"],b0=["width","src"],w0={key:3,class:"text-right"};function C0(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",{class:"gsc-switch-radio",style:t.normalizeStyle(i.customText)},[o.textOptionLeft!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",g0,t.toDisplayString(o.textOptionLeft),1)):t.createCommentVNode("",!0),o.iconA!=""?(t.openBlock(),t.createElementBlock("img",{key:1,width:o.widthIcons,src:o.iconA},null,8,y0)):t.createCommentVNode("",!0),t.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:n[0]||(n[0]=(...s)=>i.handleSwitchChange&&i.handleSwitchChange(...s)),checked:a.OptionDefault},null,40,S0),t.createElementVNode("label",{for:"toggle-btn",style:t.normalizeStyle([i.customStyle,{"--circle-color":o.circleColorSwitch}])},null,4),o.iconB!=""?(t.openBlock(),t.createElementBlock("img",{key:2,width:o.widthIcons,src:o.iconB},null,8,b0)):t.createCommentVNode("",!0),o.textOptionRight!=""&&!o.hiddenLabels?(t.openBlock(),t.createElementBlock("span",w0,t.toDisplayString(o.textOptionRight),1)):t.createCommentVNode("",!0)],4)}const Go={components:{GSCSlider:Me,GSCMosaicthebest:n0,GscSwitchComponent:wr,GSCButton:f0,GSCRadioToggle:ye(Ho,[["render",C0],["__scopeId","data-v-d33948ae"]])},setup(){const e=t.ref("myDivRef"),{elementSize:n}=h0(e);return{myDivRef:e,elementSize:n}},props:{backgroundColor:{type:String,default:"#0D1D29"},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:{},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(){await this.getCategoryStats(this.season,1)},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 n=this.translateTopCategories(this.categorySelected),o=2,r=3;let a=[],i=0,s=0;this.isTeam?(i=e.player_id,s=r):(a=[e.player_id],s=o);const l={seasonId:this.season,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:s,gameIds:null,playerIds:a,goalkeeperIds:[],categoryIds:n,teamId:i,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")},changeType(e){this.optionSelected=e,e=="Equipos"?this.isTeam=!0:this.isTeam=!1},changeCategory(e){this.categoryName=e;const n=this.categories.find(o=>o.name===e);this.categorySelected=n.id},async getCategoryStats(e,n){try{let a={},i={},s=[];const l=ut.create({headers:{Authorization:`${this.token}`}});var o={};if(n==0&&(o=await l.get(this.url+this.season+"/teams/"+this.teamId)),n==1&&(o=await l.get(this.url+e)),o&&o.data){o.data.teams.map(c=>{a[c[0]]={},a[c[0]].id=c[0],a[c[0]].name=c[2],a[c[0]].img=c[3],a[c[0]].abrv=c[2],a[c[0]].logo=c[3]}),o.data.players.map(c=>{i[c[0]]={},i[c[0]].id=c[0],i[c[0]].name=c[1],i[c[0]].img=c[2],i[c[0]].position=c[6],i[c[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+c[10][0].team_id+".png"});var r=1;o.data.tops.map(c=>{s[c.category?c.category:r]={};var d={},m={};c.teams.map(h=>{d[h[0]]={},d[h[0]].total=h[1],d[h[0]].id=a[h[0]].id,d[h[0]].name=a[h[0]].name,d[h[0]].img="https://az755631.vo.msecnd.net/teams-150/"+h[0]+".png",d[h[0]].logo="https://az755631.vo.msecnd.net/teams-150/"+h[0]+".png"}),c.players.map(h=>{m[h[0]]={},m[h[0]].total=h[1],m[h[0]].name=i[h[0]].name,m[h[0]].img=i[h[0]].img.replace("players-profile/","players-profile-no-bg/"),m[h[0]].id=i[h[0]].id,m[h[0]].position=this.positions[i[h[0]].position-1].name,m[h[0]].logo=i[h[0]].logo});var p=[],f=[];for(const h in d)p.push(d[h]);for(const h in m)f.push(m[h]);p.sort((h,u)=>h.total<u.total?1:-1),f.sort((h,u)=>h.total<u.total?1:-1),s[c.category?c.category:r].top__players=f,s[c.category?c.category:r].top__teams=p,r++})}this.categorySelected=1,this.categoryData=s}catch(a){return Promise.reject(a)}}}},pa=()=>{t.useCssVars(e=>({"49a851df":e.backgroundColor,"1cdbf96e":e.fontFamily,"985b85b4":e.fontSize,"74d31244":e.fontColor,"454a95e4":e.marginMosaic}))},ua=Go.setup;Go.setup=ua?(e,n)=>(pa(),ua(e,n)):pa;const k0=e=>(t.pushScopeId("data-v-97d3de3e"),e=e(),t.popScopeId(),e),E0={class:"gsc-best",ref:"myDivRef"},B0={class:"gsc-best__line-bar-tools"},x0={key:0,class:"gsc-best__line-bar-tools__title"},N0=k0(()=>t.createElementVNode("span",null,"Los mejores ",-1)),T0={key:1,class:"gsc-best__line-bar-tools__titlefull"},O0={class:"unit-items"},A0={key:2,class:"gsc-best__line-bar-tools__tools"},V0={key:0,class:"gsc-best__line-bar-tools__tools__tabs"},R0={class:"gsc-best__line-bar-tools__tools__btn"},F0={key:0,class:"gsc-best__line-bar-tools-movil"},I0={class:"gsc-best__line-bar-tools-movil__tabs"},L0={class:"gsc-best__categories"},z0={class:"gsc-best__players"};function _0(e,n,o,r,a,i){const s=t.resolveComponent("GSCRadioToggle"),l=t.resolveComponent("GSCButton"),c=t.resolveComponent("GscSwitchComponent"),d=t.resolveComponent("GSCMosaicthebest"),m=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",E0,[t.createElementVNode("div",B0,[r.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",x0,[N0,e.optionSelected!=="Equipos"?(t.openBlock(),t.createBlock(s,{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/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),r.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",T0,[t.createElementVNode("span",{style:t.normalizeStyle(r.elementSize.width<=380?"font-size: 15px; margin-top:0px; width:60px;":"")},"Los mejores ",4),t.createElementVNode("span",O0,[e.optionSelected!=="Equipos"?(t.openBlock(),t.createBlock(s,{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/"+o.teamId+".png",iconB:"https://az755631.vo.msecnd.net/todoelfut/1.png",textOptionLeft:"Mi equipo",textOptionRight:"Liga MX",onChange:i.ChangeRadio},null,8,["iconA","onChange"])):t.createCommentVNode("",!0),t.createVNode(l,{style:{"margin-top":"4px"},width:"75px","text-value":"Ver más","font-color":r.elementSize.width<=680?"rgba(255,255,255, 0.7)":"#fff","font-size":r.elementSize.width<=680?"11px":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["font-color","font-size","onClick"])])])):t.createCommentVNode("",!0),r.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",A0,[r.elementSize.width>900?(t.openBlock(),t.createElementBlock("div",V0,[t.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:i.changeType,arrowsScrollHide:!1,arrowsPosition:"absolute"},null,8,["selected-option","onInput"])])):t.createCommentVNode("",!0),t.createElementVNode("div",R0,[t.createVNode(l,{width:"75px","text-value":"Ver más","font-size":"14px","text-decoration":"underline",onClick:i.clickMore},null,8,["onClick"]),t.createVNode(l,{width:"10px","text-value":"→","font-size":"14px","font-color":"#cbee6b",onClick:i.clickMore},null,8,["onClick"])])])):t.createCommentVNode("",!0)]),r.elementSize.width<=900?(t.openBlock(),t.createElementBlock("div",F0,[t.createElementVNode("div",I0,[t.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:i.changeType},null,8,["selected-option","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",L0,[t.createVNode(c,{type:2,arrow:!0,"font-family":"Poppins-Regular",buttons:e.categoriesDefault,height:"40px","selected-option":"Goles","font-size":r.elementSize.width<=900?"12px":"14px",width:"max-content",onInput:i.changeCategory,pxScroll:200,scrollColor:"none",arrowsScrollHide:!1,arrowsMargin:0},null,8,["buttons","font-size","onInput"])]),t.createElementVNode("div",z0,[t.createVNode(m,{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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.topData,(p,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,class:t.normalizeClass(["gsc-best__players__item",f==0?"margin-none":""])},[t.createVNode(d,{data:{player_id:p.id,player_name:p.name,player_position:p.position,player_stat:p.total,category:"Total",top:f<9?"0"+(f+1):f+1,team_logo:p.logo,player_photo:p.img},"show-shield-team":!0,"active-videos":!0,onClickMosaic:i.clickMosaic,onOpenmedia:i.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 P0=ye(Go,[["render",_0],["__scopeId","data-v-97d3de3e"]]),M0={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},j0={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},D0={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},v0=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},U0={props:{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"},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},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}},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))}}},J0=["src"],H0={key:1,class:"text"},G0=["src"];function W0(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["button",a.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,a.status&&o.typeOnOff&&i.customActive]),onClick:n[0]||(n[0]=(...s)=>i.btnClick&&i.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,J0)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",H0,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,G0)):t.createCommentVNode("",!0)],6)}const q0=v0(U0,[["render",W0],["__scopeId","data-v-1bfd444b"]]),K0={class:"gsc-dropdown__main-container__item-selected"},Z0=["height","width"],Y0=["stroke"],X0={class:"gsc-dropdown__items-container"},Q0=["onClick"],$0={key:0,class:"gsc-dropdown__items-footer"},eg={__name:"GSC-Dropdown",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(n=>n in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1}},emits:["input","click-ready"],setup(e,{emit:n}){const o=e,r=t.ref({}),a=t.ref(o.isMultipleOption?-1:0),i=t.ref(!1);t.watch(o,p=>{if(p.items&&p.items.length){if(o.defaultItemByProp){const f=o.items.findIndex(h=>h[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(a.value=f,r.value=p.items[f]):(a.value=0,r.value=p.items[0])}else r.value=p.items[o.defaultItemByIndex];n("input",r.value)}},{immediate:!0});const s=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`})),l=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){i.value=!i.value}function d(p,f){o.isMultipleOption?a.value=-1:(a.value=f,i.value=!1),r.value=p,n("input",r.value)}function m(){i.value=!1,n("click-ready")}return(p,f)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-dropdown",style:t.normalizeStyle(s.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",K0,[t.renderSlot(p.$slots,"default",{selectedItem:r.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":i.value}]),style:t.normalizeStyle(l.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,Y0)],8,Z0))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",X0,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(h,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:u===a.value}]),key:u,onClick:g=>d(h,u)},[t.renderSlot(p.$slots,"availableItem",{item:h})],10,Q0))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",$0,[t.createVNode(t.unref(q0),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,i.value]])]),_:3})],4))}},tg=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},og={class:"tournament-select__selected-tournament"},ng={class:"tournament-select__selected-tournament__logo"},rg=["src"],ag={class:"tournament-select__selected-tournament__name"},ig={__name:"GSCTournamentSelect",props:{apiUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},fontFamily:{type:String,default:"sans-serif"},logosUrl:{type:String,default:"https://az755631.vo.msecnd.net/todoelfut/"},logoFileType:{type:String,default:"png"},height:{type:String,default:"40px"},width:{type:String,default:"179px"},borderRadius:{type:Number,default:8},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},backgroundColor:{type:String,default:"#0d1d29"},color:{type:String,default:"white"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(n=>n in e)}},emits:["input"],setup(e,{emit:n}){const o=e,r=t.ref([]),a=t.computed(()=>{const d={};return o.fontFamily&&(d["font-family"]=`${o.fontFamily}`),d});async function i(){try{if(o.items&&o.items.length)r.value=[...o.items];else if(o.apiUrl){const d=await l();r.value=d.map(m=>({...m.tournament,seasons:m.seasons}))}}catch(d){throw new Error(d)}}function s(d){const m=new XMLHttpRequest,p=`${o.logosUrl}${d}.${o.logoFileType}`;return m.open("HEAD",p,!1),m.send(),m.status!==404}async function l(){try{return(await fetch(o.apiUrl)).json()}catch(d){return Promise.reject(d)}}function c(d){n("input",d)}return t.onMounted(()=>{i()}),(d,m)=>(t.openBlock(),t.createElementBlock("div",{class:"tournament-select",style:t.normalizeStyle(a.value)},[t.createVNode(t.unref(eg),t.mergeProps(o,{items:r.value,onInput:c}),{default:t.withCtx(({selectedItem:p})=>[t.createElementVNode("div",og,[t.createElementVNode("div",ng,[s(p.id)?(t.openBlock(),t.createElementBlock("img",{key:0,src:`${o.logosUrl}${p.id}.${o.logoFileType}`,alt:""},null,8,rg)):t.createCommentVNode("",!0)]),t.createElementVNode("div",ag,t.toDisplayString(p.name),1)])]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},16,["items"])],4))}},sg=tg(ig,[["__scopeId","data-v-ed37b8ef"]]),lg=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},cg={props:{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"},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},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}},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))}}},dg=["src"],mg={key:1,class:"text"},pg=["src"];function ug(e,n,o,r,a,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["button",a.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,a.status&&o.typeOnOff&&i.customActive]),onClick:n[0]||(n[0]=(...s)=>i.btnClick&&i.btnClick(...s))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,dg)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",mg,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,pg)):t.createCommentVNode("",!0)],6)}const fg=lg(cg,[["render",ug],["__scopeId","data-v-1bfd444b"]]),hg={class:"gsc-dropdown__main-container__item-selected"},gg=["height","width"],yg=["stroke"],Sg={class:"gsc-dropdown__items-container"},bg=["onClick"],wg={key:0,class:"gsc-dropdown__items-footer"},Cg={__name:"GSC-Dropdown",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(n=>n in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1}},emits:["input","click-ready"],setup(e,{emit:n}){const o=e,r=t.ref({}),a=t.ref(o.isMultipleOption?-1:0),i=t.ref(!1);t.watch(o,p=>{if(p.items&&p.items.length){if(o.defaultItemByProp){const f=o.items.findIndex(h=>h[o.defaultItemByProp.propName]===o.defaultItemByProp.value);f!==-1?(a.value=f,r.value=p.items[f]):(a.value=0,r.value=p.items[0])}else r.value=p.items[o.defaultItemByIndex];n("input",r.value)}},{immediate:!0});const s=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`})),l=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function c(){i.value=!i.value}function d(p,f){o.isMultipleOption?a.value=-1:(a.value=f,i.value=!1),r.value=p,n("input",r.value)}function m(){i.value=!1,n("click-ready")}return(p,f)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-dropdown",style:t.normalizeStyle(s.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:c},[t.createElementVNode("div",hg,[t.renderSlot(p.$slots,"default",{selectedItem:r.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":i.value}]),style:t.normalizeStyle(l.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,yg)],8,gg))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Sg,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(h,u)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:u===a.value}]),key:u,onClick:g=>d(h,u)},[t.renderSlot(p.$slots,"availableItem",{item:h})],10,bg))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",wg,[t.createVNode(t.unref(fg),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:m})])):t.createCommentVNode("",!0)])],512),[[t.vShow,i.value]])]),_:3})],4))}},kg=(e,n)=>{const o=e.__vccOpts||e;for(const[r,a]of n)o[r]=a;return o},Eg={class:"season-name"},Bg={components:{GSCSeasonSelect:kg({__name:"GSC-Season-Select",props:{seasons:{type:Array,default:()=>[]}},emits:["input"],setup(e,{emit:n}){function o(r){n("input",r)}return(r,a)=>(t.openBlock(),t.createBlock(t.unref(Cg),{items:e.seasons,height:"40px",width:"179px","background-color":"#0d1d29",color:"white","border-color":"rgba(255, 255, 255, 0.2)","font-family":"Poppins-Regular","border-radius":8,onInput:o},{default:t.withCtx(({selectedItem:i})=>[t.createElementVNode("div",Eg,[t.createElementVNode("span",null,t.toDisplayString(i.name),1)])]),availableItem:t.withCtx(({item:i})=>[t.createElementVNode("span",null,t.toDisplayString(i.name),1)]),_:1},8,["items"]))}},[["__scopeId","data-v-ffcf8231"]]),GSCTournamentSelect:sg,GSCGames:Mh,GSCGridTeamsMatches:as,GSCPlayersLanding:Xi,GSCTops:P0,GSCTableCalendar:oh},setup(){const e=t.ref("landingref"),{elementSize:n}=xi(e);return{landingref:e,elementSize:n}},watch:{team:{immediate:!0,deep:!0,async handler(e){this.fetchGames(e)}}},props:{season:{type:Number,default:1772},isplayer:{type:Boolean,default:!1},team:{type:Number,default:0},player:{type:Number,default:0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},data(){return{defaultGameId:0,lastSeasonsIds:[],gamesPages:new Map,defaultMatchDayKey:null,isCupTournament:!1,isCupLegacyTournament:!1,tournamentScheduleKeys:[],currentTournamentGames:null,currentTournamentTeams:null,gamesUrl:" https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/",seasonSelected:{},fullTournamentSchedule:{},tournamentSelected:{},tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},computed:{containerGridCalendarTable(){return this.elementSize.width<=1e3?"container-grid-calendar-table-mobile":"container-grid-calendar-table"},containerbackground(){return this.elementSize.width<=680?"container-background-movil":"container-background"},containerdata(){return this.elementSize.width<=680?"container-data-movil":"container-data"}},methods:{onOpenMedia(e){this.$emit("openmedia",e)},moreTops(){window.location.href="/tops"},clickProfileBtn(e){window.location.href=`/profile?p=${e.player_id}&s=${this.seasonSelected.id}`},viewAll(){window.location.href="/players"},clickCard(e){e=="team"&&(this.isplayer?window.location.href=`/profile?t=${this.team}&s=${this.seasonSelected.id}`:window.location.href="/teams"),e=="player"&&(this.isplayer?window.location.href=`/profile?p=${this.player}&s=${this.seasonSelected.id}`:window.location.href="/players"),e=="schedule"&&(window.location.href="/calendar"),e=="scouting"&&(window.location.href="/tops")},async fetchGames(e){const n=ut.create({headers:{Authorization:`${this.tokenFree}`}});this.fullTournamentSchedule=await n.get(this.gamesUrl+e+"?seasons="+this.season)},onInputTournament(e){this.tournamentSelected=e},onInputSeason(e){this.seasonSelected=e},async fetchTournaments(e){try{const{data:n}=await ut.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return n}catch(n){if(e>0)return fetchTournaments(e-1);throw new Error(n)}},async fetchSeasonsGamesAndTeams(e,n,o=""){let r=o;try{const a={};this.tokenFree&&(a.Authorization=this.tokenFree),r||(r="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",e.forEach((l,c)=>{r+=`${c===0?"":"&"}seasons=${l}`}));const{data:{data:i,teams:s}}=await ut.get(r,{headers:a});return{seasonsAndGames:i,seasonsAndTeams:s}}catch(a){if(n>0)return this.fetchSeasonsGamesAndTeams(e,n-1,r);throw new Error(a)}},areSeasonsDifferent(e){for(const n of e)if(!this.lastSeasonsIds.includes(n.season_id))return!0;return!1},filterGames(){if(!this.currentTournamentTeams)return;const e=this.currentTournamentGames&&this.currentTournamentGames.seasonsGames?this.currentTournamentGames.seasonsGames.map(n=>{const o=n.games.reduce((r,a)=>{const i={...a};return i.dateTimeMillis=new Date(i.date_time_utc).valueOf(),i.home_team=this.currentTournamentTeams.find(s=>s.team_id===a.home_team),i.visiting_team=this.currentTournamentTeams.find(s=>s.team_id===a.visiting_team),this.team&&i.home_team.team_id!==this.team&&i.visiting_team.team_id!==this.team||(r[a.matchday_abbreviation]?r[a.matchday_abbreviation][a.game_status===3?"canceled":a.date]?r[a.matchday_abbreviation][a.game_status===3?"canceled":a.date].push(i):r[a.matchday_abbreviation][a.game_status===3?"canceled":a.date]=[i]:r[a.matchday_abbreviation]={[a.game_status===3?"canceled":a.date]:[i]}),r},{});for(let[r,a]of Object.entries(o))o[r]=Object.entries(a).map(([i,s])=>({date:i,games:s.sort((l,c)=>l.dateTimeMillis-c.dateTimeMillis)})),o[r].sort((i,s)=>i.date<s.date?-1:i.date>s.date?1:0);return{type:n.type,weight:n.type===0?0:n.type===2?1:2,schedule:o}}):[];e.sort((n,o)=>n.weight-o.weight),this.fullTournamentSchedule=e.reduce((n,o)=>{for(const[r,a]of Object.entries(o.schedule))if(o.type===0)if(this.isCupTournament){const i=r.replace("M",""),s=i;this.isCupLegacyTournament?n[D0[i]||s]=a:n[j0[r]||s]=a}else n[Number(r.replace("M","")).toString()]=a;else o.type===2?n[`R${Number(r.replace("PO",""))}`]=a:o.type===1&&(n[M0[r]]=a);return n},{}),this.gamesPages=new Map,this.tournamentScheduleKeys=Array.from(Object.entries(this.fullTournamentSchedule).reduce((n,[o,r])=>{const a=Number(o);let i="";Number.isNaN(a)?i=o:i=a<10?`0${a}`:o,n.set(o,{key:o,value:a,valueText:i});const s=r.reduce((c,d)=>(d.games.forEach(m=>{m.game_id===this.defaultGameId&&(this.defaultMatchDayKey=o),m.roundAbbreviation=Number.isNaN(a)?a:`J ${a}`}),c=c.concat(d.games),c),[]),l=this.getPages(s);return this.gamesPages.set(o,l),n},new Map).values())},getPages(e){const n=[];if(this.gamesPerMatchDay>0){let o=[];e.forEach((r,a)=>{o.push(r),(a+1)%this.gamesPerMatchDay===0&&(n.push([...o]),o=[])}),o.length&&n.push([...o])}else n.push(e);return n},async createFullTournamentScheme(e,n){try{this.fullTournamentSchedule={};let o=0;const{seasonsAndGames:r,seasonsAndTeams:a}=await this.fetchSeasonsGamesAndTeams(e.map(s=>s.id),3);if(n&&this.areSeasonsDifferent(r))return;r.forEach(s=>{const{type:l}=e.find(c=>c.id===s.season_id);s.type=l,s.games.forEach(c=>{c.season_id=s.season_id}),l===0&&(o=s.season_id)}),this.currentTournamentGames={seasonsGames:r};const{teams:i}=a.find(s=>s.season_id===o);this.currentTournamentTeams=i,this.$emit("change-teams",i),this.filterGames()}catch(o){throw new Error(o)}}},async created(){try{if(this.isplayer){const n=(await this.fetchTournaments(3)).find(a=>a._id===1),o=n.seasons[0],r=[{id:o.id,type:o.type}];n&&n.tournament&&this.$emit("tournament-selected",n.tournament),o.related_seasons&&o.related_seasons.length&&r.push(...o.related_seasons.map(a=>({id:a.id,type:a.type}))),await this.createFullTournamentScheme(r,!1)}}catch(e){throw new Error(e)}}},Mt=e=>(t.pushScopeId("data-v-b32f2dd2"),e=e(),t.popScopeId(),e),xg={class:"gsclanding",ref:"landingref"},Ng={key:0,class:"container-selectors-mobile"},Tg={class:"container-selectors-mobile-tournament"},Og={class:"container-selectors-mobile-season"},Ag={key:0,class:"home-item-movil"},Vg=[Mt(()=>t.createElementVNode("div",{class:"home-movil"},"Inicio",-1)),Mt(()=>t.createElementVNode("div",{class:"name-user-movil"},"Bienvenido, Ándres",-1))],Rg={key:1,class:"home-item"},Fg={key:2,class:"bar-settings"},Ig=Mt(()=>t.createElementVNode("div",{class:"name-user"},"Bienvenido, Ándres",-1)),Lg={class:"container-selectors"},zg={class:"selector-tournament"},_g={class:"selector-seasons"},Pg={key:3,class:"container-games"},Mg={class:"container-players"},jg={class:"container-tops"},Dg=Mt(()=>t.createElementVNode("div",{class:"container-vr"},null,-1));function vg(e,n,o,r,a,i){const s=t.resolveComponent("GSCTournamentSelect"),l=t.resolveComponent("GSCSeasonSelect"),c=t.resolveComponent("GSCGames"),d=t.resolveComponent("GSCGridTeamsMatches"),m=t.resolveComponent("GSCTableCalendar"),p=t.resolveComponent("GSCPlayersLanding"),f=t.resolveComponent("GSCTops");return t.openBlock(),t.createElementBlock("div",xg,[r.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",Ng,[t.createElementVNode("div",Tg,[t.createVNode(s,{width:"100%","default-item-by-prop":{propName:"id",value:1},onInput:i.onInputTournament},null,8,["onInput"])]),t.createElementVNode("div",Og,[t.createVNode(l,{width:"100%",seasons:a.tournamentSelected.seasons,onInput:i.onInputSeason},null,8,["seasons","onInput"])])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.containerbackground)},[t.createElementVNode("div",{class:t.normalizeClass(i.containerdata)},[r.elementSize.width<=680?(t.openBlock(),t.createElementBlock("div",Ag,Vg)):t.createCommentVNode("",!0),r.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",Rg,"Inicio")):t.createCommentVNode("",!0),r.elementSize.width>680?(t.openBlock(),t.createElementBlock("div",Fg,[Ig,t.createElementVNode("div",Lg,[t.createElementVNode("div",zg,[t.createVNode(s,{"default-item-by-prop":{propName:"id",value:1},onInput:i.onInputTournament},null,8,["onInput"])]),t.createElementVNode("div",_g,[t.createVNode(l,{seasons:a.tournamentSelected.seasons,onInput:i.onInputSeason},null,8,["seasons","onInput"])])])])):t.createCommentVNode("",!0),Object.keys(a.fullTournamentSchedule).length>0?(t.openBlock(),t.createElementBlock("div",Pg,[t.createVNode(c,{"component-width":r.elementSize.width,isplayer:o.isplayer,data:a.fullTournamentSchedule},null,8,["component-width","isplayer","data"])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(i.containerGridCalendarTable)},[t.createElementVNode("div",{class:"container-grid",style:t.normalizeStyle(r.elementSize.width<1e3?"width: 100%":"")},[t.createVNode(d,{isPlayer:o.isplayer,"team-img":"https://az755631.vo.msecnd.net/teams-80/"+o.team+".png","player-img":"https://az755631.vo.msecnd.net/players-profile/"+o.player+".png","component-width":r.elementSize.width,onAction:i.clickCard},null,8,["isPlayer","team-img","player-img","component-width","onAction"])],4),t.createElementVNode("div",{class:"container-calendar-table",style:t.normalizeStyle(r.elementSize.width<1e3?"width: 100%; margin-top: 30px;":"")},[t.createVNode(m,{onOpenmedia:i.onOpenMedia,componentWidth:r.elementSize.width},null,8,["onOpenmedia","componentWidth"])],4)],2),t.createElementVNode("div",Mg,[t.createVNode(p,{onClickProfileBtn:i.clickProfileBtn,onViewAll:i.viewAll,"team-id":o.team},null,8,["onClickProfileBtn","onViewAll","team-id"])]),t.createElementVNode("div",jg,[t.createVNode(f,{onMore:i.moreTops,season:o.season,"team-id":o.team,onOpenmedia:i.onOpenMedia},null,8,["onMore","season","team-id","onOpenmedia"])]),Dg],2)],2)],512)}const Ug=ye(Bg,[["render",vg],["__scopeId","data-v-b32f2dd2"]]);ze.GSCLanding=Ug,Object.defineProperty(ze,Symbol.toStringTag,{value:"Module"})});